(self.webpackChunk=self.webpackChunk||[]).push([[8302],{88010:function(ke,Mt){"use strict";Mt.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 ke(ie,a,E,b){E===void 0&&(E=0),b===void 0&&(b=1/0),this._name=ie,this._defaultValue=a,this._minimum=E,this._maximum=b}Object.defineProperty(ke.prototype,"name",{get:function(){return this._name},set:function(ie){if(typeof ie!="string"||ie==="")throw new Error("Shape name must be a valid string.");this._name=ie}}),Object.defineProperty(ke.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("The default value must be a real number, not: "+ie);this._defaultValue=ie}}),Object.defineProperty(ke.prototype,"minimum",{get:function(){return this._minimum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Minimum must be a real number, not: "+ie);this._minimum=ie}}),Object.defineProperty(ke.prototype,"maximum",{get:function(){return this._maximum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Maximum must be a real number, not: "+ie);this._maximum=ie}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ie,a){var E=go.Shape._FigureParameters[ie];return E?E[a]:null},go.Shape.setFigureParameter=function(ie,a,E){if(!(E instanceof ke))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+E);if(E.defaultValueE.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+E.defaultValue);var b=go.Shape._FigureParameters[ie];b||(b=[],go.Shape._FigureParameters[ie]=b),b[a]=E};var Mt=[];function le(ie,a){var E=Mt.pop();return E===void 0?new go.Point(ie,a):(E.x=ie,E.y=a,E)}function ee(){var ie=Mt.pop();return ie===void 0?new go.Point:ie}function ue(ie){Mt.push(ie)}function Ge(ie,a,E,b,y,x,z,te,ae){ae||(ae=new go.Point);var ne=ie-E,se=y-z,de=NaN,Se=NaN;if(ne===0)if(se===0)ie===E&&(de=ie,Se=a);else{var ce=(x-te)/se,ye=x-ce*y;de=ie,Se=ce*de+ye}else if(se===0){var Ie=(a-b)/ne,et=a-Ie*ie;de=y,Se=Ie*de+et}else{var Ie=(a-b)/ne,ce=(x-te)/se,et=a-Ie*ie,ye=x-ce*y;de=(ye-et)/(Ie-ce),Se=Ie*de+et}return ae.x=de,ae.y=Se,ae}function st(ie,a,E,b,y,x,z,te,ae,ne,se,de,Se,ce){var ye=1-ae,Ie=ae,et=ie*ye+E*Ie,Et=a*ye+b*Ie,wt=E*ye+y*Ie,Ft=b*ye+x*Ie,Nt=y*ye+z*Ie,_t=x*ye+te*Ie,ot=et*ye+wt*Ie,Ht=Et*ye+Ft*Ie,Kt=wt*ye+Nt*Ie,Ze=Ft*ye+_t*Ie,kt=ot*ye+Kt*Ie,Tt=Ht*ye+Ze*Ie;ne.x=et,ne.y=Et,se.x=ot,se.y=Ht,de.x=kt,de.y=Tt,Se.x=Kt,Se.y=Ze,ce.x=Nt,ce.y=_t}var Ce=new go.Spot(.156,.156),Ve=new go.Spot(.844,.844),Ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=5),b=Math.min(b,a/3),b=Math.min(b,E/3);var y=b*Ae,x=new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,E-b)).add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,E-y,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,b,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,y,E,0,E-y)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,y,y,0).close()));return y>1&&(x.spot1=new go.Spot(0,0,y,y),x.spot2=new go.Spot(1,1,-y,-y)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ie,a,E){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,E).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,E)).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(ie,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ie,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=E/2,b.endX=a,b.endY=E/2,b}),go.Shape.defineFigureGenerator("LineV",function(ie,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=a/2,b.startY=0,b.endX=a/2,b.endY=E,b}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,E/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("XLine",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!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,E)))}),go.Shape.defineFigureGenerator("LineRight",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)))}),go.Shape.defineFigureGenerator("LineDown",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,.25*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Line,a,.25*E)))}),go.Shape.defineFigureGenerator("LineLeft",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,E)))}),go.Shape.defineFigureGenerator("LineUp",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,.75*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,a,.75*E)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ie,a,E){var b=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(b*a,(1-b)*E,!1).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*E)).add(new go.PathSegment(go.PathSegment.Move,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Move,0,E/2)).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("CircleLine",function(ie,a,E){var b=a/2,y=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close()));return y.spot1=Ce,y.spot2=Ve,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(ie,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=0,b.endX=a,b.endY=E,b}),go.Shape.defineFigureGenerator("Line2",function(ie,a,E){var b=new go.Geometry(go.Geometry.Line);return b.startX=a,b.startY=0,b.endX=0,b.endY=E,b}),go.Shape.defineFigureGenerator("Curve1",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,Ae*a,0,a,(1-Ae)*E)))}),go.Shape.defineFigureGenerator("Curve2",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,0,Ae*E,(1-Ae)*a,E)))}),go.Shape.defineFigureGenerator("Curve3",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,Ae*E,Ae*a,E)))}),go.Shape.defineFigureGenerator("Curve4",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,(1-Ae)*a,0,0,(1-Ae)*E)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ie,a,E){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,E).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ie,a,E){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,E).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)?b=.1:b<-1?b=-1:b>1&&(b=1);var y=Math.abs(b)*a;if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),y.5&&(b=.5);var y=Math.abs(b)*a;if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a/2);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(b=a/2);var y=Math.abs(b);if(b===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}else{var x=new go.Geometry;return b>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())):x.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())),y0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+te,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,te,te).close())),x.spot1=Ce,x.spot2=Ve,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*E,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*E,-.09239631*a,.07836421*E,.1406031*a,-.0542823*E)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*E,.2450511*a,-.00697547*E,.3776197*a,-.01112067*E)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*E,.4539471*a,0,.6066018*a,-.02526587*E)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*E,.6914277*a,-.01904177*E,.8921095*a,-.01220843*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*E,1.036446*a,.04105738*E,1.020377*a,.3022052*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*E,1.04448*a,.360238*E,.992256*a,.5219009*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*E,1.032337*a,.5771781*E,1.018411*a,.8120651*E)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*E,1.028411*a,.9571472*E,.8556702*a,1.052487*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*E,.7431877*a,1.009325*E,.5624123*a,1.021761*E)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*E,.4820677*a,1.031761*E,.3030112*a,1.002796*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*E,.2329994*a,1.01518*E,.03213784*a,1.01518*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*E,-.02812061*a,.9032597*E,-.01205169*a,.6835638*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*E,-.01812061*a,.6089503*E,-.00606892*a,.4555777*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*E,-.01606892*a,.3892545*E,-.01205169*a,.1944299*E))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ie,a,E){var b=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(b*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b*E)).add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Line,b*a,E)).add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*E)).add(new go.PathSegment(go.PathSegment.Line,0,b*E).close())).setSpots(b/2,b/2,1-b/2,1-b/2)}),go.Shape.setFigureParameter("Pie",0,new ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ie,a,E){var b=ie?ie.parameter1:NaN,y=ie?ie.parameter2:NaN;isNaN(b)&&(b=0),isNaN(y)&&(y=315);var x=b%360;x<0&&(x+=360);var z=y%360,te=Math.min(a,E)/2;return new go.Geometry().add(new go.PathFigure(te,te).add(new go.PathSegment(go.PathSegment.Arc,x,z,te,te,te,te).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ie,a,E){var b=Ae/Math.SQRT2*.5,y=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*a,x*E,a,(1-b)*E,(y+b)*a,(x+b)*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=30);var y=Math.min(b,a)/2,x=a/2,z=E/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var y=Math.min(b,a)/2,x=a/2,z=E/2;return new go.Geometry().add(new go.PathFigure(x-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+y,0)).add(new go.PathSegment(go.PathSegment.Line,x+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,x+y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,E)).add(new go.PathSegment(go.PathSegment.Line,x-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,x-y,z-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ie,a,E){var b=ie?ie.parameter1:NaN;if((isNaN(b)||b<0)&&(b=30),a===0||E===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=E,y}else{var x=a/2,z=E/2,te=Math.atan2(E,a),ae=b-Math.min(Math.cos(te)*b/2,x),ne=b-Math.min(Math.sin(te)*b/2,z),y=new go.Geometry,se=new go.PathFigure(ae,0,!0);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Line,x,.2*E)),se.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,a,E-ne)),se.add(new go.PathSegment(go.PathSegment.Line,a-ae,E)),se.add(new go.PathSegment(go.PathSegment.Line,x,.8*E)),se.add(new go.PathSegment(go.PathSegment.Line,ae,E)),se.add(new go.PathSegment(go.PathSegment.Line,0,E-ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var y=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*E).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.2);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,(1-b)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,b*E).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.5);var y=new go.Geometry,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,E,Math.abs(1-b)*a,.25*E,Math.abs(1-b)*a,.75*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*E,b*a,.25*E).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,Ae*a,0,a,(.5-Ae/2)*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,(.5+Ae/2)*E,Ae*a,E).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,0,a,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*E,.5*a,.25*E).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,.1*a,.8*E,0,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.5*E,.9*a,.8*E).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*E)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.6*a,.2*E,a,.25*E)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*E,a,.8*E,.6*a,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,.5*a,.75*E,.55*a,.95*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*E,.45*a,.95*E,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.4*a,.8*E,0,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*E,0,.25*E,.4*a,.2*E).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.4*a,.6*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,E,.5*a,.75*E,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*E,.55*a,.95*E,.5*a,.75*E));var x=.2,z=.3,te=0,ae=x*Ae;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z)*a,(.5-ae+te)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z+.05)*a,(.5-ae+te-.02)*E)),x=.2,z=0,te=-.3,ae=x*Ae,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+te)*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z)*a,(.5-ae+te)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z)*a,(.5-ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),x=.2,z=-.3,te=0,ae=x*Ae,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+te)*E,(1-.5+x+z-.05)*a,(.5-ae+te-.02)*E,(.5+ae+z)*a,(.5-x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+te)*E,(.5-ae+z)*a,(.5-x+te)*E,(.5-x+z)*a,(.5-ae+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+te)*E,(.5-x+z)*a,(.5+ae+te)*E,(.5-ae+z)*a,(.5+x+te)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*E,(.5+ae+z)*a,(.5+x+te)*E,(.5+x+z)*a,(.5+ae+te)*E).close()),b.setSpots(.06,.33,.93,.68),b}),go.Shape.defineFigureGenerator("YinYang",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,te=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,te*E)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,E*te,x*a,x*a).close()),y=new go.PathFigure(a*.5,0,!1),b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),te=.75,y=new go.PathFigure((z+x)*a,te*E,!0),b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,E*te,x*a,x*a).close()),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Peace",function(ie,a,E){var b=.8535533905932737,y=.5*a,x=.5*E;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,x,y,x)).add(new go.PathSegment(go.PathSegment.Line,y,E)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*E)).add(new go.PathSegment(go.PathSegment.Move,y,x)).add(new go.PathSegment(go.PathSegment.Line,b*a,b*E)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=.5,z=.5,te=.5,ae=new go.PathFigure(z*a,(te-x)*E);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),x=.4,y=Ae*.4;var ne=ee(),se=ee(),de=ee(),Se=ee();st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.42,ne,se,de,Se,Se);var ce=ee(),ye=ee(),Ie=ee();st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.58,Se,Se,Ie,ce,ye);var et=ee(),Et=ee(),wt=ee();st(z,te+x,z-y,te+x,z-x,te+y,z-x,te,.42,et,Et,wt,Se,Se);var Ft=ee(),Nt=ee(),_t=ee();return st(z,te+x,z-y,te+x,z-x,te+y,z-x,te,.58,Se,Se,_t,Ft,Nt),ae.add(new go.PathSegment(go.PathSegment.Move,_t.x*a,_t.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,Ft.x*a,Ft.y*E,Nt.x*a,Nt.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*E,ne.x*a,ne.y*E,se.x*a,se.y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,_t.x*a,_t.y*E).close()),ae.add(new go.PathSegment(go.PathSegment.Move,wt.x*a,wt.y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,ce.x*a,ce.y*E,ye.x*a,ye.y*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*a,wt.y*E,et.x*a,et.y*E,Et.x*a,Et.y*E).close()),ue(ne),ue(se),ue(de),ue(Se),ue(ce),ue(ye),ue(Ie),ue(et),ue(Et),ue(wt),ue(Ft),ue(Nt),ue(_t),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Fragile",function(ie,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*E)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*E)).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*E,a,.25*E,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*E,0,.25*E).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=30),b>a&&(b=a);var y=(a-b)/2,x=y+b;return new go.Geometry().add(new go.PathFigure(x,.5*E).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Line,y,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,.55*E).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*E).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ie,a,E){var b=new go.Geometry,y=Ae*.4,x=.4,z=.5,te=.5,ae=ee(),ne=ee(),se=ee(),de=ee(),Se=new go.PathFigure((z-x)*a,te*E,!1);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.44,se,de,ne,ae,ae),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne.x*a,ne.y*E,se.x*a,se.y*E,de.x*a,de.y*E));var ce=le(ne.x,ne.y);st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.56,ae,ae,ne,se,de);var ye=le(ne.x,ne.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*E)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*E)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),Se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,.15*E)),Se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*E)),Se.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,se.x*a,se.y*E,de.x*a,de.y*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),x=.35,y=Ae*.35;var Ie=new go.PathFigure(z*a,(te-x)*E,!1);b.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E));var et=new go.PathFigure((z-x)*a,te*E,!1);return b.add(et),ue(ae),ue(ne),ue(se),ue(de),ue(ce),ue(ye),b.spot1=new go.Spot(.202,.257),b.spot2=new go.Spot(.792,.739),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("GenderFemale",function(ie,a,E){var b=new go.Geometry,y=.375,x=0,z=-.125,te=y*Ae,ae=new go.PathFigure((.525+x)*a,(.5+y+z)*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*E,(.5+te+x)*a,(.5+y+z)*E,(.5+y+x)*a,(.5+te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*E,(1-.5+y+x)*a,(.5-te+z)*E,(.5+te+x)*a,(.5-y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+y+z)*E,(.5-y+x)*a,(.5+te+z)*E,(.5-te+x)*a,(.5+y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E).close()),y=.325,x=0,z=-.125,te=y*Ae;var ae=new go.PathFigure((1-.5+y+x)*a,(.5+z)*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+y+z)*E,(.5+y+x)*a,(.5+te+z)*E,(.5+te+x)*a,(.5+y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5+y+z)*E,(.5-y+x)*a,(.5+te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E,(.5-te+x)*a,(.5-y+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+x)*a,(.5+z)*E,(.5+te+x)*a,(.5-y+z)*E,(1-.5+y+x)*a,(.5-te+z)*E));var ae=new go.PathFigure((.525+x)*a,(.5+y+z)*E,!1);return b.add(ae),b.spot1=new go.Spot(.232,.136),b.spot2=new go.Spot(.682,.611),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicImplies",function(ie,a,E){var b=ie?ie.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ie,a,E){var b=ie?ie.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,b*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,b*a,E))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ie,a,E){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,E)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ie,a,E){var b=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*E,.5*a,.5*E)));return b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicTruth",function(ie,a,E){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,E)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Move,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ie,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Move,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ie,a,E){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*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,0,E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ie,a,E){var b=.5;return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,0,b*E)).add(new go.PathSegment(go.PathSegment.Arc,180,180,b*a,b*E,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ie,a,E){var b=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,b*E)).add(new go.PathSegment(go.PathSegment.Arc,0,180,b*a,b*E,b*a,b*E)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.3);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=.3);var x=(1-b)*a,z=(.5-y/2)*E,te=(.5+y/2)*E,ae=new go.Geometry,ne=new go.PathFigure(0,z,!0);ae.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,x,z)),ne.add(new go.PathSegment(go.PathSegment.Line,x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,te)),ne.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ae.spot1=new go.Spot(0,z/E);var se=Ge(0,te/E,1,te/E,x/a,1,1,.5,ee());return ae.spot2=new go.Spot(se.x,se.y),ue(se),ae}),go.Shape.setFigureParameter("Arrow2",0,new ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=30),b>a&&(b=a);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,E/2);var x=a-b,z=(E-y)/2,te=z+y,ae=new go.Geometry,ne=new go.PathFigure(0,z,!0);ae.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,x,z)),ne.add(new go.PathSegment(go.PathSegment.Line,x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,te)),ne.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ae.spot1=new go.Spot(0,z/E);var se=Ge(0,te/E,1,te/E,x/a,1,1,.5,ee());return ae.spot2=new go.Spot(se.x,se.y),ue(se),ae}),go.Shape.defineFigureGenerator("Chevron",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("DoubleArrow",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*E).close()),b}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.3);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=Ge(0,.5,.3,0,0,y/E,.1,y/E,ee());return z.spot1=new go.Spot(ae.x,ae.y),ae=Ge(.7,1,1,.5,0,x/E,1,x/E,ae),z.spot2=new go.Spot(ae.x,ae.y),ue(ae),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=40);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=100);var x=(E-b)/2,z=x+b,te=(E-y)/2,ae=te+y;(b>E||y>E)&&(y>b?(b=b*E/y,x=(E-b)/2,z=x+b,te=0,ae=E):(x=0,z=E,te=0,ae=E));var ne=new go.Geometry,se=new go.PathFigure(a,.5*E,!0);ne.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close());var de=Ge(0,.5,.3,te/E,0,x/E,1,x/E,ee());return ne.spot1=new go.Spot(de.x,de.y),de=Ge(.7,ae/E,1,.5,0,z/E,1,z/E,de),ne.spot2=new go.Spot(de.x,de.y),ue(de),ne}),go.Shape.setFigureParameter("IBeamArrow",0,new ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.3);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,y/E);var ae=Ge(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),ue(ae),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=40);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=100);var x=(E-b)/2,z=x+b,te=(E-y)/2,ae=te+y;(b>E||y>E)&&(y>b?(b=b*E/y,x=(E-b)/2,z=x+b,te=0,ae=E):(x=0,z=E,te=0,ae=E));var ne=new go.Geometry,se=new go.PathFigure(a,.5*E,!0);ne.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,te).close()),ne.spot1=new go.Spot(0,x/E);var de=Ge(.7,ae/E,1,.5,0,z/E,1,z/E,ee());return ne.spot2=new go.Spot(de.x,de.y),ue(de),ne}),go.Shape.setFigureParameter("Pointer",0,new ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(b,.35);var z=Ge(.2,.65,1,.65,0,1,1,.5,ee());return y.spot2=new go.Spot(z.x,z.y),ue(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.3);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*E,b*a,.25*E).close()),y.spot1=new go.Spot(b,.35);var z=Ge(0,.65,1,.65,0,1,1,.5,ee());return y.spot2=new go.Spot(z.x,z.y),ue(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.4);var y=(.5-b/2)*E,x=(.5+b/2)*E,z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ae=Ge(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),ue(ae),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=50);var y=(E-b)/2,x=y+b;b>E&&(y=0,x=E);var z=new go.Geometry,te=new go.PathFigure(a,.5*E,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,y/E);var ae=Ge(.7,1,1,.5,0,x/E,1,x/E,ee());return z.spot2=new go.Spot(ae.x,ae.y),ue(ae),z}),go.Shape.setFigureParameter("SquareArrow",0,new ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.7);var y=new go.Geometry,x=new go.PathFigure(a,.5*E,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(b,1),y}),go.Shape.defineFigureGenerator("Cone1",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=Ae*.1,z=new go.PathFigure(0,.9*E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E).close()),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.97),b}),go.Shape.defineFigureGenerator("Cone2",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.9*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,E,.85/.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*E).close());var x=new go.PathFigure(0,.9*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,.8*E,.85/.9*a,.8*E)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.82),b}),go.Shape.defineFigureGenerator("Cube1",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var x=new go.PathFigure(.5*a,E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.5,.85),b}),go.Shape.defineFigureGenerator("Cube2",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.3*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.7,1),b}),go.Shape.defineFigureGenerator("Cylinder1",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var y=new go.Geometry,x=Ae*.5,z=new go.PathFigure(0,b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Ae*b,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,b,(.5+x)*a,0,1*a,Ae*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*E,1*a,E-Ae*b,(.5+x)*a,1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,(.5-x)*a,1*E,0,E-Ae*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b));var te=new go.PathFigure(a,b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*b,1*a,2*b-Ae*b,(.5+x)*a,2*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b,(.5-x)*a,2*b,0,2*b-Ae*b)),y.spot1=new go.Spot(0,0,0,2*b),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,E/3);var y=new go.Geometry,x=Ae*.5,z=new go.PathFigure(0,E-b,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Ae*b,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b,(.5+x)*a,0,a,Ae*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,E-Ae*b,(.5+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-b,(.5-x)*a,E,0,E-Ae*b));var te=new go.PathFigure(0,E-b,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E-2*b,0,E-b-Ae*b,(.5-x)*a,E-2*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E-b,(.5+x)*a,E-2*b,a,E-b-Ae*b)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*b),y}),go.Shape.defineFigureGenerator("Cylinder3",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var y=new go.Geometry,x=Ae*.5,z=new go.PathFigure(b,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-Ae*b,0,a,(.5-x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,(.5+x)*E,a-Ae*b,E)),z.add(new go.PathSegment(go.PathSegment.Line,b,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,Ae*b,E,0,(.5+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-x)*E,Ae*b,0));var te=new go.PathFigure(b,0,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,2*b,.5*E,b+Ae*b,0,2*b,(.5-x)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,E,2*b,(.5+x)*E,b+Ae*b,E)),y.spot1=new go.Spot(0,0,2*b,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var y=new go.Geometry,x=Ae*.5,z=new go.PathFigure(a-b,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-Ae*b,0,a,(.5-x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a,(.5+x)*E,a-Ae*b,E)),z.add(new go.PathSegment(go.PathSegment.Line,b,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,Ae*b,E,0,(.5+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-x)*E,Ae*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-b,0));var te=new go.PathFigure(a-b,0,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a-2*b,.5*E,a-b-Ae*b,0,a-2*b,(.5-x)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,E,a-2*b,(.5+x)*E,a-b-Ae*b,E)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*b,0),y}),go.Shape.defineFigureGenerator("Prism1",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,.25*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(.25*a,.25*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.408,.172),b.spot2=new go.Spot(.833,.662),b}),go.Shape.defineFigureGenerator("Prism2",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.25*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(0,E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("Pyramid1",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E).close());var x=new go.PathFigure(.5*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Pyramid2",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var x=new go.PathFigure(.5*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*E)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Actor",function(ie,a,E){var b=new go.Geometry,y=.2,x=.1,z=Ae*y,te=Ae*x,ae=.5,ne=.1,se=new go.PathFigure(ae*a,(ne+x)*E,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-y)*a,ne*E,(ae-z)*a,(ne+x)*E,(ae-y)*a,(ne+te)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-x)*E,(ae-y)*a,(ne-te)*E,(ae-z)*a,(ne-x)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+y)*a,ne*E,(ae+z)*a,(ne-x)*E,(ae+y)*a,(ne-te)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne+x)*E,(ae+y)*a,(ne+te)*E,(ae+z)*a,(ne+x)*E));var de=.05,Se=Ae*de;ae=.05,ne=.25;var ce=new go.PathFigure(.5*a,.2*E,!0);return b.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*E)),ae=.95,ne=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae+de)*a,ne*E,(ae+Se)*a,(ne-de)*E,(ae+de)*a,(ne-Se)*E)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*E)),de=.025,Se=Ae*de,ae=.825,ne=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-de)*E,(ae+de)*a,(ne-Se)*E,(ae+Se)*a,(ne-de)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,ne*E,(ae-Se)*a,(ne-de)*E,(ae-de)*a,(ne-Se)*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,E)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E)),de=.05,Se=Ae*de,ae=.5,ne=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-de)*E,(ae+de)*a,(ne-Se)*E,(ae+Se)*a,(ne-de)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,ne*E,(ae-Se)*a,(ne-de)*E,(ae-de)*a,(ne-Se)*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,E)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*E)),de=.025,Se=Ae*de,ae=.175,ne=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-de)*E,(ae+de)*a,(ne-Se)*E,(ae+Se)*a,(ne-de)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,ne*E,(ae-Se)*a,(ne-de)*E,(ae-de)*a,(ne-Se)*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),de=.05,Se=Ae*de,ae=.05,ne=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-de)*E,(ae-de)*a,(ne-Se)*E,(ae-Se)*a,(ne-de)*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),b.spot1=new go.Spot(.2,.2),b.spot2=new go.Spot(.8,.65),b}),go.Shape.setFigureParameter("Card",0,new ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ie,a,E){var b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.2);var y=new go.Geometry,x=new go.PathFigure(a,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,b*E)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),y.spot1=new go.Spot(0,b),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E));var x=new go.PathFigure(.5*a,.5*E,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,.25),b}),go.Shape.defineFigureGenerator("CreateRequest",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(0,y*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),b}),go.Shape.defineFigureGenerator("Database",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=Ae*.1,z=new go.PathFigure(a,.1*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*E,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-x)*E));var te=new go.PathFigure(a,.1*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+x)*E,(.5+y)*a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+x)*E,(.5+y)*a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*E,a,(.3+x)*E,(.5+y)*a,.4*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,(.5-y)*a,.4*E,0,(.3+x)*E)),b.spot1=new go.Spot(0,.4),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("DataStorage",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*E,.25*a,.1*E).close()),b.spot1=new go.Spot(.226,0),b.spot2=new go.Spot(.81,1),b}),go.Shape.defineFigureGenerator("DiskStorage",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=Ae*.1,z=new go.PathFigure(a,.1*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+x)*E,(.5+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*E,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-x)*E));var te=new go.PathFigure(a,.1*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+x)*E,(.5+y)*a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+x)*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+x)*E,(.5+y)*a,.3*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+x)*E)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("Display",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close()),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("DividedEvent",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var x=Ae*.2,z=new go.PathFigure(0,.2*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*E,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*E,(.8+x)*a,0,a,(.2-x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,E,a,(.8+x)*E,(.8+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*E,(.2-x)*a,E,0,(.8+x)*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*E));var te=new go.PathFigure(0,y*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),b}),go.Shape.defineFigureGenerator("DividedProcess",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(0,y*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),b}),go.Shape.defineFigureGenerator("Document",function(ie,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*E)),z.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),b}),go.Shape.defineFigureGenerator("ExternalProcess",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var x=new go.PathFigure(.1*a,.4*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*E)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("File",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(.75*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Interrupt",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E));var x=new go.PathFigure(a,.5*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,E));var z=new go.PathFigure(a,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("InternalStorage",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN,x=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var te=new go.PathFigure(y*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),te.add(new go.PathSegment(go.PathSegment.Move,0,x*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,x*E)),b}),go.Shape.defineFigureGenerator("Junction",function(ie,a,E){var b=new go.Geometry,y=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=Ae*.5,te=.5,ae=new go.PathFigure(a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,E,a,(te+z)*E,(te+z)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te*E,(te-z)*a,E,0,(te+z)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,0,0,(te-z)*E,(te-z)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,te*E,(te+z)*a,0,a,(te-z)*E));var ne=new go.PathFigure((x+y)*a,(x+y)*E,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,x*a,x*E)),ne.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(x+y)*a,x*E)),b}),go.Shape.defineFigureGenerator("LinedDocument",function(ie,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close());var x=new go.PathFigure(.1*a,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*E)),b.spot1=new go.Spot(.1,0),b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("LoopLimit",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MagneticTape",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=.5,z=new go.PathFigure(.5*a,E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*E,a,(x+y)*E,(x+y)*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.8),b}),go.Shape.defineFigureGenerator("ManualInput",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MessageFromUser",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.7);var x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,y*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-y)*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("MicroformRecording",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("MultiDocument",function(ie,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*E,.96*a,.47*E,.93*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*E,.86*a,.57*E,.83*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.4*a,.4*E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.8,.77),b}),go.Shape.defineFigureGenerator("MultiProcess",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,.1*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close());var x=new go.PathFigure(.2*a,.1*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),b.spot1=new go.Spot(0,.2),b.spot2=new go.Spot(.8,1),b}),go.Shape.defineFigureGenerator("OfflineStorage",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var x=1-y,z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close());var te=new go.PathFigure(.5*y*a,y*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*E)),b}),go.Shape.defineFigureGenerator("OffPageConnector",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("Or",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=.5,z=new go.PathFigure(a,x*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,E,a,(x+y)*E,(x+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E));var te=new go.PathFigure(a,.5*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b}),go.Shape.defineFigureGenerator("PaperTape",function(ie,a,E){var b=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.5*a,.6*E,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),b.spot1=new go.Spot(0,.49),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN,x=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN,x=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("Procedure",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure((1-y)*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),b}),go.Shape.defineFigureGenerator("Process",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Sort",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var x=new go.PathFigure(0,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.5),b}),go.Shape.defineFigureGenerator("Start",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.25);var x=new go.PathFigure(y*a,0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E));var z=new go.PathFigure(y*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),b.spot1=new go.Spot(y,0),b.spot2=new go.Spot(1-y,1),b}),go.Shape.defineFigureGenerator("Terminator",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E)),b.spot1=new go.Spot(.23,0),b.spot2=new go.Spot(.77,1),b}),go.Shape.defineFigureGenerator("TransmittalTape",function(ie,a,E){var b=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*E).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("AndGate",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(.5+y)*a,0,a,(.5-y)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.5+y)*E,(.5+y)*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.55,1),b}),go.Shape.defineFigureGenerator("Buffer",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Clock",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=.5,z=new go.PathFigure(a,x*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,E,a,(x+y)*E,(x+y)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*E,(x-y)*a,E,0,(x+y)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-y)*E,(x-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*E,(x+y)*a,0,a,(x-y)*E));var te=new go.PathFigure(a,x*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,x*E));var ae=new go.PathFigure(.8*a,.75*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*E)),b}),go.Shape.defineFigureGenerator("Ground",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),b}),go.Shape.defineFigureGenerator("Inverter",function(ie,a,E){var b=new go.Geometry,y=Ae*.1,x=.1,z=.9,te=.5,ae=new go.PathFigure(.8*a,.5*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E));var ne=new go.PathFigure((z+x)*a,te*E,!0);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te-x)*E,(z+x)*a,(te-y)*E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.4,.75),b}),go.Shape.defineFigureGenerator("NandGate",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=Ae*.4,z=Ae*.1,te=.1,ae=.9,ne=.5,se=new go.PathFigure(.8*a,.5*E,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,.8*a,(.5+x)*E,(.4+y)*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,0,E)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(.4+y)*a,0,.8*a,(.5-x)*E));var de=new go.PathFigure((ae+te)*a,ne*E,!0);return b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne+te)*E,(ae+te)*a,(ne+z)*E,(ae+z)*a,(ne+te)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ne*E,(ae-z)*a,(ne+te)*E,(ae-te)*a,(ne+z)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-te)*E,(ae-te)*a,(ne-z)*E,(ae-z)*a,(ne-te)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ne*E,(ae+z)*a,(ne-te)*E,(ae+te)*a,(ne-z)*E)),b.spot1=new go.Spot(0,.05),b.spot2=new go.Spot(.55,.95),b}),go.Shape.defineFigureGenerator("NorGate",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*y,z=0,te=.5,ae=new go.PathFigure(.8*a,.5*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.7*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(z+x)*a,(te-y)*E,.7*a,(te-x)*E)),y=.1,x=Ae*.1,z=.9,te=.5;var ne=new go.PathFigure((z-y)*a,te*E,!0);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.6,.75),b}),go.Shape.defineFigureGenerator("OrGate",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*y,z=0,te=.5,ae=new go.PathFigure(0,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(z+x+x)*a,(te-y)*E,.8*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.8*a,(te+x)*E,(z+x+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E).close()),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("XnorGate",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*y,z=.2,te=.5,ae=new go.PathFigure(.1*a,0,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var ne=new go.PathFigure(.8*a,.5*E,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.7*a,(te+x)*E,(z+x)*a,(te+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(z+x)*a,(te-y)*E,.7*a,(te-x)*E)),y=.1,x=Ae*.1,z=.9,te=.5;var se=new go.PathFigure((z-y)*a,te*E,!0);return b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.65,.75),b}),go.Shape.defineFigureGenerator("XorGate",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*y,z=.2,te=.5,ae=new go.PathFigure(.1*a,0,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var ne=new go.PathFigure(.2*a,0,!0);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(z+x)*a,(te-y)*E,.9*a,(te-x)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.9*a,(te+x)*E,(z+x)*a,(te+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E).close()),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.8,.75),b}),go.Shape.defineFigureGenerator("Capacitor",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("Resistor",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),b}),go.Shape.defineFigureGenerator("Inductor",function(ie,a,E){var b=new go.Geometry,y=Ae*.1,x=.1,z=.1,te=.5,ae=new go.PathFigure((z-y*.5)*a,E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,E,(z+x)*a,0,(z+y)*a,E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-y)*a,E,(z-x)*a,0)),z=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*a,E,(z+x)*a,0,(z+y)*a,E)),b}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ie,a,E){var b=new go.Geometry,y=Ae*.5,x=.5,z=.5,te=.5,ae=new go.PathFigure((z-x)*a,te*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-x)*E,(z-x)*a,(te-y)*E,(z-y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te-x)*E,(z+x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,te*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,te*E,z*a,(te-x)*E,z*a,(te+x)*E)),b}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("Diode",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Wifi",function(ie,a,E){var b=new go.Geometry,y=a,x=E;a=a*.38,E=E*.6;var z=Ae*.8,te=.8,ae=0,ne=.5,se=(y-a)/2,de=(x-E)/2,Se=new go.PathFigure(ae*a+se,(ne+te)*E+de,!0);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+se,ne*E+de,(ae-z)*a+se,(ne+te)*E+de,(ae-te)*a+se,(ne+z)*E+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne-te)*E+de,(ae-te)*a+se,(ne-z)*E+de,(ae-z)*a+se,(ne-te)*E+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te+z*.5)*a+se,ne*E+de,ae*a+se,(ne-te)*E+de,(ae-te+z*.5)*a+se,(ne-z)*E+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne+te)*E+de,(ae-te+z*.5)*a+se,(ne+z)*E+de,ae*a+se,(ne+te)*E+de).close()),z=Ae*.4,te=.4,ae=.2,ne=.5;var ce=new go.PathFigure(ae*a+se,(ne+te)*E+de,!0);b.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+se,ne*E+de,(ae-z)*a+se,(ne+te)*E+de,(ae-te)*a+se,(ne+z)*E+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne-te)*E+de,(ae-te)*a+se,(ne-z)*E+de,(ae-z)*a+se,(ne-te)*E+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te+z*.5)*a+se,ne*E+de,ae*a+se,(ne-te)*E+de,(ae-te+z*.5)*a+se,(ne-z)*E+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne+te)*E+de,(ae-te+z*.5)*a+se,(ne+z)*E+de,ae*a+se,(ne+te)*E+de).close()),z=Ae*.2,te=.2,ae=.5,ne=.5;var ye=new go.PathFigure((ae-te)*a+se,ne*E+de,!0);b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne-te)*E+de,(ae-te)*a+se,(ne-z)*E+de,(ae-z)*a+se,(ne-te)*E+de)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+se,ne*E+de,(ae+z)*a+se,(ne-te)*E+de,(ae+te)*a+se,(ne-z)*E+de)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne+te)*E+de,(ae+te)*a+se,(ne+z)*E+de,(ae+z)*a+se,(ne+te)*E+de)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a+se,ne*E+de,(ae-z)*a+se,(ne+te)*E+de,(ae-te)*a+se,(ne+z)*E+de)),z=Ae*.4,te=.4,ae=.8,ne=.5;var Ie=new go.PathFigure(ae*a+se,(ne-te)*E+de,!0);b.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+se,ne*E+de,(ae+z)*a+se,(ne-te)*E+de,(ae+te)*a+se,(ne-z)*E+de)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne+te)*E+de,(ae+te)*a+se,(ne+z)*E+de,(ae+z)*a+se,(ne+te)*E+de)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te-z*.5)*a+se,ne*E+de,ae*a+se,(ne+te)*E+de,(ae+te-z*.5)*a+se,(ne+z)*E+de)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne-te)*E+de,(ae+te-z*.5)*a+se,(ne-z)*E+de,ae*a+se,(ne-te)*E+de).close()),z=Ae*.8,te=.8,ae=1,ne=.5;var et=new go.PathFigure(ae*a+se,(ne-te)*E+de,!0);return b.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a+se,ne*E+de,(ae+z)*a+se,(ne-te)*E+de,(ae+te)*a+se,(ne-z)*E+de)),et.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne+te)*E+de,(ae+te)*a+se,(ne+z)*E+de,(ae+z)*a+se,(ne+te)*E+de)),et.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te-z*.5)*a+se,ne*E+de,ae*a+se,(ne+te)*E+de,(ae+te-z*.5)*a+se,(ne+z)*E+de)),et.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(ne-te)*E+de,(ae+te-z*.5)*a+se,(ne-z)*E+de,ae*a+se,(ne-te)*E+de).close()),b}),go.Shape.defineFigureGenerator("Email",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Move,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*E)),b}),go.Shape.defineFigureGenerator("Ethernet",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,E,!0,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var z=new go.PathFigure(.6*a,E,!0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,E).close());var te=new go.PathFigure(0,.5*E,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),te.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*E)),te.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)),te.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*E)),b}),go.Shape.defineFigureGenerator("Power",function(ie,a,E){var b=new go.Geometry,y=Ae*.4,x=.4,z=.5,te=.5,ae=ee(),ne=ee(),se=ee(),de=ee();st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.5,ae,ae,ne,se,de);var Se=le(ne.x,ne.y),ce=new go.PathFigure(ne.x*a,ne.y*E,!0);b.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,se.x*a,se.y*E,de.x*a,de.y*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z+x)*a,(te+y)*E,(z+y)*a,(te+x)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,(z-y)*a,(te+x)*E,(z-x)*a,(te+y)*E)),st(z-x,te,z-x,te-y,z-y,te-x,z,te-x,.5,se,de,ne,ae,ae),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne.x*a,ne.y*E,se.x*a,se.y*E,de.x*a,de.y*E)),y=Ae*.3,x=.3,st(z-x,te,z-x,te-y,z-y,te-x,z,te-x,.5,se,de,ne,ae,ae),ce.add(new go.PathSegment(go.PathSegment.Line,ne.x*a,ne.y*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,te*E,de.x*a,de.y*E,se.x*a,se.y*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+x)*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,te*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),st(z,te-x,z+y,te-x,z+x,te-y,z+x,te,.5,ae,ae,ne,se,de),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne.x*a,ne.y*E,de.x*a,de.y*E,se.x*a,se.y*E).close());var ce=new go.PathFigure(.45*a,0,!0);return b.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*E)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ue(ae),ue(ne),ue(se),ue(de),ue(Se),b.spot1=new go.Spot(.25,.45),b.spot2=new go.Spot(.75,.8),b}),go.Shape.defineFigureGenerator("Fallout",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E/2,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,E/2,a/2,E/2));function x(z,te,ae){z.add(new go.PathSegment(go.PathSegment.Move,(.3+te)*a,(.8+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+te)*a,(.5+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+te)*a,(.5+ae)*E)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+te)*a,(.8+ae)*E).close())}return x(y,0,0),x(y,.4,0),x(y,.2,-.3),b}),go.Shape.defineFigureGenerator("IrritationHazard",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close()),b.spot1=new go.Spot(.3,.3),b.spot2=new go.Spot(.7,.7),b}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*E)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*E)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*E).close()),b}),go.Shape.defineFigureGenerator("FireHazard",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*E,.45*a,.44*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*E,.48*a,.17*E,.54*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*E,.59*a,.29*E,.58*a,.28*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*E,.8*a,.34*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*E,.87*a,.48*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,1.17*a,.76*E,.82*a,.8*E).close()),b.spot1=new go.Spot(.07,.445),b.spot2=new go.Spot(.884,.958),b}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ie,a,E){var b=new go.Geometry,y=.5,x=0,z=0,te=y*Ae,ae=.4*Math.SQRT2/2+.5,ne=.5-.5*Math.SQRT2/2,se=1,de=.5,Se=.5,ce=0,ye=new go.PathFigure(ae*a,(1-ne)*E,!1);return b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,de*E,se*a,.7*E,se*a,de*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*a,(ce+x)*E,(.5+y+x)*a,(.5-te+x)*E,(.5+te+x)*a,(.5-y+x)*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+x)*a,(.5+z)*E,(.5-te+x)*a,(.5-y+z)*E,(.5-y+x)*a,(.5-te+z)*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*E,(.5-y+x)*a,(.5+te+z)*E,(.5-te+x)*a,.9*E)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*E)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*E)),ye.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*E)),b}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),b}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(a,E,!1);b.add(x);var z=new go.PathFigure(0,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.2*a,.35*E,.3*a,.35*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.7*a,.65*E,.8*a,.65*E)),b}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close()),b}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E).close());var y=new go.PathFigure(0,.2*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),b}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.7*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,E,.4*a,.5*E,a,.5*E).close());var x=new go.PathFigure(.45*a,.73*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*E)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*E)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*E)),b}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(.335*a,(1-.555)*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*E,(1-.12)*a,.46*E,(1-.02)*a,.54*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*E,.02*a,.54*E,.12*a,.46*E)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*E));var z=.5-.285,te=.5,ae=z,ne=Math.PI/4,se=4*(1-Math.cos(ne))/(3*Math.sin(ne)),de=se*.5,Se=z,ce=z,ye=se*Se,Ie=se*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(te-Se)*a,ae*E,(te-(ye+Se)/2)*a,(ae+(ce+Ie)/2)*E,(te-Se)*a,(ae+Ie)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ce)*E,(te-Se)*a,(ae-Ie)*E,(te-ye)*a,(ae-ce)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,(te+Se)*a,ae*E,(te+ye)*a,(ae-ce)*E,(te+Se)*a,(ae-Ie)*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*E,(te+Se)*a,(ae+Ie)*E,(te+(ye+Se)/2)*a,(ae+(ce+Ie)/2)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E));var et=new go.PathFigure(.2*a,E,!1);b.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*E));var Et=new go.PathFigure(.8*a,E,!1);return b.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),b}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var x=new go.PathFigure(.2*a,.2*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),b}),go.Shape.defineFigureGenerator("BpmnEventError",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y);var x=new go.PathFigure(a,E,!1);b.add(x);var z=new go.PathFigure(.1*a,E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),b}),go.Shape.defineFigureGenerator("Caution",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.05*a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*E,0,E,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*E,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,a,E,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,E));var x=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*E)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*E,x*a,x*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*E,.575*a,.725*E,.625*a,.375*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*E,.375*a,.375*E,.425*a,.725*E)),b}),go.Shape.defineFigureGenerator("Recycle",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.45*a,.95*E,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*E,.17*a,.95*E,.15*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*E,0,.675*E,0,.7*E)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*E)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*E));var x=new go.PathFigure(.475*a,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*E)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*E,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*E)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*E)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*E)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*E,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*E));var z=new go.PathFigure(.675*a,.575*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*E,a,.8*E,a,.85*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*E)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*E)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*E)),b}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*.5,z=new go.PathFigure(a,y*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,E,a,(y+x)*E,(y+x)*a,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*E,(y-x)*a,E,0,(y+x)*E)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-x)*E,(y-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y*E,(y+x)*a,0,a,(y-x)*E));var te=new go.PathFigure(y*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,E)),te.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*E)),te.add(new go.PathSegment(go.PathSegment.Move,0,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*E)),te.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),te.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*E)),b}),go.Shape.defineFigureGenerator("Package",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.15*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var x=new go.PathFigure(0,.15*E,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*E).close()),b.spot1=new go.Spot(0,.1),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Class",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var z=new go.PathFigure(0,.5*E,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close()),b}),go.Shape.defineFigureGenerator("Component",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close());var x=new go.PathFigure(0,.2*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*E)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close());var z=new go.PathFigure(0,.6*E,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*E)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*E).close()),b}),go.Shape.defineFigureGenerator("Boat Shipment",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.15*a,.6*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E));var x=new go.PathFigure(.15*a,.6*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),b}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b}),go.Shape.defineFigureGenerator("Workcell",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),b}),go.Shape.defineFigureGenerator("Supermarket",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),b}),go.Shape.defineFigureGenerator("TruckShipment",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*E).close());var z=.1,te=Ae*.1,ae=.2,ne=.9,se=new go.PathFigure((ae-z)*a,ne*E,!0);b.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-z)*E,(ae-z)*a,(ne-te)*E,(ae-te)*a,(ne-z)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,ne*E,(ae+te)*a,(ne-z)*E,(ae+z)*a,(ne-te)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne+z)*E,(ae+z)*a,(ne+te)*E,(ae+te)*a,(ne+z)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,ne*E,(ae-te)*a,(ne+z)*E,(ae-z)*a,(ne+te)*E).close()),z=.1,te=Ae*.1,ae=.8,ne=.9;var de=new go.PathFigure((ae-z)*a,ne*E,!0);return b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne-z)*E,(ae-z)*a,(ne-te)*E,(ae-te)*a,(ne-z)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,ne*E,(ae+te)*a,(ne-z)*E,(ae+z)*a,(ne-te)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ne+z)*E,(ae+z)*a,(ne+te)*E,(ae+te)*a,(ne+z)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,ne*E,(ae-te)*a,(ne+z)*E,(ae-z)*a,(ne+te)*E).close()),b}),go.Shape.defineFigureGenerator("KanbanPost",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),b}),go.Shape.defineFigureGenerator("Forklift",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var z=new go.PathFigure(.5*a,.8*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*E)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E));var te=new go.PathFigure(.5*a,.7*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.7*E));var ae=.1,ne=Ae*.1,se=.1,de=.9,Se=new go.PathFigure((se-ae)*a,de*E,!0);b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de-ae)*E,(se-ae)*a,(de-ne)*E,(se-ne)*a,(de-ae)*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+ae)*a,de*E,(se+ne)*a,(de-ae)*E,(se+ae)*a,(de-ne)*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de+ae)*E,(se+ae)*a,(de+ne)*E,(se+ne)*a,(de+ae)*E)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-ae)*a,de*E,(se-ne)*a,(de+ae)*E,(se-ae)*a,(de+ne)*E)),ae=.1,ne=Ae*.1,se=.4,de=.9;var ce=new go.PathFigure((se-ae)*a,de*E,!0);return b.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de-ae)*E,(se-ae)*a,(de-ne)*E,(se-ne)*a,(de-ae)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(se+ae)*a,de*E,(se+ne)*a,(de-ae)*E,(se+ae)*a,(de-ne)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de+ae)*E,(se+ae)*a,(de+ne)*E,(se+ne)*a,(de+ae)*E)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(se-ae)*a,de*E,(se-ne)*a,(de+ae)*E,(se-ae)*a,(de+ne)*E)),b}),go.Shape.defineFigureGenerator("RailShipment",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.1*a,.4*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*E).close());var x=new go.PathFigure(.45*a,.7*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E));var z=new go.PathFigure(.55*a,.4*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*E).close());var se=.05,de=Ae*.05,Se=.175,ce=.95,te=new go.PathFigure((Se-se)*a,ce*E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-se)*E,(Se-se)*a,(ce-de)*E,(Se-de)*a,(ce-se)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,ce*E,(Se+de)*a,(ce-se)*E,(Se+se)*a,(ce-de)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+se)*E,(Se+se)*a,(ce+de)*E,(Se+de)*a,(ce+se)*E)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,ce*E,(Se-de)*a,(ce+se)*E,(Se-se)*a,(ce+de)*E));var se=.05,de=Ae*.05,Se=.375,ce=.95,ae=new go.PathFigure((Se-se)*a,ce*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-se)*E,(Se-se)*a,(ce-de)*E,(Se-de)*a,(ce-se)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,ce*E,(Se+de)*a,(ce-se)*E,(Se+se)*a,(ce-de)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+se)*E,(Se+se)*a,(ce+de)*E,(Se+de)*a,(ce+se)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,ce*E,(Se-de)*a,(ce+se)*E,(Se-se)*a,(ce+de)*E));var se=.05,de=Ae*.05,Se=.625,ce=.95,ne=new go.PathFigure((Se-se)*a,ce*E,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-se)*E,(Se-se)*a,(ce-de)*E,(Se-de)*a,(ce-se)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,ce*E,(Se+de)*a,(ce-se)*E,(Se+se)*a,(ce-de)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+se)*E,(Se+se)*a,(ce+de)*E,(Se+de)*a,(ce+se)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,ce*E,(Se-de)*a,(ce+se)*E,(Se-se)*a,(ce+de)*E));var se=.05,de=Ae*.05,Se=.825,ce=.95,ye=new go.PathFigure((Se-se)*a,ce*E,!0);b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce-se)*E,(Se-se)*a,(ce-de)*E,(Se-de)*a,(ce-se)*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,ce*E,(Se+de)*a,(ce-se)*E,(Se+se)*a,(ce-de)*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ce+se)*E,(Se+se)*a,(ce+de)*E,(Se+de)*a,(ce+se)*E)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,ce*E,(Se-de)*a,(ce+se)*E,(Se-se)*a,(ce+de)*E).close());var Ie=new go.PathFigure(0,E,!1);return b.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),b}),go.Shape.defineFigureGenerator("Warehouse",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var z=new go.PathFigure(.15*a,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,E).close());var te=.05,ae=Ae*.05,ne=.35,se=.775,de=new go.PathFigure((ne-te)*a,se*E,!0);return b.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(se-te)*E,(ne-te)*a,(se-ae)*E,(ne-ae)*a,(se-te)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+te)*a,se*E,(ne+ae)*a,(se-te)*E,(ne+te)*a,(se-ae)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(se+te)*E,(ne+te)*a,(se+ae)*E,(ne+ae)*a,(se+te)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-te)*a,se*E,(ne-ae)*a,(se+te)*E,(ne-te)*a,(se+ae)*E).close()),b}),go.Shape.defineFigureGenerator("ControlCenter",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E).close()),b}),go.Shape.defineFigureGenerator("Bluetooth",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),b}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),b}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),b}),go.Shape.defineFigureGenerator("Globe",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.75*a,0,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.75*E,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.25*a,E,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*E,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,.15*a,.25*E,.15*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*E,.85*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*E,.35*a,.3*E,.65*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*E,.35*a,.7*E,.65*a,.7*E)),b}),go.Shape.defineFigureGenerator("Wave",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.25*E,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*E,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*E,.425*a,.5*E,.575*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*E,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*E,.1*a,.5*E,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*E,.425*a,E,.575*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*E,.8*a,.5*E,.9*a,.5*E)),b}),go.Shape.defineFigureGenerator("Operator",function(ie,a,E){var b=new go.Geometry,y=.3,x=Ae*.3,z=.5,te=.7,ae=new go.PathFigure((z-y)*a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E));var ne=new go.PathFigure(0,.7*E,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*E,0,0,a,0)),b}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.65*a,.3*E,.65*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*E,.35*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.3*a,.6*E,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.2*a,E,.35*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,E,.7*a,.6*E,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.8*a,E,.65*a,.95*E)),b}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a,0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,0,.075*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,0,E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*E,.8*a,E,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),b}),go.Shape.defineFigureGenerator("Battery",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*E));var x=new go.PathFigure(0,.6*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*E)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),b}),go.Shape.defineFigureGenerator("Delete",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*.5,z=.5,te=.5,ae=new go.PathFigure((z-y)*a,te*E,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E));var ne=new go.PathFigure(.15*a,.5*E,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*E)),b}),go.Shape.defineFigureGenerator("Flag",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.1*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*E,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,.65*a,.2*E,.85*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.85*a,.6*E,.65*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.35*a,.4*E,.15*a,.4*E).close()),b}),go.Shape.defineFigureGenerator("Help",function(ie,a,E){var b=new go.Geometry,y=.5,x=Ae*.5,z=.5,te=.5,ae=new go.PathFigure((z-y)*a,te*E,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E).close()),y=.05,x=Ae*.05,z=.5,te=.8;var ne=new go.PathFigure((z-y)*a,te*E,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te-y)*E,(z-y)*a,(te-x)*E,(z-x)*a,(te-y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,te*E,(z+x)*a,(te-y)*E,(z+y)*a,(te-x)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(te+y)*E,(z+y)*a,(te+x)*E,(z+x)*a,(te+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,te*E,(z-x)*a,(te+y)*E,(z-y)*a,(te+x)*E).close()),ne.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,.75*a,.475*E,.75*a,.225*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*E,.4*a,.2*E,.3*a,.25*E)),b}),go.Shape.defineFigureGenerator("Location",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*E,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*E,.5*a,0,.025*a,.025*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Lock",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var x=new go.PathFigure(.2*a,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*E)),b}),go.Shape.defineFigureGenerator("Unlocked",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var x=new go.PathFigure(.2*a,.5*E,!1);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*E)),b}),go.Shape.defineFigureGenerator("Gear",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*E,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*E,.79840625*a,.39915625*E,.7834375*a,.3635*E)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*E)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*E,.64228125*a,.2188125*E,.603875*a,.2021875*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*E,.39759375*a,.20190625*E,.36053125*a,.2176875*E)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*E)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*E,.21765625*a,.36059375*E,.201875*a,.397625*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*E,.20221875*a,.603875*E,.21884375*a,.64228125*E)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*E,.36353125*a,.78340625*E,.3991875*a,.79840625*E)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*E,.602375*a,.79809375*E,.63946875*a,.78234375*E)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*E,.78234375*a,.63940625*E,.798125*a,.602375*E)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*E)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Hand",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*E,0,.375*E,.05*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*E,.3*a,.225*E,.4*a,.175*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*E,.46*a,.05*E,.525*a,.05*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*E,.525*a,.275*E,.475*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*E,a,.4*E,a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*E,.675*a,.55*E,.675*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*E,.65*a,.7*E,.65*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,E,.61*a,.85*E,.61*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,.435*a,E,0,E).close()),b}),go.Shape.defineFigureGenerator("Map",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),b}),go.Shape.defineFigureGenerator("Eject",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.7).close());var x=new go.PathFigure(0,E*.6,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),b}),go.Shape.defineFigureGenerator("Pencil",function(ie,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close()))}),go.Shape.defineFigureGenerator("Building",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*1,E*1,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.85).close());var x=new go.PathFigure(.126*a,.85*E,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*E)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*E)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*E).close());var z=new go.PathFigure(.402*a,.85*E,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*E)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*E)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*E).close());var te=new go.PathFigure(.678*a,.85*E,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*E)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*E)),te.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*E).close());var ae=new go.PathFigure(.5*a,.1*E,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*E)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*E).close()),b}),go.Shape.defineFigureGenerator("Staircase",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E*1,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.95).close()),b}),go.Shape.defineFigureGenerator("5Bars",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,E*1,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*(1-.184)).close());var x=new go.PathFigure(a*.204,E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,E*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*1).close());var z=new go.PathFigure(a*.408,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,E*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*1).close());var te=new go.PathFigure(a*.612,E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.612,E*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*1).close());var ae=new go.PathFigure(a*.816,E,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,E*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-.184*5))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1).close()),b}),go.Shape.defineFigureGenerator("PC",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*E,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.1).close());var z=new go.PathFigure(a*.055,.13*E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.16).close());var te=new go.PathFigure(a*.055,.18*E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.18)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.21)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.21).close());var ae=new go.PathFigure(a*1,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.65).close()),b}),go.Shape.defineFigureGenerator("Plane",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(.55*a,E,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*E,0,.4*E,.225*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*E,.975*a,0,a,.08*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,E).close()),b}),go.Shape.defineFigureGenerator("Key",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*1,E*.5,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*E)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*E,.075*a,.075*E).close()),b}),go.Shape.defineFigureGenerator("FilmTape",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(0,0,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1));var x=new go.PathFigure(0,0,!1);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,E*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1));var z=new go.PathFigure(a*.11,E*.1,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,E*.8).close());var te=new go.PathFigure(a*(.11+.24133333*1+.028*1),E*.1,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),E*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),E*.1,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),E*.8).close()),b}),go.Shape.defineFigureGenerator("FloppyDisk",function(ie,a,E){var b=new go.Geometry,y=8,x=y*Ae,z=new go.PathFigure(y,0,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-x,a-x,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,x,E,0,E-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,x,x,0).close());var te=new go.PathFigure(a*.83,0,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.3)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*0).close());var ae=new go.PathFigure(a*.83,E*1,!1);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*1).close());var ne=new go.PathFigure(a*.78,E*.05,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.05)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.78,E*.25).close()),b}),go.Shape.defineFigureGenerator("SpeechBubble",function(ie,a,E){var b=ie?ie.parameter1:NaN;(isNaN(b)||b<0)&&(b=15),b=Math.min(b,a/3),b=Math.min(b,E/3);var y=b*Ae,x=E*.8,z=new go.Geometry,te=new go.PathFigure(b,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-y,0,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,a,x-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,x,a,x-y,a-y,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),te.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),te.add(new go.PathSegment(go.PathSegment.Line,b,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x-b,y,x,0,x-y)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,y,y,0).close()),y>1?(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,.8,-y,-y)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*.45,!0);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.45).close());var x=new go.PathFigure(a*1,E*.55,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.55).close()),b}),go.Shape.defineFigureGenerator("Windows",function(ie,a,E){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,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*E).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*.1,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.9).close());var x=new go.PathFigure(a*.1,E*.2,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,E*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.25).close());var z=new go.PathFigure(a*.28,E*.37,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,E*.41).close()),b}),go.Shape.defineFigureGenerator("Beaker",function(ie,a,E){var b=new go.Geometry,y=15,x=y*Ae,z=new go.PathFigure(a*.62,E*.475,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-x,a-x,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,x,E,0,E-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,E*.03).close()),x>1?(b.spot1=new go.Spot(0,0,x,x),b.spot2=new go.Spot(1,1,-x,-x)):(b.spot1=go.Spot.TopLeft,b.spot2=go.Spot.BottomRight),b}),go.Shape.defineFigureGenerator("Download",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close());var z=new go.PathFigure(a*.4,E*0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*0).close()),b}),go.Shape.defineFigureGenerator("Bin",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close()),b}),go.Shape.defineFigureGenerator("Upload",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);b.add(y);var x=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-x))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-x)).close());var z=new go.PathFigure(a*.5,E*0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,E*.25).close()),b}),go.Shape.defineFigureGenerator("EmptyDrink",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close()),b}),go.Shape.defineFigureGenerator("Drink",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close());var x=new go.PathFigure(a*.235,E*.28,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,E*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,E*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,E*.97).close()),b}),go.Shape.defineFigureGenerator("4Arrows",function(ie,a,E){var b=new go.Geometry,y=new go.PathFigure(a*.5,E*0,!0);return b.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.25).close()),b}),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 ke={},Mt="5.0",le={},ee=null,ue=!1,Ge=!1,st=null,Ce=!1,Ve=null,Ae=null,Ke=0;Ke4?parseFloat(Pe):5};ke.setHTML5Codebase=function(Pe,He){Ae=Pe,Ze(Pe,He)},ke.setJavaCodebase=ke.setJavaCodebaseVersion=ke.isCompiledInstalled=ke.setPreCompiledScriptPath=ke.setPreCompiledResourcePath=function(){},ke.setHTML5CodebaseVersion=function(Pe,He){var rt=parseFloat(Pe);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Ve=Pe,Kt(Pe,He)},ke.getHTML5CodebaseVersion=function(){return ie},ke.getParameters=function(){return le},ke.setFontsCSSURL=function(Pe){z=Pe},ke.setGiacJSURL=function(Pe){},ke.setJNLPFile=function(Pe){Te=Pe},ke.setJNLPBaseDir=function(Pe){},ke.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var He="auto",rt=le.id,It,At=!1,on=0;on=5)return!0;var Pe=ke.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},ke.startAnimation=function(){var Pe=ke.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},ke.stopAnimation=function(){var Pe=ke.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},ke.getAppletObject=function(){var Pe=le.id!==void 0?le.id:"ggbApplet";return window[Pe]},ke.resize=function(){};var ye=function(Pe,He,rt){var It=document.createElement("param");It.setAttribute("name",He),It.setAttribute("value",rt),Pe.appendChild(It)},Ie=function(Pe){return Pe&&Pe!=="false"},et=function(Pe,He,rt){ae(ie)<=4.2&&(rt=!0);var It=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ie||ggbHTML5LoadedCodebaseIsWebSimple&&!E)&&(It=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var At=document.createElement("div");At.classList.add("appletParameters","notranslate");var on=He.width,pe=He.height;if(He.disableAutoScale=He.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():He.disableAutoScale,He.width!==void 0)if(ae(ie)<=4.4)Ie(He.showToolBar)&&(He.height-=7),Ie(He.showAlgebraInput)&&(He.height-=37),He.width<605&&Ie(He.showToolBar)&&(He.width=605,on=605);else{var mt=100;(Ie(He.showToolBar)||Ie(He.showMenuBar))&&(He.hasOwnProperty("customToolBar")&&(He.customToolbar=He.customToolBar),mt=Ie(He.showMenuBar)?245:155),on=5?(He.appletOnLoad=function(je){var it=Pe.querySelector(".ggb_preview");it&&it.parentNode.removeChild(it),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(rn),window.GGBT_wsf_view&&$(window).trigger("resize"),jt(je)},Qn||rn.appendChild(ma)):At.appendChild(ma),rn.appendChild(At),Qn||Pe.appendChild(rn),setTimeout(function(){ke.resize()},1)}else{var We=document.createElement("div");We.className="applet_scaler",We.style.position="relative",We.style.display="block",We.appendChild(At),Pe.appendChild(We),He.appletOnLoad=function(je){ke.resize(),jt(je)}}function _e(je,it){it&&typeof it.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(je,it.appletOnLoad):renderGGBElement(je),kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",it)}function xt(je,it){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:je,params:it}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qt){_e(Qt.article,Qt.params)}),html5AppletsToProcess=null)},ae(ie)<5&&(je.className+=" geogebraweb")):_e(je,it)}if(It){scriptLoadStarted=!0;for(var ze=0;ze0?(ht.remove(),rn.attr("id","fullscreencontent").show(),jQuery(jt).append(rn),window.dispatchEvent(new Event("resize"))):et(ht,He,!1),window.GGBT_wsf_view.launchFullScreen(jt)}else Je=It,et(Pe,He,!1);if(!window.GGBT_wsf_view)for(pe=0;pePe/4*3&&(ht=Pe/4*3),jt=ht/5.8,mt.setAttribute("src",y),mt.setAttribute("width",ht),mt.setAttribute("height",jt);var rn=(Pe-ht)/2,Qn=(He-jt)/2;mt.style.left=rn+"px",mt.style.top=Qn+"px",At.appendChild(mt)}}return At.appendChild(pe),At},ot=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},Ht=["web","webSimple","web3d","tablet","tablet3d","phone"],Kt=function(Pe,He){if(ie=Pe,He){Ze(ie,!0);return}var rt=!ue;if(rt){var It=ae(ie);!isNaN(It)&&It<4.4&&(rt=!1)}var At,on;window.location.protocol.substr(0,4)==="http"?At=window.location.protocol:At="http:";var pe=ie.indexOf("//");pe>0?on=ie:pe===0?on=At+ie:on="https://www.geogebra.org/apps/5.2.814.0/";for(var mt in Ht)if(ie.slice(Ht[mt].length*-1)===Ht[mt]||ie.slice((Ht[mt].length+1)*-1)===Ht[mt]+"/"){Ze(on,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Ie(le.showToolBar)&&!Ie(le.showMenuBar)&&!Ie(le.showAlgebraInput)&&!Ie(le.enableRightClick)&&(!le.appName||le.appName=="classic")?on+="webSimple/":on+="web3d/",Ze(on,!1)},Ze=function(Pe,He){if(Pe.requirejs){bt=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),bt=Pe,He===null&&(He=Pe.indexOf("http")===-1),Re=He,a="web.nocache.js",E=!1;var rt=bt.split("/");rt.length>1&&(!He&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",E=!0):Ht.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=Pe.split("/"),ie=rt[rt.length-3],ie.substr(0,4)==="test"?ie=ie.substr(4,1)+"."+ie.substr(5,1):(ie.substr(0,3)==="war"||ie.substr(0,4)==="beta")&&(ie="5.0");var It=parseFloat(ie);It!==NaN&&It<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+It+" is deprecated. Using version latest instead."),Kt("5.0",He))},kt=function(Pe,He){window.console&&window.console.log&&(!He||typeof He.showLogging=="undefined"||He.showLogging&&He.showLogging!=="false")&&console.log(Pe)};le.material_id!==void 0?de(Tt):Tt();function Tt(){var Pe=Mt;Ve!==null?Pe=Ve:parseFloat(Pe)<5&&(Pe="5.0"),Kt(Pe,!1),Ae!==null&&Ze(Ae,Re),Ce=!0}return ke},GGBAppletUtils=function(){"use strict";function ke(){return window.GGBT_wsf_edit!==void 0}function Mt(Ce,Ve){Ve!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+Ve+","+Ve+")",Ce.style.webkitTransform="scale("+Ve+","+Ve+")",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 le(Ce,Ve,Ae,Ke,Ne,Te){var bt=null;if(Te!=null&&Te!="")for(var Re=Ce.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Te+" ")>-1){bt=Re;break}else Re=Re.parentNode;var Je=0,ie=0,a=0,E=0,b=0,y=0,x=0;if(bt)Je=bt.offsetWidth,ie=Math.max(Ke?bt.offsetWidth:0,bt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Je=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Je):(Je=window.innerWidth,ie=window.innerHeight,a=window.innerWidth),Ce){var z=Ce.getBoundingClientRect();z.left>0&&z.left<=Je&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(b=Je-z.width-z.left,y=a<=480?10:30):(y=z.left,b=a<=480?10:30),E=y+b)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var te=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(E=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(E=0,x=40)}}return Ce&&((Ae===void 0||!Ae)&&Ve>0&&Ve+E1&&(Te=!0)),Ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))Ne=ee(Ce,Ve,Te,Ae,Ce.scaleContainerClass);else return Ke;return Te&&(!Ce.hasOwnProperty("scale")||Ke===1)?Ne:Math.min(Ke,Ne)}function Ge(Ce){var Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=Ce.getBoundingClientRect(),Ne=(Ve-Ke.width)/2,Te=(Ae-Ke.height)/2;Te<0&&(Te=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?Ce.style.left="40px":Ce.style.left=Ne+"px",Ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?Ce.style.top="40px":Ce.style.top=Te+"px",Ce.style.left=Ne+"px")}function st(Ce,Ve){var Ae=Ce.querySelector(".appletParameters");if(Ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!==Ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Ae.parentElement&&/fullscreen/.test(Ae.parentElement.className))return;var Ke=ue(Ve,Ce);ke()&&Ae.setAttribute("data-param-scale",Ke);for(var Ne=null,Te=0;Te=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(ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ke){var Mt=c[ke];return Mt==null?null:Mt},r=d,webModule.__errFn=e}function B(){function ke(Ce){var Ve=Ce.lastIndexOf(rb);Ve==-1&&(Ve=Ce.length);var Ae=Ce.indexOf(sb);Ae==-1&&(Ae=Ce.length);var Ke=Ce.lastIndexOf(tb,Math.min(Ae,Ve));return Ke>=O?Ce.substring(O,Ke+P):W}function Mt(Ce){if(!Ce.match(/^\w+:\/\//)){var Ve=o.createElement(ub);Ve.src=Ce+vb,Ce=ke(Ve.src)}return Ce}function le(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function ee(){for(var Ce=o.getElementsByTagName(_),Ve=O;VeO?Ce[Ce.length-P].href:W}function Ge(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var st=le();return st==W&&(st=ee()),st==W&&(st=ue()),st==W&&Ge()&&(st=ke(o.location.href)),st=Mt(st),st}function C(ke){return ke.match(/^\//)||ke.match(/^[a-zA-Z]+:\/\//)?ke:webModule.__moduleBase+ke}function D(){var ke=[],Mt=O,le=[],ee=[];function ue(Ce){var Ve=ee[Ce](),Ae=le[Ce];if(Ve in Ae)return Ve;var Ke=[];for(var Ne in Ae)Ke[Ae[Ne]]=Ne;throw r&&r(Ce,Ke,Ve),null}if(__gwt_isKnownPropertyValue=function(Ce,Ve){return Ve in le[Ce]},webModule.__getPropMap=function(){var Ce={};for(var Ve in le)le.hasOwnProperty(Ve)&&(Ce[Ve]=ue(Ve));return Ce},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ge;try{Ge=Cb;var st=Ge.indexOf(Db);st!=-1&&(Mt=parseInt(Ge.substring(st+P),$),Ge=Ge.substring(O,st))}catch(Ce){}return webModule.__softPermutationId=Mt,C(Ge+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(ke,Mt,le){"use strict";le.d(Mt,{Ax:function(){return st},Ds:function(){return Ce},KI:function(){return Ae},SI:function(){return Ge},f1:function(){return ue}});var ee=le(3294);function ue(Ke){let Ne=!0;if(Ke.length>0){for(let Te=0;TeNe in Ke?Ge(Ke,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ke[Ne]=Te,Ce=(Ke,Ne,Te)=>st(Ke,typeof Ne!="symbol"?Ne+"":Ne,Te),Ve=(Ke,Ne,Te)=>new Promise((bt,Re)=>{var Je=E=>{try{a(Te.next(E))}catch(b){Re(b)}},ie=E=>{try{a(Te.throw(E))}catch(b){Re(b)}},a=E=>E.done?bt(E.value):Promise.resolve(E.value).then(Je,ie);a((Te=Te.apply(Ke,Ne)).next())});class Ae extends ee.EventEmitter{constructor(Ne,Te){super(),Ce(this,"url"),Ce(this,"body"),Ce(this,"fullContent",""),Ce(this,"controller",null),this.url=Ne,this.body=Te}startStream(){return Ve(this,null,function*(){this.controller=new AbortController;const{signal:Ne}=this.controller;try{const Te=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ne});if(!Te.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Te.status}`);const bt=Te.headers.get("content-type");if(!bt)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(bt.includes("application/json")){const ie=yield Te.json();this.emit("error",ie);return}if(!bt.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Re=Te.body.getReader(),Je=new TextDecoder("utf-8");for(;;){const{done:ie,value:a}=yield Re.read();if(ie)break;const b=Je.decode(a,{stream:!0}).split(` `);for(const y of b)if(y.startsWith("data:")){const x=y.slice(5).trim();if(x==="[DONE]")break;try{const z=JSON.parse(x);z.data&&this.handleData(z.data)}catch(z){console.error("\u89E3\u6790 JSON \u5931\u8D25:",z)}}}this.emit("done",this.fullContent)}catch(Te){Te.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Te.message)}})}handleData(Ne){Ne.content&&(this.fullContent+=Ne.content,this.emit("data",{chunk:Ne,full:this.fullContent}))}cancelRequest(){var Ne;(Ne=this.controller)==null||Ne.abort()}}Mt.Z=Ae},43276:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return ae}});var ee=le(59301),ue=le(72719),Ge=le(77596),st=le(93772),Ce=le(14179),Ve=le(56102),Ae={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm"},Ke=le(8591),Ne=le(11611),Te=le(35328),bt=le(30084),Re=le(10787),Je=le(50304),ie=Object.defineProperty,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(ne,se,de)=>se in ne?ie(ne,se,{enumerable:!0,configurable:!0,writable:!0,value:de}):ne[se]=de,x=(ne,se)=>{for(var de in se||(se={}))E.call(se,de)&&y(ne,de,se[de]);if(a)for(var de of a(se))b.call(se,de)&&y(ne,de,se[de]);return ne},z=(ne,se)=>{var de={};for(var Se in ne)E.call(ne,Se)&&se.indexOf(Se)<0&&(de[Se]=ne[Se]);if(ne!=null&&a)for(var Se of a(ne))se.indexOf(Se)<0&&b.call(ne,Se)&&(de[Se]=ne[Se]);return de},ae=({onFinish:ne,value:se,streamingStatus:de,cancelIndex:Se,loadImage:ce})=>{const[ye,Ie]=(0,ee.useState)(""),[et,Et]=(0,ee.useState)(0),[wt,Ft]=(0,ee.useState)(!1),Nt=Ht=>Ht.replace(/\\\(([\s\S]*?)\\\)/g,"$$$$$1$$$$").replace(/\\\[([\s\S]*?)\\\]/g,"$$$$$1$$$$").replace(/`(\$\$.*?\$\$)`/g,"$$$$$1$$$$").replace(/______/g,"`______`"),_t=()=>{Ft(!0),ne==null||ne()};return(0,ee.useEffect)(()=>{const Ht=ce?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A ${se}`:se,Kt=Nt(Ht);if(!wt)if(ce||!de||Se>0){Ie(Kt),Et(Kt.length),(!de||Se>0)&&!ce&&_t();return}else if(et{Ie(Kt.slice(0,et+2)),Et(Tt=>Tt+2)},Ze>10?Math.max(500/(Ze/2),20):50);return()=>clearInterval(kt)}else de||_t()},[se,de,Se,ce,et]),(0,ee.useMemo)(()=>ee.createElement("section",{className:`${Ae.answer} fadeIn animated`},ee.createElement(ue.UG,{remarkPlugins:[bt.Z,Re.Z],rehypePlugins:[Te.Z,st.Z],components:{code(Ht){var Kt=Ht,{node:Ze,inline:kt,className:Tt,children:Pe}=Kt,He=z(Kt,["node","inline","className","children"]);const rt=/language-(\w+)/.exec(Tt||""),It=String(Pe).trim();return kt||!rt?ee.createElement("code",x({className:Tt},He),Pe):ee.createElement("code",{className:Ae.codeCopy,"data-text":`\`\`\`${rt?rt[1]:""} ${Pe} \`\`\``},ee.createElement(Ve.CopyToClipboard,{text:It,onCopy:()=>Ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ee.createElement("button",null,"\u590D\u5236")),ee.createElement(Ge.Z,x({style:Ce.Z,language:rt[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},He),It))},img({node:Ht}){var Kt;const Ze=(Kt=Ht.properties)==null?void 0:Kt.src;return ee.createElement(Ne.Z,{src:Ze,width:320,"data-text":Ze,onLoad:()=>ce&&setTimeout(()=>_t(),500)})},span(Ht){var Kt=Ht,{node:Ze,className:kt,children:Tt}=Kt,Pe=z(Kt,["node","className","children"]);if(kt!=null&&kt.includes("katex")){const He=Ze.children.map(rt=>rt.value||"").join("");return ee.createElement("span",x({className:kt,"data-text":`$$ ${He||""} $$`},Pe),Tt)}return ee.createElement("span",x({className:kt},Pe),Tt)}}},wt?ye:`${ye}__`)),[ye])}},19909:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Jt}});var ee=le(59301),ue=le(8591),Ge=le(54580),st=le(43418),Ce=le(6848),Ve=le(92832),Ae=le(3113),Ke=le(71418),Ne=le(64165),Te=le(14478),bt=le(43428),Re=le(38854),Je=le(92310),ie=le.n(Je),a=le(43276),E={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},b=le(59301),y=(sn,Gt,Wt)=>new Promise((Nn,Dn)=>{var kn=hn=>{try{Kn(Wt.next(hn))}catch(Wn){Dn(Wn)}},Cn=hn=>{try{Kn(Wt.throw(hn))}catch(Wn){Dn(Wn)}},Kn=hn=>hn.done?Nn(hn.value):Promise.resolve(hn.value).then(kn,Cn);Kn((Wt=Wt.apply(sn,Gt)).next())}),z=({value:sn="",streamingStatus:Gt,onFinish:Wt,cancelIndex:Nn,time:Dn,loading:kn,loadAll:Cn})=>{const[Kn,hn]=(0,ee.useState)(""),[Wn,eo]=(0,ee.useState)(!0),ya=(0,ee.useRef)(sn),fa=(0,ee.useRef)(Gt),ha=(0,ee.useRef)(0),Da=(0,ee.useRef)(null),[Oa,Ma]=(0,ee.useState)(!1),ua=70;(0,ee.useEffect)(()=>{fa.current=Gt},[Gt]),(0,ee.useEffect)(()=>{ya.current=sn},[sn]),(0,ee.useEffect)(()=>{if(!Gt){hn(ya.current);return}return Ma(!0),Da.current=setInterval(Pn,ua),()=>{clearInterval(Da.current)}},[]),(0,ee.useEffect)(()=>{Oa&&(hn(ya.current),clearInterval(Da.current),Ma(!1),Wt())},[Nn]);const Pn=()=>y(void 0,null,function*(){const bn=ya.current[ha.current];bn!==void 0?(hn(ho=>ho+bn),ha.current++,clearInterval(Da.current),Da.current=setInterval(Pn,280/(ya.current.length-ha.current))):fa.current===!1&&(hn(ya.current),clearInterval(Da.current),Ma(!1),Wt())});return b.createElement("div",{className:`${E.reasoning} fadeIn animated`},b.createElement("div",{className:E.btn,onClick:()=>eo(!Wn)},b.createElement("i",{className:"iconfont icon-shendusikao"}),Dn?b.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",Dn," \u79D2\uFF09"):b.createElement("span",null,"\u601D\u8003\u4E2D..."),Wn?b.createElement("b",{className:"iconfont icon-shouqi6"}):b.createElement("b",{className:"iconfont icon-zhankai6"})),kn&&b.createElement(Ke.Z,{spinning:!0,className:"mt20"}),Wn&&!kn&&b.createElement("div",{className:E.content},Kn,Oa?b.createElement("span",{className:"aiBlink"},"__"):""))},te={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},ae=le(81327),ne=Object.defineProperty,se=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,ce=(sn,Gt,Wt)=>Gt in sn?ne(sn,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):sn[Gt]=Wt,ye=(sn,Gt)=>{for(var Wt in Gt||(Gt={}))de.call(Gt,Wt)&&ce(sn,Wt,Gt[Wt]);if(se)for(var Wt of se(Gt))Se.call(Gt,Wt)&&ce(sn,Wt,Gt[Wt]);return sn};const Ie=sn=>React.createElement("svg",ye({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},sn),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var et="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwM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cwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",Et=Object.defineProperty,wt=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,_t=(sn,Gt,Wt)=>Gt in sn?Et(sn,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):sn[Gt]=Wt,ot=(sn,Gt)=>{for(var Wt in Gt||(Gt={}))Ft.call(Gt,Wt)&&_t(sn,Wt,Gt[Wt]);if(wt)for(var Wt of wt(Gt))Nt.call(Gt,Wt)&&_t(sn,Wt,Gt[Wt]);return sn};const Ht=sn=>React.createElement("svg",ot({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},sn),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Kt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAzMy41NTZhMTUyLjU3NiAxNTIuNTc2IDAgMCAwLTEyMC42NzQgNDUuMzcxYy03LjQwNC00MS44MjYtMzIuMDYtNjYuODc1LTY5LjU1My04Mi44NjUtMTkuNjkzLTguMzUtMzkuNTQzLTE2LjctNTMuMjQ4LTM0LjczNy05LjYxLTEyLjkxOS0xMi4yODgtMjcuMzMzLTE3LjAxNS00MS41MTItMy4xNS04LjUwNy02LjE0NC0xNy4yNS0xNi4zODQtMTguNjY4LTExLjE4NS0xLjczMy0xNS41MTcgNy4yNDctMTkuOTI4IDE0LjczYTE4OS4xMjUgMTg5LjEyNSAwIDAgMC0yMy41NTIgOTguNDYxYzEuNTc1IDc2Ljg4IDM1LjQ0NiAxMzguMDgzIDEwMi42MzYgMTgxLjY0MiA3LjU2MiA0Ljk2MyA5LjUzMSA5LjkyNSA3LjA5IDE3LjI1LTQuNDkg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=>{const[Wt,Nn]=(0,ee.useState)(!1),Dn=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:et},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Kt}],kn=Dn.find(Cn=>Cn.key===sn);return Ze.createElement("div",{className:te.select},Ze.createElement(ae.Z,{size:10},Ze.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),Ze.createElement("div",{className:te.box,onMouseLeave:()=>Nn(!1)},Ze.createElement("div",{className:te.text,onClick:()=>Nn(!0)},Ze.createElement("img",{src:kn.img,width:20}),Ze.createElement("span",null,kn.name),Ze.createElement("b",{className:"iconfont icon-zhankai6"})),Wt&&Ze.createElement("div",{className:te.itemWrap},Ze.createElement("aside",null,Dn.map(Cn=>Ze.createElement("div",{key:Cn.key,className:`${te.item} ${Cn.key===sn?te.active:""}`,onClick:Kn=>{Kn.stopPropagation(),Gt(Cn.key),Nn(!1)}},Ze.createElement("img",{src:Cn.img,width:20}),Ze.createElement("span",null,Cn.name))))))))},Pe={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},He=le(99064),rt=le(955),It={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},on=({src:sn,onClick:Gt,topPercentage:Wt=.62,draggableExtraNode:Nn})=>{const Dn=(0,ee.useRef)(null),kn=(0,ee.useRef)(!1),Cn=(0,ee.useRef)(!1),[Kn,hn]=(0,ee.useState)(window.innerHeight*Wt),[Wn,eo]=(0,ee.useState)(!1),ya=10;return(0,ee.useEffect)(()=>{if(Dn.current){let fa=function(ua){var Pn;kn.current=!0,Ma=ua.pageY,Oa=ua.pageY-(((Pn=Dn.current)==null?void 0:Pn.getBoundingClientRect().top)||0),(0,rt.kk)("none"),document.onselectstart=function(){return!1}},ha=function(){kn.current&&!Cn.current&&Gt&&Gt(),kn.current=!1,Cn.current=!1,(0,rt.kk)("auto"),document.onselectstart=null},Da=function(ua){var Pn;if(kn.current){const ho=ua.pageY-Oa,wo=window.innerHeight-(((Pn=Dn.current)==null?void 0:Pn.offsetHeight)||0)-50,Bo=50;if(!Cn.current&&Math.abs(Ma-ua.pageY)>ya&&(Cn.current=!0),Cn.current){let Oo=Math.max(Bo,Math.min(ho,wo));hn(Oo)}}},Oa=0,Ma=0;return Dn.current.addEventListener("mousedown",fa),document.addEventListener("mousemove",Da),document.addEventListener("mouseup",ha),()=>{var ua,Pn;(Pn=(ua=Dn==null?void 0:Dn.current)==null?void 0:ua.removeEventListener)==null||Pn.call(ua,"mousedown",fa),document.removeEventListener("mousemove",Da),document.removeEventListener("mouseup",ha)}}},[Gt]),(0,ee.useEffect)(()=>{const fa=()=>{hn(window.innerHeight*Wt)};return window.addEventListener("resize",fa),()=>{window.removeEventListener("resize",fa)}},[Wt]),ee.createElement("div",{className:It.draggableImage,style:{top:`${Kn}px`,display:Wn?"none":"block",cursor:kn.current?"grabbing":"grab"},ref:Dn},Nn,ee.createElement("img",{className:It.img,src:sn,width:60,draggable:"false"}),ee.createElement("i",{className:`iconfont icon-tupianguanbi ${It.close}`,onMouseUp:fa=>{fa.stopPropagation(),eo(!0)}}))},pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48lgOHoMnXzIMIAJA7gUQ/VwQ4obgBgGOgBiGOAiIIY4fEqoQFXoazEQIlrwnuhhKLoB8hgZXPlH/IhdsGmV911HpTxwef3Dkf8Lo9wL40hUvTR0uTfxtiHpPYFk527KxQhfLtbGdhAZJoQiEEChC+V1AsS0sR8AU0ISB8pwLtkPg2niuTaAZaBO4CXwBUL6hMFiA0zdDuuYDfcLyQQJaBJwG0QAo906gcAXMiInCOtuPQQ80gI4GKgYQ/dhSShNbPtDRdwGhsFw+z6JswWdTbV3/sH//3fXTAXlaAIV1qmr9RKnwAmGVsmxsLCxLgLA0eFiOBkyflzDQEWDknB3Qj11CxyVwxGxdlDAvIaZs4dsODcfFd1yU62hw5bgngRhZrkZSgxabcARiIOD5+m8CoO2H2EFAMgg1E1Gefs4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xnC3tjQQNqQfQwmaY808Zz8UXHIlnWpSWRbjv76t5vjbI5uo6OvpWICtLIRxFHqo8oYAPW2FiBXQ0YayppnjTOia6kgMrghTn22yubue5t9+eZSTs86r5N4we9hBASml2tq6+pnvzipsaNnaFXnxuGWWlOWzckKC2Nk1Jbh+au+K8/uk75BgR4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",jt=le(3294),rn=le(56102),Qn=le(24544),ma=le(58617),We=le(32050),_e=Object.defineProperty,xt=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ut=(sn,Gt,Wt)=>Gt in sn?_e(sn,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):sn[Gt]=Wt,je=(sn,Gt)=>{for(var Wt in Gt||(Gt={}))lt.call(Gt,Wt)&&ut(sn,Wt,Gt[Wt]);if(tt)for(var Wt of tt(Gt))Ue.call(Gt,Wt)&&ut(sn,Wt,Gt[Wt]);return sn},it=(sn,Gt)=>xt(sn,ze(Gt)),Qt=(sn,Gt,Wt)=>new Promise((Nn,Dn)=>{var kn=hn=>{try{Kn(Wt.next(hn))}catch(Wn){Dn(Wn)}},Cn=hn=>{try{Kn(Wt.throw(hn))}catch(Wn){Dn(Wn)}},Kn=hn=>hn.done?Nn(hn.value):Promise.resolve(hn.value).then(kn,Cn);Kn((Wt=Wt.apply(sn,Gt)).next())}),Jt=({title:sn="\u5934\u6B4CAI",placeholder:Gt,hideUpload:Wt,hideInputBox:Nn,aiIcon:Dn=pe,userIcon:kn=mt,dragIcon:Cn=ht,children:Kn,fetchUrl:hn,fetchData:Wn={},extraAnswerAction:eo,showDefaultTips:ya=!0,onOpen:fa,onClose:ha,loadingOption:Da,showPreference:Oa=!1,initMessage:Ma,customRequest:ua,visible:Pn,width:bn=1200,isCheckRestrictNumber:ho=!1,headNode:wo,headFunctionNode:Bo,showRedraw:Oo,showEdit:Go,promptPropName:Zo="prompt",topPercentage:vt,showSwitchingModel:Dt=!1,showImageGenerator:Ee=!1,showLookHistory:we=!1,fetchListObject:xe,customPreference:dt,customDataNode:nt,showAddSession:gt,historyId:Lt,draggableExtraNode:dn,drawerExtraNode:tn,menuExtraFunctionNode:Rt,showSceneAwareness:Xn=!1})=>{var Qe;const[Yt,Tn]=(0,ee.useState)(!1),[Rn,Ot]=(0,ee.useState)("qwen-max"),[Pt,Fn]=(0,ee.useState)([]),[qn,_n]=(0,ee.useState)(!1),[to,Za]=(0,ee.useState)(!1),[ja,ia]=(0,ee.useState)(!1),[Bn,aa]=(0,ee.useState)([]),[at,Io]=(0,ee.useState)(""),[No,na]=(0,ee.useState)(0),[Zn,ct]=(0,ee.useState)(void 0),[Xt,wn]=(0,ee.useState)(!1),[$t,Sa]=(0,ee.useState)(null),[wa,Ha]=(0,ee.useState)(""),oa=(0,ee.useRef)(),co=(0,ee.useRef)(null),Ho=(0,ee.useRef)(null),[Fo,sr]=(0,ee.useState)(!1),[dr,Wr]=(0,ee.useState)(!1),[vr,$o]=(0,ee.useState)(!1),[ur,Br]=(0,ee.useState)(!1),[cr,Pr]=(0,ee.useState)(0),Er=(0,ee.useRef)(null),Ir=(0,ee.useRef)(!1),Qo=(0,ee.useRef)(null),[mr,Uo]=(0,ee.useState)(void 0),[Si,Vr]=(0,ee.useState)(!0),[oi,Ci]=(0,ee.useState)(bn-28),[zr,bi]=(0,ee.useState)(!1),[Li,Jr]=(0,ee.useState)(!0),[Kr,En]=(0,ee.useState)([]),Vt=(0,ee.useRef)([]),vn=(0,ee.useRef)(!1),Sn=oi-22,Vn=at==null?void 0:at.split(` `).length,{onAdd:Ia,onGetList:lo,onListClick:Qa,onListDelete:qt,onListDealData:no}=xe||{},Yo={maxCount:10,showUploadList:!1,withCredentials:!0,fileList:Pt,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.jpg,.png,.xlsx,.xls",beforeUpload:De=>{var Ct,zt,pn,mn;const Bt=(mn=(pn=(zt=(Ct=De==null?void 0:De.name)==null?void 0:Ct.split("."))==null?void 0:zt.slice(-1))==null?void 0:pn[0])==null?void 0:mn.toLowerCase(),cn=["doc","docx","md","pdf","txt","jpg","png","xlsx","xls"].includes(Bt);return De.size==0?(ue.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),Ge.default.LIST_IGNORE):cn||(ue.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001jpg\u3001png\u3001xlsx\u3001xls\u6587\u4EF6"),Ge.default.LIST_IGNORE)},onChange:({fileList:De})=>{Fn(De)},action:`${(Qe=jt.Z)==null?void 0:Qe.API_SERVER}/api/intelligent_imports/upload_file.json`};(0,ee.useEffect)(()=>{if(!Bn.length||!oa.current)return;const De=Bn[Bn.length-1];De!=null&&De.loading&&(oa.current.scrollTop=oa.current.scrollHeight)},[Bn.length]),(0,ee.useEffect)(()=>{if(!oa.current||!Er.current)return;const De=new IntersectionObserver(([Ct])=>{Vr(Ct.isIntersecting)},{root:oa.current,rootMargin:"70px",threshold:0});return De.observe(Er.current),()=>{Er.current&&De.unobserve(Er.current)}},[oa.current,Er.current]),(0,ee.useEffect)(()=>{if(!Fo)return;const De=oa.current,Ct=Qo.current;Ir.current=!1;const zt=()=>{const{scrollTop:mn,scrollHeight:Bt,clientHeight:gn}=De,cn=mn+gn===Bt;Ir.current=!0,cn&&(Ir.current=!1)};De.addEventListener("wheel",zt);const pn=new ResizeObserver(()=>{Ir.current||(De.scrollTop=De.scrollHeight)});return pn.observe(Ct),()=>{var mn;pn.unobserve(Ct),(mn=De==null?void 0:De.removeEventListener)==null||mn.call(De,"wheel",zt)}},[Fo]),(0,ee.useEffect)(()=>{!Fo&&Vt.current.length&&(aa([...Bn,...Vt.current]),Vt.current=[])},[Fo]),(0,ee.useEffect)(()=>{if(!oa.current)return;const De=new ResizeObserver(()=>{Ci(oa.current.offsetWidth)});return De.observe(oa.current),()=>{oa.current&&De.unobserve(oa.current)}},[oa.current]),(0,ee.useEffect)(()=>{typeof Pn=="boolean"&&Tn(Pn)},[Pn]),(0,ee.useEffect)(()=>{var De;if(co.current&&$t!==null){co.current.focus();const Ct=(De=co.current.resizableTextArea)==null?void 0:De.textArea;Ct&&(Ct.selectionStart=Ct.selectionEnd=Ct.value.length)}},[$t]),(0,ee.useEffect)(()=>{Vn<5&&wn(!1)},[Vn]),(0,ee.useEffect)(()=>{Yt&&Ma&&(aa(Ua(Ma)),_n(!0),wr(Ma,{history:[]})),Yt&&(tr(),Lt?vi(Lt):gt&&!mr&&Jo()),Yt||Wo()},[Yt]);const Ua=(De="",Ct=[])=>{const zt=Date.now();return[{text:De,key:zt,sender:"user",fileList:Ct,show:!0},{loading:!0,key:zt,sender:"AI",show:!0,model:Rn,imageGenerator:vr,thinkingEnabled:dr}]},Wo=()=>{Ha(""),Sa(null),Fn([]),Io("")},yr=()=>{if(fa){fa({chatData:Bn,setChatData:aa,setLoading:_n,getData:wr,renderChatItems:Ua,handleAdd:Jo,identifier:mr});return}Tn(!0)},er=()=>{if(Jr(!0),ha){ha();return}Tn(!1)},ir=()=>{wn(!Xt)},tr=()=>Qt(void 0,null,function*(){if(!ho)return;const De=yield(0,He.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(De==null?void 0:De.status)===0&&(De==null?void 0:De.total_number)!==-1&&(na((De==null?void 0:De.total_number)-(De==null?void 0:De.remaining_number)),ct(De==null?void 0:De.total_number))}),ri=()=>{st.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ee.createElement("div",null,ee.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ee.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Ca=De=>De.reduce((zt,pn)=>{if(pn.sender==="user"){const mn=De.find(Bt=>Bt.key===pn.key&&Bt.sender==="AI");mn&&(mn!=null&&mn.text)&&!(mn!=null&&mn.error)&&zt.push({question:pn.text,answer:mn.text})}return zt},[]),wr=(...De)=>Qt(void 0,[...De],function*(Ct="",zt={},pn=Bn){if(ua&&(yield ua({mes:Ct,setChatData:aa,fileList:Pt,body:zt,checkNum:tr,setLoading:_n,bodyChatData:pn,setTyping:sr,setImageGenerator:$o})),!ua){const mn=Pt==null?void 0:Pt.map(Ba=>{var Ra;return(Ra=Ba==null?void 0:Ba.response)==null?void 0:Ra.file_id}),Bt=zt.history||Ca(pn),gn=je(je({identifier:mr,response_mode:"streaming",model:Rn,scene_awareness:ur,thinking_enabled:dr,image_generator:vr,file_ids:mn,history:Bt,[Zo]:Ct},Wn),zt),cn=Object.fromEntries(Object.entries(gn).filter(([Ba,Ra])=>Ra!==void 0));Ho.current=new Qn.Z(jt.Z.API_SERVER+hn,cn),yield new Promise((Ba,Ra)=>{let Gn=null,So=null;Ho.current.on("data",Co=>{sr(!0);const{chunk:{content:ao,type:Ro,created:pa,msg:Ya}}=Co,Ko=Ya==="error";Ro==="thinking"&&(Gn=Gn||pa,aa(so=>[...so].map((Mn,ba)=>ba===so.length-1?it(je({},Mn),{reasoning:(Mn.reasoning||"")+ao,loading:!1,hideAnswer:!0,error:Ko}):Mn))),Ro==="text"&&(So=So||pa,aa(so=>[...so].map((Mn,ba)=>ba===so.length-1?it(je({},Mn),{text:(Mn.text||"")+ao,loading:!1,startTime:Gn,endTime:So,error:Ko}):Mn)))}),Ho.current.on("done",()=>{Ba()}),Ho.current.on("error",()=>{const Co="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";aa(ao=>[...ao].map((Ro,pa)=>pa===ao.length-1?it(je({},Ro),{text:Co,loading:!1,error:!0}):Ro)),Ba()}),Ho.current.on("cancelled",()=>{Ba()}),Ho.current.startStream()})}tr(),_n(!1)}),pi=De=>{Io(De.target.value)},jr=(De,Ct)=>{if(Wo(),_n(!0),De==="edit"){Vt.current=Bn.slice(Ct+2);const zt=Bn.splice(Ct),{fileList:pn}=(zt==null?void 0:zt[0])||{},mn=pn.map(gn=>{var cn;return(cn=gn.response)==null?void 0:cn.file_id}),Bt={history:Ca(Bn),file_ids:mn,edit:!0};aa([...Bn,...Ua(wa,pn)]),wr(wa,Bt,Bn)}if(De==="redraw"){Vt.current=Bn.slice(Ct+1);const zt=Bn.splice(Ct-1),{text:pn,fileList:mn}=(zt==null?void 0:zt[0])||{},Bt=mn.map(cn=>{var Ba;return(Ba=cn.response)==null?void 0:Ba.file_id}),gn={history:Ca(Bn),file_ids:Bt,edit:!0};aa([...Bn,...Ua(pn,mn)]),wr(pn,gn,Bn)}},Xr=()=>{if(at.trim()!==""){Wo(),_n(!0);const De=Pt.filter(Ct=>Ct.status==="done");aa([...Bn,...Ua(at,De)]),wr(at)}},qr=De=>{if(De.shiftKey){if(De.key==="Enter")return}else if(De.key==="Enter"){if(De.preventDefault(),be||vn.current)return;Xr()}},Vo=(De,Ct)=>{var zt,pn;let mn=!1;Go===!0?mn=!0:Go==="last"&&(mn=Bn.reduce((cn,Ba,Ra)=>Ba.sender==="user"?Ra:cn,-1)===Ct);const Bt=Ct===$t;return ee.createElement("div",{className:Pe.li,style:{width:Sn}},ee.createElement("div",{className:Pe.avatarIcon},ee.createElement("img",{className:Pe.img,src:kn})),ee.createElement("div",{className:Pe.content},!!((zt=De==null?void 0:De.fileList)!=null&&zt.length)&&ee.createElement("div",{className:Pe.fileWrap},(pn=De.fileList)==null?void 0:pn.map((gn,cn)=>{var Ba,Ra;return ee.createElement("div",{key:cn,className:Pe.file},ee.createElement("img",{src:le(90034)(`./${((Ra=(Ba=gn==null?void 0:gn.name)==null?void 0:Ba.split("."))==null?void 0:Ra.pop())||"txt"}.png`),width:20,className:"mr10"}),ee.createElement("aside",null,ee.createElement(Ce.Z,{title:gn==null?void 0:gn.name},ee.createElement("div",{className:Pe.fileName},gn==null?void 0:gn.name)),ee.createElement("div",{className:"c-grey-999 font12"},(0,rt.RD)(gn==null?void 0:gn.size))))})),ee.createElement("div",{className:Pe.borderBox},Bt?ee.createElement(Ve.default.TextArea,{value:wa,ref:co,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:gn=>Ha(gn.target.value)}):ee.createElement("div",{className:Pe.text},De==null?void 0:De.text)),Bt?ee.createElement("div",{className:Pe.action},ee.createElement(Ae.ZP,{onClick:()=>{Ha(""),Sa(null)},size:"small"},"\u53D6\u6D88"),ee.createElement(Ae.ZP,{disabled:!wa.trim(),onClick:()=>jr("edit",Ct),type:"primary",size:"small"},"\u786E\u8BA4")):ee.createElement("div",{className:Pe.action},ee.createElement(rn.CopyToClipboard,{text:(De==null?void 0:De.text)||"",onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement(Ce.Z,{title:"\u590D\u5236"},ee.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),mn&&!qn&&ee.createElement(Ce.Z,{title:"\u7F16\u8F91"},ee.createElement("i",{onClick:()=>{Sa(Ct),Ha((De==null?void 0:De.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Gr=(De,Ct)=>{let zt=!1;Oo===!0?zt=!0:Oo==="last"&&(zt=Bn.reduce((Bt,gn,cn)=>gn.sender==="AI"?cn:Bt,-1)===Ct);let pn="";return De!=null&&De.source?pn=De==null?void 0:De.source:(De==null?void 0:De.model)==="deepseek-r1"?pn="\u7531deepseek\u751F\u6210":(De==null?void 0:De.model)==="qwen-max"&&(pn="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ee.createElement("div",{className:Pe.li,style:{width:Sn}},ee.createElement("div",{className:Pe.avatarIcon},ee.createElement("img",{className:Pe.img,src:Dn})),ee.createElement("div",{className:Pe.content},ee.createElement("div",{className:Pe.borderBox},De.loading&&ee.createElement(ee.Fragment,null,De!=null&&De.imageGenerator?ee.createElement("div",{className:Pe.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ee.createElement("div",{className:"ai-loading"})):!(De!=null&&De.thinkingEnabled)&&ee.createElement("div",null,ee.createElement("div",{className:Pe.loading},ee.createElement("div",{className:Pe.dot}),ee.createElement("div",{className:Pe.dot}),ee.createElement("div",{className:Pe.dot})),ee.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(Da==null?void 0:Da.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(De==null?void 0:De.thinkingEnabled)&&ee.createElement(z,{time:De==null?void 0:De.time,cancelIndex:cr,loading:De.loading,streamingStatus:!(De!=null&&De.text),onFinish:()=>{Pr(0),aa(mn=>[...mn].map((Bt,gn)=>gn===mn.length-1?it(je({},Bt),{hideAnswer:!1,time:Bt.startTime?Bt.endTime-Bt.startTime:null}):Bt))},value:De==null?void 0:De.reasoning}),!!(De!=null&&De.text)&&!De.hideAnswer&&ee.createElement(a.Z,{cancelIndex:cr,streamingStatus:qn,loadImage:!!(De!=null&&De.imageGenerator),onFinish:()=>Qt(void 0,null,function*(){Pr(0),setTimeout(()=>sr(!1),0)}),value:De==null?void 0:De.text})),!!(De!=null&&De.text)&&pn&&ee.createElement("div",{className:Pe.source},pn),ee.createElement("div",{className:Pe.action},eo==null?void 0:eo(De,Ct,{onMenuClick:vi}),ee.createElement(rn.CopyToClipboard,{text:String((De==null?void 0:De.text)||""),onCopy:()=>ue.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ee.createElement(Ce.Z,{title:"\u590D\u5236"},ee.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Oa&&!qn&&ee.createElement(ee.Fragment,null,ee.createElement(Ce.Z,{title:"\u559C\u6B22"},ee.createElement("i",{style:De!=null&&De.like?{color:"#FA8D30"}:{},onClick:()=>Ao("like",!(De!=null&&De.like),Ct),className:"iconfot icon-yijiejue font15"})),ee.createElement(Ce.Z,{title:"\u4E0D\u559C\u6B22"},ee.createElement("i",{style:De!=null&&De.dislike?{color:"#e86d7c"}:{},onClick:()=>Ao("dislike",!(De!=null&&De.dislike),Ct),className:"iconfot icon-weijiejuezhengchang font15"}))),zt&&!qn&&ee.createElement(Ce.Z,{title:"\u91CD\u65B0\u751F\u6210"},ee.createElement("i",{onClick:()=>jr("redraw",Ct),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},Ao=(De,Ct,zt)=>Qt(void 0,null,function*(){if(dt){const pn=Bn.slice(0,zt+1),Bt=Ca(pn).length;yield dt({type:De,value:Ct,index:zt,identifier:mr,objectIndex:Bt})}aa(pn=>(pn[zt][De]=Ct,Ct&&(pn[zt][De==="like"?"dislike":"like"]=!1),[...pn]))}),Nr=()=>{var De,Ct;Pr(1),(Ct=(De=Ho.current)==null?void 0:De.cancelRequest)==null||Ct.call(De),_n(!1),sr(!1)},Jo=()=>Qt(void 0,null,function*(){var De,Ct,zt;(Ct=(De=Ho.current)==null?void 0:De.cancelRequest)==null||Ct.call(De),Wo(),aa([]),_n(!0);const pn=yield Ia();(pn==null?void 0:pn.status)===0&&Uo((zt=pn==null?void 0:pn.data)==null?void 0:zt.identifier),_n(!1),sr(!1)}),xi=()=>Qt(void 0,null,function*(){var De;ia(!0);const Ct=yield lo();(Ct==null?void 0:Ct.status)===0&&En(((De=Ct==null?void 0:Ct.data)==null?void 0:De.list)||[]),ia(!1)}),vi=(...De)=>Qt(void 0,[...De],function*(Ct=mr){var zt,pn,mn,Bt;(pn=(zt=Ho.current)==null?void 0:zt.cancelRequest)==null||pn.call(zt),Wo(),Za(!0);const gn=yield Qa(Ct);if(gn.status===0){const cn=no(((mn=gn==null?void 0:gn.data)==null?void 0:mn.messages)||[]);aa(cn),Za(!1),Uo((Bt=gn==null?void 0:gn.data)==null?void 0:Bt.identifier);return}aa([]),Za(!1)}),Ti=(De,Ct)=>Qt(void 0,null,function*(){(yield qt(De)).status===0&&(ue.ZP.success("\u5220\u9664\u6210\u529F"),Ct===mr&&Jo(),xi())}),Oi=()=>ee.createElement("div",{className:Pe.menuWarp},ee.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ee.createElement(Ke.Z,{spinning:ja},!Kr.length&&ee.createElement(Ne.Z,{style:{width:250,paddingBottom:30},image:Ne.Z.PRESENTED_IMAGE_SIMPLE}),!!Kr.length&&ee.createElement("div",{className:Pe.menu},Kr.map(function(De,Ct){return ee.createElement("aside",{className:ie()(mr===De.identifier&&Pe.active),key:De.id,onClick:()=>vi(De.id)},ee.createElement("div",{className:Pe.menuText},ee.createElement(Ce.Z,{title:De==null?void 0:De.question},ee.createElement("span",null,De==null?void 0:De.question)),Rt&&Rt(De)),ee.createElement("div",{className:Pe.menuDel,onClick:zt=>zt.stopPropagation()},ee.createElement(Te.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>Ti(De.id,De.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},ee.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),_r=No>=Zn,Be=Wt||Pt.length>9,be=Pt.some(De=>De.status==="uploading")||qn||Fo,Le=vr||dr||ur||!!Pt.length;return ee.createElement("div",null,Kn?ee.createElement("div",{onClick:yr},Kn):ee.createElement(on,{draggableExtraNode:dn,src:Cn,onClick:yr,topPercentage:vt}),ee.createElement(bt.Z,{open:Yt,width:zr?"100%":bn,afterOpenChange:De=>{De&&Jr(!1)},contentWrapperStyle:Li?{}:{transition:"none"},extra:ee.createElement("div",{className:Pe.head},tn,Dt&&ee.createElement(Tt,{value:Rn,onChange:De=>{Wr(!1),$o(!1),Ot(De)}}),we&&ee.createElement(ee.Fragment,null,ee.createElement(Re.Z,{dropdownRender:Oi,onOpenChange:De=>{De&&xi()},placement:"bottomLeft",arrow:!0},ee.createElement("div",{className:Pe.headBtn},ee.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),gt&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:Pe.headBtn,onClick:Jo},ee.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ee.createElement(Ce.Z,{title:zr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ee.createElement("div",{className:Pe.headBtn,style:{padding:"0 12px"},onClick:()=>bi(!zr)},zr&&ee.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!zr&&ee.createElement("i",{className:"iconfont icon-quanping4"})))),title:ee.createElement("span",{className:"c-grey-333 font16"},sn),onClose:er,bodyStyle:{paddingRight:4}},ee.createElement("div",{className:ie()(Pe.wrap,Yt&&"body-overflow-hidden")},ee.createElement("div",{ref:oa,className:Pe.chatContainer},ya&&ee.createElement("div",{className:`${Pe.li} mb20`,style:{width:Sn}},ee.createElement("div",{className:Pe.avatarIcon},ee.createElement("img",{className:Pe.img,src:Dn})),ee.createElement("div",{className:Pe.content},ee.createElement("div",{className:Pe.borderBox},wo,Bo==null?void 0:Bo({isDisabledNum:_r,checkNumModal:ri,checkNum:tr,onClose:er,setChatData:aa,setLoading:_n,getData:wr,clearStatus:Wo,typing:Fo,setImageGenerator:$o,renderChatItems:Ua,setSceneAwareness:Br})))),ee.createElement("div",{ref:Qo},ee.createElement(Ke.Z,{spinning:to,className:"mt20"},Bn==null?void 0:Bn.map((De,Ct)=>ee.createElement(ee.Fragment,{key:De.key+Ct},De.show&&ee.createElement(ee.Fragment,null,De.sender==="user"&&Vo(De,Ct),De.sender==="AI"&&Gr(De,Ct),nt&&!["AI","user"].includes(De.sender)&&nt(De,Ct,{width:Sn})))))),!Si&&ee.createElement("div",{className:Pe.backBottom,onClick:()=>{Ir.current=!1,oa.current.scrollTop=oa.current.scrollHeight}},ee.createElement("i",{className:"iconfont icon-huidaodibu"})),ee.createElement("div",{ref:Er})),!Nn&&ee.createElement("div",{className:ie()(Pe.footerContainer,Xt&&Pe.full,Le&&Pe.footerContainerSelected)},ee.createElement("div",{className:Pe.btnWrp},Xn&&ee.createElement(Ce.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ee.createElement("div",{onClick:()=>Br(!ur),className:ie()(Pe.btn,ur&&Pe.btnActive)},ee.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),Rn==="deepseek-r1"&&ee.createElement(Ce.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ee.createElement("div",{onClick:()=>Wr(!dr),className:ie()(Pe.btn,dr&&Pe.btnActive)},ee.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),Ee&&Rn==="qwen-max"&&ee.createElement("div",{onClick:()=>$o(!vr),className:ie()(Pe.btn,vr&&Pe.btnActive)},ee.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),Pt.map(De=>ee.createElement("div",{key:De.uid},(De==null?void 0:De.status)==="uploading"&&ee.createElement(Ke.Z,{indicator:ee.createElement(ma.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),ee.createElement("span",{title:De==null?void 0:De.name,className:"mr10"},(0,rt.Pq)(De.name,20)),ee.createElement("i",{onClick:()=>Fn(Ct=>Ct.filter(zt=>zt.uid!==De.uid)),className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ee.createElement(Ce.Z,{title:_r&&ee.createElement("div",null,ee.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ee.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Zn,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ee.createElement("div",{className:ie()(Pe.inputContainer,Vn>4&&Pe.lineFour,_r&&Pe.disabledInput)},ee.createElement(Ge.default,it(je({},Yo),{className:`${Be&&"hide"}`}),ee.createElement(Ae.ZP,{className:Pe.uploadBtn,icon:ee.createElement(We.Z,{style:{fontSize:18,color:"#FFF"}})})),ee.createElement(Ve.default.TextArea,{rows:Vn>4?4:Vn,placeholder:Gt||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:at,bordered:!1,style:Be?{paddingLeft:0,marginLeft:0}:{},onChange:pi,onPressEnter:qr,onCompositionStart:()=>{vn.current=!0},onCompositionEnd:()=>{vn.current=!1}}),Fo?ee.createElement(Ce.Z,{title:"\u505C\u6B62\u751F\u6210"},ee.createElement("div",{className:`iconfont icon-tingzhihuida ${Pe.cancelBtn}`,onClick:Nr})):ee.createElement(Ae.ZP,{className:(at==null?void 0:at.trim())===""?Pe.sendBtnDisabled:Pe.sendBtn,icon:ee.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:be,onClick:Xr}),Vn>4&&ee.createElement("span",{className:Pe.fullIcon,onClick:ir},Xt&&ee.createElement("span",{className:"iconfont icon-shousuo"}),!Xt&&ee.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},73524:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return bt}});var ee=le(59301),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ge=le(92310),st=le.n(Ge),Ce=le(71418),Ve=le(2859),Ae=le(99064),Ke=le(955),Ne=(Re,Je,ie)=>new Promise((a,E)=>{var b=z=>{try{x(ie.next(z))}catch(te){E(te)}},y=z=>{try{x(ie.throw(z))}catch(te){E(te)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(b,y);x((ie=ie.apply(Re,Je)).next())}),bt=({data:Re,className:Je,fullWidth:ie,style:a={},onClose:E,onOk:b,showFullTools:y,noAssociationId:x})=>{const z=(0,ee.useRef)(null),te=(0,ee.useRef)(null),ae=(0,ee.useRef)(null),ne=(0,ee.useRef)(null),[se,de]=(0,ee.useState)(!1),[Se,ce]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>(ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&ye()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null)),()=>{document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null)}),[Re==null?void 0:Re.visible]);const ye=()=>Ne(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const wt=yield(0,Ke.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=wt,z.current.onload=function(){Et()},de(!1),ce("")}),Ie=wt=>Ne(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ft=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:wt.dataUrl}});Ft!=null&&Ft.id&&!x?(yield(0,Ae.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ft==null?void 0:Ft.id,settings:JSON.stringify(wt.state)}})).status===0&&b():Ft!=null&&Ft.id&&b(Ft),de(!1),ce("")}),et=()=>{const wt=document.querySelector('a[href="https://markerjs.com/"]');wt&&wt.parentNode&&(wt.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(Nt=>{const _t=document.querySelector(Nt.name);_t&&_t.setAttribute("title",Nt.title)})},Et=()=>{te.current=new Ve.hP(z.current),te.current.targetRoot=ne.current,te.current.addEventListener("render",Ie),te.current.addEventListener("beforeclose",E),y&&(te.current.availableMarkerTypes=te.current.ALL_MARKER_TYPES,te.current.uiStyleSettings.redoButtonVisible=!0,te.current.uiStyleSettings.notesButtonVisible=!0,te.current.uiStyleSettings.zoomButtonVisible=!0,te.current.uiStyleSettings.zoomOutButtonVisible=!0,te.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=te.current.uiStyleSettings,te.current.show(),Re!=null&&Re.snapshotData&&te.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return ee.createElement(ee.Fragment,null,(Re==null?void 0:Re.visible)&&ee.createElement(Ce.Z,{spinning:se,tip:Se,style:{position:"absolute",width:"100vw"}},ee.createElement("div",{ref:ne,className:st()(ue.imageDimensions,Je,ie?ue.fullWidth:""),style:a},ee.createElement("img",{className:ue.img,ref:z}))))}},91785:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Ve}});var ee=le(43418),ue={modal:"modal___VzyKs",content:"content___HhLQS",close:"close___zKaRB"},Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoH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NdW2pDXqueCBJYvn+RKky6wGzUn2vXhqlB4Bl8z9Xjloz1THQTJLpBmjlPLMfNGM1/Ahgop9dWsuta4kWEWsDLmcrud1MJdRVL1Olma6I2i6IiIVLX3xveuzd0n5uWTL206p7IsJx6QOsCljG7SDJvXJHVkRKL1F3XOoSXE39js1e2ODea0JBbubtyZHAOynX3u8EYUT0ljo3LG3FQoLz2OtMIaWB/zqvtWV/nPLpfmCTogU/Tk++2QpkH7GQG7eUWxVucr9ypPkpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",st=le(59301),Ve=({visible:Ae,setVisible:Ke,image:Ne,closeImageStyle:Te,hiddenbutton:bt})=>st.createElement(ee.default,{centered:!0,destroyOnClose:!0,open:Ae,footer:null,wrapClassName:ue.modal,onCancel:()=>Ke(!1)},st.createElement("div",{className:ue.content},st.createElement("img",{src:Ne}),bt,st.createElement("img",{onClick:()=>Ke(!1),className:ue.close,src:Ge,style:Te})))},41588:function(ke,Mt,le){"use strict";var ee=le(59301),ue=le(95237),Ge=le(43604),st=le(99313),Ce=le(3113),Ve=le(85149),Ae=le(88010),Ke=le(48136),Ne=le(59301);const Te=(0,ee.forwardRef)(({callback:bt,showSaveButton:Re,value:Je=""},ie)=>{const a=(0,ee.useRef)(),E=[{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 "}]}]}],b=[{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}`}]}]}],y=te=>{a.current.setValue(a.current.getValue()+" "+te.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ne.createElement(ue.Z,{className:Ae.Z.lists,gutter:[10,10]},E.map((te,ae)=>Ne.createElement(Ge.Z,{flex:"110px",className:Ae.Z.item},Ne.createElement("div",null,Ne.createElement(Ve.Z,{value:`$$${te.value}$$`}),te.name),Ne.createElement("div",{className:Ae.Z.children},te.children.map((ne,se)=>Ne.createElement("div",{key:se},Ne.createElement("h1",null,ne.name),Ne.createElement(ue.Z,{gutter:[10,10]},ne.data.map((de,Se)=>Ne.createElement(Ge.Z,{key:Se,onClick:()=>y(de),className:Ae.Z.diamond},Ne.createElement(Ve.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(ue.Z,{className:Ae.Z.lists,gutter:[10,10]},b.map((te,ae)=>Ne.createElement(Ge.Z,{flex:"110px",className:Ae.Z.item},Ne.createElement("div",null,Ne.createElement(Ve.Z,{value:"`$$"+te.value+"$$`"}),te.name),Ne.createElement("div",{className:Ae.Z.children},te.children.map((ne,se)=>Ne.createElement("div",{key:se},ne.name&&Ne.createElement("h1",null,ne.name),Ne.createElement(ue.Z,{gutter:[10,10]},ne.data.map((de,Se)=>Ne.createElement(Ge.Z,{key:Se,onClick:()=>y(de),className:Ae.Z.diamond},Ne.createElement(Ve.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var te=document.createElement("div");te.innerHTML=a.current.getValue();var ae=te.innerText;return bt&&bt(ae),ae};return(0,ee.useImperativeHandle)(ie,()=>({getData:z})),Ne.createElement("div",{className:Ae.Z.mathWrap},Ne.createElement(st.default,{defaultActiveKey:"1",items:x}),Ne.createElement("math-field",{locale:"zh_cn",className:Ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Je||""),Re&&Ne.createElement("div",{className:Ae.Z.button},Ne.createElement(Ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Mt.Z=Te},8797:function(ke,Mt,le){"use strict";var ee=le(59301),ue=le(93314),Ge=le(3113),st=Object.defineProperty,Ce=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Te=(ie,a,E)=>a in ie?st(ie,a,{enumerable:!0,configurable:!0,writable:!0,value:E}):ie[a]=E,bt=(ie,a)=>{for(var E in a||(a={}))Ke.call(a,E)&&Te(ie,E,a[E]);if(Ae)for(var E of Ae(a))Ne.call(a,E)&&Te(ie,E,a[E]);return ie},Re=(ie,a)=>Ce(ie,Ve(a));const Je=({img:ie,buttonProps:a={},styles:E={},customText:b,ButtonText:y,ButtonClick:x,Buttonclass:z,ButtonTwo:te,imgStyles:ae,loading:ne=!1})=>ee.createElement("section",{className:"tc animated fadeIn",style:bt(bt({},{color:"#999",margin:"100px auto",visibility:ne?"hidden":"visible"}),E)},ee.createElement("img",{src:ie||ue,style:Re(bt({},ae),{pointerEvents:"none",userSelect:"none"})}),ee.createElement("p",{className:"mt20 font14"},b||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),y&&ee.createElement(Ge.ZP,bt({className:z,onClick:x},a),y),te&&te);Mt.Z=Je},23210:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return z}});var ee=le(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ge=le(3113),st=le(70557),Ce=le(23954),Ve=le(6848),Ae=le(955),Ke=le(94941),Ne=le(8797),Te=le(3294),bt=le(19381),Re=le(59301),Je=Object.defineProperty,ie=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(te,ae,ne)=>ae in te?Je(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:ne}):te[ae]=ne,y=(te,ae)=>{for(var ne in ae||(ae={}))a.call(ae,ne)&&b(te,ne,ae[ne]);if(ie)for(var ne of ie(ae))E.call(ae,ne)&&b(te,ne,ae[ne]);return te},x=(te,ae,ne)=>new Promise((se,de)=>{var Se=Ie=>{try{ye(ne.next(Ie))}catch(et){de(et)}},ce=Ie=>{try{ye(ne.throw(Ie))}catch(et){de(et)}},ye=Ie=>Ie.done?se(Ie.value):Promise.resolve(Ie.value).then(Se,ce);ye((ne=ne.apply(te,ae)).next())}),z=({editOffice:te="view",data:ae,theme:ne,type:se,filename:de,monacoEditor:Se,className:ce,style:ye,close:Ie,onClose:et,hasMask:Et,disabledDownload:wt,onImgDimensions:Ft,showNodata:Nt,recordInfo:_t})=>{const[ot,Ht]=(0,ee.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Kt,Ze]=(0,ee.useState)(""),[kt,Tt]=(0,ee.useState)(),Pe=window.ENV==="build"?"/react/build":"",He=location.host.startsWith("localhost")?Te.Z.PROXY_SERVER:Te.Z.API_SERVER,It=10*(1024*1024),At=(0,ee.useRef)();ae!=null&&ae.startsWith("/api")&&se!=="txt"&&(ae=Te.Z.API_SERVER+ae);const on=jt=>jt.substring(jt.lastIndexOf("/")+1).split(".").pop();de&&Se&&(Se.filename=de),(0,ee.useEffect)(()=>{var jt,rn;const Qn=(rn=(jt=document.cookie)==null?void 0:jt.replace(/\s/g,""))==null?void 0:rn.split(";");Qn==null||Qn.map(ma=>{let We=ma.split("=");We[0]==="_educoder_session"&&Ze(We[1])})},[]),(0,ee.useEffect)(()=>{se==="office"&&(ae.indexOf("bigfilescdn.")>-1||ae.indexOf("bigfiles1")>-1?Tt({url:ae,fileType:on(ae),model:ae.indexOf("model=edit")?"edit":"view"}):pe())},[se,ae]);const pe=()=>x(void 0,null,function*(){console.log("data:",ae);let jt=ae;ae.startsWith("http")||(jt=location.origin+jt);let rn=new URL(jt).pathname.split("/").pop();const Qn=yield(0,Ke.gJ)({attachment_id:rn});Qn.url=He+Qn.url,Tt(Qn)}),mt=()=>{if(ae.startsWith("http")||ae.startsWith("blob:")){ht();return}(0,Ae.Sv)(de||"educoder",ae,de)},ht=()=>{_t&&(0,bt.fc)({id:_t==null?void 0:_t.id,watch_type:1,course_id:_t==null?void 0:_t.course_id}),(0,Ae.Nd)(de||"educoder",decodeURIComponent(ae))};return Re.createElement("div",{style:y({},ye||{}),className:`${Et&&ue.bgBlack} ${se?ue.wrp:"hide"}`},Ie&&Re.createElement("div",{className:ue.close,ref:At},!!Ft&&Re.createElement(Ve.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>At.current},Re.createElement("span",{onClick:()=>{et(),Ft()}},Re.createElement("i",{className:"icon-yulanpizhu"}))),!wt&&Re.createElement(Ve.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>At.current},Re.createElement("span",{onClick:ht},Re.createElement("i",{className:"icon-quxiaozhiding"}))),Re.createElement(Ve.Z,{title:"\u5173\u95ED",getPopupContainer:()=>At.current},Re.createElement("span",{className:"",onClick:et},Re.createElement("i",{className:"icon-guanbi1"})))),Re.createElement("div",{className:`${ue[ce]} ${ce} ${ue.monaco} ${se==="txt"?"show":"hide"}`},se==="txt"&&Re.createElement(Re.Fragment,null,Re.createElement(Ce.ZP,y({},Se)))),se==="audio"&&Re.createElement("audio",{src:`${(ae==null?void 0:ae.indexOf("http://"))>-1||(ae==null?void 0:ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ae}`,autoPlay:!0}),se==="video"&&Re.createElement(Re.Fragment,null,(ae==null?void 0:ae.indexOf("http"))>-1?Re.createElement("video",{controls:!0,src:`${ae}`,autoPlay:!0}):Re.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ae}`,autoPlay:!0})),se==="office"&&kt&&Re.createElement("iframe",{src:`${Pe}/office.html?key=${kt.key}&url=${btoa(kt.url)}&callbackUrl=${He+(kt.callbackUrl||"")}&fileType=${kt.fileType}&title=${kt.title||""}&model=${te}&officeServer=${Te.Z.ONLYOFFICE}&disabledDownload=${!!wt}`}),se==="html"&&Re.createElement("iframe",{src:ae+"&disposition=inline"}),se==="pdf"&&Re.createElement("iframe",{src:`${Pe}/js/pdfview/index.html?filename=${de||"educoder.pdf"}&url=${encodeURIComponent(ae)}&disabledDownload=${!!wt}`}),se==="image"&&Re.createElement("img",{src:`${(ae==null?void 0:ae.indexOf("http://"))>-1||(ae==null?void 0:ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ae}`}),(se==="other"||se==="download")&&Re.createElement(Re.Fragment,null,Nt?Re.createElement(Ne.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Re.createElement(Ge.ZP,{icon:Re.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:mt,disabled:wt},"\u4E0B\u8F7D")}):Re.createElement(Ge.ZP,{type:"primary",size:"middle",onClick:mt,disabled:wt},Re.createElement(st.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(ke,Mt,le){"use strict";le.d(Mt,{z:function(){return se},Z:function(){return de}});var ee=le(59301),ue=le(50304),Ge=le(24768),st=le(64018),Ce=le(40846),Ve=le(3294),Ae=le(955),Ke=le(15342),Ne=le(1012),Te=le(23210),bt=le(59301),Je=({html:Se})=>{const ce=(0,ee.useRef)(null),ye=(0,ee.useRef)(null),Ie=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 36px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,ee.useEffect)(()=>{const et=ce.current.attachShadow({mode:"open"});ye.current=document.createElement("div"),ye.current.className="markdown-body",ye.current.innerHTML=Se,et.appendChild(ye.current);const Et=document.createElement("style");return Et.textContent=Ie,et.appendChild(Et),()=>{et.innerHTML=""}},[]),(0,ee.useEffect)(()=>{ye.current&&(ye.current.innerHTML=Se)},[Se]),bt.createElement("div",{ref:ce})},ie=Object.defineProperty,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(Se,ce,ye)=>ce in Se?ie(Se,ce,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Se[ce]=ye,x=(Se,ce)=>{for(var ye in ce||(ce={}))E.call(ce,ye)&&y(Se,ye,ce[ye]);if(a)for(var ye of a(ce))b.call(ce,ye)&&y(Se,ye,ce[ye]);return Se};const z="@\u2581\u2581@",te="@\u2581@",ae=/]*>/g;function ne(Se){let ce=document.createElement("div");return ce.innerHTML=Se,ce.childNodes.length===0?"":ce.childNodes[0].nodeValue}const se=(Se,ce)=>{Se=Se||"";const ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ie=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ce?Se.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ye,(wt,Ft,Nt,_t,ot,Ht,Kt)=>{const Ze=Ft||_t||Ht,kt=Nt||ot||Kt||"?";return Ve.Z.API_SERVER+"/api/attachments/"+Ze+kt+"&t="+(0,Ae.Jn)(Ze,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Se=Se.replace(Et,(wt,Ft,Nt,_t,ot,Ht,Kt)=>{const Ze=Ft||_t||Ht,kt=Nt||ot||Kt||"?";return Ve.Z.API_SERVER+"/attachments/download/"+Ze+kt+"&t="+(0,Ae.Jn)(Ze,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(ye,(wt,Ft,Nt,_t,ot,Ht,Kt)=>{const Ze=Ft||_t||Ht,kt=Nt||ot||Kt||"?";return Ve.Z.API_SERVER+"/api/attachments/"+Ze+kt+"&t="+(0,Ae.Jn)(Ze,Date.now())+(wt.indexOf(")")>-1?")":"&")}).replace(Ie,(wt,Ft,Nt,_t,ot)=>{const Ht=Ft||_t,Kt=Nt||ot||"";return'"'+Ve.Z.API_SERVER+"/api/attachments/"+Ht+Kt+Ht+Kt+"&t="+(0,Ae.Jn)(Ht,Date.now())}).replace(et,(wt,Ft,Nt,_t,ot)=>{const Ht=Ft||_t,Kt=Nt||ot||"";return"("+Ve.Z.API_SERVER+"/files/uploads/"+Ht+Kt+Ht+Kt+"&t="+(0,Ae.Jn)(Ht,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Se)};var de=({value:Se="",className:ce,showTextOnly:ye,showLines:Ie,style:et={},stylesPrev:Et={},highlightKeywords:wt,showProgramFill:Ft,isProgramFill:Nt,disabledFill:_t=!1,programFillValue:ot,onFillChange:Ht=kt=>{},onFillBlur:Kt=()=>{},onFillFocus:Ze=()=>{}})=>{let kt=String(Se);const[Tt,Pe]=(0,ee.useState)(""),[He,rt]=(0,ee.useState)("office"),[It,At]=(0,ee.useState)([]),on=(0,ee.useRef)("a"+(0,Ne.Z)()),pe={},mt=(Ue,ut,je)=>{const it=document.createElement(Ue===te?"input":"textarea");it.style.width="100%",it.style.height=Ue===te?"40px":"151px",it.rows=5,it.spellcheck=!1,it.name="edu-program-fill",it.placeholder="\u8BF7\u8F93\u5165",it.dataset.id=ut;const Qt=Object.keys(pe).length;return pe[Qt]=it,`${it.outerHTML}`};function ht(Ue){return Ue=Ue.replace(/!\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(/\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(new RegExp("","gs"),""),Ue=Ue.replace(//g,""),Ue=Ue.replace(//g,""),Ue=Ue.replace(new RegExp(".*?<\\/video>","gs"),""),Ue=Ue.replace(new RegExp(".*?<\\/audio>","gs"),""),Ue=Ue.replace(new RegExp(".*?<\\/style>","gs"),""),Ue=Ue.replace(new RegExp(".*?<\\/script>","gs"),""),Ue}const jt=Ue=>Ue.replace(/([\s\S]+?)<\/style>/gim,function(ut,je){let it=je.replace(/(\n|\r)/g,"").split("}"),Qt=[];return it.map(ln=>{ln!=""&&Qt.push(`.${on.current} ${ln}`)}),``}),rn=(0,ee.useMemo)(()=>{try{const it=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ln=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Jt=/\(\/attachments\/download\//g;kt=kt.replace(Jt,"("+Ve.Z.API_SERVER+"/attachments/download/").replace(it,"("+Ve.Z.API_SERVER+"/api/attachments/").replace(Qt,'"'+Ve.Z.API_SERVER+"/api/attachments/").replace(ln,'"'+Ve.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(it){}if(Ft){let it=-1;return kt=kt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Qt,ln,Jt){var sn;return++it,mt(Qt,it,(sn=ot==null?void 0:ot[it])==null?void 0:sn.value.replaceAll("<","<").replaceAll(">",">"))}),`
${jt(kt||"")}
`}let Ue=jt(kt);Ue=(0,Ge.ZP)(Ue);const ut=(0,Ge.ez)();kt.match(/\[TOC\]/)&&(Ue=Ue.replace("

[TOC]

",(0,Ge.Qv)()),(0,Ge.Iy)()),Ue=Ue.replace(/(__special_katext_id_\d+__)/g,(it,Qt)=>{const{type:ln,expression:Jt}=ut[Qt];return(0,Ke.renderToString)(ne(Jt)||"",{displayMode:ln==="block",throwOnError:!1,output:"html"})}),Ue=Ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ge.AL)();const je=document.createElement("div");if(je.innerHTML=Ue,ye)return je.innerText;if(wt){const it=wt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return _e(je,it),je.innerHTML}return setTimeout(()=>tt(),500),je.innerHTML},[kt,wt]);(0,ee.useEffect)(()=>{xt.current&&xt.current.querySelectorAll(["input","textarea"]).forEach(ut=>{ut.oninput=Qn,ut.onblur=ma,ut.onfocus=We})},[It]),(0,ee.useEffect)(()=>{var Ue,ut,je,it,Qt;if(ot!=null&&ot.length)try{const ln=xt.current.querySelectorAll(".edu-program-fill-score"),Jt=xt.current.querySelectorAll('[name="edu-program-fill"]');for(const[sn,Gt]of Jt.entries())Gt.value=((Ue=ot==null?void 0:ot[sn])==null?void 0:Ue.value)||"",((ut=ot==null?void 0:ot[sn])==null?void 0:ut.type)==="warning"?Gt.className="program-fill-warning":((je=ot==null?void 0:ot[sn])==null?void 0:je.type)==="success"?Gt.className="program-fill-success":Gt.className="";for(const[sn,Gt]of ln.entries())Gt.innerHTML=(it=ot==null?void 0:ot[sn])!=null&&it.score?`${(Qt=ot==null?void 0:ot[sn])==null?void 0:Qt.score}\u5206`:"";At(ot)}catch(ln){console.log(ln,"error")}},[ot]);const Qn=Ue=>{It[Ue.target.dataset.id]=It[Ue.target.dataset.id]||{},It[Ue.target.dataset.id].value=Ue.target.value,At([...It]),Ht(It,Ue.target.dataset.id)},ma=Ue=>{It[Ue.target.dataset.id]=It[Ue.target.dataset.id]||{},It[Ue.target.dataset.id].value=Ue.target.value,At([...It]),Kt(It,Ue.target.dataset.id)},We=Ue=>{It[Ue.target.dataset.id]=It[Ue.target.dataset.id]||{},It[Ue.target.dataset.id].value=Ue.target.value,At([...It]),Ze(It,Ue.target.dataset.id)};function _e(Ue,ut){return Ue.childNodes.forEach(je=>{var it;if(je.childNodes.length>0)_e(je,ut);else if(je.nodeName!=="IMG")if(je.innerHTML)je.innerHTML=(it=je.innerHTML)==null?void 0:it.replace(new RegExp(ut,"gi"),'$&');else{const Qt=document.createElement("span");Qt.innerHTML=je.textContent.replace(new RegExp(ut,"gi"),'$&'),je.replaceWith(Qt)}})}const xt=(0,ee.useRef)();Ge.jb.WebkitLineClamp=Ie,Ie&&(et=x(x({},et),Ge.jb));function ze(Ue){let ut=Ue.target;if(ut.tagName.toUpperCase()==="A"){let je=ut.getAttribute("href");if(je.indexOf("office")>-1)Ue.preventDefault(),Pe(je),rt("office");else if(je.indexOf("application/pdf")>-1)Ue.preventDefault(),Pe(je),rt("pdf");else if(je.indexOf("text/html")>-1)Ue.preventDefault(),Pe(je),rt("html");else if(je.startsWith("#")){Ue.preventDefault();let it=document.getElementById(je.replace("#",""));it&&it.scrollIntoView(!0)}}}const tt=()=>{var Ue;const ut=(Ue=xt.current)==null?void 0:Ue.querySelectorAll("video");ut==null||ut.forEach(je=>{if(je.oncontextmenu=()=>!1,je.src.indexOf(".m3u8")>-1&&!je.canPlayType("application/vnd.apple.mpegurl")){if(Ce.ZP.isSupported()){var it=new Ce.ZP;it.loadSource(je.src),it.attachMedia(je)}}})};(0,ee.useEffect)(()=>{if(xt.current&&rn&&rn.match(ae)&&window.PR.prettyPrint(),xt.current)return xt.current.addEventListener("click",ze),()=>{var Ue;(Ue=xt.current)==null||Ue.removeEventListener("click",ze),(0,Ge.AL)(),(0,Ge.Iy)()}},[rn,xt.current,ze]),(0,ee.useEffect)(()=>{var Ue;const ut=je=>{je.preventDefault(),je.clipboardData.setData("text",window.getSelection().toString())};return(Ue=xt.current)==null||Ue.addEventListener("copy",ut),()=>{var je;(je=xt.current)==null||je.removeEventListener("copy",ut)}},[xt.current]);const lt=Ue=>//i.test(Ue||"");return ee.createElement(ee.Fragment,null,ye&&ee.createElement("div",{ref:xt},rn),!ye&&!lt(rn)&&ee.createElement("div",{ref:xt,style:x({},et),className:`${ce||""} ${_t?"disabled-fill":""} markdown-body ${on.current}`,dangerouslySetInnerHTML:{__html:rn}}),!ye&<(rn)&&ee.createElement(Je,{html:rn}),ee.createElement(Te.Z,{close:!0,data:Tt,type:Tt!=null&&Tt.length?He:"",style:x({},Et),onClose:()=>Pe("")}))}},97692:function(ke,Mt,le){"use strict";le.d(Mt,{h:function(){return te}});var ee=le(59301),ue=le(57809),Ge=le(78241),st=le(3113),Ce=le(89780),Ve=le.n(Ce),Ae=le(37036),Ke=le(95625),Ne=Object.defineProperty,Te=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,a=(ae,ne,se)=>ne in ae?Ne(ae,ne,{enumerable:!0,configurable:!0,writable:!0,value:se}):ae[ne]=se,E=(ae,ne)=>{for(var se in ne||(ne={}))Je.call(ne,se)&&a(ae,se,ne[se]);if(Re)for(var se of Re(ne))ie.call(ne,se)&&a(ae,se,ne[se]);return ae},b=(ae,ne)=>Te(ae,bt(ne));const y=ue.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Mt.Z=({callback:ae,onCancel:ne})=>{const[se,de]=(0,ee.useState)("python");function Se(ye){de(z[ye][1])}function ce(ye){ae(ye)}return ee.createElement(Ge.default,b(E({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),ee.createElement(Ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(ue.default,{getPopupContainer:ye=>ye.parentNode,onChange:Se},Object.keys(z).map(ye=>ee.createElement(y,{key:ye,value:ye},z[ye][0])))),ee.createElement(Ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(te,{mode:se})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(st.ZP,{type:"ghost",onClick:ne},"\u53D6\u6D88")))};function te({value:ae,onChange:ne,mode:se,options:de={}}){const Se=(0,ee.useRef)(),[ce,ye]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(ce){let Ie=function(et){const Et=et.getValue();ne&&ne(Et)};return ce.on("change",Ie),()=>{ce.off("change",Ie)}}},[ce,ne]),(0,ee.useEffect)(()=>{ce&&ce.setOption("mode",se)},[ce,se]),(0,ee.useEffect)(()=>{ce&&(ae!==ce.getValue()||ae==="")&&setTimeout(()=>{ce.setValue(ae||"")},300)},[ce,ae]),(0,ee.useEffect)(()=>{if(Se.current&&!ce){const Ie=Ve().fromTextArea(Se.current,E({mode:se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));ye(Ie)}},[Se.current,ce]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Se}))}},12290:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Dt}});var ee=le(59301),ue=le(89780),Ge=le.n(ue),st=le(76374),Ce=le(37036),Ve=le(6313),Ae=le(25717),Ke=le(99498),Ne=le(25419),Te=le(67549),bt=le(85149),Re=({value:Ee="",className:we,showTextOnly:xe,showLines:dt,style:nt={}})=>{const gt=(0,ee.useMemo)(()=>"",[Ee]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:gt}}))},Je=le(59301),ie=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Ee,we,xe)=>we in Ee?ie(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ee[we]=xe,te=(Ee,we)=>{for(var xe in we||(we={}))y.call(we,xe)&&z(Ee,xe,we[xe]);if(b)for(var xe of b(we))x.call(we,xe)&&z(Ee,xe,we[xe]);return Ee},ae=(Ee,we)=>a(Ee,E(we));let ne=[{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 se({onActionCallback:Ee,title:we,icon:xe,actionName:dt,className:nt="",children:gt}){function Lt(){Ee(dt)}return Je.createElement("a",{title:we,className:nt,onClick:Lt},Je.createElement("i",{className:`${xe}`}),gt)}var de=({watch:Ee,showNullButton:we,showNullProgramButton:xe,onActionCallback:dt,fullScreen:nt,insertTemp:gt,hidetoolBar:Lt,extraUse:dn})=>{const tn=[...ne,{title:`${Ee?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ee?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Je.createElement("ul",{className:"markdown-toolbar-container"},!Lt&&tn.map((Rt,Xn)=>Je.createElement("li",{key:Xn},Rt.actionName?Je.createElement(se,ae(te({},Rt),{onActionCallback:dt})):Je.createElement("span",{className:"v-line"}))),we?Je.createElement("li",null,Je.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},Je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?Je.createElement(Je.Fragment,null,Je.createElement("li",null,Je.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},Je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Je.createElement("li",null,Je.createElement(se,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},Je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,gt&&Je.createElement("li",null,Je.createElement(se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${gt}`,onActionCallback:dt},Je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),dn&&Je.createElement("li",null,dn),Je.createElement("li",{className:"btn-full-screen"},Je.createElement(se,{icon:`${nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},Se=le(79346),ce=le(78241),ye=le(92832),Ie=le(3113),et=Object.defineProperty,Et=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,ot=(Ee,we,xe)=>we in Ee?et(Ee,we,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ee[we]=xe,Ht=(Ee,we)=>{for(var xe in we||(we={}))Nt.call(we,xe)&&ot(Ee,xe,we[xe]);if(Ft)for(var xe of Ft(we))_t.call(we,xe)&&ot(Ee,xe,we[xe]);return Ee},Kt=(Ee,we)=>Et(Ee,wt(we));const Ze={labelCol:{span:4},wrapperCol:{span:20}};var kt=({callback:Ee,onCancel:we})=>{function xe(dt){Ee(dt)}return ee.createElement(ce.default,Kt(Ht({},Ze),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),ee.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(ye.default,null)),ee.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(ye.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ie.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Tt=le(97692),Pe=le(28451),He=le(43418),rt=le(95237),It=le(73524),At=le(59301),on=({callback:Ee,onCancel:we})=>{const xe=document.createElement("canvas"),dt=xe.getContext("2d");xe.width=1e3,xe.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,xe.width,xe.height);const nt=xe.toDataURL("image/png");return At.createElement(He.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},At.createElement(rt.Z,{style:{height:"100vh"}},At.createElement(It.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:nt,visible:!0,title:String(Date.now())},onOk:gt=>{Ee({src:gt.url})},onClose:we})))},pe=le(12378);function mt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(mt,go.CommandHandler),mt.prototype.canAlignSelection=function(){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<2)},mt.prototype.alignLeft=function(){var Ee=this.diagram;Ee.startTransaction("aligning left");var we=1/0;Ee.selection.each(function(xe){xe instanceof go.Link||(we=Math.min(xe.position.x,we))}),Ee.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(we,xe.position.y))}),Ee.commitTransaction("aligning left")},mt.prototype.alignRight=function(){var Ee=this.diagram;Ee.startTransaction("aligning right");var we=-1/0;Ee.selection.each(function(xe){if(!(xe instanceof go.Link)){var dt=xe.actualBounds.x+xe.actualBounds.width;we=Math.max(dt,we)}}),Ee.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(we-xe.actualBounds.width,xe.position.y))}),Ee.commitTransaction("aligning right")},mt.prototype.alignTop=function(){var Ee=this.diagram;Ee.startTransaction("alignTop");var we=1/0;Ee.selection.each(function(xe){xe instanceof go.Link||(we=Math.min(xe.position.y,we))}),Ee.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,we))}),Ee.commitTransaction("alignTop")},mt.prototype.alignBottom=function(){var Ee=this.diagram;Ee.startTransaction("aligning bottom");var we=-1/0;Ee.selection.each(function(xe){if(!(xe instanceof go.Link)){var dt=xe.actualBounds.y+xe.actualBounds.height;we=Math.max(dt,we)}}),Ee.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,we-xe.actualBounds.height))}),Ee.commitTransaction("aligning bottom")},mt.prototype.alignCenterX=function(){var Ee=this.diagram,we=Ee.selection.first();if(we){Ee.startTransaction("aligning Center X");var xe=we.actualBounds.x+we.actualBounds.width/2;Ee.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(xe-dt.actualBounds.width/2,dt.actualBounds.y))}),Ee.commitTransaction("aligning Center X")}},mt.prototype.alignCenterY=function(){var Ee=this.diagram,we=Ee.selection.first();if(we){Ee.startTransaction("aligning Center Y");var xe=we.actualBounds.y+we.actualBounds.height/2;Ee.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,xe-dt.actualBounds.height/2))}),Ee.commitTransaction("aligning Center Y")}},mt.prototype.alignColumn=function(Ee){var we=this.diagram;we.startTransaction("align Column"),Ee===void 0&&(Ee=0),Ee=parseFloat(Ee);var xe=new Array;we.selection.each(function(dn){dn instanceof go.Link||xe.push(dn)});for(var dt=0;dt0){for(var dn=gt.elt(Lt-1);dn!==null&&dn.isTreeExpanded&&!dn.isTreeLeaf;){var tn=this._sortTreeChildrenByY(dn);dn=tn.last()}dn!==null&&Ee.select(dn)}else Ee.select(nt)}}else if(xe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var dt=this._sortTreeChildrenByY(we).first();dt!==null&&Ee.select(dt)}else for(;we!==null;){var nt=we.findTreeParentNode();if(nt===null)break;var gt=this._sortTreeChildrenByY(nt),Lt=gt.indexOf(we);if(Ltgt.y?1:nt.xgt.x?1:0}),we},mt.prototype.copyToClipboard=function(Ee){go.CommandHandler.prototype.copyToClipboard.call(this,Ee),this._lastPasteOffset.set(this.pasteOffset)},mt.prototype.pasteFromClipboard=function(){var Ee=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ee,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ee},Object.defineProperty(mt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ee){if(Ee!=="move"&&Ee!=="select"&&Ee!=="scroll"&&Ee!=="tree"&&Ee!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ee);this._arrowKeyBehavior=Ee}}),Object.defineProperty(mt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ee){if(!(Ee instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ee);this._pasteOffset.set(Ee)}});var ht=mt,jt=le(74413),rn=le(43604),Qn=le(99064),ma={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},We=le(24065),_e=le(59301),xt=(Ee,we,xe)=>new Promise((dt,nt)=>{var gt=tn=>{try{dn(xe.next(tn))}catch(Rt){nt(Rt)}},Lt=tn=>{try{dn(xe.throw(tn))}catch(Rt){nt(Rt)}},dn=tn=>tn.done?dt(tn.value):Promise.resolve(tn.value).then(gt,Lt);dn((xe=xe.apply(Ee,we)).next())});function ze({onCancel:Ee,callback:we}){let xe=(0,ee.useRef)(),dt=(0,ee.useRef)(),nt=(0,ee.useRef)(),gt=(0,ee.useRef)(!1);const Lt=(0,ee.useRef)(!1),[dn,tn]=(0,ee.useState)(0);function Rt(){const Qe=pe.bx.make,Yt={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"};xe.current=new pe.S0(dt.current,{padding:20,grid:Qe(pe.s_,"Grid",Qe(pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Qe(pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ct=>{var Xt=ct.diagram.commandHandler.addTopLevelParts(ct.diagram.selection,!0);Xt||ct.diagram.currentTool.doCancel()},commandHandler:Qe(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ct=>{var Xt=ct.subject;Xt.location=Xt.location.copy().snapToGridPoint(ct.diagram.grid.gridOrigin,ct.diagram.grid.gridCellSize),setTimeout(()=>{ct.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ct=>{var Xt=ct.subject;setTimeout(()=>{ct.diagram.commandHandler.editTextBlock()})},LinkRelinked:ct=>{var Xt=ct.parameter.part;Xt.invalidateConnectedLinks();var wn=ct.subject;ct.diagram.toolManager.linkingTool.isForwards?wn.toNode.invalidateConnectedLinks():wn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=Qe(pe.NB,"Auto",{locationSpot:pe.z6.Center,locationObjectName:"SHAPE",desiredSize:new pe.$u(120,60),minSize:new pe.$u(40,40),resizable:!0,resizeCellSize:new pe.$u(10,10),rotatable:!0},new pe.KX("location","loc",pe.E9.parse).makeTwoWay(pe.E9.stringify),new pe.KX("desiredSize","size",pe.$u.parse).makeTwoWay(pe.$u.stringify),Qe(pe.bn,{name:"SHAPE",fill:Yt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pe.z6.AllSides,toSpot:pe.z6.AllSides},new pe.KX("figure"),new pe.KX("fill"),new pe.KX("stroke","borderColor"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Qe(pe.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Qe(pe.al,{margin:1,textAlign:"center",overflow:pe.al.OverflowEllipsis,editable:!0},new pe.KX("text").makeTwoWay(),new pe.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=Qe("ToolTip",Qe(pe.s_,"Vertical",{maxSize:new pe.$u(200,NaN)},Qe(pe.al,{font:"bold 10pt sans-serif",textAlign:"center"},new pe.KX("text")),Qe(pe.al,{font:"10pt sans-serif",textAlign:"center"},new pe.KX("text","details"))));function Tn(ct,Xt){var wn=($t,Sa)=>{$t.handled=!0,$t.diagram.model.commit(wa=>{var Ha=Sa.part.adornedPart,oa=new pe.E9().setRectSpot(Ha.actualBounds,ct);oa.subtract(Ha.location),oa.scale(2,2),oa.x+=Math.sign(oa.x)*130,oa.y+=Math.sign(oa.y)*130,oa.add(Ha.location),oa.snapToGridPoint($t.diagram.grid.gridOrigin,$t.diagram.grid.gridCellSize);var co=wa.copyNodeData(Ha.data);wa.setGroupKeyForNodeData(co,wa.getGroupKeyForNodeData(Ha.data)),wa.addNodeData(co);var Ho={from:Ha.key,to:wa.getKeyForNodeData(co)};wa.addLinkData(Ho);var Fo=$t.diagram.findNodeForData(co);Fo.location=oa,$t.diagram.select(Fo),setTimeout(()=>{$t.diagram.commandHandler.editTextBlock()},20)})};return Qe(pe.bn,{figure:Xt,alignment:ct,alignmentFocus:ct.opposite(),width:ct.equals(pe.z6.Top)||ct.equals(pe.z6.Bottom)?25:18,height:ct.equals(pe.z6.Top)||ct.equals(pe.z6.Bottom)?18:25,fill:"orange",stroke:Yt.white,strokeWidth:4,mouseEnter:($t,Sa)=>Sa.fill="dodgerblue",mouseLeave:($t,Sa)=>Sa.fill="orange",isActionable:!0,click:wn,contextClick:wn})}function Rn(ct){return Qe(pe.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:(Xt,wn)=>wn.fill="dodgerblue",mouseLeave:(Xt,wn)=>wn.fill="orange",click:(Xt,wn)=>{Xt.diagram.commandHandler.showContextMenu(wn.part.adornedPart)}},ct||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=Qe(pe.uz,"Spot",Qe(pe.Vm,{padding:10}),Tn(pe.z6.Top,"TriangleUp"),Tn(pe.z6.Left,"TriangleLeft"),Tn(pe.z6.Right,"TriangleRight"),Tn(pe.z6.Bottom,"TriangleDown"),Rn({alignment:new pe.z6(.75,0)}));function Ot(ct,Xt){return(wn,$t)=>{wn.handled=!0,wn.diagram.model.commit(Sa=>{Sa.set($t.part.adornedPart.data,ct,Xt)})}}function Pt(ct,Xt){return Xt||(Xt="color"),Qe(pe.bn,{width:16,height:16,stroke:"lightgray",fill:ct,margin:1,background:"transparent",mouseEnter:(wn,$t)=>$t.stroke="dodgerblue",mouseLeave:(wn,$t)=>$t.stroke="lightgray",click:Ot(Xt,ct),contextClick:Ot(Xt,ct)})}function Fn(){return[Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Pt(Yt.white,"fill"),Pt(Yt.beige,"fill"),Pt(Yt.extralightblue,"fill"),Pt(Yt.extralightred,"fill"))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Pt(Yt.lightgray,"fill"),Pt(Yt.lightgreen,"fill"),Pt(Yt.lightblue,"fill"),Pt(Yt.lightred,"fill")))]}function qn(){return[Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Pt(Yt.black),Pt(Yt.green),Pt(Yt.blue),Pt(Yt.red))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Pt(Yt.white),Pt(Yt.magenta),Pt(Yt.purple),Pt(Yt.orange)))]}function _n(ct,Xt){return Xt||(Xt="thickness"),Qe(pe.bn,"LineH",{width:16,height:16,strokeWidth:ct,margin:1,background:"transparent",mouseEnter:(wn,$t)=>$t.background="dodgerblue",mouseLeave:(wn,$t)=>$t.background="transparent",click:Ot(Xt,ct),contextClick:Ot(Xt,ct)})}function to(ct,Xt){return Xt||(Xt="dash"),Qe(pe.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ct,margin:1,background:"transparent",mouseEnter:(wn,$t)=>$t.background="dodgerblue",mouseLeave:(wn,$t)=>$t.background="transparent",click:Ot(Xt,ct),contextClick:Ot(Xt,ct)})}function Za(){return[Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",_n(1),_n(2),_n(3),_n(4))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",to(null),to([2,4]),to([4,4])))]}function ja(ct,Xt){return Xt||(Xt="figure"),Qe(pe.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ct,margin:1,background:"transparent",mouseEnter:(wn,$t)=>$t.fill="dodgerblue",mouseLeave:(wn,$t)=>$t.fill="lightgray",click:Ot(Xt,ct),contextClick:Ot(Xt,ct)})}xe.current.nodeTemplate.contextMenu=Qe("ContextMenu",Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",ja("Rectangle"),ja("RoundedRectangle"),ja("Ellipse"),ja("Diamond"))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",ja("Parallelogram2"),ja("ManualOperation"),ja("Procedure"),ja("Cylinder1"))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",ja("Terminator"),ja("CreateRequest"),ja("Document"),ja("TriangleDown"))),Fn(),qn(),Za()),xe.current.groupTemplate=Qe(pe.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:pe.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ct,Xt)=>{var wn=Xt.addMembers(Xt.diagram.selection,!0);wn||Xt.diagram.currentTool.doCancel()},avoidable:!1},new pe.KX("location","loc",pe.E9.parse).makeTwoWay(pe.E9.stringify),Qe(pe.s_,"Auto",{name:"BODY"},Qe(pe.bn,{parameter1:10,fill:Yt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:pe.z6.AllSides,toSpot:pe.z6.AllSides},new pe.KX("fill"),new pe.KX("stroke","color"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Qe(pe.Vm,{background:"transparent",margin:20})),Qe(pe.al,{alignment:pe.z6.Top,alignmentFocus:pe.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new pe.KX("text"),new pe.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=Qe(pe.uz,"Spot",Qe(pe.s_,"Auto",Qe(pe.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Qe(pe.Vm,{margin:1.5})),Rn({alignment:pe.z6.TopRight,alignmentFocus:pe.z6.BottomRight})),xe.current.groupTemplate.contextMenu=Qe("ContextMenu",Fn(),qn(),Za()),xe.current.linkTemplate=Qe(pe.rU,{layerName:"Foreground",routing:pe.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new pe.KX("fromSpot","fromSpot",pe.z6.parse),new pe.KX("toSpot","toSpot",pe.z6.parse),new pe.KX("fromShortLength","dir",ct=>ct>=1?10:0),new pe.KX("toShortLength","dir",ct=>ct>=1?10:0),new pe.KX("points").makeTwoWay(),Qe(pe.bn,{strokeWidth:2},new pe.KX("stroke","color"),new pe.KX("strokeWidth","thickness"),new pe.KX("strokeDashArray","dash")),Qe(pe.bn,{segmentIndex:0,segmentOffset:new pe.E9(15,0),segmentOrientation:pe.rU.OrientAlong,alignmentFocus:pe.z6.Right,figure:"circle",width:10,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",ct=>ct===1)),Qe(pe.bn,{segmentIndex:-1,segmentOffset:new pe.E9(-10,6),segmentOrientation:pe.rU.OrientPlus90,alignmentFocus:pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",ct=>ct>=1),new pe.KX("width","thickness",ct=>7+3*ct),new pe.KX("height","thickness",ct=>7+3*ct),new pe.KX("segmentOffset","thickness",ct=>new pe.E9(-15,4+1.5*ct))),Qe(pe.bn,{segmentIndex:0,segmentOffset:new pe.E9(15,-6),segmentOrientation:pe.rU.OrientMinus90,alignmentFocus:pe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new pe.KX("fill","color"),new pe.KX("visible","dir",ct=>ct===2),new pe.KX("width","thickness",ct=>7+3*ct),new pe.KX("height","thickness",ct=>7+3*ct),new pe.KX("segmentOffset","thickness",ct=>new pe.E9(-15,4+1.5*ct))),Qe(pe.al,{alignmentFocus:new pe.z6(0,1,-4,0),editable:!0},new pe.KX("text").makeTwoWay(),new pe.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=Qe(pe.uz,Qe(pe.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ia(2)},new pe.KX("pathPattern","thickness",ia)),Rn({alignmentFocus:new pe.z6(0,0,-6,-4)}));function ia(ct){return Qe(pe.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ct+4).toString()+" H3"})}function Bn(ct){var Xt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ct===0?Xt="M0 0 M16 16 M0 8 L16 8":ct===2&&(Xt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Qe(pe.bn,{geometryString:Xt,margin:2,background:"transparent",mouseEnter:(wn,$t)=>$t.background="dodgerblue",mouseLeave:(wn,$t)=>$t.background="transparent",click:Ot("dir",ct),contextClick:Ot("dir",ct)})}function aa(ct){var Xt=(wn,$t)=>{wn.handled=!0,wn.diagram.model.commit(Sa=>{var wa=$t.part.adornedPart;Sa.set(wa.data,ct?"toSpot":"fromSpot",pe.z6.stringify(pe.z6.AllSides)),(ct?wa.toNode:wa.fromNode).invalidateConnectedLinks()})};return Qe(pe.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wn,$t)=>$t.background="dodgerblue",mouseLeave:(wn,$t)=>$t.background="transparent",click:Xt,contextClick:Xt})}function at(ct,Xt){var wn=0,$t=pe.z6.RightSide;ct.equals(pe.z6.Top)?(wn=270,$t=pe.z6.TopSide):ct.equals(pe.z6.Left)?(wn=180,$t=pe.z6.LeftSide):ct.equals(pe.z6.Bottom)&&(wn=90,$t=pe.z6.BottomSide),Xt||(wn-=180);var Sa=(wa,Ha)=>{wa.handled=!0,wa.diagram.model.commit(oa=>{var co=Ha.part.adornedPart;oa.set(co.data,Xt?"toSpot":"fromSpot",pe.z6.stringify($t)),(Xt?co.toNode:co.fromNode).invalidateConnectedLinks()})};return Qe(pe.bn,{alignment:ct,alignmentFocus:ct.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wn,background:"transparent",mouseEnter:(wa,Ha)=>Ha.background="dodgerblue",mouseLeave:(wa,Ha)=>Ha.background="transparent",click:Sa,contextClick:Sa})}xe.current.linkTemplate.contextMenu=Qe("ContextMenu",qn(),Za(),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Bn(0),Bn(1),Bn(2))),Qe("ContextMenuButton",Qe(pe.s_,"Horizontal",Qe(pe.s_,"Spot",aa(!1),at(pe.z6.Top,!1),at(pe.z6.Left,!1),at(pe.z6.Right,!1),at(pe.z6.Bottom,!1)),Qe(pe.s_,"Spot",{margin:new pe.Zt(0,0,0,2)},aa(!0),at(pe.z6.Top,!0),at(pe.z6.Left,!0),at(pe.z6.Right,!0),at(pe.z6.Bottom,!0)))));const Io=`{ "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 No=["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 na(ct){return console.log("shapeName:",ct),No.indexOf(ct)>=0}var Zn=new pe.YI(nt.current,{maxSelectionCount:1,linkTemplate:Qe(pe.rU,{locationSpot:pe.z6.Center,selectionAdornmentTemplate:Qe(pe.uz,"Link",{locationSpot:pe.z6.Center},Qe(pe.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Qe(pe.bn,{toArrow:"Standard",stroke:null}))},{routing:pe.rU.AvoidsNodes,curve:pe.rU.JumpOver,corner:5,toShortLength:4},new pe.KX("points"),Qe(pe.bn,{isPanelMain:!0,strokeWidth:2}),Qe(pe.bn,{toArrow:"Standard",stroke:null})),model:new pe.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...pe.bn.getFigureGenerators().toArray().map(ct=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ct.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(ct){var Xt;const wn=ct.subject.part;var $t=(Xt=document.activeElement)==null?void 0:Xt.value;typeof $t=="string"&&$t.trim()===""&&xe.current.model.commit(function(Sa){Sa.set(wn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),Zn.nodeTemplate=Qe(pe.NB,"Auto",{locationSpot:pe.z6.Center},new pe.KX("location","location",pe.E9.parse).makeTwoWay(pe.E9.stringify),Qe(pe.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 pe.KX("stroke").makeTwoWay(),new pe.KX("fill").makeTwoWay(),new pe.KX("figure")),Qe(pe.al,{margin:new pe.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new pe.$u(16,16),maxSize:new pe.$u(10,NaN),textAlign:"center",editable:!0},new pe.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=Qe(pe.s_,"Grid",Qe(pe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Qe(pe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const Xn=()=>xt(this,null,function*(){var Qe,Yt=xe.current.makeImage();const Tn=yield(0,Qn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Yt.src,file_data:JSON.stringify({login:(Qe=(0,We.eY)())==null?void 0:Qe.login,data:JSON.parse(xe.current.model.toJson())})}});we({src:Tn.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{Rt()},500),tn(dn+1),()=>{xe.current=null}),[]),_e.createElement("div",{ref:Lt,className:gt.current?`${ma.maxH60} body-overflow-initial`:"body-overflow-initial"},_e.createElement(He.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!dn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:_e.createElement(rt.Z,null,_e.createElement(rn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),_e.createElement(rn.Z,{onClick:()=>{var Qe,Yt,Tn=xe.current.selection.first();if(gt.current=!gt.current,document.activeElement&&Tn){let Rn=(Yt=(Qe=document.activeElement)==null?void 0:Qe.value)==null?void 0:Yt.trim();typeof Rn=="string"&&xe.current.model.commit(function(Ot){Ot.set(Tn.data,"text",Rn||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}tn(dn+1)}},_e.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ee},_e.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ma.flowChartWrp},_e.createElement("div",{style:{display:"flex",height:"100%"}},_e.createElement("div",{style:{width:"300px",height:"100%"}},_e.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),_e.createElement("div",{style:{height:"calc(100% - 50px)"},className:ma.myPaletteDiv,ref:nt})),_e.createElement("div",{style:{flex:1,position:"relative"}},_e.createElement("div",{ref:dt,style:{height:"80vh"}}))),_e.createElement("div",{className:"tr"},_e.createElement(Ie.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var tt=ze,lt=le(5112),Ue=le(5871);const ut=lt.ZP.Group,je={margin:"0 8px"};var it=({callback:Ee,onCancel:we})=>{function xe(dt){Ee(dt)}return ee.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:je},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:je},"\u884C\u6570"),ee.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Ue.Z,null)),ee.createElement("span",{style:je},"\u5217\u6570"),ee.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Ue.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:je},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(ce.default.Item,{name:"align"},ee.createElement(ut,null,ee.createElement(lt.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(lt.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(lt.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(lt.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ie.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Qt=le(78673),ln=le(80727),Jt=le.n(ln),Gt=(0,ee.forwardRef)(({use3d:Ee,width:we,height:xe,callback:dt,showSaveButton:nt},gt)=>{const Lt=(0,ee.useRef)(),dn=(0,ee.useRef)(),[tn,Rt]=(0,ee.useState)(!1),Xn=(0,ee.useRef)({id:Lt,appName:"graphing",width:we||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{dn.current=new(Jt())(Xn.current,!0),window.onload=function(){dn.current.inject("applet_container")}},[]);const Qe=()=>{var Yt=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(Yt),Yt};return(0,ee.useEffect)(()=>{Xn.current.appName=tn?"3D":"graphing",dn.current.inject("applet_container")},[tn]),(0,ee.useEffect)(()=>{Rt(Ee)},[Ee]),(0,ee.useImperativeHandle)(gt,()=>({getImgData:Qe})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Lt}),ee.createElement(rt.Z,{align:"middle"},ee.createElement(rn.Z,{flex:1},ee.createElement(Qt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:tn,onChange:Yt=>Rt(Yt)})),ee.createElement(rn.Z,null,ee.createElement(Ie.ZP,{size:"large",onClick:Qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Wt=le(41588),Nn=le(8591);const Dn="link",kn="upload-image",Cn="add-flowchart",Kn="draw-image",hn="add-flowchart",Wn="code-block",eo="add-table",ya="------------",fa={default:ya,left:`:${ya}`,center:`:${ya}:`,right:`${ya}:`};var ha=le(58856);function Da(){}let Oa=0;const Ma=1e4,ua="\u2581",Pn="@\u2581\u2581@",bn="@\u2581@",ho=` **\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`,wo=["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 Bo(Ee){return/^\d+$/.test(Ee)?`${Ee}px`:Ee}const Go=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Zo={[Go+"-B"]:"bold",[Go+"-I"]:"italic"},vt={[Dn]:"\u6DFB\u52A0\u94FE\u63A5",[Wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[kn]:"\u6DFB\u52A0\u56FE\u7247",[Kn]:"\u6DFB\u52A0\u753B\u56FE",[Cn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[eo]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dt=({defaultValue:Ee="",onChange:we,width:xe="100%",height:dt=400,miniToolbar:nt=!1,isFocus:gt=!1,watch:Lt,insertTemp:dn,mode:tn="markdown",id:Rt="markdown-editor-id",showResizeBar:Xn=!1,noStorage:Qe=!1,showNullButton:Yt=!1,showNullProgramButton:Tn=!1,hidetoolBar:Rn=!1,fullScreen:Ot=!1,onBlur:Pt,onCMBeforeChange:Fn,onFullScreen:qn,className:_n="",disablePaste:to=!1,disabled:Za=!1,disabledFill:ja=!1,placeholder:ia="",values:Bn="",extraUse:aa})=>{const[at,Io]=(0,ee.useState)(null),[No,na]=(0,ee.useState)(Ee),[Zn,ct]=(0,ee.useState)(Lt),[Xt,wn]=(0,ee.useState)(Ot),[$t,Sa]=(0,ee.useState)(""),[wa,Ha]=(0,ee.useState)(0),[oa,co]=(0,ee.useState)(dt),[Ho,Fo]=(0,ee.useState)(!1),[sr,dr]=(0,ee.useState)(0),[Wr,vr]=(0,ee.useState)(0),$o=(0,ee.useRef)(),ur=(0,ee.useRef)(),Br=(0,ee.useRef)(),cr=(0,ee.useRef)();(0,ee.useEffect)(()=>{const En=window.scrollY||window.pageYOffset;na(Bn),at==null||at.setValue(Bn),window.scrollTo(0,En)},[Bn]),(0,ee.useEffect)(()=>{qn==null||qn(Xt)},[Xt]),(0,ee.useEffect)(()=>{if($o.current){let En=function(vn,Sn){var Vn;if(to){Sn.preventDefault();return}const Ia=Sn.clipboardData;if(Ia){const lo=Ia.types.toString(),Qa=Ia.items;if(lo==="Files"||Ia.types.indexOf("Files")>-1){if(Sn.preventDefault(),tn=="stex")return;try{let qt=Qa[1];((Vn=Qa[0])==null?void 0:Vn.kind)==="file"&&(qt=Qa[0]);const no=qt.getAsFile(),Yo=no.name.split(".").pop();(0,Pe.I)(no,Ua=>{var Wo,yr,er;Ua.id?((Wo=no==null?void 0:no.type)==null?void 0:Wo.indexOf("image"))>-1?Vt.replaceSelection(``):((yr=no==null?void 0:no.type)==null?void 0:yr.indexOf("video"))>-1?Vt.replaceSelection(``):((er=no==null?void 0:no.type)==null?void 0:er.indexOf("pdf"))>-1?Vt.replaceSelection(`
${no.name}`):wo.includes(Yo)?Vt.replaceSelection(`${no.name}`):Vt.replaceSelection(`[${no.name}](/api/attachments/${Ua.id}?type=${Ua.content_type})`):(Ua==null?void 0:Ua.status)===401&&(document.location.href="/user/login")})}catch(qt){Nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Vt=Ge().fromTextArea($o.current,{mode:tn,lineNumbers:!nt,lineWrapping:!0,value:Ee,autoCloseTags:!0,autoCloseBrackets:!0});return Vt.on("keyup",function(vn,Sn){Sn.keyCode===8&&(vn.getValue()==""?Vt.setOption("placeholder",ia):Vt.setOption("placeholder",null))}),Vt.on("keydown",function(vn,Sn){if(Sn.keyCode===8){var Vn=Er(vn);Vn&&Sn.preventDefault()}}),gt&&Vt.focus(),Vt.on("paste",En),Za&&Vt.on("beforeChange",function(vn,Sn){(Sn.origin==="paste"||Sn.origin==="+input")&&Sn.cancel()}),Io(Vt),()=>{Vt.off("paste",En)}}},[]);const Pr=(0,ee.useCallback)(()=>{if(ur.current)try{}catch(En){console.log(En,"---- to set md editor body height")}},[oa,ur,Xt]);(0,ee.useEffect)(()=>{function En(){let Vt=new st.Z(vn=>{for(let Sn of vn)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&(Pr(),at.setSize("100%","100%"),at.refresh())});return Vt.observe($o.current.parentElement),Vt}if(at){const Vt=En();return()=>{var vn,Sn;(vn=$o.current)!=null&&vn.parentElement&&Vt.unobserve((Sn=$o.current)==null?void 0:Sn.parentElement)}}},[at,Pr]),(0,ee.useEffect)(()=>{if(at){let En=[];for(const[Vt,vn]of Object.entries(Zo)){let Sn={[Vt]:()=>{Ir(vn)}};En.push(Sn),at.addKeyMap(Sn)}return()=>{for(let Vt of En)at.removeKeyMap(Vt)}}},[at]),(0,ee.useEffect)(()=>{Ot!==Xt&&wn(Ot)},[Ot]),(0,ha.Z)(()=>{if(!Qe&&wa>0){let En=new Date().getTime(),Vt=window.sessionStorage.getItem(Rt);En>=wa+Ma&&(!Vt||Vt!==No)&&(window.sessionStorage.setItem(Rt,No),Fo(!0))}},Ma),(0,ee.useEffect)(()=>{ct(Lt)},[at,Lt]),(0,ee.useEffect)(()=>{at&>&&at.focus()},[at,gt]),(0,ee.useEffect)(()=>{if(Zn&&at){let En=function(vn){let Sn=vn.target;if(cr.current){let Vn=Sn.scrollTop/Sn.scrollHeight;cr.current.scrollTop=cr.current.scrollHeight*Vn}};const Vt=at.getScrollerElement();return Vt.addEventListener("scroll",En),()=>{Vt.removeEventListener("scroll",En)}}},[at,Zn]),(0,ee.useEffect)(()=>{if(at&&Fn){let En=function(Vt,vn){Fn(Vt,vn)};return at.on("beforeChange",En),()=>{at.off("beforeChange",En)}}},[at,Fn]),(0,ee.useEffect)(()=>{if(at&&Pt){let En=function(){Pt(at.getValue())};return at.on("blur",En),()=>{at.off("blur",En)}}},[at,Pt]);function Er(En,Vt){var vn=En.getDoc(),Sn=vn.getCursor(),Vn=vn.getLine(Sn.line),Ia=Vn.charAt(Sn.ch-1),lo=Vn.lastIndexOf("@\u2581@",Sn.ch),Qa=Vn.lastIndexOf("@\u2581\u2581@",Sn.ch),qt=lo>Qa?lo:Qa,no=lo>Qa?3:4;if(Pn.indexOf(Ia)===-1)return null;if(console.log("change1:",Vt,En,Vn,Sn,qt,lo,Qa,Ia),qt>=0&&Sn.ch-qt<5){var Yo=qt+no;return vn.replaceRange("",{line:Sn.line,ch:qt},{line:Sn.line,ch:Yo}),{line:Sn.line,ch:Yo}}return null}(0,ee.useEffect)(()=>{if(at){let En=function(Vt,vn){const Sn=Vt.getValue();na(Sn),Ha(new Date().getTime()),Vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Tn?we(Sn,zr(Sn)):we(Sn))};return at.on("change",En),()=>{at.off("change",En)}}},[at,we]),(0,ee.useEffect)(()=>{if(at)if(Ee==null)at.setValue(""),na("");else{const En=window.scrollY||window.pageYOffset;Ee!==at.getValue()&&(at.setValue(Ee),na(Ee),at.setCursor(Za?1:at.lineCount(),0),window.scrollTo(0,En))}},[at,Ee]);const Ir=(0,ee.useCallback)(En=>{const Vt=at.getCursor(),vn=at.getSelection();let Sn=vn.split(` `);switch(En){case"bold":return at.replaceSelection("**"+vn+"**"),vn===""&&at.setCursor(Vt.line,Vt.ch+2),at.focus();case"italic":return at.replaceSelection("*"+vn+"*"),vn===""&&at.setCursor(Vt.line,Vt.ch+1),at.focus();case"code":return at.replaceSelection("`"+vn+"`"),vn===""&&at.setCursor(Vt.line,Vt.ch+1),at.focus();case"inline-latex":return Sa("inline-latex"),at.focus();case"latex":return at.replaceSelection("```latex\n"+vn+"\n```"),at.setCursor(Vt.line+1,vn.length+1),at.focus();case"line-break":return at.replaceSelection(`
`),at.focus();case"list-ul":return vn===""?at.replaceSelection("- "+vn):at.replaceSelection(Sn.map(Vn=>Vn===""?"":`- ${Vn}`).join(` `)),at.focus();case"list-ol":return vn===""?at.replaceSelection("1. "+vn):at.replaceSelection(Sn.map((Vn,Ia)=>Vn===""?"":`${Ia+1}. ${Vn}`).join(` `)),at.focus();case"add-null-ch":return vn===""&&at.setCursor(Vt.line,Vt.ch),at.replaceSelection(ua),at.focus();case"add-signal":return vn===""&&at.setCursor(Vt.line,Vt.ch),at.replaceSelection(bn),at.focus();case"add-multiple":return vn===""&&at.setCursor(Vt.line,Vt.ch),at.replaceSelection(Pn),at.focus();case"inster-template-1":return vn===""&&at.setCursor(Vt.line,Vt.ch),at.replaceSelection(ho),at.focus();case"eraser":return at.setValue(""),at.focus();case"trigger-watch":return ct(!Zn),at.focus();case"trigger-full-screen":return wn(!Xt),at.focus();case Dn:Sa(Dn);return;case Wn:Sa(Wn);return;case kn:Sa(kn);return;case Kn:Sa(Kn);return;case"maths-latex":Sa("maths-latex");return;case Cn:Sa(Cn);return;case eo:Sa(eo);return;default:throw new Error}},[at,Zn,Xt]),Qo=(0,ee.useCallback)((En,Vt)=>{var vn,Sn,Vn,Ia,lo,Qa;switch(Sa(""),$t){case Dn:const{title:Wo,link:yr}=En;return at.replaceSelection(`[${Wo}](${yr})`),at.focus();case Wn:const{language:er,content:ir}=En;return at.replaceSelection(["```"+er,ir,"```"].join(` `)),at.focus();case"maths-latex":for(var qt=atob(En),no=new Uint8Array(qt.length),Yo=0;Yo{Vo.id?at.replaceSelection(`![,](/api/attachments/${Vo.id}?type=${Vo.content_type})`):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":at.replaceSelection("`$$"+En+"$$`");break;case kn:case Kn:case hn:const{src:tr,alt:ri}=En,Ca=Vt,wr=(Vn=(Sn=(vn=Ca==null?void 0:Ca.name)==null?void 0:vn.split("."))==null?void 0:Sn.pop)==null?void 0:Vn.call(Sn);return((Ia=Ca==null?void 0:Ca.type)==null?void 0:Ia.indexOf("image"))>-1||!(Ca!=null&&Ca.type)?Ca!=null&&Ca.align||Ca!=null&&Ca.width?at.replaceSelection(`

${ri||

`):at.replaceSelection(`${ri||`):((lo=Ca==null?void 0:Ca.type)==null?void 0:lo.indexOf("video"))>-1?at.replaceSelection(``):((Qa=Ca==null?void 0:Ca.type)==null?void 0:Qa.indexOf("pdf"))>-1?at.replaceSelection(`${Ca.name}`):wo.includes(wr)?at.replaceSelection(`${Ca.name}`):at.replaceSelection(`[${Ca.name}](${tr})`),at.focus();case eo:const{row:pi,col:jr,align:Xr}=En;let qr=` `;for(let Vo=0;Vo{switch($t){case Dn:return ee.createElement(kt,{callback:Qo,onCancel:Uo});case Wn:return ee.createElement(Tt.Z,{callback:Qo,onCancel:Uo});case kn:return ee.createElement(Pe.Z,{callback:Qo,onCancel:Uo});case Cn:return ee.createElement(tt,{callback:Qo,onCancel:Uo});case eo:return ee.createElement(it,{callback:Qo,onCancel:Uo});case"maths-latex":return ee.createElement(Gt,{showSaveButton:!0,callback:Qo});case"inline-latex":return ee.createElement(Wt.Z,{showSaveButton:!0,callback:Qo});default:return null}},[$t]);function Uo(){Sa("")}(0,ee.useEffect)(()=>{if(Br.current){let En=function(lo){Vn=!0,Ia=lo.pageY},Vt=function(){Vn=!1},vn=function(lo){if(Vn){let Qa=lo.pageY-Ia;Qa<0&&(Qa=0),Qa>300&&(Qa=300);let qt=dt+Qa+"px";co(qt)}},Sn=Br.current,Vn=!1,Ia=0;return Sn.addEventListener("mousedown",En),document.addEventListener("mousemove",vn),document.addEventListener("mouseup",Vt),()=>{Sn.removeEventListener("mousedown",En),document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",Vt)}}},[at,Br]),(0,ee.useEffect)(()=>{co(dt)},[dt]);const Si=Bo(xe),Vr=Bo(oa),oi={width:Si,height:Vr},Ci=(0,ee.useMemo)(()=>{if(wa){let En=new Date(wa),Vt=En.getHours(),vn=En.getMinutes(),Sn=En.getSeconds();return Vt=Vt<10?"0"+Vt:Vt,vn=vn<10?"0"+vn:vn,Sn=Sn<10?"0"+Sn:Sn,`${Vt}:${vn}:${Sn}`}return 0},[wa]),zr=En=>{const Vt=[];if(Tn){let vn=-1;En=En.replace(/(@▁▁@|@▁@)/g,function(Sn,Vn,Ia){Vt.push({multiLine:Sn!==bn})})}return Vt};function bi(){window.sessionStorage.removeItem(Rt),Fo(!1),Ha(0)}function Li(){Fo(!1),Ha(0),at.setValue(window.sessionStorage.getItem(Rt))}(0,ee.useEffect)(()=>{vt[$t]&&$t!==Kn&&$t!==Cn&&setTimeout(()=>{const En=document.getElementsByClassName("markdown-popup-form")[0],Vt=window.innerWidth/2-En.offsetWidth/2,vn=window.innerHeight/2-En.offsetHeight/2;dr(Vt),vr(vn)},0)},[$t]);const Jr=En=>{En.preventDefault();const Vt=En.clientX-sr,vn=En.clientY-Wr;document.body.onmousemove=Sn=>{let Vn=Sn.clientX-Vt,Ia=Sn.clientY-vn;const lo=document.getElementsByClassName("markdown-popup-form")[0],Qa=window.innerWidth-lo.offsetWidth,qt=window.innerHeight-lo.offsetHeight;Vn=Math.max(0,Math.min(Vn,Qa)),Ia=Math.max(0,Math.min(Ia,qt)),Kr(Sn.clientX,Sn.clientY,Vt,vn)&&(dr(Vn),vr(Ia))},document.body.onmouseup=function(){document.body.onmousemove=null}},Kr=(En,Vt,vn,Sn)=>{const Vn=document.body.clientHeight,Ia=document.body.clientWidth;return En<20&&vn>En||En>Ia-20&&vnVt||Vt>Vn-20&&Snce in Se?bt(Se,ce,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Se[ce]=ye,y=(Se,ce)=>{for(var ye in ce||(ce={}))a.call(ce,ye)&&b(Se,ye,ce[ye]);if(ie)for(var ye of ie(ce))E.call(ce,ye)&&b(Se,ye,ce[ye]);return Se},x=(Se,ce)=>Re(Se,Je(ce));const{useForm:z}=ee.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var ne=({callback:Se,onCancel:ce})=>{const[ye]=z();let Ie=(0,Ne.useRef)();function et(Ft){Ie.current.width=ye.getFieldValue("width"),Ie.current.align=ye.getFieldValue("align"),Se(Ft,Ie.current)}function Et(Ft,Nt){if(Ft.status===-1){ue.ZP.error(Ft.message);return}ye.setFieldsValue({src:`/api/attachments/${Ft.id}`,type:Nt.type})}function wt(Ft){let Nt=Ft.target.files[0];Ie.current=Nt,de(Nt,Et)}return Te.createElement(ee.default,x(y({form:ye},ae),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),Te.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Te.createElement(Ge.default,{style:te})),Te.createElement(se,{onFileChange:wt}))),Te.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Ge.default,{style:{width:264}})),Te.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(st.Z,null,Te.createElement(ee.default.Item,{name:"width",style:{margin:0}},Te.createElement(Ce.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Ve.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"}]})),Te.createElement("aside",null,Te.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(Ae.ZP,{type:"default",onClick:ce},"\u53D6\u6D88"))))};function se({onFileChange:Se}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:Se}))}function de(Se,ce){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");let ye=new FormData;ye.append("editormd-image-file",Se),ye.append("file_param_name","editormd-image-file"),ye.append("byxhr","true");var Ie=new window.XMLHttpRequest;Ie.withCredentials=!0,Ie.addEventListener("load",function(et){ce(JSON.parse(et.target.responseText),Se)},!1),Ie.addEventListener("error",function(et){console.error(et)},!1),Ie.open("POST",`${Ke.KI}/api/attachments.json`),Ie.send(ye)}},79346:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Ge}});var ee=le(59301),ue=le(4676);class Ge extends ee.Component{constructor(Ce){super(Ce);const Ve=window.document;this.node=Ve.createElement("div"),Ve.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,ue.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(ke,Mt,le){"use strict";le.d(Mt,{SV:function(){return xt},ZP:function(){return _e}});var ee=le(59301),ue=le(76374);const Ge={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},st={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ce={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Ve={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Ae={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ke=le(53184),Ne=le.n(Ke),Te=Object.defineProperty,bt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,E=(ze,tt,lt)=>tt in ze?Te(ze,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[tt]=lt,b=(ze,tt)=>{for(var lt in tt||(tt={}))ie.call(tt,lt)&&E(ze,lt,tt[lt]);if(Je)for(var lt of Je(tt))a.call(tt,lt)&&E(ze,lt,tt[lt]);return ze},y=(ze,tt)=>bt(ze,Re(tt)),x=(ze,tt,lt)=>new Promise((Ue,ut)=>{var je=ln=>{try{Qt(lt.next(ln))}catch(Jt){ut(Jt)}},it=ln=>{try{Qt(lt.throw(ln))}catch(Jt){ut(Jt)}},Qt=ln=>ln.done?Ue(ln.value):Promise.resolve(ln.value).then(je,it);Qt((lt=lt.apply(ze,tt)).next())});const z={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},te=(ze,tt)=>tt.map(lt=>({label:lt,kind:ze.languages.CompletionItemKind.Keyword,insertText:lt})),ae=ze=>Object.keys(z.tables).map(tt=>({label:tt,kind:ze.languages.CompletionItemKind.Variable,insertText:tt})),ne=(ze,tt)=>{const lt=z.tables[ze];return lt?lt.map(Ue=>({label:Ue,kind:tt.languages.CompletionItemKind.Field,insertText:Ue})):[]};function se(ze,tt,lt,Ue,ut){let je=tt.getWordUntilPosition(lt),it={startLineNumber:lt.lineNumber,endLineNumber:lt.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},Qt=Ue.map(ln=>({label:ln,kind:ze.languages.CompletionItemKind.Keyword,insertText:ln,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:it}));return ut.map(ln=>{Qt.push(y(b({},ln),{range:it}))}),Qt}var de=ze=>{z.languages.map(ut=>(ze.languages.registerDocumentFormattingEditProvider(ut,{provideDocumentFormattingEdits(je,it,Qt){return x(this,null,function*(){const ln=Ne()(je.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:je.getFullModelRange(),text:ln}]})}}),ut));const tt=Ce.quickKey.map(ut=>({label:ut.label,kind:ze.languages.CompletionItemKind.Method,insertText:ut.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),lt=Ve.quickKey.map(ut=>({label:ut.label,kind:ze.languages.CompletionItemKind.Method,insertText:ut.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ue=st.quickKey.map(ut=>({label:ut.label,kind:ze.languages.CompletionItemKind.Method,insertText:ut.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet}));ze.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ut,je){var it=ut.getWordUntilPosition(je),Qt={startLineNumber:je.lineNumber,endLineNumber:je.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn},ln=ut.getLineContent(je.lineNumber).substring(it.startColumn-2,it.endColumn);return{suggestions:[...Ce.keywords.map(Jt=>({label:Jt,kind:ze.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...Ce.quickKey.map(Jt=>({label:Jt.label,kind:ze.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:ln.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}}),ze.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ut,je){var it=ut.getWordUntilPosition(je),Qt={startLineNumber:je.lineNumber,endLineNumber:je.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn};return{suggestions:[...Ge.keywords.map(ln=>({label:ln,kind:ze.languages.CompletionItemKind.Function,documentation:ln,insertText:ln,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}}),ze.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ut,je){var it=ut.getWordUntilPosition(je),Qt={startLineNumber:je.lineNumber,endLineNumber:je.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn},ln=ut.getLineContent(je.lineNumber).substring(it.startColumn-2,it.endColumn);return{suggestions:[...st.keywords.map(Jt=>({label:Jt,kind:ze.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...st.quickKey.map(Jt=>({label:Jt.label,kind:ze.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:ln.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}}),ze.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ut,je){var it=ut.getWordUntilPosition(je),Qt={startLineNumber:je.lineNumber,endLineNumber:je.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn},ln=ut.getLineContent(je.lineNumber).substring(it.startColumn-2,it.endColumn);return{suggestions:[...Ae.keywords.map(Jt=>({label:Jt,kind:ze.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...Ae.quickKey.map(Jt=>({label:Jt.label,kind:ze.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:ln.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}}),ze.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ut,je){var it=ut.getWordUntilPosition(je),Qt={startLineNumber:je.lineNumber,endLineNumber:je.lineNumber,startColumn:it.startColumn,endColumn:it.endColumn},ln=ut.getLineContent(je.lineNumber).substring(it.startColumn-2,it.endColumn);return{suggestions:[...Ve.keywords.map(Jt=>({label:Jt,kind:ze.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt})),...Ve.quickKey.map(Jt=>({label:Jt.label,kind:ze.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:ln.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qt}))]}}})};const Se="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ce=Object.defineProperty,ye=(ze,tt,lt)=>tt in ze?ce(ze,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[tt]=lt,Ie=(ze,tt,lt)=>ye(ze,typeof tt!="symbol"?tt+"":tt,lt);const et=class Wl{constructor(tt,lt,Ue){this.placeholder=tt,this.editor=lt,this.monaco=Ue,lt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Wl.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ie(et,"ID","editor.widget.placeholderHint");var wt=et,Ft=le(96236),Nt=le(8591),_t=le(6848),ot=le(89392),Ht=le(34604),Kt=le(56102),Ze=Object.defineProperty,kt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,It=(ze,tt,lt)=>tt in ze?Ze(ze,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ze[tt]=lt,At=(ze,tt)=>{for(var lt in tt||(tt={}))He.call(tt,lt)&&It(ze,lt,tt[lt]);if(Pe)for(var lt of Pe(tt))rt.call(tt,lt)&&It(ze,lt,tt[lt]);return ze},on=(ze,tt)=>kt(ze,Tt(tt)),pe=(ze,tt)=>{var lt={};for(var Ue in ze)He.call(ze,Ue)&&tt.indexOf(Ue)<0&&(lt[Ue]=ze[Ue]);if(ze!=null&&Pe)for(var Ue of Pe(ze))tt.indexOf(Ue)<0&&rt.call(ze,Ue)&&(lt[Ue]=ze[Ue]);return lt},mt=(ze,tt,lt)=>new Promise((Ue,ut)=>{var je=ln=>{try{Qt(lt.next(ln))}catch(Jt){ut(Jt)}},it=ln=>{try{Qt(lt.throw(ln))}catch(Jt){ut(Jt)}},Qt=ln=>ln.done?Ue(ln.value):Promise.resolve(ln.value).then(je,it);Qt((lt=lt.apply(ze,tt)).next())});function ht(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function jt(){}let rn=!1;const Qn={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ma(ze=[]){let tt=ze;if(Array.isArray(ze)){for(let lt=0;lt{var tt=ze,{width:lt="100%",height:Ue="100%",value:ut,language:je="javascript",style:it={},options:Qt={},overrideServices:ln={},theme:Jt="vs-dark",onEditBlur:sn,isCopy:Gt=!1,onSave:Wt,autoHeight:Nn=!1,forbidCopy:Dn=!1,onChange:kn=jt,editorDidMount:Cn=jt,onFocus:Kn=jt,onBreakPoint:hn=jt,breakPointValue:Wn=[],filename:eo="educoder.txt",errorLine:ya,errorContent:fa="",highlightLine:ha,openBreakPoint:Da=!1,placeholder:Oa=""}=tt,Ma=pe(tt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const ua=(0,ee.useRef)(),Pn=(0,ee.useRef)({}),bn=(0,ee.useRef)(),ho=(0,ee.useRef)(),wo=(0,ee.useRef)([]),Bo=(0,ee.useRef)(!1),Oo=(0,ee.useRef)(),Go=(0,ee.useRef)(),Zo=(0,ee.useRef)(!1),[vt,Dt]=(0,ee.useState)(!1);function Ee(){let Ot;return ua.current&&(Ot=new ue.Z(Pt=>{for(let Fn of Pt)(Fn.target.offsetHeight>0||Fn.target.offsetWidth>0)&&Pn.current.instance.layout()}),Ot.observe(ua.current)),Ot}function we(){Nt.ZP.warning({content:decodeURIComponent(Se),key:"monaco-editor-tip"})}const xe=()=>{let Ot=Pn.current.instance;if(ut!=null&&Ot&&vt){const Pt=Ot.getModel();Pt&&ut!==Pt.getValue()&&(rn=!0,Pt.setValue(ut),Ot.layout(),rn=!1)}};(0,ee.useEffect)(()=>{const Ot=Ht.Z.subscribe("formatDocument",Pt=>{var Fn;let qn=Pn.current.instance;(Fn=qn==null?void 0:qn.getAction)==null||Fn.call(qn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Pt=>{kn(Pt)},Ot},[]),(0,ee.useEffect)(()=>{var Ot;let Pt=Pn.current.instance;ho.current&&clearTimeout(ho.current),ho.current=setTimeout(()=>{xe()},500),ut&&(ut!=null&&ut.length)&&((Ot=Pt==null?void 0:Pt.updateOptions)==null||Ot.call(Pt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ut.split(/\r\n|\r|\n/g).length))+3,5)}))},[ut,vt,Pn.current]),(0,ee.useEffect)(()=>{if(ya&&Pn.current&&Pn.current.instance){let Pt=Pn.current.instance;Pt.changeViewZones(function(Fn){var qn=document.createElement("div");qn.style.padding="10px 20px",qn.style.width="calc(100% - 20px)",qn.className="my-error-line-wrp",qn.innerHTML=fa,Fn.addZone({afterLineNumber:ya||11,heightInLines:3,domNode:qn})});var Ot={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Pt.addOverlayWidget(Ot),Pt.revealPositionInCenter({lineNumber:20,column:1})}},[ya,Pn.current,vt]);const dt=(Ot="",Pt)=>{if(!Ot||Ot.trim()==="")return!0;const qn=Pn.current.instance.getModel().getLineTokens(Pt);let _n=!1;for(let to=0;to<2;to++)qn.getStandardTokenType(to)===1&&(_n=!0);return _n};(0,ee.useEffect)(()=>{var Ot;const Pt=(Ot=Pn.current)==null?void 0:Ot.instance;if(Pt&&vt&&Dn){const Fn=Pt.onDidBlurEditorWidget(()=>{Zo.current=!1}),qn=Pt.onDidFocusEditorText(()=>{Zo.current=!0});return()=>{Fn.dispose(),qn.dispose()}}},[Pn.current,vt,Dn]),(0,ee.useEffect)(()=>{var Ot;if((Ot=Pn.current)!=null&&Ot.instance&&vt&&Da){let Pt=Pn.current.instance,Fn=Pt.getModel();if(!Fn)return;(()=>{var na;let Zn=[],ct=[];const Xt=Fn.getAllDecorations();for(let $t of Xt)$t.options.className==="highlighted-line"&&(Zn.push((na=$t==null?void 0:$t.range)==null?void 0:na.startLineNumber),ct.push($t==null?void 0:$t.id));if(ha===Zn[0])return;Fn.deltaDecorations(ct,[]);const wn=Fn.getLineCount();ha&&ha<=wn&&(Pt.deltaDecorations([],[{range:new We.Range(ha,1,ha,Fn.getLineMaxColumn(ha)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Pt.revealLineInCenter(ha))})();const _n=(na=!1)=>{var Zn;let ct=[],Xt=[];const wn=Fn.getAllDecorations();for(let $t of wn)$t.options.linesDecorationsClassName==="breakpoints-select"&&(ct.push((Zn=$t==null?void 0:$t.range)==null?void 0:Zn.startLineNumber),Xt.push($t==null?void 0:$t.id));if(na)return{lines:ct,ids:Xt};hn(ct)},to=na=>mt(void 0,null,function*(){let Zn={range:new We.Range(na,1,na,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Fn.deltaDecorations([],[Zn]),_n()}),Za=na=>mt(void 0,null,function*(){let Zn=[];const ct=Pt.getLineDecorations(na);for(let Xt of ct)Xt.options.linesDecorationsClassName==="breakpoints-select"&&Zn.push(Xt.id);yield Fn.deltaDecorations(Zn,[]),_n()}),ja=na=>{let Zn=Pt.getLineDecorations(na);for(let ct of Zn)if(ct.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ot.isEqual)(Wn,_n(!0).lines)){Fn.deltaDecorations(_n(!0).ids,[]);const na=Wn.map(Zn=>({range:new We.Range(Zn,1,Zn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Fn.deltaDecorations([],na)}const ia=Pt.onDidChangeModelContent(na=>{let Zn=Pt.getPosition();if(Zn){let ct=Zn.lineNumber;clearTimeout(Go.current),Go.current=setTimeout(()=>{dt(Fn.getLineContent(ct),ct)?Za(ct):ja(ct)?(Za(ct),to(ct)):_n()},100)}}),Bn=Pt.onMouseDown(na=>{var Zn,ct,Xt;if(na.target.detail&&((Xt=(ct=(Zn=na.target)==null?void 0:Zn.element)==null?void 0:ct.className)!=null&&Xt.includes("line-numbers"))){let wn=na.target.position.lineNumber;if(dt(Fn.getLineContent(wn),wn))return;ja(wn)?Za(wn):to(wn)}}),aa=na=>{let Zn={range:new We.Range(na,1,na,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wo.current=Pt.deltaDecorations(wo.current,[Zn])},at=()=>{wo.current=Pt.deltaDecorations(wo.current,[])},Io=Pt.onMouseMove(na=>{var Zn,ct,Xt;if(at(),na.target.detail&&((Xt=(ct=(Zn=na.target)==null?void 0:Zn.element)==null?void 0:ct.className)!=null&&Xt.includes("line-numbers"))){let wn=na.target.position.lineNumber;if(dt(Fn.getLineContent(wn),wn))return;aa(wn)}}),No=Pt.onMouseLeave(()=>{at()});return()=>{ia.dispose(),Bn.dispose(),Io.dispose(),No.dispose()}}},[Pn.current,vt,Wn,ha,Da,je]),(0,ee.useEffect)(()=>{var Ot;(Ot=Pn.current)!=null&&Ot.instance&&Da&&Pn.current.instance.setPosition({lineNumber:0,column:0})},[ha]);function nt(){let Ot=Pn.current.instance;if(Ot){const Pt=Ot.getSelection(),Fn=Pn.current.pastePos||{},qn=new We.Range(Fn.startLineNumber||Pt.endLineNumber,Fn.startColumn||Pt.endColumn,Fn.endLineNumber||Pt.endLineNumber,Fn.endColumn||Pt.endColumn);setTimeout(()=>{Ot.executeEdits("",[{range:qn,text:""}])},300)}}function gt(Ot){(window.navigator.platform.match("Mac")?Ot.metaKey:Ot.ctrlKey)&&Ot.keyCode==83&&(Ot.preventDefault(),Wt())}const Lt=()=>{if(Nn&&Pn.current.instance){const Ot=Pn.current.instance.getContentHeight();Tn(Ot{if(!Zo.current)return;const{keyCode:Pt,ctrlKey:Fn,metaKey:qn,target:_n,type:to}=Ot;return(to==="paste"||(Pt===67||Pt===86)&&(qn||Fn))&&_n.nodeName==="TEXTAREA"&&(we(),Ot.preventDefault()),!1};function Rt(Ot,Pt){var Fn=window.URL||window.webkitURL||window,qn=new Blob([Pt]),_n=document.createElementNS("http://www.w3.org/1999/xhtml","a");_n.href=Fn.createObjectURL(qn),_n.download=Ot,dn(_n)}(0,ee.useEffect)(()=>{Lt()},[Lt]),(0,ee.useEffect)(()=>{ua.current&&!vt&&Promise.all([le.e(8909),le.e(3267)]).then(le.bind(le,71448)).then(Ot=>{try{We=Ot,Pn.current.instance=We.editor.create(ua.current,{value:ut,language:ma(je),theme:Jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ln);const Pt=Pn.current.instance;let _n=[...Ft.BH._menuItems].find(ia=>ia[0]._debugName=="EditorContext")[1],to=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Za=(ia,Bn)=>{var aa,at;let Io=ia._first;do Bn.includes((at=(aa=Io.element)==null?void 0:aa.command)==null?void 0:at.id)&&ia._remove(Io);while(Io=Io.next)};if(Cn(Pt,We),setTimeout(()=>{Lt(),Pn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Rt(eo||"educoder.txt",Pt.getValue())}})},500),Pn.current.subscription=Pt.onDidChangeModelContent(ia=>{Bo.current?clearTimeout(Oo.current):(Lt(),kn(Pt.getValue(),ia)),Oo.current=setTimeout(()=>{Bo.current=!1},500)}),window.Monaco||de(We,ma(je)),Dn&&(Za(_n,to),ua.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",tn),window.removeEventListener("paste",tn),window.addEventListener("keydown",tn),window.addEventListener("paste",tn)),window.Monaco=We,sn&&Pt.onDidBlurEditorWidget(()=>{sn(Pt.getValue())}),Kn&&Pt.onDidFocusEditorText(()=>{Kn(Pt.getValue())}),Dn)try{Pt.onDidPaste(ia=>{const Bn=Pt.getSelection(),aa=Pn.current.pastePos||{},at=new We.Range(aa.startLineNumber||Bn.endLineNumber,aa.startColumn||Bn.endColumn,aa.endLineNumber||Bn.endLineNumber,aa.endColumn||Bn.endColumn);Pt.executeEdits("",[{range:ia.range,text:""}])})}catch(ia){}let ja=Ee();return Oa&&typeof Oa=="string"&&new wt(Oa,Pt,We),Dt(!0),()=>{const ia=Pn.current.instance;ia.dispose();const Bn=ia.getModel();Bn&&Bn.dispose(),Pn.current.subscription&&Pn.current.subscription.dispose(),ja.unobserve(ua.current)}}catch(Pt){}})},[]),(0,ee.useEffect)(()=>{if(Pn.current.instance&&vt)return document.addEventListener("keydown",gt,!1),()=>{document.removeEventListener("keydown",gt)}},[Wt,vt]),(0,ee.useEffect)(()=>{let Ot=Pn.current.instance;if(Ot&&vt){let Pt=ma(je);We.editor.setModelLanguage(Ot.getModel(),Pt)}},[je,vt]),(0,ee.useEffect)(()=>{Pn.current.instance&&vt&&We.editor.setTheme(Jt)},[Jt,vt]),(0,ee.useEffect)(()=>{let Ot=Pn.current.instance;bn.current=Qt,Ot&&vt&&(Ot.updateOptions(At({},Qt)),setTimeout(()=>{Ot.getModel().updateOptions(At({},Qt))},200))},[JSON.stringify(Qt),vt]),(0,ee.useEffect)(()=>{let Ot=Pn.current.instance;Ot&&vt&&Ot.layout()},[lt,Ue,vt]);const[Xn,Qe]=(0,ee.useState)(ht(lt)),[Yt,Tn]=(0,ee.useState)(ht(Ue)),Rn=on(At({},it),{width:Xn,height:Yt,position:"relative"});return ee.createElement("div",{className:"my-monaco-editor",ref:ua,style:Rn},Gt&&ee.createElement(Kt.CopyToClipboard,{text:ut,onCopy:()=>Nt.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement(_t.Z,{title:"\u590D\u5236\u4EE3\u7801"},ee.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ee.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function xt({width:ze="100%",height:tt="100%",original:lt,modified:Ue,language:ut,options:je={}}){const it=(0,ee.useRef)(),[Qt,ln]=(0,ee.useState)(null);function Jt(Nn){let Dn;return it.current&&(Dn=new ue.Z(kn=>{for(let Cn of kn)(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&Nn.layout()}),Dn.observe(it.current)),Dn}(0,ee.useEffect)(()=>(it.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(Nn=>{We=Nn;const Dn=We.editor.createDiffEditor(it.current,on(At({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},je),{wordWrap:!0}));ln(Dn);let kn=Jt(Dn);return()=>{Dn.dispose();const Cn=Dn.getModel();Cn&&Cn.dispose(),kn.unobserve(it.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ee.useEffect)(()=>{Qt&&Qt.setModel({original:We.editor.createModel(lt,ut),modified:We.editor.createModel(Ue,ut)})},[lt,Ue,ut,Qt]);const sn=ht(ze),Gt=ht(tt),Wt={width:sn,height:Gt};return ee.createElement("div",{className:"my-diff-editor",ref:it,style:Wt})}},85057:function(ke,Mt,le){"use strict";le.d(Mt,{jL:function(){return Ce},w9:function(){return He},QD:function(){return kn},cQ:function(){return Kt},op:function(){return Jt},O5:function(){return Zo},_b:function(){return ya},t7:function(){return y},Gi:function(){return mt},YG:function(){return on},qp:function(){return bt},vr:function(){return hn},qE:function(){return Wt},Je:function(){return te},wb:function(){return Ft},cq:function(){return We},tp:function(){return ie}});var ee=le(59301),ue={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCj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bHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ce=({dataSource:vt=[],img:Dt,imgWidth:Ee=346,title:we,sunTitle:xe,bannerExtraContent:dt})=>ee.createElement("div",{className:ue.banner},ee.createElement("div",{className:ue.content},ee.createElement("aside",null,ee.createElement("p",null,ee.createElement("b",null,we),ee.createElement("span",null,xe)),vt.length>0&&ee.createElement("div",{className:ue.btns},vt.map((nt,gt)=>ee.createElement("div",{key:gt,onClick:nt.click},nt.name,nt.sign?ee.createElement("img",{src:Ge,width:39}):null))),dt),Dt&&ee.createElement("img",{style:{marginTop:33,marginRight:38},src:Dt,width:Ee}))),Ve={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ae=le(92310),Ke=le.n(Ae),Ne=le(89392),bt=({dataSource:vt=[],value:Dt,onChange:Ee,onTitleChange:we,className:xe,title:dt,titleWidth:nt=41,style:gt={},fontColor:Lt="#6A7283",showCount:dn})=>{const[tn,Rt]=(0,ee.useState)(0),[Xn,Qe]=(0,ee.useState)(!1),Yt=(0,ee.useRef)(null),Tn=(0,ee.useRef)(null);return(0,ee.useEffect)(()=>{var Rn;vt.length!==0&&(((Rn=Yt==null?void 0:Yt.current)==null?void 0:Rn.clientHeight)>97?Rt(1):Rt(0)),vt.length===0&&Rt(0),Qe(!1)},[vt]),ee.createElement("div",{className:Ke()(Ve.row,xe),style:gt},ee.createElement("div",{onClick:(0,Ne.throttle)(()=>we==null?void 0:we(),2e3),style:{width:nt,marginTop:Xn?12:4},className:`${Ve.title} ${we?"current":""}`},dt),ee.createElement("div",{className:Xn?`${Ve.tagsWrap} ${Ve.tagsBorderWrap}`:Ve.tagsWrap},ee.createElement("div",{className:Ve.bar,ref:Tn,style:tn>0?{height:tn===1?97:"auto",overflow:tn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ee.createElement("div",{className:Ve.tag,ref:Yt},vt==null?void 0:vt.map(Rn=>ee.createElement("span",{onClick:()=>Ee(Rn.id),key:Rn.id,style:{color:Lt},className:Dt===Rn.id?Ve.active:""},ee.createElement("span",{title:Rn.name,className:Ve.name},Rn.name),!!dn&&ee.createElement("span",{className:Ve.num},Rn.count))))),!!tn&&ee.createElement(ee.Fragment,null,tn===1?ee.createElement("div",{onClick:()=>{var Rn;Rt(2),((Rn=Yt==null?void 0:Yt.current)==null?void 0:Rn.clientHeight)>245?Qe(!0):Qe(!1)},className:Ve.action},"\u5C55\u5F00",ee.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ee.createElement("div",{onClick:()=>{Tn.current.scrollTop=0,Rt(1),Qe(!1)},className:Ve.action},"\u6536\u8D77",ee.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ie=({dataSource:vt=[],value:Dt,onChange:Ee,className:we,style:xe={}})=>ee.createElement("div",{style:xe,className:Ke()(Re.tabs,we)},vt.map(dt=>ee.createElement("span",{onClick:()=>Ee(dt.id),className:Dt===dt.id?Re.active:"",key:dt.id},dt.name))),a={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},E=le(92832),y=({dataSource:vt=[],value:Dt="",onChange:Ee,onInputChange:we=()=>{},className:xe,style:dt={},placeholder:nt,allowClear:gt=!1})=>{var Lt;const[dn,tn]=(0,ee.useState)(""),[Rt,Xn]=(0,ee.useState)("");(0,ee.useEffect)(()=>{var Tn;let Rn=Dt;(Tn=JSON.stringify(Dt))!=null&&Tn.includes("{")&&(tn(Dt.id),Rn=Dt.value||"");try{Xn(decodeURIComponent(Rn||""))}catch(Ot){Xn(decodeURIComponent(Rn||""))}},[Dt]);const Qe=()=>{Ee(encodeURIComponent(Rt),dn||null)},Yt=Tn=>{Tn!==dn&&(tn(Tn),Ee(encodeURIComponent(Rt),Tn))};return ee.createElement("div",{className:Ke()(a.input,xe),style:dt},!!vt.length&&ee.createElement("div",{className:a.dropdown},ee.createElement("div",{className:a.text},(Lt=vt.find(Tn=>Tn.id===dn))==null?void 0:Lt.name,ee.createElement("i",{className:"iconfont icon-zhankai4"}),ee.createElement("b",{className:a.b1}),ee.createElement("b",{className:a.b2})),ee.createElement("div",{className:a.menu},vt.map((Tn,Rn)=>ee.createElement("div",{key:Rn,onClick:()=>Yt(Tn.id)},Tn.name)))),ee.createElement(E.default,{onPressEnter:Qe,value:Rt,onChange:Tn=>{Xn(Tn.target.value),we(encodeURIComponent(Tn.target.value),dn||null)},bordered:!1,placeholder:nt}),ee.createElement("i",{onClick:Qe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},x={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},te=({value:vt,onChange:Dt,className:Ee,total:we,pageSize:xe,style:dt={}})=>{const nt=vt<2,gt=vt>=Math.ceil(we/xe);return we<=xe?ee.createElement(ee.Fragment,null):ee.createElement("div",{className:Ke()(x.quickPager,Ee),style:dt},ee.createElement("div",{onClick:()=>{nt||Dt(vt-1,"prev")},className:nt?x.disabled:""},"\u4E0A\u4E00\u9875"),ee.createElement("div",{onClick:()=>{gt||Dt(vt+1,"next")},className:gt?x.disabled:""},"\u4E0B\u4E00\u9875"))},ae={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ne=le(71418),se=le(6848),de=le(13570),Se=le(3294),ce=le(955),ye=le(96908),Ie=le(57177),et=le(81378),Et=le(8797),Ft=({className:vt,dataSource:Dt=[],col:Ee=4,right:we,bottom:xe=23,precision:dt=0,wrapWidth:nt=1200,trackEventItems:gt,loading:Lt})=>{const dn=Math.floor((nt-(Ee-1)*we)/Ee);return ee.createElement(ne.Z,{spinning:Lt},ee.createElement("div",{className:Ke()(ae.list,vt)},!!Dt.length&&Dt.map((tn,Rt)=>{const{name:Xn,id:Qe,identifier:Yt,power:Tn,cover_image_id:Rn,pic:Ot}=tn;return ee.createElement("div",{className:ae.wrap,key:Qe,style:{width:dn,marginRight:(1+Rt)%Ee===0?0:we+dt,marginBottom:xe}},ee.createElement("a",{target:"_blank",href:`/shixuns/${Yt}/challenges`,className:ae.li,onClick:Pt=>{Pt.preventDefault(),gt&&(0,ce.L9)([gt]),Tn&&(0,ce.xg)(`/shixuns/${Yt}/challenges`)}},ee.createElement("div",{className:ae.img},ee.createElement("img",{className:ae.cover,src:`${Ot}`}),tn.is_jupyter&&ee.createElement("img",{className:ae.sign,src:ye}),tn.is_jupyter_lab&&ee.createElement("img",{className:ae.sign,src:Ie}),tn.is_unity_3d&&ee.createElement("img",{className:ae.sign,src:et})),ee.createElement("div",{className:ae.name},ee.createElement(se.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:ae.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{className:ae.tags},ee.createElement(se.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ee.createElement("span",null,tn.challenges_count))),!!tn.myshixuns_count&&ee.createElement(se.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ee.createElement("span",null,tn.myshixuns_count))),ee.createElement(se.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ee.createElement("span",null,ee.createElement("span",null,tn.level))),ee.createElement("div",{className:ae.rate},ee.createElement(de.Z,{allowHalf:!0,disabled:!0,defaultValue:tn.score_info}),ee.createElement("span",null,"\xA0",tn.score_info?`${tn.score_info}\u5206`:"5\u5206")))),!Tn&&ee.createElement("div",{className:ae.lockWrap},ee.createElement("img",{src:`${Se.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dt.length&&ee.createElement(Et.Z,null)))},Nt={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},_t=le(24065),ot=le(59301),Kt=({className:vt,dataSource:Dt=[],col:Ee=4,right:we,bottom:xe=23,precision:dt=0,wrapWidth:nt=1200,trackEventItems:gt,loading:Lt,onRemove:dn=()=>{},isCurrent:tn=!0,showAlias:Rt=!1})=>{const Xn=Math.floor((nt-(Ee-1)*we)/Ee),Qe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return ot.createElement(ne.Z,{spinning:Lt},ot.createElement("div",{className:Ke()(Nt.list,vt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Yt,Tn)=>{var Rn;const{name:Ot,id:Pt,identifier:Fn,featured:qn,school_name:_n,image_url:to,excellent:Za,is_plan:ja}=Yt;return ot.createElement("div",{key:Pt,className:Nt.wrap,style:{width:Xn,marginRight:(1+Tn)%Ee===0?0:we+dt,marginBottom:xe}},ot.createElement("a",{className:Nt.li,onClick:ia=>{ia.preventDefault(),ia.stopPropagation(),gt&&(0,ce.L9)([gt]),(0,ce.xg)(`/paths/${Fn}`)}},ot.createElement("div",{className:Nt.img},ot.createElement("img",{className:Nt.cover,src:`${to}`}),tn&&(0,_t.bg)()&&(Yt==null?void 0:Yt.studying)&&ot.createElement("div",{className:`${Nt.movebq} user-path-items`,onClick:ia=>{ia.stopPropagation(),dn(Yt)}},ot.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ot.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Rn=Yt==null?void 0:Yt.subject_tags)==null?void 0:Rn.map((ia,Bn)=>{var aa,at;if(Bn===0){const No=(aa=Qe.find(na=>na.name==ia))==null?void 0:aa.swimg;return ot.createElement("img",{className:Nt.sign,src:No,style:{left:"-4px"}})}const Io=(at=Qe.find(No=>No.name==ia))==null?void 0:at.ptimg;return ot.createElement("img",{className:Nt.sign,src:Io,style:{left:`${48+52*(Bn-1)+2*Bn}px`}})}),ot.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Yt==null?void 0:Yt.excellent)&&ot.createElement("div",{className:Nt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ot.createElement("div",{className:Nt.name},ot.createElement(se.Z,{title:Rt&&(Yt!=null&&Yt.excellent_alias_name)?ot.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ot}`,ot.createElement("br",null),ot.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Yt==null?void 0:Yt.excellent_alias_name}`)):Ot},ot.createElement("span",{className:Nt.e},Rt&&(Yt==null?void 0:Yt.excellent_alias_name)||Ot))),ot.createElement(se.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_n}`},ot.createElement("div",{className:Nt.unit},ot.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_n)),ot.createElement("div",{className:Nt.tags},ot.createElement("div",null,ot.createElement(se.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ot.createElement("span",null,Yt.stages_count))),ot.createElement(se.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ot.createElement("span",null,Yt.members_count)))))))})),!Dt.length&&ot.createElement(Et.Z,null)))},Ze={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDx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,right:we,bottom:xe=23,precision:dt=0,wrapWidth:nt=1200,trackEventItems:gt,loading:Lt,handleVery:dn=()=>!0})=>{const tn=Math.floor((nt-(Ee-1)*we)/Ee);return Tt.createElement(ne.Z,{spinning:Lt},Tt.createElement("div",{className:Ke()(Ze.list,vt)},!!Dt.length&&Dt.map((Rt,Xn)=>{const{subject_identifier:Qe,id:Yt,identifier:Tn,power:Rn}=Rt,Ot=Rt.is_public!=0&&Rt.is_public;return Tt.createElement("div",{className:Ze.wrap,key:Yt,style:{width:tn,marginRight:(1+Xn)%Ee===0?0:we+dt,marginBottom:xe}},Tt.createElement("a",{className:Ze.li,onClick:Pt=>{Pt.preventDefault(),dn(Rt==null?void 0:Rt.first_category_url)&&(gt&&(0,ce.L9)([gt]),(0,ce.xg)(Rt.first_category_url))}},Tt.createElement("div",{className:Ze.top},Tt.createElement(se.Z,{title:Rt.name},Tt.createElement("div",{className:Ze.name},Rt.name)),Tt.createElement("img",{className:Ze.img,src:Se.Z.IMG_SERVER+"/images/"+Rt.avatar_url}),Tt.createElement("div",{className:Ze.text,title:Rt.creator},Rt.creator),Qe&&Tt.createElement("div",{className:Ze.btns},Tt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Tt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ot&&Tt.createElement("div",{className:Ze.sign},"\u516C\u5F00")),Tt.createElement("div",{className:Ze.bottom},Rt.visits>0&&Tt.createElement(se.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Tt.createElement("span",null,Tt.createElement("i",{className:"iconfont icon-liulanyan"}),Tt.createElement("span",null,Rt.visits))),Rt.course_members_count>0&&Tt.createElement(se.Z,{title:"\u6210\u5458",placement:"bottom"},Tt.createElement("span",null,Tt.createElement("i",{className:"iconfont icon-chengyuan"}),Rt.course_members_count)),Rt.tasks_count>0&&Tt.createElement(se.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Tt.createElement("span",null,Tt.createElement("i",{className:"iconfont icon-zuoye"}),Rt.tasks_count)),Rt.is_end?Tt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Tt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Rt.is_accessible&&Tt.createElement("div",{className:Ze.lockWrap},Tt.createElement("img",{src:`${Se.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Tt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dt.length&&Tt.createElement(Et.Z,null)))},rt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},It=le(89070),on=({dataSource:vt=[],value:Dt,onChange:Ee,className:we,style:xe={},tabBarExtraContent:dt})=>ee.createElement("div",{className:Ke()(rt.tabs,we),style:xe},ee.createElement("div",{className:rt.tabsWrap},vt.map((nt,gt)=>!(nt!=null&&nt.hide)&&ee.createElement("aside",{className:rt.tab,onClick:()=>{Ee(nt.id),nt.link&&It.history.push(nt.link)},key:gt},ee.createElement("div",{className:Dt===nt.id?rt.active:""},nt.name),(nt==null?void 0:nt.resetCount)==null&&(nt==null?void 0:nt.total)!==void 0&&ee.createElement("span",null,"\uFF08",nt==null?void 0:nt.total,"\uFF09"),(nt==null?void 0:nt.resetCount)!==void 0&&(nt==null?void 0:nt.total)!==void 0&&ee.createElement(se.Z,{title:(nt==null?void 0:nt.tip)!=null?nt==null?void 0:nt.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},nt==null?void 0:nt.resetCount),"/",ee.createElement("span",null,nt==null?void 0:nt.total),"\uFF09"))))),ee.createElement("div",{className:rt.tabBar},dt)),mt=({className:vt,style:Dt={},children:Ee})=>ee.createElement("div",{className:Ke()(vt),style:Dt},Ee),ht={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},jt=le(38854),rn=le(20834);const Qn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var We=({sortValue:vt,dropValue:Dt,className:Ee,onSort:we,onDrop:xe,dataSource:dt=Qn})=>{var nt;return ee.createElement("div",{className:Ke()(ht.orderWrap,Ee)},ee.createElement(jt.Z,{dropdownRender:()=>ee.createElement(rn.default,null,dt.map((gt,Lt)=>ee.createElement(rn.default.Item,{key:Lt,onClick:()=>xe(gt.id)},gt.name)))},ee.createElement("span",{className:ht.orderTextWrap},(nt=dt.find(gt=>Dt===gt.id))==null?void 0:nt.name)),ee.createElement("span",{className:ht.orderIconWrap},ee.createElement("span",{className:ht.orderAsc},ee.createElement("i",{className:vt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer}`,onClick:()=>we(vt==="asc"?"desc":"asc")})),ee.createElement("span",{className:ht.orderDesc},ee.createElement("i",{className:vt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer}`,onClick:()=>we(vt==="asc"?"desc":"asc")}))))},_e={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},xt=le(3113),ze=Object.defineProperty,tt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ut=(vt,Dt,Ee)=>Dt in vt?ze(vt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):vt[Dt]=Ee,je=(vt,Dt)=>{for(var Ee in Dt||(Dt={}))lt.call(Dt,Ee)&&ut(vt,Ee,Dt[Ee]);if(tt)for(var Ee of tt(Dt))Ue.call(Dt,Ee)&&ut(vt,Ee,Dt[Ee]);return vt},it=(vt,Dt)=>{var Ee={};for(var we in vt)lt.call(vt,we)&&Dt.indexOf(we)<0&&(Ee[we]=vt[we]);if(vt!=null&&tt)for(var we of tt(vt))Dt.indexOf(we)<0&&Ue.call(vt,we)&&(Ee[we]=vt[we]);return Ee},Qt=(vt,Dt,Ee)=>new Promise((we,xe)=>{var dt=Lt=>{try{gt(Ee.next(Lt))}catch(dn){xe(dn)}},nt=Lt=>{try{gt(Ee.throw(Lt))}catch(dn){xe(dn)}},gt=Lt=>Lt.done?we(Lt.value):Promise.resolve(Lt.value).then(dt,nt);gt((Ee=Ee.apply(vt,Dt)).next())}),Jt=vt=>{var Dt=vt,{className:Ee,style:we,children:xe,loading:dt=!1,openLoading:nt,onClick:gt=()=>{},size:Lt="middle",shape:dn="round"}=Dt,tn=it(Dt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Rt,Xn]=(0,ee.useState)(!1);return ee.createElement(xt.ZP,je({onClick:(0,Ne.throttle)(Qe=>Qt(void 0,null,function*(){nt&&Xn(!0);try{yield gt(Qe)}catch(Yt){console.log("error",Yt)}nt&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(_e.btn,_e[`${Lt}-${dn}`],Ee),style:we,size:Lt,shape:dn,loading:Rt||dt},tn),xe)},sn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Wt=({className:vt,style:Dt,children:Ee=null,onClick:we,title:xe})=>ee.createElement("div",{className:Ke()(sn.head,vt),style:Dt},ee.createElement("span",{className:"primary-hover",onClick:we},ee.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ee.createElement("b",{title:xe},xe),ee.createElement("div",{className:sn.node},Ee)),Nn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},kn=({confirmShow:vt=!0,confirmTitle:Dt,confirmClick:Ee,cancelShow:we=!0,cancelTitle:xe,cancelClick:dt,className:nt,style:gt,confirmLoading:Lt=!1})=>ee.createElement("div",{className:Ke()(Nn.btns,nt),style:gt},vt&&ee.createElement(xt.ZP,{loading:Lt,onClick:Ee,type:"primary",className:Nn.confirm},Dt),we&&ee.createElement(xt.ZP,{onClick:dt,className:Nn.cancel},xe)),Cn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},hn=({className:vt,style:Dt={},LeftContent:Ee,children:we,RightContent:xe})=>ee.createElement("div",{className:Ke()(Cn.fixedBottom,vt),style:Dt},ee.createElement("div",{className:Cn.wrap},ee.createElement("div",{className:Cn.left},Ee),ee.createElement("div",{className:Cn.center},we),ee.createElement("div",{className:Cn.right},xe))),Wn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ya=({className:vt,style:Dt={},dataSource:Ee=[]})=>ee.createElement("div",{className:Ke()(Wn.crumbs,vt),style:Dt},Ee.map((we,xe)=>xeIt.history.push(we.path)},we.name):ee.createElement("span",null,we.name),ee.createElement("span",null,"\xA0",">","\xA0")):ee.createElement("span",{key:xe,style:{color:"#5F6368"}},we.name))),fa=le(31797),ha=Object.defineProperty,Da=Object.defineProperties,Oa=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,ua=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,bn=(vt,Dt,Ee)=>Dt in vt?ha(vt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):vt[Dt]=Ee,ho=(vt,Dt)=>{for(var Ee in Dt||(Dt={}))ua.call(Dt,Ee)&&bn(vt,Ee,Dt[Ee]);if(Ma)for(var Ee of Ma(Dt))Pn.call(Dt,Ee)&&bn(vt,Ee,Dt[Ee]);return vt},wo=(vt,Dt)=>Da(vt,Oa(Dt)),Bo=(vt,Dt)=>{var Ee={};for(var we in vt)ua.call(vt,we)&&Dt.indexOf(we)<0&&(Ee[we]=vt[we]);if(vt!=null&&Ma)for(var we of Ma(vt))Dt.indexOf(we)<0&&Pn.call(vt,we)&&(Ee[we]=vt[we]);return Ee};const{Countdown:Oo}=fa.default;var Zo=vt=>{var Dt=vt,{onChange:Ee}=Dt,we=Bo(Dt,["onChange"]);const[xe,dt]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{typeof xe=="number"&&xe>=0&&Ee(xe)},[xe]);const nt=gt=>{const Lt=Math.floor(gt/1e3);dt(Lt)};return ee.createElement(Oo,wo(ho({},we),{onChange:nt}))}},58856:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return ue}});var ee=le(59301);function ue(Ge,st){const Ce=(0,ee.useRef)();(0,ee.useEffect)(()=>{Ce.current=Ge}),(0,ee.useEffect)(()=>{function Ve(){Ce.current()}if(st!==null){let Ae=setInterval(Ve,st);return()=>clearInterval(Ae)}},[st])}},27639:function(ke,Mt,le){"use strict";var ee=le(59301),ue=le(43418),Ge=le(8591),st=le(99064),Ce=le(89070),Ve=Object.defineProperty,Ae=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Re=(b,y,x)=>y in b?Ve(b,y,{enumerable:!0,configurable:!0,writable:!0,value:x}):b[y]=x,Je=(b,y)=>{for(var x in y||(y={}))Te.call(y,x)&&Re(b,x,y[x]);if(Ne)for(var x of Ne(y))bt.call(y,x)&&Re(b,x,y[x]);return b},ie=(b,y)=>Ae(b,Ke(y)),a=(b,y,x)=>new Promise((z,te)=>{var ae=de=>{try{se(x.next(de))}catch(Se){te(Se)}},ne=de=>{try{se(x.throw(de))}catch(Se){te(Se)}},se=de=>de.done?z(de.value):Promise.resolve(de.value).then(ae,ne);se((x=x.apply(b,y)).next())});const E=({classroomList:b,dispatch:y,cb:x})=>{const z=(0,Ce.useParams)();z.id=z.coursesId;const{detailBoardList:te}=b;return ee.createElement(ue.default,{centered:!0,title:"\u63D0\u793A",open:b.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>a(void 0,null,function*(){var ae,ne,se;if((yield(0,st.ZP)(`/api/boards/${z.categoryId}/messages/bulk_delete.json`,{method:"delete",body:{ids:[...b.actionTabs.selectArrs]}})).status===0){Ge.ZP.success("\u5220\u9664\u6210\u529F");const Se=b.actionTabs.selectArrs.length===te.messages.length&&((ae=b.actionTabs.params)==null?void 0:ae.page)>1?((ne=b.actionTabs.params)==null?void 0:ne.page)-1:(se=b.actionTabs.params)==null?void 0:se.page;x(Se),y({type:"classroomList/setActionTabs",payload:{}}),y({type:"classroomList/getBoardList",payload:ie(Je({},b.actionTabs.params),{page:Se})}),y({type:"classroomList/getClassroomLeftMenus",payload:{id:z.coursesId}})}}),onCancel:()=>{y({type:"classroomList/setActionTabs",payload:{}})}},ee.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F"))};Mt.Z=(0,Ce.connect)(({classroomList:b})=>({classroomList:b}))(E)},16368:function(ke,Mt,le){"use strict";var ee=le(59301),ue=le(78241),Ge=le(43418),st=le(8591),Ce=le(92832),Ve=le(24905),Ae=le(71418),Ke=le(99064),Ne=le(26724),Te=le.n(Ne),bt=le(89070),Re=Object.defineProperty,Je=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,E=(z,te,ae)=>te in z?Re(z,te,{enumerable:!0,configurable:!0,writable:!0,value:ae}):z[te]=ae,b=(z,te)=>{for(var ae in te||(te={}))ie.call(te,ae)&&E(z,ae,te[ae]);if(Je)for(var ae of Je(te))a.call(te,ae)&&E(z,ae,te[ae]);return z},y=(z,te,ae)=>new Promise((ne,se)=>{var de=ye=>{try{ce(ae.next(ye))}catch(Ie){se(Ie)}},Se=ye=>{try{ce(ae.throw(ye))}catch(Ie){se(Ie)}},ce=ye=>ye.done?ne(ye.value):Promise.resolve(ye.value).then(de,Se);ce((ae=ae.apply(z,te)).next())});const x=({classroomList:z,loading:te,dispatch:ae})=>{const ne=b({},(0,bt.useParams)());let[se,de]=(0,ee.useState)([]);const[Se,ce]=(0,ee.useState)(!0),[ye,Ie]=(0,ee.useState)(1),[et,Et]=(0,ee.useState)(!0);ne.page=0,ne.page_size=50,(0,ee.useEffect)(()=>{z.actionTabs.key==="\u53D1\u9001"&&Ft(1)},[z.actionTabs.key]);const[wt]=ue.default.useForm(),Ft=Nt=>y(void 0,null,function*(){Nt==1&&(se=[]),ne.page=Nt,Et(!0);const _t=yield ae({type:"classroomList/getCoursesMine",payload:b({},ne)});_t.lengthy(void 0,null,function*(){const Nt=wt.getFieldValue();(yield(0,Ke.ZP)(`/api/boards/${ne.categoryId}/messages/bulk_send.json`,{method:"post",body:{ids:[...z.actionTabs.selectArrs],to_course_ids:[...Nt.group_ids]}})).status===0&&(st.ZP.success("\u53D1\u5E03\u6210\u529F"),ae({type:"classroomList/setActionTabs",payload:{}}))}),onCancel:()=>{ae({type:"classroomList/setActionTabs",payload:{}})}},ee.createElement("p",{className:"tc bold mb20"},"\u9009\u62E9\u7684\u5E16\u5B50\u53D1\u9001\u5230",ee.createElement("span",{className:"c-orange"},"\u6307\u5B9A\u8BFE\u5802")),ee.createElement(Ce.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,onSearch:Nt=>{de([]),ne.search=Nt,Ft(1)}}),ee.createElement("div",{className:"bg-skyblue",style:{height:260,overflow:"auto",padding:20}},ee.createElement(Te(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Nt=>{Ft(Nt)},hasMore:!et&&Se,useWindow:!1},ee.createElement(ue.default,{form:wt,initialValues:{}},ee.createElement(ue.default.Item,{name:"group_ids"},ee.createElement(Ve.default.Group,null,se==null?void 0:se.map(function(Nt,_t){return ee.createElement("div",{key:_t},ee.createElement(Ve.default,{style:{width:520},value:Nt.id,className:"multi-ellipsis1 multi-ellipsis1-checkbox"},Nt.name))}))),ee.createElement(Ae.Z,{className:"edu-ant-spin",spinning:et})))))};Mt.Z=(0,bt.connect)(({classroomList:z,loading:te})=>({classroomList:z,loading:te}))(x)},84314:function(ke,Mt,le){"use strict";le.r(Mt),le.d(Mt,{default:function(){return _r}});var ee=le(89070),ue=le(59301),Ge=le(3294),st=le(61186),Ce=le.n(st),Ve=le(20834),Ae=le(24905),Ke=le(3113),Ne=le(8591),Te=le(6848),bt=le(71418),Re=le(95237),Je=le(43604),ie=le(58421),a=le(81228),E=le(38854),b=le(1710),y=le(78673),x=le(99064),z=le(87395),te=le(84105),ae=le(24065),ne=le(8797),se=le(43418),de=Object.defineProperty,Se=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ie=(Be,be,Le)=>be in Be?de(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,et=(Be,be)=>{for(var Le in be||(be={}))ce.call(be,Le)&&Ie(Be,Le,be[Le]);if(Se)for(var Le of Se(be))ye.call(be,Le)&&Ie(Be,Le,be[Le]);return Be},Et=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())});const wt=({classroomList:Be,dispatch:be,cb:Le})=>{const De=(0,ee.useParams)();return De.id=De.coursesId,ue.createElement(se.default,{centered:!0,title:"\u63D0\u793A",open:Be.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Et(void 0,null,function*(){(yield(0,x.ZP)(`/api/boards/${De.categoryId}/messages/bulk_public.json`,{method:"put",body:{ids:[...Be.actionTabs.selectArrs]}})).status===0&&(Ne.ZP.success("\u64CD\u4F5C\u6210\u529F"),Le(),be({type:"classroomList/setActionTabs",payload:{}}),be({type:"classroomList/getBoardList",payload:et({},Be.actionTabs.params)}))}),onCancel:()=>{be({type:"classroomList/setActionTabs",payload:{}})}},ue.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var Ft=(0,ee.connect)(({classroomList:Be})=>({classroomList:Be}))(wt),Nt=le(27639),_t=le(16368),ot={flex_box_center:"flex_box_center___hePrT",flex_space_between:"flex_space_between___ORkbo",flex_box_vertical_center:"flex_box_vertical_center___cCpIF",flex_box_center_end:"flex_box_center_end___c_jTW",flex_box_column:"flex_box_column___wD0ra",bg:"bg___XwUKY",containerTitle:"containerTitle___ImnKq",containerDesc:"containerDesc___yUKqL",listItem:"listItem___SUzaY",title:"title___hjA_e",titleLeft:"titleLeft___GGFEY",titleRight:"titleRight___aNGKY",flexBox:"flexBox___IQB_j",acitons:"acitons___VXZ66",categoryName:"categoryName___gefjO",moveCategory:"moveCategory___OFSGW",copyTag:"copyTag___dGmyT"},Ht=le(62202),Kt=le(89614),Ze=le(73674),kt=le(26724),Tt=le.n(kt),Pe=le(955),He=Object.defineProperty,rt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,on=(Be,be,Le)=>be in Be?He(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,pe=(Be,be)=>{for(var Le in be||(be={}))It.call(be,Le)&&on(Be,Le,be[Le]);if(rt)for(var Le of rt(be))At.call(be,Le)&&on(Be,Le,be[Le]);return Be};const mt=Be=>React.createElement("svg",pe({width:17,height:10,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"new"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"67.301%",x2:"0%",y2:"32.699%",id:"new_svg__a"},React.createElement("stop",{stopColor:"#009EFF",offset:"0%"}),React.createElement("stop",{stopColor:"#49DF9B",offset:"100%"}))),React.createElement("path",{d:"M1082.618 352h-14.236c-.781 0-1.382.629-1.382 1.447v7.106c0 .818.6 1.447 1.382 1.447h14.236c.781 0 1.382-.629 1.382-1.447v-7.106c0-.818-.6-1.447-1.382-1.447Zm-10.692 7.358h-.961l-1.863-3.836v3.836h-.6v-4.59h.84l1.923 3.962h.06v-3.963h.6v4.591Zm1.502-2.641h2.342v.629h-2.342v.126c0 .817.24 1.195.72 1.195h1.682v.629h-1.682c-.36 0-.66-.126-.9-.44-.24-.315-.361-.818-.361-1.384v-1.07c0-1.069.66-1.509 1.321-1.635h1.622v.63h-1.561c-.24.062-.781.25-.781 1.006-.06.125-.06.188-.06.314Zm7.809 2.641h-.841l-.841-3.647-.961 3.647h-.901l-1.262-4.59h.66l1.082 3.773h.06l.961-3.774h.721l.961 3.963 1.142-3.963h.6l-1.381 4.591Z",transform:"translate(-1067 -352)",fill:"url(#new_svg__a)",fillRule:"nonzero"}));var ht="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNjcuMzAxJSIgeDI9IjAlIiB5Mj0iMzIuNjk5JSIgaWQ9ImEiPjxzdG9wIHN0b3AtY29sb3I9IiMwMDlFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNDlERjlCIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMTA4Mi42MTggMzUyaC0xNC4yMzZjLS43ODEgMC0xLjM4Mi42MjktMS4zODIgMS40NDd2Ny4xMDZjMCAuODE4LjYgMS40NDcgMS4zODIgMS40NDdoMTQuMjM2Yy43ODEgMCAxLjM4Mi0uNjI5IDEuMzgyLTEuNDQ3di03LjEwNmMwLS44MTgtLjYtMS40NDctMS4zODItMS40NDdabS0xMC42OTIgNy4zNThoLS45NjFsLTEuODYzLTMuODM2djMuODM2aC0uNnYtNC41OWguODRsMS45MjMgMy45NjJoLjA2di0zLjk2M2guNnY0LjU5MVptMS41MDItMi42NDFoMi4zNDJ2LjYyOWgtMi4zNDJ2LjEyNmMwIC44MTcuMjQgMS4xOTUuNzIgMS4xOTVoMS42ODJ2LjYyOWgtMS42ODJjLS4zNiAwLS42Ni0uMTI2LS45LS40NC0uMjQtLjMxNS0uMzYxLS44MTgtLjM2MS0xLjM4NHYtMS4wN2MwLTEuMDY5LjY2LTEuNTA5IDEuMzIxLTEuNjM1aDEuNjIydi42M2gtMS41NjFjLS4yNC4wNjItLjc4MS4yNS0uNzgxIDEuMDA2LS4wNi4xMjUtLjA2LjE4OC0uMDYuMzE0Wm03LjgwOSAyLjY0MWgtLjg0MWwtLjg0MS0zLjY0Ny0uOTYxIDMuNjQ3aC0uOTAxbC0xLjI2Mi00LjU5aC42NmwxLjA4MiAzLjc3M2guMDZsLjk2MS0zLjc3NGguNzIxbC45NjEgMy45NjMgMS4xNDItMy45NjNoLjZsLTEuMzgxIDQuNTkxWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNjcgLTM1MikiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",jt=le(97177),rn={collect:"collect___uk5xF",head:"head___op8aW",btn:"btn___rzfic"},Qn=le(85057),ma=le(57809),We=le(92832),_e=le(54580),xt=le(78241),ze=le(12290),tt=le(59301),lt=Object.defineProperty,Ue=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,it=(Be,be,Le)=>be in Be?lt(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Qt=(Be,be)=>{for(var Le in be||(be={}))ut.call(be,Le)&&it(Be,Le,be[Le]);if(Ue)for(var Le of Ue(be))je.call(be,Le)&&it(Be,Le,be[Le]);return Be},ln=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())}),sn=({onOk:Be,onCancel:be,visible:Le,modalParams:De,forceIn:Ct})=>{const[zt]=xt.default.useForm(),[pn,mn]=(0,ue.useState)(!1),Bt=Ct?!1:typeof Le=="number";(0,ue.useEffect)(()=>{Le?zt.setFieldsValue(Qt({},De)):zt.resetFields()},[Le]);const gn=cn=>ln(void 0,null,function*(){mn(!0),yield Be(cn),mn(!1)});return tt.createElement(se.default,{centered:!0,destroyOnClose:!0,onCancel:()=>be(),onOk:()=>zt.submit(),open:!!Le,confirmLoading:pn,title:Bt?"\u7F16\u8F91\u95EE\u7B54":"\u65B0\u589E\u95EE\u7B54",width:900,okText:Bt?"\u786E\u5B9A":"\u52A0\u5165\u95EE\u9898\u96C6"},tt.createElement(xt.default,{form:zt,size:"large",onFinish:gn},tt.createElement(xt.default.Item,{name:"title",label:"\u95EE\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"}]},tt.createElement(We.default.TextArea,{style:{height:200},placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898"})),tt.createElement(xt.default.Item,{className:"mb0",name:"content",label:"\u56DE\u7B54",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54"}]},tt.createElement(ze.Z,{height:220,className:"mb0",placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u7B54",watch:!0,defaultValue:De==null?void 0:De.content})),tt.createElement(xt.default.Item,{className:"mb0",valuePropName:"checked",initialValue:!1,name:"is_top"},tt.createElement(Ae.default,{style:{marginLeft:53,marginTop:24}},"\u8BBE\u4E3A\u70ED\u95E8\u95EE\u9898"))))},Gt=le(59301),Wt=Object.defineProperty,Nn=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,Cn=(Be,be,Le)=>be in Be?Wt(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Kn=(Be,be)=>{for(var Le in be||(be={}))Dn.call(be,Le)&&Cn(Be,Le,be[Le]);if(Nn)for(var Le of Nn(be))kn.call(be,Le)&&Cn(Be,Le,be[Le]);return Be},hn=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())}),eo=({visible:Be,onCancel:be})=>{const[Le,De]=(0,ue.useState)(!1),[Ct,zt]=(0,ue.useState)(0),[pn,mn]=(0,ue.useState)([]),[Bt,gn]=(0,ue.useState)({page:1,limit:10});(0,ue.useEffect)(()=>{Be&&cn(Bt)},[Be]);const cn=Gn=>hn(void 0,null,function*(){var So,Co;De(!0);const ao=yield(0,x.ZP)(`/api/course_qna_sets/${Be}/hit_history.json`,{method:"get",params:Gn});ao.status===0&&(mn(((So=ao==null?void 0:ao.data)==null?void 0:So.list)||[]),zt((Co=ao==null?void 0:ao.data)==null?void 0:Co.size)),De(!1)}),Ba=[{title:"\u7528\u6237\u63D0\u95EE",dataIndex:"question",ellipsis:!0,render:Gn=>Gt.createElement(Te.Z,{placement:"topLeft",title:Gn},Gt.createElement("span",{className:"c-black"},Gn||"--"))},{title:"\u56DE\u7B54",dataIndex:"answer",ellipsis:!0,render:Gn=>Gt.createElement(Te.Z,{placement:"topLeft",title:Gn},Gt.createElement("span",{className:"c-black"},Gn||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",ellipsis:!0,render:Gn=>Gt.createElement(Te.Z,{placement:"topLeft",title:Gn},Gt.createElement("span",{className:"c-black"},Gn||"--"))},{title:"\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Gn=>Gt.createElement("span",{className:"c-black"},Ce()(Gn).format("YYYY-MM-DD HH:mm"))}],Ra=(Gn,So)=>{Bt.page=Gn,Bt.limit=So,gn(Kn({},Bt)),cn(Bt)};return Gt.createElement(se.default,{title:"\u547D\u4E2D\u5386\u53F2",open:!!Be,centered:!0,width:1e3,footer:null,onCancel:be},Gt.createElement(b.default,{columns:Ba,className:"mt20",dataSource:pn,loading:Le,rowKey:"id",scroll:(pn==null?void 0:pn.length)>7?{y:300}:{},pagination:{current:Bt.page,hideOnSinglePage:!Ct,showQuickJumper:!0,showSizeChanger:!0,pageSize:Bt.limit,pageSizeOptions:["10","20","50","100","200"],total:Ct,size:"default",showTotal:Pe.rU,onChange:Ra}}))},ya=Object.defineProperty,fa=Object.getOwnPropertySymbols,ha=Object.prototype.hasOwnProperty,Da=Object.prototype.propertyIsEnumerable,Oa=(Be,be,Le)=>be in Be?ya(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Ma=(Be,be)=>{for(var Le in be||(be={}))ha.call(be,Le)&&Oa(Be,Le,be[Le]);if(fa)for(var Le of fa(be))Da.call(be,Le)&&Oa(Be,Le,be[Le]);return Be};const ua=Be=>React.createElement("svg",Ma({width:17,height:21,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"\u{1F525}"),React.createElement("text",{transform:"translate(-22 -23)",fill:"#232B40",fillRule:"evenodd",fontFamily:"AppleColorEmoji, Apple Color Emoji",fontSize:18},React.createElement("tspan",{x:20,y:41},"\u{1F525}")));var Pn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyIC0yMykiIGZpbGw9IiMyMzJCNDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1mYW1pbHk9IkFwcGxlQ29sb3JFbW9qaSwgQXBwbGUgQ29sb3IgRW1vamkiIGZvbnQtc2l6ZT0iMTgiPgogICAgICAgICAgICAgICAgICAgICAgICA8dHNwYW4geD0iMjAiIHk9IjQxIj7wn5SlPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+PC9zdmc+",bn=le(59301),ho=Object.defineProperty,wo=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,vt=(Be,be,Le)=>be in Be?ho(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Dt=(Be,be)=>{for(var Le in be||(be={}))Go.call(be,Le)&&vt(Be,Le,be[Le]);if(Oo)for(var Le of Oo(be))Zo.call(be,Le)&&vt(Be,Le,be[Le]);return Be},Ee=(Be,be)=>wo(Be,Bo(be)),we=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())}),dt=({})=>{const Be=(0,ee.useParams)(),[be,Le]=(0,ue.useState)(!1),[De,Ct]=(0,ue.useState)(0),[zt,pn]=(0,ue.useState)([]),[mn,Bt]=(0,ue.useState)(!1),[gn,cn]=(0,ue.useState)({title:"",content:""}),[Ba,Ra]=(0,ue.useState)(!1),[Gn,So]=(0,ue.useState)(""),[Co,ao]=(0,ue.useState)(!1),[Ro,pa]=(0,ue.useState)([]),[Ya,Ko]=(0,ue.useState)(""),so=Be==null?void 0:Be.coursesId,[Mn,ba]=(0,ue.useState)({keyword:"",is_top:0,page:1,limit:10,course_id:so});(0,ue.useEffect)(()=>{po(Mn)},[]);const po=Jn=>we(void 0,null,function*(){var ca,Na;Le(!0);const Fr=yield(0,x.ZP)("/api/course_qna_sets.json",{method:"get",params:Jn});Fr.status===0&&(pn(((ca=Fr==null?void 0:Fr.data)==null?void 0:ca.list)||[]),Ct((Na=Fr==null?void 0:Fr.data)==null?void 0:Na.size)),Le(!1)}),la=Jn=>{Mn.keyword=Jn,Mn.page=1,ba(Dt({},Mn)),po(Mn)},Ar=Jn=>{Mn.is_top=Jn,Mn.page=1,ba(Dt({},Mn)),po(Mn)},ii=(Jn,ca)=>{Mn.page=Jn,Mn.limit=ca,ba(Dt({},Mn)),po(Mn)},Ka=Jn=>we(void 0,null,function*(){const ca=Ee(Dt({},Jn),{course_id:so});if(typeof mn=="number"){const Na=yield(0,x.ZP)(`/api/course_qna_sets/${mn}/update_qna_sets.json`,{method:"post",body:ca});(Na==null?void 0:Na.status)===0&&(Ne.ZP.success("\u7F16\u8F91\u6210\u529F"),po(Mn),Bt(!1))}else{const Na=yield(0,x.ZP)("/api/course_qna_sets/add_qna_sets.json",{method:"post",body:ca});(Na==null?void 0:Na.status)===0&&(Ne.ZP.success("\u6DFB\u52A0\u6210\u529F"),Mn.page=1,Mn.keyword="",ba(Dt({},Mn)),po(Mn),Bt(!1))}}),Zr=Jn=>we(void 0,null,function*(){se.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",onOk:()=>we(void 0,null,function*(){const ca=yield(0,x.ZP)(`/api/course_qna_sets/${Jn==null?void 0:Jn.id}/remove_qna_sets.json`,{method:"post",body:{course_id:so}});if((ca==null?void 0:ca.status)===0){const Na=zt.length===1&&Mn.page>1?Mn.page-1:Mn.page;Mn.page=Na,ba(Dt({},Mn)),po(Mn),Ne.ZP.success("\u5220\u9664\u6210\u529F")}})})}),fr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:100,render:(Jn,ca,Na)=>`${(Mn.page-1)*Mn.limit+Na+1}`},{title:"\u95EE\u9898",dataIndex:"title",ellipsis:!0,render:(Jn,ca)=>bn.createElement(Te.Z,{placement:"topLeft",title:Jn},bn.createElement("span",{className:"c-black"},ca.is_top&&bn.createElement("img",{width:12,className:"mr5",src:Pn,style:{marginTop:"-4px"}}),Jn||"--"))},{title:"\u56DE\u7B54",dataIndex:"content",ellipsis:!0,render:Jn=>bn.createElement(Te.Z,{placement:"topLeft",title:Jn},bn.createElement("span",{className:"c-black"},Jn||"--"))},{title:"\u547D\u4E2D\u6B21\u6570",width:100,dataIndex:"hit_count",render:(Jn,ca)=>bn.createElement("span",{onClick:()=>{So(ca.id)},className:"current c-light-primary"},Jn)},{title:"\u64CD\u4F5C",width:104,align:"right",dataIndex:"id",ellipsis:!0,render:(Jn,ca)=>bn.createElement("span",null,bn.createElement("span",{className:"c-light-primary current mr20",onClick:()=>{Bt(Jn),cn({title:ca==null?void 0:ca.title,content:ca==null?void 0:ca.content,is_top:ca==null?void 0:ca.is_top})}},"\u7F16\u8F91"),bn.createElement("span",{className:"current c-red",onClick:()=>Zr(ca)},"\u5220\u9664"))}],Pi={onRemove:()=>{pa([])},beforeUpload:Jn=>{if((Jn==null?void 0:Jn.size)>1024*1024*50)return Ne.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!(Jn.type==="application/vnd.ms-excel"||Jn.type==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))return Ne.ZP.info("\u8BF7\u4E0A\u4F20 .xls \u6216 .xlsx \u6587\u4EF6\uFF01"),!1;let Na=[];return Na.push(Jn),pa([...Na]),!1},fileList:Ro,accept:".xls,.xlsx"},li=[{value:0,label:"\u5168\u90E8\u95EE\u9898"},{value:1,label:"\u70ED\u95E8\u95EE\u9898"}];return bn.createElement("div",{className:rn.collect},bn.createElement("div",{className:rn.head},bn.createElement("div",{className:rn.btn,onClick:()=>Ra(!0)},bn.createElement("i",{className:"iconfont icon-daoru1 font19 mr5"}),bn.createElement("span",null,"\u5BFC\u5165")),bn.createElement("div",{className:rn.btn,onClick:()=>{const Jn=`${Ge.Z.API_SERVER}/api/course_qna_sets/export.json?course_id=${so}`;(0,Pe.Nd)(null,Jn)}},bn.createElement("i",{className:"iconfont icon-daochu2 font19 mr5"}),bn.createElement("span",null,"\u5BFC\u51FA")),bn.createElement(Qn.op,{type:"primary",shape:"default",onClick:()=>{Bt(!0),cn({title:"",content:""})}},"\u65B0\u589E\u95EE\u7B54")),bn.createElement(Re.Z,{align:"middle",justify:"space-between"},bn.createElement(ma.default,{value:Mn.is_top,placeholder:"\u8BF7\u9009\u62E9\u56DE\u7B54\u6765\u6E90",onChange:Ar,options:li,style:{width:160}}),bn.createElement(We.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u95EE\u9898\u3001\u95EE\u7B54",value:Ya,onChange:Jn=>Ko(Jn.target.value),onSearch:la})),bn.createElement(b.default,{columns:fr,className:"mt20",dataSource:zt,loading:be,rowKey:"id",pagination:{current:Mn.page,hideOnSinglePage:!De,showQuickJumper:!0,showSizeChanger:!0,pageSize:Mn.limit,pageSizeOptions:["10","20","50","100","200"],total:De,size:"default",showTotal:Pe.rU,onChange:ii}}),bn.createElement(se.default,{title:"\u5BFC\u5165\u95EE\u7B54",open:Ba,centered:!0,zIndex:800,confirmLoading:Co,onCancel:()=>{Ra(!1),pa([])},onOk:()=>we(void 0,null,function*(){var Jn;const ca=new FormData;if(ca.append("course_id",so),Ro.length>0)ca.append("file",Ro[0]);else{Ne.ZP.warning("\u8BF7\u9009\u62E9\u6587\u4EF6");return}ao(!0);let Na=yield(0,x.ZP)("/api/course_qna_sets/import.json",{method:"post",body:ca},!0);(Na==null?void 0:Na.status)===0&&((Jn=Na==null?void 0:Na.fail)!=null&&Jn.length?se.default.confirm({icon:null,width:485,title:"\u5BFC\u5165\u5931\u8D25",centered:!0,content:bn.createElement("span",null,"\u68C0\u6D4B\u5230\u672C\u6B21\u5BFC\u5165\u5B58\u5728\u4E0D\u7B26\u5408\u8981\u6C42\u7684\u6570\u636E\uFF0C\u70B9\u51FB\u4E0B\u8F7D",bn.createElement("a",{href:`${Ge.Z.API_SERVER}/api/course_qna_sets/down_error_import_file.json?course_id=${so}`},"\u5BFC\u5165\u5931\u8D25\u7684\u6570\u636E"),"\u67E5\u770B")}):(Ne.ZP.success("\u5BFC\u5165\u6210\u529F"),Mn.page=1,Mn.keyword="",ba(Dt({},Mn)),po(Mn),Ra(!1),pa([]))),ao(!1)})},bn.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E00\uFF1A",bn.createElement("span",{className:"ml15 mr5"},"\u4E0B\u8F7D"),bn.createElement("a",{href:`${Ge.Z.API_SERVER}/api/course_qna_sets/down_template`},"\u5BFC\u5165\u95EE\u7B54\u96C6\u6A21\u677F"),"\uFF0C\u5E76\u586B\u5199\u5BF9\u5E94\u5185\u5BB9"),bn.createElement("p",{style:{color:"#232B40"}},"\u6B65\u9AA4\u4E8C\uFF1A",bn.createElement("span",{className:"ml15"},"\u4E0A\u4F20\u586B\u5199\u597D\u7684\u300A\u5BFC\u5165\u95EE\u7B54\u6A21\u677F\u300B")),bn.createElement("div",{style:{marginLeft:74}},bn.createElement(_e.default,Dt({},Pi),bn.createElement(Qn.op,{shape:"default",icon:bn.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6")))),bn.createElement(sn,{visible:mn,onCancel:()=>Bt(!1),onOk:Ka,modalParams:gn}),bn.createElement(eo,{visible:Gn,onCancel:()=>So(!1)}))},nt={dialogue:"dialogue___AZQe5",liWrap:"liWrap___RA0by",li:"li___oYseT",line:"line___dgHwf",apply:"apply___jYcZw",content:"content___qBZkI",borderBox:"borderBox___LiE89",text:"text___vS7k8",source:"source___elq8M",action:"action____3wiz",teacher:"teacher___MrQ2w",student:"student___OGycs"},gt=le(5083),Lt=Object.defineProperty,dn=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Xn=(Be,be,Le)=>be in Be?Lt(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Qe=(Be,be)=>{for(var Le in be||(be={}))tn.call(be,Le)&&Xn(Be,Le,be[Le]);if(dn)for(var Le of dn(be))Rt.call(be,Le)&&Xn(Be,Le,be[Le]);return Be};const Yt=Be=>React.createElement("svg",Qe({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"1"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a1_svg__a"},React.createElement("stop",{stopColor:"#E1FFFD",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFFD",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a1_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M21.665 9a2.486 2.486 0 0 1 2.484 2.484v6.21a2.483 2.483 0 0 1-2.484 2.482H14.3l-3.817.004A2.488 2.488 0 0 1 8 17.696v-6.212A2.486 2.486 0 0 1 10.484 9ZM16 11c-.316 0-.571.224-.571.5V14H12.57a.59.59 0 0 0-.494.25.446.446 0 0 0 0 .5.59.59 0 0 0 .494.25h2.858v2.5c0 .276.255.5.571.5.316 0 .571-.224.571-.5V15h2.858c.315 0 .571-.224.571-.5s-.256-.5-.571-.5H16.57v-2.5c0-.276-.255-.5-.571-.5Z",fill:"#3CCAAD"}),React.createElement("path",{d:"M27.88 15.22a2.486 2.486 0 0 1 2.485 2.485v6.212a2.488 2.488 0 0 1-2.484 2.484h-1.243v2.107c0 .31-.352.49-.6.303l-3.216-2.41h-4.88a2.488 2.488 0 0 1-2.484-2.484v-2.485h6.211a3.734 3.734 0 0 0 3.727-3.727v-2.484h2.485Z",fill:"#5CD2BA"}))));var Tn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIyLjA2NCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0UxRkZGRCIgb2Zmc2V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LjczNCAzLjczNCAwIDAgMCAzLjcyNy0zLjcyN3YtMi40ODRoMi40ODVaIiBmaWxsPSIjNUNEMkJBIi8+PC9nPjwvZz48L3N2Zz4=",Rn=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,qn=(Be,be,Le)=>be in Be?Rn(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,_n=(Be,be)=>{for(var Le in be||(be={}))Pt.call(be,Le)&&qn(Be,Le,be[Le]);if(Ot)for(var Le of Ot(be))Fn.call(be,Le)&&qn(Be,Le,be[Le]);return Be};const to=Be=>React.createElement("svg",_n({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"2"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a2_svg__a"},React.createElement("stop",{stopColor:"#EAF1FF",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFAFF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a2_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#202425",opacity:.01,d:"M9 9h20v20H9z"}),React.createElement("path",{d:"M25.667 19.667c.736 0 1.344.6 1.23 1.328a8.667 8.667 0 0 1-17.064.362 8.667 8.667 0 0 1 7.172-10.254c.728-.114 1.328.494 1.328 1.23v6c0 .737.597 1.334 1.334 1.334h6Z",fill:"#0276FF"}),React.createElement("path",{d:"M27 18.333c.737 0 1.344-.6 1.23-1.328a8.668 8.668 0 0 0-7.235-7.236c-.728-.113-1.328.495-1.328 1.231v6c0 .736.597 1.333 1.333 1.333h6Z",fill:"#A5C7FF"}))));var Za="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zy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able:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Io=(Be,be)=>{for(var Le in be||(be={}))Bn.call(be,Le)&&at(Be,Le,be[Le]);if(ia)for(var Le of ia(be))aa.call(be,Le)&&at(Be,Le,be[Le]);return Be};const No=Be=>React.createElement("svg",Io({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a3_svg__a"},React.createElement("stop",{stopColor:"#FAF4FF",offset:"0%"}),React.createElement("stop",{stopColor:"#F4E8FF",offset:"0%"}),React.createElement("stop",{stopColor:"#FDF6FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a3_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M22.923 16.787a3.386 3.386 0 0 0 3.784-3.826 3.384 3.384 0 0 0-2.913-2.934 3.393 3.393 0 0 0-3.805 3.827 3.406 3.406 0 0 0 2.934 2.933Z",fill:"#AC99E2"}),React.createElement("path",{d:"M14.25 16.787a3.386 3.386 0 0 0 3.783-3.826 3.406 3.406 0 0 0-2.934-2.934 3.393 3.393 0 0 0-3.805 3.827 3.428 3.428 0 0 0 2.955 2.933ZM14.547 18.51C12.038 18.51 7 19.805 7 22.377v4.21c0 .233.191.425.425.425h14.243a.426.426 0 0 0 .426-.425v-4.21c0-2.572-5.039-3.869-7.547-3.869Z",fill:"#B19FE4"}),React.createElement("path",{d:"M23.114 18.51c-.319 0-.68.02-1.063.063 1.276.914 2.168 2.168 2.168 3.805v4.21c0 .233.192.425.426.425h5.74a.426.426 0 0 0 .425-.425v-4.21c0-2.572-5.124-3.869-7.696-3.869Z",fill:"#AC99E2"}))));var na="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL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TQiLz48cGF0aCBkPSJNMjMuMTE0IDE4LjUxYy0uMzE5IDAtLjY4LjAyLTEuMDYzLjA2MyAxLjI3Ni45MTQgMi4xNjggMi4xNjggMi4xNjggMy44MDV2NC4yMWMwIC4yMzMuMTkyLjQyNS40MjYuNDI1aDUuNzRhLjQyNi40MjYgMCAwIDAgLjQyNS0uNDI1di00LjIxYzAtMi41NzItNS4xMjQtMy44NjktNy42OTYtMy44NjlaIiBmaWxsPSIjQUM5OUUyIi8+PC9nPjwvZz48L3N2Zz4=",Zn=Object.defineProperty,ct=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,$t=(Be,be,Le)=>be in Be?Zn(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Sa=(Be,be)=>{for(var Le in be||(be={}))Xt.call(be,Le)&&$t(Be,Le,be[Le]);if(ct)for(var Le of ct(be))wn.call(be,Le)&&$t(Be,Le,be[Le]);return Be};const wa=Be=>React.createElement("svg",Sa({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"4"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a4_svg__a"},React.createElement("stop",{stopColor:"#F9E5BB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFF8ED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a4_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M26.016 20.918V16.47A7.468 7.468 0 0 0 18.548 9a7.468 7.468 0 0 0-7.47 7.47v4.447a1.867 1.867 0 0 0 .801 3.555h13.337a1.867 1.867 0 0 0 .8-3.554Z",fill:"#ED8C50"}),React.createElement("path",{d:"m21.253 25.169-5.413.005c-.48-.005-.493.534-.493.534a3.2 3.2 0 1 0 6.401 0s0-.534-.495-.54Z",fill:"#EF9004"}))));var Ha="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRjlFNUJCIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRjhFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTI2LjAxNiAyMC45MThWMTYuNDdBNy40NjggNy40NjggMCAwIDAgMTguNTQ4IDlhNy40NjggNy40NjggMCAwIDAtNy40NyA3LjQ3djQuNDQ3YTEuODY3IDEuODY3IDAgMCAwIC44MDEgMy41NTVoMTMuMzM3YTEuODY3IDEuODY3IDAgMCAwIC44LTMuNTU0WiIgZmlsbD0iI0VEOEM1MCIvPjxwYXRoIGQ9Im0yMS4yNTMgMjUuMTY5LTUuNDEzLjAwNWMtLjQ4LS4wMDUtLjQ5My41MzQtLjQ5My41MzRhMy4yIDMuMiAwIDEgMCA2LjQwMSAwczAtLjUzNC0uNDk1LS41NFoiIGZpbGw9IiNFRjkwMDQiLz48L2c+PC9nPjwvc3ZnPg==",oa=Object.defineProperty,co=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,sr=(Be,be,Le)=>be in Be?oa(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,dr=(Be,be)=>{for(var Le in be||(be={}))Ho.call(be,Le)&&sr(Be,Le,be[Le]);if(co)for(var Le of co(be))Fo.call(be,Le)&&sr(Be,Le,be[Le]);return Be};const Wr=Be=>React.createElement("svg",dr({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"6"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"99.528%",x2:"50%",y2:"0%",id:"a5_svg__a"},React.createElement("stop",{stopColor:"#FFF5EB",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEADE",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a5_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M13.996 16.286h-2.757a1.51 1.51 0 0 0-1.509 1.509v8.685c0 .834.677 1.508 1.509 1.508h2.756v-11.7l.001-.002Zm14.659.564a1.511 1.511 0 0 0-1.176-.564h-5.176c.16-.338.335-.73.494-1.153.285-.75.47-1.43.544-2.028.108-.84.009-1.538-.298-2.075-.55-.962-1.589-1.163-2.365-1.163-.834 0-1.543.432-2.106 1.283-.421.637-.735 1.46-1.038 2.253-.664 1.743-1.172 2.885-2.14 2.885h-.041.015V27.99h10.226a1.51 1.51 0 0 0 1.475-1.182v-.004l1.882-8.684a1.511 1.511 0 0 0-.296-1.271Z",fill:"#FB901F",fillRule:"nonzero"})));var vr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSI5OS41MjglIiB4Mj0iNTAlIiB5Mj0iMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGNUVCIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFERSIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxwYXRoIGQ9Ik0xMy45OTYgMTYuMjg2aC0yLjc1N2ExLjUxIDEuNTEgMCAwIDAtMS41MDkgMS41MDl2OC42ODVjMCAuODM0LjY3NyAxLjUwOCAxLjUwOSAxLjUwOGgyLjc1NnYtMTEuN2wuMDAxLS4wMDJabTE0LjY1OS41NjRhMS41MTEgMS41MTEgMCAwIDAtMS4xNzYtLjU2NGgtNS4xNzZjLjE2LS4zMzguMzM1LS43My40OTQtMS4xNTMuMjg1LS43NS40Ny0xLjQzLjU0NC0yLjAyOC4xMDgtLjg0LjAwOS0xLjUzOC0uMjk4LTIuMDc1LS41NS0uOTYyLTEuNTg5LTEuMTYzLTIuMzY1LTEuMTYzLS44MzQgMC0xLjU0My40MzItMi4xMDYgMS4yODMtLjQyMS42MzctLjczNSAxLjQ2LTEuMDM4IDIuMjUzLS42NjQgMS43NDMtMS4xNzIgMi44ODUtMi4xNCAyLjg4NWgtLjA0MS4wMTVWMjcuOTloMTAuMjI2YTEuNTEgMS41MSAwIDAgMCAxLjQ3NS0xLjE4MnYtLjAwNGwxLjg4Mi04LjY4NGExLjUxMSAxLjUxMSAwIDAgMC0uMjk2LTEuMjcxWiIgZmlsbD0iI0ZCOTAxRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==",$o=Object.defineProperty,ur=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Pr=(Be,be,Le)=>be in Be?$o(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Er=(Be,be)=>{for(var Le in be||(be={}))Br.call(be,Le)&&Pr(Be,Le,be[Le]);if(ur)for(var Le of ur(be))cr.call(be,Le)&&Pr(Be,Le,be[Le]);return Be};const Ir=Be=>React.createElement("svg",Er({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"5"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a6_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a6_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M25.004 22.714h2.757a1.51 1.51 0 0 0 1.509-1.509V12.52c0-.834-.677-1.508-1.509-1.508h-2.756v11.7l-.001.002Zm-14.659-.564c.287.356.72.563 1.176.564h5.176c-.16.338-.335.73-.494 1.153-.285.75-.47 1.43-.544 2.028-.108.84-.009 1.538.298 2.075.55.962 1.589 1.163 2.365 1.163.834 0 1.543-.432 2.106-1.283.421-.637.735-1.46 1.038-2.253.664-1.743 1.172-2.885 2.14-2.885h.041-.015V11.01H13.406a1.51 1.51 0 0 0-1.475 1.182v.004L10.05 20.88c-.1.447.01.914.296 1.271Z",fill:"#F17171",fillRule:"nonzero"})));var Qo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGMEVEIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRUFFRCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHJ4PSIxOSIvPjxwYXRoIGQ9Ik0yNS4wMDQgMjIuNzE0aDIuNzU3YTEuNTEgMS41MSAwIDAgMCAxLjUwOS0xLjUwOVYxMi41MmMwLS44MzQtLjY3Ny0xLjUwOC0xLjUwOS0xLjUwOGgtMi43NTZ2MTEuN2wtLjAwMS4wMDJabS0xNC42NTktLjU2NGMuMjg3LjM1Ni43Mi41NjMgMS4xNzYuNTY0aDUuMTc2Yy0uMTYuMzM4LS4zMzUuNzMtLjQ5NCAxLjE1My0uMjg1Ljc1LS40NyAxLjQzLS41NDQgMi4wMjgtLjEwOC44NC0uMDA5IDEuNTM4LjI5OCAyLjA3NS41NS45NjIgMS41ODkgMS4xNjMgMi4zNjUgMS4xNjMuODM0IDAgMS41NDMtLjQzMiAyLjEwNi0xLjI4My40MjEtLjYzNy43MzUtMS40NiAxLjAzOC0yLjI1My42NjQtMS43NDMgMS4xNzItMi44ODUgMi4xNC0yLjg4NWguMDQxLS4wMTVWMTEuMDFIMTMuNDA2YTEuNTEgMS41MSAwIDAgMC0xLjQ3NSAxLjE4MnYuMDA0TDEwLjA1IDIwLjg4Yy0uMS40NDcuMDEuOTE0LjI5NiAxLjI3MVoiIGZpbGw9IiNGMTcxNzEiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",mr=Object.defineProperty,Uo=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,oi=(Be,be,Le)=>be in Be?mr(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Ci=(Be,be)=>{for(var Le in be||(be={}))Si.call(be,Le)&&oi(Be,Le,be[Le]);if(Uo)for(var Le of Uo(be))Vr.call(be,Le)&&oi(Be,Le,be[Le]);return Be};const zr=Be=>React.createElement("svg",Ci({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"7"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"2.064%",x2:"50%",y2:"100%",id:"a7_svg__a"},React.createElement("stop",{stopColor:"#DCFFD7",offset:"0%"}),React.createElement("stop",{stopColor:"#EBFFEA",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a7_svg__a)",width:38,height:38,rx:19}),React.createElement("path",{d:"M19.012 9.03a9.883 9.883 0 0 1 4.814 1.245l-1.922 1.921.064.642.089.896-.848.847a4.878 4.878 0 0 0-2.197-.522 4.931 4.931 0 0 0-4.925 4.926 4.931 4.931 0 0 0 4.925 4.926 4.931 4.931 0 0 0 4.926-4.926c0-.41-.056-.808-.152-1.191l.485-.488.68-.68.895.088.643.064.456-.456 1.218-1.213a9.857 9.857 0 0 1 .807 3.879c0 5.498-4.459 9.957-9.958 9.957-5.498 0-9.957-4.459-9.957-9.957 0-5.5 4.459-9.958 9.957-9.958Zm7.324 0 .234 2.532 2.4.25-2.994 3.16-1.529-.159-2.594 2.74c.148.377.233.788.233 1.221 0 1.764-1.359 3.2-3.029 3.2s-3.032-1.436-3.032-3.2c0-1.764 1.358-3.198 3.03-3.198.764 0 1.455.314 1.99.809l1.32-1.392 1.126-1.191h.001l-.147-1.614 2.991-3.158Z",fill:"#00D497",fillRule:"nonzero"})));var bi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIyLjA2NCUiIHgyPSI1MCUiIHkyPSIxMDAlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0RDRkZENyIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNFQkZGRUEiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHJlY3QgZmlsbD0idXJ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asOwnProperty,En=Object.prototype.propertyIsEnumerable,Vt=(Be,be,Le)=>be in Be?Li(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,vn=(Be,be)=>{for(var Le in be||(be={}))Kr.call(be,Le)&&Vt(Be,Le,be[Le]);if(Jr)for(var Le of Jr(be))En.call(be,Le)&&Vt(Be,Le,be[Le]);return Be};const Sn=Be=>React.createElement("svg",vn({width:38,height:38,xmlns:"http://www.w3.org/2000/svg"},Be),React.createElement("title",null,"8"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"a8_svg__a"},React.createElement("stop",{stopColor:"#FFF0ED",offset:"0%"}),React.createElement("stop",{stopColor:"#FFEAED",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#a8_svg__a)",width:38,height:38,rx:19}),React.createElement("g",{fill:"#C67070",fillRule:"nonzero"},React.createElement("path",{d:"M16.586 16.425c0 1.191.98 2.172 2.172 2.172 1.191 0 2.172-.98 2.172-2.172 0-1.19-.981-2.172-2.172-2.172-1.191 0-2.172.981-2.172 2.172Z"}),React.createElement("path",{d:"M18.758 8.018C15.885 9.979 12.943 10.96 10 10.96v6.866c0 3.924 1.962 7.497 5.185 9.67l3.573 2.381 3.573-2.382c3.223-2.172 5.185-5.815 5.185-9.669V10.96c-2.943 0-5.815-.98-8.758-2.942Zm.7 11.98V21.4h2.173v1.471h-2.172v2.312h-1.402v-5.185c-1.681-.35-2.942-1.821-2.942-3.573a3.618 3.618 0 0 1 3.643-3.643 3.618 3.618 0 0 1 3.643 3.643c0 1.752-1.26 3.223-2.942 3.573Z"}))));var Vn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9I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nPjwvc3ZnPg==",Ia=le(19909),lo=le(85149),Qa=le(56102),qt=le(59301),no=Object.defineProperty,Yo=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,yr=(Be,be,Le)=>be in Be?no(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,er=(Be,be)=>{for(var Le in be||(be={}))Ua.call(be,Le)&&yr(Be,Le,be[Le]);if(Yo)for(var Le of Yo(be))Wo.call(be,Le)&&yr(Be,Le,be[Le]);return Be},ir=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())});const{RangePicker:tr}=gt.default;var Ca=({})=>{const Be=(0,ee.useParams)(),[be,Le]=(0,ue.useState)(!1),[De,Ct]=(0,ue.useState)(0),[zt,pn]=(0,ue.useState)([]),[mn,Bt]=(0,ue.useState)(!1),[gn,cn]=(0,ue.useState)(!1),[Ba,Ra]=(0,ue.useState)(!1),[Gn,So]=(0,ue.useState)(""),[Co,ao]=(0,ue.useState)(!1),[Ro,pa]=(0,ue.useState)(null),Ya=(0,ue.useRef)(void 0),[Ko,so]=(0,ue.useState)(""),Mn=Be==null?void 0:Be.coursesId,[ba,po]=(0,ue.useState)({sessions_count:"--",message_count:"--",hit_count:"--",like_count:"--",dislike_count:"--",total_tokens:"--",total_user_count:"--",today_session_count:"--"}),[la,Ar]=(0,ue.useState)({time:void 0,start_date:"",end_date:"",keyword:"",status:0,page:1,limit:10,course_id:Mn});(0,ue.useEffect)(()=>{ii(),Ka(la)},[]);const ii=()=>ir(void 0,null,function*(){const An=yield(0,x.ZP)("/api/course_qna_sessions/statistics.json",{method:"get",params:{course_id:Mn}});An.status===0&&po((An==null?void 0:An.data)||{})}),Ka=An=>ir(void 0,null,function*(){var va,Fa;Le(!0);const vo=yield(0,x.ZP)("/api/course_qna_sessions.json",{method:"get",params:An});vo.status===0&&(pn(((va=vo==null?void 0:vo.data)==null?void 0:va.list)||[]),Ct((Fa=vo==null?void 0:vo.data)==null?void 0:Fa.size)),Le(!1)}),Zr=An=>{la.keyword=An,la.page=1,Ar(er({},la)),Ka(la)},fr=(An,va)=>{la.status=An,la.page=1,Ar(er({},la)),Ka(la)},Pi=(An,va)=>{la.start_date=va[0],la.end_date=va[1],la.page=1,Ar(er({},la)),Ka(la)},li=(An,va)=>{la.page=An,la.limit=va,Ar(er({},la)),Ka(la)},Jn=[{title:"\u5E8F\u53F7",dataIndex:"index",width:70,render:(An,va,Fa)=>`${(la.page-1)*la.limit+Fa+1}`},{title:"\u4F1A\u8BDD\u6807\u9898",dataIndex:"question",ellipsis:!0,render:(An,va)=>qt.createElement(Te.Z,{placement:"topLeft",title:An},qt.createElement("span",{onClick:()=>{pa(va.id),Bt(!0)},className:"c-light-primary current"},An||"--"))},{title:"\u7528\u6237",dataIndex:"user_name",width:100,ellipsis:!0,render:An=>qt.createElement(Te.Z,{placement:"topLeft",title:An},qt.createElement("span",{className:"c-black"},An||"--"))},{title:"\u6D88\u606F\u6570",width:70,dataIndex:"message_size",render:An=>qt.createElement("span",{className:"c-black"},An)},{title:"\u53CD\u9988",width:130,dataIndex:"like_count",render:(An,va)=>qt.createElement(Re.Z,{align:"middle"},qt.createElement("div",{className:"flex-1"},qt.createElement("i",{style:{color:"#FA8D30"},className:"iconfot icon-yijiejue font14 mr5"}),qt.createElement("span",{className:"c-black"},va==null?void 0:va.like_count)),qt.createElement("div",{className:"flex-1"},qt.createElement("i",{style:{color:"#db6968"},className:"iconfot icon-weijiejuezhengchang font14 mr5"}),qt.createElement("span",{className:"c-black"},va==null?void 0:va.dislike_count)))},{title:"\u4EBA\u5DE5\u56DE\u590D",width:130,dataIndex:"user_reply_list",ellipsis:!0,render:An=>qt.createElement(Te.Z,{placement:"topLeft",title:An},qt.createElement("span",{className:"c-black"},An||"--"))},{title:"\u521B\u5EFA\u65F6\u95F4",width:144,dataIndex:"created_at",render:An=>qt.createElement("span",{className:"c-black"},Ce()(An).format("YYYY-MM-DD HH:mm"))}],ca=(An,va,Fa)=>{const{onMenuClick:vo}=Fa;Ya.current=vo;const{id:ko}=An;return qt.createElement(qt.Fragment,null,qt.createElement("div",{className:nt.apply,onClick:()=>ir(void 0,null,function*(){const bo=yield(0,x.ZP)(`/api/course_qna_records/${ko}/add_set.json`,{method:"post",body:{course_id:Mn,type:"ai"}});(bo==null?void 0:bo.status)==0&&Ne.ZP.success("\u6DFB\u52A0\u6210\u529F")})},qt.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),qt.createElement("div",{className:nt.apply,onClick:()=>{cn(ko),ao(!1)}},qt.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-a-huifupinglun font12 mr5"}),"\u4EBA\u5DE5\u56DE\u590D"))},Na=(An,va,Fa)=>{const{id:vo,sender:ko}=An;return qt.createElement("div",{className:nt.li,style:{width:Fa.width}},qt.createElement("div",{className:nt.content},ko==="student"&&qt.createElement("h3",null,"\u5B66\u751F\u53CD\u9988"),qt.createElement("div",{className:nt.borderBox},ko==="teacher"&&qt.createElement("div",{className:nt.teacher},"\u8001\u5E08\u56DE\u590D"),ko==="student"&&qt.createElement("div",{className:nt.student},An.situation),qt.createElement(lo.Z,{className:nt.text,value:An==null?void 0:An.text})),An.source&&qt.createElement("div",{className:nt.source},An.source),qt.createElement("div",{className:nt.action},ko==="teacher"&&qt.createElement("div",{className:nt.apply,onClick:()=>ir(void 0,null,function*(){const bo=yield(0,x.ZP)(`/api/course_qna_records/${vo}/add_set.json`,{method:"post",body:{course_id:Mn,type:"teacher"}});(bo==null?void 0:bo.status)==0&&Ne.ZP.success("\u6DFB\u52A0\u6210\u529F")})},qt.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-wendaji font12 mr5"}),"\u52A0\u5165\u95EE\u7B54\u96C6"),ko==="teacher"&&qt.createElement("i",{onClick:()=>{cn(vo),So(An==null?void 0:An.text),ao(!0)},className:"iconfont icon-bianji10 font14 primary-hover"}),ko==="teacher"&&qt.createElement("i",{onClick:()=>ir(void 0,null,function*(){se.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u6761\u56DE\u590D\u5417\uFF1F",onOk:()=>ir(void 0,null,function*(){const bo=yield(0,x.ZP)("/api/course_qna_records/delete_teacher_comment.json",{method:"post",body:{course_id:Mn,feedback_id:vo}});(bo==null?void 0:bo.status)==0&&(Ya.current(),Ne.ZP.success("\u5220\u9664\u6210\u529F"))})})}),className:"iconfont icon-shanchu15 font14 primary-hover"}),qt.createElement(Qa.CopyToClipboard,{text:String((An==null?void 0:An.text)||""),onCopy:()=>Ne.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},qt.createElement(Te.Z,{title:"\u590D\u5236"},qt.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))))))},Fr=()=>ir(void 0,null,function*(){if(!Gn){Ne.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D");return}Ra(!0),(yield(0,x.ZP)("/api/course_qna_records/teacher_comment.json",{method:"post",body:{feedback:Gn,record_id:gn,course_id:Mn,edit:Co}})).status===0&&(cn(!1),Ya.current()),Ra(!1)}),Mi=An=>ir(void 0,[An],function*({type:va,value:Fa,index:vo,identifier:ko,objectIndex:bo}){const $r={index:bo,identifier:ko,course_id:Mn};if(va==="like"&&(yield(0,x.ZP)("/api/course_qna_records/like.json",{method:"post",body:$r})).status!==0||va==="dislike"&&(yield(0,x.ZP)("/api/course_qna_records/dislike.json",{method:"post",body:$r})).status!==0)return Promise.reject()}),gi=[{img:Tn,name:"\u4ECA\u65E5\u65B0\u589E\u4F1A\u8BDD\u6570",count:ba==null?void 0:ba.today_session_count,tip:"\u5F53\u65E5\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u5EFA\u7ACB\u7684\u72EC\u7ACB\u4F1A\u8BDD\u6570\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:Za,name:"\u4F1A\u8BDD\u603B\u6570",count:ba==null?void 0:ba.sessions_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u7684\u5386\u53F2\u4F1A\u8BDD\u603B\u91CF\uFF08\u540C\u4E00\u7A97\u53E3\u8FDE\u7EED\u5BF9\u8BDD\u8BA1\u4E3A1\u6B21\uFF09"},{img:na,name:"\u5BF9\u8BDD\u4EBA\u6570",count:ba==null?void 0:ba.total_user_count,tip:"\u4E0E\u667A\u80FD\u52A9\u6559\u4EA7\u751F\u8FC7\u4F1A\u8BDD\u7684\u72EC\u7ACB\u7528\u6237\u6570\uFF08\u57FA\u4E8E\u8D26\u53F7ID\u53BB\u91CD\uFF09"},{img:Ha,name:"\u6D88\u606F\u603B\u6570",count:ba==null?void 0:ba.message_count,tip:"\u7528\u6237\u4E0E\u667A\u80FD\u52A9\u6559\u53CC\u5411\u4EA4\u4E92\u4EA7\u751F\u7684\u6D88\u606F\u603B\u6761\u6570"},{img:vr,name:"\u6EE1\u610F\u6570",count:ba==null?void 0:ba.like_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u83B7\u5F97\u7528\u6237\u70B9\u8D5E\u7684\u603B\u91CF"},{img:Qo,name:"\u4E0D\u6EE1\u610F\u6570",count:ba==null?void 0:ba.dislike_count,tip:"\u667A\u80FD\u52A9\u6559\u56DE\u7B54\u6536\u5230\u7528\u6237\u70B9\u8E29\u7684\u603B\u91CF"},{img:bi,name:"\u95EE\u7B54\u96C6\u547D\u4E2D\u6B21\u6570",count:ba==null?void 0:ba.hit_count,tip:"\u7528\u6237\u63D0\u95EE\u7CBE\u51C6\u5339\u914D\u9884\u8BBE\u95EE\u7B54\u5E93\u7684\u6B21\u6570"},{img:Vn,name:"\u6D88\u8017token\u6570",count:ba==null?void 0:ba.total_tokens,tip:"\u5BF9\u8BDD\u8FC7\u7A0B\u4E2D\u63D0\u95EE\u4E0E\u56DE\u7B54\u6D88\u8017\u7684Token\u603B\u91CF"}],Ri=[{value:0,label:"\u5168\u90E8"},{value:1,label:"\u7528\u6237\u53CD\u9988-\u6EE1\u610F"},{value:2,label:"\u7528\u6237\u53CD\u9988-\u4E0D\u6EE1\u610F"},{value:3,label:"\u6211\u56DE\u590D\u7684"}],Di={onListClick:An=>(0,x.ZP)(`/api/course_qna_sessions/${An}.json`,{method:"get",params:{course_id:Mn}}),onListDealData:An=>{let va=[];return An==null||An.forEach(Fa=>{var vo,ko;const bo=Fa.id,$r=Fa.think?{reasoning:Fa.think,thinkingEnabled:!0}:{},di=[{text:Fa.question,key:bo,sender:"user",fileList:[],show:!0},er({key:bo,loading:!1,sender:"AI",show:!0,source:Fa.answer_source,text:Fa.answer,like:Fa.like,dislike:Fa.dislike,time:Fa.think_time,id:Fa.id},$r)];va=[...va,...di],(vo=Fa==null?void 0:Fa.student_feedback)==null||vo.forEach(ka=>{va.push({id:ka.id,key:`teacher-${bo}-${ka.id}`,loading:!1,sender:"student",show:!0,text:ka.feedback,situation:ka.status_name})}),(ko=Fa==null?void 0:Fa.teacher_feedback)==null||ko.forEach(ka=>{va.push({id:ka.id,key:`student-${bo}-${ka.id}`,loading:!1,sender:"teacher",show:!0,text:ka.feedback,source:ka.answer_source})})}),va}};return qt.createElement("div",{className:nt.dialogue},qt.createElement("div",{className:nt.liWrap},gi.map((An,va)=>qt.createElement("div",{className:nt.li,key:va},qt.createElement("img",{src:An.img,width:38}),qt.createElement("aside",null,qt.createElement("b",{style:{color:An.count===0?"#999":"#333"}},An.count),qt.createElement("div",null,qt.createElement("span",null,An.name),qt.createElement(Te.Z,{title:An.tip},qt.createElement("i",{className:"iconfont icon-xiaowenhao2 font12 ml5"}))))))),qt.createElement("div",{className:nt.line}),qt.createElement(Re.Z,{align:"middle",justify:"space-between"},qt.createElement(tr,{value:la==null?void 0:la.time,showTime:{format:"HH:mm"},onChange:Pi,format:"YYYY-MM-DD HH:mm"}),qt.createElement(ma.default,{value:la.status,onChange:fr,options:Ri,style:{width:160}}),qt.createElement(We.default.Search,{style:{width:274},placeholder:"\u8BF7\u8F93\u5165\u4F1A\u8BDD\u6807\u9898\u3001\u7528\u6237",value:Ko,onChange:An=>so(An.target.value),onSearch:Zr})),qt.createElement(b.default,{columns:Jn,className:"mt20",dataSource:zt,loading:be,rowKey:"id",pagination:{current:la.page,hideOnSinglePage:!De,showQuickJumper:!0,showSizeChanger:!0,pageSize:la.limit,pageSizeOptions:["10","20","50","100","200"],total:De,size:"default",showTotal:Pe.rU,onChange:li}}),qt.createElement(Ia.Z,{visible:mn,fetchListObject:Di,onOpen:()=>Bt(!0),onClose:()=>{Bt(!1),Ka(la)},children:!0,historyId:Ro,showPreference:!0,showDefaultTips:!1,customDataNode:Na,customPreference:Mi,hideInputBox:!0,title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json",extraAnswerAction:ca}),qt.createElement(se.default,{centered:!0,open:!!gn,confirmLoading:Ba,onCancel:()=>{cn(!1)},afterClose:()=>{So("")},onOk:Fr,title:"\u4EBA\u5DE5\u56DE\u590D",width:900,okText:"\u4FDD\u5B58"},qt.createElement(ze.Z,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u60A8\u7684\u56DE\u590D",watch:!0,onChange:An=>So(An),defaultValue:Gn})))},wr=Object.defineProperty,pi=Object.defineProperties,jr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Gr=(Be,be,Le)=>be in Be?wr(Be,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Be[be]=Le,Ao=(Be,be)=>{for(var Le in be||(be={}))qr.call(be,Le)&&Gr(Be,Le,be[Le]);if(Xr)for(var Le of Xr(be))Vo.call(be,Le)&&Gr(Be,Le,be[Le]);return Be},Nr=(Be,be)=>pi(Be,jr(be)),Jo=(Be,be,Le)=>new Promise((De,Ct)=>{var zt=Bt=>{try{mn(Le.next(Bt))}catch(gn){Ct(gn)}},pn=Bt=>{try{mn(Le.throw(Bt))}catch(gn){Ct(gn)}},mn=Bt=>Bt.done?De(Bt.value):Promise.resolve(Bt.value).then(zt,pn);mn((Le=Le.apply(Be,be)).next())});const xi=({classroomList:Be,boards:be,globalSetting:Le,loading:De,user:Ct,dispatch:zt})=>{var pn,mn,Bt;const gn=(0,ee.useParams)(),cn=(0,ue.useRef)(Nr(Ao({},gn),{id:gn.categoryId,page_size:20})),[Ba,Ra]=(0,ue.useState)({page:1,page_size:20}),{detailBoardList:Gn,detailLeftMenus:So,detailTopBanner:Co,detailCourseGroupsList:ao,courseAiData:Ro}=Be,[pa,Ya]=(0,ue.useState)([]),[Ko,so]=(0,ue.useState)("\u6392\u5E8F"),{userInfo:Mn}=Ct,[ba,po]=(0,ue.useState)(!1),[la]=(0,ee.useSearchParams)(),[Ar,ii]=(0,ue.useState)(!1),[Ka,Zr]=(0,ue.useState)("all"),[fr,Pi]=(0,ue.useState)({}),[li,Jn]=(0,ue.useState)(1),[ca,Na]=(0,ue.useState)(!1),[Fr,Mi]=(0,ue.useState)(!1),[gi,Ri]=(0,ue.useState)(!0);let[si,Di]=(0,ue.useState)([]);const[An,va]=(0,ue.useState)(!1),[Fa,vo]=(0,ue.useState)(!1),{verifyModelUser:ko,ContactModalElement:bo}=(0,jt.Z)(),$r=(0,ue.useRef)(null),di=(0,ee.useLocation)();let[ka,Qi]=(0,ue.useState)({page:1,page_size:20});const Ui=(0,ue.useMemo)(()=>{if(So.course_modules)return Be.detailLeftMenus.course_modules.filter(he=>he.type==="board")[0]},[Be]);(0,ue.useEffect)(()=>{var he;const ve=Pe.cX.getItem(`${(he=Ct==null?void 0:Ct.userInfo)==null?void 0:he.login}${(0,ae.GJ)()?"Teacher":"Student"}`,"Board");ve&&(so(ve==null?void 0:ve.name),cn.current.sort_type=zi.find(Me=>Me.name===(ve==null?void 0:ve.name)).id)},[(pn=Ct==null?void 0:Ct.userInfo)==null?void 0:pn.login,di==null?void 0:di.pathname]),(0,ue.useEffect)(()=>{la.get("type")?la.get("type")==="hudong"?(Zr("hudong"),fe(),ei()):Zr(la.get("type")):Zr("all")},[la.get("type")]),(0,ue.useEffect)(()=>{Ka==="wenda"&&ii(Ro==null?void 0:Ro.is_open_ai)},[Ka]);const ei=()=>Jo(void 0,null,function*(){var he;if(gi&&!ca){Na(!0),Jn(li+1);const ve=yield zt({type:"classroomList/getCourseGroupsList",payload:Nr(Ao({},cn),{page:li,id:cn.current.coursesId,limit:20,nonenavigate:!0})});let Me=[...ve==null?void 0:ve.course_groups];((he=ve==null?void 0:ve.course_groups)==null?void 0:he.length)<20&&(Ri(!1),Me.push({id:0,name:"\u672A\u5206\u73ED"})),Na(!1),Di([...si,...Me])}});(0,ue.useEffect)(()=>{cn.current.categoryId=gn.categoryId,cn.current.id=gn.categoryId,zt({type:"classroomList/getBoardList",payload:cn.current})},[gn]),(0,ue.useEffect)(()=>{Be.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&zt({type:"classroomList/getBoardList",payload:cn.current})},[Be.actionTabs.key]),(0,ue.useEffect)(()=>{Ya([])},[Be.detailBoardList]);const Yi=(he,ve)=>{Ra({page:he,page_size:ve}),cn.current.page=he,cn.current.page_size=ve,zt({type:"classroomList/getBoardList",payload:cn.current})},al=ue.createElement("section",{className:ot.dropmenu},ue.createElement("div",{style:{maxHeight:200,overflow:"auto"}},ue.createElement(Tt(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:he=>{ei()},hasMore:gi,useWindow:!1},ue.createElement(Ve.default,{style:{width:240,zIndex:10}},ao.group_count>0&&si.map(function(he,ve){return ue.createElement(Ve.default.Item,{key:he.id},ue.createElement(Ae.default,{checked:pa.includes(he.id),value:he.id,onChange:Me=>{let Fe=pa.indexOf(he.id);pa.indexOf(he.id)>-1?Ya(pa.filter(Ye=>Ye!==he.id)):Ya(pa.concat(he.id))}},he.name))})))),ue.createElement("aside",{className:ot.bg},ue.createElement("div",null,ue.createElement(Ke.ZP,{type:"link",onClick:()=>Jo(void 0,null,function*(){ka.group_ids=pa,ka.page=1,Qi(Ao({},ka)),fe()})},"\u786E\u5B9A"),ue.createElement(Ke.ZP,{type:"link",onClick:()=>{Ya([])}},"\u91CD\u7F6E")))),zi=[{name:"\u65F6\u95F4\u6392\u5E8F",id:"time"},{name:"\u70ED\u5EA6\u6392\u5E8F",id:"hot"}];let Wi=[{name:"\u5220\u9664",icon:ue.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u53D1\u9001",icon:ue.createElement("i",{className:"iconfont icon-fasong"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:ue.createElement("i",{className:"iconfont icon-sheweigongkai2"})}];Co.is_public||Wi.splice(2,1);const oe=he=>{var ve;Pe.cX.setItem(`${(ve=Ct==null?void 0:Ct.userInfo)==null?void 0:ve.login}${(0,ae.GJ)()?"Teacher":"Student"}`,he,"Board"),so(he==null?void 0:he.name),cn.current.sort_type=zi.find(Me=>Me.name===(he==null?void 0:he.name)).id,zt({type:"classroomList/getBoardList",payload:cn.current})},re=(he,ve)=>Jo(void 0,null,function*(){ve.coursesId=cn.current.coursesId;let Me="boards/setTopping";he==="\u53D6\u6D88\u7F6E\u9876"&&(Me="boards/escTopping"),yield zt({type:Me,payload:Ao({},ve)}),zt({type:"classroomList/getBoardList",payload:cn.current})}),ge=he=>Jo(void 0,null,function*(){const ve=he.name;pa==""?Ne.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"):zt({type:"classroomList/setActionTabs",payload:{key:ve,selectArrs:pa,params:cn.current}})}),me=he=>Jo(void 0,null,function*(){var ve;if(pa=="")return Ne.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,x.ZP)(`/api/boards/${cn.current.categoryId}/messages/bulk_move.json`,{method:"put",body:{ids:pa,to_board_id:he.key}})).status===0&&(Ne.ZP.success("\u64CD\u4F5C\u6210\u529F"),zt({type:"classroomList/getBoardList",payload:cn.current}),zt({type:"classroomList/getClassroomLeftMenus",payload:{id:(ve=cn.current)==null?void 0:ve.coursesId}}))});function fe(){return Jo(this,null,function*(){var he;Mi(!0);let ve=yield(0,x.ZP)(`/api/boards/${cn.current.categoryId}/messages/statistics.json`,{method:"get",params:Ao({coursesId:(he=cn.current)==null?void 0:he.coursesId},ka)});Mi(!1),(ve==null?void 0:ve.status)===0&&Pi(ve)})}return ue.createElement("section",null,ue.createElement(Ht.Z,{isLoading:!1,menuItemWidth:110,tabDataSource:[{name:"\u5168\u90E8",id:"all"},(0,ae.eB)()&&{name:"\u4E92\u52A8\u7EDF\u8BA1",id:"hudong"},((Co==null?void 0:Co.is_admin)||(0,ae.Ny)())&&{name:"\u8BBE\u7F6E",id:"shezhi"},(0,ae.eB)()&&{name:ue.createElement("span",null,"\u667A\u80FD\u95EE\u7B54",ue.createElement("img",{src:ht,width:17,style:{position:"absolute",top:6}})),id:"wenda"},(0,ae.eB)()&&{name:"\u95EE\u7B54\u96C6",id:"wendaji"},(0,ae.eB)()&&{name:"\u5386\u53F2\u5BF9\u8BDD",id:"duihua"}].filter(he=>!!he),isAdmin:(0,ae.RV)(),onTabMenuClick:he=>{he.key==="hudong"&&(fe(),ee.history.replace(`/classrooms/${cn.current.coursesId}/board/${cn.current.categoryId}?type=hudong`)),Zr(he.key)},defaultSelectedKeys:[`${Ka}`],showControlButton:["all","hudong","shezhi"].includes(Ka)&&(0,ae.RV)(),buttonText:"\u6211\u8981\u53D1\u5E16",extraNode:["all","hudong","shezhi"].includes(Ka)&&(0,ae.GJ)()&&Gn.name!=="\u672A\u5206\u914D\u76EE\u5F55"&&ue.createElement(ue.Fragment,null,ue.createElement("span",{className:"c-blue font16 ml20 current",onClick:he=>{var ve;he.preventDefault();let Me=(ve=cn.current)==null?void 0:ve.coursesId;(Gn==null?void 0:Gn.parent_id)>0&&(Me=cn.current.categoryId),zt({type:"classroomList/setActionTabs",payload:{key:(Gn==null?void 0:Gn.parent_id)===0?"\u6DFB\u52A0\u76EE\u5F55":"\u76EE\u5F55\u91CD\u547D\u540D",params:cn.current,selectArrs:{category_id:Me,category_name:Gn.name,type:"board"},cb:()=>{zt({type:"classroomList/getBoardList",payload:cn.current})}}})}},(Gn==null?void 0:Gn.parent_id)==0?ue.createElement(Te.Z,{title:"\u65B0\u5EFA\u76EE\u5F55"},ue.createElement("i",{className:"iconfont icon-xinjianmulu1 c-blue font16 mr20 current"})):ue.createElement(Te.Z,{title:"\u76EE\u5F55\u91CD\u547D\u540D"},ue.createElement("i",{className:"iconfont icon-zhongmingming1 c-blue font16 mr20 current"})))),onButtonClick:()=>{ee.history.push(`/classrooms/${gn.coursesId}/board/${gn.categoryId}/add`)}}),Ka==="all"&&ue.createElement("div",null,ue.createElement(bt.Z,{spinning:De["classroomList/getBoardList"]},ue.createElement(Kt.Z,{dataSource:Gn.messages||[],isAdmin:(0,ae.GJ)(),batchStatus:ba,SortMenuName:Ko,setSortMenuName:so,SortMenus:zi,dispatch:zt,isboard:!0,onBoard:he=>{cn.current.group_ids=he,cn.current.page=1,Ra(ve=>Nr(Ao({},ve),{page:1})),zt({type:"classroomList/getBoardList",payload:cn.current})},detailCourseGroupsList:ao,onSearch:he=>{cn.current.search=he,cn.current.page=1,Ra(ve=>Nr(Ao({},ve),{page:1})),zt({type:"classroomList/getBoardList",payload:cn.current})},onSort:oe,onBatch:he=>po(he)}),Gn.total_count===0&&ue.createElement(ne.Z,null),Gn.messages&&Gn.messages.map(function(he,ve){var Me,Fe;return ue.createElement("div",{className:ot.listItem,key:ve,onClick:Ye=>{pa.indexOf(he.id)>-1?Ya(pa.filter(yt=>yt!==he.id)):Ya(pa.concat(he.id))}},ue.createElement(Re.Z,{align:"top"},(0,ae.GJ)()&&ue.createElement(Je.Z,null,ue.createElement("div",{className:"mt17"},((0,ae.Ny)()||((Me=he==null?void 0:he.author)==null?void 0:Me.login)===Mn.login||(0,ae.GJ)()&&!he.author.is_teacher)&&ue.createElement(Ae.default,{checked:pa.includes(he.id),value:he.id}))),ue.createElement(Je.Z,null,ue.createElement("img",{className:"ml10 mr20",src:`${Ge.Z.IMG_SERVER}/images/${he.author.image_url}`})),ue.createElement(Je.Z,{flex:1},ue.createElement("div",{className:ot.title},ue.createElement("div",{className:ot.titleLeft},ue.createElement(ee.Link,{to:`/classrooms/${gn.coursesId}/board/${gn.categoryId}/Detail/${he.id}`},ue.createElement("strong",null,he.subject)),(he==null?void 0:he.is_copy)&&ue.createElement("span",{className:ot.copyTag},"\u590D\u5236"),he.sticky===1&&ue.createElement("span",{className:"tag-topping ml10"},"\u7F6E\u9876"))),ue.createElement("p",{className:"mt15"},ue.createElement("span",{className:""},he.author.name),he.total_replies_count>0&&ue.createElement("span",{className:"ml20 c-light-black "},he.total_replies_count," \u56DE\u590D"),he.praises_count>0&&ue.createElement("span",{className:"ml20 c-light-black "},he.praises_count," \u70B9\u8D5E"),he.visits>0&&ue.createElement("span",{className:"ml20 c-light-black "},he.visits," \u6D4F\u89C8"),ue.createElement("span",{className:"ml20 c-light-black "},Ce()(he.created_on).fromNow()))),ue.createElement(Je.Z,{className:"tr"},ue.createElement("p",null,(0,ae.RV)()&&ue.createElement(ee.Link,{style:{marginRight:0},to:`/classrooms/${gn.coursesId}/board/${gn.categoryId}/Detail/${he.id}`},ue.createElement("aside",{className:ot.flexBox},ue.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),ue.createElement("div",null,"\u8BE6\u60C5"))),he.sticky===0&&(0,ae.GJ)()&&ue.createElement(ee.Link,{className:"ml15",to:"",onClick:Ye=>{Ye.preventDefault(),re("\u7F6E\u9876",he)}},"\u7F6E\u9876"),he.sticky===1&&(0,ae.GJ)()&&ue.createElement(ee.Link,{className:"ml15",to:"",onClick:Ye=>{Ye.preventDefault(),re("\u53D6\u6D88\u7F6E\u9876",he)}},"\u53D6\u6D88\u7F6E\u9876"),((0,ae.Ny)()||((Fe=he==null?void 0:he.author)==null?void 0:Fe.login)===Mn.login||(0,ae.GJ)()&&!he.author.is_teacher)&&ue.createElement(ee.Link,{className:"",to:`/classrooms/${gn.coursesId}/board/${he.board_id}/Edit/${he.id}`},ue.createElement("aside",{className:ot.flexBox,style:{marginLeft:"16px"}},ue.createElement("i",{className:"iconfont icon-bianjizuoye"}),ue.createElement("div",null,"\u7F16\u8F91")))),he.category_name&&ue.createElement("p",{className:["c-grey-666",ot.categoryName].join(" ")},"\u6240\u5C5E\u76EE\u5F55\uFF1A",he.category_name))))}),ue.createElement("aside",{className:"tc mb50 mt30"},Gn.total_count>0&&ue.createElement(ie.Z,{showSizeChanger:!0,onChange:Yi,defaultCurrent:1,pageSize:Ba.page_size||20,current:Ba.page||1,total:Gn.total_count})),pa.length>0&&(0,ae.GJ)()&&ue.createElement(a.Z,{offsetBottom:0},ue.createElement(Ze.Z,{buttonDataSource:Wi,onButtonClick:ge,useBatchStatus:po,catalogue:Ui.second_category.filter(he=>he.category_name!=="\u672A\u5206\u914D\u76EE\u5F55")||[],allSelect:pa.length?pa.length===((mn=Gn==null?void 0:Gn.messages)==null?void 0:mn.length):!1,setSeleArr:Ya,setAllSelect:he=>{he.target.checked?Ya(Gn.messages.map(ve=>ve.id)):Ya([])},selectArrs:pa,onMenuClick:me,addCatalogue:he=>{he.preventDefault(),zt({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:cn.current,selectArrs:{category_id:cn.current.coursesId,type:"board"}}})}})),ue.createElement(Nt.Z,{cb:he=>{Ya([]),cn.current.page=he,Ra(ve=>Nr(Ao({},ve),{page:he}))}}),ue.createElement(Ft,{cb:()=>Ya([])}),ue.createElement(_t.Z,{cb:()=>Ya([])}))),Ka==="hudong"&&ue.createElement("div",{style:{background:"#fff",padding:"25px 20px"}},ue.createElement("div",{style:{display:"flex"}},ue.createElement("div",{style:{flex:1,color:"#666666"}},ue.createElement("span",null,"\u8BA8\u8BBA\uFF08",fr.total_message_count,"\uFF09"),ue.createElement("span",{style:{marginLeft:20}},"\u56DE\u590D\uFF08",fr.total_reply_count,"\uFF09"),ue.createElement("span",{style:{marginLeft:20}},"\u70B9\u8D5E\uFF08",fr.total_like_count,"\uFF09")),(0,ae.GJ)()&&ue.createElement("div",null,ue.createElement(E.Z,{dropdownRender:()=>al,open:An,onOpenChange:he=>{va(he)}},ue.createElement("a",null,"\u5206\u73ED",An?ue.createElement(z.Z,{style:{marginLeft:6}}):ue.createElement(te.Z,{style:{marginLeft:6}}))),ue.createElement(E.Z,{open:Fa,onOpenChange:he=>{vo(he)},menu:{items:[{key:"1",style:{width:100},label:ue.createElement("a",{onClick:()=>Jo(void 0,null,function*(){var he,ve;let Me=yield(0,x.ZP)(`/api/boards/${(he=cn.current)==null?void 0:he.categoryId}/messages/export_messages.json`,{method:"get",params:Ao({is_repeat_export:1},ka)});(Me==null?void 0:Me.status)===0&&ee.history.push(`/classrooms/${(ve=cn.current)==null?void 0:ve.coursesId}/exportlist/messages_statistics`)})},"\u4E92\u52A8\u5BFC\u51FA")},{key:"2",label:ue.createElement("a",{href:`/classrooms/${(Bt=cn.current)==null?void 0:Bt.coursesId}/exportlist/messages_statistics`},"\u5386\u53F2\u5BFC\u51FA")}]}},ue.createElement("a",{style:{marginLeft:20}},"\u5BFC\u51FA",Fa?ue.createElement(z.Z,{style:{marginLeft:6}}):ue.createElement(te.Z,{style:{marginLeft:6}}))))),ue.createElement(b.default,{dataSource:fr==null?void 0:fr.course_members,style:{marginTop:25},loading:Fr,onChange:(he,ve,Me)=>{Me.order?(ka.sort_by=Me.field==="total_score"?"score":Me.field,ka.sort=Me.order,ka.sort=ka.sort.replace("end","")):delete ka.sort,fe()},columns:[{title:"\u5E8F\u53F7",dataIndex:"number",width:60,render:(he,ve,Me)=>ka.page_size*(ka.page-1)+Me+1},{title:"\u59D3\u540D",dataIndex:"real_name",render:(he,ve,Me)=>ue.createElement("a",{target:"_blank",style:{color:"#3061D0"},href:`/users/${ve==null?void 0:ve.login}/classrooms`},he)},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"course_group_name"},{title:"\u53D1\u5E16\u6570",dataIndex:"message_count",width:60},{title:"\u5E16\u5B50\u70B9\u8D5E\u6570",dataIndex:"message_like_count",width:100},{title:"\u56DE\u590D\u6570",dataIndex:"reply_count",width:60},{title:"\u56DE\u590D\u70B9\u8D5E\u6570",dataIndex:"reply_like_count",width:100},{title:"\u4E92\u52A8\u6570",dataIndex:"total_message_count",width:70}],pagination:!1}),ue.createElement(ie.Z,{showSizeChanger:!0,showTotal:he=>ue.createElement("span",null,"\u5171",ue.createElement("span",{style:{color:"#165DFF"}},fr.total_count)," \u6761\u6570\u636E"),style:{marginTop:10},onChange:(he,ve)=>{ka.page=he,ka.page_size=ve,Qi(Ao({},ka)),fe()},defaultCurrent:1,pageSize:ka.page_size||20,current:ka.page||1,total:fr.total_count})),Ka==="shezhi"&&ue.createElement("div",{style:{background:"#fff",padding:20}},ue.createElement("h5",{style:{fontSize:18}},"\u516C\u5F00\u8BBE\u7F6E"),ue.createElement(Ae.default,{style:{marginTop:10},defaultChecked:Co==null?void 0:Co.allow_view_message,onChange:he=>Jo(void 0,null,function*(){var ve,Me;let Fe=yield(0,x.ZP)(`/api/courses/${(ve=cn.current)==null?void 0:ve.coursesId}/update_view_setting.json`,{method:"PUT",body:{allow_view_message:he.target.checked}});(Fe==null?void 0:Fe.status)===0&&zt({type:"classroomList/getClassroomTopBanner",payload:{id:(Me=cn.current)==null?void 0:Me.coursesId}})})},"\u5168\u8BFE\u5802\u53EF\u89C1\uFF08\u672A\u52FE\u9009\u5219\u5B66\u751F\u53D1\u5E03\u7684\u8BA8\u8BBA\u53EA\u80FD\u9009\u62E9\u540C\u73ED\u5B66\u751F\u53EF\u89C1\uFF09")),Ka==="wenda"&&ue.createElement("div",{style:{background:"#fff",padding:20}},ue.createElement("div",{className:"flex flex-col gap-20 mb20"},ue.createElement("h5",{className:"font18"},"\u667A\u80FD\u95EE\u7B54"),ue.createElement(Re.Z,{align:"middle",className:"mt20"},ue.createElement(y.Z,{size:"default",checked:Ar,onChange:he=>{ko()&&(ii(he),clearTimeout($r.current),$r.current=setTimeout(()=>{var ve;zt({type:"classroomList/setCourseAiState",payload:{course_id:(ve=cn.current)==null?void 0:ve.coursesId,is_open_ai:he}})},500))}}),ue.createElement("div",{className:"c-grey-333 ml10"},"\u5F00\u542F\u540E\uFF0C\u6559\u5B66\u8BFE\u5802\u5185\u7684\u5B66\u751F\u5C06\u53EF\u4EE5\u4F7F\u7528\u667A\u80FD\u52A9\u6559\u7684\u529F\u80FD\uFF0C\u4E0EAI\u5BF9\u8BDD\uFF0C\u8BA9AI\u7B54\u7591\u89E3\u60D1\u3002"," ",ue.createElement("a",{href:"https://www.educoder.net/forums/40256",target:"_blank"},"\u64CD\u4F5C\u8BF4\u660E"))))),Ka==="wendaji"&&ue.createElement(dt,null),Ka==="duihua"&&ue.createElement(Ca,null),bo())};var vi=(0,ee.connect)(({classroomList:Be,loading:be,boards:Le,user:De,globalSetting:Ct})=>({classroomList:Be,globalSetting:Ct,boards:Le,user:De,loading:be.effects}))(xi),Ti=le(59301);const Oi=({classroomList:Be,boards:be,globalSetting:Le,loading:De,user:Ct,dispatch:zt})=>{const pn=(0,ee.useParams)(),{detailBoardList:mn,detailLeftMenus:Bt,detailTopBanner:gn}=Be;return Ti.createElement(vi,null)};var _r=(0,ee.connect)(({classroomList:Be,loading:be,boards:Le,user:De,globalSetting:Ct})=>({classroomList:Be,globalSetting:Ct,boards:Le,user:De,loading:be.models.index}))(Oi)},73674:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return bt}});var ee=le(59301),ue=le(20834),Ge=le(92832),st=le(24905),Ce=le(3113),Ve=le(38854),Ae={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},Ke=le(24065),Ne=le(84105),bt=({buttonDataSource:Re,onButtonClick:Je,useBatchStatus:ie,allSelect:a,setAllSelect:E,selectArrs:b,onMenuClick:y,setSeleArr:x,catalogue:z,addCatalogue:te})=>{const[ae,ne]=(0,ee.useState)(!1),[se,de]=(0,ee.useState)("");console.log("---",z);const Se=ee.createElement("div",{className:Ae.moveCategory,onMouseLeave:ce=>ne(!1)},ee.createElement(ue.default,{onClick:y,style:{maxHeight:300,width:240,overflow:"auto"}},ee.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},ee.createElement(Ge.default,{onChange:ce=>{de(ce.target.value)}})),z==null?void 0:z.map(function(ce,ye){var Ie;if(!(se!==""&&ce.category_name.indexOf(se)<0))return ee.createElement(ee.Fragment,null,ee.createElement(ue.default.Item,{className:"multi-llipsis1e",key:ce.category_id,title:ce.category_name},ce.category_name),(Ie=ce==null?void 0:ce.third_category)==null?void 0:Ie.map(et=>ee.createElement(ue.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:et.category_id,title:et.category_name},et.category_name)))}),te&&ee.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:te},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return ee.createElement("div",{className:Ae.bottomControlContainer},ee.createElement("div",null,ee.createElement("div",null,ee.createElement(st.default,{checked:a,onChange:E},"\u5168\u9009\u672C\u9875\uFF08",b.length,"\uFF09")),(0,Ke.GJ)()&&Re.map(ce=>ee.createElement("div",{key:ce.name},ee.createElement(Ce.ZP,{type:"primary",icon:ce.icon,className:Ae.buttonWrap,onClick:()=>Je(ce)},ce.name))),(0,Ke.GJ)()&&(te||z)&&ee.createElement("div",null,ee.createElement(Ve.Z,{open:ae,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>Se,getPopupContainer:ce=>ce.parentNode},ee.createElement("span",{className:"ant-dropdown-link",onMouseEnter:ce=>ne(!0)},ee.createElement(Ce.ZP,{type:"primary",className:Ae.buttonWrap,icon:ee.createElement("i",{className:"iconfont icon-yidongmulu"})},ee.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",ee.createElement(Ne.Z,null))))))),ee.createElement("div",null,ee.createElement(Ce.ZP,{type:"primary",ghost:!0,onClick:()=>{ie(!1),x([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},89614:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return y}});var ee=le(59301),ue=le(20834),Ge=le(24905),st=le(3113),Ce=le(38854),Ve=le(6848),Ae=le(57809),Ke=le(92832),Ne={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Te=le(24065),bt=le(87395),Re=le(84105),Je=le(26724),ie=le.n(Je),a=le(89070),E=(x,z,te)=>new Promise((ae,ne)=>{var se=ce=>{try{Se(te.next(ce))}catch(ye){ne(ye)}},de=ce=>{try{Se(te.throw(ce))}catch(ye){ne(ye)}},Se=ce=>ce.done?ae(ce.value):Promise.resolve(ce.value).then(se,de);Se((te=te.apply(x,z)).next())}),y=({isAdmin:x,dataSource:z,batchStatus:te,SortMenuName:ae,setSortMenuName:ne,detailCourseGroupsList:se,onSearch:de,onBoard:Se,onSort:ce,isboard:ye,dispatch:Ie,onBatch:et,SortMenus:Et,isShowMode:wt=!1,onModeChange:Ft})=>{const[Nt,_t]=(0,ee.useState)(!1),[ot,Ht]=(0,ee.useState)([]),[Kt,Ze]=(0,ee.useState)(!0);let[kt,Tt]=(0,ee.useState)([]);const[Pe,He]=(0,ee.useState)(1),[rt,It]=(0,ee.useState)(!1),At=(0,a.useParams)(),on=jt=>{ne(jt.name),ce(jt)};(0,ee.useEffect)(()=>{ye&&pe()},[ye]);const pe=()=>E(void 0,null,function*(){var jt;if(Kt&&!rt){It(!0),He(Pe+1);const rn=yield Ie({type:"classroomList/getCourseGroupsList",payload:{page:Pe,id:At.coursesId,limit:20,nonenavigate:!0}});let Qn=[...(rn==null?void 0:rn.course_groups)||[]];((jt=rn==null?void 0:rn.course_groups)==null?void 0:jt.length)<20&&(Ze(!1),Qn.push({id:0,name:"\u672A\u5206\u73ED"})),It(!1),Tt([...kt,...Qn])}}),mt=ee.createElement("section",{className:Ne.dropmenu},ee.createElement("div",{style:{maxHeight:200,overflow:"auto"}},ee.createElement(ie(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:jt=>{pe()},hasMore:Kt,useWindow:!1},ee.createElement(ue.default,{style:{width:240,zIndex:10}},(se==null?void 0:se.group_count)>0&&(kt==null?void 0:kt.filter(jt=>jt.edit_auth||jt.name==="\u672A\u5206\u73ED").map(function(jt,rn){return ee.createElement(ue.default.Item,{key:jt.id},ee.createElement(Ge.default,{checked:ot.includes(jt.id),value:jt.id,onChange:Qn=>{let ma=ot.indexOf(jt.id);ot.indexOf(jt.id)>-1?Ht(ot.filter(We=>We!==jt.id)):Ht(ot.concat(jt.id))}},jt.name))}))))),ee.createElement("aside",{style:{background:"#fff"}},ee.createElement("div",null,ee.createElement(st.ZP,{type:"link",onClick:()=>{Se(ot)}},"\u786E\u5B9A"),ee.createElement(st.ZP,{type:"link",onClick:()=>{Ht([])}},"\u91CD\u7F6E")))),ht=ae==="\u9ED8\u8BA4\u6392\u5E8F";return ee.createElement("div",{className:Ne.searchSortControllerContainer},!!(Et!=null&&Et.length)&&ee.createElement("div",null,ee.createElement(Ce.Z,{dropdownRender:()=>ee.createElement(ue.default,{selectedKeys:[ae]},Et.map(jt=>ee.createElement(ue.default.Item,{key:jt.name,onClick:()=>on(jt)},jt.name)))},ee.createElement("div",null,ee.createElement("span",{className:`${Ne.btn} ${ht?Ne.btnSort:""}`},ee.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),ae)))),ht&&ee.createElement(Ve.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},ee.createElement("span",{className:Ne.tips},ee.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),wt&&ee.createElement(Ae.default,{defaultValue:"",onChange:Ft,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),ee.createElement(Ke.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:de,style:{width:220,marginLeft:wt?"":"auto"}}),(0,Te.eB)()&&ye&&ee.createElement(Ce.Z,{dropdownRender:()=>mt,open:Nt,onOpenChange:jt=>{_t(jt)}},ee.createElement("a",null,"\u5206\u73ED",Nt?ee.createElement(bt.Z,{style:{marginLeft:6}}):ee.createElement(Re.Z,{style:{marginLeft:6}}))))}},62202:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Re}});var ee=le(59301),ue=le(95237),Ge=le(43604),st=le(20834),Ce=le(38854),Ve=le(8591),Ae=le(6848),Ke={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},Ne=le(89070),Te=le(24065),Re=({isLoading:Je,addText:ie,tabDataSource:a,isAdmin:E,dispatch:b,classroomList:y,type:x,isExercise:z,defaultSelectedKeys:te,onTabMenuClick:ae,getDropdownMenu:ne,showControlButton:se,buttonText:de,buttonIcon:Se="icon-tianjiadaohang",extraNode:ce,user:ye,onButtonClick:Ie,isModelUser:et,menuItemWidth:Et=125})=>{var wt,Ft,Nt,_t,ot;const Ht=(0,Ne.useParams)();return ee.createElement("div",{className:Ke.tabMenuContainer},ee.createElement(ue.Z,null,ee.createElement(Ge.Z,{flex:"1"},ee.createElement(st.default,{onSelect:Kt=>Je?{}:ae(Kt),mode:"horizontal",selectedKeys:te},a.map(Kt=>ee.createElement(st.default.Item,{style:{width:Et},key:typeof Kt.index=="number"?Kt.index:Kt.id},ee.createElement("span",{className:"c-grey-666"},Kt.name),Kt.total!==void 0&&E&&ee.createElement("span",{className:"c-grey-999 ml20"},Kt.total||0))))),E&&z&&ee.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{b({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),E&&ee.createElement(Ge.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},z&&ee.createElement(Ce.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>ee.createElement(st.default,null,ee.createElement(st.default.Item,{key:1,onClick:()=>{var Kt;if((0,Te.Rm)()&&!((Kt=y.AssistantObject.exercise)!=null&&Kt.can_download)){Ve.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}b({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:x,exportType:"exercise",category_id:Ht.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),ee.createElement(st.default.Item,{key:3,onClick:()=>{var Kt;if((0,Te.Rm)()&&!((Kt=y.AssistantObject.exercise)!=null&&Kt.can_download)){Ve.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ne.history.push(`/classrooms/${Ht==null?void 0:Ht.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},ee.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},ee.createElement("span",{style:{color:"#666666",cursor:"pointer"}},ee.createElement("i",{className:"iconfont icon-xiazai6"})))),ee.createElement("div",{className:Ke.control},ee.createElement("div",{className:Ke.extra},ce),se&&(de=="\u6DFB\u52A0\u76F4\u64AD"?ee.createElement(Ce.Z,{menu:{items:(Ft=(wt=[{label:ee.createElement("div",{onClick:()=>{Ie("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},et&&{label:ee.createElement("div",{onClick:()=>{Ie("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:wt.filter(Kt=>Kt==null?void 0:Kt.show))==null?void 0:Ft.map(Kt=>({label:Kt==null?void 0:Kt.label,key:Kt==null?void 0:Kt.key}))}},ee.createElement("span",{className:Ke.selectBtn},ee.createElement("span",null,ee.createElement("i",{className:`iconfont ${Se}`})),ee.createElement("span",null,de))):ee.createElement("span",{onClick:Ie,style:{cursor:"pointer"},className:Ke.selectBtn},ee.createElement("span",null,ee.createElement("i",{className:`iconfont ${Se}`})),ee.createElement("span",null,de))),!!ne&&ee.createElement(Ce.Z,{disabled:((Nt=ye==null?void 0:ye.userInfo)==null?void 0:Nt.user_status)===2,className:"ml10",dropdownRender:ne},ee.createElement("span",{className:((_t=ye==null?void 0:ye.userInfo)==null?void 0:_t.user_status)===2?Ke.selectBtn1:Ke.selectBtn},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-tianjiadaohang"})),ee.createElement(Ae.Z,{title:((ot=ye==null?void 0:ye.userInfo)==null?void 0:ot.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},ee.createElement("span",null,ie||"\u521B\u5EFA\u8BD5\u5377"))))))))}},97177:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Ae}});var ee=le(59301),ue=le.p+"static/modelContact.7a7eb113.png",Ge=le(91785),st=le(24065),Ce=le(59301),Ae=()=>{const[Ke,Ne]=(0,ee.useState)(!1);return{verifyModelUser:()=>(0,st.$O)()?!0:(Ne(!0),!1),ContactModalElement:()=>Ce.createElement(Ge.Z,{visible:Ke,setVisible:Ne,image:ue}),contactOpen:Ke,setContactOpen:Ne}}},24768:function(ke,Mt,le){"use strict";le.d(Mt,{AL:function(){return te},Iy:function(){return bt},Qv:function(){return ie},ez:function(){return z},jb:function(){return Re}});var ee=le(32834),ue=le.n(ee),Ge=le(11690),st=le.n(Ge);let Ce=1;function Ve(Se,ce){const ye=Se.match(/^(\s+)(?:```)/);if(ye===null)return ce;const Ie=ye[1];return ce.split(` `).map(et=>{const Et=et.match(/^\s+/);if(Et===null)return et;const[wt]=Et;return wt.length>=Ie.length?et.slice(Ie.length):et}).join(` `)}let Ae=[],Ke=["
    "];const Ne=new(ue()).Renderer,Te=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function bt(){Ae.length=0,Ke=["
      "]}const Re={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Je(Se,ce,ye,Ie){if(ce>=Se.length||Se[ce].level<=ye)return ce;var et=Se[ce];Ie.push("
    • "+et.text+""),ce++;var Et=[];return ce=Je(Se,ce,et.level,Et),Et.length>0&&(Ie.push("
        "),Et.forEach(function(wt){Ie.push(wt)}),Ie.push("
      ")),Ie.push("
    • "),ce=Je(Se,ce,ye,Ie),ce}function ie(){return Je(Ae,0,0,Ke),Ke.push("
    "),Ke.join("")}const a={heading(Se){const ce=Te.exec(Se);if(Ce+=1,ce)return{type:"heading",raw:ce[0],depth:ce[1].length,text:ce[2]}},fences(Se){const ce=this.rules.block.fences.exec(Se);if(ce){const ye=ce[0];let Ie=Ve(ye,ce[3]||"");const et=ce[2]?ce[2].trim():ce[2];if(["latex","katex","math"].indexOf(et)>=0){const Et=y(),wt=Ie;Ie=Et,x[Et]={type:"block",expression:wt}}return{type:"code",raw:ye,lang:et,text:Ie}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let b=0;const y=()=>`__special_katext_id_${b++}__`;let x={};function z(){return x}function te(){b=0,x={}}function ae(Se){return Se=Se.replace(E,(ce,ye)=>{const Ie=y();return x[Ie]={type:"inline",expression:ye},Ie}),Se}const ne=Ne.listitem;Ne.listitem=function(Se){return ne(ae(Se))};const se=Ne.paragraph;Ne.paragraph=function(Se){return se(ae(Se))};const de=Ne.tablecell;Ne.tablecell=function(Se,ce){return de(ae(Se),ce)},Ne.code=function(Se,ce,ye){const Ie=(ce||"").match(/\S*/)[0];return Ie?["latex","katex","math"].indexOf(Ie)>=0?`

    ${Se}

    `:`
    ${ye?Se:(0,Ge.escape)(Se,!0)}
    `:'
    '+(ye?Se:(0,Ge.escape)(Se,!0))+"
    "},Ne.heading=function(Se,ce,ye){let Ie=this.options.headerPrefix+ye.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ae.push({anchor:Ie,level:ce,text:Se}),"'+Se+""},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:a,renderer:Ne}),Mt.ZP=ue()},27666:function(ke,Mt,le){"use strict";var ee=le(19127),ue=le(16089);function Ge(st){let Ce;const Ve=Ke=>()=>{Ce=null,st.apply(void 0,(0,ee.Z)(Ke))},Ae=function(){if(Ce==null){for(var Ke=arguments.length,Ne=new Array(Ke),Te=0;Te{ue.Z.cancel(Ce),Ce=null},Ae}Mt.Z=Ge},81228:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return se}});var ee=le(52884),ue=le(95727),Ge=le(65711),st=le(85745),Ce=le(59301),Ve=le(92310),Ae=le.n(Ve),Ke=le(29301),Ne=le(2738),Te=le(27666),bt=le(36355),Re=le(83116),Je=le(37613);const ie=de=>{const{componentCls:Se}=de;return{[Se]:{position:"fixed",zIndex:de.zIndexPopup}}};var a=(0,Re.Z)("Affix",de=>{const Se=(0,Je.TS)(de,{zIndexPopup:de.zIndexBase+10});return[ie(Se)]});function E(de){return de!==window?de.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function b(de,Se,ce){if(ce!==void 0&&Se.top>de.top-ce)return ce+Se.top}function y(de,Se,ce){if(ce!==void 0&&Se.bottom{const Ie=ye.getTargetFunc(),et=Ie==null?void 0:Ie(),{prevTarget:Et}=ye.state;Et!==et&&(x.forEach(wt=>{Et==null||Et.removeEventListener(wt,ye.lazyUpdatePosition),et==null||et.addEventListener(wt,ye.lazyUpdatePosition)}),ye.updatePosition(),ye.setState({prevTarget:et}))},ye.removeListeners=()=>{ye.timer&&(clearTimeout(ye.timer),ye.timer=null);const{prevTarget:Ie}=ye.state,et=ye.getTargetFunc(),Et=et==null?void 0:et();x.forEach(wt=>{Et==null||Et.removeEventListener(wt,ye.lazyUpdatePosition),Ie==null||Ie.removeEventListener(wt,ye.lazyUpdatePosition)}),ye.updatePosition.cancel(),ye.lazyUpdatePosition.cancel()},ye.getOffsetTop=()=>{const{offsetBottom:Ie,offsetTop:et}=ye.props;return Ie===void 0&&et===void 0?0:et},ye.getOffsetBottom=()=>ye.props.offsetBottom,ye.measure=()=>{const{status:Ie,lastAffix:et}=ye.state,{onChange:Et}=ye.props,wt=ye.getTargetFunc();if(Ie!==te.Prepare||!ye.fixedNodeRef.current||!ye.placeholderNodeRef.current||!wt)return;const Ft=ye.getOffsetTop(),Nt=ye.getOffsetBottom(),_t=wt();if(_t){const ot={status:te.None},Ht=E(ye.placeholderNodeRef.current);if(Ht.top===0&&Ht.left===0&&Ht.width===0&&Ht.height===0)return;const Kt=E(_t),Ze=b(Ht,Kt,Ft),kt=y(Ht,Kt,Nt);Ze!==void 0?(ot.affixStyle={position:"fixed",top:Ze,width:Ht.width,height:Ht.height},ot.placeholderStyle={width:Ht.width,height:Ht.height}):kt!==void 0&&(ot.affixStyle={position:"fixed",bottom:kt,width:Ht.width,height:Ht.height},ot.placeholderStyle={width:Ht.width,height:Ht.height}),ot.lastAffix=!!ot.affixStyle,Et&&et!==ot.lastAffix&&Et(ot.lastAffix),ye.setState(ot)}},ye.prepareMeasure=()=>{ye.setState({status:te.Prepare,affixStyle:void 0,placeholderStyle:void 0})},ye.updatePosition=(0,Te.Z)(()=>{ye.prepareMeasure()}),ye.lazyUpdatePosition=(0,Te.Z)(()=>{const Ie=ye.getTargetFunc(),{affixStyle:et}=ye.state;if(Ie&&et){const Et=ye.getOffsetTop(),wt=ye.getOffsetBottom(),Ft=Ie();if(Ft&&ye.placeholderNodeRef.current){const Nt=E(Ft),_t=E(ye.placeholderNodeRef.current),ot=b(_t,Nt,Et),Ht=y(_t,Nt,wt);if(ot!==void 0&&et.top===ot||Ht!==void 0&&et.bottom===Ht)return}}ye.prepareMeasure()}),ye}return(0,ue.Z)(ce,[{key:"getTargetFunc",value:function(){const{getTargetContainer:Ie}=this.context,{target:et}=this.props;return et!==void 0?et:Ie!=null?Ie:z}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(Ie){this.addListeners(),(Ie.offsetTop!==this.props.offsetTop||Ie.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:Ie,placeholderStyle:et}=this.state,{affixPrefixCls:Et,rootClassName:wt,children:Ft}=this.props,Nt=Ae()(Ie&&wt,{[Et]:!!Ie});let _t=(0,Ne.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return Ce.createElement(Ke.Z,{onResize:this.updatePosition},Ce.createElement("div",Object.assign({},_t,{ref:this.placeholderNodeRef}),Ie&&Ce.createElement("div",{style:et,"aria-hidden":"true"}),Ce.createElement("div",{className:Nt,ref:this.fixedNodeRef,style:Ie},Ce.createElement(Ke.Z,{onResize:this.updatePosition},Ft))))}}]),ce}(Ce.Component);ae.contextType=bt.E_;var se=(0,Ce.forwardRef)((de,Se)=>{const{prefixCls:ce,rootClassName:ye}=de,{getPrefixCls:Ie}=(0,Ce.useContext)(bt.E_),et=Ie("affix",ce),[Et,wt]=a(et),Ft=Object.assign(Object.assign({},de),{affixPrefixCls:et,rootClassName:Ae()(ye,wt)});return Et(Ce.createElement(ae,Object.assign({},Ft,{ref:Se})))})},5083:function(ke,Mt,le){"use strict";le.d(Mt,{default:function(){return Wi}});var ee=le(61186),ue=le.n(ee),Ge=le(48736),st=le(90111),Ce=le.n(st),Ve=le(58319),Ae=le.n(Ve),Ke=le(23250),Ne=le.n(Ke),Te=le(74959),bt=le.n(Te),Re=le(10238),Je=le.n(Re),ie=le(33656),a=le.n(ie);ue().extend(a()),ue().extend(Je()),ue().extend(Ce()),ue().extend(Ae()),ue().extend(Ne()),ue().extend(bt()),ue().extend(function(oe,re){var ge=re.prototype,me=ge.format;ge.format=function(he){var ve=(he||"").replace("Wo","wo");return me.bind(this)(ve)}});var E={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},b=function(re){var ge=E[re];return ge||re.split("_")[0]},y=function(){(0,Ge.ET)(!1,"Not match any format. Please help to fire a issue about this.")},x={getNow:function(){return ue()()},getFixedDate:function(re){return ue()(re,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(re){return re.endOf("month")},getWeekDay:function(re){var ge=re.locale("en");return ge.weekday()+ge.localeData().firstDayOfWeek()},getYear:function(re){return re.year()},getMonth:function(re){return re.month()},getDate:function(re){return re.date()},getHour:function(re){return re.hour()},getMinute:function(re){return re.minute()},getSecond:function(re){return re.second()},addYear:function(re,ge){return re.add(ge,"year")},addMonth:function(re,ge){return re.add(ge,"month")},addDate:function(re,ge){return re.add(ge,"day")},setYear:function(re,ge){return re.year(ge)},setMonth:function(re,ge){return re.month(ge)},setDate:function(re,ge){return re.date(ge)},setHour:function(re,ge){return re.hour(ge)},setMinute:function(re,ge){return re.minute(ge)},setSecond:function(re,ge){return re.second(ge)},isAfter:function(re,ge){return re.isAfter(ge)},isValidate:function(re){return re.isValid()},locale:{getWeekFirstDay:function(re){return ue()().locale(b(re)).localeData().firstDayOfWeek()},getWeekFirstDate:function(re,ge){return ge.locale(b(re)).weekday(0)},getWeek:function(re,ge){return ge.locale(b(re)).week()},getShortWeekDays:function(re){return ue()().locale(b(re)).localeData().weekdaysMin()},getShortMonths:function(re){return ue()().locale(b(re)).localeData().monthsShort()},format:function(re,ge,me){return ge.locale(b(re)).format(me)},parse:function(re,ge,me){for(var fe=b(re),he=0;he1&&(ve=re.addDate(ve,-7)),ve}function Wt(oe,re,ge){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(re){case"year":return ge.addYear(oe,me*10);case"quarter":case"month":return ge.addYear(oe,me);default:return ge.addMonth(oe,me)}}function Nn(oe,re){var ge=re.generateConfig,me=re.locale,fe=re.format;return typeof fe=="function"?fe(oe):ge.locale.format(me.locale,oe,fe)}function Dn(oe,re){var ge=re.generateConfig,me=re.locale,fe=re.formatList;return!oe||typeof fe[0]=="function"?null:ge.locale.parse(me.locale,oe,fe)}function kn(oe){var re=oe.cellDate,ge=oe.mode,me=oe.disabledDate,fe=oe.generateConfig;if(!me)return!1;var he=function(St,Oe,Xe){for(var pt=Oe;pt<=Xe;){var en=void 0;switch(St){case"date":{if(en=fe.setDate(re,pt),!me(en))return!1;break}case"month":{if(en=fe.setMonth(re,pt),!kn({cellDate:en,mode:"month",generateConfig:fe,disabledDate:me}))return!1;break}case"year":{if(en=fe.setYear(re,pt),!kn({cellDate:en,mode:"year",generateConfig:fe,disabledDate:me}))return!1;break}}pt+=1}return!0};switch(ge){case"date":case"week":return me(re);case"month":{var ve=1,Me=fe.getDate(fe.getEndDate(re));return he("date",ve,Me)}case"quarter":{var Fe=Math.floor(fe.getMonth(re)/3)*3,Ye=Fe+2;return he("month",Fe,Ye)}case"year":return he("month",0,11);case"decade":{var yt=fe.getYear(re),qe=Math.floor(yt/We)*We,$e=qe+We-1;return he("year",qe,$e)}}}function Cn(oe,re){var ge=re.formatList,me=re.generateConfig,fe=re.locale;return(0,Qn.Z)(function(){if(!oe)return[[""],""];for(var he="",ve=[],Me=0;Me1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ye.current),pt){Fe(Xe);return}Ye.current=requestAnimationFrame(function(){Fe(Xe)})}var qe=Cn(Me,{formatList:ge,generateConfig:me,locale:fe}),$e=(0,ht.Z)(qe,2),ft=$e[1];function St(Xe){yt(Xe)}function Oe(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;yt(null,Xe)}return(0,ne.useEffect)(function(){Oe(!0)},[oe]),(0,ne.useEffect)(function(){return function(){return cancelAnimationFrame(Ye.current)}},[]),[ft,St,Oe]}var hn=le(10228),Wn=le(16089),eo=le(19127),ya=le(29194),fa=new Map;function ha(oe,re){var ge;function me(){(0,ya.Z)(oe)?re():ge=(0,Wn.Z)(function(){me()})}return me(),function(){Wn.Z.cancel(ge)}}function Da(oe,re,ge){if(fa.get(oe)&&cancelAnimationFrame(fa.get(oe)),ge<=0){fa.set(oe,requestAnimationFrame(function(){oe.scrollTop=re}));return}var me=re-oe.scrollTop,fe=me/ge*10;fa.set(oe,requestAnimationFrame(function(){oe.scrollTop+=fe,oe.scrollTop!==re&&Da(oe,re,ge-10)}))}function Oa(oe,re){var ge=re.onLeftRight,me=re.onCtrlLeftRight,fe=re.onUpDown,he=re.onPageUpDown,ve=re.onEnter,Me=oe.which,Fe=oe.ctrlKey,Ye=oe.metaKey;switch(Me){case hn.Z.LEFT:if(Fe||Ye){if(me)return me(-1),!0}else if(ge)return ge(-1),!0;break;case hn.Z.RIGHT:if(Fe||Ye){if(me)return me(1),!0}else if(ge)return ge(1),!0;break;case hn.Z.UP:if(fe)return fe(-1),!0;break;case hn.Z.DOWN:if(fe)return fe(1),!0;break;case hn.Z.PAGE_UP:if(he)return he(-1),!0;break;case hn.Z.PAGE_DOWN:if(he)return he(1),!0;break;case hn.Z.ENTER:if(ve)return ve(),!0;break}return!1}function Ma(oe,re,ge,me){var fe=oe;if(!fe)switch(re){case"time":fe=me?"hh:mm:ss a":"HH:mm:ss";break;case"week":fe="gggg-wo";break;case"month":fe="YYYY-MM";break;case"quarter":fe="YYYY-[Q]Q";break;case"year":fe="YYYY";break;default:fe=ge?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return fe}function ua(oe,re,ge){var me=oe==="time"?8:10,fe=typeof re=="function"?re(ge.getNow()).length:re.length;return Math.max(me,fe)+2}var Pn=null,bn=new Set;function ho(oe){return!Pn&&typeof window!="undefined"&&window.addEventListener&&(Pn=function(ge){(0,eo.Z)(bn).forEach(function(me){me(ge)})},window.addEventListener("mousedown",Pn)),bn.add(oe),function(){bn.delete(oe),bn.size===0&&(window.removeEventListener("mousedown",Pn),Pn=null)}}function wo(oe){var re=oe.target;if(oe.composed&&re.shadowRoot){var ge;return((ge=oe.composedPath)===null||ge===void 0?void 0:ge.call(oe)[0])||re}return re}var Bo=function(re){return re==="month"||re==="date"?"year":re},Oo=function(re){return re==="date"?"month":re},Go=function(re){return re==="month"||re==="date"?"quarter":re},Zo=function(re){return re==="date"?"week":re},vt={year:Bo,month:Oo,quarter:Go,week:Zo,time:null,date:null};function Dt(oe,re){return oe.some(function(ge){return ge&&ge.contains(re)})}function Ee(oe){var re=oe.open,ge=oe.value,me=oe.isClickOutside,fe=oe.triggerOpen,he=oe.forwardKeyDown,ve=oe.onKeyDown,Me=oe.blurToCancel,Fe=oe.onSubmit,Ye=oe.onCancel,yt=oe.onFocus,qe=oe.onBlur,$e=oe.changeOnBlur,ft=(0,ne.useState)(!1),St=(0,ht.Z)(ft,2),Oe=St[0],Xe=St[1],pt=(0,ne.useState)(!1),en=(0,ht.Z)(pt,2),Ut=en[0],nn=en[1],un=(0,ne.useRef)(!1),an=(0,ne.useRef)(!1),Zt=(0,ne.useRef)(!1),jn={onMouseDown:function(){Xe(!0),fe(!0)},onKeyDown:function(Hn){var ea=function(){Zt.current=!0};if(ve(Hn,ea),!Zt.current){switch(Hn.which){case hn.Z.ENTER:{re?Fe()!==!1&&Xe(!0):fe(!0),Hn.preventDefault();return}case hn.Z.TAB:{Oe&&re&&!Hn.shiftKey?(Xe(!1),Hn.preventDefault()):!Oe&&re&&!he(Hn)&&Hn.shiftKey&&(Xe(!0),Hn.preventDefault());return}case hn.Z.ESC:{Xe(!0),Ye();return}}!re&&![hn.Z.SHIFT].includes(Hn.which)?fe(!0):Oe||he(Hn)}},onFocus:function(Hn){Xe(!0),nn(!0),yt&&yt(Hn)},onBlur:function(Hn){if(un.current||!me(document.activeElement)){un.current=!1;return}Me?setTimeout(function(){for(var ea=document,Pa=ea.activeElement;Pa&&Pa.shadowRoot;)Pa=Pa.shadowRoot.activeElement;me(Pa)&&Ye()},0):re&&(fe(!1),an.current&&Fe()),nn(!1),qe==null||qe(Hn)}};return(0,ne.useEffect)(function(){an.current=!1},[re]),(0,ne.useEffect)(function(){an.current=!0},[ge]),(0,ne.useEffect)(function(){return ho(function(Ln){var Hn=wo(Ln),ea=me(Hn);re&&(ea?!$e&&(!Ut||ea)&&fe(!1):(un.current=!0,(0,Wn.Z)(function(){un.current=!1})))})}),[jn,{focused:Ut,typing:Oe}]}function we(oe,re){return ne.useMemo(function(){return oe||(re?((0,Ge.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(re).map(function(ge){var me=(0,ht.Z)(ge,2),fe=me[0],he=me[1];return{label:fe,value:he}})):[])},[oe,re])}var xe=le(34280);function dt(oe){var re=oe.valueTexts,ge=oe.onTextChange,me=ne.useState(""),fe=(0,ht.Z)(me,2),he=fe[0],ve=fe[1],Me=ne.useRef([]);Me.current=re;function Fe(yt){ve(yt),ge(yt)}function Ye(){ve(Me.current[0])}return(0,xe.Z)(function(){re.every(function(yt){return yt!==he})&&Ye()},[re.join("||")]),[he,Fe,Ye]}var nt=ne.createContext({}),gt=nt,Lt=le(20135);function dn(oe){var re=oe.cellRender,ge=oe.monthCellRender,me=oe.dateRender,fe=ne.useMemo(function(){if(re)return re;if(!(!ge&&!me))return function(he,ve){var Me=he;return me&&ve.type==="date"?me(Me,ve.today):ge&&ve.type==="month"?ge(Me,ve.locale):ve.originNode}},[re,ge,me]);return fe}function tn(oe,re){for(var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",me=String(oe);me.length=1?ge|0:1,ve=oe;ve<=re;ve+=he)fe.push({label:tn(ve,2),value:ve,disabled:(me||[]).includes(ve)});return fe}function co(oe){var re=oe.generateConfig,ge=oe.prefixCls,me=oe.operationRef,fe=oe.activeColumnIndex,he=oe.value,ve=oe.showHour,Me=oe.showMinute,Fe=oe.showSecond,Ye=oe.use12Hours,yt=oe.hourStep,qe=yt===void 0?1:yt,$e=oe.minuteStep,ft=$e===void 0?1:$e,St=oe.secondStep,Oe=St===void 0?1:St,Xe=oe.disabledHours,pt=oe.disabledMinutes,en=oe.disabledSeconds,Ut=oe.disabledTime,nn=oe.hideDisabledOptions,un=oe.onSelect,an=oe.cellRender,Zt=oe.locale,jn=[],Ln="".concat(ge,"-content"),Hn="".concat(ge,"-time-panel"),ea,Pa=he?re.getHour(he):-1,Aa=Pa,Ga=he?re.getMinute(he):-1,sa=he?re.getSecond(he):-1,$n=re.getNow(),ta=ne.useMemo(function(){if(Ut){var Un=Ut($n);return[Un.disabledHours,Un.disabledMinutes,Un.disabledSeconds]}return[Xe,pt,en]},[Xe,pt,en,Ut,$n]),Ea=(0,ht.Z)(ta,3),La=Ea[0],ra=Ea[1],Ta=Ea[2],mo=oa(0,23,qe,La&&La()),oo=(0,Qn.Z)(function(){return mo},mo,Ha);Ye&&(ea=Aa>=12,Aa%=12);var Lo=ne.useMemo(function(){if(!Ye)return[!1,!1];var Un=[!0,!0];return oo.forEach(function(io){var Xa=io.disabled,Mo=io.value;Xa||(Mo>=12?Un[1]=!1:Un[0]=!1)}),Un},[Ye,oo]),Wa=(0,ht.Z)(Lo,2),xo=Wa[0],za=Wa[1],ro=ne.useMemo(function(){return Ye?oo.filter(ea?function(Un){return Un.value>=12}:function(Un){return Un.value<12}).map(function(Un){var io=Un.value%12,Xa=io===0?"12":tn(io,2);return(0,mt.Z)((0,mt.Z)({},Un),{},{label:Xa,value:io})}):oo},[Ye,ea,oo]),Po=oa(0,59,ft,ra&&ra(Pa)),zo=oa(0,59,Oe,Ta&&Ta(Pa,Ga)),Eo=$t({value:he,generateConfig:re,disabledMinutes:ra,disabledSeconds:Ta,minutes:Po,seconds:zo,use12Hours:Ye});me.current={onUpDown:function(io){var Xa=jn[fe];if(Xa)for(var Mo=Xa.units.findIndex(function(kr){return kr.value===Xa.value}),To=Xa.units.length,Va=1;Va2&&arguments[2]!==void 0?arguments[2]:!1;(qa===Xe||_a)&&(ui(fn),jn&&jn(fn),Eo&&Eo(fn,Yn),Ln&&!Jt(Fe,fn,Xo)&&!(ft!=null&&ft(fn))&&Ln(fn))},qo=function(fn){if(wr.includes(qa)){var Yn,_a,Mr=qa==="date";switch(fn===hn.Z.PAGE_UP||fn===hn.Z.PAGE_DOWN?_a=Mr?Fe.addMonth:Fe.addYear:_a=Mr?Fe.addDate:Fe.addMonth,fn){case hn.Z.LEFT:case hn.Z.PAGE_UP:Yn=_a(jo,-1);break;case hn.Z.RIGHT:case hn.Z.PAGE_DOWN:Yn=_a(jo,1);break;case hn.Z.UP:case hn.Z.DOWN:Yn=_a(jo,Number("".concat(fn===hn.Z.UP?"-":"").concat(Mr?xt:Vr)));break}if(Yn)return!(ft!=null&&ft(Yn))}return!0},ni=function(fn){if(Va.current&&Va.current.onKeyDown){var Yn=!0,_a=fn.which;if([hn.Z.LEFT,hn.Z.RIGHT,hn.Z.UP,hn.Z.DOWN,hn.Z.PAGE_UP,hn.Z.PAGE_DOWN,hn.Z.ENTER].includes(_a)&&(fn.preventDefault(),_a!==hn.Z.ENTER&&en===0&&(Yn=qo(_a))),Yn)return Va.current.onKeyDown(fn)}return(0,Ge.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},uo=function(fn){Va.current&&Va.current.onBlur&&Va.current.onBlur(fn)};zo&&Xa!=="right"&&(zo.current={onKeyDown:ni,onClose:function(){Va.current&&Va.current.onClose&&Va.current.onClose()}}),ne.useEffect(function(){Ye&&!yo.current&&br(Ye)},[Ye]),ne.useEffect(function(){yo.current=!1},[]);var or,Ur=dn({cellRender:Lo,monthCellRender:oo,dateRender:mo}),xa=(0,mt.Z)((0,mt.Z)({},oe),{},{cellRender:Ur,operationRef:Va,prefixCls:fe,viewDate:jo,value:Xo,onViewDateChange:lr,sourceMode:gr,onPanelChange:Tr,disabledDate:ft});switch(delete xa.onChange,delete xa.onSelect,qa){case"decade":or=ne.createElement(mr,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;case"year":or=ne.createElement(tr,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;case"month":or=ne.createElement(Li,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;case"quarter":or=ne.createElement(Ia,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;case"week":or=ne.createElement(Qa,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;case"time":delete xa.showTime,or=ne.createElement(dr,(0,ae.Z)({},xa,(0,Lt.Z)(nn)==="object"?nn:null,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}));break;default:nn?or=ne.createElement($o,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}})):or=ne.createElement(ct,(0,ae.Z)({},xa,{onSelect:function(fn,Yn){lr(fn),fo(fn,Yn)}}))}var Yr,Lr,xr=function(){var fn=Fe.getNow(),Yn=_n(Fe.getHour(fn),Fe.getMinute(fn),Fe.getSecond(fn),xo?ta:1,za?La:1,ro?Ta:1),_a=Fn(Fe,fn,Yn[0],Yn[1],Yn[2]);fo(_a,"submit")};nr||(Yr=ri(fe,qa,an),nn&&qa!=="date"?Lr=null:Lr=Ca({prefixCls:fe,components:Ga,needConfirmButton:Wa,okDisabled:!Xo||ft&&ft(Xo),locale:Me,showNow:Ut,onNow:Wa&&xr,onOk:function(){Xo&&(fo(Xo,"submit",!0),Aa&&Aa(Xo))}}));var wi;if(un&&qa==="date"&&Xe==="date"&&!nn){var ai=Fe.getNow(),Ii="".concat(fe,"-today-btn"),ci=ft&&ft(ai);wi=ne.createElement("a",{className:Pe()(Ii,ci&&"".concat(Ii,"-disabled")),"aria-disabled":ci,onClick:function(){ci||fo(ai,"mouse",!0)}},Me.today)}return ne.createElement(gt.Provider,{value:(0,mt.Z)((0,mt.Z)({},Po),{},{mode:qa,hideHeader:"hideHeader"in oe?Zt:Po.hideHeader,hidePrevBtn:io&&Xa==="right",hideNextBtn:io&&Xa==="left"})},ne.createElement("div",{tabIndex:en,className:Pe()("".concat(fe,"-panel"),he,(re={},(0,pe.Z)(re,"".concat(fe,"-panel-has-range"),Mo&&Mo[0]&&Mo[1]),(0,pe.Z)(re,"".concat(fe,"-panel-has-range-hover"),To&&To[0]&&To[1]),(0,pe.Z)(re,"".concat(fe,"-panel-rtl"),sa==="rtl"),re)),style:ve,onKeyDown:ni,onBlur:uo,onMouseDown:ea},or,Yr||Lr||wi?ne.createElement("div",{className:"".concat(fe,"-footer")},Yr,Lr,wi):null))}var jr=pi,Xr=le(35593),qr={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Vo(oe){var re,ge=oe.prefixCls,me=oe.popupElement,fe=oe.popupStyle,he=oe.visible,ve=oe.dropdownClassName,Me=oe.dropdownAlign,Fe=oe.transitionName,Ye=oe.getPopupContainer,yt=oe.children,qe=oe.range,$e=oe.popupPlacement,ft=oe.direction,St="".concat(ge,"-dropdown"),Oe=function(){return $e!==void 0?$e:ft==="rtl"?"bottomRight":"bottomLeft"};return ne.createElement(Xr.Z,{showAction:[],hideAction:[],popupPlacement:Oe(),builtinPlacements:qr,prefixCls:St,popupTransitionName:Fe,popup:me,popupAlign:Me,popupVisible:he,popupClassName:Pe()(ve,(re={},(0,pe.Z)(re,"".concat(St,"-range"),qe),(0,pe.Z)(re,"".concat(St,"-rtl"),ft==="rtl"),re)),popupStyle:fe,getPopupContainer:Ye},yt)}var Gr=Vo;function Ao(oe){var re=oe.prefixCls,ge=oe.presets,me=oe.onClick,fe=oe.onHover;return ge.length?ne.createElement("div",{className:"".concat(re,"-presets")},ne.createElement("ul",null,ge.map(function(he,ve){var Me=he.label,Fe=he.value;return ne.createElement("li",{key:ve,onClick:function(){return me==null?void 0:me(Tn(Fe))},onMouseEnter:function(){return fe==null?void 0:fe(Tn(Fe))},onMouseLeave:function(){return fe==null?void 0:fe(null)}},Me)}))):null}function Nr(oe){var re=oe.picker,ge=oe.disabledHours,me=oe.disabledMinutes,fe=oe.disabledSeconds;re==="time"&&(ge||me||fe)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Jo(oe,re,ge){var me=(0,Lt.Z)(re)==="object"?re.clearIcon:ge;return me||ne.createElement("span",{className:"".concat(oe,"-clear-btn")})}function xi(oe){var re,ge=oe,me=ge.prefixCls,fe=me===void 0?"rc-picker":me,he=ge.id,ve=ge.name,Me=ge.tabIndex,Fe=ge.style,Ye=ge.className,yt=ge.dropdownClassName,qe=ge.dropdownAlign,$e=ge.popupStyle,ft=ge.transitionName,St=ge.generateConfig,Oe=ge.locale,Xe=ge.inputReadOnly,pt=ge.allowClear,en=ge.autoFocus,Ut=ge.showTime,nn=ge.picker,un=nn===void 0?"date":nn,an=ge.format,Zt=ge.use12Hours,jn=ge.value,Ln=ge.defaultValue,Hn=ge.presets,ea=ge.open,Pa=ge.defaultOpen,Aa=ge.defaultOpenValue,Ga=ge.suffixIcon,sa=ge.clearIcon,$n=ge.disabled,ta=ge.disabledDate,Ea=ge.placeholder,La=ge.getPopupContainer,ra=ge.pickerRef,Ta=ge.panelRender,mo=ge.onChange,oo=ge.onOpenChange,Lo=ge.onFocus,Wa=ge.onBlur,xo=ge.onMouseDown,za=ge.onMouseUp,ro=ge.onMouseEnter,Po=ge.onMouseLeave,zo=ge.onContextMenu,Eo=ge.onClick,nr=ge.onKeyDown,hr=ge.onSelect,Un=ge.direction,io=ge.autoComplete,Xa=io===void 0?"off":io,Mo=ge.inputRender,To=ge.changeOnBlur,Va=ne.useRef(null),yo=un==="date"&&!!Ut||un==="time",kr=we(Hn),Cr=Xn(Ma(an,un,Ut,Zt)),Xo=ne.useRef(null),ui=ne.useRef(null),Bi=ne.useRef(null),Ei=(0,jt.Z)(null,{value:jn,defaultValue:Ln}),jo=(0,ht.Z)(Ei,2),br=jo[0],lr=jo[1],yi=ne.useState(br),ti=(0,ht.Z)(yi,2),Sr=ti[0],qa=ti[1],ar=ne.useRef(null),Hr=(0,jt.Z)(!1,{value:ea,defaultValue:Pa,postState:function(xn){return $n?!1:xn},onChange:function(xn){oo&&oo(xn),!xn&&ar.current&&ar.current.onClose&&ar.current.onClose()}}),Qr=(0,ht.Z)(Hr,2),gr=Qr[0],pr=Qr[1],Tr=Cn(Sr,{formatList:Cr,generateConfig:St,locale:Oe}),fo=(0,ht.Z)(Tr,2),qo=fo[0],ni=fo[1],uo=dt({valueTexts:qo,onTextChange:function(xn){var _o=Dn(xn,{locale:Oe,formatList:Cr,generateConfig:St});_o&&(!ta||!ta(_o))&&qa(_o)}}),or=(0,ht.Z)(uo,3),Ur=or[0],xa=or[1],Yr=or[2],Lr=function(xn){qa(xn),lr(xn),mo&&!Jt(St,br,xn)&&mo(xn,xn?Nn(xn,{generateConfig:St,locale:Oe,format:Cr[0]}):"")},xr=function(xn){$n&&xn||pr(xn)},wi=function(xn){return gr&&ar.current&&ar.current.onKeyDown?ar.current.onKeyDown(xn):((0,Ge.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ai=function(){for(var xn=arguments.length,_o=new Array(xn),rr=0;rr$e(Ye);case"month":return qe(Oe)>qe(Ye);case"week":return yt(Oe)>yt(Ye);default:return!it(Me,Oe,Ye)&&Me.isAfter(Oe,Ye)}return!1},[he,ve[1],Ye,re]),St=ne.useCallback(function(Oe){if(ve[1]||he&&he(Oe))return!0;if(ve[0]&&Fe)return!it(Me,Oe,Ye)&&Me.isAfter(Fe,Oe);if(!re&&Fe)switch(ge){case"quarter":return $e(Oe)<$e(Fe);case"month":return qe(Oe)0&&arguments[0]!==void 0?arguments[0]:!1,yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},In=null;Do&&Fi&&Fi[0]&&Fi[1]&&Oe.isAfter(Fi[1],Fi[0])&&(In=Fi);var da=Zt;if(Zt&&(0,Lt.Z)(Zt)==="object"&&Zt.defaultValue){var Ja=Zt.defaultValue;da=(0,mt.Z)((0,mt.Z)({},Zt),{},{defaultValue:Qe(Ja,zn)||void 0})}return ne.createElement(Pt.Provider,{value:{inRange:!0,panelPosition:ga,rangedValue:tg||On,hoverRangedValue:In}},ne.createElement(jr,(0,ae.Z)({},oe,yn,{cellRender:wg,showTime:da,mode:Mr[zn],generateConfig:Oe,style:void 0,direction:jo,disabledDate:zn===0?Zi:qi,disabledTime:function(Or){return ta?ta(Or,zn===0?"start":"end"):!1},className:Pe()((0,pe.Z)({},"".concat(ve,"-panel-focused"),zn===0?!Ol:!Gl)),value:Qe(On,zn),locale:Xe,tabIndex:-1,onPanelChange:function(Or,fi){zn===0&&dl(!0),zn===1&&cl(!0),ji(Yt(Mr,fi,zn),Yt(On,Or,zn));var hi=Or;ga==="right"&&Mr[zn]===fi&&(hi=Wt(hi,fi,Oe,-1)),ai(hi,zn)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:zn===0?Qe(On,1):Qe(On,0)})))}var mi=0,Zl=0;if(zn&&Hr.current&&gr.current&&ar.current&&fo.current){mi=Hr.current.offsetWidth+gr.current.offsetWidth;var Cg=fo.current.offsetLeft>mi?fo.current.offsetLeft-mi:fo.current.offsetLeft,Hl=ar.current.offsetWidth,Ql=fo.current.offsetWidth;Hl&&Ql&&mi>Hl-Ql-(jo==="rtl"?0:Cg)&&(Zl=mi)}var bg=jo==="rtl"?{right:mi}:{left:mi};function Lg(){var ga,yn=ri(ve,Mr[zn],Eo),In=Ca({prefixCls:ve,components:Bi,needConfirmButton:Sr,okDisabled:!Qe(On,zn)||$n&&$n(On[zn]),locale:Xe,onOk:function(){var Rr=Qe(On,zn);Rr&&(rr(On,zn),Xo==null||Xo(On),Dr(!1,zn,"confirm"))}});if(an!=="time"&&!Zt){var da=wi(zn),Ja=Wt(da,an,Oe),ki=Mr[zn],Or=ki===an,fi=fl(Or?"left":!1,{pickerValue:da,onPickerValueChange:function(Rr){ai(Rr,zn)}}),hi=fl("right",{pickerValue:Ja,onPickerValueChange:function(Rr){ai(Wt(Rr,an,Oe,-1),zn)}});jo==="rtl"?ga=ne.createElement(ne.Fragment,null,hi,Or&&fi):ga=ne.createElement(ne.Fragment,null,fi,Or&&hi)}else ga=fl();var Hi=ne.createElement("div",{className:"".concat(ve,"-panel-layout")},ne.createElement(Ao,{prefixCls:ve,presets:Ag,onClick:function(Rr){rr(Rr,null),Dr(!1,zn,"preset")},onHover:function(Rr){ng(Rr)}}),ne.createElement("div",null,ne.createElement("div",{className:"".concat(ve,"-panels")},ga),(yn||In)&&ne.createElement("div",{className:"".concat(ve,"-footer")},yn,In)));return Ta&&(Hi=Ta(Hi)),ne.createElement("div",{className:"".concat(ve,"-panel-container"),style:{marginLeft:Zl},ref:ar,onMouseDown:function(Rr){Rr.preventDefault()}},Hi)}var xg=ne.createElement("div",{className:Pe()("".concat(ve,"-range-wrapper"),"".concat(ve,"-").concat(an,"-range-wrapper")),style:{minWidth:$a}},ne.createElement("div",{ref:fo,className:"".concat(ve,"-range-arrow"),style:bg}),Lg()),Ul;xo&&(Ul=ne.createElement("span",{className:"".concat(ve,"-suffix"),onMouseDown:function(yn){yn.preventDefault()}},xo));var Mg=Jo(ve,Wa,za),Dg=ne.createElement("span",{onMouseDown:function(yn){yn.preventDefault(),yn.stopPropagation()},onMouseUp:function(yn){yn.preventDefault(),yn.stopPropagation();var In=xa;uo[0]||(In=Yt(In,null,0)),uo[1]||(In=Yt(In,null,1)),rr(In,null),Dr(!1,zn,"clear")},className:"".concat(ve,"-clear"),role:"button"},Mg),Bg=Wa&&(Qe(xa,0)&&!uo[0]||Qe(xa,1)&&!uo[1]),Yl={size:ua(an,qo[0],Oe)},hl=0,Sl=0;Hr.current&&Qr.current&&gr.current&&(zn===0?Sl=Hr.current.offsetWidth:(hl=mi,Sl=Qr.current.offsetWidth));var Ig=jo==="rtl"?{right:hl}:{left:hl},Ng=function(yn,In){var da=Yt(On,yn,zn);if(In==="submit"||In!=="key"&&!Sr){rr(da,zn),zn===0?dl():cl();var Ja=zn===0?1:0;uo[Ja]?Dr(!1,!1,"confirm"):Dr(!1,zn,"confirm")}else fn(da)};return ne.createElement(gt.Provider,{value:{operationRef:ni,hideHeader:an==="time",onDateMouseEnter:gg,onDateMouseLeave:sg,hideRanges:!0,onSelect:Ng,open:Do}},ne.createElement(Gr,{visible:Do,popupElement:xg,popupStyle:yt,prefixCls:ve,dropdownClassName:qe,dropdownAlign:ft,getPopupContainer:St,transitionName:$e,range:!0,direction:jo},ne.createElement("div",(0,ae.Z)({ref:qa,className:Pe()(ve,"".concat(ve,"-range"),Ye,(re={},(0,pe.Z)(re,"".concat(ve,"-disabled"),uo[0]&&uo[1]),(0,pe.Z)(re,"".concat(ve,"-focused"),zn===0?Tl:jl),(0,pe.Z)(re,"".concat(ve,"-rtl"),jo==="rtl"),re)),style:Fe,onClick:vg,onMouseEnter:yo,onMouseLeave:kr,onMouseDown:Pg,onMouseUp:Va},(0,rn.Z)(oe,{aria:!0,data:!0})),ne.createElement("div",{className:Pe()("".concat(ve,"-input"),(ge={},(0,pe.Z)(ge,"".concat(ve,"-input-active"),zn===0),(0,pe.Z)(ge,"".concat(ve,"-input-placeholder"),!!Ml),ge)),ref:Hr},ne.createElement("input",(0,ae.Z)({id:Me,disabled:uo[0],readOnly:Po||typeof qo[0]=="function"||!Ol,value:Ml||tl,onChange:function(yn){yl(yn.target.value)},autoFocus:en,placeholder:Qe(pt,0)||"",ref:pr},hg,Yl,{autoComplete:yi}))),ne.createElement("div",{className:"".concat(ve,"-range-separator"),ref:gr},Hn),ne.createElement("div",{className:Pe()("".concat(ve,"-input"),(me={},(0,pe.Z)(me,"".concat(ve,"-input-active"),zn===1),(0,pe.Z)(me,"".concat(ve,"-input-placeholder"),!!Dl),me)),ref:Qr},ne.createElement("input",(0,ae.Z)({disabled:uo[1],readOnly:Po||typeof qo[0]=="function"||!Gl,value:Dl||nl,onChange:function(yn){Al(yn.target.value)},placeholder:Qe(pt,1)||"",ref:Tr},pg,Yl,{autoComplete:yi}))),ne.createElement("div",{className:"".concat(ve,"-active-bar"),style:(0,mt.Z)((0,mt.Z)({},Ig),{},{width:Sl,position:"absolute"})}),Ul,Bg&&Dg)))}var Bt=function(oe){(0,At.Z)(ge,oe);var re=(0,on.Z)(ge);function ge(){var me;(0,He.Z)(this,ge);for(var fe=arguments.length,he=new Array(fe),ve=0;ve{const{lineHeight:fe}=oe,he=Math.floor(ge*fe)+2,ve=Math.max((re-he)/2,0),Me=Math.max(re-he-ve,0);return{padding:`${ve}px ${me}px ${Me}px`}},Zr=oe=>{const{componentCls:re,pickerCellCls:ge,pickerCellInnerCls:me,cellHeight:fe,motionDurationSlow:he,borderRadiusSM:ve,motionDurationMid:Me,cellHoverBg:Fe,lineWidth:Ye,lineType:yt,colorPrimary:qe,cellActiveWithRangeBg:$e,colorTextLightSolid:ft,controlHeightSM:St,cellRangeBorderColor:Oe,pickerCellBorderGap:Xe,cellHoverWithRangeBg:pt,cellWidth:en,colorTextDisabled:Ut,cellBgDisabled:nn}=oe;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:fe,transform:"translateY(-50%)",transition:`all ${he}`,content:'""'},[me]:{position:"relative",zIndex:2,display:"inline-block",minWidth:fe,height:fe,lineHeight:`${fe}px`,borderRadius:ve,transition:`background ${Me}, border ${Me}`},"&-range-hover-start, &-range-hover-end":{[me]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${ge}-in-view), &:hover:not(${ge}-selected):not(${ge}-range-start):not(${ge}-range-end):not(${ge}-range-hover-start):not(${ge}-range-hover-end)`]:{[me]:{background:Fe}},[`&-in-view${ge}-today ${me}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ye}px ${yt} ${qe}`,borderRadius:ve,content:'""'}},[`&-in-view${ge}-in-range`]:{position:"relative","&::before":{background:$e}},[`&-in-view${ge}-selected ${me}, &-in-view${ge}-range-start ${me}, &-in-view${ge}-range-end ${me}`]:{color:ft,background:qe},[`&-in-view${ge}-range-start:not(${ge}-range-start-single), &-in-view${ge}-range-end:not(${ge}-range-end-single)`]:{"&::before":{background:$e}},[`&-in-view${ge}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${ge}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${ge}-range-hover-start:not(${ge}-in-range):not(${ge}-range-start):not(${ge}-range-end), &-in-view${ge}-range-hover-end:not(${ge}-in-range):not(${ge}-range-start):not(${ge}-range-end), &-in-view${ge}-range-hover-start${ge}-range-start-single, &-in-view${ge}-range-hover-start${ge}-range-start${ge}-range-end${ge}-range-end-near-hover, &-in-view${ge}-range-hover-end${ge}-range-start${ge}-range-end${ge}-range-start-near-hover, &-in-view${ge}-range-hover-end${ge}-range-end-single, &-in-view${ge}-range-hover:not(${ge}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:St,borderTop:`${Ye}px dashed ${Oe}`,borderBottom:`${Ye}px dashed ${Oe}`,transform:"translateY(-50%)",transition:`all ${he}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Xe},[`&-in-view${ge}-in-range${ge}-range-hover::before, &-in-view${ge}-in-range${ge}-range-hover-start::before, &-in-view${ge}-in-range${ge}-range-hover-end::before, &-in-view${ge}-range-start${ge}-range-hover::before, &-in-view${ge}-range-end${ge}-range-hover::before, &-in-view${ge}-range-start:not(${ge}-range-start-single)${ge}-range-hover-start::before, &-in-view${ge}-range-end:not(${ge}-range-end-single)${ge}-range-hover-end::before, ${re}-panel > :not(${re}-date-panel) &-in-view${ge}-in-range${ge}-range-hover-start::before, ${re}-panel > :not(${re}-date-panel) &-in-view${ge}-in-range${ge}-range-hover-end::before`]:{background:pt},[`&-in-view${ge}-range-start:not(${ge}-range-start-single):not(${ge}-range-end) ${me}`]:{borderStartStartRadius:ve,borderEndStartRadius:ve,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ge}-range-end:not(${ge}-range-end-single):not(${ge}-range-start) ${me}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ve,borderEndEndRadius:ve},[`&-range-hover${ge}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${ge}-range-hover:first-child::after, tr > &-in-view${ge}-range-hover-end:first-child::after, &-in-view${ge}-start${ge}-range-hover-edge-start${ge}-range-hover-edge-start-near-range::after, &-in-view${ge}-range-hover-edge-start:not(${ge}-range-hover-edge-start-near-range)::after, &-in-view${ge}-range-hover-start::after`]:{insetInlineStart:(en-fe)/2,borderInlineStart:`${Ye}px dashed ${Oe}`,borderStartStartRadius:ve,borderEndStartRadius:ve},[`tr > &-in-view${ge}-range-hover:last-child::after, tr > &-in-view${ge}-range-hover-start:last-child::after, &-in-view${ge}-end${ge}-range-hover-edge-end${ge}-range-hover-edge-end-near-range::after, &-in-view${ge}-range-hover-edge-end:not(${ge}-range-hover-edge-end-near-range)::after, &-in-view${ge}-range-hover-end::after`]:{insetInlineEnd:(en-fe)/2,borderInlineEnd:`${Ye}px dashed ${Oe}`,borderStartEndRadius:ve,borderEndEndRadius:ve},"&-disabled":{color:Ut,pointerEvents:"none",[me]:{background:"transparent"},"&::before":{background:nn}},[`&-disabled${ge}-today ${me}::before`]:{borderColor:Ut}}},fr=oe=>{const{componentCls:re,pickerCellCls:ge,pickerCellInnerCls:me,pickerYearMonthCellWidth:fe,pickerControlIconSize:he,cellWidth:ve,paddingSM:Me,paddingXS:Fe,paddingXXS:Ye,colorBgContainer:yt,lineWidth:qe,lineType:$e,borderRadiusLG:ft,colorPrimary:St,colorTextHeading:Oe,colorSplit:Xe,pickerControlIconBorderWidth:pt,colorIcon:en,textHeight:Ut,motionDurationMid:nn,colorIconHover:un,fontWeightStrong:an,cellHeight:Zt,pickerCellPaddingVertical:jn,colorTextDisabled:Ln,colorText:Hn,fontSize:ea,cellHoverWithRangeBg:Pa,motionDurationSlow:Aa,withoutTimeCellHeight:Ga,pickerQuarterPanelContentHeight:sa,colorLink:$n,colorLinkActive:ta,colorLinkHover:Ea,cellRangeBorderColor:La,borderRadiusSM:ra,colorTextLightSolid:Ta,cellHoverBg:mo,timeColumnHeight:oo,timeColumnWidth:Lo,timeCellHeight:Wa,controlItemBgActive:xo,marginXXS:za,pickerDatePanelPaddingHorizontal:ro}=oe,Po=ve*7+ro*2,zo=(Po-Fe*2)/3-fe-Me,Eo=(Po-Fe*2)/4-fe;return{[re]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:yt,border:`${qe}px ${$e} ${Xe}`,borderRadius:ft,outline:"none","&-focused":{borderColor:St},"&-rtl":{direction:"rtl",[`${re}-prev-icon, ${re}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${re}-next-icon, ${re}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Po},"&-header":{display:"flex",padding:`0 ${Fe}px`,color:Oe,borderBottom:`${qe}px ${$e} ${Xe}`,"> *":{flex:"none"},button:{padding:0,color:en,lineHeight:`${Ut}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${nn}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:ea,"&:hover":{color:un}},"&-view":{flex:"auto",fontWeight:an,lineHeight:`${Ut}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Fe},"&:hover":{color:St}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:he,height:he,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:he,height:he,border:"0 solid currentcolor",borderBlockStartWidth:pt,borderBlockEndWidth:0,borderInlineStartWidth:pt,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(he/2),insetInlineStart:Math.ceil(he/2),display:"inline-block",width:he,height:he,border:"0 solid currentcolor",borderBlockStartWidth:pt,borderBlockEndWidth:0,borderInlineStartWidth:pt,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Zt,fontWeight:"normal"},th:{height:Zt+jn*2,color:Hn,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${jn}px 0`,color:Ln,cursor:"pointer","&-in-view":{color:Hn}},Zr(oe)),[`&-date-panel ${re}-cell-in-view${re}-cell-in-range${re}-cell-range-hover-start ${me}, &-date-panel ${re}-cell-in-view${re}-cell-in-range${re}-cell-range-hover-end ${me}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Pa,transition:`all ${Aa}`,content:'""'}},[`&-date-panel ${re}-cell-in-view${re}-cell-in-range${re}-cell-range-hover-start ${me}::after`]:{insetInlineEnd:-(ve-Zt)/2,insetInlineStart:0},[`&-date-panel ${re}-cell-in-view${re}-cell-in-range${re}-cell-range-hover-end ${me}::after`]:{insetInlineEnd:0,insetInlineStart:-(ve-Zt)/2},[`&-range-hover${re}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${re}-content`]:{height:Ga*4},[me]:{padding:`0 ${Fe}px`}},"&-quarter-panel":{[`${re}-content`]:{height:sa},[`${re}-cell-range-hover-start::after`]:{insetInlineStart:Eo,borderInlineStart:`${qe}px dashed ${La}`,[`${re}-panel-rtl &`]:{insetInlineEnd:Eo,borderInlineEnd:`${qe}px dashed ${La}`}},[`${re}-cell-range-hover-end::after`]:{insetInlineEnd:Eo,borderInlineEnd:`${qe}px dashed ${La}`,[`${re}-panel-rtl &`]:{insetInlineStart:Eo,borderInlineStart:`${qe}px dashed ${La}`}}},[`&-panel ${re}-footer`]:{borderTop:`${qe}px ${$e} ${Xe}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Ut-2*qe}px`,textAlign:"center","&-extra":{padding:`0 ${Me}px`,lineHeight:`${Ut-2*qe}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${qe}px ${$e} ${Xe}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:$n,"&:hover":{color:Ea},"&:active":{color:ta},[`&${re}-today-btn-disabled`]:{color:Ln,cursor:"not-allowed"}},"&-decade-panel":{[me]:{padding:`0 ${Fe/2}px`},[`${re}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${re}-body`]:{padding:`0 ${Fe}px`},[me]:{width:fe},[`${re}-cell-range-hover-start::after`]:{borderStartStartRadius:ra,borderEndStartRadius:ra,borderStartEndRadius:0,borderEndEndRadius:0,[`${re}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ra,borderEndEndRadius:ra}},[`${re}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ra,borderEndEndRadius:ra,[`${re}-panel-rtl &`]:{borderStartStartRadius:ra,borderEndStartRadius:ra,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${re}-cell-range-hover-start::after`]:{insetInlineStart:zo,borderInlineStart:`${qe}px dashed ${La}`,[`${re}-panel-rtl &`]:{insetInlineEnd:zo,borderInlineEnd:`${qe}px dashed ${La}`}},[`${re}-cell-range-hover-end::after`]:{insetInlineEnd:zo,borderInlineEnd:`${qe}px dashed ${La}`,[`${re}-panel-rtl &`]:{insetInlineStart:zo,borderInlineStart:`${qe}px dashed ${La}`}}},"&-week-panel":{[`${re}-body`]:{padding:`${Fe}px ${Me}px`},[`${re}-cell`]:{[`&:hover ${me}, &-selected ${me}, ${me}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${nn}`},"&:first-child:before":{borderStartStartRadius:ra,borderEndStartRadius:ra},"&:last-child:before":{borderStartEndRadius:ra,borderEndEndRadius:ra}},"&:hover td":{"&:before":{background:mo}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${ge}`]:{"&:before":{background:St},[`&${re}-cell-week`]:{color:new Ya.C(Ta).setAlpha(.5).toHexString()},[me]:{color:Ta}}},"&-range-hover td:before":{background:xo}}},"&-date-panel":{[`${re}-body`]:{padding:`${Fe}px ${ro}px`},[`${re}-content`]:{width:ve*7,th:{width:ve,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${re}-time-panel`]:{borderInlineStart:`${qe}px ${$e} ${Xe}`},[`${re}-date-panel, ${re}-time-panel`]:{transition:`opacity ${Aa}`},"&-active":{[`${re}-date-panel, ${re}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${re}-content`]:{display:"flex",flex:"auto",height:oo},"&-column":{flex:"1 0 auto",width:Lo,margin:`${Ye}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${nn}`,overflowX:"hidden","&::after":{display:"block",height:oo-Wa,content:'""'},"&:not(:first-child)":{borderInlineStart:`${qe}px ${$e} ${Xe}`},"&-active":{background:new Ya.C(xo).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${re}-time-panel-cell`]:{marginInline:za,[`${re}-time-panel-cell-inner`]:{display:"block",width:Lo-2*za,height:Wa,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Lo-Wa)/2,color:Hn,lineHeight:`${Wa}px`,borderRadius:ra,cursor:"pointer",transition:`background ${nn}`,"&:hover":{background:mo}},"&-selected":{[`${re}-time-panel-cell-inner`]:{background:xo}},"&-disabled":{[`${re}-time-panel-cell-inner`]:{color:Ln,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${re}-time-panel-column:after`]:{height:oo-Wa+Ye*2}}}},Pi=oe=>{const{componentCls:re,colorBgContainer:ge,colorError:me,errorActiveShadow:fe,colorWarning:he,warningActiveShadow:ve}=oe;return{[`${re}:not(${re}-disabled)`]:{[`&${re}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:ge,borderColor:me},[`&${re}-focused, &:focus`]:Object.assign({},(0,Ko.M1)((0,Ar.TS)(oe,{activeBorderColor:me,activeShadow:fe}))),[`${re}-active-bar`]:{background:me}},[`&${re}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:ge,borderColor:he},[`&${re}-focused, &:focus`]:Object.assign({},(0,Ko.M1)((0,Ar.TS)(oe,{activeBorderColor:he,activeShadow:ve}))),[`${re}-active-bar`]:{background:he}}}}},li=oe=>{const{componentCls:re,antCls:ge,controlHeight:me,fontSize:fe,paddingInline:he,colorBgContainer:ve,lineWidth:Me,lineType:Fe,colorBorder:Ye,borderRadius:yt,motionDurationMid:qe,colorBgContainerDisabled:$e,colorTextDisabled:ft,colorTextPlaceholder:St,controlHeightLG:Oe,fontSizeLG:Xe,controlHeightSM:pt,paddingInlineSM:en,paddingXS:Ut,marginXS:nn,colorTextDescription:un,lineWidthBold:an,lineHeight:Zt,colorPrimary:jn,motionDurationSlow:Ln,zIndexPopup:Hn,paddingXXS:ea,paddingSM:Pa,textHeight:Aa,cellActiveWithRangeBg:Ga,colorPrimaryBorder:sa,sizePopupArrow:$n,borderRadiusXS:ta,borderRadiusOuter:Ea,colorBgElevated:La,borderRadiusLG:ra,boxShadowSecondary:Ta,borderRadiusSM:mo,colorSplit:oo,cellHoverBg:Lo,presetsWidth:Wa,presetsMaxWidth:xo,boxShadowPopoverArrow:za,colorTextQuaternary:ro}=oe;return[{[re]:Object.assign(Object.assign(Object.assign({},(0,so.Wf)(oe)),Ka(oe,me,fe,he)),{position:"relative",display:"inline-flex",alignItems:"center",background:ve,lineHeight:1,border:`${Me}px ${Fe} ${Ye}`,borderRadius:yt,transition:`border ${qe}, box-shadow ${qe}`,"&:hover, &-focused":Object.assign({},(0,Ko.pU)(oe)),"&-focused":Object.assign({},(0,Ko.M1)(oe)),[`&${re}-disabled`]:{background:$e,borderColor:Ye,cursor:"not-allowed",[`${re}-suffix`]:{color:ro}},[`&${re}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${re}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Ko.ik)(oe)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${re}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:St}}},"&-large":Object.assign(Object.assign({},Ka(oe,Oe,Xe,he)),{[`${re}-input > input`]:{fontSize:Xe}}),"&-small":Object.assign({},Ka(oe,pt,fe,en)),[`${re}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Ut/2,color:ft,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:nn}}},[`${re}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:ft,lineHeight:1,background:ve,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${qe}, color ${qe}`,"> *":{verticalAlign:"top"},"&:hover":{color:un}},[`${re}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Xe,color:ft,fontSize:Xe,verticalAlign:"top",cursor:"default",[`${re}-focused &`]:{color:un},[`${re}-range-separator &`]:{[`${re}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${re}-clear`]:{insetInlineEnd:he},"&:hover":{[`${re}-clear`]:{opacity:1}},[`${re}-active-bar`]:{bottom:-Me,height:an,marginInlineStart:he,background:jn,opacity:0,transition:`all ${Ln} ease-out`,pointerEvents:"none"},[`&${re}-focused`]:{[`${re}-active-bar`]:{opacity:1}},[`${re}-range-separator`]:{alignItems:"center",padding:`0 ${Ut}px`,lineHeight:1},[`&${re}-small`]:{[`${re}-clear`]:{insetInlineEnd:en},[`${re}-active-bar`]:{marginInlineStart:en}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,so.Wf)(oe)),fr(oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Hn,[`&${re}-dropdown-hidden`]:{display:"none"},[`&${re}-dropdown-placement-bottomLeft`]:{[`${re}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${re}-dropdown-placement-topLeft`]:{[`${re}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${ge}-slide-up-enter${ge}-slide-up-enter-active${re}-dropdown-placement-topLeft, &${ge}-slide-up-enter${ge}-slide-up-enter-active${re}-dropdown-placement-topRight, &${ge}-slide-up-appear${ge}-slide-up-appear-active${re}-dropdown-placement-topLeft, &${ge}-slide-up-appear${ge}-slide-up-appear-active${re}-dropdown-placement-topRight`]:{animationName:po.Qt},[`&${ge}-slide-up-enter${ge}-slide-up-enter-active${re}-dropdown-placement-bottomLeft, &${ge}-slide-up-enter${ge}-slide-up-enter-active${re}-dropdown-placement-bottomRight, &${ge}-slide-up-appear${ge}-slide-up-appear-active${re}-dropdown-placement-bottomLeft, &${ge}-slide-up-appear${ge}-slide-up-appear-active${re}-dropdown-placement-bottomRight`]:{animationName:po.fJ},[`&${ge}-slide-up-leave${ge}-slide-up-leave-active${re}-dropdown-placement-topLeft, &${ge}-slide-up-leave${ge}-slide-up-leave-active${re}-dropdown-placement-topRight`]:{animationName:po.ly},[`&${ge}-slide-up-leave${ge}-slide-up-leave-active${re}-dropdown-placement-bottomLeft, &${ge}-slide-up-leave${ge}-slide-up-leave-active${re}-dropdown-placement-bottomRight`]:{animationName:po.Uw},[`${re}-panel > ${re}-time-panel`]:{paddingTop:ea},[`${re}-ranges`]:{marginBottom:0,padding:`${ea}px ${Pa}px`,overflow:"hidden",lineHeight:`${Aa-2*Me-Ut/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${re}-preset > ${ge}-tag-blue`]:{color:jn,background:Ga,borderColor:sa,cursor:"pointer"},[`${re}-ok`]:{marginInlineStart:"auto"}},[`${re}-range-wrapper`]:{display:"flex",position:"relative"},[`${re}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:he*1.5,transition:`left ${Ln} ease-out`},(0,Mn.r)($n,ta,Ea,La,za)),[`${re}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:La,borderRadius:ra,boxShadow:Ta,transition:`margin ${Ln}`,[`${re}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${re}-presets`]:{display:"flex",flexDirection:"column",minWidth:Wa,maxWidth:xo,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Ut,borderInlineEnd:`${Me}px ${Fe} ${oo}`,li:Object.assign(Object.assign({},so.vS),{borderRadius:mo,paddingInline:Ut,paddingBlock:(pt-Math.round(fe*Zt))/2,cursor:"pointer",transition:`all ${Ln}`,"+ li":{marginTop:nn},"&:hover":{background:Lo}})}},[`${re}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${re}-panel`]:{borderWidth:`0 0 ${Me}px`},"&:last-child":{[`${re}-panel`]:{borderWidth:0}}},[`${re}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${re}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:Ye}}}}),"&-dropdown-range":{padding:`${$n*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${re}-separator`]:{transform:"rotate(180deg)"},[`${re}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,po.oN)(oe,"slide-up"),(0,po.oN)(oe,"slide-down"),(0,la.Fm)(oe,"move-up"),(0,la.Fm)(oe,"move-down")]},Jn=oe=>{const{componentCls:re,controlHeightLG:ge,paddingXXS:me,padding:fe}=oe;return{pickerCellCls:`${re}-cell`,pickerCellInnerCls:`${re}-cell-inner`,pickerYearMonthCellWidth:ge*1.5,pickerQuarterPanelContentHeight:ge*1.4,pickerCellPaddingVertical:me+me/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:fe+me/2}},ca=oe=>({cellHoverBg:oe.controlItemBgHover,cellActiveWithRangeBg:oe.controlItemBgActive,cellHoverWithRangeBg:new Ya.C(oe.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ya.C(oe.colorPrimary).lighten(20).toHexString(),cellBgDisabled:oe.colorBgContainerDisabled,timeColumnWidth:oe.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:oe.controlHeightSM*1.5,cellHeight:oe.controlHeightSM,textHeight:oe.controlHeightLG,withoutTimeCellHeight:oe.controlHeightLG*1.65});var Na=(0,ii.Z)("DatePicker",oe=>{const re=(0,Ar.TS)((0,Ko.e5)(oe),Jn(oe));return[li(re),Pi(re),(0,ba.c)(oe,{focusElCls:`${oe.componentCls}-focused`})]},oe=>Object.assign(Object.assign(Object.assign({},(0,Ko.TM)(oe)),ca(oe)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:oe.zIndexPopupBase+50}));function Fr(oe,re,ge){return ge!==void 0?ge:re==="year"&&oe.lang.yearPlaceholder?oe.lang.yearPlaceholder:re==="quarter"&&oe.lang.quarterPlaceholder?oe.lang.quarterPlaceholder:re==="month"&&oe.lang.monthPlaceholder?oe.lang.monthPlaceholder:re==="week"&&oe.lang.weekPlaceholder?oe.lang.weekPlaceholder:re==="time"&&oe.timePickerLocale.placeholder?oe.timePickerLocale.placeholder:oe.lang.placeholder}function Mi(oe,re,ge){return ge!==void 0?ge:re==="year"&&oe.lang.yearPlaceholder?oe.lang.rangeYearPlaceholder:re==="quarter"&&oe.lang.quarterPlaceholder?oe.lang.rangeQuarterPlaceholder:re==="month"&&oe.lang.monthPlaceholder?oe.lang.rangeMonthPlaceholder:re==="week"&&oe.lang.weekPlaceholder?oe.lang.rangeWeekPlaceholder:re==="time"&&oe.timePickerLocale.placeholder?oe.timePickerLocale.rangePlaceholder:oe.lang.rangePlaceholder}function gi(oe,re){const ge={adjustX:1,adjustY:1};switch(re){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:ge};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:ge};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:ge};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:ge};default:return{points:oe==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:ge}}}function Ri(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function si(oe){const{format:re,picker:ge,showHour:me,showMinute:fe,showSecond:he,use12Hours:ve}=oe,Me=Ri(re)[0],Fe=Object.assign({},oe);return re&&Array.isArray(re)&&(Fe.format=Me),Me&&typeof Me=="string"&&(!Me.includes("s")&&he===void 0&&(Fe.showSecond=!1),!Me.includes("m")&&fe===void 0&&(Fe.showMinute=!1),!Me.includes("H")&&!Me.includes("h")&&!Me.includes("K")&&!Me.includes("k")&&me===void 0&&(Fe.showHour=!1),(Me.includes("a")||Me.includes("A"))&&ve===void 0&&(Fe.use12Hours=!0)),ge==="time"?Fe:(typeof Me=="function"&&delete Fe.format,{showTime:Fe})}function Di(oe,re,ge){if(oe===!1)return!1;const me={clearIcon:re!=null?re:ge};return typeof oe=="object"?Object.assign(Object.assign({},me),oe):me}var An=le(3113);function va(oe){return ne.createElement(An.ZP,Object.assign({size:"small",type:"primary"},oe))}var vo={button:va},ko=function(oe,re){var ge={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&re.indexOf(me)<0&&(ge[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,me=Object.getOwnPropertySymbols(oe);fe{const{prefixCls:fe,getPopupContainer:he,className:ve,placement:Me,size:Fe,disabled:Ye,bordered:yt=!0,placeholder:qe,popupClassName:$e,dropdownClassName:ft,status:St,clearIcon:Oe,allowClear:Xe,rootClassName:pt}=ge,en=ko(ge,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Ut=ne.useRef(null),{getPrefixCls:nn,direction:un,getPopupContainer:an}=(0,ne.useContext)(Ra.E_),Zt=nn("picker",fe),{compactSize:jn,compactItemClassnames:Ln}=(0,Ro.ri)(Zt,un),{format:Hn,showTime:ea,picker:Pa}=ge,Aa=nn(),[Ga,sa]=Na(Zt),$n=Object.assign(Object.assign({},ea?si(Object.assign({format:Hn,picker:Pa},ea)):{}),Pa==="time"?si(Object.assign(Object.assign({format:Hn},ge),{picker:Pa})):{}),ta=(0,So.Z)(za=>{var ro;return(ro=Fe!=null?Fe:jn)!==null&&ro!==void 0?ro:za}),Ea=ne.useContext(Gn.Z),La=Ye!=null?Ye:Ea,ra=(0,ne.useContext)(Co.aM),{hasFeedback:Ta,status:mo,feedbackIcon:oo}=ra,Lo=ne.createElement(ne.Fragment,null,Pa==="time"?ne.createElement(Nt,null):ne.createElement(Ie,null),Ta&&oo);(0,ne.useImperativeHandle)(me,()=>({focus:()=>{var za;return(za=Ut.current)===null||za===void 0?void 0:za.focus()},blur:()=>{var za;return(za=Ut.current)===null||za===void 0?void 0:za.blur()}}));const[Wa]=(0,ao.Z)("Calendar",pa.Z),xo=Object.assign(Object.assign({},Wa),ge.locale);return Ga(ne.createElement(gn,Object.assign({separator:ne.createElement("span",{"aria-label":"to",className:`${Zt}-separator`},ne.createElement(kt,null)),disabled:La,ref:Ut,dropdownAlign:gi(un,Me),placeholder:Mi(xo,Pa,qe),suffixIcon:Lo,prevIcon:ne.createElement("span",{className:`${Zt}-prev-icon`}),nextIcon:ne.createElement("span",{className:`${Zt}-next-icon`}),superPrevIcon:ne.createElement("span",{className:`${Zt}-super-prev-icon`}),superNextIcon:ne.createElement("span",{className:`${Zt}-super-next-icon`}),transitionName:`${Aa}-slide-up`},en,$n,{className:Pe()({[`${Zt}-${ta}`]:ta,[`${Zt}-borderless`]:!yt},(0,Ba.Z)(Zt,(0,Ba.F)(mo,St),Ta),sa,Ln,ve,pt),locale:xo.lang,prefixCls:Zt,getPopupContainer:he||an,generateConfig:oe,components:vo,direction:un,dropdownClassName:Pe()(sa,$e||ft,pt),allowClear:Di(Xe,Oe,ne.createElement(_t.Z,null))})))})}var $r=function(oe,re){var ge={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&re.indexOf(me)<0&&(ge[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,me=Object.getOwnPropertySymbols(oe);fe{const{prefixCls:St,getPopupContainer:Oe,style:Xe,className:pt,rootClassName:en,size:Ut,bordered:nn=!0,placement:un,placeholder:an,popupClassName:Zt,dropdownClassName:jn,disabled:Ln,status:Hn,clearIcon:ea,allowClear:Pa}=$e,Aa=$r($e,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Ga,direction:sa,getPopupContainer:$n,[yt]:ta}=(0,ne.useContext)(Ra.E_),Ea=Ga("picker",St),{compactSize:La,compactItemClassnames:ra}=(0,Ro.ri)(Ea,sa),Ta=ne.useRef(null),{format:mo,showTime:oo}=$e,[Lo,Wa]=Na(Ea);(0,ne.useImperativeHandle)(ft,()=>({focus:()=>{var yo;return(yo=Ta.current)===null||yo===void 0?void 0:yo.focus()},blur:()=>{var yo;return(yo=Ta.current)===null||yo===void 0?void 0:yo.blur()}}));const xo={showToday:!0};let za={};Fe&&(za.picker=Fe);const ro=Fe||$e.picker;za=Object.assign(Object.assign(Object.assign({},za),oo?si(Object.assign({format:mo,picker:ro},oo)):{}),ro==="time"?si(Object.assign(Object.assign({format:mo},$e),{picker:ro})):{});const Po=Ga(),zo=(0,So.Z)(yo=>{var kr;return(kr=Ut!=null?Ut:La)!==null&&kr!==void 0?kr:yo}),Eo=ne.useContext(Gn.Z),nr=Ln!=null?Ln:Eo,hr=(0,ne.useContext)(Co.aM),{hasFeedback:Un,status:io,feedbackIcon:Xa}=hr,Mo=ne.createElement(ne.Fragment,null,ro==="time"?ne.createElement(Nt,null):ne.createElement(Ie,null),Un&&Xa),[To]=(0,ao.Z)("DatePicker",pa.Z),Va=Object.assign(Object.assign({},To),$e.locale);return Lo(ne.createElement(cn,Object.assign({ref:Ta,placeholder:Fr(Va,ro,an),suffixIcon:Mo,dropdownAlign:gi(sa,un),prevIcon:ne.createElement("span",{className:`${Ea}-prev-icon`}),nextIcon:ne.createElement("span",{className:`${Ea}-next-icon`}),superPrevIcon:ne.createElement("span",{className:`${Ea}-super-prev-icon`}),superNextIcon:ne.createElement("span",{className:`${Ea}-super-next-icon`}),transitionName:`${Po}-slide-up`},xo,Aa,za,{locale:Va.lang,className:Pe()({[`${Ea}-${zo}`]:zo,[`${Ea}-borderless`]:!nn},(0,Ba.Z)(Ea,(0,Ba.F)(io,Hn),Un),Wa,ra,ta==null?void 0:ta.className,pt,en),style:Object.assign(Object.assign({},ta==null?void 0:ta.style),Xe),prefixCls:Ea,getPopupContainer:Oe||$n,generateConfig:oe,components:vo,direction:sa,disabled:nr,dropdownClassName:Pe()(Wa,en,Zt||jn),allowClear:Di(Pa,ea,ne.createElement(_t.Z,null))})))});return Ye&&(qe.displayName=Ye),qe}const ge=re(),me=re("week","WeekPicker"),fe=re("month","MonthPicker"),he=re("year","YearPicker"),ve=re("time","TimePicker"),Me=re("quarter","QuarterPicker");return{DatePicker:ge,WeekPicker:me,MonthPicker:fe,YearPicker:he,TimePicker:ve,QuarterPicker:Me}}const ka=null;function Qi(oe){const{DatePicker:re,WeekPicker:ge,MonthPicker:me,YearPicker:fe,TimePicker:he,QuarterPicker:ve}=di(oe),Me=bo(oe),Fe=re;return Fe.WeekPicker=ge,Fe.MonthPicker=me,Fe.YearPicker=fe,Fe.RangePicker=Me,Fe.TimePicker=he,Fe.QuarterPicker=ve,Fe}var Ui=Qi;const ei=Ui(z);function Yi(oe){const re=gi(oe.direction,oe.placement);return re.overflow.adjustY=!1,re.overflow.adjustX=!1,Object.assign(Object.assign({},oe),{dropdownAlign:re})}const al=(0,te.Z)(ei,"picker",null,Yi);ei._InternalPanelDoNotUseOrYouWillBeFired=al;const zi=(0,te.Z)(ei.RangePicker,"picker",null,Yi);ei._InternalRangePanelDoNotUseOrYouWillBeFired=zi,ei.generatePicker=Ui;var Wi=ei},13570:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return Kt}});var ee=le(96663),ue=le(59301),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},st=Ge,Ce=le(7657),Ve=function(kt,Tt){return ue.createElement(Ce.Z,(0,ee.Z)({},kt,{ref:Tt,icon:st}))},Ae=ue.forwardRef(Ve),Ke=Ae,Ne=le(92310),Te=le.n(Ne),bt=le(90493),Re=le(72071),Je=le(6620),ie=le(18929),a=le(10228),E=le(26112);function b(Ze,kt){var Tt=Ze.disabled,Pe=Ze.prefixCls,He=Ze.character,rt=Ze.characterRender,It=Ze.index,At=Ze.count,on=Ze.value,pe=Ze.allowHalf,mt=Ze.focused,ht=Ze.onHover,jt=Ze.onClick,rn=function(lt){ht(lt,It)},Qn=function(lt){jt(lt,It)},ma=function(lt){lt.keyCode===a.Z.ENTER&&jt(lt,It)},We=It+1,_e=new Set([Pe]);on===0&&It===0&&mt?_e.add("".concat(Pe,"-focused")):pe&&on+.5>=We&&onIt?"true":"false","aria-posinset":It+1,"aria-setsize":At,tabIndex:Tt?-1:0},ue.createElement("div",{className:"".concat(Pe,"-first")},xt),ue.createElement("div",{className:"".concat(Pe,"-second")},xt)));return rt&&(ze=rt(ze,Ze)),ze}var y=ue.forwardRef(b);function x(){var Ze=ue.useRef({});function kt(Pe){return Ze.current[Pe]}function Tt(Pe){return function(He){Ze.current[Pe]=He}}return[kt,Tt]}function z(Ze){var kt=Ze.pageXOffset,Tt="scrollLeft";if(typeof kt!="number"){var Pe=Ze.document;kt=Pe.documentElement[Tt],typeof kt!="number"&&(kt=Pe.body[Tt])}return kt}function te(Ze){var kt,Tt,Pe=Ze.ownerDocument,He=Pe.body,rt=Pe&&Pe.documentElement,It=Ze.getBoundingClientRect();return kt=It.left,Tt=It.top,kt-=rt.clientLeft||He.clientLeft||0,Tt-=rt.clientTop||He.clientTop||0,{left:kt,top:Tt}}function ae(Ze){var kt=te(Ze),Tt=Ze.ownerDocument,Pe=Tt.defaultView||Tt.parentWindow;return kt.left+=z(Pe),kt.left}var ne=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(Ze,kt){var Tt,Pe=Ze.prefixCls,He=Pe===void 0?"rc-rate":Pe,rt=Ze.className,It=Ze.defaultValue,At=Ze.value,on=Ze.count,pe=on===void 0?5:on,mt=Ze.allowHalf,ht=mt===void 0?!1:mt,jt=Ze.allowClear,rn=jt===void 0?!0:jt,Qn=Ze.character,ma=Qn===void 0?"\u2605":Qn,We=Ze.characterRender,_e=Ze.disabled,xt=Ze.direction,ze=xt===void 0?"ltr":xt,tt=Ze.tabIndex,lt=tt===void 0?0:tt,Ue=Ze.autoFocus,ut=Ze.onHoverChange,je=Ze.onChange,it=Ze.onFocus,Qt=Ze.onBlur,ln=Ze.onKeyDown,Jt=Ze.onMouseLeave,sn=(0,Je.Z)(Ze,ne),Gt=x(),Wt=(0,Re.Z)(Gt,2),Nn=Wt[0],Dn=Wt[1],kn=ue.useRef(null),Cn=function(){if(!_e){var Lt;(Lt=kn.current)===null||Lt===void 0||Lt.focus()}};ue.useImperativeHandle(kt,function(){return{focus:Cn,blur:function(){if(!_e){var Lt;(Lt=kn.current)===null||Lt===void 0||Lt.blur()}}}});var Kn=(0,ie.Z)(It||0,{value:At}),hn=(0,Re.Z)(Kn,2),Wn=hn[0],eo=hn[1],ya=(0,ie.Z)(null),fa=(0,Re.Z)(ya,2),ha=fa[0],Da=fa[1],Oa=function(Lt,dn){var tn=ze==="rtl",Rt=Lt+1;if(ht){var Xn=Nn(Lt),Qe=ae(Xn),Yt=Xn.clientWidth;(tn&&dn-Qe>Yt/2||!tn&&dn-Qe0&&!tn||dn===a.Z.RIGHT&&Rt>0&&tn?(ht?Rt-=.5:Rt-=1,Ma(Rt),Lt.preventDefault()):dn===a.Z.LEFT&&Rt{const{componentCls:kt}=Ze;return{[`${kt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ze.marginXS},"> div":{transition:`all ${Ze.motionDurationMid}, outline 0s`,"&:hover":{transform:Ze.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ze.lineWidth}px dashed ${Ze.starColor}`,transform:Ze.starHoverScale}},"&-first, &-second":{color:Ze.starBg,transition:`all ${Ze.motionDurationMid}`,userSelect:"none",[Ze.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${kt}-star-first, &-half ${kt}-star-second`]:{opacity:1},[`&-half ${kt}-star-first, &-full ${kt}-star-second`]:{color:"inherit"}}}},Ft=Ze=>({[`&-rtl${Ze.componentCls}`]:{direction:"rtl"}}),Nt=Ze=>{const{componentCls:kt}=Ze;return{[kt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ie.Wf)(Ze)),{display:"inline-block",margin:0,padding:0,color:Ze.starColor,fontSize:Ze.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${kt} ${kt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),wt(Ze)),{[`+ ${kt}-text`]:{display:"inline-block",marginInlineStart:Ze.marginXS,fontSize:Ze.fontSize}}),Ft(Ze))}};var _t=(0,et.Z)("Rate",Ze=>{const kt=(0,Et.TS)(Ze,{});return[Nt(kt)]},Ze=>({starColor:Ze.yellow6,starSize:Ze.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ze.colorFillContent})),ot=function(Ze,kt){var Tt={};for(var Pe in Ze)Object.prototype.hasOwnProperty.call(Ze,Pe)&&kt.indexOf(Pe)<0&&(Tt[Pe]=Ze[Pe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Pe=Object.getOwnPropertySymbols(Ze);He{const{prefixCls:Tt,className:Pe,rootClassName:He,style:rt,tooltips:It,character:At=ue.createElement(Ke,null)}=Ze,on=ot(Ze,["prefixCls","className","rootClassName","style","tooltips","character"]),pe=(_e,xt)=>{let{index:ze}=xt;return It?ue.createElement(ye.Z,{title:It[ze]},_e):_e},{getPrefixCls:mt,direction:ht,rate:jt}=ue.useContext(ce.E_),rn=mt("rate",Tt),[Qn,ma]=_t(rn),We=Object.assign(Object.assign({},jt==null?void 0:jt.style),rt);return Qn(ue.createElement(Se,Object.assign({ref:kt,character:At,characterRender:pe},on,{className:Te()(Pe,He,ma,jt==null?void 0:jt.className),style:We,prefixCls:rn,direction:ht})))})},61621:function(ke,Mt,le){"use strict";le.d(Mt,{Z:function(){return ma}});var ee=le(92310),ue=le.n(ee),Ge=le(59301),st=le(36355),Ce=le(2738),Ae=We=>{const{prefixCls:_e,className:xt,style:ze,size:tt,shape:lt}=We,Ue=ue()({[`${_e}-lg`]:tt==="large",[`${_e}-sm`]:tt==="small"}),ut=ue()({[`${_e}-circle`]:lt==="circle",[`${_e}-square`]:lt==="square",[`${_e}-round`]:lt==="round"}),je=Ge.useMemo(()=>typeof tt=="number"?{width:tt,height:tt,lineHeight:`${tt}px`}:{},[tt]);return Ge.createElement("span",{className:ue()(_e,Ue,ut,xt),style:Object.assign(Object.assign({},je),ze)})},Ke=le(93083),Ne=le(83116),Te=le(37613);const bt=new Ke.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Re=We=>({height:We,lineHeight:`${We}px`}),Je=We=>Object.assign({width:We},Re(We)),ie=We=>({background:We.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:bt,animationDuration:We.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=We=>Object.assign({width:We*5,minWidth:We*5},Re(We)),E=We=>{const{skeletonAvatarCls:_e,gradientFromColor:xt,controlHeight:ze,controlHeightLG:tt,controlHeightSM:lt}=We;return{[`${_e}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:xt},Je(ze)),[`${_e}${_e}-circle`]:{borderRadius:"50%"},[`${_e}${_e}-lg`]:Object.assign({},Je(tt)),[`${_e}${_e}-sm`]:Object.assign({},Je(lt))}},b=We=>{const{controlHeight:_e,borderRadiusSM:xt,skeletonInputCls:ze,controlHeightLG:tt,controlHeightSM:lt,gradientFromColor:Ue}=We;return{[`${ze}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:xt},a(_e)),[`${ze}-lg`]:Object.assign({},a(tt)),[`${ze}-sm`]:Object.assign({},a(lt))}},y=We=>Object.assign({width:We},Re(We)),x=We=>{const{skeletonImageCls:_e,imageSizeBase:xt,gradientFromColor:ze,borderRadiusSM:tt}=We;return{[`${_e}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ze,borderRadius:tt},y(xt*2)),{[`${_e}-path`]:{fill:"#bfbfbf"},[`${_e}-svg`]:Object.assign(Object.assign({},y(xt)),{maxWidth:xt*4,maxHeight:xt*4}),[`${_e}-svg${_e}-svg-circle`]:{borderRadius:"50%"}}),[`${_e}${_e}-circle`]:{borderRadius:"50%"}}},z=(We,_e,xt)=>{const{skeletonButtonCls:ze}=We;return{[`${xt}${ze}-circle`]:{width:_e,minWidth:_e,borderRadius:"50%"},[`${xt}${ze}-round`]:{borderRadius:_e}}},te=We=>Object.assign({width:We*2,minWidth:We*2},Re(We)),ae=We=>{const{borderRadiusSM:_e,skeletonButtonCls:xt,controlHeight:ze,controlHeightLG:tt,controlHeightSM:lt,gradientFromColor:Ue}=We;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:_e,width:ze*2,minWidth:ze*2},te(ze))},z(We,ze,xt)),{[`${xt}-lg`]:Object.assign({},te(tt))}),z(We,tt,`${xt}-lg`)),{[`${xt}-sm`]:Object.assign({},te(lt))}),z(We,lt,`${xt}-sm`))},ne=We=>{const{componentCls:_e,skeletonAvatarCls:xt,skeletonTitleCls:ze,skeletonParagraphCls:tt,skeletonButtonCls:lt,skeletonInputCls:Ue,skeletonImageCls:ut,controlHeight:je,controlHeightLG:it,controlHeightSM:Qt,gradientFromColor:ln,padding:Jt,marginSM:sn,borderRadius:Gt,titleHeight:Wt,blockRadius:Nn,paragraphLiHeight:Dn,controlHeightXS:kn,paragraphMarginTop:Cn}=We;return{[`${_e}`]:{display:"table",width:"100%",[`${_e}-header`]:{display:"table-cell",paddingInlineEnd:Jt,verticalAlign:"top",[`${xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ln},Je(je)),[`${xt}-circle`]:{borderRadius:"50%"},[`${xt}-lg`]:Object.assign({},Je(it)),[`${xt}-sm`]:Object.assign({},Je(Qt))},[`${_e}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ze}`]:{width:"100%",height:Wt,background:ln,borderRadius:Nn,[`+ ${tt}`]:{marginBlockStart:Qt}},[`${tt}`]:{padding:0,"> li":{width:"100%",height:Dn,listStyle:"none",background:ln,borderRadius:Nn,"+ li":{marginBlockStart:kn}}},[`${tt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${_e}-content`]:{[`${ze}, ${tt} > li`]:{borderRadius:Gt}}},[`${_e}-with-avatar ${_e}-content`]:{[`${ze}`]:{marginBlockStart:sn,[`+ ${tt}`]:{marginBlockStart:Cn}}},[`${_e}${_e}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ae(We)),E(We)),b(We)),x(We)),[`${_e}${_e}-block`]:{width:"100%",[`${lt}`]:{width:"100%"},[`${Ue}`]:{width:"100%"}},[`${_e}${_e}-active`]:{[` ${ze}, ${tt} > li, ${xt}, ${lt}, ${Ue}, ${ut} `]:Object.assign({},ie(We))}}};var se=(0,Ne.Z)("Skeleton",We=>{const{componentCls:_e}=We,xt=(0,Te.TS)(We,{skeletonAvatarCls:`${_e}-avatar`,skeletonTitleCls:`${_e}-title`,skeletonParagraphCls:`${_e}-paragraph`,skeletonButtonCls:`${_e}-button`,skeletonInputCls:`${_e}-input`,skeletonImageCls:`${_e}-image`,imageSizeBase:We.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${We.gradientFromColor} 25%, ${We.gradientToColor} 37%, ${We.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ne(xt)]},We=>{const{colorFillContent:_e,colorFill:xt}=We,ze=_e,tt=xt;return{color:ze,colorGradientEnd:tt,gradientFromColor:ze,gradientToColor:tt,titleHeight:We.controlHeight/2,blockRadius:We.borderRadiusSM,paragraphMarginTop:We.marginLG+We.marginXXS,paragraphLiHeight:We.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Se=We=>{const{prefixCls:_e,className:xt,rootClassName:ze,active:tt,shape:lt="circle",size:Ue="default"}=We,{getPrefixCls:ut}=Ge.useContext(st.E_),je=ut("skeleton",_e),[it,Qt]=se(je),ln=(0,Ce.Z)(We,["prefixCls","className"]),Jt=ue()(je,`${je}-element`,{[`${je}-active`]:tt},xt,ze,Qt);return it(Ge.createElement("div",{className:Jt},Ge.createElement(Ae,Object.assign({prefixCls:`${je}-avatar`,shape:lt,size:Ue},ln))))},ye=We=>{const{prefixCls:_e,className:xt,rootClassName:ze,active:tt,block:lt=!1,size:Ue="default"}=We,{getPrefixCls:ut}=Ge.useContext(st.E_),je=ut("skeleton",_e),[it,Qt]=se(je),ln=(0,Ce.Z)(We,["prefixCls"]),Jt=ue()(je,`${je}-element`,{[`${je}-active`]:tt,[`${je}-block`]:lt},xt,ze,Qt);return it(Ge.createElement("div",{className:Jt},Ge.createElement(Ae,Object.assign({prefixCls:`${je}-button`,size:Ue},ln))))};const Ie="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Et=We=>{const{prefixCls:_e,className:xt,rootClassName:ze,style:tt,active:lt}=We,{getPrefixCls:Ue}=Ge.useContext(st.E_),ut=Ue("skeleton",_e),[je,it]=se(ut),Qt=ue()(ut,`${ut}-element`,{[`${ut}-active`]:lt},xt,ze,it);return je(Ge.createElement("div",{className:Qt},Ge.createElement("div",{className:ue()(`${ut}-image`,xt),style:tt},Ge.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ut}-image-svg`},Ge.createElement("path",{d:Ie,className:`${ut}-image-path`})))))},Ft=We=>{const{prefixCls:_e,className:xt,rootClassName:ze,active:tt,block:lt,size:Ue="default"}=We,{getPrefixCls:ut}=Ge.useContext(st.E_),je=ut("skeleton",_e),[it,Qt]=se(je),ln=(0,Ce.Z)(We,["prefixCls"]),Jt=ue()(je,`${je}-element`,{[`${je}-active`]:tt,[`${je}-block`]:lt},xt,ze,Qt);return it(Ge.createElement("div",{className:Jt},Ge.createElement(Ae,Object.assign({prefixCls:`${je}-input`,size:Ue},ln))))},Nt=le(96663),_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ot=_t,Ht=le(7657),Kt=function(_e,xt){return Ge.createElement(Ht.Z,(0,Nt.Z)({},_e,{ref:xt,icon:ot}))},Ze=Ge.forwardRef(Kt),kt=Ze,Pe=We=>{const{prefixCls:_e,className:xt,rootClassName:ze,style:tt,active:lt,children:Ue}=We,{getPrefixCls:ut}=Ge.useContext(st.E_),je=ut("skeleton",_e),[it,Qt]=se(je),ln=ue()(je,`${je}-element`,{[`${je}-active`]:lt},Qt,xt,ze),Jt=Ue!=null?Ue:Ge.createElement(kt,null);return it(Ge.createElement("div",{className:ln},Ge.createElement("div",{className:ue()(`${je}-image`,xt),style:tt},Jt)))},He=le(19127),It=We=>{const _e=ut=>{const{width:je,rows:it=2}=We;if(Array.isArray(je))return je[ut];if(it-1===ut)return je},{prefixCls:xt,className:ze,style:tt,rows:lt}=We,Ue=(0,He.Z)(Array(lt)).map((ut,je)=>Ge.createElement("li",{key:je,style:{width:_e(je)}}));return Ge.createElement("ul",{className:ue()(xt,ze),style:tt},Ue)},on=We=>{let{prefixCls:_e,className:xt,width:ze,style:tt}=We;return Ge.createElement("h3",{className:ue()(_e,xt),style:Object.assign({width:ze},tt)})};function pe(We){return We&&typeof We=="object"?We:{}}function mt(We,_e){return We&&!_e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ht(We,_e){return!We&&_e?{width:"38%"}:We&&_e?{width:"50%"}:{}}function jt(We,_e){const xt={};return(!We||!_e)&&(xt.width="61%"),!We&&_e?xt.rows=3:xt.rows=2,xt}const rn=We=>{const{prefixCls:_e,loading:xt,className:ze,rootClassName:tt,style:lt,children:Ue,avatar:ut=!1,title:je=!0,paragraph:it=!0,active:Qt,round:ln}=We,{getPrefixCls:Jt,direction:sn,skeleton:Gt}=Ge.useContext(st.E_),Wt=Jt("skeleton",_e),[Nn,Dn]=se(Wt);if(xt||!("loading"in We)){const kn=!!ut,Cn=!!je,Kn=!!it;let hn;if(kn){const ya=Object.assign(Object.assign({prefixCls:`${Wt}-avatar`},mt(Cn,Kn)),pe(ut));hn=Ge.createElement("div",{className:`${Wt}-header`},Ge.createElement(Ae,Object.assign({},ya)))}let Wn;if(Cn||Kn){let ya;if(Cn){const ha=Object.assign(Object.assign({prefixCls:`${Wt}-title`},ht(kn,Kn)),pe(je));ya=Ge.createElement(on,Object.assign({},ha))}let fa;if(Kn){const ha=Object.assign(Object.assign({prefixCls:`${Wt}-paragraph`},jt(kn,Cn)),pe(it));fa=Ge.createElement(It,Object.assign({},ha))}Wn=Ge.createElement("div",{className:`${Wt}-content`},ya,fa)}const eo=ue()(Wt,{[`${Wt}-with-avatar`]:kn,[`${Wt}-active`]:Qt,[`${Wt}-rtl`]:sn==="rtl",[`${Wt}-round`]:ln},Gt==null?void 0:Gt.className,ze,tt,Dn);return Nn(Ge.createElement("div",{className:eo,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),lt)},hn,Wn))}return typeof Ue!="undefined"?Ue:null};rn.Button=ye,rn.Avatar=Se,rn.Input=Ft,rn.Image=Et,rn.Node=Pe;var Qn=rn,ma=Qn},31797:function(ke,Mt,le){"use strict";le.d(Mt,{default:function(){return se}});var ee=le(59301),ue=le(56762),Ge=le(92343),st=le(92310),Ce=le.n(st),Ve=le(36355),Ae=le(61621),Ne=de=>{const{value:Se,formatter:ce,precision:ye,decimalSeparator:Ie,groupSeparator:et="",prefixCls:Et}=de;let wt;if(typeof ce=="function")wt=ce(Se);else{const Ft=String(Se),Nt=Ft.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Nt||Ft==="-")wt=Ft;else{const _t=Nt[1];let ot=Nt[2]||"0",Ht=Nt[4]||"";ot=ot.replace(/\B(?=(\d{3})+(?!\d))/g,et),typeof ye=="number"&&(Ht=Ht.padEnd(ye,"0").slice(0,ye>0?ye:0)),Ht&&(Ht=`${Ie}${Ht}`),wt=[ee.createElement("span",{key:"int",className:`${Et}-content-value-int`},_t,ot),Ht&&ee.createElement("span",{key:"decimal",className:`${Et}-content-value-decimal`},Ht)]}}return ee.createElement("span",{className:`${Et}-content-value`},wt)},Te=le(17313),bt=le(83116),Re=le(37613);const Je=de=>{const{componentCls:Se,marginXXS:ce,padding:ye,colorTextDescription:Ie,titleFontSize:et,colorTextHeading:Et,contentFontSize:wt,fontFamily:Ft}=de;return{[`${Se}`]:Object.assign(Object.assign({},(0,Te.Wf)(de)),{[`${Se}-title`]:{marginBottom:ce,color:Ie,fontSize:et},[`${Se}-skeleton`]:{paddingTop:ye},[`${Se}-content`]:{color:Et,fontSize:wt,fontFamily:Ft,[`${Se}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Se}-content-prefix, ${Se}-content-suffix`]:{display:"inline-block"},[`${Se}-content-prefix`]:{marginInlineEnd:ce},[`${Se}-content-suffix`]:{marginInlineStart:ce}}})}};var ie=(0,bt.Z)("Statistic",de=>{const Se=(0,Re.TS)(de,{});return[Je(Se)]},de=>{const{fontSizeHeading3:Se,fontSize:ce}=de;return{titleFontSize:ce,contentFontSize:Se}}),E=de=>{const{prefixCls:Se,className:ce,rootClassName:ye,style:Ie,valueStyle:et,value:Et=0,title:wt,valueRender:Ft,prefix:Nt,suffix:_t,loading:ot=!1,onMouseEnter:Ht,onMouseLeave:Kt,decimalSeparator:Ze=".",groupSeparator:kt=","}=de,{getPrefixCls:Tt,direction:Pe,statistic:He}=ee.useContext(Ve.E_),rt=Tt("statistic",Se),[It,At]=ie(rt),on=ee.createElement(Ne,Object.assign({decimalSeparator:Ze,groupSeparator:kt,prefixCls:rt},de,{value:Et})),pe=Ce()(rt,{[`${rt}-rtl`]:Pe==="rtl"},He==null?void 0:He.className,ce,ye,At);return It(ee.createElement("div",{className:pe,style:Object.assign(Object.assign({},He==null?void 0:He.style),Ie),onMouseEnter:Ht,onMouseLeave:Kt},wt&&ee.createElement("div",{className:`${rt}-title`},wt),ee.createElement(Ae.Z,{paragraph:!1,loading:ot,className:`${rt}-skeleton`},ee.createElement("div",{style:et,className:`${rt}-content`},Nt&&ee.createElement("span",{className:`${rt}-content-prefix`},Nt),Ft?Ft(on):on,_t&&ee.createElement("span",{className:`${rt}-content-suffix`},_t)))))};const b=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function y(de,Se){let ce=de;const ye=/\[[^\]]*]/g,Ie=(Se.match(ye)||[]).map(Ft=>Ft.slice(1,-1)),et=Se.replace(ye,"[]"),Et=b.reduce((Ft,Nt)=>{let[_t,ot]=Nt;if(Ft.includes(_t)){const Ht=Math.floor(ce/ot);return ce-=Ht*ot,Ft.replace(new RegExp(`${_t}+`,"g"),Kt=>{const Ze=Kt.length;return Ht.toString().padStart(Ze,"0")})}return Ft},et);let wt=0;return Et.replace(ye,()=>{const Ft=Ie[wt];return wt+=1,Ft})}function x(de,Se){const{format:ce=""}=Se,ye=new Date(de).getTime(),Ie=Date.now(),et=Math.max(ye-Ie,0);return y(et,ce)}const z=1e3/30;function te(de){return new Date(de).getTime()}const ae=de=>{const{value:Se,format:ce="HH:mm:ss",onChange:ye,onFinish:Ie}=de,et=(0,ue.Z)(),Et=ee.useRef(null),wt=()=>{Ie==null||Ie(),Et.current&&(clearInterval(Et.current),Et.current=null)},Ft=()=>{const ot=te(Se);ot>=Date.now()&&(Et.current=setInterval(()=>{et(),ye==null||ye(ot-Date.now()),ot(Ft(),()=>{Et.current&&(clearInterval(Et.current),Et.current=null)}),[Se]);const Nt=(ot,Ht)=>x(ot,Object.assign(Object.assign({},Ht),{format:ce})),_t=ot=>(0,Ge.Tm)(ot,{title:void 0});return ee.createElement(E,Object.assign({},de,{valueRender:_t,formatter:Nt}))};var ne=ee.memo(ae);E.Countdown=ne;var se=E},51581:function(ke,Mt,le){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});var ee=function(){function Re(Je,ie){for(var a=0;a=0||Object.prototype.hasOwnProperty.call(Re,a)&&(ie[a]=Re[a]);return ie}function Ke(Re,Je){if(!(Re instanceof Je))throw new TypeError("Cannot call a class as a function")}function Ne(Re,Je){if(!Re)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Je&&(typeof Je=="object"||typeof Je=="function")?Je:Re}function Te(Re,Je){if(typeof Je!="function"&&Je!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Je);Re.prototype=Object.create(Je&&Je.prototype,{constructor:{value:Re,enumerable:!1,writable:!0,configurable:!0}}),Je&&(Object.setPrototypeOf?Object.setPrototypeOf(Re,Je):Re.__proto__=Je)}var bt=function(Re){Te(Je,Re);function Je(ie){Ke(this,Je);var a=Ne(this,(Je.__proto__||Object.getPrototypeOf(Je)).call(this,ie));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return ee(Je,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,E={get passive(){a=!0}};try{document.addEventListener("test",null,E),document.removeEventListener("test",null,E)}catch(b){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var E=this.props.getScrollParent&&this.props.getScrollParent();return E!=null?E:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!a)){var E=window;this.props.useWindow===!1&&(E=a),E.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),E.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),E.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,E=window,b=this.getParentElement(a),y=void 0;if(this.props.useWindow){var x=document.documentElement||document.body.parentNode||document.body,z=E.pageYOffset!==void 0?E.pageYOffset:x.scrollTop;this.props.isReverse?y=z:y=this.calculateOffset(a,z)}else this.props.isReverse?y=b.scrollTop:y=a.scrollHeight-b.scrollTop-b.clientHeight;y