You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
396 KiB
150 lines
396 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8517],{26227:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Je}});var ae=ge(92413),fe=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ne=Ke,ce=ge(7657),we=function(ke,We){return fe.createElement(ce.Z,(0,ae.Z)({},ke,{ref:We,icon:Ne}))},le=fe.forwardRef(we),Je=le},41464:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Je}});var ae=ge(92413),fe=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ne=Ke,ce=ge(7657),we=function(ke,We){return fe.createElement(ce.Z,(0,ae.Z)({},ke,{ref:We,icon:Ne}))},le=fe.forwardRef(we),Je=le},33853:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Je}});var ae=ge(92413),fe=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ne=Ke,ce=ge(7657),we=function(ke,We){return fe.createElement(ce.Z,(0,ae.Z)({},ke,{ref:We,icon:Ne}))},le=fe.forwardRef(we),Je=le},38819:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Je}});var ae=ge(92413),fe=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ne=Ke,ce=ge(7657),we=function(ke,We){return fe.createElement(ce.Z,(0,ae.Z)({},ke,{ref:We,icon:Ne}))},le=fe.forwardRef(we),Je=le},88010:function(Oe,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function Oe(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Oe.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Oe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Oe.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Oe.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Oe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var it=[];function ge(ne,a){var y=it.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=it.pop();return ne===void 0?new go.Point:ne}function fe(ne){it.push(ne)}function Ke(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,ue=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ue=a);else{var se=(E-ee)/re,Ce=E-se*b;ie=ne,ue=se*ie+Ce}else if(re===0){var Fe=(a-x)/oe,nt=a-Fe*ne;ie=b,ue=Fe*ie+nt}else{var Fe=(a-x)/oe,se=(E-ee)/re,nt=a-Fe*ne,Ce=E-se*b;ie=(Ce-nt)/(Fe-se),ue=Fe*ie+nt}return te.x=ie,te.y=ue,te}function Ne(ne,a,y,x,b,E,z,ee,te,oe,re,ie,ue,se){var Ce=1-te,Fe=te,nt=ne*Ce+y*Fe,ft=a*Ce+x*Fe,Ht=y*Ce+b*Fe,be=x*Ce+E*Fe,Qe=b*Ce+z*Fe,He=E*Ce+ee*Fe,Ue=nt*Ce+Ht*Fe,at=ft*Ce+be*Fe,St=Ht*Ce+Qe*Fe,Tt=be*Ce+He*Fe,kt=Ue*Ce+St*Fe,Ut=at*Ce+Tt*Fe;oe.x=nt,oe.y=ft,re.x=Ue,re.y=at,ie.x=kt,ie.y=Ut,ue.x=St,ue.y=Tt,se.x=Qe,se.y=He}var ce=new go.Spot(.156,.156),we=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Oe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Oe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Oe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Oe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Je=[];function Te(){var ne=Je.pop();return ne===void 0?[]:ne}function ke(ne){ne.length=0,Je.push(ne)}function We(ne){for(var a=Te(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Ae(ne){var a=Ie(ne),y=Te();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return ke(a),y}function Ie(ne){for(var a=We(ne),y=Te(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],ke(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=We(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=We(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=We(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=We(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=We(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=We(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=We(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ke(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Ae(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Ae(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Ae(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Ae(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Ae(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Ae(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),ke(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Oe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Oe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Oe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=we,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=le/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Oe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Oe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=le*.4;var oe=ae(),re=ae(),ie=ae(),ue=ae();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ue,ue);var se=ae(),Ce=ae(),Fe=ae();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,Fe,se,Ce);var nt=ae(),ft=ae(),Ht=ae();Ne(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,nt,ft,Ht,ue,ue);var be=ae(),Qe=ae(),He=ae();return Ne(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,He,be,Qe),te.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,be.x*a,be.y*y,Qe.x*a,Qe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Ht.x*a,Ht.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*a,Ht.y*y,nt.x*a,nt.y*y,ft.x*a,ft.y*y).close()),fe(oe),fe(re),fe(ie),fe(ue),fe(se),fe(Ce),fe(Fe),fe(nt),fe(ft),fe(Ht),fe(be),fe(Qe),fe(He),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var se=ge(oe.x,oe.y);Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Ce=ge(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=le*.35;var Fe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var nt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(nt),fe(te),fe(oe),fe(re),fe(ie),fe(se),fe(Ce),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Ke(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Oe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ke(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ke(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Oe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ke(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ke(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,le*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-le*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-le*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-le*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,le*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-le*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-le*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-le*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+le*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+le*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=le*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-le*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,le*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-le*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-le*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=le*b,ee=le*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ue=le*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ue)*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ue=le*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ue=le*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ue=le*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ue)*y,(te+ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ue)*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ue=le*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ue)*y,(te-ue)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Oe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=le*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=le*.4,z=le*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=le*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=le*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ue=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,oe=.5;var Ce=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=le*.4,ee=.4,te=.8,oe=.5;var Fe=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,oe=.5;var nt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=le*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var ue=ge(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ne(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=le*.3,E=.3,Ne(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ne(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(oe),fe(re),fe(ie),fe(ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ue=.5,se=0,Ce=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ue=z,se=z,Ce=re*ue,Fe=re*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,te*y,(ee-(Ce+ue)/2)*a,(te+(se+Fe)/2)*y,(ee-ue)*a,(te+Fe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ue)*a,(te-Fe)*y,(ee-Ce)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,te*y,(ee+Ce)*a,(te-se)*y,(ee+ue)*a,(te-Fe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(te+Fe)*y,(ee+(Ce+ue)/2)*a,(te+(se+Fe)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var nt=new go.PathFigure(.2*a,y,!1);x.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ft=new go.PathFigure(.8*a,y,!1);return x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=le*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=le*.1,re=.1,ie=.9,ue=new go.PathFigure((re-te)*a,ie*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=le*.1,re=.4,ie=.9;var se=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=le*.05,ue=.175,se=.95,ee=new go.PathFigure((ue-re)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ue=.375,se=.95,te=new go.PathFigure((ue-re)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ue=.625,se=.95,oe=new go.PathFigure((ue-re)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y));var re=.05,ie=le*.05,ue=.825,se=.95,Ce=new go.PathFigure((ue-re)*a,se*y,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se-re)*y,(ue-re)*a,(se-ie)*y,(ue-ie)*a,(se-re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,se*y,(ue+ie)*a,(se-re)*y,(ue+re)*a,(se-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(se+re)*y,(ue+re)*a,(se+ie)*y,(ue+ie)*a,(se+re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,se*y,(ue-ie)*a,(se+re)*y,(ue-re)*a,(se+ie)*y).close());var Fe=new go.PathFigure(0,y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=le*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*le,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*le,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Oe={},it="5.0",ge={},ae=null,fe=!1,Ke=!1,Ne=null,ce=!1,we=null,le=null,Je=0;Je<arguments.length;Je++){var Te=arguments[Je];if(Te!==null)switch(typeof Te){case"number":it=Te.toFixed(1);break;case"string":Te.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Te:Ne=Te;break;case"object":typeof Te.is3D!="undefined"?ae=Te:ge=Te;break;case"boolean":fe=Te,Ke=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Ke&&(fe=!0)),Ne!==null&&ge.id===void 0&&(ge.id=Ne);var ke="",We="",Ae=!1,Ie=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Oe.setHTML5Codebase=function(ye,ze){le=ye,Tt(ye,ze)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(ye,ze){var qe=parseFloat(ye);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}we=ye,St(ye,ze)},Oe.getHTML5CodebaseVersion=function(){return ne},Oe.getParameters=function(){return ge},Oe.setFontsCSSURL=function(ye){z=ye},Oe.setGiacJSURL=function(ye){},Oe.setJNLPFile=function(ye){ke=ye},Oe.setJNLPBaseDir=function(ye){},Oe.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",qe=ge.id,vt,et=!1,st=0;st<arguments.length;st++){var de=arguments[st];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=de:qe=arguments[st]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(vt=de)}ot();function ot(){if(!ce){setTimeout(ot,200);return}ze=Ue(ze);var ht=vt||document.getElementById(qe);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Oe.removeExistingApplet(ht,!1),ge.width===void 0&&ht.clientWidth&&(ge.width=ht.clientWidth),ge.height===void 0&&ht.clientHeight&&(ge.height=ht.clientHeight),!(ge.width&&ge.height)&&ze==="html5"&&(delete ge.width,delete ge.height),Ie=ze,ze==="screenshot")ft(ht,ge);else{var Mt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Mt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Mt=(!oe()||ye())&&re()),Mt?(Ie="screenshot",be(ht,ge,et,ze)):nt(ht,ge,et)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Oe.getViews=function(){return ae},Oe.isJavaInstalled=function(){return!1};var ie=function(ye){var ze=function(st){var de=JSON.parse(st),ot=function(Dt){return Dt.type=="G"||Dt.type=="E"},ht=de.elements?de.elements.filter(ot)[0]:de;if(!ht||!ht.url){qe();return}ge.fileName=ht.url,ue(ht.settings||{}),ae.is3D=!0;var Mt="https://www.geogebra.org/images/";Oe.setPreviewImage(x||ht.previewUrl,Mt+"GeoGebra_loading.png",Mt+"applet_play.png"),ye()},qe=function(){ge.onError&&ge.onError(),kt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},vt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+ge.material_id+"?scope=basic";se("https://"+vt+"/api/proxy.php?path="+encodeURIComponent(et),ze,qe)};function ue(ye){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){ye[qe]=!!ye[qe]}),ze.forEach(function(qe){ge[qe]===void 0&&ye[qe]!==void 0&&(ge[qe]=ye[qe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(ye,ze,qe){var vt=new XMLHttpRequest;vt.open("GET",ye),vt.onload=function(){ze(vt.responseText)},vt.onerror=qe,vt.send()}Oe.isHTML5Installed=function(){return!0},Oe.getLoadedAppletType=function(){return Ie},Oe.setPreviewImage=function(ye,ze,qe){x=ye,b=ze,E=qe},Oe.removeExistingApplet=function(ye,ze){var qe;typeof ye=="string"&&(ye=document.getElementById(ye)),Ie=null;var vt=null;for(qe=0;qe<ye.childNodes.length;qe++){var et=ye.childNodes[qe],st=et.className;st==="applet_screenshot"?ze?(et.style.display="block",Ie="screenshot"):et.style.display="none":st!=="applet_scaler prerender"&&(ye.removeChild(et),vt=st&&st.indexOf("appletParameters")!=-1?et.id:null,qe--)}var de=ge.id!==void 0?ge.id:vt,ot=window[de];ot&&typeof ot.getBase64=="function"&&(ot.remove(),window[de]=null)},Oe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Oe.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var ye=Oe.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Oe.stopAnimation=function(){var ye=Oe.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},Oe.resize=function(){};var Ce=function(ye,ze,qe){var vt=document.createElement("param");vt.setAttribute("name",ze),vt.setAttribute("value",qe),ye.appendChild(vt)},Fe=function(ye){return ye&&ye!=="false"},nt=function(ye,ze,qe){te(ne)<=4.2&&(qe=!0);var vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var st=ze.width,de=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(te(ne)<=4.4)Fe(ze.showToolBar)&&(ze.height-=7),Fe(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&Fe(ze.showToolBar)&&(ze.width=605,st=605);else{var ot=100;(Fe(ze.showToolBar)||Fe(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),ot=Fe(ze.showMenuBar)?245:155),st<ot&&(ze.width=ot,st=ot)}et.style.border="none",et.style.display="inline-block";for(var ht in ze)ze.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&et.setAttribute("data-param-"+ht,ze[ht]);z&&et.setAttribute("data-param-fontscssurl",z),Oe.resize=function(){GGBAppletUtils.responsiveResize(ye,ze)},window.addEventListener("resize",function(Lt){Oe.resize()});var Mt=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!qe&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Dt=ye.querySelector(".applet_scaler.prerender"),Ge=Dt!==null;if(Ge)var Le=Dt.querySelector(".ggb_preview");else{var Le=He(st,de,ze.borderColor,!1);Dt=document.createElement("div"),Dt.className="applet_scaler",Dt.style.position="relative",Dt.style.display="block",Dt.style.width=st+"px",Dt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),te(ne)>=5?(ze.appletOnLoad=function(Lt){var Rt=ye.querySelector(".ggb_preview");Rt&&Rt.parentNode.removeChild(Rt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Dt),window.GGBT_wsf_view&&$(window).trigger("resize"),Mt(Lt)},Ge||Dt.appendChild(Le)):et.appendChild(Le),Dt.appendChild(et),Ge||ye.appendChild(Dt),setTimeout(function(){Oe.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(et),ye.appendChild(Se),ze.appletOnLoad=function(Lt){Oe.resize(),Mt(Lt)}}function Re(Lt,Rt){Rt&&typeof Rt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Lt,Rt.appletOnLoad):renderGGBElement(Lt),kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Rt)}function Ze(Lt,Rt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Lt,params:Rt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){Re(Pn.article,Pn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Lt.className+=" geogebraweb")):Re(Lt,Rt)}if(vt){scriptLoadStarted=!0;for(var dt=0;dt<et.childNodes.length;dt++){var xt=et.childNodes[dt].tagName;xt==="TABLE"&&(et.removeChild(et.childNodes[dt]),dt--)}if(ggbHTML5LoadedScript!==null){var Ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ct!=null&&Ct.parentNode.removeChild(Ct)}var Nt=document.createElement("script"),At=function(){Ze(et,ze)};Nt.src=We+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Nt.src,kt("GeoGebra HTML5 codebase loaded: '"+We+"'.",ze),!le&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),At()):We.requirejs?__webpack_require__.e(4184).then(function(){var Lt=[__webpack_require__(74620)];At.apply(null,Lt)}.bind(this)).catch(__webpack_require__.oe):(Nt.onload=At,ye.appendChild(Nt))}else Ze(et,ze);ze.height=de,ze.width=st},ft=function(ye,ze,qe){var vt=He(ze.width,ze.height,ze.borderColor,qe),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=ze.width+"px",et.style.height=ze.height+"px",et.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),et.appendChild(vt);var st=GGBAppletUtils.getScale(ze,ye,qe);qe?(ye.appendChild(Qe()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),ye.appendChild(et),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(et,st),et.style.width=ze.width+"px",et.style.height=ze.height+"px",et.parentNode.style.width=ze.width*st+"px",et.parentNode.style.height=ze.height*st+"px"),Oe.resize=function(){Ht(ye,vt,et,qe)},window.addEventListener("resize",function(de){Oe.resize()}),Oe.resize()};function Ht(ye,ze,qe,vt){if(ye.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var et=GGBAppletUtils.getScale(ge,ye,vt);qe.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(qe,et),qe.parentNode.style.width=ge.width*et+"px",qe.parentNode.style.height=ge.height*et+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=ge.width+"px",qe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Oe.onExitFullscreen=function(ye,ze){ze.appendChild(ye)};var be=function(ye,ze,qe,vt){ft(ye,ze,!0);for(var et=function(){var ot=[];for(de=0;de<ye.childNodes.length;de++)ot.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(ye,ze.id),Mt=document.getElementById("fullscreencontainer"),Dt=jQuery(ye).find(".fullscreencontent");Dt.length>0?(ht.remove(),Dt.attr("id","fullscreencontent").show(),jQuery(Mt).append(Dt),window.dispatchEvent(new Event("resize"))):nt(ht,ze,!1),window.GGBT_wsf_view.launchFullScreen(Mt)}else Ie=vt,nt(ye,ze,!1);if(!window.GGBT_wsf_view)for(de=0;de<ot.length;de++)ye.removeChild(ot[de])},st=ye.getElementsByClassName("ggb_preview_play"),de=0;de<st.length;de++)st[de].addEventListener("click",et,!1),st[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=ze:qe.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(qe)}return ye},He=function(ye,ze,qe,vt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=ye-2+"px",et.style.height=ze-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var st="lightgrey";qe!==void 0&&(qe==="none"?st="transparent":st=qe),et.style.border="1px solid "+st;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var ot,ht,Mt;if(!vt){ot=document.createElement("img"),ot.style.position="absolute",ot.style.zIndex="1001",ot.style.opacity=1,de.style.opacity=.3,ht=360,ht>ye/4*3&&(ht=ye/4*3),Mt=ht/5.8,ot.setAttribute("src",b),ot.setAttribute("width",ht),ot.setAttribute("height",Mt);var Dt=(ye-ht)/2,Ge=(ze-Mt)/2;ot.style.left=Dt+"px",ot.style.top=Ge+"px",et.appendChild(ot)}}return et.appendChild(de),et},Ue=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],St=function(ye,ze){if(ne=ye,ze){Tt(ne,!0);return}var qe=!fe;if(qe){var vt=te(ne);!isNaN(vt)&&vt<4.4&&(qe=!1)}var et,st;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?st=ne:de===0?st=et+ne:st="https://www.geogebra.org/apps/5.2.814.0/";for(var ot in at)if(ne.slice(at[ot].length*-1)===at[ot]||ne.slice((at[ot].length+1)*-1)===at[ot]+"/"){Tt(st,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Fe(ge.showToolBar)&&!Fe(ge.showMenuBar)&&!Fe(ge.showAlgebraInput)&&!Fe(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?st+="webSimple/":st+="web3d/",Tt(st,!1)},Tt=function(ye,ze){if(ye.requirejs){We=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),We=ye,ze===null&&(ze=ye.indexOf("http")===-1),Ae=ze,a="web.nocache.js",y=!1;var qe=We.split("/");qe.length>1&&(!ze&&qe[qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):at.indexOf(qe[qe.length-2])>=0&&(a=qe[qe.length-2]+".nocache.js")),qe=ye.split("/"),ne=qe[qe.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var vt=parseFloat(ne);vt!==NaN&&vt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+vt+" is deprecated. Using version latest instead."),St("5.0",ze))},kt=function(ye,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(Ut):Ut();function Ut(){var ye=it;we!==null?ye=we:parseFloat(ye)<5&&(ye="5.0"),St(ye,!1),le!==null&&Tt(le,Ae),ce=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function it(ce,we){we!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+we+","+we+")",ce.style.webkitTransform="scale("+we+","+we+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function ge(ce,we,le,Je,Te,ke){var We=null;if(ke!=null&&ke!="")for(var Ae=ce.parentNode;Ae!=null;)if((" "+Ae.className+" ").indexOf(" "+ke+" ")>-1){We=Ae;break}else Ae=Ae.parentNode;var Ie=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(We)Ie=We.offsetWidth,ne=Math.max(Je?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Te===void 0||!Te)&&(document.dir==="rtl"?(x=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((le===void 0||!le)&&we>0&&we+y<Ie?Ie=we:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=E)),{width:Ie,height:ne}}function ae(ce,we,le,Je,Te){if(ce.isScreenshoGenerator)return 1;var ke=Je!==void 0&&Je,We=ce.noScaleMargin!=null&&ce.noScaleMargin,Ae=function(ee){return ee&&ee!=="false"},Ie=Ae(ce.autoHeight),ne=ge(we,ce.width,le,Ie,ke&&window.GGBT_wsf_view||We,Te),a=parseInt(ne.width),y=ce.width,x=ce.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=ke?1:ne.height/x;return le!==void 0&&!le&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(ce,we,le){var Je=1,Te,ke=!1;if(ce.hasOwnProperty("allowUpscale")&&(ke=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Je=parseFloat(ce.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(ke=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Te=ae(ce,we,ke,le,ce.scaleContainerClass);else return Je;return ke&&(!ce.hasOwnProperty("scale")||Je===1)?Te:Math.min(Je,Te)}function Ke(ce){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=ce.getBoundingClientRect(),Te=(we-Je.width)/2,ke=(le-Je.height)/2;ke<0&&(ke=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te<40?ce.style.left="40px":ce.style.left=Te+"px",ce.style.top=ke+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ke<40?ce.style.top="40px":ce.style.top=ke+"px",ce.style.left=Te+"px")}function Ne(ce,we){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Je=fe(we,ce);Oe()&&le.setAttribute("data-param-scale",Je);for(var Te=null,ke=0;ke<ce.childNodes.length;ke++)if(ce.childNodes[ke].className!==void 0&&ce.childNodes[ke].className.match(/^applet_scaler/)){Te=ce.childNodes[ke];break}if(Te!==null&&Te.querySelector(".noscale")!==null)return;var We=we.id!==void 0?we.id:"ggbApplet",Ae=window[We];(Ae==null||!Ae.recalculateEnvironments)&&Te!==null&&!Te.className.match(/fullscreen/)&&(Te.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Te.parentNode.style.width=we.width*Je+"px",Te.parentNode.style.height=we.height*Je+"px",it(Te,Je)):(it(Te,1),Te.parentNode.style.width=we.width+"px",Te.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Oe,positionCenter:Ke,getScale:fe,scaleElement:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Oe=n.location.search;return Oe.indexOf(J)!=-1||Oe.indexOf(K)!=-1}function q(Oe,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Oe){var it=s[L].bindings;s[L].bindings=function(){for(var ge=it?it():{},ae=Oe[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var Ke=ae[fe];ge[Ke[O]]=Ke[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Oe=o.createElement(Q);if(Oe.id=L,Oe.style.cssText=R+S,Oe.tabIndex=-1,o.body.appendChild(Oe),t=Oe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Oe){function it(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=fe();if(Ke){ae();return}function Ne(){if(!Ke){if(!fe())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var ce=setInterval(function(){Ne()},$)}function ge(ae){var fe=u(),Ke=fe.body,Ne=fe.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ae,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Ne)}it(function(){ge(Oe)})}webModule.__startLoadingFragment=function(Oe){return C(Oe)},webModule.__installRunAsyncCode=function(Oe){var it=u(),ge=it.body,ae=it.createElement(_);ae.language=ab,ae.text=Oe,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var it=c[Oe];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Oe(ce){var we=ce.lastIndexOf(rb);we==-1&&(we=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var Je=ce.lastIndexOf(tb,Math.min(le,we));return Je>=O?ce.substring(O,Je+P):W}function it(ce){if(!ce.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ce+vb,ce=Oe(we.src)}return ce}function ge(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),we=O;we<ce.length;++we)if(ce[we].src.indexOf(xb)!=-1)return Oe(ce[we].src);return W}function fe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ke(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ne=ge();return Ne==W&&(Ne=ae()),Ne==W&&(Ne=fe()),Ne==W&&Ke()&&(Ne=Oe(o.location.href)),Ne=it(Ne),Ne}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],it=O,ge=[],ae=[];function fe(ce){var we=ae[ce](),le=ge[ce];if(we in le)return we;var Je=[];for(var Te in le)Je[le[Te]]=Te;throw r&&r(ce,Je,we),null}if(__gwt_isKnownPropertyValue=function(ce,we){return we in ge[ce]},webModule.__getPropMap=function(){var ce={};for(var we in ge)ge.hasOwnProperty(we)&&(ce[we]=fe(we));return ce},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ne=Ke.indexOf(Db);Ne!=-1&&(it=parseInt(Ke.substring(Ne+P),$),Ke=Ke.substring(O,Ne))}catch(ce){}return webModule.__softPermutationId=it,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Oe,it,ge){"use strict";ge.d(it,{Ax:function(){return Ne},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ke},f1:function(){return fe}});var ae=ge(3294);function fe(Je){let Te=!0;if(Je.length>0){for(let ke=0;ke<Je.length;ke++)if(Je[ke].compile_success==0||!Je[ke].compile_success){Te=!1;break}}else Te=!1;return Te}function Ke(Je,Te=""){let ke=[];for(let We=0;We<Je.length;We++){let Ae=Je[We],Ie=Te?`${Te}/${Ae.name}`:`${Ae.name}`;ke.push({title:Ae.name,type:Ae.type,isLeaf:Ae.type!=="tree",key:Ie})}return ke}function Ne(Je,Te,ke){for(let We=0;We<Je.length;We++){let Ae=Je[We];if(Ae.key===Te){Ae.children=ke;break}Ae.children&&Ne(Ae.children,Te,ke)}return Je}function ce(Je,Te,ke){let We;return function(){let Ae=this,Ie=arguments,ne=function(){We=null,ke||Je.apply(Ae,Ie)},a=ke&&!We;clearTimeout(We),We=setTimeout(ne,Te),a&&Je.apply(Ae,Ie)}}const we=!0,le=ae.Z.API_SERVER},73524:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return We}});var ae=ge(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=ge(92310),Ne=ge.n(Ke),ce=ge(71418),we=ge(2859),le=ge(99064),Je=ge(955),Te=(Ae,Ie,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ae,Ie)).next())}),We=({data:Ae,className:Ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ue,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ae!=null&&Ae.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ae!=null&&Ae.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ae==null?void 0:Ae.visible]);const Ce=()=>Te(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Je.ZJ)(Ae==null?void 0:Ae.src);z.current.src="",z.current.src=be,z.current.onload=function(){Ht()},ie(!1),se("")}),Fe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},nt=be=>Te(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ae.title,file:be.dataUrl}});Qe!=null&&Qe.id&&!E?(yield(0,le.ZP)(`/api/attachments/${Ae.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(be.state)}})).status===0&&x():Qe!=null&&Qe.id&&x(Qe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),ft=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const Ue=document.querySelector(He.name);Ue&&Ue.setAttribute("title",He.title)})},Ht=()=>{ee.current=new we.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",nt),ee.current.addEventListener("beforeclose",Fe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ae!=null&&Ae.snapshotData&&ee.current.restoreState(Ae.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ft()},300)};return ae.createElement(ae.Fragment,null,(Ae==null?void 0:Ae.visible)&&ae.createElement(ce.Z,{spinning:re,tip:ue,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ne()(fe.imageDimensions,Ie,ne?fe.fullWidth:""),style:a},ae.createElement("img",{className:fe.img,ref:z}))))}},41588:function(Oe,it,ge){"use strict";var ae=ge(59301),fe=ge(95237),Ke=ge(43604),Ne=ge(99313),ce=ge(3113),we=ge(85149),le=ge(88010),Je=ge(48136),Te=ge(59301);const ke=(0,ae.forwardRef)(({callback:We,showSaveButton:Ae,value:Ie=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Te.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Te.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Te.createElement("div",null,Te.createElement(we.Z,{value:`$$${ee.value}$$`}),ee.name),Te.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>Te.createElement("div",{key:re},Te.createElement("h1",null,oe.name),Te.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Te.createElement(Ke.Z,{key:ue,onClick:()=>b(ie),className:le.Z.diamond},Te.createElement(we.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Te.createElement(fe.Z,{className:le.Z.lists,gutter:[10,10]},x.map((ee,te)=>Te.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Te.createElement("div",null,Te.createElement(we.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Te.createElement("div",{className:le.Z.children},ee.children.map((oe,re)=>Te.createElement("div",{key:re},oe.name&&Te.createElement("h1",null,oe.name),Te.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>Te.createElement(Ke.Z,{key:ue,onClick:()=>b(ie),className:le.Z.diamond},Te.createElement(we.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return We&&We(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Te.createElement("div",{className:le.Z.mathWrap},Te.createElement(Ne.default,{defaultActiveKey:"1",items:E}),Te.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),Ae&&Te.createElement("div",{className:le.Z.button},Te.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=ke},97692:function(Oe,it,ge){"use strict";ge.d(it,{h:function(){return ee}});var ae=ge(59301),fe=ge(57809),Ke=ge(78241),Ne=ge(3113),ce=ge(89780),we=ge.n(ce),le=ge(37036),Je=ge(95625),Te=Object.defineProperty,ke=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Te(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ie.call(oe,re)&&a(te,re,oe[re]);if(Ae)for(var re of Ae(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>ke(te,We(oe));const b=fe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};it.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ue(Ce){ie(z[Ce][1])}function se(Ce){te(Ce)}return ae.createElement(Ke.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:ue},Object.keys(z).map(Ce=>ae.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ae.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ne.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ue=(0,ae.useRef)(),[se,Ce]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let Fe=function(nt){const ft=nt.getValue();oe&&oe(ft)};return se.on("change",Fe),()=>{se.off("change",Fe)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",re)},[se,re]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(ue.current&&!se){const Fe=we().fromTextArea(ue.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Ce(Fe)}},[ue.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ue}))}},12290:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Jn}});var ae=ge(59301),fe=ge(89780),Ke=ge.n(fe),Ne=ge(76374),ce=ge(37036),we=ge(6313),le=ge(25717),Je=ge(99498),Te=ge(25419),ke=ge(67549),We=ge(85149),Ae=({value:pe="",className:ve,showTextOnly:Pe,showLines:rt,style:Ft={}})=>{const pt=(0,ae.useMemo)(()=>"",[pe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:pt}}))},Ie=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(pe,ve,Pe)=>ve in pe?ne(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ve]=Pe,ee=(pe,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(pe,Pe,ve[Pe]);if(x)for(var Pe of x(ve))E.call(ve,Pe)&&z(pe,Pe,ve[Pe]);return pe},te=(pe,ve)=>a(pe,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:pe,title:ve,icon:Pe,actionName:rt,className:Ft="",children:pt}){function gn(){pe(rt)}return Ie.createElement("a",{title:ve,className:Ft,onClick:gn},Ie.createElement("i",{className:`${Pe}`}),pt)}var ie=({watch:pe,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:rt,fullScreen:Ft,insertTemp:pt,hidetoolBar:gn,extraUse:jt})=>{const Yt=[...oe,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Yt.map((vn,kn)=>Ie.createElement("li",{key:kn},vn.actionName?Ie.createElement(re,te(ee({},vn),{onActionCallback:rt})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rt},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rt},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,pt&&Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${pt}`,onActionCallback:rt},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),jt&&Ie.createElement("li",null,jt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(re,{icon:`${Ft?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rt})))},ue=ge(79346),se=ge(78241),Ce=ge(92832),Fe=ge(3113),nt=Object.defineProperty,ft=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ue=(pe,ve,Pe)=>ve in pe?nt(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ve]=Pe,at=(pe,ve)=>{for(var Pe in ve||(ve={}))Qe.call(ve,Pe)&&Ue(pe,Pe,ve[Pe]);if(be)for(var Pe of be(ve))He.call(ve,Pe)&&Ue(pe,Pe,ve[Pe]);return pe},St=(pe,ve)=>ft(pe,Ht(ve));const Tt={labelCol:{span:4},wrapperCol:{span:20}};var kt=({callback:pe,onCancel:ve})=>{function Pe(rt){pe(rt)}return ae.createElement(se.default,St(at({},Tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ce.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ce.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Fe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Ut=ge(97692),ye=ge(28451),ze=ge(43418),qe=ge(95237),vt=ge(73524),et=ge(59301),st=({callback:pe,onCancel:ve})=>{const Pe=document.createElement("canvas"),rt=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,rt.fillStyle="#ffffff",rt.fillRect(0,0,Pe.width,Pe.height);const Ft=Pe.toDataURL("image/png");return et.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(qe.Z,{style:{height:"100vh"}},et.createElement(vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ft,visible:!0,title:String(Date.now())},onOk:pt=>{pe({src:pt.url})},onClose:ve})))},de=ge(12378);function ot(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ot,go.CommandHandler),ot.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},ot.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var ve=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),pe.commitTransaction("aligning left")},ot.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var ve=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var rt=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(rt,ve)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),pe.commitTransaction("aligning right")},ot.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var ve=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),pe.commitTransaction("alignTop")},ot.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var ve=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var rt=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(rt,ve)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),pe.commitTransaction("aligning bottom")},ot.prototype.alignCenterX=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;pe.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(Pe-rt.actualBounds.width/2,rt.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},ot.prototype.alignCenterY=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;pe.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(rt.actualBounds.x,Pe-rt.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},ot.prototype.alignColumn=function(pe){var ve=this.diagram;ve.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var Pe=new Array;ve.selection.each(function(jt){jt instanceof go.Link||Pe.push(jt)});for(var rt=0;rt<Pe.length-1;rt++){var Ft=Pe[rt],pt=Ft.actualBounds.y+Ft.actualBounds.height+pe,gn=Pe[rt+1];gn.move(new go.Point(Ft.actualBounds.x,pt))}ve.commitTransaction("align Column")},ot.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var ve=this.diagram;ve.startTransaction("align Row");var Pe=new Array;ve.selection.each(function(jt){jt instanceof go.Link||Pe.push(jt)});for(var rt=0;rt<Pe.length-1;rt++){var Ft=Pe[rt],pt=Ft.actualBounds.x+Ft.actualBounds.width+pe,gn=Pe[rt+1];gn.move(new go.Point(pt,Ft.actualBounds.y))}ve.commitTransaction("align Row")},ot.prototype.canRotate=function(pe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},ot.prototype.rotate=function(pe){pe===void 0&&(pe=90);var ve=this.diagram;ve.startTransaction("rotate "+pe.toString());var ve=this.diagram;ve.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=pe)}),ve.commitTransaction("rotate "+pe.toString())},ot.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var ve=new go.Map;pe.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var rt=0;Pe.parts.each(function(Ft){if(!Ft.isSelected){var pt=Ft.zOrder;isNaN(pt)?Ft.zOrder=0:rt=Math.max(rt,pt)}}),ve.set(Pe,rt)}),pe.selection.each(function(Pe){ot._assignZOrder(Pe,ve.get(Pe.layer)+1)}),pe.commitTransaction("pullToFront")},ot.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var ve=new go.Map;pe.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var rt=0;Pe.parts.each(function(Ft){if(!Ft.isSelected){var pt=Ft.zOrder;isNaN(pt)?Ft.zOrder=0:rt=Math.min(rt,pt)}}),ve.set(Pe,rt)}),pe.selection.each(function(Pe){ot._assignZOrder(Pe,ve.get(Pe.layer)-1-ot._findGroupDepth(Pe))}),pe.commitTransaction("pushToBack")},ot._assignZOrder=function(pe,ve,Pe){Pe===void 0&&(Pe=pe),pe.layer===Pe.layer&&(pe.zOrder=ve),pe instanceof go.Group&&pe.memberParts.each(function(rt){ot._assignZOrder(rt,ve+1,Pe)})},ot._findGroupDepth=function(pe){if(pe instanceof go.Group){var ve=0;return pe.memberParts.each(function(Pe){ve=Math.max(ve,ot._findGroupDepth(Pe))}),ve+1}else return 0},ot.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var ve=pe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ot.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(ve){pe.push(ve)}),this.diagram.parts.each(function(ve){pe.push(ve)}),pe},ot.prototype._arrowKeyMove=function(){var pe=this.diagram,ve=pe.lastInput,Pe=0,rt=0;if(ve.control||ve.meta)Pe=1,rt=1;else if(pe.grid!==null){var Ft=pe.grid.gridCellSize;rt=Ft.width,Pe=Ft.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(pt){ve.key==="Up"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y-Pe)):ve.key==="Down"?pt.move(new go.Point(pt.actualBounds.x,pt.actualBounds.y+Pe)):ve.key==="Left"?pt.move(new go.Point(pt.actualBounds.x-rt,pt.actualBounds.y)):ve.key==="Right"&&pt.move(new go.Point(pt.actualBounds.x+rt,pt.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},ot.prototype._arrowKeySelect=function(){var pe=this.diagram,ve=pe.lastInput,Pe=null;ve.key==="Up"?Pe=this._findNearestPartTowards(270):ve.key==="Down"?Pe=this._findNearestPartTowards(90):ve.key==="Left"?Pe=this._findNearestPartTowards(180):ve.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ve.shift?Pe.isSelected=!0:ve.control||ve.meta?Pe.isSelected=!Pe.isSelected:pe.select(Pe))},ot.prototype._findNearestPartTowards=function(pe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Pe=ve.actualBounds.center,rt=this._getAllParts(),Ft=1/0,pt=ve,gn=0;gn<rt.length;gn++){var jt=rt[gn];if(jt!==ve&&jt.canSelect()){var Yt=jt.actualBounds.center,vn=Pe.directionPoint(Yt),kn=this._angleCloseness(vn,pe);if(kn<=45){var tt=Pe.distanceSquaredPoint(Yt);tt*=1+Math.sin(kn*Math.PI/180),tt<Ft&&(Ft=tt,pt=jt)}}}return pt},ot.prototype._angleCloseness=function(pe,ve){return Math.min(Math.abs(ve-pe),Math.min(Math.abs(ve+360-pe),Math.abs(ve-360-pe)))},ot.prototype._arrowKeyTree=function(){var pe=this.diagram,ve=pe.selection.first();if(ve instanceof go.Node){var Pe=pe.lastInput;if(Pe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)pe.commandHandler.canExpandTree(ve)&&pe.commandHandler.expandTree(ve);else{var rt=this._sortTreeChildrenByY(ve).first();rt!==null&&pe.select(rt)}}else if(Pe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)pe.commandHandler.canCollapseTree(ve)&&pe.commandHandler.collapseTree(ve);else{var Ft=ve.findTreeParentNode();Ft!==null&&pe.select(Ft)}else if(Pe.key==="Up"){var Ft=ve.findTreeParentNode();if(Ft!==null){var pt=this._sortTreeChildrenByY(Ft),gn=pt.indexOf(ve);if(gn>0){for(var jt=pt.elt(gn-1);jt!==null&&jt.isTreeExpanded&&!jt.isTreeLeaf;){var Yt=this._sortTreeChildrenByY(jt);jt=Yt.last()}jt!==null&&pe.select(jt)}else pe.select(Ft)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var rt=this._sortTreeChildrenByY(ve).first();rt!==null&&pe.select(rt)}else for(;ve!==null;){var Ft=ve.findTreeParentNode();if(Ft===null)break;var pt=this._sortTreeChildrenByY(Ft),gn=pt.indexOf(ve);if(gn<pt.length-1){pe.select(pt.elt(gn+1));break}else ve=Ft}var vn=pe.selection.first();vn!==null&&pe.scrollToRect(vn.actualBounds)}},ot.prototype._sortTreeChildrenByY=function(pe){var ve=new go.List().addAll(pe.findTreeChildrenNodes());return ve.sort(function(Pe,rt){var Ft=Pe.location,pt=rt.location;return Ft.y<pt.y?-1:Ft.y>pt.y?1:Ft.x<pt.x?-1:Ft.x>pt.x?1:0}),ve},ot.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},ot.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(ot.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(ot.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var ht=ot,Mt=ge(74413),Dt=ge(43604),Ge=ge(99064),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=ge(59301),Re=(pe,ve,Pe)=>new Promise((rt,Ft)=>{var pt=Yt=>{try{jt(Pe.next(Yt))}catch(vn){Ft(vn)}},gn=Yt=>{try{jt(Pe.throw(Yt))}catch(vn){Ft(vn)}},jt=Yt=>Yt.done?rt(Yt.value):Promise.resolve(Yt.value).then(pt,gn);jt((Pe=Pe.apply(pe,ve)).next())});function Ze({onCancel:pe,callback:ve}){let Pe=(0,ae.useRef)(),rt=(0,ae.useRef)(),Ft=(0,ae.useRef)(),pt=(0,ae.useRef)(!1);const gn=(0,ae.useRef)(!1),[jt,Yt]=(0,ae.useState)(0);function vn(){const tt=de.bx.make,Jt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0(rt.current,{padding:20,grid:tt(de.s_,"Grid",tt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ve=>{var ct=Ve.diagram.commandHandler.addTopLevelParts(Ve.diagram.selection,!0);ct||Ve.diagram.currentTool.doCancel()},commandHandler:tt(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ve=>{var ct=Ve.subject;ct.location=ct.location.copy().snapToGridPoint(Ve.diagram.grid.gridOrigin,Ve.diagram.grid.gridCellSize),setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ve=>{var ct=Ve.subject;setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ve=>{var ct=Ve.parameter.part;ct.invalidateConnectedLinks();var Bt=Ve.subject;Ve.diagram.toolManager.linkingTool.isForwards?Bt.toNode.invalidateConnectedLinks():Bt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=tt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),tt(de.bn,{name:"SHAPE",fill:Jt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=tt("ToolTip",tt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},tt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),tt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function An(Ve,ct){var Bt=(ut,Xt)=>{ut.handled=!0,ut.diagram.model.commit(Vt=>{var It=Xt.part.adornedPart,un=new de.E9().setRectSpot(It.actualBounds,Ve);un.subtract(It.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(It.location),un.snapToGridPoint(ut.diagram.grid.gridOrigin,ut.diagram.grid.gridCellSize);var cn=Vt.copyNodeData(It.data);Vt.setGroupKeyForNodeData(cn,Vt.getGroupKeyForNodeData(It.data)),Vt.addNodeData(cn);var oa={from:It.key,to:Vt.getKeyForNodeData(cn)};Vt.addLinkData(oa);var Qn=ut.diagram.findNodeForData(cn);Qn.location=un,ut.diagram.select(Qn),setTimeout(()=>{ut.diagram.commandHandler.editTextBlock()},20)})};return tt(de.bn,{figure:ct,alignment:Ve,alignmentFocus:Ve.opposite(),width:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?25:18,height:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Jt.white,strokeWidth:4,mouseEnter:(ut,Xt)=>Xt.fill="dodgerblue",mouseLeave:(ut,Xt)=>Xt.fill="orange",isActionable:!0,click:Bt,contextClick:Bt})}function Zn(Ve){return tt(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ct,Bt)=>Bt.fill="dodgerblue",mouseLeave:(ct,Bt)=>Bt.fill="orange",click:(ct,Bt)=>{ct.diagram.commandHandler.showContextMenu(Bt.part.adornedPart)}},Ve||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=tt(de.uz,"Spot",tt(de.Vm,{padding:10}),An(de.z6.Top,"TriangleUp"),An(de.z6.Left,"TriangleLeft"),An(de.z6.Right,"TriangleRight"),An(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function xn(Ve,ct){return(Bt,ut)=>{Bt.handled=!0,Bt.diagram.model.commit(Xt=>{Xt.set(ut.part.adornedPart.data,Ve,ct)})}}function me(Ve,ct){return ct||(ct="color"),tt(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ve,margin:1,background:"transparent",mouseEnter:(Bt,ut)=>ut.stroke="dodgerblue",mouseLeave:(Bt,ut)=>ut.stroke="lightgray",click:xn(ct,Ve),contextClick:xn(ct,Ve)})}function $e(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.white,"fill"),me(Jt.beige,"fill"),me(Jt.extralightblue,"fill"),me(Jt.extralightred,"fill"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.lightgray,"fill"),me(Jt.lightgreen,"fill"),me(Jt.lightblue,"fill"),me(Jt.lightred,"fill")))]}function Ee(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.black),me(Jt.green),me(Jt.blue),me(Jt.red))),tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.white),me(Jt.magenta),me(Jt.purple),me(Jt.orange)))]}function Me(Ve,ct){return ct||(ct="thickness"),tt(de.bn,"LineH",{width:16,height:16,strokeWidth:Ve,margin:1,background:"transparent",mouseEnter:(Bt,ut)=>ut.background="dodgerblue",mouseLeave:(Bt,ut)=>ut.background="transparent",click:xn(ct,Ve),contextClick:xn(ct,Ve)})}function Xe(Ve,ct){return ct||(ct="dash"),tt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ve,margin:1,background:"transparent",mouseEnter:(Bt,ut)=>ut.background="dodgerblue",mouseLeave:(Bt,ut)=>ut.background="transparent",click:xn(ct,Ve),contextClick:xn(ct,Ve)})}function Ye(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",Me(1),Me(2),Me(3),Me(4))),tt("ContextMenuButton",tt(de.s_,"Horizontal",Xe(null),Xe([2,4]),Xe([4,4])))]}function _e(Ve,ct){return ct||(ct="figure"),tt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ve,margin:1,background:"transparent",mouseEnter:(Bt,ut)=>ut.fill="dodgerblue",mouseLeave:(Bt,ut)=>ut.fill="lightgray",click:xn(ct,Ve),contextClick:xn(ct,Ve)})}Pe.current.nodeTemplate.contextMenu=tt("ContextMenu",tt("ContextMenuButton",tt(de.s_,"Horizontal",_e("Rectangle"),_e("RoundedRectangle"),_e("Ellipse"),_e("Diamond"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",_e("Parallelogram2"),_e("ManualOperation"),_e("Procedure"),_e("Cylinder1"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",_e("Terminator"),_e("CreateRequest"),_e("Document"),_e("TriangleDown"))),$e(),Ee(),Ye()),Pe.current.groupTemplate=tt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ve,ct)=>{var Bt=ct.addMembers(ct.diagram.selection,!0);Bt||ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),tt(de.s_,"Auto",{name:"BODY"},tt(de.bn,{parameter1:10,fill:Jt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.Vm,{background:"transparent",margin:20})),tt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=tt(de.uz,"Spot",tt(de.s_,"Auto",tt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=tt("ContextMenu",$e(),Ee(),Ye()),Pe.current.linkTemplate=tt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("toShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("points").makeTwoWay(),tt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===1)),tt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve>=1),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),tt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===2),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),tt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=tt(de.uz,tt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:De(2)},new de.KX("pathPattern","thickness",De)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function De(Ve){return tt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ve+4).toString()+" H3"})}function Et(Ve){var ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ve===0?ct="M0 0 M16 16 M0 8 L16 8":Ve===2&&(ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tt(de.bn,{geometryString:ct,margin:2,background:"transparent",mouseEnter:(Bt,ut)=>ut.background="dodgerblue",mouseLeave:(Bt,ut)=>ut.background="transparent",click:xn("dir",Ve),contextClick:xn("dir",Ve)})}function $t(Ve){var ct=(Bt,ut)=>{Bt.handled=!0,Bt.diagram.model.commit(Xt=>{var Vt=ut.part.adornedPart;Xt.set(Vt.data,Ve?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ve?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return tt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bt,ut)=>ut.background="dodgerblue",mouseLeave:(Bt,ut)=>ut.background="transparent",click:ct,contextClick:ct})}function xe(Ve,ct){var Bt=0,ut=de.z6.RightSide;Ve.equals(de.z6.Top)?(Bt=270,ut=de.z6.TopSide):Ve.equals(de.z6.Left)?(Bt=180,ut=de.z6.LeftSide):Ve.equals(de.z6.Bottom)&&(Bt=90,ut=de.z6.BottomSide),ct||(Bt-=180);var Xt=(Vt,It)=>{Vt.handled=!0,Vt.diagram.model.commit(un=>{var cn=It.part.adornedPart;un.set(cn.data,ct?"toSpot":"fromSpot",de.z6.stringify(ut)),(ct?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return tt(de.bn,{alignment:Ve,alignmentFocus:Ve.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bt,background:"transparent",mouseEnter:(Vt,It)=>It.background="dodgerblue",mouseLeave:(Vt,It)=>It.background="transparent",click:Xt,contextClick:Xt})}Pe.current.linkTemplate.contextMenu=tt("ContextMenu",Ee(),Ye(),tt("ContextMenuButton",tt(de.s_,"Horizontal",Et(0),Et(1),Et(2))),tt("ContextMenuButton",tt(de.s_,"Horizontal",tt(de.s_,"Spot",$t(!1),xe(de.z6.Top,!1),xe(de.z6.Left,!1),xe(de.z6.Right,!1),xe(de.z6.Bottom,!1)),tt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},$t(!0),xe(de.z6.Top,!0),xe(de.z6.Left,!0),xe(de.z6.Right,!0),xe(de.z6.Bottom,!0)))));const nn=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var qt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function fn(Ve){return console.log("shapeName:",Ve),qt.indexOf(Ve)>=0}var Cn=new de.YI(Ft.current,{maxSelectionCount:1,linkTemplate:tt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:tt(de.uz,"Link",{locationSpot:de.z6.Center},tt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),tt(de.bn,{isPanelMain:!0,strokeWidth:2}),tt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ve=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ve.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ve){var ct;const Bt=Ve.subject.part;var ut=(ct=document.activeElement)==null?void 0:ct.value;typeof ut=="string"&&ut.trim()===""&&Pe.current.model.commit(function(Xt){Xt.set(Bt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=tt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),tt(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),tt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=tt(de.s_,"Grid",tt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const kn=()=>Re(this,null,function*(){var tt=Pe.current.makeImage();const Jt=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tt.src}});ve({src:Jt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vn()},500),Yt(jt+1),()=>{Pe.current=null}),[]),Se.createElement("div",{ref:gn,className:pt.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!jt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(qe.Z,null,Se.createElement(Dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Dt.Z,{onClick:()=>{var tt,Jt,An=Pe.current.selection.first();if(pt.current=!pt.current,document.activeElement&&An){let Zn=(Jt=(tt=document.activeElement)==null?void 0:tt.value)==null?void 0:Jt.trim();typeof Zn=="string"&&Pe.current.model.commit(function(xn){xn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Yt(jt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Ft})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:rt,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Fe.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var dt=Ze,xt=ge(5112),Ct=ge(5871);const Nt=xt.ZP.Group,At={margin:"0 8px"};var Lt=({callback:pe,onCancel:ve})=>{function Pe(rt){pe(rt)}return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:At},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:At},"\u884C\u6570"),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Ct.Z,null)),ae.createElement("span",{style:At},"\u5217\u6570"),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Ct.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:At},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(Nt,null,ae.createElement(xt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(xt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(xt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(xt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Fe.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Rt=ge(78673),Pn=ge(80727),wn=ge.n(Pn),on=(0,ae.forwardRef)(({use3d:pe,width:ve,height:Pe,callback:rt,showSaveButton:Ft},pt)=>{const gn=(0,ae.useRef)(),jt=(0,ae.useRef)(),[Yt,vn]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:gn,appName:"graphing",width:ve||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{jt.current=new(wn())(kn.current,!0),window.onload=function(){jt.current.inject("applet_container")}},[]);const tt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return rt&&rt(Jt),Jt};return(0,ae.useEffect)(()=>{kn.current.appName=Yt?"3D":"graphing",jt.current.inject("applet_container")},[Yt]),(0,ae.useEffect)(()=>{vn(pe)},[pe]),(0,ae.useImperativeHandle)(pt,()=>({getImgData:tt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),ae.createElement(qe.Z,{align:"middle"},ae.createElement(Dt.Z,{flex:1},ae.createElement(Rt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Yt,onChange:Jt=>vn(Jt)})),ae.createElement(Dt.Z,null,ae.createElement(Fe.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),en=ge(41588),he=ge(1012),Be=ge(8591);const je="link",gt="upload-image",mt="add-flowchart",Ot="draw-image",zt="add-flowchart",bt="code-block",Gt="add-table",Kt="------------",Zt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Qt=ge(58856),Sn=(pe,ve,Pe)=>new Promise((rt,Ft)=>{var pt=Yt=>{try{jt(Pe.next(Yt))}catch(vn){Ft(vn)}},gn=Yt=>{try{jt(Pe.throw(Yt))}catch(vn){Ft(vn)}},jt=Yt=>Yt.done?rt(Yt.value):Promise.resolve(Yt.value).then(pt,gn);jt((Pe=Pe.apply(pe,ve)).next())});function hn(){}let Fn=0;const rn=1e4,tn="\u2581",pn="@\u2581\u2581@",Bn="@\u2581@",En=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,sn=["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 Nn(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[je]:"\u6DFB\u52A0\u94FE\u63A5",[bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[gt]:"\u6DFB\u52A0\u56FE\u7247",[Ot]:"\u6DFB\u52A0\u753B\u56FE",[mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:pe="",onChange:ve,width:Pe="100%",height:rt=400,miniToolbar:Ft=!1,isFocus:pt=!1,watch:gn,insertTemp:jt,mode:Yt="markdown",id:vn="markdown-editor-id",showResizeBar:kn=!1,noStorage:tt=!1,showNullButton:Jt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:xn=!1,onBlur:me,onCMBeforeChange:$e,onFullScreen:Ee,className:Me="",disablePaste:Xe=!1,disabled:Ye=!1,disabledFill:_e=!1,placeholder:De="",values:Et="",extraUse:$t})=>{const[xe,nn]=(0,ae.useState)(null),[qt,fn]=(0,ae.useState)(pe),[Cn,Ve]=(0,ae.useState)(gn),[ct,Bt]=(0,ae.useState)(xn),[ut,Xt]=(0,ae.useState)(""),[Vt,It]=(0,ae.useState)(0),[un,cn]=(0,ae.useState)(rt),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,he.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>Sn(void 0,null,function*(){var wt;const lt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(wt=lt==null?void 0:lt.attachments)!=null&&wt.length&&(console.log("cm:",xe,ta),lt.attachments.map(Pt=>{Pt.content_type.indexOf("image")>-1?xe.replaceSelection(``):Pt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Pt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Pt.id}?type=${Pt.content_type}&disposition=inline" target="_blank">${Pt.name}</a>`):xe.replaceSelection(`[${Pt.name}](${ENV.API_SERVER}/api/attachments/${Pt.id}?type=${Pt.content_type})`)}))});(0,ae.useEffect)(()=>{const wt=window.scrollY||window.pageYOffset;fn(Et),xe==null||xe.setValue(Et),window.scrollTo(0,wt)},[Et]),(0,ae.useEffect)(()=>{Ee==null||Ee(ct)},[ct]),(0,ae.useEffect)(()=>{if(ta.current){let wt=function(Pt,yt){var ln;if(Xe){yt.preventDefault();return}const zn=yt.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(yt.preventDefault(),Yt=="stex")return;try{let jn=Dn[1];((ln=Dn[0])==null?void 0:ln.kind)==="file"&&(jn=Dn[0]);const Hn=jn.getAsFile(),sa=Hn.name.split(".").pop();(0,ye.I)(Hn,Kn=>{var Wt,dn,Ln;Kn.id?((Wt=Hn==null?void 0:Hn.type)==null?void 0:Wt.indexOf("image"))>-1?lt.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((dn=Hn==null?void 0:Hn.type)==null?void 0:dn.indexOf("video"))>-1?lt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((Ln=Hn==null?void 0:Hn.type)==null?void 0:Ln.indexOf("pdf"))>-1?lt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):sn.includes(sa)?lt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):lt.replaceSelection(`[${Hn.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Be.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const lt=Ke().fromTextArea(ta.current,{mode:Yt,lineNumbers:!Ft,lineWrapping:!0,value:pe,autoCloseTags:!An,autoCloseBrackets:!0});return lt.on("keyup",function(Pt,yt){yt.keyCode===8&&(Pt.getValue()==""?lt.setOption("placeholder",De):lt.setOption("placeholder",null))}),lt.on("keydown",function(Pt,yt){if(yt.keyCode===8){var ln=_t(Pt);ln&&yt.preventDefault()}}),pt&<.focus(),lt.on("paste",wt),lt.on("dragleave",function(Pt,yt){ga.current.classList.remove("mouse-hover-md")}),Ye&<.on("beforeChange",function(Pt,yt){(yt.origin==="paste"||yt.origin==="+input")&&yt.cancel()}),nn(lt),()=>{lt.off("paste",wt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(wt){console.log(wt,"---- to set md editor body height")}},[un,ga,ct]);(0,ae.useEffect)(()=>{function wt(){let lt=new Ne.Z(Pt=>{for(let yt of Pt)(yt.target.offsetHeight>0||yt.target.offsetWidth>0)&&(fa(),xe.setSize("100%","100%"),xe.refresh())});return lt.observe(ta.current.parentElement),lt}if(xe){const lt=wt();return()=>{var Pt,yt;(Pt=ta.current)!=null&&Pt.parentElement&<.unobserve((yt=ta.current)==null?void 0:yt.parentElement)}}},[xe,fa]),(0,ae.useEffect)(()=>{if(xe){let wt=[];for(const[lt,Pt]of Object.entries(Wn)){let yt={[lt]:()=>{On(Pt)}};wt.push(yt),xe.addKeyMap(yt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let lt of wt)xe.removeKeyMap(lt)}}},[xe]),(0,ae.useEffect)(()=>{xn!==ct&&Bt(xn)},[xn]),(0,Qt.Z)(()=>{if(!tt&&Vt>0){let wt=new Date().getTime(),lt=window.sessionStorage.getItem(vn);wt>=Vt+rn&&(!lt||lt!==qt)&&(window.sessionStorage.setItem(vn,qt),Qn(!0))}},rn),(0,ae.useEffect)(()=>{Ve(gn)},[xe,gn]),(0,ae.useEffect)(()=>{xe&&pt&&xe.focus()},[xe,pt]),(0,ae.useEffect)(()=>{if(Cn&&xe){let wt=function(Pt){let yt=Pt.target;if(aa.current){let ln=yt.scrollTop/yt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*ln}};const lt=xe.getScrollerElement();return lt.addEventListener("scroll",wt),()=>{lt.removeEventListener("scroll",wt)}}},[xe,Cn]),(0,ae.useEffect)(()=>{if(xe&&$e){let wt=function(lt,Pt){$e(lt,Pt)};return xe.on("beforeChange",wt),()=>{xe.off("beforeChange",wt)}}},[xe,$e]),(0,ae.useEffect)(()=>{if(xe&&me){let wt=function(){me(xe.getValue())};return xe.on("blur",wt),()=>{xe.off("blur",wt)}}},[xe,me]);function _t(wt,lt){var Pt=wt.getDoc(),yt=Pt.getCursor(),ln=Pt.getLine(yt.line),zn=ln.charAt(yt.ch-1),Rn=ln.lastIndexOf("@\u2581@",yt.ch),Dn=ln.lastIndexOf("@\u2581\u2581@",yt.ch),jn=Rn>Dn?Rn:Dn,Hn=Rn>Dn?3:4;if(pn.indexOf(zn)===-1)return null;if(console.log("change1:",lt,wt,ln,yt,jn,Rn,Dn,zn),jn>=0&&yt.ch-jn<5){var sa=jn+Hn;return Pt.replaceRange("",{line:yt.line,ch:jn},{line:yt.line,ch:sa}),{line:yt.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(xe){let wt=function(lt,Pt){const yt=lt.getValue();fn(yt),It(new Date().getTime()),lt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(An?ve(yt,Gn(yt)):ve(yt))};return xe.on("change",wt),()=>{xe.off("change",wt)}}},[xe,ve]),(0,ae.useEffect)(()=>{if(xe)if(pe==null)xe.setValue(""),fn("");else{const wt=window.scrollY||window.pageYOffset;pe!==xe.getValue()&&(xe.setValue(pe),fn(pe),xe.setCursor(Ye?1:xe.lineCount(),0),window.scrollTo(0,wt))}},[xe,pe]);const On=(0,ae.useCallback)(wt=>{const lt=xe.getCursor(),Pt=xe.getSelection();let yt=Pt.split(`
|
|
`);switch(wt){case"bold":return xe.replaceSelection("**"+Pt+"**"),Pt===""&&xe.setCursor(lt.line,lt.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+Pt+"*"),Pt===""&&xe.setCursor(lt.line,lt.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+Pt+"`"),Pt===""&&xe.setCursor(lt.line,lt.ch+1),xe.focus();case"inline-latex":return Xt("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+Pt+"\n```"),xe.setCursor(lt.line+1,Pt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
|
|
`),xe.focus();case"list-ul":return Pt===""?xe.replaceSelection("- "+Pt):xe.replaceSelection(yt.map(ln=>ln===""?"":`- ${ln}`).join(`
|
|
`)),xe.focus();case"list-ol":return Pt===""?xe.replaceSelection("1. "+Pt):xe.replaceSelection(yt.map((ln,zn)=>ln===""?"":`${zn+1}. ${ln}`).join(`
|
|
`)),xe.focus();case"add-null-ch":return Pt===""&&xe.setCursor(lt.line,lt.ch),xe.replaceSelection(tn),xe.focus();case"add-signal":return Pt===""&&xe.setCursor(lt.line,lt.ch),xe.replaceSelection(Bn),xe.focus();case"add-multiple":return Pt===""&&xe.setCursor(lt.line,lt.ch),xe.replaceSelection(pn),xe.focus();case"inster-template-1":return Pt===""&&xe.setCursor(lt.line,lt.ch),xe.replaceSelection(En),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return Ve(!Cn),xe.focus();case"trigger-full-screen":return Bt(!ct),xe.focus();case je:Xt(je);return;case bt:Xt(bt);return;case gt:Xt(gt);return;case Ot:Xt(Ot);return;case"maths-latex":Xt("maths-latex");return;case mt:Xt(mt);return;case Gt:Xt(Gt);return;default:throw new Error}},[xe,Cn,ct]),Tn=(0,ae.useCallback)((wt,lt)=>{var Pt,yt,ln,zn,Rn,Dn;switch(Xt(""),ut){case je:const{title:Wt,link:dn}=wt;return xe.replaceSelection(`[${Wt}](${dn})`),xe.focus();case bt:const{language:Ln,content:an}=wt;return xe.replaceSelection(["```"+Ln,an,"```"].join(`
|
|
`)),xe.focus();case"maths-latex":for(var jn=atob(wt),Hn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)Hn[sa]=jn.charCodeAt(sa);var Kn=new Blob([Hn],{type:"image/png"});(0,ye.I)(Kn,ma=>{ma.id?xe.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+wt+"$$`");break;case gt:case Ot:case zt:const{src:mn,alt:_n}=wt,bn=lt,ha=(ln=(yt=(Pt=bn==null?void 0:bn.name)==null?void 0:Pt.split("."))==null?void 0:yt.pop)==null?void 0:ln.call(yt);return((zn=bn==null?void 0:bn.type)==null?void 0:zn.indexOf("image"))>-1||!(bn!=null&&bn.type)?bn.align||bn.width?xe.replaceSelection(`<p style="text-align:${bn.align||"initial"}"><img width="${bn.width?bn.width+"%":"initial"}" src="${mn}" alt="${_n||""}" /></p>`):xe.replaceSelection(`<img width="100%" src="${mn}" alt="${_n||""}" />`):((Rn=bn==null?void 0:bn.type)==null?void 0:Rn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Dn=bn==null?void 0:bn.type)==null?void 0:Dn.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${mn}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):sn.includes(ha)?xe.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):xe.replaceSelection(`[${bn.name}](${mn})`),xe.focus();case Gt:const{row:ua,col:wa,align:Ea}=wt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let xa=[],Ca=[];for(let Ba=0;Ba<wa;Ba++)ma===1&&Ca.push(Zt[Ea]),xa.push(" ");ma===1&&(Fa+=`| ${Ca.join(" | ")} |
|
|
`),Fa+=`| ${xa.join(wa===1?"":" | ")} |
|
|
`}return xe.replaceSelection(Fa+`
|
|
`),xe.focus();default:throw new Error}},[xe,ut]),Un=(0,ae.useMemo)(()=>{switch(ut){case je:return ae.createElement(kt,{callback:Tn,onCancel:Xn});case bt:return ae.createElement(Ut.Z,{callback:Tn,onCancel:Xn});case gt:return ae.createElement(ye.Z,{callback:Tn,onCancel:Xn});case mt:return ae.createElement(dt,{callback:Tn,onCancel:Xn});case Gt:return ae.createElement(Lt,{callback:Tn,onCancel:Xn});case"maths-latex":return ae.createElement(on,{showSaveButton:!0,callback:Tn});case"inline-latex":return ae.createElement(en.Z,{showSaveButton:!0,callback:Tn});default:return null}},[ut]);function Xn(){Xt("")}(0,ae.useEffect)(()=>{if(ia.current){let wt=function(Rn){ln=!0,zn=Rn.pageY},lt=function(){ln=!1},Pt=function(Rn){if(ln){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=rt+Dn+"px";cn(jn)}},yt=ia.current,ln=!1,zn=0;return yt.addEventListener("mousedown",wt),document.addEventListener("mousemove",Pt),document.addEventListener("mouseup",lt),()=>{yt.removeEventListener("mousedown",wt),document.removeEventListener("mousemove",Pt),document.removeEventListener("mouseup",lt)}}},[xe,ia]),(0,ae.useEffect)(()=>{cn(rt)},[rt]);const ra=Nn(Pe),va=Nn(un),pa={width:ra,height:va},Mn=(0,ae.useMemo)(()=>{if(Vt){let wt=new Date(Vt),lt=wt.getHours(),Pt=wt.getMinutes(),yt=wt.getSeconds();return lt=lt<10?"0"+lt:lt,Pt=Pt<10?"0"+Pt:Pt,yt=yt<10?"0"+yt:yt,`${lt}:${Pt}:${yt}`}return 0},[Vt]),Gn=wt=>{const lt=[];if(An){let Pt=-1;wt=wt.replace(/(@▁▁@|@▁@)/g,function(yt,ln,zn){lt.push({multiLine:yt!==Bn})})}return lt};function la(){window.sessionStorage.removeItem(vn),Qn(!1),It(0)}function ya(){Qn(!1),It(0),xe.setValue(window.sessionStorage.getItem(vn))}(0,ae.useEffect)(()=>{na[ut]&&ut!==Ot&&ut!==mt&&setTimeout(()=>{const wt=document.getElementsByClassName("markdown-popup-form")[0],lt=window.innerWidth/2-wt.offsetWidth/2,Pt=window.innerHeight/2-wt.offsetHeight/2;da(lt),$n(Pt)},0)},[ut]);const La=wt=>{wt.preventDefault();const lt=wt.clientX-Pa,Pt=wt.clientY-Vn;document.body.onmousemove=yt=>{let ln=yt.clientX-lt,zn=yt.clientY-Pt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;ln=Math.max(0,Math.min(ln,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(yt.clientX,yt.clientY,lt,Pt)&&(da(ln),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(wt,lt,Pt,yt)=>{const ln=document.body.clientHeight,zn=document.body.clientWidth;return wt<20&&Pt>wt||wt>zn-20&&Pt<wt||lt<20&&yt>lt||lt>ln-20&&yt<lt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${Me} ${Cn?"on-preview":""} ${Ft?"mini":""} ${ct?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:jt,watch:Cn,fullScreen:ct,showNullButton:Jt,showNullProgramButton:An,onActionCallback:On,hidetoolBar:Zn,extraUse:$t}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:De})),Cn?ae.createElement("div",{ref:aa,className:"preview-container"},Yt==="stex"&&ae.createElement(Ae,{value:qt}),Yt!=="stex"&&ae.createElement(We.Z,{disabledFill:_e,showProgramFill:An,value:qt})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,ut===Ot&&ae.createElement(st,{callback:Tn,onCancel:Xn}),ut===mt&&ae.createElement(dt,{callback:Tn,onCancel:Xn}),ae.createElement(ue.Z,null,na[ut]&&ut!==Ot&&ut!==mt?ae.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ut]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ut===mt?"1200px":null,height:ut===mt?"80vh":null,className:"markdown-popup-form"},Un):null))}},28451:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return re},I:function(){return ue}});var ae=ge(78241),fe=ge(8591),Ke=ge(92832),Ne=ge(81327),ce=ge(5871),we=ge(5112),le=ge(3113),Je=ge(77903),Te=ge(59301),ke=ge(24065),We=ge(59301),Ae=Object.defineProperty,Ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(se,Ce,Fe)=>Ce in se?Ae(se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):se[Ce]=Fe,E=(se,Ce)=>{for(var Fe in Ce||(Ce={}))y.call(Ce,Fe)&&b(se,Fe,Ce[Fe]);if(a)for(var Fe of a(Ce))x.call(Ce,Fe)&&b(se,Fe,Ce[Fe]);return se},z=(se,Ce)=>Ie(se,ne(Ce));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:se,onCancel:Ce})=>{const[Fe]=ee();let nt=(0,Te.useRef)();function ft(Qe){nt.current.width=Fe.getFieldValue("width"),nt.current.align=Fe.getFieldValue("align"),se(Qe,nt.current)}function Ht(Qe,He){if(Qe.status===-1){fe.ZP.error(Qe.message);return}Fe.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:He.type})}function be(Qe){let He=Qe.target.files[0];nt.current=He,ue(He,Ht)}return We.createElement(ae.default,z(E({form:Fe},oe),{className:"upload-image-panel",onFinish:ft,style:{width:470,overflow:"hidden"}}),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Ke.default,{style:te})),We.createElement(ie,{onFileChange:be}))),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Ke.default,{style:{width:264}})),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Ne.Z,null,We.createElement(ae.default.Item,{name:"width",style:{margin:0}},We.createElement(ce.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(le.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:se}))}function ue(se,Ce){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ke.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Fe=new FormData;Fe.append("editormd-image-file",se),Fe.append("file_param_name","editormd-image-file"),Fe.append("byxhr","true");var nt=new window.XMLHttpRequest;nt.withCredentials=!0,nt.addEventListener("load",function(ft){Ce(JSON.parse(ft.target.responseText),se)},!1),nt.addEventListener("error",function(ft){console.error(ft)},!1),nt.open("POST",`${Je.KI}/api/attachments.json`),nt.send(Fe)}},79346:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Ke}});var ae=ge(59301),fe=ge(4676);class Ke extends ae.Component{constructor(ce){super(ce);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,fe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58856:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return fe}});var ae=ge(59301);function fe(Ke,Ne){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Ke}),(0,ae.useEffect)(()=>{function we(){ce.current()}if(Ne!==null){let le=setInterval(we,Ne);return()=>clearInterval(le)}},[Ne])}},47400:function(Oe,it,ge){"use strict";ge.r(it),ge.d(it,{default:function(){return Ce}});var ae=ge(59301),fe=ge(89070),Ke=ge(78241),Ne=ge(8591),ce=ge(66104),we=ge(92832),le=ge(54580),Je=ge(95237),Te=ge(43604),ke=ge(5871),We=ge(24905),Ae=ge(3113),Ie=ge(12290),ne=ge(36708),a=ge(3294),y={bg:"bg___iB8eB",flexRow:"flexRow___rWsOs",flexJustifyCenter:"flexJustifyCenter___GenLk",flexAlignEnd:"flexAlignEnd___AMfei",flexAlignCenter:"flexAlignCenter___rQos5",flexColumn:"flexColumn___fJhyT",formWrap:"formWrap___pNpQ9",titleWrap:"titleWrap____VSL0",fieldWrap:"fieldWrap___ACUG9",mdWrap:"mdWrap___xFqQa",backgroundFa:"backgroundFa___MuFzN",button:"button___tzh3S"},x=Object.defineProperty,b=Object.defineProperties,E=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=(Fe,nt,ft)=>nt in Fe?x(Fe,nt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Fe[nt]=ft,re=(Fe,nt)=>{for(var ft in nt||(nt={}))ee.call(nt,ft)&&oe(Fe,ft,nt[ft]);if(z)for(var ft of z(nt))te.call(nt,ft)&&oe(Fe,ft,nt[ft]);return Fe},ie=(Fe,nt)=>b(Fe,E(nt)),ue=(Fe,nt,ft)=>new Promise((Ht,be)=>{var Qe=at=>{try{Ue(ft.next(at))}catch(St){be(St)}},He=at=>{try{Ue(ft.throw(at))}catch(St){be(St)}},Ue=at=>at.done?Ht(at.value):Promise.resolve(at.value).then(Qe,He);Ue((ft=ft.apply(Fe,nt)).next())});const se=({shixunHomeworks:Fe,newCourse:nt,globalSetting:ft,loading:Ht,dispatch:be})=>{var Qe;const He=(0,fe.useParams)(),[Ue]=Ke.default.useForm(),[at,St]=(0,ae.useState)({}),[Tt,kt]=(0,ae.useState)(!1),[Ut,ye]=(0,ae.useState)([]),[ze,qe]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:vt}=Fe,et={name:"file",multiple:!0,action:a.Z.API_SERVER+"/api/attachments.json",defaultFileList:Ut,onChange(ht){const{status:Mt}=ht.file;Mt==="done"?Ne.ZP.success(`${ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):Mt==="error"&&Ne.ZP.error(`${ht.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{de()},[He.topicId]);const st=ht=>ht==null?void 0:ht.map(Mt=>({uid:Mt.id,response:{id:Mt.id},name:Mt.title,status:"done",url:Mt.url})),de=()=>ue(void 0,null,function*(){const ht=yield be({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:He.topicId}});ht&&(Ue.setFieldsValue({name:ht.name}),Ue.setFieldsValue({description:ht.description}),Ue.setFieldsValue(re({},ht)),St(re({},ht)),ye([...st(ht.attachments)]),qe([...st(ht.reference_attachments)]),kt(!0))}),ot=ht=>ue(void 0,null,function*(){var Mt,Dt;const Ge=re({},ht);Ge.attachment_ids&&(Ge.attachment_ids=(Mt=Ge==null?void 0:Ge.attachment_ids.fileList)==null?void 0:Mt.map(Se=>Se.response.id)),Ge.reference_attachment_ids&&(Ge.reference_attachment_ids=(Dt=Ge==null?void 0:Ge.reference_attachment_ids.fileList)==null?void 0:Dt.map(Se=>Se.response.id)),(yield(0,ne.yT)(ie(re(re({id:He.topicId},He),Ge),{type:3})))&&fe.history.push(`/users/${He.username}/topics/${He.topicId}/${He.topictype}/group/detail`)});return ae.createElement("section",{className:y.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(ce.Z,{separator:">"},ae.createElement(ce.Z.Item,null,ae.createElement(fe.Link,{to:`/users/${He.username}/${He.topictype==="personal"?"topics":"topicbank"}/${He.topictype}`},He.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(ce.Z.Item,null,ae.createElement(fe.Link,{to:`/users/${He.username}/topics/${He.topicId}/${He.topictype}/group/detail`},"\u8BE6\u60C5")),ae.createElement(ce.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u666E\u901A\u4F5C\u4E1A"),ae.createElement(Ke.default,{form:Ue,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{St(re({},Ue.getFieldsValue()))},onFinish:ot},ae.createElement("div",{className:y.fieldWrap},ae.createElement(Ke.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(we.default,{maxLength:60,suffix:`${((Qe=at.name)==null?void 0:Qe.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:y.mdWrap},ae.createElement(Ke.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Ie.Z,{watch:!0,defaultValue:vt.description})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"attachment_ids"},Tt&&ae.createElement(le.default,re({defaultFileList:Ut},et),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09"))),ae.createElement(Je.Z,{gutter:[20,20]},ae.createElement(Te.Z,{flex:"230px"},ae.createElement(Ke.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ae.createElement(ke.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ae.createElement(Te.Z,{flex:"230px"},ae.createElement(Ke.default.Item,{name:"max_num",label:ae.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ae.createElement(ke.Z,{style:{width:200},max:10,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ae.createElement(Te.Z,null,ae.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ae.createElement(Je.Z,null,ae.createElement(Te.Z,null,ae.createElement(Ke.default.Item,{name:"base_on_project",valuePropName:"checked"},ae.createElement(We.default,{value:1,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ae.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ae.createElement("div",{className:y.mdWrap},ae.createElement(Ke.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Ie.Z,{defaultValue:vt.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"reference_attachment_ids"},Tt&&ae.createElement(le.default,ie(re({},et),{defaultFileList:ze}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:y.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ke.default.Item,null,ae.createElement(Ae.ZP,{size:"middle",type:"primary",className:`${y.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(Ae.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>fe.history.push(`/users/${He.username}/topics/${He.topicId}/${He.topictype}/group/detail`)},"\u53D6\u6D88"))))))};var Ce=(0,fe.connect)(({shixunHomeworks:Fe,newCourse:nt,loading:ft,globalSetting:Ht})=>({shixunHomeworks:Fe,newCourse:nt,globalSetting:Ht,loading:ft.effects}))(se)},56762:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return fe}});var ae=ge(59301);function fe(){const[,Ke]=ae.useReducer(Ne=>Ne+1,0);return Ke}},66104:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return Ht}});var ae=ge(92310),fe=ge.n(ae),Ke=ge(11592),Ne=ge(26112),ce=ge(59301),we=ge(92343),le=ge(36355),Je=ge(84105),Te=ge(91857);const ke=be=>{let{children:Qe}=be;const{getPrefixCls:He}=ce.useContext(le.E_),Ue=He("breadcrumb");return ce.createElement("li",{className:`${Ue}-separator`,"aria-hidden":"true"},Qe===""?Qe:Qe||"/")};ke.__ANT_BREADCRUMB_SEPARATOR=!0;var We=ke,Ae=function(be,Qe){var He={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Qe.indexOf(Ue)<0&&(He[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(be);at<Ue.length;at++)Qe.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[at])&&(He[Ue[at]]=be[Ue[at]]);return He};function Ie(be,Qe){if(be.title===void 0||be.title===null)return null;const He=Object.keys(Qe).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${He})`,"g"),(Ue,at)=>Qe[at]||Ue)}function ne(be,Qe,He,Ue){if(He==null)return null;const{className:at,onClick:St}=Qe,Tt=Ae(Qe,["className","onClick"]),kt=Object.assign(Object.assign({},(0,Ne.Z)(Tt,{data:!0,aria:!0})),{onClick:St});return Ue!==void 0?ce.createElement("a",Object.assign({},kt,{className:fe()(`${be}-link`,at),href:Ue}),He):ce.createElement("span",Object.assign({},kt,{className:fe()(`${be}-link`,at)}),He)}function a(be,Qe){return(Ue,at,St,Tt,kt)=>{if(Qe)return Qe(Ue,at,St,Tt);const Ut=Ie(Ue,at);return ne(be,Ue,Ut,kt)}}var y=function(be,Qe){var He={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Qe.indexOf(Ue)<0&&(He[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(be);at<Ue.length;at++)Qe.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[at])&&(He[Ue[at]]=be[Ue[at]]);return He};const x=be=>{const{prefixCls:Qe,separator:He="/",children:Ue,menu:at,overlay:St,dropdownProps:Tt,href:kt}=be,ye=(ze=>{if(at||St){const qe=Object.assign({},Tt);if(at){const vt=at||{},{items:et}=vt,st=y(vt,["items"]);qe.menu=Object.assign(Object.assign({},st),{items:et==null?void 0:et.map((de,ot)=>{var{key:ht,title:Mt,label:Dt,path:Ge}=de,Le=y(de,["key","title","label","path"]);let Se=Dt!=null?Dt:Mt;return Ge&&(Se=ce.createElement("a",{href:`${kt}${Ge}`},Se)),Object.assign(Object.assign({},Le),{key:ht!=null?ht:ot,label:Se})})})}else St&&(qe.overlay=St);return ce.createElement(Te.Z,Object.assign({placement:"bottom"},qe),ce.createElement("span",{className:`${Qe}-overlay-link`},ze,ce.createElement(Je.Z,null)))}return ze})(Ue);return ye!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,ye),He&&ce.createElement(We,null,He)):null},b=be=>{const{prefixCls:Qe,children:He,href:Ue}=be,at=y(be,["prefixCls","children","href"]),{getPrefixCls:St}=ce.useContext(le.E_),Tt=St("breadcrumb",Qe);return ce.createElement(x,Object.assign({},at,{prefixCls:Tt}),ne(Tt,at,He,Ue))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),te=ge(37613);const oe=be=>{const{componentCls:Qe,iconCls:He}=be;return{[Qe]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[He]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Qe}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Qe}-link`]:{[`
|
|
> ${He} + span,
|
|
> ${He} + a
|
|
`]:{marginInlineStart:be.marginXXS}},[`${Qe}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${He}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",be=>{const Qe=(0,te.TS)(be,{});return[oe(Qe)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ie=function(be,Qe){var He={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Qe.indexOf(Ue)<0&&(He[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(be);at<Ue.length;at++)Qe.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[at])&&(He[Ue[at]]=be[Ue[at]]);return He};function ue(be){const{breadcrumbName:Qe,children:He}=be,Ue=ie(be,["breadcrumbName","children"]),at=Object.assign({title:Qe},Ue);return He&&(at.menu={items:He.map(St=>{var{breadcrumbName:Tt}=St,kt=ie(St,["breadcrumbName"]);return Object.assign(Object.assign({},kt),{title:Tt})})}),at}function se(be,Qe){return(0,ce.useMemo)(()=>be||(Qe?Qe.map(ue):null),[be,Qe])}var Ce=function(be,Qe){var He={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Qe.indexOf(Ue)<0&&(He[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(be);at<Ue.length;at++)Qe.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[at])&&(He[Ue[at]]=be[Ue[at]]);return He};const Fe=(be,Qe)=>{if(Qe===void 0)return Qe;let He=(Qe||"").replace(/^\//,"");return Object.keys(be).forEach(Ue=>{He=He.replace(`:${Ue}`,be[Ue])}),He},nt=be=>{const{prefixCls:Qe,separator:He="/",style:Ue,className:at,rootClassName:St,routes:Tt,items:kt,children:Ut,itemRender:ye,params:ze={}}=be,qe=Ce(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:vt,direction:et,breadcrumb:st}=ce.useContext(le.E_);let de;const ot=vt("breadcrumb",Qe),[ht,Mt]=re(ot),Dt=se(kt,Tt),Ge=a(ot,ye);if(Dt&&Dt.length>0){const Re=[],Ze=kt||Tt;de=Dt.map((dt,xt)=>{const{path:Ct,key:Nt,type:At,menu:Lt,overlay:Rt,onClick:Pn,className:wn,separator:yn,dropdownProps:on}=dt,en=Fe(ze,Ct);en!==void 0&&Re.push(en);const he=Nt!=null?Nt:xt;if(At==="separator")return ce.createElement(We,{key:he},yn);const Be={},je=xt===Dt.length-1;Lt?Be.menu=Lt:Rt&&(Be.overlay=Rt);let{href:gt}=dt;return Re.length&&en!==void 0&&(gt=`#/${Re.join("/")}`),ce.createElement(x,Object.assign({key:he},Be,(0,Ne.Z)(dt,{data:!0,aria:!0}),{className:wn,dropdownProps:on,href:gt,separator:je?"":He,onClick:Pn,prefixCls:ot}),Ge(dt,ze,Ze,Re,gt))})}else if(Ut){const Re=(0,Ke.Z)(Ut).length;de=(0,Ke.Z)(Ut).map((Ze,dt)=>{if(!Ze)return Ze;const xt=dt===Re-1;return(0,we.Tm)(Ze,{separator:xt?"":He,key:dt})})}const Le=fe()(ot,st==null?void 0:st.className,{[`${ot}-rtl`]:et==="rtl"},at,St,Mt),Se=Object.assign(Object.assign({},st==null?void 0:st.style),Ue);return ht(ce.createElement("nav",Object.assign({className:Le,style:Se},qe),ce.createElement("ol",null,de)))};nt.Item=E,nt.Separator=We;var ft=nt,Ht=ft},24905:function(Oe,it,ge){"use strict";ge.d(it,{default:function(){return re}});var ae=ge(92310),fe=ge.n(ae),Ke=ge(5630),Ne=ge(59301),ce=ge(36355),we=ge(1684),le=ge(32441),Te=Ne.createContext(null),ke=ge(98447),We=ge(14088),Ae=ge(4572),Ie=function(ie,ue){var se={};for(var Ce in ie)Object.prototype.hasOwnProperty.call(ie,Ce)&&ue.indexOf(Ce)<0&&(se[Ce]=ie[Ce]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(ie);Fe<Ce.length;Fe++)ue.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ie,Ce[Fe])&&(se[Ce[Fe]]=ie[Ce[Fe]]);return se};const ne=(ie,ue)=>{var se;const{prefixCls:Ce,className:Fe,rootClassName:nt,children:ft,indeterminate:Ht=!1,style:be,onMouseEnter:Qe,onMouseLeave:He,skipGroup:Ue=!1,disabled:at}=ie,St=Ie(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Tt,direction:kt,checkbox:Ut}=Ne.useContext(ce.E_),ye=Ne.useContext(Te),{isFormItemInput:ze}=Ne.useContext(le.aM),qe=Ne.useContext(we.Z),vt=(se=(ye==null?void 0:ye.disabled)||at)!==null&&se!==void 0?se:qe,et=Ne.useRef(St.value);Ne.useEffect(()=>{ye==null||ye.registerValue(St.value)},[]),Ne.useEffect(()=>{if(!Ue)return St.value!==et.current&&(ye==null||ye.cancelValue(et.current),ye==null||ye.registerValue(St.value),et.current=St.value),()=>ye==null?void 0:ye.cancelValue(St.value)},[St.value]);const st=Tt("checkbox",Ce),[de,ot]=(0,ke.ZP)(st),ht=Object.assign({},St);ye&&!Ue&&(ht.onChange=function(){St.onChange&&St.onChange.apply(St,arguments),ye.toggleOption&&ye.toggleOption({label:ft,value:St.value})},ht.name=ye.name,ht.checked=ye.value.includes(St.value));const Mt=fe()(`${st}-wrapper`,{[`${st}-rtl`]:kt==="rtl",[`${st}-wrapper-checked`]:ht.checked,[`${st}-wrapper-disabled`]:vt,[`${st}-wrapper-in-form-item`]:ze},Ut==null?void 0:Ut.className,Fe,nt,ot),Dt=fe()({[`${st}-indeterminate`]:Ht},Ae.A,ot),Ge=Ht?"mixed":void 0;return de(Ne.createElement(We.Z,{component:"Checkbox",disabled:vt},Ne.createElement("label",{className:Mt,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),be),onMouseEnter:Qe,onMouseLeave:He},Ne.createElement(Ke.Z,Object.assign({"aria-checked":Ge},ht,{prefixCls:st,className:Dt,disabled:vt,ref:ue})),ft!==void 0&&Ne.createElement("span",null,ft))))};var y=Ne.forwardRef(ne),x=ge(26407),b=ge(2738),E=function(ie,ue){var se={};for(var Ce in ie)Object.prototype.hasOwnProperty.call(ie,Ce)&&ue.indexOf(Ce)<0&&(se[Ce]=ie[Ce]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(ie);Fe<Ce.length;Fe++)ue.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ie,Ce[Fe])&&(se[Ce[Fe]]=ie[Ce[Fe]]);return se};const z=(ie,ue)=>{const{defaultValue:se,children:Ce,options:Fe=[],prefixCls:nt,className:ft,rootClassName:Ht,style:be,onChange:Qe}=ie,He=E(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:at}=Ne.useContext(ce.E_),[St,Tt]=Ne.useState(He.value||se||[]),[kt,Ut]=Ne.useState([]);Ne.useEffect(()=>{"value"in He&&Tt(He.value||[])},[He.value]);const ye=Ne.useMemo(()=>Fe.map(Le=>typeof Le=="string"||typeof Le=="number"?{label:Le,value:Le}:Le),[Fe]),ze=Le=>{Ut(Se=>Se.filter(Re=>Re!==Le))},qe=Le=>{Ut(Se=>[].concat((0,x.Z)(Se),[Le]))},vt=Le=>{const Se=St.indexOf(Le.value),Re=(0,x.Z)(St);Se===-1?Re.push(Le.value):Re.splice(Se,1),"value"in He||Tt(Re),Qe==null||Qe(Re.filter(Ze=>kt.includes(Ze)).sort((Ze,dt)=>{const xt=ye.findIndex(Nt=>Nt.value===Ze),Ct=ye.findIndex(Nt=>Nt.value===dt);return xt-Ct}))},et=Ue("checkbox",nt),st=`${et}-group`,[de,ot]=(0,ke.ZP)(et),ht=(0,b.Z)(He,["value","disabled"]),Mt=Fe.length?ye.map(Le=>Ne.createElement(y,{prefixCls:et,key:Le.value.toString(),disabled:"disabled"in Le?Le.disabled:He.disabled,value:Le.value,checked:St.includes(Le.value),onChange:Le.onChange,className:`${st}-item`,style:Le.style,title:Le.title},Le.label)):Ce,Dt={toggleOption:vt,value:St,disabled:He.disabled,name:He.name,registerValue:qe,cancelValue:ze},Ge=fe()(st,{[`${st}-rtl`]:at==="rtl"},ft,Ht,ot);return de(Ne.createElement("div",Object.assign({className:Ge,style:be},ht,{ref:ue}),Ne.createElement(Te.Provider,{value:Dt},Mt)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var re=oe},98447:function(Oe,it,ge){"use strict";ge.d(it,{C2:function(){return ce}});var ae=ge(17313),fe=ge(37613),Ke=ge(83116);const Ne=we=>{const{checkboxCls:le}=we,Je=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Je]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Je}`]:{marginInlineStart:0},[`&${Je}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${Je}:not(${Je}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:we.colorPrimary}},[`${Je}:not(${Je}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${Je}-checked:not(${Je}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Je}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:we.colorTextDisabled}}}]};function ce(we,le){const Je=(0,fe.TS)(le,{checkboxCls:`.${we}`,checkboxSize:le.controlInteractiveSize});return[Ne(Je)]}it.ZP=(0,Ke.Z)("Checkbox",(we,le)=>{let{prefixCls:Je}=le;return[ce(Je,we)]})},91857:function(Oe,it,ge){"use strict";var ae=ge(59301),fe=ge(38819),Ke=ge(92310),Ne=ge.n(Ke),ce=ge(31561),we=ge(70425),le=ge(18929),Je=ge(2738),Te=ge(79676),ke=ge(53487),We=ge(92343),Ae=ge(36355),Ie=ge(20834),ne=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=te=>{const{menu:oe,arrow:re,prefixCls:ie,children:ue,trigger:se,disabled:Ce,dropdownRender:Fe,getPopupContainer:nt,overlayClassName:ft,rootClassName:Ht,open:be,onOpenChange:Qe,visible:He,onVisibleChange:Ue,mouseEnterDelay:at=.15,mouseLeaveDelay:St=.1,autoAdjustOverflow:Tt=!0,placement:kt="",overlay:Ut,transitionName:ye}=te,{getPopupContainer:ze,getPrefixCls:qe,direction:vt}=ae.useContext(Ae.E_),et=ae.useMemo(()=>{const Lt=qe();return ye!==void 0?ye:kt.includes("top")?`${Lt}-slide-down`:`${Lt}-slide-up`},[qe,kt,ye]),st=ae.useMemo(()=>kt?kt.includes("Center")?kt.slice(0,kt.indexOf("Center")):kt:vt==="rtl"?"bottomRight":"bottomLeft",[kt,vt]),de=qe("dropdown",ie),[ot,ht]=(0,y.Z)(de),[,Mt]=(0,a.Z)(),Dt=ae.Children.only(ue),Ge=(0,We.Tm)(Dt,{className:Ne()(`${de}-trigger`,{[`${de}-rtl`]:vt==="rtl"},Dt.props.className),disabled:Ce}),Le=Ce?[]:se;let Se;Le&&Le.includes("contextMenu")&&(Se=!0);const[Re,Ze]=(0,le.Z)(!1,{value:be!=null?be:He}),dt=(0,we.useEvent)(Lt=>{Qe==null||Qe(Lt),Ue==null||Ue(Lt),Ze(Lt)}),xt=Ne()(ft,Ht,ht,{[`${de}-rtl`]:vt==="rtl"}),Ct=(0,Te.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:Tt,offset:Mt.marginXXS,arrowWidth:re?Mt.sizePopupArrow:0,borderRadius:Mt.borderRadius}),Nt=ae.useCallback(()=>{Ze(!1)},[]),At=()=>{let Lt;return oe!=null&&oe.items?Lt=ae.createElement(Ie.default,Object.assign({},oe)):typeof Ut=="function"?Lt=Ut():Lt=Ut,Fe&&(Lt=Fe(Lt)),Lt=ae.Children.only(typeof Lt=="string"?ae.createElement("span",null,Lt):Lt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Nt,validator:Rt=>{let{mode:Pn}=Rt}},Lt)};return ot(ae.createElement(ce.Z,Object.assign({alignPoint:Se},(0,Je.Z)(te,["rootClassName"]),{mouseEnterDelay:at,mouseLeaveDelay:St,visible:Re,builtinPlacements:Ct,arrow:!!re,overlayClassName:xt,prefixCls:de,getPopupContainer:nt||ze,transitionName:et,trigger:Le,overlay:At,placement:st,onVisibleChange:dt}),Ge))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,ke.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,it.Z=b},47211:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return We}});var ae=ge(17313),fe=ge(13826),Ke=ge(92899),Ne=ge(29878),ce=ge(19447),we=ge(83116),le=ge(37613),Te=Ae=>{const{componentCls:Ie,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ae,x=`${ne}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ke=Ae=>{const{componentCls:Ie,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:ue,colorBgElevated:se}=Ae;return[{[Ie]:Object.assign(Object.assign({},(0,ae.Wf)(Ae)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:fe.ly}})},(0,ce.ZP)(Ae,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary},(0,ae.Qy)(Ae)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:Ae.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ae.marginXS,fontSize:Ae.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ue}px`,color:Ae.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ae.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ae.controlItemBgHover}},(0,ae.Qy)(Ae)),{"&-selected":{color:Ae.colorPrimary,backgroundColor:Ae.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ae.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ae.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ae.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ae.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ae.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ae.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:ue+Ae.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:se,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Ie}-menu-submenu-title`]:{color:Ae.colorPrimary}})}},[(0,fe.oN)(Ae,"slide-up"),(0,fe.oN)(Ae,"slide-down"),(0,Ke.Fm)(Ae,"move-up"),(0,Ke.Fm)(Ae,"move-down"),(0,Ne._y)(Ae,"zoom-big")]]};var We=(0,we.Z)("Dropdown",(Ae,Ie)=>{let{rootPrefixCls:ne}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ae,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,ce.fS)({contentRadius:te}),ie=(0,le.TS)(Ae,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[ke(ie),Te(ie)]},Ae=>({zIndexPopup:Ae.zIndexPopupBase+50}))},45818:function(Oe,it,ge){"use strict";ge.d(it,{D:function(){return z},Z:function(){return oe}});var ae=ge(92413),fe=ge(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ne=Ke,ce=ge(7657),we=function(ie,ue){return fe.createElement(ce.Z,(0,ae.Z)({},ie,{ref:ue,icon:Ne}))},le=fe.forwardRef(we),Je=le,Te=ge(33853),ke=ge(38819),We=ge(92310),Ae=ge.n(We),Ie=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ue={};for(var se in re)Object.prototype.hasOwnProperty.call(re,se)&&ie.indexOf(se)<0&&(ue[se]=re[se]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,se=Object.getOwnPropertySymbols(re);Ce<se.length;Ce++)ie.indexOf(se[Ce])<0&&Object.prototype.propertyIsEnumerable.call(re,se[Ce])&&(ue[se[Ce]]=re[se[Ce]]);return ue};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=fe.forwardRef((re,ie)=>{const{prefixCls:ue,className:se,trigger:Ce,children:Fe,defaultCollapsed:nt=!1,theme:ft="dark",style:Ht={},collapsible:be=!1,reverseArrow:Qe=!1,width:He=200,collapsedWidth:Ue=80,zeroWidthTriggerStyle:at,breakpoint:St,onCollapse:Tt,onBreakpoint:kt}=re,Ut=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,fe.useContext)(x.Gs),[ze,qe]=(0,fe.useState)("collapsed"in re?re.collapsed:nt),[vt,et]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in re&&qe(re.collapsed)},[re.collapsed]);const st=(Ge,Le)=>{"collapsed"in re||qe(Ge),Tt==null||Tt(Ge,Le)},de=(0,fe.useRef)();de.current=Ge=>{et(Ge.matches),kt==null||kt(Ge.matches),ze!==Ge.matches&&st(Ge.matches,"responsive")},(0,fe.useEffect)(()=>{function Ge(Se){return de.current(Se)}let Le;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&St&&St in E){Le=Se(`(max-width: ${E[St]})`);try{Le.addEventListener("change",Ge)}catch(Re){Le.addListener(Ge)}Ge(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Ge)}catch(Se){Le==null||Le.removeListener(Ge)}}},[St]),(0,fe.useEffect)(()=>{const Ge=ee("ant-sider-");return ye.addSider(Ge),()=>ye.removeSider(Ge)},[]);const ot=()=>{st(!ze,"clickTrigger")},{getPrefixCls:ht}=(0,fe.useContext)(y.E_),Mt=()=>{const Ge=ht("layout-sider",ue),Le=(0,Ie.Z)(Ut,["collapsed"]),Se=ze?Ue:He,Re=a(Se)?`${Se}px`:String(Se),Ze=parseFloat(String(Ue||0))===0?fe.createElement("span",{onClick:ot,className:Ae()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${Qe?"right":"left"}`),style:at},Ce||fe.createElement(Je,null)):null,Ct={expanded:Qe?fe.createElement(ke.Z,null):fe.createElement(Te.Z,null),collapsed:Qe?fe.createElement(Te.Z,null):fe.createElement(ke.Z,null)}[ze?"collapsed":"expanded"],Nt=Ce!==null?Ze||fe.createElement("div",{className:`${Ge}-trigger`,onClick:ot,style:{width:Re}},Ce||Ct):null,At=Object.assign(Object.assign({},Ht),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),Lt=Ae()(Ge,`${Ge}-${ft}`,{[`${Ge}-collapsed`]:!!ze,[`${Ge}-has-trigger`]:be&&Ce!==null&&!Ze,[`${Ge}-below`]:!!vt,[`${Ge}-zero-width`]:parseFloat(Re)===0},se);return fe.createElement("aside",Object.assign({className:Lt},Le,{style:At,ref:ie}),fe.createElement("div",{className:`${Ge}-children`},Fe),be||vt&&Ze?Nt:null)},Dt=fe.useMemo(()=>({siderCollapsed:ze}),[ze]);return fe.createElement(z.Provider,{value:Dt},Mt())})},84966:function(Oe,it,ge){"use strict";ge.d(it,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var ae=ge(26407),fe=ge(92310),Ke=ge.n(fe),Ne=ge(2738),ce=ge(59301),we=ge(36355),le=ge(83116),Te=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:se,background:ue,border:`1px solid ${re}`,borderInlineStart:0}}}};const ke=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ue,footerBg:se,triggerBg:Ce,headerHeight:Fe,headerPadding:nt,headerColor:ft,footerPadding:Ht,triggerHeight:be,zeroTriggerHeight:Qe,zeroTriggerWidth:He,motionDurationMid:Ue,motionDurationSlow:at,fontSize:St,borderRadius:Tt,bodyBg:kt,headerBg:Ut,siderBg:ye}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:kt,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${Ue}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:ue,lineHeight:`${be}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Ue}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Fe,insetInlineEnd:-He,zIndex:1,width:He,height:Qe,color:ue,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:Tt,borderEndEndRadius:Tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Tt}}}}},Te(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Fe,padding:nt,color:ft,lineHeight:`${Fe}px`,background:Ut,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Ht,color:ie,fontSize:St,background:se},[`${re}-content`]:{flex:"auto",minHeight:0}}};var We=(0,le.Z)("Layout",te=>[ke(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ue,controlHeightSM:se,marginXXS:Ce,colorTextLightSolid:Fe,colorBgContainer:nt}=te,ft=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${ft}px`,headerColor:ue,footerPadding:`${se}px ${ft}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Ce*2,triggerBg:"#002140",triggerColor:Fe,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:nt,lightTriggerBg:nt,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ae=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ie=Object.getOwnPropertySymbols(te);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ue])&&(re[ie[ue]]=te[ie[ue]]);return re};const Ie=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ue=>ce.forwardRef((Ce,Fe)=>ce.createElement(ue,Object.assign({ref:Fe,suffixCls:oe,tagName:re},Ce)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ue,tagName:se}=te,Ce=Ae(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Fe}=ce.useContext(we.E_),nt=Fe("layout",re),[ft,Ht]=We(nt),be=ie?`${nt}-${ie}`:nt;return ft(ce.createElement(se,Object.assign({className:Ke()(re||be,ue,Ht),ref:oe},Ce)))}),y=ce.forwardRef((te,oe)=>{const{direction:re}=ce.useContext(we.E_),[ie,ue]=ce.useState([]),{prefixCls:se,className:Ce,rootClassName:Fe,children:nt,hasSider:ft,tagName:Ht,style:be}=te,Qe=Ae(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,Ne.Z)(Qe,["suffixCls"]),{getPrefixCls:Ue,layout:at}=ce.useContext(we.E_),St=Ue("layout",se),[Tt,kt]=We(St),Ut=Ke()(St,{[`${St}-has-sider`]:typeof ft=="boolean"?ft:ie.length>0,[`${St}-rtl`]:re==="rtl"},at==null?void 0:at.className,Ce,Fe,kt),ye=ce.useMemo(()=>({siderHook:{addSider:ze=>{ue(qe=>[].concat((0,ae.Z)(qe),[ze]))},removeSider:ze=>{ue(qe=>qe.filter(vt=>vt!==ze))}}}),[]);return Tt(ce.createElement(Ie.Provider,{value:ye},ce.createElement(Ht,Object.assign({ref:oe,className:Ut,style:Object.assign(Object.assign({},at==null?void 0:at.style),be)},He),nt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Oe,it,ge){"use strict";ge.d(it,{J:function(){return we}});var ae=ge(59301),fe=ge(33234),Ke=ge(70425),Ne=function(le,Je){var Te={};for(var ke in le)Object.prototype.hasOwnProperty.call(le,ke)&&Je.indexOf(ke)<0&&(Te[ke]=le[ke]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ke=Object.getOwnPropertySymbols(le);We<ke.length;We++)Je.indexOf(ke[We])<0&&Object.prototype.propertyIsEnumerable.call(le,ke[We])&&(Te[ke[We]]=le[ke[We]]);return Te};const ce=ae.createContext(null),we=ae.forwardRef((le,Je)=>{const{children:Te}=le,ke=Ne(le,["children"]),We=ae.useContext(ce),Ae=ae.useMemo(()=>Object.assign(Object.assign({},We),ke),[We,ke.prefixCls,ke.mode,ke.selectable]);return ae.createElement(ce.Provider,{value:Ae},ae.createElement(fe.BR,null,(0,Ke.supportNodeRef)(Te)?ae.cloneElement(Te,{ref:Je}):Te))});it.Z=ce},20834:function(Oe,it,ge){"use strict";ge.d(it,{default:function(){return Dt}});var ae=ge(15285),fe=ge(59301),Ke=ge(45818),Ne=ge(92310),ce=ge.n(Ne),we=ge(36355),le=function(Ge,Le){var Se={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&Le.indexOf(Re)<0&&(Se[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Re=Object.getOwnPropertySymbols(Ge);Ze<Re.length;Ze++)Le.indexOf(Re[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[Ze])&&(Se[Re[Ze]]=Ge[Re[Ze]]);return Se},Te=Ge=>{const{prefixCls:Le,className:Se,dashed:Re}=Ge,Ze=le(Ge,["prefixCls","className","dashed"]),{getPrefixCls:dt}=fe.useContext(we.E_),xt=dt("menu",Le),Ct=ce()({[`${xt}-item-divider-dashed`]:!!Re},Se);return fe.createElement(ae.iz,Object.assign({className:Ct},Ze))},ke=ge(11592),We=ge(2738),Ae=ge(6848),Ie=ge(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ge=>{var Le;const{className:Se,children:Re,icon:Ze,title:dt,danger:xt}=Ge,{prefixCls:Ct,firstLevel:Nt,direction:At,disableMenuItemTitleTooltip:Lt,inlineCollapsed:Rt}=fe.useContext(a),Pn=Be=>{const je=fe.createElement("span",{className:`${Ct}-title-content`},Re);return(!Ze||(0,Ie.l$)(Re)&&Re.type==="span")&&Re&&Be&&Nt&&typeof Re=="string"?fe.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Re.charAt(0)):je},{siderCollapsed:wn}=fe.useContext(Ke.D);let yn=dt;typeof dt=="undefined"?yn=Nt?Re:"":dt===!1&&(yn="");const on={title:yn};!wn&&!Rt&&(on.title=null,on.open=!1);const en=(0,ke.Z)(Re).length;let he=fe.createElement(ae.ck,Object.assign({},(0,We.Z)(Ge,["title","icon","danger"]),{className:ce()({[`${Ct}-item-danger`]:xt,[`${Ct}-item-only-child`]:(Ze?en+1:en)===1},Se),title:typeof dt=="string"?dt:void 0}),(0,Ie.Tm)(Ze,{className:ce()((0,Ie.l$)(Ze)?(Le=Ze.props)===null||Le===void 0?void 0:Le.className:"",`${Ct}-item-icon`)}),Pn(Rt));return Lt||(he=fe.createElement(Ae.Z,Object.assign({},on,{placement:At==="rtl"?"left":"right",overlayClassName:`${Ct}-inline-collapsed-tooltip`}),he)),he},E=Ge=>{var Le;const{popupClassName:Se,icon:Re,title:Ze,theme:dt}=Ge,xt=fe.useContext(a),{prefixCls:Ct,inlineCollapsed:Nt,theme:At}=xt,Lt=(0,ae.Xl)();let Rt;if(!Re)Rt=Nt&&!Lt.length&&Ze&&typeof Ze=="string"?fe.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Ze.charAt(0)):fe.createElement("span",{className:`${Ct}-title-content`},Ze);else{const wn=(0,Ie.l$)(Ze)&&Ze.type==="span";Rt=fe.createElement(fe.Fragment,null,(0,Ie.Tm)(Re,{className:ce()((0,Ie.l$)(Re)?(Le=Re.props)===null||Le===void 0?void 0:Le.className:"",`${Ct}-item-icon`)}),wn?Ze:fe.createElement("span",{className:`${Ct}-title-content`},Ze))}const Pn=fe.useMemo(()=>Object.assign(Object.assign({},xt),{firstLevel:!1}),[xt]);return fe.createElement(a.Provider,{value:Pn},fe.createElement(ae.Wd,Object.assign({},(0,We.Z)(Ge,["icon"]),{title:Rt,popupClassName:ce()(Ct,Se,`${Ct}-${dt||At}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(Ge,Le){var Se={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&Le.indexOf(Re)<0&&(Se[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Re=Object.getOwnPropertySymbols(Ge);Ze<Re.length;Ze++)Le.indexOf(Re[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[Ze])&&(Se[Re[Ze]]=Ge[Re[Ze]]);return Se};function ie(Ge){return(Ge||[]).map((Le,Se)=>{if(Le&&typeof Le=="object"){const Re=Le,{label:Ze,children:dt,key:xt,type:Ct}=Re,Nt=re(Re,["label","children","key","type"]),At=xt!=null?xt:`tmp-${Se}`;return dt||Ct==="group"?Ct==="group"?fe.createElement(ae.BW,Object.assign({key:At},Nt,{title:Ze}),ie(dt)):fe.createElement(E,Object.assign({key:At},Nt,{title:Ze}),ie(dt)):Ct==="divider"?fe.createElement(Te,Object.assign({key:At},Nt)):fe.createElement(x,Object.assign({key:At},Nt),Ze)}return null}).filter(Le=>Le)}function ue(Ge){return fe.useMemo(()=>Ge&&ie(Ge),[Ge])}var se=ge(64993),Ce=ge(17313),Fe=ge(8378),nt=ge(13826),ft=ge(29878),Ht=ge(83116),be=ge(37613),He=Ge=>{const{componentCls:Le,motionDurationSlow:Se,horizontalLineHeight:Re,colorSplit:Ze,lineWidth:dt,lineType:xt,itemPaddingInline:Ct}=Ge;return{[`${Le}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${dt}px ${xt} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ct},[`> ${Le}-item:hover,
|
|
> ${Le}-item-active,
|
|
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},at=Ge=>{let{componentCls:Le,menuArrowOffset:Se}=Ge;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
|
|
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const St=Ge=>Object.assign({},(0,Ce.oN)(Ge));var kt=(Ge,Le)=>{const{componentCls:Se,itemColor:Re,itemSelectedColor:Ze,groupTitleColor:dt,itemBg:xt,subMenuItemBg:Ct,itemSelectedBg:Nt,activeBarHeight:At,activeBarWidth:Lt,activeBarBorderWidth:Rt,motionDurationSlow:Pn,motionEaseInOut:wn,motionEaseOut:yn,itemPaddingInline:on,motionDurationMid:en,itemHoverColor:he,lineType:Be,colorSplit:je,itemDisabledColor:gt,dangerItemColor:mt,dangerItemHoverColor:Ot,dangerItemSelectedColor:zt,dangerItemActiveBg:bt,dangerItemSelectedBg:Gt,itemHoverBg:Kt,itemActiveBg:Zt,menuSubMenuBg:Qt,horizontalItemSelectedColor:Sn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:rn,popupBg:tn}=Ge;return{[`${Se}-${Le}, ${Se}-${Le} > ${Se}`]:{color:Re,background:xt,[`&${Se}-root:focus-visible`]:Object.assign({},St(Ge)),[`${Se}-item-group-title`]:{color:dt},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:Ze}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${gt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:he}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Zt}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Zt}}},[`${Se}-item-danger`]:{color:mt,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Ot}},[`&${Se}-item:active`]:{background:bt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:Ze,[`&${Se}-item-danger`]:{color:zt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:Nt,[`&${Se}-item-danger`]:{backgroundColor:Gt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},St(Ge))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:Qt},[`&${Se}-popup > ${Se}`]:{backgroundColor:tn},[`&${Se}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:Rt,marginTop:-Rt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${At}px solid transparent`,transition:`border-color ${Pn} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:At,borderBottomColor:Sn}},"&-selected":{color:Sn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:At,borderBottomColor:Sn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${Rt}px ${Be} ${je}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:Ct},[`${Se}-item, ${Se}-submenu-title`]:Rt&&Lt?{width:`calc(100% + ${Rt}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Lt}px solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${yn}`,`opacity ${en} ${yn}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:zt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${wn}`,`opacity ${en} ${wn}`].join(",")}}}}}};const Ut=Ge=>{const{componentCls:Le,itemHeight:Se,itemMarginInline:Re,padding:Ze,menuArrowSize:dt,marginXS:xt,itemMarginBlock:Ct}=Ge,Nt=Ze+dt+xt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:Ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:Ct,width:`calc(100% - ${Re*2}px)`},[`> ${Le}-item,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${Le}-item-group-list ${Le}-submenu-title,
|
|
${Le}-submenu-title`]:{paddingInlineEnd:Nt}}};var ze=Ge=>{const{componentCls:Le,iconCls:Se,itemHeight:Re,colorTextLightSolid:Ze,dropdownWidth:dt,controlHeightLG:xt,motionDurationMid:Ct,motionEaseOut:Nt,paddingXL:At,itemMarginInline:Lt,fontSizeLG:Rt,motionDurationSlow:Pn,paddingXS:wn,boxShadowSecondary:yn,collapsedWidth:on,collapsedIconSize:en}=Ge,he={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Ut(Ge))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Ut(Ge)),{boxShadow:yn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:dt,maxHeight:`calc(100vh - ${xt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${Ct} ${Nt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:he,[`& ${Le}-item-group-title`]:{paddingInlineStart:At}},[`${Le}-item`]:he}},{[`${Le}-inline-collapsed`]:{width:on,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:Rt,textAlign:"center"}}},[`> ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt/2}px - ${Lt}px)`,textOverflow:"clip",[`
|
|
${Le}-submenu-arrow,
|
|
${Le}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Le}-item-icon, ${Se}`]:{margin:0,fontSize:en,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:wn})}}]};const qe=Ge=>{const{componentCls:Le,motionDurationSlow:Se,motionDurationMid:Re,motionEaseInOut:Ze,motionEaseOut:dt,iconCls:xt,iconSize:Ct,iconMarginInlineEnd:Nt}=Ge;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${Ze}`].join(","),[`${Le}-item-icon, ${xt}`]:{minWidth:Ct,fontSize:Ct,transition:[`font-size ${Re} ${dt}`,`margin ${Se} ${Ze}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:Nt,opacity:1,transition:[`opacity ${Se} ${Ze}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${Le}-item-only-child`]:{[`> ${xt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vt=Ge=>{const{componentCls:Le,motionDurationSlow:Se,motionEaseInOut:Re,borderRadius:Ze,menuArrowSize:dt,menuArrowOffset:xt}=Ge;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${Re}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:dt*.6,height:dt*.15,backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${Se} ${Re}`,`transform ${Se} ${Re}`,`top ${Se} ${Re}`,`color ${Se} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${xt})`},"&::after":{transform:`rotate(-45deg) translateY(${xt})`}}}}},et=Ge=>{const{antCls:Le,componentCls:Se,fontSize:Re,motionDurationSlow:Ze,motionDurationMid:dt,motionEaseInOut:xt,paddingXS:Ct,padding:Nt,colorSplit:At,lineWidth:Lt,zIndexPopup:Rt,borderRadiusLG:Pn,subMenuItemBorderRadius:wn,menuArrowSize:yn,menuArrowOffset:on,lineType:en,menuPanelMaskInset:he,groupTitleLineHeight:Be,groupTitleFontSize:je}=Ge;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Ge)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${Ct}px ${Nt}px`,fontSize:je,lineHeight:Be,transition:`all ${Ze}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${Ze} ${xt}`,`background ${Ze} ${xt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${Ze} ${xt}`,`background ${Ze} ${xt}`,`padding ${dt} ${xt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${xt}`,`padding ${Ze} ${xt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${Ze}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:en,borderWidth:0,borderTopWidth:Lt,marginBlock:Lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(Ge)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${Re*2}px ${Nt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Rt,borderRadius:Pn,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},qe(Ge)),vt(Ge)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:wn},[`${Se}-submenu-title::after`]:{transition:`transform ${Ze} ${xt}`}})}}),vt(Ge)),{[`&-inline-collapsed ${Se}-submenu-arrow,
|
|
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${yn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${Le}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var st=(Ge,Le)=>(0,Ht.Z)("Menu",Re=>{if(Le===!1)return[];const{colorBgElevated:Ze,colorPrimary:dt,colorTextLightSolid:xt,controlHeightLG:Ct,fontSize:Nt,darkItemColor:At,darkDangerItemColor:Lt,darkItemBg:Rt,darkSubMenuItemBg:Pn,darkItemSelectedColor:wn,darkItemSelectedBg:yn,darkDangerItemSelectedBg:on,darkItemHoverBg:en,darkGroupTitleColor:he,darkItemHoverColor:Be,darkItemDisabledColor:je,darkDangerItemHoverColor:gt,darkDangerItemSelectedColor:mt,darkDangerItemActiveBg:Ot}=Re,zt=Nt/7*5,bt=(0,be.TS)(Re,{menuArrowSize:zt,menuHorizontalHeight:Ct*1.15,menuArrowOffset:`${zt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ze}),Gt=(0,be.TS)(bt,{itemColor:At,itemHoverColor:Be,groupTitleColor:he,itemSelectedColor:wn,itemBg:Rt,popupBg:Rt,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:je,dangerItemColor:Lt,dangerItemHoverColor:gt,dangerItemSelectedColor:mt,dangerItemActiveBg:Ot,dangerItemSelectedBg:on,menuSubMenuBg:Pn,horizontalItemSelectedColor:xt,horizontalItemSelectedBg:dt});return[et(bt),He(bt),ze(bt),kt(bt,"light"),kt(Gt,"dark"),at(bt),(0,Fe.Z)(bt),(0,nt.oN)(bt,"slide-up"),(0,nt.oN)(bt,"slide-down"),(0,ft._y)(bt,"zoom-big")]},Re=>{const{colorPrimary:Ze,colorError:dt,colorTextDisabled:xt,colorErrorBg:Ct,colorText:Nt,colorTextDescription:At,colorBgContainer:Lt,colorFillAlter:Rt,colorFillContent:Pn,lineWidth:wn,lineWidthBold:yn,controlItemBgActive:on,colorBgTextHover:en,controlHeightLG:he,lineHeight:Be,colorBgElevated:je,marginXXS:gt,padding:mt,fontSize:Ot,controlHeightSM:zt,fontSizeLG:bt,colorTextLightSolid:Gt,colorErrorHover:Kt}=Re,Zt=new se.C(Gt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Nt,itemColor:Nt,colorItemTextHover:Nt,itemHoverColor:Nt,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:Ze,itemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:Lt,itemBg:Lt,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Pn,itemActiveBg:on,colorSubItemBg:Rt,subMenuItemBg:Rt,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:yn,activeBarHeight:yn,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:xt,itemDisabledColor:xt,colorDangerItemText:dt,dangerItemColor:dt,colorDangerItemTextHover:dt,dangerItemHoverColor:dt,colorDangerItemTextSelected:dt,dangerItemSelectedColor:dt,colorDangerItemBgActive:Ct,dangerItemActiveBg:Ct,colorDangerItemBgSelected:Ct,dangerItemSelectedBg:Ct,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:Be,collapsedWidth:he*2,popupBg:je,itemMarginBlock:gt,itemPaddingInline:mt,horizontalLineHeight:`${he*1.15}px`,iconSize:Ot,iconMarginInlineEnd:zt-Ot,collapsedIconSize:bt,groupTitleFontSize:Ot,darkItemDisabledColor:new se.C(Gt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gt,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:dt,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:Gt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:dt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ge),de=function(Ge,Le){var Se={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&Le.indexOf(Re)<0&&(Se[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Re=Object.getOwnPropertySymbols(Ge);Ze<Re.length;Ze++)Le.indexOf(Re[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[Ze])&&(Se[Re[Ze]]=Ge[Re[Ze]]);return Se},ht=(0,fe.forwardRef)((Ge,Le)=>{var Se,Re;const Ze=fe.useContext(oe.Z),dt=Ze||{},{getPrefixCls:xt,getPopupContainer:Ct,direction:Nt,menu:At}=fe.useContext(we.E_),Lt=xt(),{prefixCls:Rt,className:Pn,style:wn,theme:yn="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:he,siderCollapsed:Be,items:je,children:gt,rootClassName:mt,mode:Ot,selectable:zt,onClick:bt,overflowedIndicatorPopupClassName:Gt}=Ge,Kt=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,We.Z)(Kt,["collapsedWidth"]),Qt=ue(je)||gt;(Se=dt.validator)===null||Se===void 0||Se.call(dt,{mode:Ot});const Sn=(0,ee.useEvent)(function(){var In;bt==null||bt.apply(void 0,arguments),(In=dt.onClick)===null||In===void 0||In.call(dt)}),hn=dt.mode||Ot,Fn=zt!=null?zt:dt.selectable,rn=fe.useMemo(()=>Be!==void 0?Be:he,[he,Be]),tn={horizontal:{motionName:`${Lt}-slide-up`},inline:(0,te.Z)(Lt),other:{motionName:`${Lt}-zoom-big`}},pn=xt("menu",Rt||dt.prefixCls),[Bn,En]=st(pn,!Ze),sn=ce()(`${pn}-${yn}`,At==null?void 0:At.className,Pn);let Nn;if(typeof on=="function")Nn=on;else if(on===null||on===!1)Nn=null;else if(dt.expandIcon===null||dt.expandIcon===!1)Nn=null;else{const In=on!=null?on:dt.expandIcon;Nn=(0,Ie.Tm)(In,{className:ce()(`${pn}-submenu-expand-icon`,(0,Ie.l$)(In)?(Re=In.props)===null||Re===void 0?void 0:Re.className:"")})}const Yn=fe.useMemo(()=>({prefixCls:pn,inlineCollapsed:rn||!1,direction:Nt,firstLevel:!0,theme:yn,mode:hn,disableMenuItemTitleTooltip:en}),[pn,rn,Nt,en,yn]);return Bn(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Yn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Ct,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(pn,`${pn}-${yn}`,Gt),mode:hn,selectable:Fn,onClick:Sn},Zt,{inlineCollapsed:rn,style:Object.assign(Object.assign({},At==null?void 0:At.style),wn),className:sn,prefixCls:pn,direction:Nt,defaultMotions:tn,expandIcon:Nn,ref:Le,rootClassName:ce()(mt,En)}),Qt))))});const Mt=(0,fe.forwardRef)((Ge,Le)=>{const Se=(0,fe.useRef)(null),Re=fe.useContext(Ke.D);return(0,fe.useImperativeHandle)(Le,()=>({menu:Se.current,focus:Ze=>{var dt;(dt=Se.current)===null||dt===void 0||dt.focus(Ze)}})),fe.createElement(ht,Object.assign({ref:Se},Ge,Re))});Mt.Item=x,Mt.SubMenu=E,Mt.Divider=Te,Mt.ItemGroup=ae.BW;var Dt=Mt},93948:function(Oe,it,ge){"use strict";ge.d(it,{Z:function(){return en}});var ae=ge(59301),fe=ge(29679),Ke=ge(40001),Ne=ge(19248),ce=ge(99267),we=ge(92310),le=ge.n(we),Je=ge(2738),Te=ge(36355),ke=ge(92413),We=ge(33708),Ae=ge(37061),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Be=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var gt=Date.now(),mt=!1;Be.current.forEach(function(Ot){if(Ot){mt=!0;var zt=Ot.style;zt.transitionDuration=".3s, .3s, .3s, .06s",je.current&>-je.current<100&&(zt.transitionDuration="0s, 0s")}}),mt&&(je.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var je=(0,We.Z)((0,We.Z)({},Ie),Be),gt=je.className,mt=je.percent,Ot=je.prefixCls,zt=je.strokeColor,bt=je.strokeLinecap,Gt=je.strokeWidth,Kt=je.style,Zt=je.trailColor,Qt=je.trailWidth,Sn=je.transition,hn=(0,Ae.Z)(je,a);delete hn.gapPosition;var Fn=Array.isArray(mt)?mt:[mt],rn=Array.isArray(zt)?zt:[zt],tn=ne(),pn=Gt/2,Bn=100-Gt/2,En="M ".concat(bt==="round"?pn:0,",").concat(pn,`
|
|
L `).concat(bt==="round"?Bn:100,",").concat(pn),sn="0 0 100 ".concat(Gt),Nn=0;return ae.createElement("svg",(0,ke.Z)({className:le()("".concat(Ot,"-line"),gt),viewBox:sn,preserveAspectRatio:"none",style:Kt},hn),ae.createElement("path",{className:"".concat(Ot,"-line-trail"),d:En,strokeLinecap:bt,stroke:Zt,strokeWidth:Qt||Gt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(bt){case"round":Wn=1-Gt/100;break;case"square":Wn=1-Gt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:Sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=rn[In]||rn[rn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(Ot,"-line-path"),d:En,strokeLinecap:bt,stroke:Jn,strokeWidth:Gt,fillOpacity:"0",ref:function(ve){tn[In]=ve},style:na})}))},x=y,b=ge(39559),E=ge(33606),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var re=function(he){var Be=ae.useState(),je=(0,E.Z)(Be,2),gt=je[0],mt=je[1];return ae.useEffect(function(){mt("rc_progress_".concat(oe()))},[]),he||gt},ie=function(Be){var je=Be.bg,gt=Be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},gt)};function ue(he,Be){return Object.keys(he).map(function(je){var gt=parseFloat(je),mt="".concat(Math.floor(gt*Be),"%");return"".concat(he[je]," ").concat(mt)})}var se=ae.forwardRef(function(he,Be){var je=he.prefixCls,gt=he.color,mt=he.gradientId,Ot=he.radius,zt=he.style,bt=he.ptg,Gt=he.strokeLinecap,Kt=he.strokeWidth,Zt=he.size,Qt=he.gapDegree,Sn=gt&&(0,b.Z)(gt)==="object",hn=Sn?"#FFF":void 0,Fn=Zt/2,rn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:Ot,cx:Fn,cy:Fn,stroke:hn,strokeLinecap:Gt,strokeWidth:Kt,opacity:bt===0?0:1,style:zt,ref:Be});if(!Sn)return rn;var tn="".concat(mt,"-conic"),pn=Qt?"".concat(180+Qt/2,"deg"):"0deg",Bn=ue(gt,(360-Qt)/360),En=ue(gt,1),sn="conic-gradient(from ".concat(pn,", ").concat(Bn.join(", "),")"),Nn="linear-gradient(to ".concat(Qt?"bottom":"top",", ").concat(En.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:tn},rn),ae.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(tn,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:sn}))))}),Ce=se,Fe=100,nt=function(Be,je,gt,mt,Ot,zt,bt,Gt,Kt,Zt){var Qt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sn=gt/100*360*((360-zt)/360),hn=zt===0?0:{bottom:0,top:180,left:90,right:-90}[bt],Fn=(100-mt)/100*je;Kt==="round"&&mt!==100&&(Fn+=Zt/2,Fn>=je&&(Fn=je-.01));var rn=Fe/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(je,"px ").concat(Be),strokeDashoffset:Fn+Qt,transform:"rotate(".concat(Ot+Sn+hn,"deg)"),transformOrigin:"".concat(rn,"px ").concat(rn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ht(he){var Be=he!=null?he:[];return Array.isArray(Be)?Be:[Be]}var be=function(Be){var je=(0,We.Z)((0,We.Z)({},Ie),Be),gt=je.id,mt=je.prefixCls,Ot=je.steps,zt=je.strokeWidth,bt=je.trailWidth,Gt=je.gapDegree,Kt=Gt===void 0?0:Gt,Zt=je.gapPosition,Qt=je.trailColor,Sn=je.strokeLinecap,hn=je.style,Fn=je.className,rn=je.strokeColor,tn=je.percent,pn=(0,Ae.Z)(je,ft),Bn=Fe/2,En=re(gt),sn="".concat(En,"-gradient"),Nn=Bn-zt/2,Yn=Math.PI*2*Nn,In=Kt>0?90+Kt/2:-90,Wn=Yn*((360-Kt)/360),na=(0,b.Z)(Ot)==="object"?Ot:{count:Ot,space:2},Jn=na.count,pe=na.space,ve=Ht(tn),Pe=Ht(rn),rt=Pe.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),Ft=rt&&(0,b.Z)(rt)==="object",pt=Ft?"butt":Sn,gn=nt(Yn,Wn,0,100,In,Kt,Zt,Qt,pt,zt),jt=ne(),Yt=function(){var tt=0;return ve.map(function(Jt,An){var Zn=Pe[An]||Pe[Pe.length-1],xn=nt(Yn,Wn,tt,Jt,In,Kt,Zt,Zn,pt,zt);return tt+=Jt,ae.createElement(Ce,{key:An,color:Zn,ptg:Jt,radius:Nn,prefixCls:mt,gradientId:sn,style:xn,strokeLinecap:pt,strokeWidth:zt,gapDegree:Kt,ref:function($e){jt[An]=$e},size:Fe})}).reverse()},vn=function(){var tt=Math.round(Jn*(ve[0]/100)),Jt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,xn){var me=xn<=tt-1?Pe[0]:Qt,$e=me&&(0,b.Z)(me)==="object"?"url(#".concat(sn,")"):void 0,Ee=nt(Yn,Wn,An,Jt,In,Kt,Zt,me,"butt",zt,pe);return An+=(Wn-Ee.strokeDashoffset+pe)*100/Wn,ae.createElement("circle",{key:xn,className:"".concat(mt,"-circle-path"),r:Nn,cx:Bn,cy:Bn,stroke:$e,strokeWidth:zt,opacity:1,style:Ee,ref:function(Xe){jt[xn]=Xe}})})};return ae.createElement("svg",(0,ke.Z)({className:le()("".concat(mt,"-circle"),Fn),viewBox:"0 0 ".concat(Fe," ").concat(Fe),style:hn,id:gt,role:"presentation"},pn),!Jn&&ae.createElement("circle",{className:"".concat(mt,"-circle-trail"),r:Nn,cx:Bn,cy:Bn,stroke:Qt,strokeLinecap:pt,strokeWidth:bt||zt,style:gn}),Jn?vn():Yt())},Qe=be,He={Line:x,Circle:Qe},Ue=ge(6848),at=ge(93398);function St(he){return!he||he<0?0:he>100?100:he}function Tt(he){let{success:Be,successPercent:je}=he,gt=je;return Be&&"progress"in Be&&(gt=Be.progress),Be&&"percent"in Be&&(gt=Be.percent),gt}const kt=he=>{let{percent:Be,success:je,successPercent:gt}=he;const mt=St(Tt({success:je,successPercent:gt}));return[mt,St(St(Be)-mt)]},Ut=he=>{let{success:Be={},strokeColor:je}=he;const{strokeColor:gt}=Be;return[gt||at.presetPrimaryColors.green,je||null]},ye=(he,Be,je)=>{var gt,mt,Ot,zt;let bt=-1,Gt=-1;if(Be==="step"){const Kt=je.steps,Zt=je.strokeWidth;typeof he=="string"||typeof he=="undefined"?(bt=he==="small"?2:14,Gt=Zt!=null?Zt:8):typeof he=="number"?[bt,Gt]=[he,he]:[bt=14,Gt=8]=he,bt*=Kt}else if(Be==="line"){const Kt=je==null?void 0:je.strokeWidth;typeof he=="string"||typeof he=="undefined"?Gt=Kt||(he==="small"?6:8):typeof he=="number"?[bt,Gt]=[he,he]:[bt=-1,Gt=8]=he}else(Be==="circle"||Be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[bt,Gt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[bt,Gt]=[he,he]:(bt=(mt=(gt=he[0])!==null&>!==void 0?gt:he[1])!==null&&mt!==void 0?mt:120,Gt=(zt=(Ot=he[0])!==null&&Ot!==void 0?Ot:he[1])!==null&&zt!==void 0?zt:120));return[bt,Gt]},ze=3,qe=he=>ze/he*100;var et=he=>{const{prefixCls:Be,trailColor:je=null,strokeLinecap:gt="round",gapPosition:mt,gapDegree:Ot,width:zt=120,type:bt,children:Gt,success:Kt,size:Zt=zt}=he,[Qt,Sn]=ye(Zt,"circle");let{strokeWidth:hn}=he;hn===void 0&&(hn=Math.max(qe(Qt),6));const Fn={width:Qt,height:Sn,fontSize:Qt*.15+6},rn=ae.useMemo(()=>{if(Ot||Ot===0)return Ot;if(bt==="dashboard")return 75},[Ot,bt]),tn=mt||bt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Bn=Ut({success:Kt,strokeColor:he.strokeColor}),En=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:pn}),sn=ae.createElement(Qe,{percent:kt(he),strokeWidth:hn,trailWidth:hn,strokeColor:Bn,strokeLinecap:gt,trailColor:je,prefixCls:Be,gapDegree:rn,gapPosition:tn});return ae.createElement("div",{className:En,style:Fn},Qt<=20?ae.createElement(Ue.Z,{title:Gt},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Gt))},st=function(he,Be){var je={};for(var gt in he)Object.prototype.hasOwnProperty.call(he,gt)&&Be.indexOf(gt)<0&&(je[gt]=he[gt]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,gt=Object.getOwnPropertySymbols(he);mt<gt.length;mt++)Be.indexOf(gt[mt])<0&&Object.prototype.propertyIsEnumerable.call(he,gt[mt])&&(je[gt[mt]]=he[gt[mt]]);return je};const de=he=>{let Be=[];return Object.keys(he).forEach(je=>{const gt=parseFloat(je.replace(/%/g,""));isNaN(gt)||Be.push({key:gt,value:he[je]})}),Be=Be.sort((je,gt)=>je.key-gt.key),Be.map(je=>{let{key:gt,value:mt}=je;return`${mt} ${gt}%`}).join(", ")},ot=(he,Be)=>{const{from:je=at.presetPrimaryColors.blue,to:gt=at.presetPrimaryColors.blue,direction:mt=Be==="rtl"?"to left":"to right"}=he,Ot=st(he,["from","to","direction"]);if(Object.keys(Ot).length!==0){const zt=de(Ot);return{backgroundImage:`linear-gradient(${mt}, ${zt})`}}return{backgroundImage:`linear-gradient(${mt}, ${je}, ${gt})`}};var Mt=he=>{const{prefixCls:Be,direction:je,percent:gt,size:mt,strokeWidth:Ot,strokeColor:zt,strokeLinecap:bt="round",children:Gt,trailColor:Kt=null,success:Zt}=he,Qt=zt&&typeof zt!="string"?ot(zt,je):{backgroundColor:zt},Sn=bt==="square"||bt==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:Sn},Fn=mt!=null?mt:[-1,Ot||(mt==="small"?6:8)],[rn,tn]=ye(Fn,"line",{strokeWidth:Ot}),pn=Object.assign({width:`${St(gt)}%`,height:tn,borderRadius:Sn},Qt),Bn=Tt(he),En={width:`${St(Bn)}%`,height:tn,borderRadius:Sn,backgroundColor:Zt==null?void 0:Zt.strokeColor},sn={width:rn<0?"100%":rn,height:tn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Be}-outer`,style:sn},ae.createElement("div",{className:`${Be}-inner`,style:hn},ae.createElement("div",{className:`${Be}-bg`,style:pn}),Bn!==void 0?ae.createElement("div",{className:`${Be}-success-bg`,style:En}):null)),Gt)},Ge=he=>{const{size:Be,steps:je,percent:gt=0,strokeWidth:mt=8,strokeColor:Ot,trailColor:zt=null,prefixCls:bt,children:Gt}=he,Kt=Math.round(je*(gt/100)),Zt=Be==="small"?2:14,Qt=Be!=null?Be:[Zt,mt],[Sn,hn]=ye(Qt,"step",{steps:je,strokeWidth:mt}),Fn=Sn/je,rn=new Array(je);for(let tn=0;tn<je;tn++){const pn=Array.isArray(Ot)?Ot[tn]:Ot;rn[tn]=ae.createElement("div",{key:tn,className:le()(`${bt}-steps-item`,{[`${bt}-steps-item-active`]:tn<=Kt-1}),style:{backgroundColor:tn<=Kt-1?pn:zt,width:Fn,height:hn}})}return ae.createElement("div",{className:`${bt}-steps-outer`},rn,Gt)},Le=ge(93083),Se=ge(17313),Re=ge(83116),Ze=ge(37613);const dt=he=>{const Be=he?"100%":"-100%";return new Le.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xt=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:Object.assign(Object.assign({},(0,Se.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:he.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:dt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:dt(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:he.colorError},[`${Be}-text`]:{color:he.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:he.colorSuccess},[`${Be}-text`]:{color:he.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorSuccess}}})}},Ct=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:{[`${Be}-circle-trail`]:{stroke:he.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:he.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:he.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Nt=he=>{const{componentCls:Be}=he;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},At=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${je}`]:{fontSize:he.fontSizeSM}}}};var Lt=(0,Re.Z)("Progress",he=>{const Be=he.marginXXS/2,je=(0,Ze.TS)(he,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[xt(je),Ct(je),Nt(je),At(je)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Rt=function(he,Be){var je={};for(var gt in he)Object.prototype.hasOwnProperty.call(he,gt)&&Be.indexOf(gt)<0&&(je[gt]=he[gt]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,gt=Object.getOwnPropertySymbols(he);mt<gt.length;mt++)Be.indexOf(gt[mt])<0&&Object.prototype.propertyIsEnumerable.call(he,gt[mt])&&(je[gt[mt]]=he[gt[mt]]);return je};const Pn=null,wn=["normal","exception","active","success"];var on=ae.forwardRef((he,Be)=>{const{prefixCls:je,className:gt,rootClassName:mt,steps:Ot,strokeColor:zt,percent:bt=0,size:Gt="default",showInfo:Kt=!0,type:Zt="line",status:Qt,format:Sn,style:hn}=he,Fn=Rt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),rn=ae.useMemo(()=>{var ve,Pe;const rt=Tt(he);return parseInt(rt!==void 0?(ve=rt!=null?rt:0)===null||ve===void 0?void 0:ve.toString():(Pe=bt!=null?bt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[bt,he.success,he.successPercent]),tn=ae.useMemo(()=>!wn.includes(Qt)&&rn>=100?"success":Qt||"normal",[Qt,rn]),{getPrefixCls:pn,direction:Bn,progress:En}=ae.useContext(Te.E_),sn=pn("progress",je),[Nn,Yn]=Lt(sn),In=ae.useMemo(()=>{if(!Kt)return null;const ve=Tt(he);let Pe;const rt=Sn||(pt=>`${pt}%`),Ft=Zt==="line";return Sn||tn!=="exception"&&tn!=="success"?Pe=rt(St(bt),St(ve)):tn==="exception"?Pe=Ft?ae.createElement(Ne.Z,null):ae.createElement(ce.Z,null):tn==="success"&&(Pe=Ft?ae.createElement(fe.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Kt,bt,rn,tn,Zt,sn,Sn]),Wn=Array.isArray(zt)?zt[0]:zt,na=typeof zt=="string"||Array.isArray(zt)?zt:void 0;let Jn;Zt==="line"?Jn=Ot?ae.createElement(Ge,Object.assign({},he,{strokeColor:na,prefixCls:sn,steps:Ot}),In):ae.createElement(Mt,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,direction:Bn}),In):(Zt==="circle"||Zt==="dashboard")&&(Jn=ae.createElement(et,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,progressStatus:tn}),In));const pe=le()(sn,`${sn}-status-${tn}`,`${sn}-${Zt==="dashboard"&&"circle"||Ot&&"steps"||Zt}`,{[`${sn}-inline-circle`]:Zt==="circle"&&ye(Gt,"circle")[0]<=20,[`${sn}-show-info`]:Kt,[`${sn}-${Gt}`]:typeof Gt=="string",[`${sn}-rtl`]:Bn==="rtl"},En==null?void 0:En.className,gt,mt,Yn);return Nn(ae.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},En==null?void 0:En.style),hn),className:pe,role:"progressbar","aria-valuenow":rn},(0,Je.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),en=on},54580:function(Oe,it,ge){"use strict";ge.d(it,{default:function(){return xn}});var ae=ge(59301),fe=ge(26407),Ke=ge(92310),Ne=ge.n(Ke),ce=ge(92413),we=ge(6909),le=ge(4771),Je=ge(9427),Te=ge(25440),ke=ge(400),We=ge(37061),Ae=ge(85195),Ie=ge(39559),ne=ge(20569),a=ge(26112);function y(me,$e){var Ee="cannot ".concat(me.method," ").concat(me.action," ").concat($e.status,"'"),Me=new Error(Ee);return Me.status=$e.status,Me.method=me.method,Me.url=me.action,Me}function x(me){var $e=me.responseText||me.response;if(!$e)return $e;try{return JSON.parse($e)}catch(Ee){return $e}}function b(me){var $e=new XMLHttpRequest;me.onProgress&&$e.upload&&($e.upload.onprogress=function(Ye){Ye.total>0&&(Ye.percent=Ye.loaded/Ye.total*100),me.onProgress(Ye)});var Ee=new FormData;me.data&&Object.keys(me.data).forEach(function(Xe){var Ye=me.data[Xe];if(Array.isArray(Ye)){Ye.forEach(function(_e){Ee.append("".concat(Xe,"[]"),_e)});return}Ee.append(Xe,Ye)}),me.file instanceof Blob?Ee.append(me.filename,me.file,me.file.name):Ee.append(me.filename,me.file),$e.onerror=function(Ye){me.onError(Ye)},$e.onload=function(){return $e.status<200||$e.status>=300?me.onError(y(me,$e),x($e)):me.onSuccess(x($e),$e)},$e.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in $e&&($e.withCredentials=!0);var Me=me.headers||{};return Me["X-Requested-With"]!==null&&$e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Me).forEach(function(Xe){Me[Xe]!==null&&$e.setRequestHeader(Xe,Me[Xe])}),$e.send(Ee),{abort:function(){$e.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(48736),oe=function(me,$e){if(me&&$e){var Ee=Array.isArray($e)?$e:$e.split(","),Me=me.name||"",Xe=me.type||"",Ye=Xe.replace(/\/.*$/,"");return Ee.some(function(_e){var De=_e.trim();if(/^\*(\/\*)?$/.test(_e))return!0;if(De.charAt(0)==="."){var Et=Me.toLowerCase(),$t=De.toLowerCase(),xe=[$t];return($t===".jpg"||$t===".jpeg")&&(xe=[".jpg",".jpeg"]),xe.some(function(nn){return Et.endsWith(nn)})}return/\/\*$/.test(De)?Ye===De.replace(/\/.*$/,""):Xe===De?!0:/^\w+$/.test(De)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(De,"'.Skip for check.")),!0):!1})}return!0};function re(me,$e){var Ee=me.createReader(),Me=[];function Xe(){Ee.readEntries(function(Ye){var _e=Array.prototype.slice.apply(Ye);Me=Me.concat(_e);var De=!_e.length;De?$e(Me):Xe()})}Xe()}var ie=function($e,Ee,Me){var Xe=function Ye(_e,De){_e&&(_e.path=De||"",_e.isFile?_e.file(function(Et){Me(Et)&&(_e.fullPath&&!Et.webkitRelativePath&&(Object.defineProperties(Et,{webkitRelativePath:{writable:!0}}),Et.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(Et,{webkitRelativePath:{writable:!1}})),Ee([Et]))}):_e.isDirectory&&re(_e,function(Et){Et.forEach(function($t){Ye($t,"".concat(De).concat(_e.name,"/"))})}))};$e.forEach(function(Ye){Xe(Ye.webkitGetAsEntry())})},ue=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(me){(0,Je.Z)(Ee,me);var $e=(0,Te.Z)(Ee);function Ee(){var Me;(0,we.Z)(this,Ee);for(var Xe=arguments.length,Ye=new Array(Xe),_e=0;_e<Xe;_e++)Ye[_e]=arguments[_e];return Me=$e.call.apply($e,[this].concat(Ye)),Me.state={uid:ee()},Me.reqs={},Me.fileInput=void 0,Me._isMounted=void 0,Me.onChange=function(De){var Et=Me.props,$t=Et.accept,xe=Et.directory,nn=De.target.files,qt=(0,fe.Z)(nn).filter(function(fn){return!xe||oe(fn,$t)});Me.uploadFiles(qt),Me.reset()},Me.onClick=function(De){var Et=Me.fileInput;if(Et){var $t=De.target,xe=Me.props.onClick;if($t&&$t.tagName==="BUTTON"){var nn=Et.parentNode;nn.focus(),$t.blur()}Et.click(),xe&&xe(De)}},Me.onKeyDown=function(De){De.key==="Enter"&&Me.onClick(De)},Me.onFileDrop=function(De){var Et=Me.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Me.props.directory)ue(Array.prototype.slice.call(De.dataTransfer.items),Me.uploadFiles,function(xe){return oe(xe,Me.props.accept)});else{var $t=(0,fe.Z)(De.dataTransfer.files).filter(function(xe){return oe(xe,Me.props.accept)});Et===!1&&($t=$t.slice(0,1)),Me.uploadFiles($t)}},Me.uploadFiles=function(De){var Et=(0,fe.Z)(De),$t=Et.map(function(xe){return xe.uid=ee(),Me.processFile(xe,Et)});Promise.all($t).then(function(xe){var nn=Me.props.onBatchStart;nn==null||nn(xe.map(function(qt){var fn=qt.origin,Cn=qt.parsedFile;return{file:fn,parsedFile:Cn}})),xe.filter(function(qt){return qt.parsedFile!==null}).forEach(function(qt){Me.post(qt)})})},Me.processFile=function(){var De=(0,ne.Z)((0,Ae.Z)().mark(function Et($t,xe){var nn,qt,fn,Cn,Ve,ct,Bt,ut,Xt;return(0,Ae.Z)().wrap(function(It){for(;;)switch(It.prev=It.next){case 0:if(nn=Me.props.beforeUpload,qt=$t,!nn){It.next=14;break}return It.prev=3,It.next=6,nn($t,xe);case 6:qt=It.sent,It.next=12;break;case 9:It.prev=9,It.t0=It.catch(3),qt=!1;case 12:if(qt!==!1){It.next=14;break}return It.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(fn=Me.props.action,typeof fn!="function"){It.next=21;break}return It.next=18,fn($t);case 18:Cn=It.sent,It.next=22;break;case 21:Cn=fn;case 22:if(Ve=Me.props.data,typeof Ve!="function"){It.next=29;break}return It.next=26,Ve($t);case 26:ct=It.sent,It.next=30;break;case 29:ct=Ve;case 30:return Bt=((0,Ie.Z)(qt)==="object"||typeof qt=="string")&&qt?qt:$t,Bt instanceof File?ut=Bt:ut=new File([Bt],$t.name,{type:$t.type}),Xt=ut,Xt.uid=$t.uid,It.abrupt("return",{origin:$t,data:ct,parsedFile:Xt,action:Cn});case 35:case"end":return It.stop()}},Et,null,[[3,9]])}));return function(Et,$t){return De.apply(this,arguments)}}(),Me.saveFileInput=function(De){Me.fileInput=De},Me}return(0,le.Z)(Ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Xe){var Ye=this,_e=Xe.data,De=Xe.origin,Et=Xe.action,$t=Xe.parsedFile;if(this._isMounted){var xe=this.props,nn=xe.onStart,qt=xe.customRequest,fn=xe.name,Cn=xe.headers,Ve=xe.withCredentials,ct=xe.method,Bt=De.uid,ut=qt||b,Xt={action:Et,filename:fn,data:_e,file:$t,headers:Cn,withCredentials:Ve,method:ct||"post",onProgress:function(It){var un=Ye.props.onProgress;un==null||un(It,$t)},onSuccess:function(It,un){var cn=Ye.props.onSuccess;cn==null||cn(It,$t,un),delete Ye.reqs[Bt]},onError:function(It,un){var cn=Ye.props.onError;cn==null||cn(It,un,$t),delete Ye.reqs[Bt]}};nn(De),this.reqs[Bt]=ut(Xt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Xe){var Ye=this.reqs;if(Xe){var _e=Xe.uid?Xe.uid:Xe;Ye[_e]&&Ye[_e].abort&&Ye[_e].abort(),delete Ye[_e]}else Object.keys(Ye).forEach(function(De){Ye[De]&&Ye[De].abort&&Ye[De].abort(),delete Ye[De]})}},{key:"render",value:function(){var Xe=this.props,Ye=Xe.component,_e=Xe.prefixCls,De=Xe.className,Et=Xe.disabled,$t=Xe.id,xe=Xe.style,nn=Xe.multiple,qt=Xe.accept,fn=Xe.capture,Cn=Xe.children,Ve=Xe.directory,ct=Xe.openFileDialogOnClick,Bt=Xe.onMouseEnter,ut=Xe.onMouseLeave,Xt=(0,We.Z)(Xe,se),Vt=Ne()((0,ke.Z)((0,ke.Z)((0,ke.Z)({},_e,!0),"".concat(_e,"-disabled"),Et),De,De)),It=Ve?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},un=Et?{}:{onClick:ct?this.onClick:function(){},onKeyDown:ct?this.onKeyDown:function(){},onMouseEnter:Bt,onMouseLeave:ut,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ye,(0,ce.Z)({},un,{className:Vt,role:"button",style:xe}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Xt,{aria:!0,data:!0}),{id:$t,disabled:Et,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:qt},It,{multiple:nn,onChange:this.onChange},fn!=null?{capture:fn}:{})),Cn)}}]),Ee}(ae.Component),Fe=Ce;function nt(){}var ft=function(me){(0,Je.Z)(Ee,me);var $e=(0,Te.Z)(Ee);function Ee(){var Me;(0,we.Z)(this,Ee);for(var Xe=arguments.length,Ye=new Array(Xe),_e=0;_e<Xe;_e++)Ye[_e]=arguments[_e];return Me=$e.call.apply($e,[this].concat(Ye)),Me.uploader=void 0,Me.saveUploader=function(De){Me.uploader=De},Me}return(0,le.Z)(Ee,[{key:"abort",value:function(Xe){this.uploader.abort(Xe)}},{key:"render",value:function(){return ae.createElement(Fe,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ee}(ae.Component);ft.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:nt,onError:nt,onSuccess:nt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ht=ft,be=Ht,Qe=ge(18929),He=ge(4676),Ue=ge(36355),at=ge(1684),St=ge(9763),Tt=ge(31724),kt={icon:function($e,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ee}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$e}}]}},name:"file",theme:"twotone"},Ut=kt,ye=ge(7657),ze=function($e,Ee){return ae.createElement(ye.Z,(0,ce.Z)({},$e,{ref:Ee,icon:Ut}))},qe=ae.forwardRef(ze),vt=qe,et=ge(58617),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=st,ot=function($e,Ee){return ae.createElement(ye.Z,(0,ce.Z)({},$e,{ref:Ee,icon:de}))},ht=ae.forwardRef(ot),Mt=ht,Dt={icon:function($e,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:$e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ee}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Ee}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ee}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:$e}}]}},name:"picture",theme:"twotone"},Ge=Dt,Le=function($e,Ee){return ae.createElement(ye.Z,(0,ce.Z)({},$e,{ref:Ee,icon:Ge}))},Se=ae.forwardRef(Le),Re=Se,Ze=ge(77900),dt=ge(56762),xt=ge(62892),Ct=ge(92343),Nt=ge(3113);function At(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function Lt(me,$e){const Ee=(0,fe.Z)($e),Me=Ee.findIndex(Xe=>{let{uid:Ye}=Xe;return Ye===me.uid});return Me===-1?Ee.push(me):Ee[Me]=me,Ee}function Rt(me,$e){const Ee=me.uid!==void 0?"uid":"name";return $e.filter(Me=>Me[Ee]===me[Ee])[0]}function Pn(me,$e){const Ee=me.uid!==void 0?"uid":"name",Me=$e.filter(Xe=>Xe[Ee]!==me[Ee]);return Me.length===$e.length?null:Me}const wn=function(){const $e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Me=$e[$e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Me)||[""])[0]},yn=me=>me.indexOf("image/")===0,on=me=>{if(me.type&&!me.thumbUrl)return yn(me.type);const $e=me.thumbUrl||me.url||"",Ee=wn($e);return/^data:image\//.test($e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ee)?!0:!(/^data:/.test($e)||Ee)},en=200;function he(me){return new Promise($e=>{if(!me.type||!yn(me.type)){$e("");return}const Ee=document.createElement("canvas");Ee.width=en,Ee.height=en,Ee.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Ee);const Me=Ee.getContext("2d"),Xe=new Image;if(Xe.onload=()=>{const{width:Ye,height:_e}=Xe;let De=en,Et=en,$t=0,xe=0;Ye>_e?(Et=_e*(en/Ye),xe=-(Et-De)/2):(De=Ye*(en/_e),$t=-(De-Et)/2),Me.drawImage(Xe,$t,xe,De,Et);const nn=Ee.toDataURL();document.body.removeChild(Ee),window.URL.revokeObjectURL(Xe.src),$e(nn)},Xe.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&(Xe.src=Ye.result)},Ye.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&$e(Ye.result)},Ye.readAsDataURL(me)}else Xe.src=window.URL.createObjectURL(me)})}var Be=ge(26227),je=ge(41464),gt=ge(15277),mt=ge(93948),Ot=ge(6848),bt=ae.forwardRef((me,$e)=>{let{prefixCls:Ee,className:Me,style:Xe,locale:Ye,listType:_e,file:De,items:Et,progress:$t,iconRender:xe,actionIconRender:nn,itemRender:qt,isImgUrl:fn,showPreviewIcon:Cn,showRemoveIcon:Ve,showDownloadIcon:ct,previewIcon:Bt,removeIcon:ut,downloadIcon:Xt,onPreview:Vt,onDownload:It,onClose:un}=me;var cn,oa;const{status:Qn}=De,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=xe(De);let Vn=ae.createElement("div",{className:`${Ee}-icon`},da);if(_e==="picture"||_e==="picture-card"||_e==="picture-circle")if(qn==="uploading"||!De.thumbUrl&&!De.url){const Mn=Ne()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Mn},da)}else{const Mn=fn!=null&&fn(De)?ae.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${Ee}-list-item-image`,crossOrigin:De.crossOrigin}):da,Gn=Ne()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:fn&&!fn(De)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Vt(De,la),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const $n=Ne()(`${Ee}-list-item`,`${Ee}-list-item-${qn}`),ta=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,ga=Ve?nn((typeof ut=="function"?ut(De):ut)||ae.createElement(Be.Z,null),()=>un(De),Ee,Ye.removeFile):null,ia=ct&&qn==="done"?nn((typeof Xt=="function"?Xt(De):Xt)||ae.createElement(je.Z,null),()=>It(De),Ee,Ye.downloadFile):null,aa=_e!=="picture-card"&&_e!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ne()(`${Ee}-list-item-actions`,{picture:_e==="picture"})},ia,ga),ea=Ne()(`${Ee}-list-item-name`),fa=De.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:De.name},ta,{href:De.url,onClick:Mn=>Vt(De,Mn)}),De.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Mn=>Vt(De,Mn),title:De.name},De.name),aa],_t={pointerEvents:"none",opacity:.5},On=Cn?ae.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:_t,onClick:Mn=>Vt(De,Mn),title:Ye.previewFile},typeof Bt=="function"?Bt(De):Bt||ae.createElement(gt.Z,null)):null,Tn=(_e==="picture-card"||_e==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Ee}-list-item-actions`},On,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(Ue.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Tn,Sa&&ae.createElement(Ze.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:Gn}=Mn;const la="percent"in De?ae.createElement(mt.Z,Object.assign({},$t,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ae.createElement("div",{className:Ne()(`${Ee}-list-item-progress`,Gn)},la)})),va=De.response&&typeof De.response=="string"?De.response:((cn=De.error)===null||cn===void 0?void 0:cn.statusText)||((oa=De.error)===null||oa===void 0?void 0:oa.message)||Ye.uploadError,pa=qn==="error"?ae.createElement(Ot.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ae.createElement("div",{className:Ne()(`${Ee}-list-item-container`,Me),style:Xe,ref:$e},qt?qt(pa,De,Et,{download:It.bind(null,De),preview:Vt.bind(null,De),remove:un.bind(null,De)}):pa)});const Gt=(me,$e)=>{const{listType:Ee="text",previewFile:Me=he,onPreview:Xe,onDownload:Ye,onRemove:_e,locale:De,iconRender:Et,isImageUrl:$t=on,prefixCls:xe,items:nn=[],showPreviewIcon:qt=!0,showRemoveIcon:fn=!0,showDownloadIcon:Cn=!1,removeIcon:Ve,previewIcon:ct,downloadIcon:Bt,progress:ut={size:[-1,2],showInfo:!1},appendAction:Xt,appendActionVisible:Vt=!0,itemRender:It,disabled:un}=me,cn=(0,dt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Ee!=="picture"&&Ee!=="picture-card"&&Ee!=="picture-circle"||(nn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Me&&Me(_t.originFileObj).then(On=>{_t.thumbUrl=On||"",cn()}))})},[Ee,nn,Me]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,On)=>{if(Xe)return On==null||On.preventDefault(),Xe(_t)},ca=_t=>{typeof Ye=="function"?Ye(_t):_t.url&&window.open(_t.url)},Sa=_t=>{_e==null||_e(_t)},Pa=_t=>{if(Et)return Et(_t,Ee);const On=_t.status==="uploading",Tn=$t&&$t(_t)?ae.createElement(Re,null):ae.createElement(vt,null);let Un=On?ae.createElement(et.Z,null):ae.createElement(Mt,null);return Ee==="picture"?Un=On?ae.createElement(et.Z,null):Tn:(Ee==="picture-card"||Ee==="picture-circle")&&(Un=On?De.uploading:Tn),Un},da=(_t,On,Tn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Ct.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${Tn}-list-item-action`,disabled:un};if((0,Ct.l$)(_t)){const ra=(0,Ct.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Nt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Nt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle($e,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Ue.E_),$n=Vn("upload",xe),ta=Vn(),ga=Ne()(`${$n}-list`,`${$n}-list-${Ee}`),ia=(0,fe.Z)(nn.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ee==="picture-card"||Ee==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,xt.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return Ee!=="picture-card"&&Ee!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(Ze.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:On,file:Tn,className:Un,style:Xn}=_t;return ae.createElement(bt,{key:On,locale:De,prefixCls:$n,className:Un,style:Xn,file:Tn,items:nn,progress:ut,listType:Ee,isImgUrl:$t,showPreviewIcon:qt,showRemoveIcon:fn,showDownloadIcon:Cn,removeIcon:Ve,previewIcon:ct,downloadIcon:Bt,iconRender:Pa,actionIconRender:da,itemRender:It,onPreview:qn,onDownload:ca,onClose:Sa})}),Xt&&ae.createElement(Ze.default,Object.assign({},ea,{visible:Vt,forceRender:!0}),_t=>{let{className:On,style:Tn}=_t;return(0,Ct.Tm)(Xt,Un=>({className:Ne()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Tn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Zt=ae.forwardRef(Gt),Qt=ge(17313),Sn=ge(8378),hn=ge(83116),Fn=ge(37613),tn=me=>{const{componentCls:$e,iconCls:Ee}=me;return{[`${$e}-wrapper`]:{[`${$e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[$e]:{padding:`${me.padding}px 0`},[`${$e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${$e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${$e}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${$e}-drag-icon`]:{marginBottom:me.margin,[Ee]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${$e}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${$e}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${$e}-disabled`]:{cursor:"not-allowed",[`p${$e}-drag-icon ${Ee},
|
|
p${$e}-text,
|
|
p${$e}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},Bn=me=>{const{componentCls:$e,antCls:Ee,iconCls:Me,fontSize:Xe,lineHeight:Ye}=me,_e=`${$e}-list-item`,De=`${_e}-actions`,Et=`${_e}-action`,$t=Math.round(Xe*Ye);return{[`${$e}-wrapper`]:{[`${$e}-list`]:Object.assign(Object.assign({},(0,Qt.dF)()),{lineHeight:me.lineHeight,[_e]:{position:"relative",height:me.lineHeight*Xe,marginTop:me.marginXS,fontSize:Xe,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${_e}-name`]:Object.assign(Object.assign({},Qt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Ye,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[De]:{[Et]:{opacity:0},[`${Et}${Ee}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Et}:focus-visible,
|
|
&.picture ${Et}
|
|
`]:{opacity:1},[Me]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Me}`]:{color:me.colorText}},[`${$e}-icon ${Me}`]:{color:me.colorTextDescription,fontSize:Xe},[`${_e}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Xe+me.paddingXS,fontSize:Xe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${_e}:hover ${Et}`]:{opacity:1,color:me.colorText},[`${_e}-error`]:{color:me.colorError,[`${_e}-name, ${$e}-icon ${Me}`]:{color:me.colorError},[De]:{[`${Me}, ${Me}:hover`]:{color:me.colorError},[Et]:{opacity:1}}},[`${$e}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},En=ge(93083),sn=ge(1950);const Nn=new En.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new En.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:$e}=me,Ee=`${$e}-animate-inline`;return[{[`${$e}-wrapper`]:{[`${Ee}-appear, ${Ee}-enter, ${Ee}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ee}-appear, ${Ee}-enter`]:{animationName:Nn},[`${Ee}-leave`]:{animationName:Yn}}},{[`${$e}-wrapper`]:(0,sn.J$)(me)},Nn,Yn]},na=ge(93398),Jn=ge(64993);const pe=me=>{const{componentCls:$e,iconCls:Ee,uploadThumbnailSize:Me,uploadProgressOffset:Xe}=me,Ye=`${$e}-list`,_e=`${Ye}-item`;return{[`${$e}-wrapper`]:{[`
|
|
${Ye}${Ye}-picture,
|
|
${Ye}${Ye}-picture-card,
|
|
${Ye}${Ye}-picture-circle
|
|
`]:{[_e]:{position:"relative",height:Me+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${_e}-thumbnail`]:Object.assign(Object.assign({},Qt.vS),{width:Me,height:Me,lineHeight:`${Me+me.paddingSM}px`,textAlign:"center",flex:"none",[Ee]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${_e}-progress`]:{bottom:Xe,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Me+me.paddingXS}},[`${_e}-error`]:{borderColor:me.colorError,[`${_e}-thumbnail ${Ee}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${_e}-uploading`]:{borderStyle:"dashed",[`${_e}-name`]:{marginBottom:Xe}}},[`${Ye}${Ye}-picture-circle ${_e}`]:{[`&, &::before, ${_e}-thumbnail`]:{borderRadius:"50%"}}}}},ve=me=>{const{componentCls:$e,iconCls:Ee,fontSizeLG:Me,colorTextLightSolid:Xe}=me,Ye=`${$e}-list`,_e=`${Ye}-item`,De=me.uploadPicCardSize;return{[`
|
|
${$e}-wrapper${$e}-picture-card-wrapper,
|
|
${$e}-wrapper${$e}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Qt.dF)()),{display:"inline-block",width:"100%",[`${$e}${$e}-select`]:{width:De,height:De,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${$e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${$e}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Ye}${Ye}-picture-card, ${Ye}${Ye}-picture-circle`]:{[`${Ye}-item-container`]:{display:"inline-block",width:De,height:De,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[_e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${_e}:hover`]:{[`&::before, ${_e}-actions`]:{opacity:1}},[`${_e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{zIndex:10,width:Me,margin:`0 ${me.marginXXS}px`,fontSize:Me,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${_e}-actions, ${_e}-actions:hover`]:{[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{color:new Jn.C(Xe).setAlpha(.65).toRgbString(),"&:hover":{color:Xe}}},[`${_e}-thumbnail, ${_e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${_e}-name`]:{display:"none",textAlign:"center"},[`${_e}-file + ${_e}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${_e}-uploading`]:{[`&${_e}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{display:"none"}},[`${_e}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${$e}-wrapper${$e}-picture-circle-wrapper`]:{[`${$e}${$e}-select`]:{borderRadius:"50%"}}}};var rt=me=>{const{componentCls:$e}=me;return{[`${$e}-rtl`]:{direction:"rtl"}}};const Ft=me=>{const{componentCls:$e,colorTextDisabled:Ee}=me;return{[`${$e}-wrapper`]:Object.assign(Object.assign({},(0,Qt.Wf)(me)),{[$e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${$e}-select`]:{display:"inline-block"},[`${$e}-disabled`]:{color:Ee,cursor:"not-allowed"}})}};var pt=(0,hn.Z)("Upload",me=>{const{fontSizeHeading3:$e,fontSize:Ee,lineHeight:Me,lineWidth:Xe,controlHeightLG:Ye}=me,_e=Math.round(Ee*Me),De=(0,Fn.TS)(me,{uploadThumbnailSize:$e*2,uploadProgressOffset:_e/2+Xe,uploadPicCardSize:Ye*2.55});return[Ft(De),tn(De),pe(De),ve(De),Bn(De),Wn(De),rt(De),(0,Sn.Z)(De)]},me=>({actionsColor:me.colorTextDescription})),gn=function(me,$e,Ee,Me){function Xe(Ye){return Ye instanceof Ee?Ye:new Ee(function(_e){_e(Ye)})}return new(Ee||(Ee=Promise))(function(Ye,_e){function De(xe){try{$t(Me.next(xe))}catch(nn){_e(nn)}}function Et(xe){try{$t(Me.throw(xe))}catch(nn){_e(nn)}}function $t(xe){xe.done?Ye(xe.value):Xe(xe.value).then(De,Et)}$t((Me=Me.apply(me,$e||[])).next())})};const jt=`__LIST_IGNORE_${Date.now()}__`,Yt=(me,$e)=>{const{fileList:Ee,defaultFileList:Me,onRemove:Xe,showUploadList:Ye=!0,listType:_e="text",onPreview:De,onDownload:Et,onChange:$t,onDrop:xe,previewFile:nn,disabled:qt,locale:fn,iconRender:Cn,isImageUrl:Ve,progress:ct,prefixCls:Bt,className:ut,type:Xt="select",children:Vt,style:It,itemRender:un,maxCount:cn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(at.Z),Vn=qt!=null?qt:da,[$n,ta]=(0,Qe.Z)(Me||[],{value:Ee,postState:Wt=>Wt!=null?Wt:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Wt=Date.now();(Ee||[]).forEach((dn,Ln)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Wt}_${Ln}__`)})},[Ee]);const ea=(Wt,dn,Ln)=>{let an=(0,fe.Z)(dn),mn=!1;cn===1?an=an.slice(-1):cn&&(mn=an.length>cn,an=an.slice(0,cn)),(0,He.flushSync)(()=>{ta(an)});const _n={file:Wt,fileList:an};Ln&&(_n.event=Ln),(!mn||an.some(bn=>bn.uid===Wt.uid))&&(0,He.flushSync)(()=>{$t==null||$t(_n)})},fa=(Wt,dn)=>gn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:an}=me;let mn=Wt;if(Ln){const _n=yield Ln(Wt,dn);if(_n===!1)return!1;if(delete Wt[jt],_n===jt)return Object.defineProperty(Wt,jt,{value:!0,configurable:!0}),!1;typeof _n=="object"&&_n&&(mn=_n)}return an&&(mn=yield an(mn)),mn}),_t=Wt=>{const dn=Wt.filter(mn=>!mn.file[jt]);if(!dn.length)return;const Ln=dn.map(mn=>At(mn.file));let an=(0,fe.Z)($n);Ln.forEach(mn=>{an=Lt(mn,an)}),Ln.forEach((mn,_n)=>{let bn=mn;if(dn[_n].parsedFile)mn.status="uploading";else{const{originFileObj:ha}=mn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=mn.uid,bn=ua}ea(bn,an)})},On=(Wt,dn,Ln)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(_n){}if(!Rt(dn,$n))return;const an=At(dn);an.status="done",an.percent=100,an.response=Wt,an.xhr=Ln;const mn=Lt(an,$n);ea(an,mn)},Tn=(Wt,dn)=>{if(!Rt(dn,$n))return;const Ln=At(dn);Ln.status="uploading",Ln.percent=Wt.percent;const an=Lt(Ln,$n);ea(Ln,an,Wt)},Un=(Wt,dn,Ln)=>{if(!Rt(Ln,$n))return;const an=At(Ln);an.error=Wt,an.response=dn,an.status="error";const mn=Lt(an,$n);ea(an,mn)},Xn=Wt=>{let dn;Promise.resolve(typeof Xe=="function"?Xe(Wt):Xe).then(Ln=>{var an;if(Ln===!1)return;const mn=Pn(Wt,$n);mn&&(dn=Object.assign(Object.assign({},Wt),{status:"removed"}),$n==null||$n.forEach(_n=>{const bn=dn.uid!==void 0?"uid":"name";_n[bn]===dn[bn]&&!Object.isFrozen(_n)&&(_n.status="removed")}),(an=aa.current)===null||an===void 0||an.abort(dn),ea(dn,mn))})},ra=Wt=>{ia(Wt.type),Wt.type==="drop"&&(xe==null||xe(Wt))};ae.useImperativeHandle($e,()=>({onBatchStart:_t,onSuccess:On,onProgress:Tn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ae.useContext(Ue.E_),Gn=va("upload",Bt),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:Tn,onSuccess:On},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Vt||Vn)&&delete la.id;const[ya,La]=pt(Gn),[ba]=(0,St.Z)("Upload",Tt.Z.Upload),{showRemoveIcon:wt,showPreviewIcon:lt,showDownloadIcon:Pt,removeIcon:yt,previewIcon:ln,downloadIcon:zn}=typeof Ye=="boolean"?{}:Ye,Rn=(Wt,dn)=>Ye?ae.createElement(Zt,{prefixCls:Gn,listType:_e,items:$n,previewFile:nn,onPreview:De,onDownload:Et,onRemove:Xn,showRemoveIcon:!Vn&&wt,showPreviewIcon:lt,showDownloadIcon:Pt,removeIcon:yt,previewIcon:ln,downloadIcon:zn,iconRender:Cn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Ve,progress:ct,appendAction:Wt,appendActionVisible:dn,itemRender:un,disabled:Vn}):Wt,Dn=Ne()(`${Gn}-wrapper`,ut,Pa,La,Mn==null?void 0:Mn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:_e==="picture-card",[`${Gn}-picture-circle-wrapper`]:_e==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),It);if(Xt==="drag"){const Wt=Ne()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Dn},ae.createElement("div",{className:Wt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(be,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Vt))),Rn()))}const Hn=Ne()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Wt=>ae.createElement("div",{className:Hn,style:Wt},ae.createElement(be,Object.assign({},la,{ref:aa}))))(Vt?void 0:{display:"none"});return ya(_e==="picture-card"||_e==="picture-circle"?ae.createElement("span",{className:Dn},Rn(Kn,!!Vt)):ae.createElement("span",{className:Dn},Kn,Rn()))};var kn=ae.forwardRef(Yt),tt=function(me,$e){var Ee={};for(var Me in me)Object.prototype.hasOwnProperty.call(me,Me)&&$e.indexOf(Me)<0&&(Ee[Me]=me[Me]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Me=Object.getOwnPropertySymbols(me);Xe<Me.length;Xe++)$e.indexOf(Me[Xe])<0&&Object.prototype.propertyIsEnumerable.call(me,Me[Xe])&&(Ee[Me[Xe]]=me[Me[Xe]]);return Ee},An=ae.forwardRef((me,$e)=>{var{style:Ee,height:Me}=me,Xe=tt(me,["style","height"]);return ae.createElement(kn,Object.assign({ref:$e},Xe,{type:"drag",style:Object.assign(Object.assign({},Ee),{height:Me})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=jt;var xn=Zn}}]);
|