|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6788,4977,86468],{27499: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 s,h,m,l=e-n,c=o-r,u=NaN,S=NaN;0===l?0===c?e===n&&(u=e,S=t):S=(h=(g-i)/c)*(u=e)+(g-h*o):S=0===c?(s=(t-a)/l)*(u=o)+(m=t-s*e):(s=(t-a)/l)*(u=(g-(h=(g-i)/c)*o-(m=t-s*e))/(s-h))+m;return d.x=u,d.y=S,d}function r(e,t,n,a,o,g,r,i,d,s,h,m,l,c){var u=1-d,S=e*u+n*d,P=t*u+a*d,w=n*u+o*d,p=a*u+g*d,f=o*u+r*d,v=g*u+i*d,L=S*u+w*d,y=P*u+p*d,x=w*u+f*d,b=p*u+v*d,F=L*u+x*d,k=y*u+b*d;s.x=S,s.y=P,h.x=L,h.y=y,m.x=F,m.y=k,l.x=x,l.y=b,c.x=f,c.y=v}var i=new go.Spot(.156,.156),d=new go.Spot(.844,.844),s=(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))*s,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,s*t,0,t,(1-s)*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,s*n,(1-s)*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,s*n,s*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-s)*t,0,0,(1-s)*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 h=[];function m(){var e=h.pop();return void 0===e?[]:e}function l(e){e.length=0,h.push(e)}function c(e){for(var t=m(),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 u(e){var t=S(e),n=m();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 l(t),n}function S(e){for(var t=c(e),n=m(),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],s=t[i+1],h=t[(a+i-1)%o],u=t[(a+i+r)%o];n[2*i]=d,n[2*i+1]=g(d.x,d.y,h.x,h.y,s.x,s.y,u.x,u.y,new go.Point)}return n[n.length]=n[0],l(t),n}go.Shape.defineFigureGenerator("Pentagon",(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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=c(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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=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<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()),l(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=u(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(),l(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=u(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(),l(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=u(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(),l(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=u(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(),l(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=u(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(),l(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=u(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(),l(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 s=Math.max(o-a,0);return s>0&&(r.add(new go.PathSegment(go.PathSegment.Move,t/2+s,t/2)),r.add(new go.PathSegment(go.PathSegment.Arc,0,-360,o,o,s,s).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=s/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(s=new go.Geometry(go.Geometry.Rectangle)).startX=0,s.startY=0,s.endX=t,s.endY=n,s;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),s=new go.Geometry,h=new go.PathFigure(i,0,!0);return s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,o,.2*n)),h.add(new go.PathSegment(go.PathSegment.Line,t-i,0)),h.add(new go.PathSegment(go.PathSegment.Line,t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.8*t,g)),h.add(new go.PathSegment(go.PathSegment.Line,t,n-d)),h.add(new go.PathSegment(go.PathSegment.Line,t-i,n)),h.add(new go.PathSegment(go.PathSegment.Line,o,.8*n)),h.add(new go.PathSegment(go.PathSegment.Line,i,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n-d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,g)),h.add(new go.PathSegment(go.PathSegment.Line,0,d).close()),s})),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,s*t,0,t,(.5-s/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+s/2)*n,s*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*s;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)*s,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)*s,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*s,d=.5,h=.5,m=.5,l=new go.PathFigure(h*t,(m-d)*n);g.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-d)*t,m*n,(h-i)*t,(m-d)*n,(h-d)*t,(m-i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+d)*n,(h-d)*t,(m+i)*n,(h-i)*t,(m+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+d)*t,m*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-d)*n,(h+d)*t,(m-i)*n,(h+i)*t,(m-d)*n)),d=.4,i=.4*s;var c=a(),u=a(),S=a(),P=a();r(h,m-d,h+i,m-d,h+d,m-i,h+d,m,.42,c,u,S,P,P);var w=a(),p=a(),f=a();r(h,m-d,h+i,m-d,h+d,m-i,h+d,m,.58,P,P,f,w,p);var v=a(),L=a(),y=a();r(h,m+d,h-i,m+d,h-d,m+i,h-d,m,.42,v,L,y,P,P);var x=a(),b=a(),F=a();return r(h,m+d,h-i,m+d,h-d,m+i,h-d,m,.58,P,P,F,x,b),l.add(new go.PathSegment(go.PathSegment.Move,F.x*t,F.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-d)*t,m*n,x.x*t,x.y*n,b.x*t,b.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-d)*n,(h-d)*t,(m-i)*n,(h-i)*t,(m-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,S.x*t,S.y*n,c.x*t,c.y*n,u.x*t,u.y*n)),l.add(new go.PathSegment(go.PathSegment.Line,F.x*t,F.y*n).close()),l.add(new go.PathSegment(go.PathSegment.Move,y.x*t,y.y*n)),l.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+d)*t,m*n,w.x*t,w.y*n,p.x*t,p.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+d)*n,(h+d)*t,(m+i)*n,(h+i)*t,(m+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,y.x*t,y.y*n,v.x*t,v.y*n,L.x*t,L.y*n).close()),o(c),o(u),o(S),o(P),o(w),o(p),o(f),o(v),o(L),o(y),o(x),o(b),o(F),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*s,h=.4,m=.5,l=.5,c=a(),u=a(),S=a(),P=a(),w=new go.PathFigure((m-h)*t,l*g,!1);i.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l-h)*g,(m-h)*t,(l-d)*g,(m-d)*t,(l-h)*g)),r(m,l-h,m+d,l-h,m+h,l-d,m+h,l,.44,S,P,u,c,c),w.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,S.x*t,S.y*g,P.x*t,P.y*g));var p=n(u.x,u.y);r(m,l-h,m+d,l-h,m+h,l-d,m+h,l,.56,c,c,u,S,P);var f=n(u.x,u.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,(m+h)*t,l*g,S.x*t,S.y*g,P.x*t,P.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+h)*g,(m+h)*t,(l+d)*g,(m+d)*t,(l+h)*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(m-h)*t,l*g,(m-d)*t,(l+h)*g,(m-h)*t,(l+d)*g)),h=.35,d=.35*s;var v=new go.PathFigure(m*t,(l-h)*g,!1);i.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,(m-h)*t,l*g,(m-d)*t,(l-h)*g,(m-h)*t,(l-d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+h)*g,(m-h)*t,(l+d)*g,(m-d)*t,(l+h)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,(m+h)*t,l*g,(m+d)*t,(l+h)*g,(m+h)*t,(l+d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l-h)*g,(m+h)*t,(l-d)*g,(m+d)*t,(l-h)*g));var L=new go.PathFigure((m-h)*t,l*g,!1);return i.add(L),o(c),o(u),o(S),o(P),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*s,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)*s;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,s=(.5-i/2)*n,h=(.5+i/2)*n,m=new go.Geometry,l=new go.PathFigure(0,s,!0);m.add(l),l.add(new go.PathSegment(go.PathSegment.Line,d,s)),l.add(new go.PathSegment(go.PathSegment.Line,d,0)),l.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,d,n)),l.add(new go.PathSegment(go.PathSegment.Line,d,h)),l.add(new go.PathSegment(go.PathSegment.Line,0,h).close()),m.spot1=new go.Spot(0,s/n);var c=g(0,h/n,1,h/n,d/t,1,1,.5,a());return m.spot2=new go.Spot(c.x,c.y),o(c),m})),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,s=(n-(i=Math.min(i,n/2)))/2,h=s+i,m=new go.Geometry,l=new go.PathFigure(0,s,!0);m.add(l),l.add(new go.PathSegment(go.PathSegment.Line,d,s)),l.add(new go.PathSegment(go.PathSegment.Line,d,0)),l.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,d,n)),l.add(new go.PathSegment(go.PathSegment.Line,d,h)),l.add(new go.PathSegment(go.PathSegment.Line,0,h).close()),m.spot1=new go.Spot(0,s/n);var c=g(0,h/n,1,h/n,d/t,1,1,.5,a());return m.spot2=new go.Spot(c.x,c.y),o(c),m})),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var m=g(0,.5,.3,0,0,i/n,.1,i/n,a());return s.spot1=new go.Spot(m.x,m.y),m=g(.7,1,1,.5,0,d/n,1,d/n,m),s.spot2=new go.Spot(m.x,m.y),o(m),s})),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,s=d+r,h=(n-i)/2,m=h+i;(r>n||i>n)&&(i>r?(s=(d=(n-(r=r*n/i))/2)+r,h=0,m=n):(d=0,s=n,h=0,m=n));var l=new go.Geometry,c=new go.PathFigure(t,.5*n,!0);l.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,m)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),c.add(new go.PathSegment(go.PathSegment.Line,.3*t,s)),c.add(new go.PathSegment(go.PathSegment.Line,.3*t,m)),c.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),c.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,h).close());var u=g(0,.5,.3,h/n,0,d/n,1,d/n,a());return l.spot1=new go.Spot(u.x,u.y),u=g(.7,m/n,1,.5,0,s/n,1,s/n,u),l.spot2=new go.Spot(u.x,u.y),o(u),l})),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,0)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(0,i/n);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(m.x,m.y),o(m),s})),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,s=d+r,h=(n-i)/2,m=h+i;(r>n||i>n)&&(i>r?(s=(d=(n-(r=r*n/i))/2)+r,h=0,m=n):(d=0,s=n,h=0,m=n));var l=new go.Geometry,c=new go.PathFigure(t,.5*n,!0);l.add(c),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,m)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,s)),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,m)),c.add(new go.PathSegment(go.PathSegment.Line,0,m)),c.add(new go.PathSegment(go.PathSegment.Line,0,h)),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),c.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),c.add(new go.PathSegment(go.PathSegment.Line,.7*t,h).close()),l.spot1=new go.Spot(0,d/n);var u=g(.7,m/n,1,.5,0,s/n,1,s/n,a());return l.spot2=new go.Spot(u.x,u.y),o(u),l})),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 s=g(.2,.65,1,.65,0,1,1,.5,a());return i.spot2=new go.Spot(s.x,s.y),o(s),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 s=g(0,.65,1,.65,0,1,1,.5,a());return i.spot2=new go.Spot(s.x,s.y),o(s),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,0,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,0,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(.2,.3);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(m.x,m.y),o(m),s})),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 s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,0,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,0,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,i)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(.2,i/n);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(m.x,m.y),o(m),s})),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*s,g=.1*s,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*s,r=new go.PathFigure(0,a,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,s*a,(.5-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a,(.5+g)*t,0,1*t,s*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-s*a,(.5+g)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,1*n,0,n-s*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-s*a,(.5+g)*t,2*a)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,a,(.5-g)*t,2*a,0,2*a-s*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*s,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,s*a,(.5-g)*t,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,a,(.5+g)*t,0,t,s*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-s*a,(.5+g)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,n,0,n-s*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-s*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-s*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*s,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-s*a,0,t,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-s*a,n)),r.add(new go.PathSegment(go.PathSegment.Line,a,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,s*a,n,0,(.5+g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,s*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+s*a,0,2*a,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,n,2*a,(.5+g)*n,a+s*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*s,r=new go.PathFigure(t-a,0,!0);o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-s*a,0,t,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-s*a,n)),r.add(new go.PathSegment(go.PathSegment.Line,a,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,s*a,n,0,(.5+g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,s*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-s*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-s*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=s*o,i=s*g,d=.5,h=.1,m=new go.PathFigure(d*t,(h+g)*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,(d-o)*t,h*n,(d-r)*t,(h+g)*n,(d-o)*t,(h+i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-g)*n,(d-o)*t,(h-i)*n,(d-r)*t,(h-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d+o)*t,h*n,(d+r)*t,(h-g)*n,(d+o)*t,(h-i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+g)*n,(d+o)*t,(h+i)*n,(d+r)*t,(h+g)*n));var l=.05,c=s*l;d=.05,h=.25;var u=new go.PathFigure(.5*t,.2*n,!0);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),d=.95,h=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,(d+l)*t,h*n,(d+c)*t,(h-l)*n,(d+l)*t,(h-c)*n)),u.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),c=s*(l=.025),d=.825,h=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-c)*n,(d+c)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-c)*t,(h-l)*n,(d-l)*t,(h-c)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),c=s*(l=.05),d=.5,h=.7,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-c)*n,(d+c)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-c)*t,(h-l)*n,(d-l)*t,(h-c)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),c=s*(l=.025),d=.175,h=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-c)*n,(d+c)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-c)*t,(h-l)*n,(d-l)*t,(h-c)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),c=s*(l=.05),d=.05,h=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d-l)*t,(h-c)*n,(d-c)*t,(h-l)*n)),u.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*s,g=.1*s,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*s,g=.1*s,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*s,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*s,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 h=new go.PathFigure((g+o)*t,(g+o)*n,!1);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Line,g*t,g*n)),h.add(new go.PathSegment(go.PathSegment.Move,g*t,(g+o)*n)),h.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*s,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*s,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*s,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*s,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*s,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*s,g=.4*s,r=.1*s,i=.9,d=.5,h=new go.PathFigure(.8*t,.5*n,!0);a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+g)*n,(.4+o)*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,0)),h.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+o)*t,0,.8*t,(.5-g)*n));var m=new go.PathFigure(1*t,d*n,!0);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,.6*n,1*t,(d+r)*n,(i+r)*t,.6*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,d*n,(i-r)*t,.6*n,.8*t,(d+r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,.4*n,.8*t,(d-r)*n,(i-r)*t,.4*n)),m.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=s*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*s,r=.9,i=.5;var h=new go.PathFigure((r-o)*t,i*n,!0);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),h.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*s,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=s*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 h=new go.PathFigure(.8*t,.5*n,!0);a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(i+g)*n,(r+g)*t,(i+o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),h.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*s,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(.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*s,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*s,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*s,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*s,g=.8,r=0,i=.5,d=(t-(t*=.38))/2,h=(n-(n*=.6))/2,m=new go.PathFigure(r*t+d,(i+g)*n+h,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+h,(r-o)*t+d,(i+g)*n+h,(r-g)*t+d,(i+o)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+h,(r-g)*t+d,(i-o)*n+h,(r-o)*t+d,(i-g)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,(r-g+.5*o)*t+d,i*n+h,r*t+d,(i-g)*n+h,(r-g+.5*o)*t+d,(i-o)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+h,(r-g+.5*o)*t+d,(i+o)*n+h,r*t+d,(i+g)*n+h).close()),o=.4*s,g=.4,r=.2,i=.5;var l=new go.PathFigure(r*t+d,(i+g)*n+h,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+h,(r-o)*t+d,(i+g)*n+h,(r-g)*t+d,(i+o)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+h,(r-g)*t+d,(i-o)*n+h,(r-o)*t+d,(i-g)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,(r-g+.5*o)*t+d,i*n+h,r*t+d,(i-g)*n+h,(r-g+.5*o)*t+d,(i-o)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+h,(r-g+.5*o)*t+d,(i+o)*n+h,r*t+d,(i+g)*n+h).close()),o=.2*s,g=.2,r=.5,i=.5;var c=new go.PathFigure((r-g)*t+d,i*n+h,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+h,(r-g)*t+d,(i-o)*n+h,(r-o)*t+d,(i-g)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+h,(r+o)*t+d,(i-g)*n+h,(r+g)*t+d,(i-o)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+h,(r+g)*t+d,(i+o)*n+h,(r+o)*t+d,(i+g)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,(r-g)*t+d,i*n+h,(r-o)*t+d,(i+g)*n+h,(r-g)*t+d,(i+o)*n+h)),o=.4*s,g=.4,r=.8,i=.5;var u=new go.PathFigure(r*t+d,(i-g)*n+h,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+h,(r+o)*t+d,(i-g)*n+h,(r+g)*t+d,(i-o)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+h,(r+g)*t+d,(i+o)*n+h,(r+o)*t+d,(i+g)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,(r+g-.5*o)*t+d,i*n+h,r*t+d,(i+g)*n+h,(r+g-.5*o)*t+d,(i+o)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+h,(r+g-.5*o)*t+d,(i-o)*n+h,r*t+d,(i-g)*n+h).close()),o=.8*s,g=.8,r=1,i=.5;var S=new go.PathFigure(r*t+d,(i-g)*n+h,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(r+g)*t+d,i*n+h,(r+o)*t+d,(i-g)*n+h,(r+g)*t+d,(i-o)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i+g)*n+h,(r+g)*t+d,(i+o)*n+h,(r+o)*t+d,(i+g)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,(r+g-.5*o)*t+d,i*n+h,r*t+d,(i+g)*n+h,(r+g-.5*o)*t+d,(i+o)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,r*t+d,(i-g)*n+h,(r+g-.5*o)*t+d,(i-o)*n+h,r*t+d,(i-g)*n+h).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*s,h=.4,m=.5,l=.5,c=a(),u=a(),S=a(),P=a();r(m,l-h,m+d,l-h,m+h,l-d,m+h,l,.5,c,c,u,S,P);var w=n(u.x,u.y),p=new go.PathFigure(u.x*t,u.y*g,!0);i.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(m+h)*t,l*g,S.x*t,S.y*g,P.x*t,P.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+h)*g,(m+h)*t,(l+d)*g,(m+d)*t,(l+h)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m-h)*t,l*g,(m-d)*t,(l+h)*g,(m-h)*t,(l+d)*g)),r(m-h,l,m-h,l-d,m-d,l-h,m,l-h,.5,S,P,u,c,c),p.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,S.x*t,S.y*g,P.x*t,P.y*g)),r(m-(h=.3),l,m-h,l-(d=.3*s),m-d,l-h,m,l-h,.5,S,P,u,c,c),p.add(new go.PathSegment(go.PathSegment.Line,u.x*t,u.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m-h)*t,l*g,P.x*t,P.y*g,S.x*t,S.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+h)*g,(m-h)*t,(l+d)*g,(m-d)*t,(l+h)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m+h)*t,l*g,(m+d)*t,(l+h)*g,(m+h)*t,(l+d)*g)),r(m,l-h,m+d,l-h,m+h,l-d,m+h,l,.5,c,c,u,S,P),p.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,P.x*t,P.y*g,S.x*t,S.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(c),o(u),o(S),o(P),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*s,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,s=Math.PI/4,h=4*(1-Math.cos(s))/(3*Math.sin(s)),m=r,l=r,c=h*m,u=h*l;g.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,d*n,(i-(c+m)/2)*t,(d+(l+u)/2)*n,.285*t,(d+u)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,i*t,0*n,.285*t,(d-u)*n,(i-c)*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(i+m)*t,d*n,(i+c)*t,0*n,(i+m)*t,(d-u)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(i+m)*t,(d+u)*n,(i+(c+m)/2)*t,(d+(l+u)/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 S=new go.PathFigure(.2*t,n,!1);a.add(S),S.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var P=new go.PathFigure(.8*t,n,!1);return a.add(P),P.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*s,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*s,d=.2,h=.9,m=new go.PathFigure((d-r)*t,h*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-r)*n,(d-r)*t,(h-i)*n,(d-i)*t,(h-r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d+r)*t,h*n,(d+i)*t,(h-r)*n,(d+r)*t,(h-i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+r)*n,(d+r)*t,(h+i)*n,(d+i)*t,(h+r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d-r)*t,h*n,(d-i)*t,(h+r)*n,(d-r)*t,(h+i)*n).close()),r=.1,i=.1*s,d=.8,h=.9;var l=new go.PathFigure((d-r)*t,h*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-r)*n,(d-r)*t,(h-i)*n,(d-i)*t,(h-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d+r)*t,h*n,(d+i)*t,(h-r)*n,(d+r)*t,(h-i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+r)*n,(d+r)*t,(h+i)*n,(d+i)*t,(h+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-r)*t,h*n,(d-i)*t,(h+r)*n,(d-r)*t,(h+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,h=.1*s,m=.1,l=.9,c=new go.PathFigure((m-d)*t,l*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l-d)*n,(m-d)*t,(l-h)*n,(m-h)*t,(l-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,l*n,(m+h)*t,(l-d)*n,(m+d)*t,(l-h)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+d)*n,(m+d)*t,(l+h)*n,(m+h)*t,(l+d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,l*n,(m-h)*t,(l+d)*n,(m-d)*t,(l+h)*n)),d=.1,h=.1*s,m=.4,l=.9;var u=new go.PathFigure((m-d)*t,l*n,!0);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l-d)*n,(m-d)*t,(l-h)*n,(m-h)*t,(l-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,l*n,(m+h)*t,(l-d)*n,(m+d)*t,(l-h)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(l+d)*n,(m+d)*t,(l+h)*n,(m+h)*t,(l+d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,l*n,(m-h)*t,(l+d)*n,(m-d)*t,(l+h)*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*s,h=.175,m=.95,l=new go.PathFigure((h-i)*t,m*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-i)*n,(h-i)*t,(m-d)*n,(h-d)*t,(m-i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+i)*t,m*n,(h+d)*t,(m-i)*n,(h+i)*t,(m-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+i)*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-i)*t,m*n,(h-d)*t,(m+i)*n,(h-i)*t,(m+d)*n));i=.05,d=.05*s,h=.375,m=.95;var c=new go.PathFigure((h-i)*t,m*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-i)*n,(h-i)*t,(m-d)*n,(h-d)*t,(m-i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(h+i)*t,m*n,(h+d)*t,(m-i)*n,(h+i)*t,(m-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+i)*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(h-i)*t,m*n,(h-d)*t,(m+i)*n,(h-i)*t,(m+d)*n));i=.05,d=.05*s,h=.625,m=.95;var u=new go.PathFigure((h-i)*t,m*n,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-i)*n,(h-i)*t,(m-d)*n,(h-d)*t,(m-i)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(h+i)*t,m*n,(h+d)*t,(m-i)*n,(h+i)*t,(m-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+i)*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(h-i)*t,m*n,(h-d)*t,(m+i)*n,(h-i)*t,(m+d)*n));i=.05,d=.05*s,h=.825,m=.95;var S=new go.PathFigure((h-i)*t,m*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m-i)*n,(h-i)*t,(m-d)*n,(h-d)*t,(m-i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(h+i)*t,m*n,(h+d)*t,(m-i)*n,(h+i)*t,(m-d)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+i)*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(h-i)*t,m*n,(h-d)*t,(m+i)*n,(h-i)*t,(m+d)*n).close());var P=new go.PathFigure(0,n,!1);return a.add(P),P.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*s,h=.35,m=.775,l=new go.PathFigure(.3*t,m*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,.725*n,.3*t,(m-d)*n,(h-d)*t,.725*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+i)*t,m*n,(h+d)*t,.725*n,(h+i)*t,(m-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(m+i)*n,(h+i)*t,(m+d)*n,(h+d)*t,(m+i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,m*n,(h-d)*t,(m+i)*n,.3*t,(m+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*s,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 h=new go.PathFigure(0,.7*n,!1);return a.add(h),h.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*s,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*s,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*s,r=.5,i=.8;var h=new go.PathFigure((r-o)*t,i*n,!1);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i-o)*n,(r-o)*t,(i-g)*n,(r-g)*t,(i-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(r+o)*t,i*n,(r+g)*t,(i-o)*n,(r+o)*t,(i-g)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,r*t,(i+o)*n,(r+o)*t,(i+g)*n,(r+g)*t,(i+o)*n)),h.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()),h.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),h.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),h.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*s,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))*s,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*s,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")},94618: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,s=null,h=0;h<arguments.length;h++){var m=arguments[h];if(null!==m)switch(_typeof(m)){case"number":t=m.toFixed(1);break;case"string":m.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=m:r=m;break;case"object":void 0!==m.is3D?a=m:n=m;break;case"boolean":o=m,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 l="",c=!1,u=null,S=null,P=null,w=!1,p=null,f=null,v=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var L=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){s=e,Z(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,M(e,t))},e.getHTML5CodebaseVersion=function(){return S},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){v=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 s=arguments[d];"string"==typeof s?(s=s.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=s:g=arguments[d]:"boolean"==typeof s?r=s:s instanceof HTMLElement&&(a=s)}function h(){if(i){o=z(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),u=o,"screenshot"===o)G(d,n);else{var s=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?s=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(s=(!y()||t())&&x()),s?(u="screenshot",C(d,n,r,o)):B(d,n,r)}else console.log("possibly bug on ajax loading? ")}else setTimeout(h,200)}h()},e.getViews=function(){return a},e.isJavaInstalled=function(){return!1};var b=function(t){var o=function(){n.onError&&n.onError(),E("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";k("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,F(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 F(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 k(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 u},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)),u=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",u="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(L(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 j=function(e){return e&&"false"!==e},B=function(t,n,a){L(S)<=4.2&&(a=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==S||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(L(S)<=4.4)j(n.showToolBar)&&(n.height-=7),j(n.showAlgebraInput)&&(n.height-=37),n.width<605&&j(n.showToolBar)&&(n.width=605,r=605);else{var h=100;(j(n.showToolBar)||j(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),h=j(n.showMenuBar)?245:155),r<h&&(n.width=h,r=h)}for(var m in g.style.border="none",g.style.display="inline-block",n)n.hasOwnProperty(m)&&"appletOnLoad"!==m&&g.setAttribute("data-param-"+m,n[m]);v&&g.setAttribute("data-param-fontscssurl",v),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var c="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(a||void 0===n.width){var u=document.createElement("div");u.className="applet_scaler",u.style.position="relative",u.style.display="block",u.appendChild(g),t.appendChild(u),n.appletOnLoad=function(t){e.resize(),c(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%"),L(S)>=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"),c(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),E("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function b(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)},L(S)<5&&(e.className+=" geogebraweb")):x(e,t)}if(o){scriptLoadStarted=!0;for(var F=0;F<g.childNodes.length;F++){"TABLE"===g.childNodes[F].tagName&&(g.removeChild(g.childNodes[F]),F--)}if(null!==ggbHTML5LoadedScript){var k=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=k&&k.parentNode.removeChild(k)}var B=document.createElement("script"),G=function(){b(g,n)};B.src=l+P,ggbHTML5LoadedCodebaseIsWebSimple=w,ggbHTML5LoadedCodebaseVersion=S,ggbHTML5LoadedScript=B.src,E("GeoGebra HTML5 codebase loaded: '"+l+"'.",n),s||d&&"5.0"!=d?l.requirejs?__webpack_require__.e(34537).then(function(){var e=[__webpack_require__(34537)];G.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(B.onload=G,t.appendChild(B)):(w?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),G())}else b(g,n);n.height=i,n.width=r},G=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(N()),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(){_(t,o,g,a)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function _(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 C=function(e,t,n,a){G(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"))):B(o,t,!1),window.GGBT_wsf_view.launchFullScreen(g)}else u=a,B(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()},N=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,s=document.createElement("img");if((s.style.position="relative",s.style.zIndex="1000",s.style.top="-1px",s.style.left="-1px",null!==p&&s.setAttribute("src",p),s.style.opacity=.7,null!==f)&&!a){(r=document.createElement("img")).style.position="absolute",r.style.zIndex="1001",r.style.opacity=1,s.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 h=(e-i)/2,m=(t-d)/2;r.style.left=h+"px",r.style.top=m+"px",o.appendChild(r)}return o.appendChild(s),o},z=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},A=["web","webSimple","web3d","tablet","tablet3d","phone"],M=function(e,t){if(S=e,t)Z(S,!0);else{var g,r,i=!o;if(i){var d=L(S);!isNaN(d)&&d<4.4&&(i=!1)}g="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var s=S.indexOf("//");for(var h in r=s>0?S:0===s?g+S:"https://www.geogebra.org/apps/5.2.814.0/",A)if(S.slice(-1*A[h].length)===A[h]||S.slice(-1*(A[h].length+1))===A[h]+"/")return void Z(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||j(n.showToolBar)||j(n.showMenuBar)||j(n.showAlgebraInput)||j(n.enableRightClick)||n.appName&&"classic"!=n.appName?r+="web3d/":r+="webSimple/",Z(r,!1)}},Z=function(e,t){if(e.requirejs)l=e;else{"/"!==e.slice(-1)&&(e+="/"),l=e,null===t&&(t=-1===e.indexOf("http")),c=t,P="web.nocache.js",w=!1;var n=l.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?A.indexOf(n[n.length-2])>=0&&(P=n[n.length-2]+".nocache.js"):(P="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(S=n[n.length-3]).substr(0,4)?S=S.substr(4,1)+"."+S.substr(5,1):"war"!==S.substr(0,3)&&"beta"!==S.substr(0,4)||(S="5.0");var a=parseFloat(S);NaN!==a&&a<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+a+" is deprecated. Using version latest instead."),M("5.0",t))}},E=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==d?e=d:parseFloat(e)<5&&(e="5.0"),M(e,!1),null!==s&&Z(s,c),i=!0}return void 0!==n.material_id?b(D):D(),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,s=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,s=0,h=0,m=0,l=0,c=0,u=0;if(r)d=r.offsetWidth,s=Math.max(a?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(d=Math.min(window.innerWidth,document.documentElement.clientWidth),s=Math.min(window.innerHeight,document.documentElement.clientHeight),h=d):(d=window.innerWidth,s=window.innerHeight,h=window.innerWidth),e){var S=e.getBoundingClientRect();S.left>0&&S.left<=d&&(void 0===o||!o)&&("rtl"===document.dir?(l=d-S.width-S.left,c=h<=480?10:30):(c=S.left,l=h<=480?10:30),m=c+l)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(m=40,u=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(m=0,u=40))}return e&&((void 0===n||!n)&&t>0&&t+m<d?d=t:d-=m,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(s-=u)),{width:d,height:s}}(t,e.width,n,d,r&&window.GGBT_wsf_view||i,o),h=parseInt(s.width),m=e.width,l=e.height;if(void 0===m){var c=t.querySelector(".appletParameters");c&&(m=c.offsetWidth,l=c.offsetHeight)}var u=h/m,S=r?1:s.height/l;return void 0===n||n||(u=Math.min(1,u),S=Math.min(1,S)),Math.min(u,S)}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,s=0;s<n.childNodes.length;s++)if(void 0!==n.childNodes[s].className&&n.childNodes[s].className.match(/^applet_scaler/)){d=n.childNodes[s];break}if(null!==d&&null!==d.querySelector(".noscale"))return;var h=void 0!==g.id?g.id:"ggbApplet",m=window[h];null!=m&&m.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")})()},91691: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(97940).Z.API_SERVER},80932:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});n(7557),n(41498);var a=n(82100),o=n.n(a),g=n(29186),r=n.n(g),i=n(13720),d=n.n(i),s=n(80619),h=n.n(s),m=n(47074),l=n.n(m),c=n(85573),u=n.n(c),S=n(59301),P=n(8591),w=n(92832),p="codeBox___WpkVl",f=n(92310),v=n.n(f),L=n(37712),y=function(e){h()(n,e);var t=l()(n);function n(e){var a;return o()(this,n),a=t.call(this,e),u()(d()(a),"canvas",void 0),u()(d()(a),"randomNum",(function(e,t){return Math.floor(Math.random()*(t-e)+e)})),u()(d()(a),"drawPic",(function(){a.randomCode()})),u()(d()(a),"reloadPic",(function(){a.drawPic()})),u()(d()(a),"changeCode",(function(e){console.log(e.target.value,222),a.setState({value:e.target.value,showError:!1})})),u()(d()(a),"onVerify",(function(){var e;return""!==a.state.value.toLowerCase()&&a.state.value.toLowerCase()!==a.state.code.toLowerCase()?(e=!0,P.ZP.error("请输入正确的验证码"),a.reloadPic()):""===a.state.value.toLowerCase()?(e=!0,P.ZP.error("请输入验证码")):a.state.value.toLowerCase()===a.state.code.toLowerCase()&&(e=!1),a.setState({showError:e}),e})),a.canvas=S.createRef(),a.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1},a}return r()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),a=this.randomNum(e,t),o=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(a,", ").concat(o,")")}},{key:"drawText",value:function(e,t,n){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var a=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=a+"px SimHei";var o=(this.state.contentWidth-40)/(this.state.code.length-1),g=10;n>0&&(g=10+n*o);var r=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);a>40&&(r=40);var i=this.randomNum(-10,10);e.translate(g,r),e.rotate(i*Math.PI/180),e.fillText(t,0,0),e.rotate(-i*Math.PI/180),e.translate(-g,-r)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n<this.state.codeLength;n++){t+="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890"[Math.floor(57*Math.random())]}this.setState({code:t},(function(){var t=e.canvas.current.getContext("2d");t.textBaseline="bottom",t.fillStyle=e.randomColor(e.state.backgroundColorMin,e.state.backgroundColorMax),t.fillRect(0,0,e.state.contentWidth,e.state.contentHeight);for(var n=0;n<e.state.code.length;n++)e.drawText(t,e.state.code[n],n);e.drawLine(t),e.drawDot(t)}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,a=void 0===n?300:n;return(0,L.jsxs)("div",{className:v()(p,t),style:{width:a},children:[(0,L.jsx)("aside",{children:(0,L.jsx)(w.Z,{value:this.state.value,onChange:this.changeCode,placeholder:"请输入图片中的验证码"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),(0,L.jsx)("div",{className:"current",onClick:this.reloadPic,children:"看不清?换一张"})]})]})}}]),n}(S.Component),x=y},95226:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(79800),d=n.n(i),s=n(59301),h=n(78241),m=n(8591),l=n(43418),c=n(78550),u=n(92832),S=n(2595),P=n(95237),w=n(43604),p=n(61186),f=n.n(p),v=n(64606),L=n(19677),y={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},x=n(75296),b=n(42319),F=n(37712),k=(0,L.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.courseEndTime,a=(e.classroomList,e.successCallback),g=void 0===a?function(){}:a,i=e.visible,p=e.homeworkIds,L=e.courseId,k=e.isBatch,j=(e.shixunHomeworks,h.Z.useForm()),B=d()(j,1)[0],G=(0,s.useState)(!1),_=d()(G,2),C=_[0],N=_[1],T=(0,s.useState)(!1),z=d()(T,2),A=z[0],M=z[1],Z=(0,s.useState)(!1),E=d()(Z,2),D=E[0],I=E[1],R=(0,s.useState)([]),O=d()(R,2),H=O[0],Y=O[1],K=(0,s.useState)([]),W=d()(K,2),U=W[0],V=W[1],q=(0,s.useState)([]),J=d()(q,2),X=J[0],Q=J[1],$=(0,s.useState)([]),ee=d()($,2),te=ee[0],ne=ee[1],ae=(0,s.useState)([]),oe=d()(ae,2),ge=oe[0],re=oe[1],ie=(0,s.useState)([]),de=d()(ie,2),se=de[0],he=de[1],me=(0,s.useState)([]),le=d()(me,2),ce=le[0],ue=le[1],Se=(0,s.useState)([]),Pe=d()(Se,2),we=Pe[0],pe=Pe[1],fe=(0,s.useState)([]),ve=d()(fe,2),Le=ve[0],ye=ve[1];(0,s.useEffect)((function(){i?xe():Fe()}),[i]);var xe=function(){var e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.next=3,(0,x.oR)(p[0],{course_id:L});case 3:t=e.sent,I(t.no_group),k?(ue(t.all_course_groups),pe(t.all_course_groups)):(ne(t.late_course_groups),re(t.late_course_groups),Y(t.submit_course_groups),V(t.submit_course_groups)),N(!1),B.setFieldsValue({end_time:f()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),be=function(){var e=r()(o()().mark((function e(){var n,a,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=B.getFieldsValue(),a=f()(n.end_time).format("YYYY-MM-DD HH:mm"),!(k?0===Le.length:0===X.length&&0===se.length)||D){e.next=6;break}return m.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return M(!0),e.next=9,(0,x.Mc)(L,{no_group:D,homework_ids:p,group_ids:k?Le:X,end_time:a,late_group_ids:k?Le:se});case 9:r=e.sent,M(!1),0===r.status&&(Fe(),m.ZP.success("操作成功"),g(),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fe=function(){Q([]),he([]),V([]),re([])};return(0,F.jsxs)(l.Z,{centered:!0,title:"立即截止",className:y.modalWrapper,width:k||D?520:760,open:i,confirmLoading:A,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return be()},onCancel:function(){Fe(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,F.jsxs)("div",{className:y.tips,children:[(0,F.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,F.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,F.jsx)(h.Z,{form:B,layout:"vertical",children:(0,F.jsx)(h.Z.Item,{name:"end_time",label:"截止时间",children:(0,F.jsx)(c.default,{style:{width:"100%"},disabledDate:function(e){return(0,b.Q8)(e,n)},disabledTime:function(e){return(0,b.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:f()((0,v.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!D&&(0,F.jsx)(F.Fragment,{children:k?(0,F.jsxs)("div",{children:[(0,F.jsx)(u.Z,{placeholder:"搜索班级",onChange:function(e){pe(ce.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,F.jsx)(S.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ye(e)}},rowKey:"id",pagination:!1,dataSource:we,loading:C,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,F.jsxs)(P.Z,{gutter:24,children:[(0,F.jsxs)(w.Z,{span:14,children:[(0,F.jsx)("div",{className:y.homeworkType,children:"作业截止"}),(0,F.jsx)(u.Z,{placeholder:"搜索班级",onChange:function(e){V(H.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,F.jsx)("div",{className:y.tableWrapper,children:(0,F.jsx)(S.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){Q(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:C,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,F.jsxs)(w.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,F.jsx)("div",{className:y.homeworkType,children:"补交截止"}),(0,F.jsx)(u.Z,{placeholder:"搜索班级",onChange:function(e){re(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,F.jsx)("div",{className:y.tableWrapper,children:(0,F.jsx)(S.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){he(e)}},rowKey:"id",pagination:!1,loading:C,dataSource:ge,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},98041:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(79800),d=n.n(i),s=n(59301),h="imageDimensions___a7crR",m="img___Kroat",l="fullWidth___c492T",c=n(92310),u=n.n(c),S=n(71418),P=n(2859),w=n(36057),p=n(64606),f=n(37712),v=function(e){var t=e.data,n=e.className,a=e.fullWidth,g=e.style,i=void 0===g?{}:g,c=e.onClose,v=e.onOk,L=e.showFullTools,y=e.noAssociationId,x=(0,s.useRef)(null),b=(0,s.useRef)(null),F=(0,s.useRef)(null),k=(0,s.useRef)(null),j=(0,s.useState)(!1),B=d()(j,2),G=B[0],_=B[1],C=(0,s.useState)("正在加载中"),N=d()(C,2),T=N[0],z=N[1];(0,s.useEffect)((function(){F.current||(F.current=document.createElement("style"),document.head.appendChild(F.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),F.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&A()):(document.body.removeAttribute("data-custom"),F.current&&(document.head.removeChild(F.current),F.current=null))}),[null==t?void 0:t.visible]);var A=function(){var e=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),z("正在加载中"),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(){Z()},_(!1),z("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=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 _(!0),z("正在保存中"),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&&v(),e.next=13;break;case 12:null!=a&&a.id&&v(a);case 13:_(!1),z("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){b.current=new P.hP(x.current),b.current.targetRoot=k.current,b.current.addEventListener("render",M),b.current.addEventListener("beforeclose",c),L&&(b.current.availableMarkerTypes=b.current.ALL_MARKER_TYPES,b.current.uiStyleSettings.redoButtonVisible=!0,b.current.uiStyleSettings.notesButtonVisible=!0,b.current.uiStyleSettings.zoomButtonVisible=!0,b.current.uiStyleSettings.zoomOutButtonVisible=!0,b.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=b.current.uiStyleSettings,b.current.show(),null!=t&&t.snapshotData&&b.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)(s.Fragment,{children:(null==t?void 0:t.visible)&&(0,f.jsx)(S.Z,{spinning:G,tip:T,style:{position:"absolute"},children:(0,f.jsx)("div",{ref:k,className:u()(h,n,a?l:""),style:i,children:(0,f.jsx)("img",{className:m,ref:x})})})})}},78500:function(e,t,n){"use strict";n.d(t,{z:function(){return k},Z:function(){return j}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(82242),d=n.n(i),s=n(37205),h=n.n(s),m=n(79800),l=n.n(m),c=n(59301),u=n(24645),S=n(8591),P=n(43418),w=n(3113),p=n(97940),f=n(84417),v=n(37712),L=" ";function y(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var x=n(76298),b=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var F=u.Z.Dragger;function k(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+L+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var j=function(e){var t=e.value,n=e.onChange,a=e.action,g=e.data,i=e.className,s=e.maxSize,m=void 0===s?150:s,k=e.title,j=void 0===k?"上传附件":k,B=e.showRemoveModal,G=void 0!==B&&B,_=e.accept,C=void 0===_?"":_,N=e.additionalText,T=e.isDragger,z=e.number,A=void 0===z?1e3:z,M=e.aloneClear,Z=void 0!==M&&M,E=e.realTimeRemove,D=void 0===E||E,I=e.uploadText,R=e.setFileProgress,O=e.showFileProgress,H=(0,c.useState)(!1),Y=l()(H,2),K=Y[0],W=Y[1],U=(0,c.useState)(t||[]),V=l()(U,2),q=V[0],J=V[1],X=(0,c.useState)(1),Q=l()(X,2),$=Q[0],ee=Q[1];(0,c.useEffect)((function(){t&&(1===$&&J(h()(t)),ee(2),A===(null==t?void 0:t.length)&&W(!0))}),[t]);var te=function(){setTimeout((function(){q.pop(),J(h()(q))}),500)};O&&R(q.some((function(e){return"uploading"===e.status})));var ne,ae={multiple:!0,disabled:K,accept:C,withCredentials:!0,fileList:q,beforeUpload:function(e,t){var n=e.size/1024/1024;return q.concat(t).length>A?(q.pop(),J(h()(q)),S.ZP.error("最多只能上传".concat(A,"个文件")),Z?Promise.reject():(te(),!1)):n<m||(S.ZP.error("该文件无法上传。超过文件大小限制(".concat(m,"MB).")),Z?Promise.reject():(te(),!1))},data:g,action:a||"".concat(p.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,a;(q="removed"===e.file.status?e.fileList:(0,b.uniqBy)([].concat(h()(e.fileList),h()(q)),"uid"),"done"!==e.file.status||-1!==(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.status))?(q.length>=A?W(!0):W(!1),J(h()(q)),q=q.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(L)&&(e.name="".concat(e.name).concat(L).concat(y(e.size))),d()({},e)})),console.log("info:",e,q),n(q)):S.ZP.error(null===(a=e.file)||void 0===a||null===(a=a.response)||void 0===a?void 0:a.message)},onRemove:(ne=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,f.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!G){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var a;P.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,v.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(a=r()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,S.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,v.jsxs)("div",{className:"multi-upload ".concat(i||""),children:[T&&(0,v.jsxs)(F,d()(d()({},ae),{},{children:[(0,v.jsx)("p",{className:"ant-upload-drag-icon",children:(0,v.jsx)(x.Z,{})}),(0,v.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,v.jsx)("br",{}),"(单个文件最大限制为",m,"MB)"," "]}),N]})),!T&&(0,v.jsxs)(u.Z,d()(d()({},ae),{},{children:[(0,v.jsxs)(w.ZP,{disabled:K,className:"upload_button",children:[(0,v.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),j]}),(0,v.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:I||"(单个文件最大".concat(m,"MB)")})]}))]})}},13014:function(e,t,n){"use strict";n(59301);var a=n(6848),o=n(37712);t.Z=function(e){var t=e.value,n=e.visible,g=void 0===n||n,r=e.children;return(0,o.jsx)(o.Fragment,{children:g?(0,o.jsx)(a.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,o.jsx)("span",{children:r})}):r})}},10197: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),s=n(78241),h=n(3113),m=n(89780),l=n.n(m),c=(n(98337),n(47820),n(37712)),u=d.default.Option,S={labelCol:{span:4},wrapperCol:{span:20}},P={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,s=(0,i.useRef)(),h=(0,i.useState)(),m=r()(h,2),u=m[0],S=m[1];return(0,i.useEffect)((function(){if(u){var e=function(e){var t=e.getValue();n&&n(t)};return u.on("change",e),function(){u.off("change",e)}}}),[u,n]),(0,i.useEffect)((function(){u&&u.setOption("mode",a)}),[u,a]),(0,i.useEffect)((function(){u&&(t===u.getValue()&&""!==t||setTimeout((function(){u.setValue(t||"")}),300))}),[u,t]),(0,i.useEffect)((function(){if(s.current&&!u){var e=l().fromTextArea(s.current,o()({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},d));S(e)}}),[s.current,u]),(0,c.jsx)("div",{className:"my-codemirror-container",children:(0,c.jsx)("textarea",{ref:s})})}t.Z=function(e){var t=e.callback,n=e.onCancel,a=(0,i.useState)("python"),g=r()(a,2),m=g[0],l=g[1];return(0,c.jsxs)(s.Z,o()(o()({},S),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,c.jsx)(s.Z.Item,{label:"代码语言",name:"language",children:(0,c.jsx)(d.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){l(P[e][1])},children:Object.keys(P).map((function(e){return(0,c.jsx)(u,{value:e,children:P[e][0]},e)}))})}),(0,c.jsx)(s.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,c.jsx)(w,{mode:m})}),(0,c.jsxs)("div",{className:"flex-container flex-end",children:[(0,c.jsx)(h.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,c.jsx)(h.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},85667:function(e,t,n){"use strict";n.d(t,{Z:function(){return ve}});var a=n(91232),o=n.n(a),g=n(79800),r=n.n(g),i=n(85573),d=n.n(i),s=n(59301),h=n(89780),m=n.n(h),l=n(76374),c=(n(98337),n(6313),n(25717),n(99498),n(25419),n(67549),n(76277)),u=n(37712),S=function(e){var t=e.value,n=void 0===t?"":t,a=(e.className,e.showTextOnly,e.showLines,e.style,(0,s.useMemo)((function(){return""}),[n]));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})},P=n(82242),w=n.n(P),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,u.jsxs)("a",{title:n,className:r,onClick:function(){t(o)},children:[(0,u.jsx)("i",{className:"".concat(a)}),i]})}var v=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,s=[].concat(p,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,u.jsxs)("ul",{className:"markdown-toolbar-container",children:[!i&&s.map((function(e,t){return(0,u.jsx)("li",{children:e.actionName?(0,u.jsx)(f,w()(w()({},e),{},{onActionCallback:o})):(0,u.jsx)("span",{className:"v-line"})},t)})),n?(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,a?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),d&&(0,u.jsx)("li",{children:d}),(0,u.jsx)("li",{className:"btn-full-screen",children:(0,u.jsx)(f,{icon:"".concat(g?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:g?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},L=n(80238),y=n(78241),x=n(92832),b=n(3113),F={labelCol:{span:4},wrapperCol:{span:20}},k=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(y.Z,w()(w()({},F),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,u.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsxs)("div",{className:"flex-container flex-end",children:[(0,u.jsx)(b.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(b.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},j=n(10197),B=n(71339),G=n(43418),_=n(95237),C=n(98041),N=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,u.jsx)(G.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,u.jsx)(_.Z,{style:{height:"100vh"},children:(0,u.jsx)(C.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),z=n.n(T),A=n(41498),M=n.n(A),Z=n(37205),E=n.n(Z),D=n(12378);function I(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(I,go.CommandHandler),I.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},I.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")},I.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")},I.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")},I.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")},I.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")}},I.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")}},I.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")},I.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")},I.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},I.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())},I.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){I._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},I.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){I._assignZOrder(e,t.get(e.layer)-1-I._findGroupDepth(e))})),e.commitTransaction("pushToBack")},I._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){I._assignZOrder(e,t+1,n)}))},I._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,I._findGroupDepth(e))})),t+1}return 0},I.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)}},I.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},I.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")},I.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))},I.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,s=n.directionPoint(d),h=this._angleCloseness(s,e);if(h<=45){var m=n.distanceSquaredPoint(d);(m*=1+Math.sin(h*Math.PI/180))<o&&(o=m,g=i)}}}return g},I.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},I.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)}},I.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},I.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},I.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(I.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(I.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 R=I,O=(n(27499),n(43604)),H=n(36057),Y="myPaletteDiv___Xjz2I",K="flowChartWrp____f45r",W="maxH60___Pd4Re";var U=function(e){var t=e.onCancel,n=e.callback,a=(0,s.useRef)(),o=(0,s.useRef)(),g=(0,s.useRef)(),i=(0,s.useRef)(!1),d=(0,s.useRef)(!1),h=(0,s.useState)(0),m=r()(h,2),l=m[0],c=m[1],S=function(){var e=M()(z()().mark((function e(){var t,o;return z()().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,s.useEffect)((function(){return setTimeout((function(){!function(){var e=D.bx.make,t="#ff3333",n="#3358ff",r="#25ad23",i="#d533ff",d="#7d33ff",s="#ff6233",h="#ffffff",m="#000000",l="#fffcd5",c="#d5ebff",u="#f2dfe0",S="#a5d2fa",P="#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 D.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(D.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(D.z6.Top)||t.equals(D.z6.Bottom)?25:18,height:t.equals(D.z6.Top)||t.equals(D.z6.Bottom)?18:25,fill:"orange",stroke:h,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 v(t){return e(D.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 L(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(D.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:L(n,t),contextClick:L(n,t)})}function x(){return[e("ContextMenuButton",e(D.s_,"Horizontal",y(h,"fill"),y(l,"fill"),y(c,"fill"),y(u,"fill"))),e("ContextMenuButton",e(D.s_,"Horizontal",y(P,"fill"),y(w,"fill"),y(S,"fill"),y(p,"fill")))]}function b(){return[e("ContextMenuButton",e(D.s_,"Horizontal",y(m),y(r),y(n),y(t))),e("ContextMenuButton",e(D.s_,"Horizontal",y(h),y(i),y(d),y(s)))]}function F(t,n){return n||(n="thickness"),e(D.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:L(n,t),contextClick:L(n,t)})}function k(t,n){return n||(n="dash"),e(D.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:L(n,t),contextClick:L(n,t)})}function j(){return[e("ContextMenuButton",e(D.s_,"Horizontal",F(1),F(2),F(3),F(4))),e("ContextMenuButton",e(D.s_,"Horizontal",k(null),k([2,4]),k([4,4])))]}function B(t,n){return n||(n="figure"),e(D.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:L(n,t),contextClick:L(n,t)})}function G(t){return e(D.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function _(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(D.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L("dir",t),contextClick:L("dir",t)})}function C(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",D.z6.stringify(D.z6.AllSides)),(t?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(D.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 N(t,n){var a=0,o=D.z6.RightSide;t.equals(D.z6.Top)?(a=270,o=D.z6.TopSide):t.equals(D.z6.Left)?(a=180,o=D.z6.LeftSide):t.equals(D.z6.Bottom)&&(a=90,o=D.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",D.z6.stringify(o)),(n?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(D.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 D.S0(o.current,{padding:20,grid:e(D.s_,"Grid",e(D.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.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(R),"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(D.NB,"Auto",{locationSpot:D.z6.Center,locationObjectName:"SHAPE",desiredSize:new D.$u(120,60),minSize:new D.$u(40,40),resizable:!0,resizeCellSize:new D.$u(10,10),rotatable:!0},new D.KX("location","loc",D.E9.parse).makeTwoWay(D.E9.stringify),new D.KX("desiredSize","size",D.$u.parse).makeTwoWay(D.$u.stringify),e(D.bn,{name:"SHAPE",fill:h,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.z6.AllSides,toSpot:D.z6.AllSides},new D.KX("figure"),new D.KX("fill"),new D.KX("stroke","borderColor"),new D.KX("strokeWidth","thickness"),new D.KX("strokeDashArray","dash")),e(D.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(D.al,{margin:1,textAlign:"center",overflow:D.al.OverflowEllipsis,editable:!0},new D.KX("text").makeTwoWay(),new D.KX("stroke","color"))),a.current.nodeTemplate.toolTip=e("ToolTip",e(D.s_,"Vertical",{maxSize:new D.$u(200,NaN)},e(D.al,{font:"bold 10pt sans-serif",textAlign:"center"},new D.KX("text")),e(D.al,{font:"10pt sans-serif",textAlign:"center"},new D.KX("text","details")))),a.current.nodeTemplate.selectionAdornmentTemplate=e(D.uz,"Spot",e(D.Vm,{padding:10}),f(D.z6.Top,"TriangleUp"),f(D.z6.Left,"TriangleLeft"),f(D.z6.Right,"TriangleRight"),f(D.z6.Bottom,"TriangleDown"),v({alignment:new D.z6(.75,0)})),a.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(D.s_,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(D.s_,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(D.s_,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),x(),b(),j()),a.current.groupTemplate=e(D.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:D.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 D.KX("location","loc",D.E9.parse).makeTwoWay(D.E9.stringify),e(D.s_,"Auto",{name:"BODY"},e(D.bn,{parameter1:10,fill:h,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.z6.AllSides,toSpot:D.z6.AllSides},new D.KX("fill"),new D.KX("stroke","color"),new D.KX("strokeWidth","thickness"),new D.KX("strokeDashArray","dash")),e(D.Vm,{background:"transparent",margin:20})),e(D.al,{alignment:D.z6.Top,alignmentFocus:D.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new D.KX("text"),new D.KX("stroke","color"))),a.current.groupTemplate.selectionAdornmentTemplate=e(D.uz,"Spot",e(D.s_,"Auto",e(D.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(D.Vm,{margin:1.5})),v({alignment:D.z6.TopRight,alignmentFocus:D.z6.BottomRight})),a.current.groupTemplate.contextMenu=e("ContextMenu",x(),b(),j()),a.current.linkTemplate=e(D.rU,{layerName:"Foreground",routing:D.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new D.KX("fromSpot","fromSpot",D.z6.parse),new D.KX("toSpot","toSpot",D.z6.parse),new D.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new D.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new D.KX("points").makeTwoWay(),e(D.bn,{strokeWidth:2},new D.KX("stroke","color"),new D.KX("strokeWidth","thickness"),new D.KX("strokeDashArray","dash")),e(D.bn,{segmentIndex:0,segmentOffset:new D.E9(15,0),segmentOrientation:D.rU.OrientAlong,alignmentFocus:D.z6.Right,figure:"circle",width:10,strokeWidth:0},new D.KX("fill","color"),new D.KX("visible","dir",(function(e){return 1===e}))),e(D.bn,{segmentIndex:-1,segmentOffset:new D.E9(-10,6),segmentOrientation:D.rU.OrientPlus90,alignmentFocus:D.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.KX("fill","color"),new D.KX("visible","dir",(function(e){return e>=1})),new D.KX("width","thickness",(function(e){return 7+3*e})),new D.KX("height","thickness",(function(e){return 7+3*e})),new D.KX("segmentOffset","thickness",(function(e){return new D.E9(-15,4+1.5*e)}))),e(D.bn,{segmentIndex:0,segmentOffset:new D.E9(15,-6),segmentOrientation:D.rU.OrientMinus90,alignmentFocus:D.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.KX("fill","color"),new D.KX("visible","dir",(function(e){return 2===e})),new D.KX("width","thickness",(function(e){return 7+3*e})),new D.KX("height","thickness",(function(e){return 7+3*e})),new D.KX("segmentOffset","thickness",(function(e){return new D.E9(-15,4+1.5*e)}))),e(D.al,{alignmentFocus:new D.z6(0,1,-4,0),editable:!0},new D.KX("text").makeTwoWay(),new D.KX("stroke","color"))),a.current.linkTemplate.selectionAdornmentTemplate=e(D.uz,e(D.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:G(2)},new D.KX("pathPattern","thickness",G)),v({alignmentFocus:new D.z6(0,0,-6,-4)})),a.current.linkTemplate.contextMenu=e("ContextMenu",b(),j(),e("ContextMenuButton",e(D.s_,"Horizontal",_(0),_(1),_(2))),e("ContextMenuButton",e(D.s_,"Horizontal",e(D.s_,"Spot",C(!1),N(D.z6.Top,!1),N(D.z6.Left,!1),N(D.z6.Right,!1),N(D.z6.Bottom,!1)),e(D.s_,"Spot",{margin:new D.Zt(0,0,0,2)},C(!0),N(D.z6.Top,!0),N(D.z6.Left,!0),N(D.z6.Right,!0),N(D.z6.Bottom,!0)))));var T=new D.YI(g.current,{maxSelectionCount:1,linkTemplate:e(D.rU,{locationSpot:D.z6.Center,selectionAdornmentTemplate:e(D.uz,"Link",{locationSpot:D.z6.Center},e(D.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(D.bn,{toArrow:"Standard",stroke:null}))},{routing:D.rU.AvoidsNodes,curve:D.rU.JumpOver,corner:5,toShortLength:4},new D.KX("points"),e(D.bn,{isPanelMain:!0,strokeWidth:2}),e(D.bn,{toArrow:"Standard",stroke:null})),model:new D.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(E()(D.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(D.NB,"Auto",{locationSpot:D.z6.Center},new D.KX("location","location",D.E9.parse).makeTwoWay(D.E9.stringify),e(D.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 D.KX("stroke").makeTwoWay(),new D.KX("fill").makeTwoWay(),new D.KX("figure")),e(D.al,{margin:new D.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new D.$u(16,16),maxSize:new D.$u(10,NaN),textAlign:"center",editable:!0},new D.KX("key").makeTwoWay())),setTimeout((function(){a.current.grid=e(D.s_,"Grid",e(D.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.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),c(l+1),function(){a.current=null}}),[]),(0,u.jsx)("div",{ref:d,className:i.current?"".concat(W," body-overflow-initial"):"body-overflow-initial",children:(0,u.jsx)(G.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!l,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,u.jsxs)(_.Z,{children:[(0,u.jsx)(O.Z,{flex:1,children:"插入流程图"}),(0,u.jsx)(O.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")}c(l+1)},children:(0,u.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,u.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:K,children:[(0,u.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,u.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,u.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,u.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:g})]}),(0,u.jsx)("div",{style:{flex:1,position:"relative"},children:(0,u.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,u.jsx)("div",{className:"tr",children:(0,u.jsx)(b.ZP,{size:"large",onClick:S,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},V=n(5112),q=n(88897),J=V.ZP.Group,X={margin:"0 8px"},Q=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(y.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,u.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,u.jsx)("span",{style:X,children:"单元格数:"}),(0,u.jsx)("span",{style:X,children:"行数"}),(0,u.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,u.jsx)(q.Z,{})}),(0,u.jsx)("span",{style:X,children:"列数"}),(0,u.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,u.jsx)(q.Z,{})})]}),(0,u.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,u.jsx)("span",{style:X,children:"对齐方式:"}),(0,u.jsx)(y.Z.Item,{name:"align",children:(0,u.jsxs)(J,{children:[(0,u.jsx)(V.ZP,{value:"default",children:(0,u.jsx)("i",{className:"fa fa-align-justify"})}),(0,u.jsx)(V.ZP,{value:"left",children:(0,u.jsx)("i",{className:"fa fa-align-left"})}),(0,u.jsx)(V.ZP,{value:"center",children:(0,u.jsx)("i",{className:"fa fa-align-center"})}),(0,u.jsx)(V.ZP,{value:"right",children:(0,u.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,u.jsxs)("div",{className:"flex-container flex-end",children:[(0,u.jsx)(b.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(b.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(94618),te=n.n(ee),ne=(0,s.forwardRef)((function(e,t){var n=e.use3d,a=e.width,o=e.height,g=e.callback,i=(e.showSaveButton,(0,s.useRef)()),d=(0,s.useRef)(),h=(0,s.useState)(!1),m=r()(h,2),l=m[0],c=m[1],S=(0,s.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,s.useEffect)((function(){d.current=new(te())(S.current,!0),window.onload=function(){d.current.inject("applet_container")}}),[]);var P=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return g&&g(e),e};return(0,s.useEffect)((function(){S.current.appName=l?"3D":"graphing",d.current.inject("applet_container")}),[l]),(0,s.useEffect)((function(){c(n)}),[n]),(0,s.useImperativeHandle)(t,(function(){return{getImgData:P}})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:i}),(0,u.jsxs)(_.Z,{align:"middle",children:[(0,u.jsx)(O.Z,{flex:1,children:(0,u.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:l,onChange:function(e){return c(e)}})}),(0,u.jsx)(O.Z,{children:(0,u.jsx)(b.ZP,{size:"large",onClick:P,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ae=n(30324),oe=n(8591),ge="link",re="upload-image",ie="add-flowchart",de="draw-image",se="code-block",he="add-table",me="------------",le={default:me,left:":".concat(me),center:":".concat(me,":"),right:"".concat(me,":")},ce=n(35278);var ue="@▁▁@",Se=["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 Pe(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,"添加链接"),se,"添加代码块"),re,"添加图片"),de,"添加画图"),ie,"插入流程图"),he,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ve=function(e){var t=e.defaultValue,n=void 0===t?"":t,a=e.onChange,g=e.width,i=void 0===g?"100%":g,h=e.height,P=void 0===h?400:h,w=e.miniToolbar,p=void 0!==w&&w,f=e.isFocus,y=void 0!==f&&f,x=e.watch,b=e.insertTemp,F=e.mode,_=void 0===F?"markdown":F,C=e.id,T=void 0===C?"markdown-editor-id":C,z=e.showResizeBar,A=void 0!==z&&z,M=e.noStorage,Z=void 0!==M&&M,E=e.showNullButton,D=void 0!==E&&E,I=e.showNullProgramButton,R=void 0!==I&&I,O=e.hidetoolBar,H=void 0!==O&&O,Y=e.fullScreen,K=void 0!==Y&&Y,W=e.onBlur,V=e.onCMBeforeChange,q=e.onFullScreen,J=e.className,X=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,me=void 0!==te&&te,we=e.disabledFill,ve=void 0!==we&&we,Le=e.placeholder,ye=void 0===Le?"":Le,xe=e.values,be=void 0===xe?"":xe,Fe=e.extraUse,ke=(0,s.useState)(null),je=r()(ke,2),Be=je[0],Ge=je[1],_e=(0,s.useState)(n),Ce=r()(_e,2),Ne=Ce[0],Te=Ce[1],ze=(0,s.useState)(x),Ae=r()(ze,2),Me=Ae[0],Ze=Ae[1],Ee=(0,s.useState)(K),De=r()(Ee,2),Ie=De[0],Re=De[1],Oe=(0,s.useState)(""),He=r()(Oe,2),Ye=He[0],Ke=He[1],We=(0,s.useState)(0),Ue=r()(We,2),Ve=Ue[0],qe=Ue[1],Je=(0,s.useState)(P),Xe=r()(Je,2),Qe=Xe[0],$e=Xe[1],et=(0,s.useState)(!1),tt=r()(et,2),nt=(tt[0],tt[1]),at=(0,s.useState)(0),ot=r()(at,2),gt=ot[0],rt=ot[1],it=(0,s.useState)(0),dt=r()(it,2),st=dt[0],ht=dt[1],mt=(0,s.useRef)(),lt=(0,s.useRef)(),ct=(0,s.useRef)(),ut=(0,s.useRef)();(0,s.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Te(be),null==Be||Be.setValue(be),window.scrollTo(0,e)}),[be]),(0,s.useEffect)((function(){null==q||q(Ie)}),[Ie]),(0,s.useEffect)((function(){if(mt.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"==_)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(),s=d.name.split(".").pop();(0,B.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(".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>")):Se.includes(s)?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=m().fromTextArea(mt.current,{mode:_,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,s=r>i?3:4;if(-1===ue.indexOf(g))return null;if(console.log("change1:",t,e,o,a,d,r,i,g),d>=0&&a.ch-d<5){var h=d+s;return n.replaceRange("",{line:a.line,ch:d},{line:a.line,ch:h}),{line:a.line,ch:h}}return null}(e);n&&t.preventDefault()}})),y&&t.focus(),t.on("paste",e),me&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ge(t),function(){t.off("paste",e)}}}),[]);var St=(0,s.useCallback)((function(){lt.current}),[Qe,lt,Ie]);(0,s.useEffect)((function(){if(Be){var e=function(){var e=new l.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)&&(St(),Be.setSize("100%","100%"),Be.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Be,St]),(0,s.useEffect)((function(){if(Be){for(var e=[],t=function(){var t=r()(a[n],2),o=t[0],g=t[1],i=d()({},o,(function(){Pt(g)}));e.push(i),Be.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];Be.removeKeyMap(a)}}}}),[Be]),(0,s.useEffect)((function(){K!==Ie&&Re(K)}),[K]),(0,ce.Z)((function(){if(!Z&&Ve>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(T);e>=Ve+1e4&&(!t||t!==Ne)&&(window.sessionStorage.setItem(T,Ne),nt(!0))}}),1e4),(0,s.useEffect)((function(){Ze(x)}),[Be,x]),(0,s.useEffect)((function(){Be&&y&&Be.focus()}),[Be,y]),(0,s.useEffect)((function(){if(Me&&Be){var e=function(e){var t=e.target;if(ut.current){var n=t.scrollTop/t.scrollHeight;ut.current.scrollTop=ut.current.scrollHeight*n}},t=Be.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Be,Me]),(0,s.useEffect)((function(){if(Be&&V){var e=function(e,t){V(e,t)};return Be.on("beforeChange",e),function(){Be.off("beforeChange",e)}}}),[Be,V]),(0,s.useEffect)((function(){if(Be&&W){var e=function(){W(Be.getValue())};return Be.on("blur",e),function(){Be.off("blur",e)}}}),[Be,W]),(0,s.useEffect)((function(){if(Be){var e=function(e,t){var n=e.getValue();Te(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),a&&(R?a(n,Lt(n)):a(n))};return Be.on("change",e),function(){Be.off("change",e)}}}),[Be,a]),(0,s.useEffect)((function(){if(Be)if(null==n)Be.setValue(""),Te("");else{var e=window.scrollY||window.pageYOffset;n!==Be.getValue()&&(Be.setValue(n),Te(n),Be.setCursor(me?1:Be.lineCount(),0),window.scrollTo(0,e))}}),[Be,n]);var Pt=(0,s.useCallback)((function(e){var t=Be.getCursor(),n=Be.getSelection(),a=n.split("\n");switch(e){case"bold":return Be.replaceSelection("**"+n+"**"),""===n&&Be.setCursor(t.line,t.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+n+"*"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+n+"`"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"inline-latex":return Ke("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+n+"\n```"),Be.setCursor(t.line+1,n.length+1),Be.focus();case"line-break":return Be.replaceSelection("<br/>\n"),Be.focus();case"list-ul":return""===n?Be.replaceSelection("- "+n):Be.replaceSelection(a.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Be.focus();case"list-ol":return""===n?Be.replaceSelection("1. "+n):Be.replaceSelection(a.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Be.focus();case"add-null-ch":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("▁"),Be.focus();case"add-signal":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("@▁@"),Be.focus();case"add-multiple":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection(ue),Be.focus();case"inster-template-1":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return Ze(!Me),Be.focus();case"trigger-full-screen":return Re(!Ie),Be.focus();case ge:return void Ke(ge);case se:return void Ke(se);case re:return void Ke(re);case de:return void Ke(de);case"maths-latex":return void Ke("maths-latex");case ie:return void Ke(ie);case he:return void Ke(he);default:throw new Error}}),[Be,Me,Ie]),wt=(0,s.useCallback)((function(e,t){var n,a,o,g,r;switch(Ke(""),Ye){case ge:var i=e.title,d=e.link;return Be.replaceSelection("[".concat(i,"](").concat(d,")")),Be.focus();case se:var s=e.language,h=e.content;return Be.replaceSelection(["```"+s,h,"```"].join("\n")),Be.focus();case"maths-latex":for(var m=atob(e),l=new Uint8Array(m.length),c=0;c<m.length;c++)l[c]=m.charCodeAt(c);var u=new Blob([l],{type:"image/png"});(0,B.I)(u,(function(e){e.id?Be.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Be.replaceSelection("`$$"+e+"$$`");break;case re:case de:case"add-flowchart":var S=e.src,P=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?P?Be.replaceSelection(".concat(S,' "').concat(P,'" )')):Be.replaceSelection("")):(null==w||null===(g=w.type)||void 0===g?void 0:g.indexOf("video"))>-1?Be.replaceSelection('<video width="100%" controls src="'.concat(S,'"></video>')):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Be.replaceSelection('<a href="'.concat(S,"?type=").concat(w.type,'&disposition=inline" target="_blank">').concat(w.name,"</a>")):Se.includes(p)?Be.replaceSelection('<a href="'.concat(S,'?type=office&disposition=inline" target="_blank">').concat(w.name,"</a>")):Be.replaceSelection("[".concat(w.name,"](").concat(S,")")),Be.focus();case he:for(var f=e.row,v=e.col,L=e.align,y="\n",x=0;x<f;x++){for(var b=[],F=[],k=0;k<v;k++)1===x&&F.push(le[L]),b.push(" ");1===x&&(y+="| ".concat(F.join(" | ")," |\n")),y+="| ".concat(b.join(1===v?"":" | ")," |\n")}return Be.replaceSelection(y+"\n"),Be.focus();default:throw new Error}}),[Be,Ye]),pt=(0,s.useMemo)((function(){switch(Ye){case ge:return(0,u.jsx)(k,{callback:wt,onCancel:ft});case se:return(0,u.jsx)(j.Z,{callback:wt,onCancel:ft});case re:return(0,u.jsx)(B.Z,{callback:wt,onCancel:ft});case ie:return(0,u.jsx)(U,{callback:wt,onCancel:ft});case he:return(0,u.jsx)(Q,{callback:wt,onCancel:ft});case"maths-latex":return(0,u.jsx)(ne,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,u.jsx)(ae.Z,{showSaveButton:!0,callback:wt});default:return null}}),[Ye]);function ft(){Ke("")}(0,s.useEffect)((function(){if(ct.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(P+t+"px")}},a=ct.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)}}}),[Be,ct]),(0,s.useEffect)((function(){$e(P)}),[P]);var vt={width:Pe(i),height:Pe(Qe)},Lt=((0,s.useMemo)((function(){if(Ve){var e=new Date(Ve),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}),[Ve]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,a){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,s.useEffect)((function(){fe[Ye]&&Ye!==de&&Ye!==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),ht(n)}),0)}),[Ye]);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,u.jsxs)(s.Fragment,{children:[(0,u.jsx)("div",{className:"markdown-editor-wrapper",ref:lt,children:(0,u.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Me?"on-preview":""," ").concat(p?"mini":""," ").concat(Ie?"full-screen":""),style:vt,children:[(0,u.jsx)(v,{insertTemp:b,watch:Me,fullScreen:Ie,showNullButton:D,showNullProgramButton:R,onActionCallback:Pt,hidetoolBar:H,extraUse:Fe}),(0,u.jsxs)("div",{className:"markdown-editor-body",children:[(0,u.jsx)("div",{className:"codemirror-container",children:(0,u.jsx)("textarea",{ref:mt,placeholder:ye})}),Me?(0,u.jsxs)("div",{ref:ut,className:"preview-container",children:["stex"===_&&(0,u.jsx)(S,{value:Ne}),"stex"!==_&&(0,u.jsx)(c.Z,{disabledFill:ve,showProgramFill:R,value:Ne})]}):null]})]})}),A?(0,u.jsx)("a",{ref:ct,className:"editor-resize"}):null,Ye===de&&(0,u.jsx)(N,{callback:wt,onCancel:ft}),Ye===ie&&(0,u.jsx)(U,{callback:wt,onCancel:ft}),(0,u.jsx)(L.Z,{children:fe[Ye]&&Ye!==de&&Ye!==ie?(0,u.jsx)(G.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:gt,top:st},title:(0,u.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-gt,n=e.clientY-st;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),ht(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:fe[Ye]}),open:!0,onCancel:ft,footer:null,destroyOnClose:!0,width:Ye===ie?"1200px":null,height:Ye===ie?"80vh":null,className:"markdown-popup-form",children:pt}):null})]})}},71339: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),s=n(92832),h=n(3113),m=n(91691),l=n(59301),c=n(37712),u=i.Z.useForm,S={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},w=function(e){var t=e.callback,n=e.onCancel,a=u(),g=r()(a,1)[0],m=(0,l.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,c.jsxs)(i.Z,o()(o()({form:g},P),{},{className:"upload-image-panel",onFinish:function(e){t(e,m.current)},style:{width:470,overflow:"hidden"},children:[(0,c.jsx)(i.Z.Item,{label:"图片地址",required:!0,children:(0,c.jsxs)("div",{className:"flex-container",children:[(0,c.jsx)(i.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,c.jsx)(s.Z,{style:S})}),(0,c.jsx)(p,{onFileChange:function(e){var t=e.target.files[0];m.current=t,f(t,w)}})]})}),(0,c.jsx)(i.Z.Item,{label:"图片描述",name:"alt",children:(0,c.jsx)(s.Z,{style:{width:264}})}),(0,c.jsxs)(i.Z.Item,{style:{textAlign:"right"},children:[(0,c.jsx)(h.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,c.jsx)(h.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function p(e){var t=e.onFileChange;return(0,c.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,c.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(m.KI,"/api/attachments.json")),a.send(n)}},80238:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(82100),o=n.n(a),g=n(29186),r=n.n(g),i=n(80619),d=n.n(i),s=n(47074),h=n.n(s),m=n(59301),l=n(4676),c=function(e){d()(n,e);var t=h()(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,l.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(m.Component)},35278: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])}},62247:function(e,t,n){"use strict";var a=n(7557),o=n.n(a),g=n(85573),r=n.n(g),i=n(41498),d=n.n(i),s=n(82242),h=n.n(s),m=n(37205),l=n.n(m),c=n(79800),u=n.n(c),S=n(39647),P=n.n(S),w=n(59301),p=n(78241),f=n(8591),v=n(43418),L=n(95237),y=n(5112),x=n(88897),b=n(43604),F=n(78550),k=n(24905),j=n(61186),B=n.n(j),G=n(36057),_=n(71763),C=n(64606),N=n(19677),T=n(61835),z=n(75296),A=n(42319),M=n(37712),Z=["classroomList","dispatch","courseEndTime","onWindowBack"];t.Z=(0,N.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,a,g,i,s,m,c,S,j,E,D=e.classroomList,I=e.dispatch,R=e.courseEndTime,O=e.onWindowBack,H=P()(e,Z),Y=(0,N.useParams)(),K=p.Z.useForm(),W=u()(K,1)[0],U=(0,w.useState)(1),V=u()(U,2),q=V[0],J=V[1],X=(0,w.useState)([]),Q=u()(X,2),$=Q[0],ee=Q[1],te=(0,w.useState)(0),ne=u()(te,2),ae=(ne[0],ne[1]),oe=(0,w.useState)(2e3),ge=u()(oe,2),re=(ge[0],ge[1],(0,w.useState)(!0)),ie=u()(re,2),de=(ie[0],ie[1]),se=(0,w.useState)(!1),he=u()(se,2),me=he[0],le=(he[1],(0,w.useState)(!1)),ce=u()(le,2),ue=ce[0],Se=(ce[1],(0,w.useState)([])),Pe=u()(Se,2),we=Pe[0],pe=Pe[1],fe=(0,w.useState)(!0),ve=u()(fe,2),Le=ve[0],ye=ve[1],xe=(0,w.useState)(!(null!==(t=D.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),be=u()(xe,2),Fe=be[0],ke=be[1],je=(0,w.useState)([0,0,0]),Be=u()(je,2),Ge=Be[0],_e=Be[1];(0,w.useEffect)((function(){if("立即发布"===D.actionTabs.key){var e,t,n,a;if(ze(),null!==(e=D.actionTabs)&&void 0!==e&&null!==(e=e.selectArrsAll)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.can_publish)_e(l()(null===(n=D.actionTabs)||void 0===n||null===(n=n.selectArrsAll)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.difficult_count));else _e(l()(null===(a=D.actionTabs)||void 0===a||null===(a=a.selectArrsAll)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.difficult_settings));if(ke(!(null!==(t=D.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),Ce(),2===D.actionTabs.type){var o,g=null===(o=D.actionTabs.selectArrsAll)||void 0===o?void 0:o[0];ye(g.unified_setting)}else ye(!1)}}),[D.actionTabs]),(0,w.useEffect)((function(){if(me){if(ue)return;I({type:"classroomList/setActionTabs",payload:{}}),(0,_.GJ)()?(I({type:"classroomList/getClassroomTeacherCommonList",payload:h()(h()({},D.actionTabs.params),{},{type:1})}),I({type:"shixunHomeworks/getWorkList",payload:h()({},Y)})):I({type:"classroomList/getClassroomCommonList",payload:h()({},D.actionTabs.params)})}}),[me]);var Ce=function(){var e=d()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de(!0),e.next=3,(0,z.c_)(h()(h()({},Y),{},{page:t||q,limit:2e4,homework_id:1===D.actionTabs.type?"":D.actionTabs.selectArrs[0]}));case 3:null==(n=e.sent)||n.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),n&&(ee(l()(null==n?void 0:n.course_groups)),ae(null==n?void 0:n.course_groups_count),de(!1),t||W.setFieldsValue(r()(r()({},"publish_time",B()(B()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",B()(B()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){(0,_.GJ)()?D.actionTabs.detail?(I({type:"shixunHomeworks/setActionTabs",payload:{}}),I({type:"shixunHomeworks/getWorkList",payload:h()({},Y)}),I({type:"shixunHomeworks/getWorkSetting",payload:h()({},Y)})):I({type:"classroomList/getClassroomTeacherCommonList",payload:h()(h()({},D.actionTabs.params),{},{type:5,category:D.actionTabs.params.categoryId})}):I({type:"classroomList/getClassroomCommonList",payload:h()({},D.actionTabs.params)})},Te=function(){var e=d()(o()().mark((function e(){var t,n,a,g;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,_.Rm)()||null!==(t=D.AssistantObject.hack)&&void 0!==t&&t.can_publish){e.next=4;break}return f.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),Ee(!1),e.abrupt("return");case 4:if(!((a=h()({},W.getFieldsValue())).end_time<=a.publish_time)){e.next=9;break}return f.ZP.info("截止时间不能大于或等于发布时间"),Ee(!1),e.abrupt("return");case 9:if(!((null==we?void 0:we.length)<=0&&!Le&&$.length>0)){e.next=13;break}return f.ZP.info("发布班级不能为空"),Ee(!1),e.abrupt("return");case 13:if(0!==Ge.reduce((function(e,t){return e+t}))||Fe){e.next=17;break}return f.ZP.info("简单适中困难题数相加不能为0"),Ee(!1),e.abrupt("return");case 17:return g={homework_ids:l()(D.actionTabs.selectArrs),group_ids:we.length>0?we.map((function(e){return e.id})):null===(n=D.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:B()(a.end_time).format("YYYY-MM-DD HH:mm"),publish_time:B()(a.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Ge?void 0:Ge.map((function(e){return e})),send_type:Fe?"0":"1",unified_setting:!we.length},Ee(!0),e.next=21,(0,G.ZP)("/api/courses/".concat(Y.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:h()({},g)});case 21:if(0!==e.sent.status){e.next=35;break}if(Ee(!1),(0,C.L9)(["教学课堂","图文作业","立即发布"]),f.ZP.success("发布成功"),I({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),!O){e.next=30;break}return O(),e.abrupt("return");case 30:H.onCallback&&H.onCallback(),Ne(),"0"===localStorage.getItem("Noviceguide")||I({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,M.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}}),e.next=36;break;case 35:Ee(!1);case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ze=function(){J(1),ee([]),pe([])},Ae=(0,w.useState)(!1),Me=u()(Ae,2),Ze=Me[0],Ee=Me[1];return(0,M.jsxs)(v.Z,{width:600,confirmLoading:Ze,centered:!0,title:"发布作业",open:"立即发布"===D.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Te,onCancel:function(){ze(),I({type:"classroomList/setActionTabs",payload:{}}),O?O():Ne()},children:[(0,M.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,M.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),$&&(0,M.jsxs)(p.Z,{form:W,children:[(0,M.jsxs)("div",{style:{paddingLeft:0},children:[2===D.actionTabs.type&&(0,M.jsxs)(L.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,M.jsxs)(y.ZP.Group,{value:Fe,disabled:!(null!==(n=D.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.can_publish),onChange:function(e){ke(e.target.value)},children:[(0,M.jsx)(y.ZP,{value:!0,children:"全部固定试题"}),(0,M.jsx)(y.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!Fe&&(0,M.jsxs)(L.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{style:{marginRight:65}}),(0,M.jsxs)("span",{children:["简单题数 ",(0,M.jsx)(x.Z,{value:Ge[0],onChange:function(e){Ge[0]=e,_e(l()(Ge))},min:0,disabled:!(null!==(a=D.actionTabs)&&void 0!==a&&null!==(a=a.selectArrsAll)&&void 0!==a&&null!==(a=a[0])&&void 0!==a&&a.can_publish),placeholder:"最大".concat(null===(g=D.actionTabs)||void 0===g||null===(g=g.selectArrsAll)||void 0===g||null===(g=g[0])||void 0===g||null===(g=g.difficult_count)||void 0===g?void 0:g[0]),max:null===(i=D.actionTabs)||void 0===i||null===(i=i.selectArrsAll)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.difficult_count)||void 0===i?void 0:i[0],style:{width:60}})]}),(0,M.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,M.jsx)(x.Z,{value:Ge[1],onChange:function(e){Ge[1]=e,_e(l()(Ge))},min:0,disabled:!(null!==(s=D.actionTabs)&&void 0!==s&&null!==(s=s.selectArrsAll)&&void 0!==s&&null!==(s=s[0])&&void 0!==s&&s.can_publish),max:null===(m=D.actionTabs)||void 0===m||null===(m=m.selectArrsAll)||void 0===m||null===(m=m[0])||void 0===m||null===(m=m.difficult_count)||void 0===m?void 0:m[1],placeholder:"最大".concat(null===(c=D.actionTabs)||void 0===c||null===(c=c.selectArrsAll)||void 0===c||null===(c=c[0])||void 0===c||null===(c=c.difficult_count)||void 0===c?void 0:c[1]),style:{width:60}})]}),(0,M.jsxs)("span",{children:["困难题数 ",(0,M.jsx)(x.Z,{value:Ge[2],onChange:function(e){Ge[2]=e,_e(l()(Ge))},min:0,disabled:!(null!==(S=D.actionTabs)&&void 0!==S&&null!==(S=S.selectArrsAll)&&void 0!==S&&null!==(S=S[0])&&void 0!==S&&S.can_publish),placeholder:"最大".concat(null===(j=D.actionTabs)||void 0===j||null===(j=j.selectArrsAll)||void 0===j||null===(j=j[0])||void 0===j||null===(j=j.difficult_count)||void 0===j?void 0:j[2]),max:null===(E=D.actionTabs)||void 0===E||null===(E=E.selectArrsAll)||void 0===E||null===(E=E[0])||void 0===E||null===(E=E.difficult_count)||void 0===E?void 0:E[2],style:{width:60}})]})]}),(0,M.jsxs)(L.Z,{className:"mt30",align:"middle",children:[(0,M.jsx)(b.Z,{children:(0,M.jsx)(p.Z.Item,{name:"publish_time",label:"发布时间",children:(0,M.jsx)(F.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,A.Q8)(e,R)},disabledTime:function(e){return(0,A.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:B()((0,C.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,M.jsx)(b.Z,{className:"ml20",children:(0,M.jsx)(p.Z.Item,{name:"end_time",label:"截止时间",children:(0,M.jsx)(F.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:B()((0,C.U6)(),"HH:mm")},disabledDate:function(e){return(0,A.Q8)(e,R,W.getFieldValue("publish_time"))},disabledTime:function(e){return(0,A.d0)(e,W.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===D.actionTabs.type&&(0,M.jsxs)(L.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,M.jsxs)(y.ZP.Group,{value:Le,onChange:function(e){ye(e.target.value),pe([])},children:[(0,M.jsx)(y.ZP,{value:!0,disabled:!D.actionTabs.manage_all_group,children:"统一发布"}),(0,M.jsx)(y.ZP,{className:"ml20",disabled:$.length<=0,value:!1,children:"分班发布"})]})]}),$.length<=0&&2===D.actionTabs.type&&(0,M.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===D.actionTabs.type||!Le)&&$.length>0&&(0,M.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,M.jsxs)("span",{style:{flex:1},children:[(0,M.jsx)(k.Z,{checked:we.length===$.length,onChange:function(e){we.length===$.length?pe([]):pe($.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,M.jsx)("span",{style:{width:16}}),(0,M.jsxs)("span",{style:{flex:1},children:["已选择",we.length||0,"个分班"]})]}),(1===D.actionTabs.type||!Le)&&$.length>0&&(0,M.jsx)(T.Z,{data:$,selectedRowKeys:we,setSelectedRowKeys:pe})]})]})}))},75446:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return ot},default:function(){return gt}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(82242),d=n.n(i),s=n(79800),h=n.n(s),m=n(59301),l=n(19677),c=n(8591),u=n(25700),S=n(81228),P=n(64606),w=n(71763),p=n(37205),f=n.n(p),v=n(39647),L=n.n(v),y=n(43418),x=n(36057),b=n(80932),F=n(37712),k=["classroomList","dispatch","match","location","user","onCallback"],j=(0,l.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,a=e.classroomList,g=e.dispatch,i=(e.match,e.location,e.user),s=e.onCallback,u=(L()(e,k),(0,l.useParams)()),S=(0,m.useState)(!1),p=h()(S,2),v=p[0],j=p[1],B=(0,m.useState)(!1),G=h()(B,2),_=G[0],C=G[1],N=(0,m.useRef)(null);(0,m.useEffect)((function(){if("删除"===a.actionTabs.key){if((0,w.j5)())return void C(!0);var e={hasNum:0,noHasNum:0};a.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=i.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?y.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,F.jsxs)("div",{children:["当前选中资源中:",(0,F.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,F.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,F.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):C(!0)}else C(!1)}),[a.actionTabs.key]);var T=function(){g({type:"classroomList/setActionTabs",payload:{}})};return(0,F.jsx)(y.Z,{centered:!0,title:"提示",open:_,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:r()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=N.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return j(!0),e.next=5,(0,x.ZP)("/api/courses/".concat(u.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:f()(a.actionTabs.selectArrs)}});case 5:n=e.sent,j(!1),0===n.status&&((0,P.L9)(["教学课堂","图文作业","删除"]),c.ZP.success("删除成功"),g({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),s&&s(),(0,w.GJ)()?g({type:"classroomList/getClassroomTeacherCommonList",payload:d()(d()({},a.actionTabs.params),{},{type:5})}):g({type:"classroomList/getClassroomCommonList",payload:d()({},a.actionTabs.params)}),g({type:"classroomList/getClassroomLeftMenus",payload:{id:u.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){T()},children:null!=a&&null!==(t=a.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==a||null===(n=a.actionTabs)||void 0===n?void 0:n.status)?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,F.jsx)("p",{children:"是否确认删除?"})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,F.jsx)(b.Z,{ref:function(e){return N.current=e}})]})})})),B=n(62247),G=n(95226),_=(0,l.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,a=(0,l.useParams)();return(0,F.jsx)(y.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)("/api/courses/".concat(a.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:f()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,P.L9)(["教学课堂","图文作业","设为公开"]),c.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,w.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:d()(d()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:d()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,F.jsx)("br",{}),"是否确认设为公开?"]})})})),C=["classroomList","dispatch","onCallback"],N=(0,l.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,a=e.onCallback,g=(L()(e,C),(0,l.useParams)());return g.id=g.coursesId,(0,F.jsx)(y.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)("/api/courses/".concat(g.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:f()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,P.L9)(["教学课堂","图文作业","收藏"]),c.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),a&&a(),(0,w.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:d()(d()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:d()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),T=n(85573),z=n.n(T),A=n(78241),M=n(95237),Z=n(43604),E=n(92832),D=n(61186),I=n.n(D),R=(0,l.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,a=e.classroomList,g=(e.loading,e.dispatch),i=e.onCallback,s=(0,l.useParams)(),m=(0,l.useLocation)(),u=a.actionTabs,S=A.Z.useForm(),P=h()(S,1)[0];return(0,F.jsxs)(y.Z,{centered:!0,title:"新建目录",open:"新建目录"===a.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:r()(o()().mark((function e(){var t,n,r,h,u,S,w,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=P.getFieldValue(),n="/api/course_modules/".concat(a.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,x.ZP)(n,{method:"post",body:d()({},t)});case 4:0===(r=e.sent).status&&(c.ZP.success("添加成功"),i&&i(),g({type:"classroomList/setActionTabs",payload:{}}),g({type:"classroomList/getClassroomLeftMenus",payload:{id:s.coursesId}}),u=a.actionTabs.selectArrs.type,S=(null==r?void 0:r.category_id)||0,(w=null===(h=m.pathname)||void 0===h?void 0:h.split("/"))[4]=S,w[3]=u||w[3],p=null==w?void 0:w.join("/"),l.history.push(p));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){g({type:"classroomList/setActionTabs",payload:{}})},children:[(0,F.jsx)("p",{className:"tc",children:(0,F.jsx)("br",{})}),a.courseGroups.course_groups&&(0,F.jsx)(A.Z,{form:P,initialValues:z()({},"name",""),children:(0,F.jsx)(A.Z.Item,{name:"name",children:(0,F.jsxs)(M.Z,{className:"mt30",children:[(0,F.jsx)(Z.Z,{children:"目录名称:"}),(0,F.jsx)(Z.Z,{flex:"1",children:(0,F.jsx)(E.Z,{defaultValue:(null===(t=u.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=u.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),O=n(99313),H=n(3113),Y=n(24905),K=n(26724),W=n.n(K),U=n(51700),V=n(28103),q=n(81327),J=n(47740),X={shixunItemWrapper:"shixunItemWrapper___ClCET",checkboxWrapper:"checkboxWrapper___bZ8gF",contentWrapper:"contentWrapper____pt8D",title:"title___tfmFW",desc:"desc___NDuDd",info:"info___mahF7"},Q=U.Z.Paragraph,$=function(e,t){var n=e.createShixunParams,a=(0,m.useState)("0"),g=h()(a,2),i=g[0],s=g[1],l=(0,m.useState)("hot"),c=h()(l,2),u=c[0],S=c[1],P=(0,m.useState)([]),w=h()(P,2),p=w[0],f=w[1],v=(0,m.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10}),L=function(){var e=r()(o()().mark((function e(t,n){var a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,J.he)(t);case 2:if((a=e.sent).status){e.next=8;break}if(0!==a.shixuns.length||!n){e.next=7;break}return _(!1),e.abrupt("return");case 7:f(a.shixuns);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,m.useImperativeHandle)(t,(function(){return{search:function(e){return L(d()(d()({},v.current),{},{keyword:e}))},changeKeyWord:function(e){return v.current.keyword=e}}})),(0,m.useEffect)((function(){L(v.current)}),[]);var y=(0,m.useState)([]),x=h()(y,2),b=x[0],k=x[1],j=(0,m.useState)(!0),B=h()(j,2),G=B[0],_=B[1];return(0,F.jsxs)("div",{style:{marginTop:20,maxHeight:200,overflowY:"auto",overflowX:"hidden"},children:[(0,F.jsxs)(M.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,F.jsx)(Z.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,F.jsx)(H.ZP,{type:i===e.id?"primary":"default",onClick:function(){s(e.id),v.current.diff=e.id,L(v.current)},children:e.name},t)}))}),(0,F.jsx)(Z.Z,{children:[{name:"最热",id:"hot"},{name:"最新",id:"new"}].map((function(e,t){return(0,F.jsx)(H.ZP,{className:"mr20",type:u===e.id?"primary":"default",onClick:function(){S(e.id),v.current.order=e.id,L(v.current)},children:e.name},t)}))})]}),(0,F.jsx)(W(),{initialLoad:!1,pageStart:1,threshold:700,loadMore:function(e){L(d()(d()({},v.current),{},{page:e}),!0)},hasMore:G,useWindow:!1,children:(0,F.jsx)(Y.Z.Group,{onChange:function(e){k(e),n.current.shixun_ids=e},value:b,children:p.map((function(e){var t=e||{},n=t.name,a=t.id,o=t.description,g=t.challenge_names,r=t.author_name,i=t.author_school_name,d=t.level,s=t.total_stu_num;return(0,F.jsxs)("div",{className:X.shixunItemWrapper,children:[(0,F.jsxs)(M.Z,{align:"middle",className:X.checkboxWrapper,gutter:14,children:[(0,F.jsx)(Y.Z,{value:a}),(0,F.jsx)("div",{className:X.title,children:n})]}),(0,F.jsxs)("div",{className:X.contentWrapper,children:[(0,F.jsx)(Q,{ellipsis:{rows:2},className:X.desc,style:{color:"#8e8888"},children:o}),(0,F.jsx)(M.Z,{children:g.map((function(e,t){return(0,F.jsxs)("span",{className:X.mission,children:["第",t+1,"关",e]},t)}))}),(0,F.jsx)(V.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,F.jsx)(M.Z,{className:X.info,children:(0,F.jsxs)(q.Z,{children:[(0,F.jsx)("span",{children:r}),(0,F.jsx)("span",{children:"|"}),(0,F.jsx)("span",{children:i}),(0,F.jsx)("span",{children:"|"}),(0,F.jsxs)("span",{children:["难度系数 ",d]}),(0,F.jsx)("span",{children:"|"}),(0,F.jsxs)("span",{children:["学习人数 ",s]})]})})]})]},a)}))})})]})},ee=(0,m.forwardRef)($),te={flex_box_center:"flex_box_center___Cx3ju",flex_space_between:"flex_space_between___rc8Mm",flex_box_vertical_center:"flex_box_vertical_center___6BCc9",flex_box_center_end:"flex_box_center_end___sN3Ig",flex_box_column:"flex_box_column___wjzgd",line1:"line1___cHCBY",form:"form___IMCYE"},ne=n(69718),ae=n(75296),oe=(O.Z.TabPane,(0,l.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var t,n=e.shixunHomeworks,a=(e.loading,e.dispatch),g=e.refreshList,i=(0,l.useParams)(),s=((0,l.useLocation)(),A.Z.useForm()),c=h()(s,1)[0],u=(n.brankList,(0,m.useState)(!1)),S=h()(u,2),p=(S[0],S[1]),v=(0,m.useState)(!0),L=h()(v,2),x=L[0],b=L[1],k=(0,m.useState)(!1),j=h()(k,2),B=j[0],G=j[1],_=(0,m.useState)("myself"),C=h()(_,2),N=C[0],T=C[1],D=(0,m.useState)([]),I=h()(D,2),R=I[0],O=I[1],K=(0,m.useState)(),U=h()(K,2),V=U[0],q=U[1],J=(0,m.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),X=h()(J,2),Q=X[0];X[1];(0,m.useEffect)((function(){"题库选用"===n.actionTabs.key&&oe()}),[n.actionTabs.key]);var $=[],oe=function(){var e=r()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!x){e.next=11;break}return p(!1),++Q.page,e.next=5,a({type:"shixunHomeworks/getBrankList",payload:d()({},Q)});case 5:n=e.sent,R=f()(R.concat(n.object_list)),q(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<Q.limit?b(!1):b(!0),O(f()(R)),""==n.object_list&&1===Q.page&&p(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ge=(0,m.useRef)({identifier:i.coursesId,shixun_ids:[],type:"normal",coursesId:i.coursesId}),re=function(){var e=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(!0),e.next=3,(0,ae.aQ)(t);case 3:n=e.sent,G(!1),n.status||(g(),a({type:"shixunHomeworks/setActionTabs",payload:{}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ie=(0,m.useRef)();return(0,F.jsxs)(y.Z,{centered:!0,title:"选用课堂资源",destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:B},onOk:r()(o()().mark((function e(){var t,g,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==N){e.next=3;break}return re(ge.current),e.abrupt("return");case 3:return G(!0),t=c.getFieldValue(),e.next=7,a({type:"shixunHomeworks/saveBanks",payload:{course_id:i.coursesId,object_type:"normal",category:i.categoryId,bank_id:t.group_ids}});case 7:0===(null==(g=e.sent)?void 0:g.status)&&((0,P.L9)(["教学课堂","图文作业","选用课堂资源"]),a({type:"classroomList/getClassroomLeftMenus",payload:{id:i.coursesId}}),a({type:"shixunHomeworks/setActionTabs",payload:{}}),a({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:g.object_ids,params:null===(r=n.actionTabs)||void 0===r?void 0:r.params}})),G(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){a({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,F.jsxs)(M.Z,{children:[(0,F.jsx)(Z.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,F.jsx)(H.ZP,{shape:"round",type:N===e.id?"primary":"default",className:"mr10",onClick:function(){var t=r()(o()().mark((function t(n){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return T(e.id),t.abrupt("return");case 3:R=[],x=!0,Q.page=0,Q.search="",Q.filter=e.id,oe(),T(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,F.jsx)(Z.Z,{span:12,className:"tr",children:(0,F.jsx)(E.Z.Search,{placeholder:"输入标题、适用课程进行搜索",onChange:function(e){var t;"jupyter"===N&&(null===(t=ie.current)||void 0===t||t.changeKeyWord(e.target.value))},onSearch:function(e){var t;"jupyter"!==N?(x=!0,Q.search=e,Q.page=0,R=[],oe()):null===(t=ie.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===N&&(0,F.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,F.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===N&&(0,F.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===N?(0,F.jsx)(ee,{createShixunParams:ge,ref:ie}):(0,F.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!V&&"public"===N&&(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,F.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,F.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,F.jsx)(W(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){b(!1),oe()},hasMore:x,useWindow:!1,children:(0,F.jsxs)(A.Z,{form:c,initialValues:z()({},"group_ids",$),className:te.form,onChange:function(e){var t=c.getFieldValue();$=t},children:[""==R&&(0,F.jsx)(ne.Z,{styles:{margin:"10px auto"}}),(0,F.jsx)(A.Z.Item,{name:"group_ids",children:(0,F.jsx)(Y.Z.Group,{style:{width:"100%"},className:"font14",children:null===(t=R)||void 0===t?void 0:t.map((function(e,t){return(0,F.jsxs)(M.Z,{children:[(0,F.jsx)(Z.Z,{flex:"2",children:(0,F.jsx)(Y.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,F.jsx)("span",{className:["c-black",te.line1].join(" "),children:e.name})},t)}),(0,F.jsx)(Z.Z,{flex:"1",className:"c-black",children:(0,F.jsx)("span",{className:te.line1,children:null==e?void 0:e.course_list_name})}),(0,F.jsx)(Z.Z,{flex:"50px",className:"c-black",children:"public"===N&&(0,w.Ny)()||"myself"===N?(0,F.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),ge=n(17445),re=n(78500),ie=(0,l.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),a=((0,l.useParams)(),A.Z.useForm()),g=h()(a,1)[0];return(0,F.jsx)(y.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:r()(o()().mark((function e(){var a,r,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.validateFields();case 2:return r=d()({},g.getFieldValue()),i=t.actionTabs.selectArrs,r.attachment_ids=null===(a=r.attachment_ids)||void 0===a?void 0:a.map((function(e){return e.response.id})),e.next=7,(0,ge.mz)(d()(d()({},r),{},{homeworkId:i.work_id}));case 7:0===e.sent.status&&(g.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)}))),onCancel:function(){g.resetFields(),n({type:"classroomList/setActionTabs",payload:{}})},children:(0,F.jsxs)(A.Z,{form:g,initialValues:{},children:[(0,F.jsx)(A.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,F.jsx)(re.Z,{})}),(0,F.jsx)(A.Z.Item,{name:"description",children:(0,F.jsx)(E.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),de=n(20834),se=n(38854),he=n(6848),me="tabMenuContainer___Sxna3",le="control___ka76r",ce="iconH___GpOCh",ue="selectBtn___KJw1e",Se="selectBtn1___kta6F",Pe=function(e){var t,n,a,o=e.isLoading,g=e.addText,r=e.tabDataSource,i=e.isAdmin,d=e.dispatch,s=e.type,h=e.TooltipTitle,m=e.categoryId,u=e.dropdownMenu,S=e.classroomList,P=e.isShowRightControl,p=e.defaultSelectedKeys,f=e.user,v=e.onTabMenuClick,L=e.onTooltipTitleClick,y=e.onDropdownMenuClick,x=(0,l.useParams)();return(0,F.jsx)("div",{className:me,children:(0,F.jsxs)(M.Z,{children:[(0,F.jsx)(Z.Z,{flex:"1",children:(0,F.jsx)(de.Z,{mode:"horizontal",selectedKeys:p,children:r.map((function(e){return(0,F.jsxs)(de.Z.Item,{onClick:function(){return o?{}:v(e)},children:[(0,F.jsx)("span",{className:"c-grey-666 ".concat(i?"mr20":""),children:e.name}),void 0!==e.total&&(0,F.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),(0,F.jsxs)(Z.Z,{className:"gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[i&&(0,F.jsx)(se.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,F.jsxs)(de.Z,{children:[(0,F.jsx)(de.Z.Item,{onClick:function(){var e;!(0,w.Rm)()||null!==(e=S.AssistantObject.hack)&&void 0!==e&&e.can_download?d({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:s,exportType:"hack",category_id:x.categoryId}}):c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"学生成绩"},1),(0,F.jsx)(de.Z.Item,{onClick:function(){var e;!(0,w.Rm)()||null!==(e=S.AssistantObject.hack)&&void 0!==e&&e.can_download?l.history.push("/classrooms/".concat(null==x?void 0:x.coursesId,"/exportlist/hack_work_list")):c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"历史导出"},3)]})},children:(0,F.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,F.jsx)("i",{className:"iconfont icon-xiazai6"})})}),(0,F.jsxs)("span",{style:{marginLeft:8,cursor:"pointer"},onClick:function(){l.history.push("/classrooms/".concat(x.coursesId,"/program_homework/ranking"))},children:[(0,F.jsx)(he.Z,{title:"排行榜",children:(0,F.jsx)("i",{className:"iconfont icon-paihang mr5",style:{color:"#666666"}})})," "]}),i&&P&&(0,F.jsxs)("div",{className:le,children:[(0,F.jsx)("div",{className:"c-blue font16 current",style:{marginLeft:20,marginRight:20},onClick:L,children:(0,F.jsx)(he.Z,{title:h,children:(0,F.jsx)("span",{className:"".concat(ce,m?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,F.jsx)(se.Z,{disabled:2===(null==f||null===(t=f.userInfo)||void 0===t?void 0:t.user_status),className:"ml10",dropdownRender:function(){return(0,F.jsx)(de.Z,{onClick:function(e){var t=e.key;return y(t)},children:u.map((function(e){return(0,F.jsx)(de.Z.Item,{children:e.name},e.id)}))})},children:(0,F.jsxs)("span",{onClick:function(){},className:2===(null==f||null===(n=f.userInfo)||void 0===n?void 0:n.user_status)?Se:ue,children:[(0,F.jsx)("span",{children:(0,F.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,F.jsx)(he.Z,{title:2===(null==f||null===(a=f.userInfo)||void 0===a?void 0:a.user_status)&&"教学课堂试用期已结束,平台已暂停提供编程作业创建功能",children:(0,F.jsx)("span",{children:g||"新建作业"})})]})})]})]})]})})},we="searchSortControllerContainer___tQmMS",pe="btn___ECfiD",fe="btnSort___Y5Oja",ve="tips___fhrLg",Le=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),a=e.setSortMenuName,o=e.onSearch,g=e.onSort,r=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),i="默认排序"===n;return(0,F.jsxs)("div",{className:we,children:[(0,F.jsx)("div",{children:(0,F.jsx)(se.Z,{dropdownRender:function(){return(0,F.jsx)(de.Z,{selectedKeys:[n],children:r.map((function(e){return(0,F.jsx)(de.Z.Item,{onClick:function(){return a((t=e).name),void g(t);var t},children:e.name},e.name)}))})},children:(0,F.jsx)("div",{children:(0,F.jsxs)("span",{className:"".concat(pe," ").concat(i?fe:""),children:[(0,F.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),i&&(0,F.jsx)(he.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,F.jsx)("span",{className:ve,children:(0,F.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,F.jsx)(E.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:o,style:{width:220,marginLeft:"auto"}})]})},ye="bottomControlContainer___kLlgA",xe="moveCategory___lgwfd",be=n(18290),Fe=function(e){var t,n=e.buttonDataSource,a=e.onClick,g=(0,m.useContext)(ot),i=g.allSelect,d=g.setAllSelect,s=g.setSelectArrs,l=g.dataSource,u=g.selectArrs,S=g.useBatchStatus,P=g.dispatch,p=g.params,v=g.getData,L=g.detailLeftMenus,y=g.main_category_id,b=g.setSelectArrsAll,k=(0,m.useState)(!1),j=h()(k,2),B=(j[0],j[1]),G=(0,m.useState)(""),_=h()(G,2),C=_[0],N=_[1];L.course_modules&&(t=L.course_modules.filter((function(e){return"program_homework"===e.type}))[0]);var T=(0,F.jsx)("div",{className:xe,onMouseLeave:function(e){return B(!1)},children:(0,F.jsxs)(de.Z,{onClick:function(){var e=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=u){e.next=4;break}return c.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,x.ZP)("/api/courses/".concat(p.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:u,new_category_id:n}});case 6:0===e.sent.status&&(c.ZP.success("操作成功"),S(!1),v(),P({type:"classroomList/getClassroomLeftMenus",payload:{id:p.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,F.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,F.jsx)(E.Z,{onChange:function(e){N(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==C&&e.category_name.indexOf(C)<0))return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(de.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,F.jsx)(de.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,F.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),P({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:p,selectArrs:{category_id:y,type:"program_homework"}}})},children:"新建子目录..."})]})});return(0,F.jsx)("div",{className:ye,children:(0,F.jsxs)(M.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,F.jsx)(Z.Z,{flex:1,children:(0,F.jsxs)(M.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,F.jsx)(Z.Z,{children:(0,F.jsxs)(Y.Z,{checked:i,onChange:function(e){d(e.target.checked),s(e.target.checked?l.map((function(e){return e.homework_id})):[]),e.target.checked?b(f()(l)):b([])},children:["全选本页(",u.length,")"]})}),(0,w.GJ)()&&(0,F.jsx)(Z.Z,{children:(0,F.jsx)(se.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;a({key:t})}},children:(0,F.jsx)(H.ZP,{type:"primary",icon:(0,F.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,F.jsx)(Z.Z,{children:(0,F.jsx)(H.ZP,{type:"primary",onClick:function(){var e={courseId:p.id,container_type:"program_homework"};p.categoryId&&(e.category_id=p.categoryId),P({type:"classroomList/getAllTaskList",payload:e}),P({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,F.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,w.GJ)()&&(0,F.jsx)(Z.Z,{children:(0,F.jsx)(se.Z,{placement:"topLeft",dropdownRender:function(){return T},getPopupContainer:function(e){return e.parentNode},children:(0,F.jsxs)(H.ZP,{type:"primary",icon:(0,F.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,F.jsx)(be.Z,{})]})})})]})}),(0,F.jsx)(Z.Z,{children:(0,F.jsx)(H.ZP,{type:"primary",ghost:!0,onClick:function(){s([]),S(!1)},children:"取消操作"})})]})})},ke=n(2595),je={listContainer:"listContainer___vU05G",info:"info___fXyuU",title:"title___fItHS",left:"left___MFkuv",right:"right___JT8Xj",flexBox:"flexBox___n8e_m",detail:"detail___HXdq0",iconV:"iconV___CwPu5",shixunTag:"shixunTag___oYTPp"},Be=n(13014),Ge=n(39562),_e=function(e){var t,n,a,g,i,s,u,S,p,v,L,b,k,j,B=e.dataSource,G=e.params,_=e.classroomList,C=e.manageAllGroup,N=e.user,T=e.getData,z=(0,m.useContext)(ot),A=(z.batchStatus,z.selectArrs),M=z.setSelectArrs,Z=z.selectArrsAll,D=z.setSelectArrsAll,I=z.dispatch,R=(0,l.useParams)(),O=(0,m.useState)(!1),H=h()(O,2),K=H[0],W=H[1],U=(0,m.useRef)(),V=(0,m.useState)([]),q=h()(V,2),J=q[0],X=q[1];R=d()(d()(d()({},G),R),{},{category:null===(t=R)||void 0===t?void 0:t.categoryId}),(0,m.useEffect)((function(){X([]),W(!1)}),[]);var Q=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,F.jsxs)("span",{children:[(0,F.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,F.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===R.sort_by?"desc"===R.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===R.sort_by?"desc"===R.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===R.sort_by?"desc"===R.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,F.jsx)("span",{title:e,children:e}):"--"}}];function $(){return ee.apply(this,arguments)}function ee(){return(ee=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)("/api/homework_commons/".concat(B.homework_id,"/group_settings_statistics.json"),{method:"get",params:d()({},R)});case 2:t=e.sent,X(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,F.jsxs)("div",{className:je.listContainer,onClick:function(e){e.stopPropagation(),(!(0,w.GJ)()||(0,w.GJ)()&&U.current&&!U.current.contains(e.target))&&((0,w.dE)()?(0,P.xg)("/classrooms/".concat(R.coursesId,"/program_homework/").concat(B.homework_id,"/detail?tabs=1")):(0,P.xg)("/classrooms/".concat(R.coursesId,"/program_homework/").concat(B.homework_id,"/detail")))},children:[(0,w.GJ)()&&(0,F.jsx)("span",{ref:U,children:(0,F.jsx)(Y.Z,{onClick:function(e){e.stopPropagation()},style:{padding:"10px"},checked:A.includes(B.homework_id),onChange:function(){return e=B.homework_id,void(A.includes(e)?(M(A.filter((function(t){return t!==e}))),D(Z.filter((function(t){return t.homework_id!==e})))):(M([].concat(f()(A),[e])),D([].concat(f()(Z),[B]))));var e}})}),(0,F.jsxs)("div",{className:je.info,children:[(0,F.jsxs)("div",{className:je.title,children:[(0,F.jsxs)("div",{className:je.left,style:(0,w.dE)()?{paddingRight:(null==B?void 0:B.challenge_count)-(null==B?void 0:B.finished_challenge_count)?60:140}:{},children:[(0,w.GJ)()&&(0,F.jsx)(Be.Z,{value:null===(n=B.status)||void 0===n?void 0:n[0],children:(0,F.jsx)(P.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:B.status})}),(0,w.dE)()&&(0,F.jsx)(P.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:B.status}),(0,F.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/classrooms/".concat(R.coursesId,"/program_homework/").concat(B.homework_id,"/detail").concat((0,w.dE)()?"?tabs=1":""),children:B.name})})]}),(0,F.jsxs)("div",{className:je.right,children:[(0,w.GJ)()&&"未发布"===(null==B||null===(a=B.status)||void 0===a?void 0:a[0])&&(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){var n,a,g,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==N||null===(n=N.userInfo)||void 0===n?void 0:n.user_status)){e.next=5;break}return(0,Ge.Rd)(),e.abrupt("return");case 5:if(!(0,w.Rm)()||null!==(a=_.AssistantObject)&&void 0!==a&&null!==(a=a.hack)&&void 0!==a&&a.can_publish){e.next=8;break}return c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),e.abrupt("return");case 8:(r=P.cX.getItem("".concat(null==N||null===(g=N.userInfo)||void 0===g?void 0:g.login).concat((0,w.GJ)()?"Teacher":"Student"),"ProgramHomework"))&&(R.sort_by=null==r?void 0:r.type,R.sort_direction=null==r?void 0:r.direction),I({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==B?void 0:B.homework_id],selectArrsAll:[B],params:d()({},R),type:2,manage_all_group:C}});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,F.jsxs)("aside",{className:je.flexBox,style:{marginRight:"16px"},children:[(0,F.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,F.jsx)("div",{children:"发布"})]})}),(0,w.dE)()&&(0,F.jsxs)("div",{className:je.actionIcon,children:[(null==B?void 0:B.challenge_count)-(null==B?void 0:B.finished_challenge_count)==0&&(0,F.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(g=B.status)&&void 0!==g&&g.includes("已截止"))&&!B.status.includes("导入")&&(0,F.jsxs)("aside",{onClick:function(){var e=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.next=3,(0,x.ZP)("/api/problems/".concat(null==B?void 0:B.start_identifier,"/start.json"),{method:"get"});case 3:(n=e.sent)&&(window.open("/myproblems/".concat(null==n?void 0:n.identifier,"?type=1")),localStorage.setItem("program_homework",[R.coursesId,B.homework_id]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:je.flexBox,style:{marginRight:16},children:[(0,F.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,F.jsx)("div",{children:"开始学习"})]}),((null===(i=B.status)||void 0===i?void 0:i.includes("已截止"))||(null===(s=B.status)||void 0===s?void 0:s.includes("导入")))&&(0,F.jsxs)("aside",{className:je.flexBox,style:{marginRight:16},children:[(0,F.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,F.jsx)("div",{children:"查看作业"})]})]}),(0,w.GJ)()&&(0,F.jsx)(se.Z,{placement:"bottomCenter",overlayClassName:je.dro,dropdownRender:function(){return(0,F.jsxs)(de.Z,{children:[!B.status.includes("导入")&&(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==N||null===(n=N.userInfo)||void 0===n?void 0:n.user_status)){e.next=5;break}return(0,Ge.Rd)(),e.abrupt("return");case 5:if(!(0,w.Rm)()||null!==(a=_.AssistantObject)&&void 0!==a&&null!==(a=a.hack)&&void 0!==a&&a.can_publish){e.next=8;break}return c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),e.abrupt("return");case 8:console.log("params--",R),I({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==B?void 0:B.homework_id],selectArrsAll:[B],params:d()({},R),type:2,manage_all_group:C}});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),!B.status.includes("导入")&&(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),!(0,w.Rm)()||null!==(n=_.AssistantObject)&&void 0!==n&&null!==(n=n.hack)&&void 0!==n&&n.can_stop){e.next=5;break}return c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),e.abrupt("return");case 5:I({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==B?void 0:B.homework_id],selectArrsAll:[B],params:d()({},R),type:2}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),n=null==B?void 0:B.name,y.Z.confirm({centered:!0,icon:null,okText:"确定",cancelText:"取消",title:"重命名",content:(0,F.jsx)("div",{children:(0,F.jsx)(E.Z,{defaultValue:n,maxLength:60,showCount:!0,onChange:function(e){return n=e.target.value}})}),onOk:function(){var e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)("/api/homework_commons/".concat(null==B?void 0:B.homework_id,"/alter_name.json"),{method:"post",body:{name:n}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(c.ZP.success("操作成功"),T());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"重新命名"})},30),B.status.includes("导入")&&(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),I({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==B?void 0:B.name,id:null==B?void 0:B.homework_id,type:"hack"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(o()().mark((function e(t){var n,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),!(0,w.Rm)()||null!==(n=_.AssistantObject)&&void 0!==n&&null!==(n=n.hack)&&void 0!==n&&n.can_delete){e.next=5;break}return c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),e.abrupt("return");case 5:I({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==B?void 0:B.homework_id],selectArrsAll:Z,params:R,status:null==B||null===(a=B.status)||void 0===a?void 0:a[0]}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),!B.status.includes("导入")&&(0,F.jsx)(de.Z.Item,{style:{textAlign:"center"},children:(0,F.jsx)(l.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(R.coursesId,"/program_homework/").concat(B.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,F.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:je.flexBox,style:{cursor:"default"},children:[(0,F.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,F.jsx)("div",{children:"更多"})]})})]})]}),(0,F.jsx)("div",{className:je.detail,children:(0,w.GJ)()&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"c-grey-333 mr20",children:B.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==B||null===(u=B.status)||void 0===u?void 0:u[0])&&!!B.uncommit_count&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"未做题"}),B.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==B||null===(S=B.status)||void 0===S?void 0:S[0])&&!!B.commit_count&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"已做题"}),B.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==B||null===(p=B.status)||void 0===p?void 0:p[0])&&!!B.compelete_count&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"已完成"}),B.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==B||null===(v=B.status)||void 0===v?void 0:v[0])&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"发布时间"}),B.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==B||null===(L=B.status)||void 0===L?void 0:L[0])&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"截止时间"}),B.end_time]}),["已结束"].includes(null==B||null===(b=B.status)||void 0===b?void 0:b[0])&&(0,F.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,F.jsx)("span",{className:"mr5",children:"结束时间"}),B.status_time]}),!(null==B||!B.late_time)&&"--"!==(null==B?void 0:B.late_time)&&(0,F.jsxs)("span",{className:"c-grey-999",children:[(0,F.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==B?void 0:B.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==B||null===(k=B.status)||void 0===k?void 0:k[0])&&(0,F.jsxs)("span",{className:je.iconV,onClick:function(){var e=r()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),K||$(),W(!K);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,F.jsx)("i",{className:"iconfont icon-".concat(K?"shouqi":"xiala2")})," "]})]})}),(0,F.jsxs)("div",{className:je.content,children:[(0,w.dE)()&&(0,F.jsxs)("span",{className:je.infoStuIcon,children:[(0,F.jsx)("span",{className:"c-grey-333",children:B.author}),"已截止"===(null==B||null===(j=B.status)||void 0===j?void 0:j[0])&&!(null==B||!B.status_time)&&(0,F.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,F.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==B?void 0:B.status_time]}),(0,F.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,F.jsx)("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),null==B?void 0:B.commit_count,"/",null==B?void 0:B.all_count]}),(0,F.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,F.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==B?void 0:B.publish_time," 至 ",null==B?void 0:B.end_time]})]}),(0,w.GJ)()&&"未发布"!==B.status&&K&&J.length>5&&(0,F.jsx)(ke.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:J,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(R.sort_by=n.field),n.order||(R.sort_direction="asc"),"ascend"===n.order&&(R.sort_direction="asc"),"descend"===n.order&&(R.sort_direction="desc"),n.order||(R.sort_direction="asc"),$()},columns:Q}),(0,w.GJ)()&&"未发布"!==B.status&&K&&J.length<6&&J.length>0&&(0,F.jsx)(ke.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:J,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(R.sort_by=n.field),n.order||(R.sort_direction="asc"),"ascend"===n.order&&(R.sort_direction="asc"),"descend"===n.order&&(R.sort_direction="desc"),n.order||(R.sort_direction="asc"),$()},columns:Q})]})]})]})},Ce="bg___KWyBO",Ne="otherHomeworkWrap___WlvHv",Te="otherHomeworkContainer___Qfj2O",ze="flex___q8ATC",Ae="search___xedy7",Me="content___VSdQb",Ze="listItem___u6wwP",Ee="info___vvX3a",De="title___FtVL7",Ie="describe___g43sA",Re="footer___TNGYY",Oe=function(e){var t=e.courseId,n=e.type,a=e.onCancel,g=(0,l.useParams)(),i=(0,m.useState)({targerData:[],originData:[]}),s=h()(i,2),u=s[0],S=s[1],w=(0,m.useState)([]),p=h()(w,2),v=p[0],L=p[1],y=(0,m.useState)(!1),b=h()(y,2),k=b[0],j=b[1],B=function(){var e=r()(o()().mark((function e(){var a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,(0,x.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:a=e.sent,j(!1),S({targerData:a.homeworks,originData:a.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){B()}),[]);var G=function(){var e=r()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),t={homework_common_ids:v},g.categoryId&&(t=d()(d()({},t),{},{category_id:g.categoryId})),e.next=5,(0,x.ZP)("/api/courses/".concat(g.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(c.ZP.success("提交成功"),a()),j(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)("div",{className:"animated fadeInUp fast ".concat(Ne),children:(0,F.jsxs)("div",{className:Te,children:[(0,F.jsx)("div",{className:Ae,children:(0,F.jsx)(E.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=u.originData.filter((function(t){return t.name.indexOf(e)>-1}));S(d()(d()({},u),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,F.jsx)("div",{className:Me,children:u.targerData.map((function(e){return(0,F.jsxs)("div",{className:"".concat(Ze," mb10"),children:[(0,F.jsx)(Y.Z,{checked:v.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?L([].concat(f()(v),[t])):L(v.filter((function(e){return e!==t})))}(t,e.id)}}),(0,F.jsxs)("div",{className:Ee,children:[(0,F.jsxs)("div",{className:"".concat(ze," mb10"),style:{justifyContent:"space-between"},children:[(0,F.jsx)("div",{className:De,children:e.name}),(0,F.jsx)("div",{children:(0,F.jsx)(H.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,P.xg)("/classrooms/".concat(g.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,F.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Ie),children:e.description}),(0,F.jsxs)("div",{className:"font12",children:[(0,F.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,F.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,F.jsxs)("div",{className:Re,children:[(0,F.jsx)(H.ZP,{type:"primary",ghost:!0,onClick:a,children:"取消"}),(0,F.jsx)(H.ZP,{type:"primary",disabled:0===v.length||k,onClick:function(){G()},children:"确定"})]})]})})},He=n(55310),Ye=n(6179),Ke=n(3117),We=n(57809),Ue=n(78550),Ve=n(71418),qe=n(33656),Je=n.n(qe),Xe=n(79407),Qe=["classroomList","dispatch","user","getData"];I().extend(Je());var $e=function(e){var t,n,a,o,g=e.data,r=e.value,i=e.onChange,s=(0,m.useState)({leftSearch:"",rigthSearch:""}),l=h()(s,2),c=l[0],u=l[1],S=(0,m.useState)([]),P=h()(S,2),w=P[0],p=P[1];return(0,m.useEffect)((function(){p((null==r?void 0:r.length)>0?null==g?void 0:g.filter((function(e){return null==r?void 0:r.includes(null==e?void 0:e.id)})):[])}),[r]),(0,F.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,F.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,F.jsx)(Y.Z,{indeterminate:(null==w?void 0:w.length)>0&&(null==w?void 0:w.length)<(null==g?void 0:g.length),checked:(null==w?void 0:w.length)==(null==g?void 0:g.length),onChange:function(e){i(e.target.checked?null==g?void 0:g.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,F.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,F.jsx)(E.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:c.leftSearch,onChange:function(e){u(d()(d()({},c),{},{leftSearch:e.target.value}))}}),(0,F.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=c.leftSearch?null==g?void 0:g.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(c.leftSearch)})):g)||void 0===t?void 0:t.length)?(0,F.jsx)(Y.Z.Group,{value:r,onChange:function(e){i(e)},children:(0,F.jsx)(q.Z,{direction:"vertical",children:null===(n=c.leftSearch?null==g?void 0:g.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(c.leftSearch)})):g)||void 0===n?void 0:n.map((function(e,t){return(0,F.jsx)(Y.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,F.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]}),(0,F.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,F.jsxs)("div",{children:["已选择",(null==w?void 0:w.length)||0,"个分班"]}),(0,F.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,F.jsx)(E.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:c.rigthSearch,onChange:function(e){u(d()(d()({},c),{},{rigthSearch:e.target.value}))}}),(0,F.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(a=c.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(c.rigthSearch)})):w)||void 0===a?void 0:a.length)?null===(o=c.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(c.rigthSearch)})):w)||void 0===o?void 0:o.map((function(e,t){return(0,F.jsxs)(M.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,F.jsx)(Z.Z,{children:null==e?void 0:e.name}),(0,F.jsx)(Z.Z,{children:(0,F.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){i(null==r?void 0:r.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,F.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]})]})},et=(0,l.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,a,g,i,s,u=e.classroomList,S=e.dispatch,w=(e.user,e.getData),p=(L()(e,Qe),(0,l.useParams)()),f=A.Z.useForm(),v=h()(f,1)[0],x=A.Z.useWatch("penalty_type",v),b="批量补交"===(null==u||null===(t=u.actionTabs)||void 0===t?void 0:t.key),k=(0,Xe.U)(ae.c_,d()(d()({},p),null==u||null===(n=u.actionTabs)||void 0===n?void 0:n.params)),j=h()(k,4),B=j[1],G=j[2],_=j[3],C=(0,Xe.U)(ae.nP,{course_id:null==p?void 0:p.coursesId,homework_ids:null==u||null===(a=u.actionTabs)||void 0===a?void 0:a.selectArrs}),N=h()(C,4),T=N[2],z=N[3],D=(0,Xe.U)(ae.sm,{course_id:null==p?void 0:p.coursesId,homework_ids:null==u||null===(g=u.actionTabs)||void 0===g?void 0:g.selectArrs}),R=h()(D,3),O=R[1],H=R[2],Y=function(){var e=r()(o()().mark((function e(){var t=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},T({}),e.next=4,G({page:1,limit:2e4,homework_id:1===u.actionTabs.type?"":u.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){b&&Y()}),[b]),(0,F.jsxs)(y.Z,{centered:!0,title:null==u||null===(i=u.actionTabs)||void 0===i?void 0:i.key,width:800,open:b,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){S({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:O,onOk:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,F.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,F.jsxs)(A.Z,{form:v,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_minus_score:20},onFinish:function(){var e=r()(o()().mark((function e(t){var n,a,g,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H((null==_||null===(n=_.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==_||null===(a=_.course_groups)||void 0===a?void 0:a.length)<=0,allow_late_settings:[d()({},t)]}:d()({unified_late:(null==_||null===(g=_.course_groups)||void 0===g?void 0:g.length)<=0},t));case 2:0==(null==(r=e.sent)?void 0:r.status)&&(c.ZP.success("补交设置成功"),S({type:"classroomList/setActionTabs",payload:{}}),w&&w());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,F.jsxs)(M.Z,{wrap:!1,gutter:20,children:[(0,F.jsx)(Z.Z,{flex:1,children:(0,F.jsx)(A.Z.Item,{label:"补交扣分",name:"late_minus_score",rules:[{required:!0,validator:function(e,t,n){return 2===x&&t>100?Promise.reject((0,F.jsx)("span",{style:{marginLeft:100},children:"请重新输入,范围0-100"})):Promise.resolve()}},{required:!0,message:(0,F.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,F.jsx)(E.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==x?"分":"%",max:1===x?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,F.jsx)(A.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return v.setFieldsValue({late_minus_score:2==e?20:5}),e},children:(0,F.jsx)(We.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,F.jsx)(Z.Z,{flex:"390px",children:(0,F.jsx)(A.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&I()(t).startOf("minute")<=I()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&I()(t).startOf("minute")<=I()(null==z?void 0:z.max_late_time).startOf("minute")?(c.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==z?void 0:z.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,F.jsx)(Ue.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,P.BO)(e,{startTime:null==z?void 0:z.max_late_time})},disabledTime:function(e){return(0,P.hv)(e,{compared:null==z?void 0:z.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:I()("00:00:00","HH:mm:ss")}})})})]}),(null==_||null===(s=_.course_groups)||void 0===s?void 0:s.length)>0&&(0,F.jsx)(Ve.Z,{spinning:B,children:(0,F.jsx)(A.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,F.jsx)($e,{data:(null==_?void 0:_.course_groups)||[],onChange:function(e){T({group_ids:e})}})})})]})]})})),tt=n(5112),nt=n(35129),at=function(e){var t,n=e.styles,a=void 0===n?{}:n,o=e.onSelect,g=e.params,r=e.onClick,i=e.user,s=(0,m.useState)(!1),c=h()(s,2),u=c[0],S=c[1],P=(0,m.useState)(""),w=h()(P,2),p=w[0],f=w[1];(0,m.useEffect)((function(){S(!1),f("")}),[]);return(0,F.jsxs)("section",{className:"tc animated fadeIn",style:d()(d()({},{color:"#999",margin:"200px auto"}),a),children:[(0,F.jsx)("img",{src:nt.z3}),(0,F.jsxs)("p",{className:"mt20 font14",children:["编程作业是由多个编程试题组成,可用于ACM模式竞赛,也可作为平常练习",(0,F.jsx)("br",{}),"点击下方按钮,开始新建编程作业"]}),(0,F.jsx)("div",{style:{marginTop:"30px"},children:(0,F.jsx)(H.ZP,{disabled:2===(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.user_status),onClick:r,type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"})}),u&&(0,F.jsx)(y.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return S(!1)},onOk:function(){"1"===p&&l.history.push("/classrooms/".concat(g.coursesId,"/common_homework/").concat(g.categoryId,"/add")),"2"===p&&(o(),S(!1),f(""))},children:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{children:(0,F.jsx)(tt.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===p,onClick:function(){return f("1")},children:"新建图文作业"})}),(0,F.jsx)("div",{children:(0,F.jsx)(tt.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===p,onClick:function(){return f("2")},children:"选用资源"})})]})})]})},ot=(0,m.createContext)({selectArrs:[]}),gt=(0,l.connect)((function(e){var t=e.classroomList,n=e.loading,a=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:a,loading:n.effects}}))((function(e){var t,n,a,g,i=e.classroomList,s=e.loading,p=e.dispatch,f=e.user,v=(0,l.useLocation)(),L=(0,l.useParams)(),y=(0,m.useState)((function(){return d()(d()({},L),{},{id:L.coursesId,limit:20})})),x=h()(y,2),b=x[0],k=x[1],C=(0,l.useSearchParams)(),T=h()(C,1)[0],z=(0,m.useState)([]),A=h()(z,2),M=A[0],Z=A[1],E=(0,m.useState)(!1),D=h()(E,2),I=D[0],O=D[1],H=(0,m.useState)(!1),Y=h()(H,2),K=Y[0],W=Y[1],U=(0,m.useState)([]),V=h()(U,2),q=V[0],J=V[1],X=(0,m.useState)(!1),Q=h()(X,2),$=Q[0],ee=Q[1],te=(0,m.useState)("默认排序"),ae=h()(te,2),ge=ae[0],re=ae[1],de=f.userInfo,se=i.detailCommonHomeworksList,he=i.detailLeftMenus,me=(i.detailTopBanner,i.taskList);b.type=1,b.categoryId?b.category=b.categoryId:delete b.category,(0,m.useEffect)((function(){var e=T.get("tabs");e&&void 0!==e&&((0,w.GJ)()?b.status=e:b.order=e)}),[v.search]),(0,m.useEffect)((function(){"0"===T.get("tabs")&&(b.status="0",b.page=1),b.status=T.get("tabs")}),[T.get("tabs")]),(0,m.useEffect)((function(){k(d()(d()({},b),L))}),[null==L?void 0:L.categoryId]),(0,m.useEffect)((function(){var e,t;if(L.categoryId?(b.categoryId=L.categoryId,b.category=L.categoryId):delete b.category,null!=f&&null!==(e=f.userInfo)&&void 0!==e&&e.login){var n;p({type:"classroomList/getAssistantPermissions",payload:{course_id:b.id}});var a=P.cX.getItem("".concat(null==f||null===(n=f.userInfo)||void 0===n?void 0:n.login).concat((0,w.GJ)()?"Teacher":"Student"),"ProgramHomework");a&&(b.sort_by=null==a?void 0:a.type,b.sort_direction=null==a?void 0:a.direction,re(null==a?void 0:a.name));var o=T.get("tabs");o&&void 0!==o&&((0,w.GJ)()?b.status=o:b.order=o),le({})}else if(null!=f&&null!==(t=f.userInfo)&&void 0!==t&&t.username){var g=T.get("tabs");g&&void 0!==g&&((0,w.GJ)()?b.status=g:b.order=g),le({})}}),[null==f||null===(t=f.userInfo)||void 0===t?void 0:t.login,null==v?void 0:v.pathname]),(0,m.useEffect)((function(){"清除选择数据"===i.actionTabs.key&&(Z([]),J([])),"目录重命名成功"===i.actionTabs.key&&le()}),[i.actionTabs.key]),(0,m.useEffect)((function(){Z([])}),[se]),(0,m.useEffect)((function(){W(!1)}),[b.categoryId]),(0,m.useEffect)((function(){se&&se.homeworks&&(M.length===se.homeworks.length&&M.length>0?O(!0):M.length!==se.homeworks.length&&O(!1))}),[M]);var le=function(){Z([]),J([]),p({type:"classroomList/getClassroomTeacherCommonList",payload:d()(d()({},b),{},{type:5})})};he.course_modules&&i.detailLeftMenus.course_modules.filter((function(e){return"common_homework"===e.type}))[0];["删除","立即发布","立即截止","收藏"].filter((function(e){return null!=de&&de.main_site?e:"收藏"!==e})).filter((function(e){return!!(0,w.GJ)()||"删除"!==e}));var ce=function(){p({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:b}})},ue=null===(n=[{key:"publish",label:"批量发布",icon:(0,F.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,F.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,F.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,F.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,w.GJ)()||(0,w.Rm)()}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),Se=function(){var e=r()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p({type:"classroomList/updateTaskPosition",payload:{category_id:b.categoryId,courseId:b.id,task_ids:t,container_type:"program_homework"}});case 2:le();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),we=(0,m.useMemo)((function(){var e=[];return me.length>0&&(e=me.map((function(e){var t;return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:null==e||null===(t=e.status)||void 0===t?void 0:t[0]}}))),e}),[me]);return(0,F.jsx)(ot.Provider,{value:{params:b,batchStatus:K,selectArrs:M,setSelectArrs:Z,allSelect:I,dataSource:se.homeworks||[],detailLeftMenus:he,main_category_id:se.main_category_id||"",selectArrsAll:q,setAllSelect:O,useBatchStatus:W,dispatch:p,getData:le,setSelectArrsAll:J},children:(0,F.jsxs)("section",{children:[(0,F.jsxs)("aside",{className:Ce,children:[(0,F.jsx)(Pe,{isLoading:s["classroomList/getClassroomTeacherCommonList"],tabDataSource:(0,w.GJ)()?[{name:"全部",id:0,total:se.all_count||0},{name:"未发布",id:1,total:se.unpublished_count||0},{name:"未开始",id:4,total:se.not_start_count||0},{name:"进行中",id:2,total:se.in_progress_count||0},{name:"已截止",id:3,total:se.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:2},{name:"补交中",id:10},{name:"已截止",id:3}],classroomList:i,isAdmin:(0,w.GJ)(),dispatch:p,type:null==se?void 0:se.main_category_name,TooltipTitle:b.categoryId?"目录重命名":"新建子目录",categoryId:b.categoryId,user:f,dropdownMenu:[{name:"新建编程作业",id:"1"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,P.Oo)(null==he?void 0:he.course_modules,b.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,w.GJ)(),b.status=e.id),W(!1),b.page=1,l.history.replace("".concat(v.pathname,"?tabs=").concat(e.id)),le(b)},defaultSelectedKeys:[T.get("tabs")?T.get("tabs"):"0"],onTooltipTitleClick:function(){p({type:"classroomList/setActionTabs",payload:{key:b.categoryId?"目录重命名":"添加目录",params:b,selectArrs:{category_name:null==se?void 0:se.category_name,category_id:(null==se?void 0:se.category_id)||(null==se?void 0:se.main_category_id)},cb:function(){le()}}})},onDropdownMenuClick:function(e){var t;!(0,w.Rm)()||null!==(t=i.AssistantObject.hack)&&void 0!==t&&t.can_create?"1"===e?l.history.push("/classrooms/".concat(b.coursesId,"/program_homework/").concat(b.categoryId,"/add")):"2"===e?ce():"3"===e&&p({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"hack"}}):c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}}),(0,F.jsx)(Le,{dataSource:se.homeworks||[],isAdmin:(0,w.GJ)(),batchStatus:K,SortMenuName:ge,setSortMenuName:re,onSearch:function(e){b.search=e.trim(),b.page=1,le()},onSort:function(e){var t;b.sort_by=e.type,b.sort_direction=e.direction,b.page=1,P.cX.setItem("".concat(null==f||null===(t=f.userInfo)||void 0===t?void 0:t.login).concat((0,w.GJ)()?"Teacher":"Student"),e,"ProgramHomework"),le(b)},onBatch:function(e){return W(e)}})]}),0===(null==se?void 0:se.all_count)&&(0,w.GJ)()?!s[(0,w.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,F.jsx)(at,{user:f,params:b,dispatch:p,onClick:function(){return l.history.push("/classrooms/".concat(b.coursesId,"/program_homework/").concat(b.categoryId,"/add"))},onSelect:ce}):(null==se?void 0:se.homeworks)&&0===se.homeworks.length&&!s[(0,w.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,F.jsx)(ne.Z,{}),(0,F.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!s[(0,w.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("aside",{className:"animated fadeIn",children:[null==se||null===(a=se.homeworks)||void 0===a?void 0:a.map((function(e,t){return(0,F.jsx)(_e,{user:f,dataSource:e,params:b,classroomList:i,manageAllGroup:null==se?void 0:se.manage_all_group,getData:le},t)})),!s[(0,w.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,F.jsx)("aside",{className:"tc mb50 mt30",children:(null==se?void 0:se.query_total_count)>10&&(0,F.jsx)(u.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){b.page=e,le()},defaultPageSize:20,defaultCurrent:1,current:b.page||1,total:(0,w.GJ)()?se.query_total_count:se.student_all_count})})]}),M.length>0&&(0,w.GJ)()&&(0,F.jsx)(S.Z,{offsetBottom:0,children:(0,F.jsx)(Fe,{buttonDataSource:ue,onClick:function(e){var t,n,a,o;if(0===M.length)return c.ZP.error("请选择你要操作的任务"),!1;if(2!==(null==f||null===(t=f.userInfo)||void 0===t?void 0:t.user_status)||"publish"!==(null==e?void 0:e.key)){var g=e.label||"",r={key:g,selectArrs:M,selectArrsAll:q,type:["publish","deadline"].includes(e.key)?1:"",params:b};switch(e.key){case"publish":if(g="立即发布",(0,w.Rm)()&&(null===(n=i.AssistantObject)||void 0===n||null===(n=n.hack)||void 0===n||!n.can_publish))return void c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能");break;case"deadline":if(g="立即截止",(0,w.Rm)()&&(null===(a=i.AssistantObject)||void 0===a||null===(a=a.hack)||void 0===a||!a.can_stop))return void c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能");break;case"batchpay":g="批量补交";break;case"delete":if(g="删除",(0,w.Rm)()&&(null===(o=i.AssistantObject)||void 0===o||null===(o=o.hack)||void 0===o||!o.can_delete))return void c.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能");break;case"collection":g="收藏"}p({type:"classroomList/setActionTabs",payload:d()(d()({},r),{},{key:g})})}else(0,Ge.Rd)()}})})]})}),"批量补交"===(null==i||null===(g=i.actionTabs)||void 0===g?void 0:g.key)&&(0,F.jsx)(et,{getData:le}),(0,F.jsx)(j,{onCallback:function(){return W(!1)}}),(0,F.jsx)(He.Z,{onOk:function(){le()}}),(0,F.jsx)(Ye.Z,{onOk:function(){}}),(0,F.jsx)(B.Z,{onCallback:function(){return W(!1)},courseEndTime:null==se?void 0:se.course_end_time}),(0,F.jsx)(G.Z,{courseEndTime:null==se?void 0:se.course_end_time,courseId:L.coursesId,visible:"立即截止"===i.actionTabs.key,isBatch:2!==i.actionTabs.type,homeworkIds:i.actionTabs.selectArrs,successCallback:function(){W(!1),le()}}),(0,F.jsx)(_,{}),(0,F.jsx)(N,{onCallback:function(){return W(!1)}}),(0,F.jsx)(R,{onCallback:function(){return W(!1)}}),(0,F.jsx)(oe,{refreshList:le}),(0,F.jsx)(ie,{}),(0,F.jsx)(Ke.Z,{visible:"调整排序"===i.actionTabs.key,callback:Se,data:we,onCancel:function(){p({type:"classroomList/setActionTabs",payload:{key:""}})}}),$&&(0,F.jsx)(Oe,{courseId:b.coursesId,type:"1",onCancel:function(){return ee(!1)}})]})})}))},6179:function(e,t,n){"use strict";var a=n(82242),o=n.n(a),g=n(85573),r=n.n(g),i=n(7557),d=n.n(i),s=n(41498),h=n.n(s),m=n(79800),l=n.n(m),c=n(59301),u=n(24645),S=n(78241),P=n(43418),w=n(8591),p=n(2595),f=n(19677),v=n(97940),L=n(51066),y=n(36057),x=n(61186),b=n.n(x),F=n(64606),k=n(37712),j=u.Z.Dragger;t.Z=(0,f.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,a=e.dispatch,g=e.onOk,i=((0,f.useParams)(),S.Z.useForm()),s=l()(i,1)[0],m=(0,c.useState)(),u=l()(m,2),x=u[0],B=u[1],G=(0,c.useState)(!1),_=l()(G,2),C=_[0],N=_[1],T={height:100,onRemove:function(){B("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=h()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,c.useEffect)((function(){s.setFieldsValue(r()(r()({},"publish_time",b()(b()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",b()(b()(new Date((0,F.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,k.jsx)(P.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:C},onOk:h()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){s.resetFields(),a({type:"classroomList/setActionTabs",payload:{}})},children:(0,k.jsxs)(S.Z,{form:s,onFinish:function(){var e=h()(d()().mark((function e(t){var o,r,i,h,m;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=x&&x.size){e.next=3;break}return w.ZP.info("请上传文件"),e.abrupt("return");case 3:return N(!0),(o=new FormData).append("type",n.actionTabs.type),o.append("file",x),r=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,y.ZP)(r,{method:"post",body:o},!0);case 10:i=e.sent,N(!1),0===(null==i?void 0:i.status)&&(g(),s.resetFields(),a({type:"classroomList/setActionTabs",payload:{}}),(null==i||null===(h=i.data)||void 0===h||null===(h=h.fail)||void 0===h?void 0:h.length)>0&&P.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,k.jsx)(p.Z,{pagination:!1,dataSource:null==i||null===(m=i.data)||void 0===m?void 0:m.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,F.FH)("",v.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,k.jsx)(S.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,k.jsxs)(S.Z.Item,{style:{marginBottom:0},label:(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,k.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("a",{download:"模版.xlsx",className:L.Z.downloadbutton,href:v.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,k.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,k.jsx)(S.Z.Item,{style:{marginBottom:0},children:(0,k.jsxs)(j,o()(o()({},T),{},{children:[(0,k.jsx)("a",{className:L.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,k.jsx)("br",{}),(0,k.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},55310:function(e,t,n){"use strict";var a=n(82242),o=n.n(a),g=n(85573),r=n.n(g),i=n(7557),d=n.n(i),s=n(41498),h=n.n(s),m=n(79800),l=n.n(m),c=n(59301),u=n(24645),S=n(78241),P=n(43418),w=n(8591),p=n(2595),f=n(92832),v=n(95237),L=n(43604),y=n(88897),x=n(78550),b=n(19677),F=n(85667),k=n(97940),j=n(51066),B=n(36057),G=n(42319),_=n(61186),C=n.n(_),N=n(64606),T=n(37712),z=u.Z.Dragger;t.Z=(0,b.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,a=e.dispatch,g=e.onOk,i=(0,b.useParams)(),s=S.Z.useForm(),m=l()(s,1)[0],u=(0,c.useState)(),_=l()(u,2),A=_[0],M=_[1],Z=(0,c.useState)(!1),E=l()(Z,2),D=E[0],I=E[1],R={height:100,onRemove:function(){M("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=h()(d()().mark((function e(t){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,c.useEffect)((function(){m.setFieldsValue(r()(r()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,N.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,T.jsx)(P.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:D},onOk:h()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){m.resetFields(),a({type:"classroomList/setActionTabs",payload:{}})},children:(0,T.jsxs)(S.Z,{form:m,colon:!1,onFinish:function(){var e=h()(d()().mark((function e(t){var o,r,s,h;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=A&&A.size){e.next=3;break}return w.ZP.info("请上传文件"),e.abrupt("return");case 3:return I(!0),(o=new FormData).append("name",t.name),o.append("type",n.actionTabs.type),o.append("category_id",(null==i?void 0:i.categoryId)||null),"exercise"===n.actionTabs.type?(o.append("time",t.time||""),o.append("total_score",t.total_score)):o.append("description",t.description||""),o.append("publish_time",C()(t.publish_time).format("YYYY-MM-DD HH:mm")),o.append("end_time",C()(t.end_time).format("YYYY-MM-DD HH:mm")),o.append("file",A),e.next=14,(0,B.ZP)("/api/courses/".concat(i.coursesId,"/export_external_score_homework.json"),{method:"post",body:o},!0);case 14:r=e.sent,I(!1),0===(null==r?void 0:r.status)&&(m.resetFields(),a({type:"classroomList/setActionTabs",payload:{}}),g(),(null==r||null===(s=r.data)||void 0===s||null===(s=s.fail)||void 0===s?void 0:s.length)>0&&P.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,T.jsx)(p.Z,{pagination:!1,dataSource:null==r||null===(h=r.data)||void 0===h?void 0:h.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,N.FH)("",k.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,T.jsx)(S.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,T.jsx)(f.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,T.jsx)(S.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,T.jsx)(F.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,T.jsxs)(v.Z,{style:{marginLeft:6},children:[(0,T.jsx)(L.Z,{span:12,children:(0,T.jsx)(S.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,T.jsx)(f.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,T.jsx)(L.Z,{span:12,children:(0,T.jsx)(S.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,T.jsx)(y.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,T.jsxs)(v.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,T.jsx)(L.Z,{span:12,children:(0,T.jsx)(S.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,T.jsx)(x.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,G.Q8)(e)},disabledTime:function(e){return(0,G.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,T.jsx)(L.Z,{span:12,children:(0,T.jsx)(S.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,T.jsx)(x.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,G.Q8)(e,"",m.getFieldValue("publish_time"))},disabledTime:function(e){return(0,G.d0)(e,m.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,T.jsxs)(S.Z.Item,{style:{marginBottom:0},label:(0,T.jsxs)("div",{children:[(0,T.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,T.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,T.jsxs)("div",{children:[(0,T.jsx)("a",{download:"模版.xlsx",className:j.Z.downloadbutton,href:k.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,T.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,T.jsx)(S.Z.Item,{style:{marginBottom:0},children:(0,T.jsxs)(z,o()(o()({},R),{},{children:[(0,T.jsx)("a",{className:j.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,T.jsx)("br",{}),(0,T.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},61835:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(79800),d=n.n(i),s=n(59301),h=n(92832),m=n(24905),l=n(95237),c="leftdiv___aBzsX",u="listClass___bxIEW",S="spantitle___v_Vc4",P="rightdiv___xWu4M",w=n(69718),p=n(37712),f=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),a=e.selectedRowKeys,g=(e.onChange,(0,s.useState)([])),i=d()(g,2),f=i[0],v=i[1],L=(0,s.useState)([]),y=d()(L,2),x=y[0],b=y[1],F=(0,s.useState)([]),k=d()(F,2),j=k[0],B=k[1],G=(0,s.useState)(1),_=d()(G,2),C=(_[0],_[1],(0,s.useState)()),N=d()(C,2);N[0],N[1];return(0,s.useEffect)((function(){v(t),b([]),B([])}),[t]),(0,s.useEffect)((function(){n&&(b(a),B(a))}),[a]),(0,p.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,p.jsxs)("div",{className:c,children:[(0,p.jsx)(h.Z.Search,{size:"middle",onChange:function(){var e=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===f.length&&(0,p.jsx)(w.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,p.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,p.jsx)(m.Z.Group,{value:x.map((function(e){return"".concat(e.id)})),onChange:function(e){n(f.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:f.map((function(e,t){return(0,p.jsx)(l.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,p.jsx)(m.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,p.jsxs)("div",{className:u,children:[(0,p.jsx)("span",{className:S,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,p.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,p.jsxs)("div",{className:P,children:[(0,p.jsx)(h.Z.Search,{onChange:function(e){B(x.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===j.length&&(0,p.jsx)(w.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),j.length>0&&(0,p.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,p.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:j.map((function(e,t){return(0,p.jsxs)(l.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,p.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,p.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(x.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},3117:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(82242),d=n.n(i),s=n(79800),h=n.n(s),m=n(59301),l=n(43418),c=n(78485),u=n(95237),S=n(6848),P="wrap___KDoq2",w="tip___WEJuX",p="listWrap___IJDX4",f="li___r5con",v="nameWrap___PUyEz",L="name___xuUMY",y="tag___l5CW2",x=n(78018),b=n(19677),F=n(37712),k=function(e){var t,n,a=e.type,g=void 0===a?1:a,i=e.data,s=e.visible,k=e.callback,j=e.onCancel,B=(0,m.useState)([]),G=h()(B,2),_=G[0],C=G[1],N=(0,b.useSelector)((function(e){return e.loading}));(0,m.useEffect)((function(){C(i)}),[JSON.stringify(i)]);var T=function(e){var t={};if(1===g){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===g){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,F.jsx)("div",{className:y,style:d()({},t),children:e})},z=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k(_.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(l.Z,{centered:!0,destroyOnClose:!0,open:s,onCancel:j,onOk:z,confirmLoading:null==N||null===(t=N.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,F.jsxs)("div",{className:P,children:[(0,F.jsxs)("div",{className:w,children:[(0,F.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,F.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,F.jsx)(c.Z,{loading:null==N||null===(n=N.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,F.jsx)(x.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var a=Array.from(e),o=a.splice(t,1),g=h()(o,1)[0];return a.splice(n,0,g),a}(t,e.source.index,e.destination.index);C(n)}}(e,_)},children:(0,F.jsx)(x.bK,{droppableId:"droppable",children:function(e,t){return(0,F.jsxs)("div",d()(d()({ref:e.innerRef},e.droppableProps),{},{className:p,children:[_.map((function(e,t){return(0,F.jsx)(x._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,F.jsxs)("div",d()(d()(d()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:f,children:[(0,F.jsxs)(u.Z,{align:"middle",children:[(0,F.jsx)("div",{className:v,children:(0,F.jsx)(S.Z,{title:null==e?void 0:e.task_name,children:(0,F.jsx)("div",{className:L,children:null==e?void 0:e.task_name})})}),T(null==e?void 0:e.status)]}),(0,F.jsx)(u.Z,{align:"middle",className:"font12 mt10",children:(0,F.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,F.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},84417:function(e,t,n){"use strict";n.d(t,{$J:function(){return d},JZ:function(){return h},bN:function(){return c},jP:function(){return l},rO:function(){return s}});var a=n(7557),o=n.n(a),g=n(41498),r=n.n(g),i=n(36057);function d(e){return(0,i.U2)("libraries/".concat(e,".json"))}function s(){return(0,i.U2)("library_tags.json")}function h(e){return m.apply(this,arguments)}function m(){return(m=r()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return(0,i.v_)("libraries.json",e)}function c(e,t){return(0,i.gz)("libraries/".concat(e,".json"),t)}},79407:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var a=n(7557),o=n.n(a),g=n(82242),r=n.n(g),i=n(41498),d=n.n(i),s=n(79800),h=n.n(s),m=n(59301);function l(e,t){var n=(0,m.useState)(t),a=h()(n,2),g=a[0],i=a[1],s=(0,m.useState)(!1),l=h()(s,2),c=l[0],u=l[1],S=(0,m.useState)(),P=h()(S,2),w=P[0],p=P[1],f=function(){var n=d()(o()().mark((function n(a){var d,s,h,m=arguments;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return d=m.length>1&&void 0!==m[1]&&m[1],s=d?t:r()(r()({},g),a),u(!0),i(s),n.next=6,e(s);case 6:return h=n.sent,u(!1),p(h),n.abrupt("return",h);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[g,c,f,w]}},51066:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},93314:function(e){"use strict";e.exports="data:image/png;base64,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"}}]); |