You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__Detail__Topics__Ex...

151 lines
448 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[7043],{49198:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Xe}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(je,Te){return ue.createElement(ye.Z,(0,te.Z)({},je,{ref:Te,icon:Ze}))},de=ue.forwardRef(we),Xe=de},33853:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Xe}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(je,Te){return ue.createElement(ye.Z,(0,te.Z)({},je,{ref:Te,icon:Ze}))},de=ue.forwardRef(we),Xe=de},32134:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Xe}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(je,Te){return ue.createElement(ye.Z,(0,te.Z)({},je,{ref:Te,icon:Ze}))},de=ue.forwardRef(we),Xe=de},38819:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Xe}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(je,Te){return ue.createElement(ye.Z,(0,te.Z)({},je,{ref:Te,icon:Ze}))},de=ue.forwardRef(we),Xe=de},88010:function(Ie,lt){"use strict";lt.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 Ie(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ie.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ie.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ie.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ie.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ie))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var lt=[];function oe(ae,a){var y=lt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=lt.pop();return ae===void 0?new go.Point:ae}function ue(ae){lt.push(ae)}function Ke(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ve=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ve=a);else{var ce=(x-ee)/ie,$e=x-ce*b;ge=ae,ve=ce*ge+$e}else if(ie===0){var Pe=(a-E)/re,Qe=a-Pe*ae;ge=b,ve=Pe*ge+Qe}else{var Pe=(a-E)/re,ce=(x-ee)/ie,Qe=a-Pe*ae,$e=x-ce*b;ge=($e-Qe)/(Pe-ce),ve=Pe*ge+Qe}return ne.x=ge,ne.y=ve,ne}function Ze(ae,a,y,E,b,x,z,ee,ne,re,ie,ge,ve,ce){var $e=1-ne,Pe=ne,Qe=ae*$e+y*Pe,ht=a*$e+E*Pe,pt=y*$e+b*Pe,Be=E*$e+x*Pe,Ue=b*$e+z*Pe,Ye=x*$e+ee*Pe,Je=Qe*$e+pt*Pe,dt=ht*$e+Be*Pe,Lt=pt*$e+Ue*Pe,Gt=Be*$e+Ye*Pe,Ot=Je*$e+Lt*Pe,Zt=dt*$e+Gt*Pe;re.x=Qe,re.y=ht,ie.x=Je,ie.y=dt,ge.x=Ot,ge.y=Zt,ve.x=Lt,ve.y=Gt,ce.x=Ue,ce.y=Ye}var ye=new go.Spot(.156,.156),we=new go.Spot(.844,.844),de=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ie("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*de,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ye,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,de*a,0,a,(1-de)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,de*y,(1-de)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,de*y,de*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-de)*a,0,0,(1-de)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ie("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ie("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ie("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ie("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Xe=[];function Me(){var ae=Xe.pop();return ae===void 0?[]:ae}function je(ae){ae.length=0,Xe.push(ae)}function Te(ae){for(var a=Me(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Re(ae){var a=Ee(ae),y=Me();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return je(a),y}function Ee(ae){for(var a=Te(ae),y=Me(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],je(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Te(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Ee(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Ee(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Ee(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Ee(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Ee(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Ee(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),je(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),je(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ie("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ie("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ie("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ye,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ie("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ie("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=de/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(ne,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ie("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ie("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ie("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,de*a,0,a,(.5-de/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+de/2)*y,de*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*de;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*de,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*de,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=de*.4;var re=te(),ie=te(),ge=te(),ve=te();Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ve,ve);var ce=te(),$e=te(),Pe=te();Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ve,ve,Pe,ce,$e);var Qe=te(),ht=te(),pt=te();Ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Qe,ht,pt,ve,ve);var Be=te(),Ue=te(),Ye=te();return Ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ve,ve,Ye,Be,Ue),ne.add(new go.PathSegment(go.PathSegment.Move,Ye.x*a,Ye.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Be.x*a,Be.y*y,Ue.x*a,Ue.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Ye.x*a,Ye.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Pe.x*a,Pe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,$e.x*a,$e.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,Qe.x*a,Qe.y*y,ht.x*a,ht.y*y).close()),ue(re),ue(ie),ue(ge),ue(ve),ue(ce),ue($e),ue(Pe),ue(Qe),ue(ht),ue(pt),ue(Be),ue(Ue),ue(Ye),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ie("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=de*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),ge=te(),ve=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,ne,ne),ve.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var ce=oe(re.x,re.y);Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ie,ge);var $e=oe(re.x,re.y);ve.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,($e.x*.1+.9)*a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,($e.x*.1+.9)*a,($e.y*.1+.05*.9)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=de*.35;var Pe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var Qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Qe),ue(ne),ue(re),ue(ie),ue(ge),ue(ce),ue($e),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*de,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*de;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ie("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ie("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),ue(ie),ne}),go.Shape.setFigureParameter("Arrow2",0,new Ie("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ie("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ie.x,ie.y),ue(ie),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ie("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Ke(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ke(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ie("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ie("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ue(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ie("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ie("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ie("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(ge.x,ge.y),ue(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ie("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ie("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ie("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ie("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Ke(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ie("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=de*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=de*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,de*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,de*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-de*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-de*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-de*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-de*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=de*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,de*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,de*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-de*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-de*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-de*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-de*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=de*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-de*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-de*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,de*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,de*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+de*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+de*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=de*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-de*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-de*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,de*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,de*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-de*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-de*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=de*b,ee=de*x,ne=.5,re=.1,ie=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var ge=.05,ve=de*ge;ne=.05,re=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ge)*a,re*y,(ne+ve)*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ve=de*ge,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ve=de*ge,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ve=de*ge,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne+ge)*a,(re-ve)*y,(ne+ve)*a,(re-ge)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ge)*a,re*y,(ne-ve)*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ve=de*ge,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ge)*y,(ne-ge)*a,(re-ve)*y,(ne-ve)*a,(re-ge)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ie("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=de*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=de*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=de*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=de*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=de*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=de*.4,z=de*.1,ee=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=de*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=de*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=de*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=de*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=de*.8,ee=.8,ne=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ve=new go.PathFigure(ne*a+ie,(re+ee)*y+ge,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-ee)*y+ge,(ne-ee+z*.5)*a+ie,(re-z)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne-ee+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+ee)*y+ge).close()),z=de*.4,ee=.4,ne=.2,re=.5;var ce=new go.PathFigure(ne*a+ie,(re+ee)*y+ge,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ie,re*y+ge,ne*a+ie,(re-ee)*y+ge,(ne-ee+z*.5)*a+ie,(re-z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne-ee+z*.5)*a+ie,(re+z)*y+ge,ne*a+ie,(re+ee)*y+ge).close()),z=de*.2,ee=.2,ne=.5,re=.5;var $e=new go.PathFigure((ne-ee)*a+ie,re*y+ge,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne-ee)*a+ie,(re-z)*y+ge,(ne-z)*a+ie,(re-ee)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ie,re*y+ge,(ne-z)*a+ie,(re+ee)*y+ge,(ne-ee)*a+ie,(re+z)*y+ge)),z=de*.4,ee=.4,ne=.8,re=.5;var Pe=new go.PathFigure(ne*a+ie,(re-ee)*y+ge,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+ee)*y+ge,(ne+ee-z*.5)*a+ie,(re+z)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne+ee-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-ee)*y+ge).close()),z=de*.8,ee=.8,ne=1,re=.5;var Qe=new go.PathFigure(ne*a+ie,(re-ee)*y+ge,!0);return E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ie,re*y+ge,(ne+z)*a+ie,(re-ee)*y+ge,(ne+ee)*a+ie,(re-z)*y+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re+ee)*y+ge,(ne+ee)*a+ie,(re+z)*y+ge,(ne+z)*a+ie,(re+ee)*y+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ie,re*y+ge,ne*a+ie,(re+ee)*y+ge,(ne+ee-z*.5)*a+ie,(re+z)*y+ge)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ie,(re-ee)*y+ge,(ne+ee-z*.5)*a+ie,(re-z)*y+ge,ne*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=de*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ie=te(),ge=te();Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,ge);var ve=oe(re.x,re.y),ce=new go.PathFigure(re.x*a,re.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=de*.3,x=.3,Ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ie,ge),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ue(ne),ue(re),ue(ie),ue(ge),ue(ve),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*de,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ve=.5,ce=0,$e=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ve+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),$e.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),$e.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),$e.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ve=z,ce=z,$e=ie*ve,Pe=ie*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ve)*a,ne*y,(ee-($e+ve)/2)*a,(ne+(ce+Pe)/2)*y,(ee-ve)*a,(ne+Pe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-ve)*a,(ne-Pe)*y,(ee-$e)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ve)*a,ne*y,(ee+$e)*a,(ne-ce)*y,(ee+ve)*a,(ne-Pe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ve)*a,(ne+Pe)*y,(ee+($e+ve)/2)*a,(ne+(ce+Pe)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Qe=new go.PathFigure(.2*a,y,!1);E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ht=new go.PathFigure(.8*a,y,!1);return E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=de*.1,ne=.2,re=.9,ie=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=de*.1,ne=.8,re=.9;var ge=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=de*.1,ie=.1,ge=.9,ve=new go.PathFigure((ie-ne)*a,ge*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),ne=.1,re=de*.1,ie=.4,ge=.9;var ce=new go.PathFigure((ie-ne)*a,ge*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-ne)*y,(ie-ne)*a,(ge-re)*y,(ie-re)*a,(ge-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,ge*y,(ie+re)*a,(ge-ne)*y,(ie+ne)*a,(ge-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+ne)*y,(ie+ne)*a,(ge+re)*y,(ie+re)*a,(ge+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,ge*y,(ie-re)*a,(ge+ne)*y,(ie-ne)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=de*.05,ve=.175,ce=.95,ee=new go.PathFigure((ve-ie)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce-ie)*y,(ve-ie)*a,(ce-ge)*y,(ve-ge)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,ce*y,(ve+ge)*a,(ce-ie)*y,(ve+ie)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce+ie)*y,(ve+ie)*a,(ce+ge)*y,(ve+ge)*a,(ce+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,ce*y,(ve-ge)*a,(ce+ie)*y,(ve-ie)*a,(ce+ge)*y));var ie=.05,ge=de*.05,ve=.375,ce=.95,ne=new go.PathFigure((ve-ie)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce-ie)*y,(ve-ie)*a,(ce-ge)*y,(ve-ge)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,ce*y,(ve+ge)*a,(ce-ie)*y,(ve+ie)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce+ie)*y,(ve+ie)*a,(ce+ge)*y,(ve+ge)*a,(ce+ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,ce*y,(ve-ge)*a,(ce+ie)*y,(ve-ie)*a,(ce+ge)*y));var ie=.05,ge=de*.05,ve=.625,ce=.95,re=new go.PathFigure((ve-ie)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce-ie)*y,(ve-ie)*a,(ce-ge)*y,(ve-ge)*a,(ce-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,ce*y,(ve+ge)*a,(ce-ie)*y,(ve+ie)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce+ie)*y,(ve+ie)*a,(ce+ge)*y,(ve+ge)*a,(ce+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,ce*y,(ve-ge)*a,(ce+ie)*y,(ve-ie)*a,(ce+ge)*y));var ie=.05,ge=de*.05,ve=.825,ce=.95,$e=new go.PathFigure((ve-ie)*a,ce*y,!0);E.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce-ie)*y,(ve-ie)*a,(ce-ge)*y,(ve-ge)*a,(ce-ie)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*a,ce*y,(ve+ge)*a,(ce-ie)*y,(ve+ie)*a,(ce-ge)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(ce+ie)*y,(ve+ie)*a,(ce+ge)*y,(ve+ge)*a,(ce+ie)*y)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*a,ce*y,(ve-ge)*a,(ce+ie)*y,(ve-ie)*a,(ce+ge)*y).close());var Pe=new go.PathFigure(0,y,!1);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=de*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-ne)*y,(re-ne)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+ne)*a,(ie-ee)*y,(re+ee)*a,(ie-ne)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+ne)*y,(re+ne)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-ne)*a,(ie+ee)*y,(re-ee)*a,(ie+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=de*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=de*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=de*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*de,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*de,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*de,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},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 Ie={},lt="5.0",oe={},te=null,ue=!1,Ke=!1,Ze=null,ye=!1,we=null,de=null,Xe=0;Xe<arguments.length;Xe++){var Me=arguments[Xe];if(Me!==null)switch(typeof Me){case"number":lt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Me:Ze=Me;break;case"object":typeof Me.is3D!="undefined"?te=Me:oe=Me;break;case"boolean":ue=Me,Ke=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Ke&&(ue=!0)),Ze!==null&&oe.id===void 0&&(oe.id=Ze);var je="",Te="",Re=!1,Ee=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};Ie.setHTML5Codebase=function(Ce,Ge){de=Ce,Gt(Ce,Ge)},Ie.setJavaCodebase=Ie.setJavaCodebaseVersion=Ie.isCompiledInstalled=Ie.setPreCompiledScriptPath=Ie.setPreCompiledResourcePath=function(){},Ie.setHTML5CodebaseVersion=function(Ce,Ge){var et=parseFloat(Ce);if(et!==NaN&&et<5){console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead.");return}we=Ce,Lt(Ce,Ge)},Ie.getHTML5CodebaseVersion=function(){return ae},Ie.getParameters=function(){return oe},Ie.setFontsCSSURL=function(Ce){z=Ce},Ie.setGiacJSURL=function(Ce){},Ie.setJNLPFile=function(Ce){je=Ce},Ie.setJNLPBaseDir=function(Ce){},Ie.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",et=oe.id,wt,at=!1,Pt=0;Pt<arguments.length;Pt++){var me=arguments[Pt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=me:et=arguments[Pt]):typeof me=="boolean"?at=me:me instanceof HTMLElement&&(wt=me)}_e();function _e(){if(!ye){setTimeout(_e,200);return}Ge=Je(Ge);var ke=wt||document.getElementById(et);if(!ke){console.log("possibly bug on ajax loading? ");return}if(Ie.removeExistingApplet(ke,!1),oe.width===void 0&&ke.clientWidth&&(oe.width=ke.clientWidth),oe.height===void 0&&ke.clientHeight&&(oe.height=ke.clientHeight),!(oe.width&&oe.height)&&Ge==="html5"&&(delete oe.width,delete oe.height),Ee=Ge,Ge==="screenshot")ht(ke,oe);else{var xt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?xt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(xt=(!re()||Ce())&&ie()),xt?(Ee="screenshot",Be(ke,oe,at,Ge)):Qe(ke,oe,at)}}};function re(){try{return window.self!==window.top}catch(Ce){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ie.getViews=function(){return te},Ie.isJavaInstalled=function(){return!1};var ge=function(Ce){var Ge=function(Pt){var me=JSON.parse(Pt),_e=function(gt){return gt.type=="G"||gt.type=="E"},ke=me.elements?me.elements.filter(_e)[0]:me;if(!ke||!ke.url){et();return}oe.fileName=ke.url,ve(ke.settings||{}),te.is3D=!0;var xt="https://www.geogebra.org/images/";Ie.setPreviewImage(E||ke.previewUrl,xt+"GeoGebra_loading.png",xt+"applet_play.png"),Ce()},et=function(){oe.onError&&oe.onError(),Ot("Error: Fetching material (id "+oe.material_id+") failed.",oe)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",at="/materials/"+oe.material_id+"?scope=basic";ce("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(at),Ge,et)};function ve(Ce){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(et){Ce[et]=!!Ce[et]}),Ge.forEach(function(et){oe[et]===void 0&&Ce[et]!==void 0&&(oe[et]=Ce[et])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(Ce,Ge,et){var wt=new XMLHttpRequest;wt.open("GET",Ce),wt.onload=function(){Ge(wt.responseText)},wt.onerror=et,wt.send()}Ie.isHTML5Installed=function(){return!0},Ie.getLoadedAppletType=function(){return Ee},Ie.setPreviewImage=function(Ce,Ge,et){E=Ce,b=Ge,x=et},Ie.removeExistingApplet=function(Ce,Ge){var et;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),Ee=null;var wt=null;for(et=0;et<Ce.childNodes.length;et++){var at=Ce.childNodes[et],Pt=at.className;Pt==="applet_screenshot"?Ge?(at.style.display="block",Ee="screenshot"):at.style.display="none":Pt!=="applet_scaler prerender"&&(Ce.removeChild(at),wt=Pt&&Pt.indexOf("appletParameters")!=-1?at.id:null,et--)}var me=oe.id!==void 0?oe.id:wt,_e=window[me];_e&&typeof _e.getBase64=="function"&&(_e.remove(),window[me]=null)},Ie.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=Ie.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},Ie.startAnimation=function(){var Ce=Ie.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},Ie.stopAnimation=function(){var Ce=Ie.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},Ie.getAppletObject=function(){var Ce=oe.id!==void 0?oe.id:"ggbApplet";return window[Ce]},Ie.resize=function(){};var $e=function(Ce,Ge,et){var wt=document.createElement("param");wt.setAttribute("name",Ge),wt.setAttribute("value",et),Ce.appendChild(wt)},Pe=function(Ce){return Ce&&Ce!=="false"},Qe=function(Ce,Ge,et){ne(ae)<=4.2&&(et=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var at=document.createElement("div");at.classList.add("appletParameters","notranslate");var Pt=Ge.width,me=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(ne(ae)<=4.4)Pe(Ge.showToolBar)&&(Ge.height-=7),Pe(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&Pe(Ge.showToolBar)&&(Ge.width=605,Pt=605);else{var _e=100;(Pe(Ge.showToolBar)||Pe(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),_e=Pe(Ge.showMenuBar)?245:155),Pt<_e&&(Ge.width=_e,Pt=_e)}at.style.border="none",at.style.display="inline-block";for(var ke in Ge)Ge.hasOwnProperty(ke)&&ke!=="appletOnLoad"&&at.setAttribute("data-param-"+ke,Ge[ke]);z&&at.setAttribute("data-param-fontscssurl",z),Ie.resize=function(){GGBAppletUtils.responsiveResize(Ce,Ge)},window.addEventListener("resize",function(Se){Ie.resize()});var xt=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!et&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||at.setAttribute("data-param-showSplash","false");var gt=Ce.querySelector(".applet_scaler.prerender"),Ae=gt!==null;if(Ae)var be=gt.querySelector(".ggb_preview");else{var be=Ye(Pt,me,Ge.borderColor,!1);gt=document.createElement("div"),gt.className="applet_scaler",gt.style.position="relative",gt.style.display="block",gt.style.width=Pt+"px",gt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gt,"66%"),ne(ae)>=5?(Ge.appletOnLoad=function(Se){var We=Ce.querySelector(".ggb_preview");We&&We.parentNode.removeChild(We),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(gt),window.GGBT_wsf_view&&$(window).trigger("resize"),xt(Se)},Ae||gt.appendChild(be)):at.appendChild(be),gt.appendChild(at),Ae||Ce.appendChild(gt),setTimeout(function(){Ie.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(at),Ce.appendChild(pe),Ge.appletOnLoad=function(Se){Ie.resize(),xt(Se)}}function De(Se,We){We&&typeof We.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Se,We.appletOnLoad):renderGGBElement(Se),Ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",We)}function He(Se,We){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Se,params:We}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(vt){De(vt.article,vt.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(Se.className+=" geogebraweb")):De(Se,We)}if(wt){scriptLoadStarted=!0;for(var ot=0;ot<at.childNodes.length;ot++){var se=at.childNodes[ot].tagName;se==="TABLE"&&(at.removeChild(at.childNodes[ot]),ot--)}if(ggbHTML5LoadedScript!==null){var he=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');he!=null&&he.parentNode.removeChild(he)}var rt=document.createElement("script"),Ve=function(){He(at,Ge)};rt.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=rt.src,Ot("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ge),!de&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ve()):Te.requirejs?__webpack_require__.e(4184).then(function(){var Se=[__webpack_require__(74620)];Ve.apply(null,Se)}.bind(this)).catch(__webpack_require__.oe):(rt.onload=Ve,Ce.appendChild(rt))}else He(at,Ge);Ge.height=me,Ge.width=Pt},ht=function(Ce,Ge,et){var wt=Ye(Ge.width,Ge.height,Ge.borderColor,et),at=document.createElement("div");at.style.position="relative",at.style.display="block",at.style.width=Ge.width+"px",at.style.height=Ge.height+"px",at.className="applet_screenshot applet_scaler"+(et?" applet_screenshot_play":""),at.appendChild(wt);var Pt=GGBAppletUtils.getScale(Ge,Ce,et);et?(Ce.appendChild(Ue()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(at,"66%"),Ce.appendChild(at),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(at,Pt),at.style.width=Ge.width+"px",at.style.height=Ge.height+"px",at.parentNode.style.width=Ge.width*Pt+"px",at.parentNode.style.height=Ge.height*Pt+"px"),Ie.resize=function(){pt(Ce,wt,at,et)},window.addEventListener("resize",function(me){Ie.resize()}),Ie.resize()};function pt(Ce,Ge,et,wt){if(Ce.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var at=GGBAppletUtils.getScale(oe,Ce,wt);et.parentNode!==null&&(!isNaN(at)&&at!==1?(GGBAppletUtils.scaleElement(et,at),et.parentNode.style.width=oe.width*at+"px",et.parentNode.style.height=oe.height*at+"px"):(GGBAppletUtils.scaleElement(et,1),et.parentNode.style.width=oe.width+"px",et.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ie.onExitFullscreen=function(Ce,Ge){Ge.appendChild(Ce)};var Be=function(Ce,Ge,et,wt){ht(Ce,Ge,!0);for(var at=function(){var _e=[];for(me=0;me<Ce.childNodes.length;me++)_e.push(Ce.childNodes[me]);if(window.GGBT_wsf_view){var ke=window.GGBT_wsf_view.renderFullScreen(Ce,Ge.id),xt=document.getElementById("fullscreencontainer"),gt=jQuery(Ce).find(".fullscreencontent");gt.length>0?(ke.remove(),gt.attr("id","fullscreencontent").show(),jQuery(xt).append(gt),window.dispatchEvent(new Event("resize"))):Qe(ke,Ge,!1),window.GGBT_wsf_view.launchFullScreen(xt)}else Ee=wt,Qe(Ce,Ge,!1);if(!window.GGBT_wsf_view)for(me=0;me<_e.length;me++)Ce.removeChild(_e[me])},Pt=Ce.getElementsByClassName("ggb_preview_play"),me=0;me<Pt.length;me++)Pt[me].addEventListener("click",at,!1),Pt[me].addEventListener("ontouchstart",at,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var Ce=document.createElement("div");if(Ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',et=document.createElement("style");et.styleSheet?et.styleSheet.cssText=Ge:et.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(et)}return Ce},Ye=function(Ce,Ge,et,wt){var at=document.createElement("div");at.className="ggb_preview",at.style.position="absolute",at.style.zIndex="90",at.style.width=Ce-2+"px",at.style.height=Ge-2+"px",at.style.top="0px",at.style.left="0px",at.style.overflow="hidden",at.style.backgroundColor="white";var Pt="lightgrey";et!==void 0&&(et==="none"?Pt="transparent":Pt=et),at.style.border="1px solid "+Pt;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var _e,ke,xt;if(!wt){_e=document.createElement("img"),_e.style.position="absolute",_e.style.zIndex="1001",_e.style.opacity=1,me.style.opacity=.3,ke=360,ke>Ce/4*3&&(ke=Ce/4*3),xt=ke/5.8,_e.setAttribute("src",b),_e.setAttribute("width",ke),_e.setAttribute("height",xt);var gt=(Ce-ke)/2,Ae=(Ge-xt)/2;_e.style.left=gt+"px",_e.style.top=Ae+"px",at.appendChild(_e)}}return at.appendChild(me),at},Je=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Lt=function(Ce,Ge){if(ae=Ce,Ge){Gt(ae,!0);return}var et=!ue;if(et){var wt=ne(ae);!isNaN(wt)&&wt<4.4&&(et=!1)}var at,Pt;window.location.protocol.substr(0,4)==="http"?at=window.location.protocol:at="http:";var me=ae.indexOf("//");me>0?Pt=ae:me===0?Pt=at+ae:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var _e in dt)if(ae.slice(dt[_e].length*-1)===dt[_e]||ae.slice((dt[_e].length+1)*-1)===dt[_e]+"/"){Gt(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&et&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Pe(oe.showToolBar)&&!Pe(oe.showMenuBar)&&!Pe(oe.showAlgebraInput)&&!Pe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",Gt(Pt,!1)},Gt=function(Ce,Ge){if(Ce.requirejs){Te=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),Te=Ce,Ge===null&&(Ge=Ce.indexOf("http")===-1),Re=Ge,a="web.nocache.js",y=!1;var et=Te.split("/");et.length>1&&(!Ge&&et[et.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(et[et.length-2])>=0&&(a=et[et.length-2]+".nocache.js")),et=Ce.split("/"),ae=et[et.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var wt=parseFloat(ae);wt!==NaN&&wt<5&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),Lt("5.0",Ge))},Ot=function(Ce,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(Ce)};oe.material_id!==void 0?ge(Zt):Zt();function Zt(){var Ce=lt;we!==null?Ce=we:parseFloat(Ce)<5&&(Ce="5.0"),Lt(Ce,!1),de!==null&&Gt(de,Re),ye=!0}return Ie},GGBAppletUtils=function(){"use strict";function Ie(){return window.GGBT_wsf_edit!==void 0}function lt(ye,we){we!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+we+","+we+")",ye.style.webkitTransform="scale("+we+","+we+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function oe(ye,we,de,Xe,Me,je){var Te=null;if(je!=null&&je!="")for(var Re=ye.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+je+" ")>-1){Te=Re;break}else Re=Re.parentNode;var Ee=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Te)Ee=Te.offsetWidth,ae=Math.max(Xe?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ee):(Ee=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ye){var z=ye.getBoundingClientRect();z.left>0&&z.left<=Ee&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Ee-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ye&&((de===void 0||!de)&&we>0&&we+y<Ee?Ee=we:Ee-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de===void 0||!de)&&(ae-=x)),{width:Ee,height:ae}}function te(ye,we,de,Xe,Me){if(ye.isScreenshoGenerator)return 1;var je=Xe!==void 0&&Xe,Te=ye.noScaleMargin!=null&&ye.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},Ee=Re(ye.autoHeight),ae=oe(we,ye.width,de,Ee,je&&window.GGBT_wsf_view||Te,Me),a=parseInt(ae.width),y=ye.width,E=ye.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=je?1:ae.height/E;return de!==void 0&&!de&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ue(ye,we,de){var Xe=1,Me,je=!1;if(ye.hasOwnProperty("allowUpscale")&&(je=ye.allowUpscale),ye.hasOwnProperty("scale")&&(Xe=parseFloat(ye.scale),(isNaN(Xe)||Xe===null||Xe===0)&&(Xe=1),Xe>1&&(je=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))Me=te(ye,we,je,de,ye.scaleContainerClass);else return Xe;return je&&(!ye.hasOwnProperty("scale")||Xe===1)?Me:Math.min(Xe,Me)}function Ke(ye){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=ye.getBoundingClientRect(),Me=(we-Xe.width)/2,je=(de-Xe.height)/2;je<0&&(je=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?ye.style.left="40px":ye.style.left=Me+"px",ye.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?ye.style.top="40px":ye.style.top=je+"px",ye.style.left=Me+"px")}function Ze(ye,we){var de=ye.querySelector(".appletParameters");if(de){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==de.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(de.parentElement&&/fullscreen/.test(de.parentElement.className))return;var Xe=ue(we,ye);Ie()&&de.setAttribute("data-param-scale",Xe);for(var Me=null,je=0;je<ye.childNodes.length;je++)if(ye.childNodes[je].className!==void 0&&ye.childNodes[je].className.match(/^applet_scaler/)){Me=ye.childNodes[je];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Te=we.id!==void 0?we.id:"ggbApplet",Re=window[Te];(Re==null||!Re.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Xe)&&Xe!==1?(Me.parentNode.style.width=we.width*Xe+"px",Me.parentNode.style.height=we.height*Xe+"px",lt(Me,Xe)):(lt(Me,1),Me.parentNode.style.width=we.width+"px",Me.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(de).parents(".content-added-content"))}}return{responsiveResize:Ze,isFlexibleWorksheetEditor:Ie,positionCenter:Ke,getScale:ue,scaleElement:lt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ie=n.location.search;return Ie.indexOf(J)!=-1||Ie.indexOf(K)!=-1}function q(Ie,lt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ie){var lt=s[L].bindings;s[L].bindings=function(){for(var oe=lt?lt():{},te=Ie[webModule.__softPermutationId],ue=O;ue<te.length;ue++){var Ke=te[ue];oe[Ke[O]]=Ke[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ie=o.createElement(Q);if(Ie.id=L,Ie.style.cssText=R+S,Ie.tabIndex=-1,o.body.appendChild(Ie),t=Ie.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w(Ie){function lt(te){function ue(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=ue();if(Ke){te();return}function Ze(){if(!Ke){if(!ue())return;Ke=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ze,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Ze,!1);var ye=setInterval(function(){Ze()},$)}function oe(te){var ue=u(),Ke=ue.body,Ze=ue.createElement(_);Ze.language=ab,Ze.crossOrigin=W,Ze.src=te,webModule.__errFn&&(Ze.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ke.appendChild(Ze)}lt(function(){oe(Ie)})}webModule.__startLoadingFragment=function(Ie){return C(Ie)},webModule.__installRunAsyncCode=function(Ie){var lt=u(),oe=lt.body,te=lt.createElement(_);te.language=ab,te.text=Ie,oe.appendChild(te),oe.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ie){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ie){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ie){var lt=c[Ie];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function Ie(ye){var we=ye.lastIndexOf(rb);we==-1&&(we=ye.length);var de=ye.indexOf(sb);de==-1&&(de=ye.length);var Xe=ye.lastIndexOf(tb,Math.min(de,we));return Xe>=O?ye.substring(O,Xe+P):W}function lt(ye){if(!ye.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ye+vb,ye=Ie(we.src)}return ye}function oe(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function te(){for(var ye=o.getElementsByTagName(_),we=O;we<ye.length;++we)if(ye[we].src.indexOf(xb)!=-1)return Ie(ye[we].src);return W}function ue(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function Ke(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Ze=oe();return Ze==W&&(Ze=te()),Ze==W&&(Ze=ue()),Ze==W&&Ke()&&(Ze=Ie(o.location.href)),Ze=lt(Ze),Ze}function C(Ie){return Ie.match(/^\//)||Ie.match(/^[a-zA-Z]+:\/\//)?Ie:webModule.__moduleBase+Ie}function D(){var Ie=[],lt=O,oe=[],te=[];function ue(ye){var we=te[ye](),de=oe[ye];if(we in de)return we;var Xe=[];for(var Me in de)Xe[de[Me]]=Me;throw r&&r(ye,Xe,we),null}if(__gwt_isKnownPropertyValue=function(ye,we){return we in oe[ye]},webModule.__getPropMap=function(){var ye={};for(var we in oe)oe.hasOwnProperty(we)&&(ye[we]=ue(we));return ye},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ze=Ke.indexOf(Db);Ze!=-1&&(lt=parseInt(Ke.substring(Ze+P),$),Ke=Ke.substring(O,Ze))}catch(ye){}return webModule.__softPermutationId=lt,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Ie,lt,oe){"use strict";oe.d(lt,{Ax:function(){return Ze},Ds:function(){return ye},KI:function(){return de},SI:function(){return Ke},f1:function(){return ue}});var te=oe(3294);function ue(Xe){let Me=!0;if(Xe.length>0){for(let je=0;je<Xe.length;je++)if(Xe[je].compile_success==0||!Xe[je].compile_success){Me=!1;break}}else Me=!1;return Me}function Ke(Xe,Me=""){let je=[];for(let Te=0;Te<Xe.length;Te++){let Re=Xe[Te],Ee=Me?`${Me}/${Re.name}`:`${Re.name}`;je.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:Ee})}return je}function Ze(Xe,Me,je){for(let Te=0;Te<Xe.length;Te++){let Re=Xe[Te];if(Re.key===Me){Re.children=je;break}Re.children&&Ze(Re.children,Me,je)}return Xe}function ye(Xe,Me,je){let Te;return function(){let Re=this,Ee=arguments,ae=function(){Te=null,je||Xe.apply(Re,Ee)},a=je&&!Te;clearTimeout(Te),Te=setTimeout(ae,Me),a&&Xe.apply(Re,Ee)}}const we=!0,de=te.Z.API_SERVER},10672:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Me}});var te=oe(59301),ue=oe(92832),Ke=oe(12563),Ze=oe(8591),ye={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},we=oe(62772);const{TextArea:de}=ue.default;class Xe extends te.Component{constructor(Te){super(Te),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Te,onAnswerChange:Re,addChildAnswer:Ee,exerciseIsPublish:ae,answers:a,activeOptionErrorIndex:y,flex:E="0 0 1000px"}=this.props;console.log("----",a);let{inputVisible:b,EditInputIndex:x}=this.state;return te.createElement("div",{className:ye.flex},te.createElement("div",{className:`${ye.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Te+1,"):"),te.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},a==null?void 0:a.map((z,ee)=>te.createElement(te.Fragment,null,x!==ee?(z==null?void 0:z.length)>0?te.createElement(Ke.default,{className:"edit-tag",key:z,closable:!((a==null?void 0:a.length)===1&&ee===0),onClose:ne=>{ne.preventDefault(),(a==null?void 0:a.length)===1&&ee===0?this.props.deleteChildAnswermain(Te,ee):this.props.deleteChildAnswer(Te,ee)}},te.createElement("span",{onDoubleClick:ne=>{this.setState({EditInputIndex:ee}),ne.preventDefault()}},z)):te.createElement(ue.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Te,ee,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):te.createElement(ue.default,{defaultValue:z,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ne=>{if(ne.target.value.replaceAll(" ","").length<=0){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Re(Te,ee,ne.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!b&&te.createElement(Ke.default,{className:"site-tag-plus",onClick:()=>{Ee(Te),this.setState({inputVisible:!0})}},te.createElement(we.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Me=Xe},65158:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return ae}});var te=oe(59301),ue=oe(12290),Ke=Object.defineProperty,Ze=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Me=(a,y,E)=>y in a?Ke(a,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):a[y]=E,je=(a,y)=>{for(var E in y||(y={}))de.call(y,E)&&Me(a,E,y[E]);if(we)for(var E of we(y))Xe.call(y,E)&&Me(a,E,y[E]);return a},Te=(a,y)=>Ze(a,ye(y)),Re=(a,y,E)=>Me(a,typeof y!="symbol"?y+"":y,E);const Ee="\u2581";class ae extends te.Component{constructor(){super(...arguments),Re(this,"getChCountBeforeCursor",(y,E)=>{const b=E.line;let x=0;for(let ee=0;ee<b;ee++)x+=y.getLine(ee).split(Ee).length-1;const z=y.getLine(b).substring(0,E.ch);return x+=z.split(Ee).length-1,x}),Re(this,"onCMBeforeChange",(y,E)=>{const b=y.getRange(E.from,E.to);let x=0;if(E.text.forEach(z=>{x+=z.split(Ee).length-1}),b&&b.indexOf(Ee)!=-1){const z=b.split(Ee).length-1,ee=this.getChCountBeforeCursor(y,E.from);console.log(`\u5220\u9664${z}\u4E2A\uFF0C \u4E4B\u524D\u6709${ee}\u4E2A\uFF0C\u65B0\u589E${x}\u4E2A`),this.props.deleteEmptyDisabled?E.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(ee,z,x)}else if(x){const z=this.getChCountBeforeCursor(y,E.from);console.log(`\u65B0\u589E${x}\u4E2A\uFF0C\u4E4B\u524D\u6709${z}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(z,0,x)}})}render(){return te.createElement(ue.Z,Te(je({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},73524:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Te}});var te=oe(59301),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=oe(92310),Ze=oe.n(Ke),ye=oe(71418),we=oe(2859),de=oe(99064),Xe=oe(955),Me=(Re,Ee,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Re,Ee)).next())}),Te=({data:Re,className:Ee,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ie,ge]=(0,te.useState)(!1),[ve,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&$e()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Re==null?void 0:Re.visible]);const $e=()=>Me(void 0,null,function*(){ge(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Be=yield(0,Xe.ZJ)(Re==null?void 0:Re.src);z.current.src="",z.current.src=Be,z.current.onload=function(){pt()},ge(!1),ce("")}),Pe=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},Qe=Be=>Me(void 0,null,function*(){ge(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,de.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:Be.dataUrl}});Ue!=null&&Ue.id&&!x?(yield(0,de.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(Be.state)}})).status===0&&E():Ue!=null&&Ue.id&&E(Ue),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ge(!1),ce("")}),ht=()=>{const Be=document.querySelector('a[href="https://markerjs.com/"]');Be&&Be.parentNode&&(Be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ye=>{const Je=document.querySelector(Ye.name);Je&&Je.setAttribute("title",Ye.title)})},pt=()=>{ee.current=new we.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",Qe),ee.current.addEventListener("beforeclose",Pe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Re!=null&&Re.snapshotData&&ee.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ht()},300)};return te.createElement(te.Fragment,null,(Re==null?void 0:Re.visible)&&te.createElement(ye.Z,{spinning:ie,tip:ve,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Ze()(ue.imageDimensions,Ee,ae?ue.fullWidth:""),style:a},te.createElement("img",{className:ue.img,ref:z}))))}},41588:function(Ie,lt,oe){"use strict";var te=oe(59301),ue=oe(95237),Ke=oe(43604),Ze=oe(99313),ye=oe(3113),we=oe(85149),de=oe(88010),Xe=oe(48136),Me=oe(59301);const je=(0,te.forwardRef)(({callback:Te,showSaveButton:Re,value:Ee=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(ue.Z,{className:de.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Me.createElement(Ke.Z,{flex:"110px",className:de.Z.item},Me.createElement("div",null,Me.createElement(we.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:de.Z.children},ee.children.map((re,ie)=>Me.createElement("div",{key:ie},Me.createElement("h1",null,re.name),Me.createElement(ue.Z,{gutter:[10,10]},re.data.map((ge,ve)=>Me.createElement(Ke.Z,{key:ve,onClick:()=>b(ge),className:de.Z.diamond},Me.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(ue.Z,{className:de.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Me.createElement(Ke.Z,{flex:"110px",className:de.Z.item},Me.createElement("div",null,Me.createElement(we.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:de.Z.children},ee.children.map((re,ie)=>Me.createElement("div",{key:ie},re.name&&Me.createElement("h1",null,re.name),Me.createElement(ue.Z,{gutter:[10,10]},re.data.map((ge,ve)=>Me.createElement(Ke.Z,{key:ve,onClick:()=>b(ge),className:de.Z.diamond},Me.createElement(we.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Te&&Te(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Me.createElement("div",{className:de.Z.mathWrap},Me.createElement(Ze.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:de.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ee||""),Re&&Me.createElement("div",{className:de.Z.button},Me.createElement(ye.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=je},97692:function(Ie,lt,oe){"use strict";oe.d(lt,{h:function(){return ee}});var te=oe(59301),ue=oe(57809),Ke=oe(78241),Ze=oe(3113),ye=oe(89780),we=oe.n(ye),de=oe(37036),Xe=oe(95625),Me=Object.defineProperty,je=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ie)=>re in ne?Me(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ne[re]=ie,y=(ne,re)=>{for(var ie in re||(re={}))Ee.call(re,ie)&&a(ne,ie,re[ie]);if(Re)for(var ie of Re(re))ae.call(re,ie)&&a(ne,ie,re[ie]);return ne},E=(ne,re)=>je(ne,Te(re));const b=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"]};lt.Z=({callback:ne,onCancel:re})=>{const[ie,ge]=(0,te.useState)("python");function ve($e){ge(z[$e][1])}function ce($e){ne($e)}return te.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(ue.default,{getPopupContainer:$e=>$e.parentNode,onChange:ve},Object.keys(z).map($e=>te.createElement(b,{key:$e,value:$e},z[$e][0])))),te.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ie})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ie,options:ge={}}){const ve=(0,te.useRef)(),[ce,$e]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let Pe=function(Qe){const ht=Qe.getValue();re&&re(ht)};return ce.on("change",Pe),()=>{ce.off("change",Pe)}}},[ce,re]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",ie)},[ce,ie]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(ve.current&&!ce){const Pe=we().fromTextArea(ve.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));$e(Pe)}},[ve.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:ve}))}},12290:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return qn}});var te=oe(59301),ue=oe(89780),Ke=oe.n(ue),Ze=oe(76374),ye=oe(37036),we=oe(6313),de=oe(25717),Xe=oe(99498),Me=oe(25419),je=oe(67549),Te=oe(85149),Re=({value:Le="",className:Oe,showTextOnly:xe,showLines:St,style:Bt={}})=>{const Ft=(0,te.useMemo)(()=>"",[Le]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Ft}}))},Ee=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,Oe,xe)=>Oe in Le?ae(Le,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Le[Oe]=xe,ee=(Le,Oe)=>{for(var xe in Oe||(Oe={}))b.call(Oe,xe)&&z(Le,xe,Oe[xe]);if(E)for(var xe of E(Oe))x.call(Oe,xe)&&z(Le,xe,Oe[xe]);return Le},ne=(Le,Oe)=>a(Le,y(Oe));let re=[{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 ie({onActionCallback:Le,title:Oe,icon:xe,actionName:St,className:Bt="",children:Ft}){function dn(){Le(St)}return Ee.createElement("a",{title:Oe,className:Bt,onClick:dn},Ee.createElement("i",{className:`${xe}`}),Ft)}var ge=({watch:Le,showNullButton:Oe,showNullProgramButton:xe,onActionCallback:St,fullScreen:Bt,insertTemp:Ft,hidetoolBar:dn,extraUse:Kt})=>{const $t=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ee.createElement("ul",{className:"markdown-toolbar-container"},!dn&&$t.map((Vt,wn)=>Ee.createElement("li",{key:wn},Vt.actionName?Ee.createElement(ie,ne(ee({},Vt),{onActionCallback:St})):Ee.createElement("span",{className:"v-line"}))),Oe?Ee.createElement("li",null,Ee.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:St},Ee.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?Ee.createElement(Ee.Fragment,null,Ee.createElement("li",null,Ee.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:St},Ee.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ee.createElement("li",null,Ee.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:St},Ee.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ft&&Ee.createElement("li",null,Ee.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ft}`,onActionCallback:St},Ee.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kt&&Ee.createElement("li",null,Kt),Ee.createElement("li",{className:"btn-full-screen"},Ee.createElement(ie,{icon:`${Bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:St})))},ve=oe(79346),ce=oe(78241),$e=oe(92832),Pe=oe(3113),Qe=Object.defineProperty,ht=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Je=(Le,Oe,xe)=>Oe in Le?Qe(Le,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Le[Oe]=xe,dt=(Le,Oe)=>{for(var xe in Oe||(Oe={}))Ue.call(Oe,xe)&&Je(Le,xe,Oe[xe]);if(Be)for(var xe of Be(Oe))Ye.call(Oe,xe)&&Je(Le,xe,Oe[xe]);return Le},Lt=(Le,Oe)=>ht(Le,pt(Oe));const Gt={labelCol:{span:4},wrapperCol:{span:20}};var Ot=({callback:Le,onCancel:Oe})=>{function xe(St){Le(St)}return te.createElement(ce.default,Lt(dt({},Gt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement($e.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement($e.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:Oe},"\u53D6\u6D88")))},Zt=oe(97692),Ce=oe(28451),Ge=oe(43418),et=oe(95237),wt=oe(73524),at=oe(59301),Pt=({callback:Le,onCancel:Oe})=>{const xe=document.createElement("canvas"),St=xe.getContext("2d");xe.width=1e3,xe.height=800,St.fillStyle="#ffffff",St.fillRect(0,0,xe.width,xe.height);const Bt=xe.toDataURL("image/png");return at.createElement(Ge.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},at.createElement(et.Z,{style:{height:"100vh"}},at.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bt,visible:!0,title:String(Date.now())},onOk:Ft=>{Le({src:Ft.url})},onClose:Oe})))},me=oe(12378);function _e(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(_e,go.CommandHandler),_e.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},_e.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var Oe=1/0;Le.selection.each(function(xe){xe instanceof go.Link||(Oe=Math.min(xe.position.x,Oe))}),Le.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Oe,xe.position.y))}),Le.commitTransaction("aligning left")},_e.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var Oe=-1/0;Le.selection.each(function(xe){if(!(xe instanceof go.Link)){var St=xe.actualBounds.x+xe.actualBounds.width;Oe=Math.max(St,Oe)}}),Le.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Oe-xe.actualBounds.width,xe.position.y))}),Le.commitTransaction("aligning right")},_e.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var Oe=1/0;Le.selection.each(function(xe){xe instanceof go.Link||(Oe=Math.min(xe.position.y,Oe))}),Le.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Oe))}),Le.commitTransaction("alignTop")},_e.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var Oe=-1/0;Le.selection.each(function(xe){if(!(xe instanceof go.Link)){var St=xe.actualBounds.y+xe.actualBounds.height;Oe=Math.max(St,Oe)}}),Le.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Oe-xe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},_e.prototype.alignCenterX=function(){var Le=this.diagram,Oe=Le.selection.first();if(Oe){Le.startTransaction("aligning Center X");var xe=Oe.actualBounds.x+Oe.actualBounds.width/2;Le.selection.each(function(St){St instanceof go.Link||St.move(new go.Point(xe-St.actualBounds.width/2,St.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},_e.prototype.alignCenterY=function(){var Le=this.diagram,Oe=Le.selection.first();if(Oe){Le.startTransaction("aligning Center Y");var xe=Oe.actualBounds.y+Oe.actualBounds.height/2;Le.selection.each(function(St){St instanceof go.Link||St.move(new go.Point(St.actualBounds.x,xe-St.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},_e.prototype.alignColumn=function(Le){var Oe=this.diagram;Oe.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var xe=new Array;Oe.selection.each(function(Kt){Kt instanceof go.Link||xe.push(Kt)});for(var St=0;St<xe.length-1;St++){var Bt=xe[St],Ft=Bt.actualBounds.y+Bt.actualBounds.height+Le,dn=xe[St+1];dn.move(new go.Point(Bt.actualBounds.x,Ft))}Oe.commitTransaction("align Column")},_e.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var Oe=this.diagram;Oe.startTransaction("align Row");var xe=new Array;Oe.selection.each(function(Kt){Kt instanceof go.Link||xe.push(Kt)});for(var St=0;St<xe.length-1;St++){var Bt=xe[St],Ft=Bt.actualBounds.x+Bt.actualBounds.width+Le,dn=xe[St+1];dn.move(new go.Point(Ft,Bt.actualBounds.y))}Oe.commitTransaction("align Row")},_e.prototype.canRotate=function(Le){var Oe=this.diagram;return!(Oe===null||Oe.isReadOnly||Oe.isModelReadOnly||Oe.selection.count<1)},_e.prototype.rotate=function(Le){Le===void 0&&(Le=90);var Oe=this.diagram;Oe.startTransaction("rotate "+Le.toString());var Oe=this.diagram;Oe.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=Le)}),Oe.commitTransaction("rotate "+Le.toString())},_e.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var Oe=new go.Map;Le.selection.each(function(xe){Oe.set(xe.layer,0)}),Oe.iteratorKeys.each(function(xe){var St=0;xe.parts.each(function(Bt){if(!Bt.isSelected){var Ft=Bt.zOrder;isNaN(Ft)?Bt.zOrder=0:St=Math.max(St,Ft)}}),Oe.set(xe,St)}),Le.selection.each(function(xe){_e._assignZOrder(xe,Oe.get(xe.layer)+1)}),Le.commitTransaction("pullToFront")},_e.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var Oe=new go.Map;Le.selection.each(function(xe){Oe.set(xe.layer,0)}),Oe.iteratorKeys.each(function(xe){var St=0;xe.parts.each(function(Bt){if(!Bt.isSelected){var Ft=Bt.zOrder;isNaN(Ft)?Bt.zOrder=0:St=Math.min(St,Ft)}}),Oe.set(xe,St)}),Le.selection.each(function(xe){_e._assignZOrder(xe,Oe.get(xe.layer)-1-_e._findGroupDepth(xe))}),Le.commitTransaction("pushToBack")},_e._assignZOrder=function(Le,Oe,xe){xe===void 0&&(xe=Le),Le.layer===xe.layer&&(Le.zOrder=Oe),Le instanceof go.Group&&Le.memberParts.each(function(St){_e._assignZOrder(St,Oe+1,xe)})},_e._findGroupDepth=function(Le){if(Le instanceof go.Group){var Oe=0;return Le.memberParts.each(function(xe){Oe=Math.max(Oe,_e._findGroupDepth(xe))}),Oe+1}else return 0},_e.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var Oe=Le.lastInput;if(Oe.key==="Up"||Oe.key==="Down"||Oe.key==="Left"||Oe.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},_e.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(Oe){Le.push(Oe)}),this.diagram.parts.each(function(Oe){Le.push(Oe)}),Le},_e.prototype._arrowKeyMove=function(){var Le=this.diagram,Oe=Le.lastInput,xe=0,St=0;if(Oe.control||Oe.meta)xe=1,St=1;else if(Le.grid!==null){var Bt=Le.grid.gridCellSize;St=Bt.width,xe=Bt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Ft){Oe.key==="Up"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y-xe)):Oe.key==="Down"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y+xe)):Oe.key==="Left"?Ft.move(new go.Point(Ft.actualBounds.x-St,Ft.actualBounds.y)):Oe.key==="Right"&&Ft.move(new go.Point(Ft.actualBounds.x+St,Ft.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},_e.prototype._arrowKeySelect=function(){var Le=this.diagram,Oe=Le.lastInput,xe=null;Oe.key==="Up"?xe=this._findNearestPartTowards(270):Oe.key==="Down"?xe=this._findNearestPartTowards(90):Oe.key==="Left"?xe=this._findNearestPartTowards(180):Oe.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(Oe.shift?xe.isSelected=!0:Oe.control||Oe.meta?xe.isSelected=!xe.isSelected:Le.select(xe))},_e.prototype._findNearestPartTowards=function(Le){var Oe=this.diagram.selection.first();if(Oe===null)return null;for(var xe=Oe.actualBounds.center,St=this._getAllParts(),Bt=1/0,Ft=Oe,dn=0;dn<St.length;dn++){var Kt=St[dn];if(Kt!==Oe&&Kt.canSelect()){var $t=Kt.actualBounds.center,Vt=xe.directionPoint($t),wn=this._angleCloseness(Vt,Le);if(wn<=45){var tt=xe.distanceSquaredPoint($t);tt*=1+Math.sin(wn*Math.PI/180),tt<Bt&&(Bt=tt,Ft=Kt)}}}return Ft},_e.prototype._angleCloseness=function(Le,Oe){return Math.min(Math.abs(Oe-Le),Math.min(Math.abs(Oe+360-Le),Math.abs(Oe-360-Le)))},_e.prototype._arrowKeyTree=function(){var Le=this.diagram,Oe=Le.selection.first();if(Oe instanceof go.Node){var xe=Le.lastInput;if(xe.key==="Right"){if(!Oe.isTreeLeaf)if(!Oe.isTreeExpanded)Le.commandHandler.canExpandTree(Oe)&&Le.commandHandler.expandTree(Oe);else{var St=this._sortTreeChildrenByY(Oe).first();St!==null&&Le.select(St)}}else if(xe.key==="Left")if(!Oe.isTreeLeaf&&Oe.isTreeExpanded)Le.commandHandler.canCollapseTree(Oe)&&Le.commandHandler.collapseTree(Oe);else{var Bt=Oe.findTreeParentNode();Bt!==null&&Le.select(Bt)}else if(xe.key==="Up"){var Bt=Oe.findTreeParentNode();if(Bt!==null){var Ft=this._sortTreeChildrenByY(Bt),dn=Ft.indexOf(Oe);if(dn>0){for(var Kt=Ft.elt(dn-1);Kt!==null&&Kt.isTreeExpanded&&!Kt.isTreeLeaf;){var $t=this._sortTreeChildrenByY(Kt);Kt=$t.last()}Kt!==null&&Le.select(Kt)}else Le.select(Bt)}}else if(xe.key==="Down")if(Oe.isTreeExpanded&&!Oe.isTreeLeaf){var St=this._sortTreeChildrenByY(Oe).first();St!==null&&Le.select(St)}else for(;Oe!==null;){var Bt=Oe.findTreeParentNode();if(Bt===null)break;var Ft=this._sortTreeChildrenByY(Bt),dn=Ft.indexOf(Oe);if(dn<Ft.length-1){Le.select(Ft.elt(dn+1));break}else Oe=Bt}var Vt=Le.selection.first();Vt!==null&&Le.scrollToRect(Vt.actualBounds)}},_e.prototype._sortTreeChildrenByY=function(Le){var Oe=new go.List().addAll(Le.findTreeChildrenNodes());return Oe.sort(function(xe,St){var Bt=xe.location,Ft=St.location;return Bt.y<Ft.y?-1:Bt.y>Ft.y?1:Bt.x<Ft.x?-1:Bt.x>Ft.x?1:0}),Oe},_e.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},_e.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(_e.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(_e.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var ke=_e,xt=oe(74413),gt=oe(43604),Ae=oe(99064),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=oe(59301),De=(Le,Oe,xe)=>new Promise((St,Bt)=>{var Ft=$t=>{try{Kt(xe.next($t))}catch(Vt){Bt(Vt)}},dn=$t=>{try{Kt(xe.throw($t))}catch(Vt){Bt(Vt)}},Kt=$t=>$t.done?St($t.value):Promise.resolve($t.value).then(Ft,dn);Kt((xe=xe.apply(Le,Oe)).next())});function He({onCancel:Le,callback:Oe}){let xe=(0,te.useRef)(),St=(0,te.useRef)(),Bt=(0,te.useRef)(),Ft=(0,te.useRef)(!1);const dn=(0,te.useRef)(!1),[Kt,$t]=(0,te.useState)(0);function Vt(){const tt=me.bx.make,Xt={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 me.S0(St.current,{padding:20,grid:tt(me.s_,"Grid",tt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Fe=>{var fe=Fe.diagram.commandHandler.addTopLevelParts(Fe.diagram.selection,!0);fe||Fe.diagram.currentTool.doCancel()},commandHandler:tt(ke),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Fe=>{var fe=Fe.subject;fe.location=fe.location.copy().snapToGridPoint(Fe.diagram.grid.gridOrigin,Fe.diagram.grid.gridCellSize),setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Fe=>{var fe=Fe.subject;setTimeout(()=>{Fe.diagram.commandHandler.editTextBlock()})},LinkRelinked:Fe=>{var fe=Fe.parameter.part;fe.invalidateConnectedLinks();var st=Fe.subject;Fe.diagram.toolManager.linkingTool.isForwards?st.toNode.invalidateConnectedLinks():st.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=tt(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),tt(me.bn,{name:"SHAPE",fill:Xt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),tt(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tt(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=tt("ToolTip",tt(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},tt(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),tt(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function Cn(Fe,fe){var st=(qe,It)=>{qe.handled=!0,qe.diagram.model.commit(kt=>{var en=It.part.adornedPart,bt=new me.E9().setRectSpot(en.actualBounds,Fe);bt.subtract(en.location),bt.scale(2,2),bt.x+=Math.sign(bt.x)*130,bt.y+=Math.sign(bt.y)*130,bt.add(en.location),bt.snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize);var an=kt.copyNodeData(en.data);kt.setGroupKeyForNodeData(an,kt.getGroupKeyForNodeData(en.data)),kt.addNodeData(an);var cn={from:en.key,to:kt.getKeyForNodeData(an)};kt.addLinkData(cn);var un=qe.diagram.findNodeForData(an);un.location=bt,qe.diagram.select(un),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)})};return tt(me.bn,{figure:fe,alignment:Fe,alignmentFocus:Fe.opposite(),width:Fe.equals(me.z6.Top)||Fe.equals(me.z6.Bottom)?25:18,height:Fe.equals(me.z6.Top)||Fe.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:Xt.white,strokeWidth:4,mouseEnter:(qe,It)=>It.fill="dodgerblue",mouseLeave:(qe,It)=>It.fill="orange",isActionable:!0,click:st,contextClick:st})}function na(Fe){return tt(me.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:(fe,st)=>st.fill="dodgerblue",mouseLeave:(fe,st)=>st.fill="orange",click:(fe,st)=>{fe.diagram.commandHandler.showContextMenu(st.part.adornedPart)}},Fe||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=tt(me.uz,"Spot",tt(me.Vm,{padding:10}),Cn(me.z6.Top,"TriangleUp"),Cn(me.z6.Left,"TriangleLeft"),Cn(me.z6.Right,"TriangleRight"),Cn(me.z6.Bottom,"TriangleDown"),na({alignment:new me.z6(.75,0)}));function On(Fe,fe){return(st,qe)=>{st.handled=!0,st.diagram.model.commit(It=>{It.set(qe.part.adornedPart.data,Fe,fe)})}}function yn(Fe,fe){return fe||(fe="color"),tt(me.bn,{width:16,height:16,stroke:"lightgray",fill:Fe,margin:1,background:"transparent",mouseEnter:(st,qe)=>qe.stroke="dodgerblue",mouseLeave:(st,qe)=>qe.stroke="lightgray",click:On(fe,Fe),contextClick:On(fe,Fe)})}function la(){return[tt("ContextMenuButton",tt(me.s_,"Horizontal",yn(Xt.white,"fill"),yn(Xt.beige,"fill"),yn(Xt.extralightblue,"fill"),yn(Xt.extralightred,"fill"))),tt("ContextMenuButton",tt(me.s_,"Horizontal",yn(Xt.lightgray,"fill"),yn(Xt.lightgreen,"fill"),yn(Xt.lightblue,"fill"),yn(Xt.lightred,"fill")))]}function ia(){return[tt("ContextMenuButton",tt(me.s_,"Horizontal",yn(Xt.black),yn(Xt.green),yn(Xt.blue),yn(Xt.red))),tt("ContextMenuButton",tt(me.s_,"Horizontal",yn(Xt.white),yn(Xt.magenta),yn(Xt.purple),yn(Xt.orange)))]}function ca(Fe,fe){return fe||(fe="thickness"),tt(me.bn,"LineH",{width:16,height:16,strokeWidth:Fe,margin:1,background:"transparent",mouseEnter:(st,qe)=>qe.background="dodgerblue",mouseLeave:(st,qe)=>qe.background="transparent",click:On(fe,Fe),contextClick:On(fe,Fe)})}function ya(Fe,fe){return fe||(fe="dash"),tt(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Fe,margin:1,background:"transparent",mouseEnter:(st,qe)=>qe.background="dodgerblue",mouseLeave:(st,qe)=>qe.background="transparent",click:On(fe,Fe),contextClick:On(fe,Fe)})}function Sa(){return[tt("ContextMenuButton",tt(me.s_,"Horizontal",ca(1),ca(2),ca(3),ca(4))),tt("ContextMenuButton",tt(me.s_,"Horizontal",ya(null),ya([2,4]),ya([4,4])))]}function Xn(Fe,fe){return fe||(fe="figure"),tt(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Fe,margin:1,background:"transparent",mouseEnter:(st,qe)=>qe.fill="dodgerblue",mouseLeave:(st,qe)=>qe.fill="lightgray",click:On(fe,Fe),contextClick:On(fe,Fe)})}xe.current.nodeTemplate.contextMenu=tt("ContextMenu",tt("ContextMenuButton",tt(me.s_,"Horizontal",Xn("Rectangle"),Xn("RoundedRectangle"),Xn("Ellipse"),Xn("Diamond"))),tt("ContextMenuButton",tt(me.s_,"Horizontal",Xn("Parallelogram2"),Xn("ManualOperation"),Xn("Procedure"),Xn("Cylinder1"))),tt("ContextMenuButton",tt(me.s_,"Horizontal",Xn("Terminator"),Xn("CreateRequest"),Xn("Document"),Xn("TriangleDown"))),la(),ia(),Sa()),xe.current.groupTemplate=tt(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Fe,fe)=>{var st=fe.addMembers(fe.diagram.selection,!0);st||fe.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),tt(me.s_,"Auto",{name:"BODY"},tt(me.bn,{parameter1:10,fill:Xt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),tt(me.Vm,{background:"transparent",margin:20})),tt(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=tt(me.uz,"Spot",tt(me.s_,"Auto",tt(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tt(me.Vm,{margin:1.5})),na({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),xe.current.groupTemplate.contextMenu=tt("ContextMenu",la(),ia(),Sa()),xe.current.linkTemplate=tt(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",Fe=>Fe>=1?10:0),new me.KX("toShortLength","dir",Fe=>Fe>=1?10:0),new me.KX("points").makeTwoWay(),tt(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),tt(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Fe=>Fe===1)),tt(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Fe=>Fe>=1),new me.KX("width","thickness",Fe=>7+3*Fe),new me.KX("height","thickness",Fe=>7+3*Fe),new me.KX("segmentOffset","thickness",Fe=>new me.E9(-15,4+1.5*Fe))),tt(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",Fe=>Fe===2),new me.KX("width","thickness",Fe=>7+3*Fe),new me.KX("height","thickness",Fe=>7+3*Fe),new me.KX("segmentOffset","thickness",Fe=>new me.E9(-15,4+1.5*Fe))),tt(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=tt(me.uz,tt(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ha(2)},new me.KX("pathPattern","thickness",ha)),na({alignmentFocus:new me.z6(0,0,-6,-4)}));function ha(Fe){return tt(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Fe+4).toString()+" H3"})}function Ne(Fe){var fe="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Fe===0?fe="M0 0 M16 16 M0 8 L16 8":Fe===2&&(fe="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tt(me.bn,{geometryString:fe,margin:2,background:"transparent",mouseEnter:(st,qe)=>qe.background="dodgerblue",mouseLeave:(st,qe)=>qe.background="transparent",click:On("dir",Fe),contextClick:On("dir",Fe)})}function ze(Fe){var fe=(st,qe)=>{st.handled=!0,st.diagram.model.commit(It=>{var kt=qe.part.adornedPart;It.set(kt.data,Fe?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(Fe?kt.toNode:kt.fromNode).invalidateConnectedLinks()})};return tt(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(st,qe)=>qe.background="dodgerblue",mouseLeave:(st,qe)=>qe.background="transparent",click:fe,contextClick:fe})}function le(Fe,fe){var st=0,qe=me.z6.RightSide;Fe.equals(me.z6.Top)?(st=270,qe=me.z6.TopSide):Fe.equals(me.z6.Left)?(st=180,qe=me.z6.LeftSide):Fe.equals(me.z6.Bottom)&&(st=90,qe=me.z6.BottomSide),fe||(st-=180);var It=(kt,en)=>{kt.handled=!0,kt.diagram.model.commit(bt=>{var an=en.part.adornedPart;bt.set(an.data,fe?"toSpot":"fromSpot",me.z6.stringify(qe)),(fe?an.toNode:an.fromNode).invalidateConnectedLinks()})};return tt(me.bn,{alignment:Fe,alignmentFocus:Fe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:st,background:"transparent",mouseEnter:(kt,en)=>en.background="dodgerblue",mouseLeave:(kt,en)=>en.background="transparent",click:It,contextClick:It})}xe.current.linkTemplate.contextMenu=tt("ContextMenu",ia(),Sa(),tt("ContextMenuButton",tt(me.s_,"Horizontal",Ne(0),Ne(1),Ne(2))),tt("ContextMenuButton",tt(me.s_,"Horizontal",tt(me.s_,"Spot",ze(!1),le(me.z6.Top,!1),le(me.z6.Left,!1),le(me.z6.Right,!1),le(me.z6.Bottom,!1)),tt(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},ze(!0),le(me.z6.Top,!0),le(me.z6.Left,!0),le(me.z6.Right,!0),le(me.z6.Bottom,!0)))));const it=`{ "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 nn=["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 hn(Fe){return console.log("shapeName:",Fe),nn.indexOf(Fe)>=0}var Tt=new me.YI(Bt.current,{maxSelectionCount:1,linkTemplate:tt(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:tt(me.uz,"Link",{locationSpot:me.z6.Center},tt(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tt(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),tt(me.bn,{isPanelMain:!0,strokeWidth:2}),tt(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(Fe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Fe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(Fe){var fe;const st=Fe.subject.part;var qe=(fe=document.activeElement)==null?void 0:fe.value;typeof qe=="string"&&qe.trim()===""&&xe.current.model.commit(function(It){It.set(st.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),Tt.nodeTemplate=tt(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),tt(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),tt(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=tt(me.s_,"Grid",tt(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(me.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 wn=()=>De(this,null,function*(){var tt=xe.current.makeImage();const Xt=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tt.src}});Oe({src:Xt.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{Vt()},500),$t(Kt+1),()=>{xe.current=null}),[]),pe.createElement("div",{ref:dn,className:Ft.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Ge.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Kt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(et.Z,null,pe.createElement(gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(gt.Z,{onClick:()=>{var tt,Xt,Cn=xe.current.selection.first();if(Ft.current=!Ft.current,document.activeElement&&Cn){let na=(Xt=(tt=document.activeElement)==null?void 0:tt.value)==null?void 0:Xt.trim();typeof na=="string"&&xe.current.model.commit(function(On){On.set(Cn.data,"text",na||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}$t(Kt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:Bt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:St,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Pe.ZP,{size:"large",onClick:wn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ot=He,se=oe(5112),he=oe(5871);const rt=se.ZP.Group,Ve={margin:"0 8px"};var Se=({callback:Le,onCancel:Oe})=>{function xe(St){Le(St)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Ve},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Ve},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(he.Z,null)),te.createElement("span",{style:Ve},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(he.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Ve},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(rt,null,te.createElement(se.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(se.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(se.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(se.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:Oe},"\u53D6\u6D88")))},We=oe(78673),vt=oe(80727),ut=oe.n(vt),nt=(0,te.forwardRef)(({use3d:Le,width:Oe,height:xe,callback:St,showSaveButton:Bt},Ft)=>{const dn=(0,te.useRef)(),Kt=(0,te.useRef)(),[$t,Vt]=(0,te.useState)(!1),wn=(0,te.useRef)({id:dn,appName:"graphing",width:Oe||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,te.useEffect)(()=>{Kt.current=new(ut())(wn.current,!0),window.onload=function(){Kt.current.inject("applet_container")}},[]);const tt=()=>{var Xt=window.ggbApplet.getPNGBase64(1,!0,72);return St&&St(Xt),Xt};return(0,te.useEffect)(()=>{wn.current.appName=$t?"3D":"graphing",Kt.current.inject("applet_container")},[$t]),(0,te.useEffect)(()=>{Vt(Le)},[Le]),(0,te.useImperativeHandle)(Ft,()=>({getImgData:tt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dn}),te.createElement(et.Z,{align:"middle"},te.createElement(gt.Z,{flex:1},te.createElement(We.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:$t,onChange:Xt=>Vt(Xt)})),te.createElement(gt.Z,null,te.createElement(Pe.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ct=oe(41588),mt=oe(1012),At=oe(8591);const Dt="link",Mt="upload-image",Wt="add-flowchart",Rt="draw-image",qt="add-flowchart",Ht="code-block",sn="add-table",Pn="------------",vn={default:Pn,left:`:${Pn}`,center:`:${Pn}:`,right:`${Pn}:`};var kn=oe(58856),jn=(Le,Oe,xe)=>new Promise((St,Bt)=>{var Ft=$t=>{try{Kt(xe.next($t))}catch(Vt){Bt(Vt)}},dn=$t=>{try{Kt(xe.throw($t))}catch(Vt){Bt(Vt)}},Kt=$t=>$t.done?St($t.value):Promise.resolve($t.value).then(Ft,dn);Kt((xe=xe.apply(Le,Oe)).next())});function En(){}let rn=0;const An=1e4,Tn="\u2581",Ut="@\u2581\u2581@",Sn="@\u2581@",Vn=`
**\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`,ta=["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 Wn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const Mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qn={[Mn+"-B"]:"bold",[Mn+"-I"]:"italic"},Qt={[Dt]:"\u6DFB\u52A0\u94FE\u63A5",[Ht]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[Wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qn=({defaultValue:Le="",onChange:Oe,width:xe="100%",height:St=400,miniToolbar:Bt=!1,isFocus:Ft=!1,watch:dn,insertTemp:Kt,mode:$t="markdown",id:Vt="markdown-editor-id",showResizeBar:wn=!1,noStorage:tt=!1,showNullButton:Xt=!1,showNullProgramButton:Cn=!1,hidetoolBar:na=!1,fullScreen:On=!1,onBlur:yn,onCMBeforeChange:la,onFullScreen:ia,className:ca="",disablePaste:ya=!1,disabled:Sa=!1,disabledFill:Xn=!1,placeholder:ha="",values:Ne="",extraUse:ze})=>{const[le,it]=(0,te.useState)(null),[nn,hn]=(0,te.useState)(Le),[Tt,Fe]=(0,te.useState)(dn),[fe,st]=(0,te.useState)(On),[qe,It]=(0,te.useState)(""),[kt,en]=(0,te.useState)(0),[bt,an]=(0,te.useState)(St),[cn,un]=(0,te.useState)(!1),Fn=(0,te.useRef)((0,mt.Z)()),Dn=(0,te.useRef)(!1),Nn=(0,te.useRef)(),[_n,zn]=(0,te.useState)(0),[xn,ln]=(0,te.useState)(0),on=(0,te.useRef)(),zt=(0,te.useRef)(),Rn=(0,te.useRef)(),jt=(0,te.useRef)(),Ct=()=>jn(void 0,null,function*(){var _t;const ft=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Fn.current}});(_t=ft==null?void 0:ft.attachments)!=null&&_t.length&&(console.log("cm:",le,on),ft.attachments.map(Et=>{Et.content_type.indexOf("image")>-1?le.replaceSelection(`![,](/api/attachments/${Et.id}?type=${Et.content_type})`):Et.content_type.indexOf("video")>-1?le.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Et.content_type.indexOf("pdf")>-1?le.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Et.id}?type=${Et.content_type}&disposition=inline" target="_blank">${Et.name}</a>`):le.replaceSelection(`[${Et.name}](${ENV.API_SERVER}/api/attachments/${Et.id}?type=${Et.content_type})`)}))});(0,te.useEffect)(()=>{const _t=window.scrollY||window.pageYOffset;hn(Ne),le==null||le.setValue(Ne),window.scrollTo(0,_t)},[Ne]),(0,te.useEffect)(()=>{ia==null||ia(fe)},[fe]),(0,te.useEffect)(()=>{if(on.current){let _t=function(Et,Nt){var mn;if(ya){Nt.preventDefault();return}const $n=Nt.clipboardData;if($n){const Kn=$n.types.toString(),In=$n.items;if(Kn==="Files"||$n.types.indexOf("Files")>-1){if(Nt.preventDefault(),$t=="stex")return;try{let Hn=In[1];((mn=In[0])==null?void 0:mn.kind)==="file"&&(Hn=In[0]);const Zn=Hn.getAsFile(),ga=Zn.name.split(".").pop();(0,Ce.I)(Zn,Un=>{var fa,Pa,pa;Un.id?((fa=Zn==null?void 0:Zn.type)==null?void 0:fa.indexOf("image"))>-1?ft.replaceSelection(`<img width="100%" src="/api/attachments/${Un.id}?type=${Un.content_type})" alt="" />`):((Pa=Zn==null?void 0:Zn.type)==null?void 0:Pa.indexOf("video"))>-1?ft.replaceSelection(`<video width="100%" controls src="/api/attachments/${Un.id}"></video>`):((pa=Zn==null?void 0:Zn.type)==null?void 0:pa.indexOf("pdf"))>-1?ft.replaceSelection(`<a href="/api/attachments/${Un.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):ta.includes(ga)?ft.replaceSelection(`<a href="/api/attachments/${Un.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):ft.replaceSelection(`[${Zn.name}](/api/attachments/${Un.id}?type=${Un.content_type})`):(Un==null?void 0:Un.status)===401&&(At.ZP.warning((Un==null?void 0:Un.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){At.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ft=Ke().fromTextArea(on.current,{mode:$t,lineNumbers:!Bt,lineWrapping:!0,value:Le,autoCloseTags:!Cn,autoCloseBrackets:!0});return ft.on("keyup",function(Et,Nt){Nt.keyCode===8&&(Et.getValue()==""?ft.setOption("placeholder",ha):ft.setOption("placeholder",null))}),ft.on("keydown",function(Et,Nt){if(Nt.keyCode===8){var mn=Yt(Et);mn&&Nt.preventDefault()}}),Ft&&ft.focus(),ft.on("paste",_t),ft.on("dragleave",function(Et,Nt){zt.current.classList.remove("mouse-hover-md")}),Sa&&ft.on("beforeChange",function(Et,Nt){(Nt.origin==="paste"||Nt.origin==="+input")&&Nt.cancel()}),it(ft),()=>{ft.off("paste",_t)}}},[]);const tn=(0,te.useCallback)(()=>{if(zt.current)try{}catch(_t){console.log(_t,"---- to set md editor body height")}},[bt,zt,fe]);(0,te.useEffect)(()=>{function _t(){let ft=new Ze.Z(Et=>{for(let Nt of Et)(Nt.target.offsetHeight>0||Nt.target.offsetWidth>0)&&(tn(),le.setSize("100%","100%"),le.refresh())});return ft.observe(on.current.parentElement),ft}if(le){const ft=_t();return()=>{var Et,Nt;(Et=on.current)!=null&&Et.parentElement&&ft.unobserve((Nt=on.current)==null?void 0:Nt.parentElement)}}},[le,tn]),(0,te.useEffect)(()=>{if(le){let _t=[];for(const[ft,Et]of Object.entries(Qn)){let Nt={[ft]:()=>{ea(Et)}};_t.push(Nt),le.addKeyMap(Nt)}return Nn.current=setInterval(()=>{Dn.current&&Ct()},4e3),()=>{clearInterval(Nn.current);for(let ft of _t)le.removeKeyMap(ft)}}},[le]),(0,te.useEffect)(()=>{On!==fe&&st(On)},[On]),(0,kn.Z)(()=>{if(!tt&&kt>0){let _t=new Date().getTime(),ft=window.sessionStorage.getItem(Vt);_t>=kt+An&&(!ft||ft!==nn)&&(window.sessionStorage.setItem(Vt,nn),un(!0))}},An),(0,te.useEffect)(()=>{Fe(dn)},[le,dn]),(0,te.useEffect)(()=>{le&&Ft&&le.focus()},[le,Ft]),(0,te.useEffect)(()=>{if(Tt&&le){let _t=function(Et){let Nt=Et.target;if(jt.current){let mn=Nt.scrollTop/Nt.scrollHeight;jt.current.scrollTop=jt.current.scrollHeight*mn}};const ft=le.getScrollerElement();return ft.addEventListener("scroll",_t),()=>{ft.removeEventListener("scroll",_t)}}},[le,Tt]),(0,te.useEffect)(()=>{if(le&&la){let _t=function(ft,Et){la(ft,Et)};return le.on("beforeChange",_t),()=>{le.off("beforeChange",_t)}}},[le,la]),(0,te.useEffect)(()=>{if(le&&yn){let _t=function(){yn(le.getValue())};return le.on("blur",_t),()=>{le.off("blur",_t)}}},[le,yn]);function Yt(_t,ft){var Et=_t.getDoc(),Nt=Et.getCursor(),mn=Et.getLine(Nt.line),$n=mn.charAt(Nt.ch-1),Kn=mn.lastIndexOf("@\u2581@",Nt.ch),In=mn.lastIndexOf("@\u2581\u2581@",Nt.ch),Hn=Kn>In?Kn:In,Zn=Kn>In?3:4;if(Ut.indexOf($n)===-1)return null;if(console.log("change1:",ft,_t,mn,Nt,Hn,Kn,In,$n),Hn>=0&&Nt.ch-Hn<5){var ga=Hn+Zn;return Et.replaceRange("",{line:Nt.line,ch:Hn},{line:Nt.line,ch:ga}),{line:Nt.line,ch:ga}}return null}(0,te.useEffect)(()=>{if(le){let _t=function(ft,Et){const Nt=ft.getValue();hn(Nt),en(new Date().getTime()),ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Oe&&(Cn?Oe(Nt,Jn(Nt)):Oe(Nt))};return le.on("change",_t),()=>{le.off("change",_t)}}},[le,Oe]),(0,te.useEffect)(()=>{if(le)if(Le==null)le.setValue(""),hn("");else{const _t=window.scrollY||window.pageYOffset;Le!==le.getValue()&&(le.setValue(Le),hn(Le),le.setCursor(Sa?1:le.lineCount(),0),window.scrollTo(0,_t))}},[le,Le]);const ea=(0,te.useCallback)(_t=>{const ft=le.getCursor(),Et=le.getSelection();let Nt=Et.split(`
`);switch(_t){case"bold":return le.replaceSelection("**"+Et+"**"),Et===""&&le.setCursor(ft.line,ft.ch+2),le.focus();case"italic":return le.replaceSelection("*"+Et+"*"),Et===""&&le.setCursor(ft.line,ft.ch+1),le.focus();case"code":return le.replaceSelection("`"+Et+"`"),Et===""&&le.setCursor(ft.line,ft.ch+1),le.focus();case"inline-latex":return It("inline-latex"),le.focus();case"latex":return le.replaceSelection("```latex\n"+Et+"\n```"),le.setCursor(ft.line+1,Et.length+1),le.focus();case"line-break":return le.replaceSelection(`<br/>
`),le.focus();case"list-ul":return Et===""?le.replaceSelection("- "+Et):le.replaceSelection(Nt.map(mn=>mn===""?"":`- ${mn}`).join(`
`)),le.focus();case"list-ol":return Et===""?le.replaceSelection("1. "+Et):le.replaceSelection(Nt.map((mn,$n)=>mn===""?"":`${$n+1}. ${mn}`).join(`
`)),le.focus();case"add-null-ch":return Et===""&&le.setCursor(ft.line,ft.ch),le.replaceSelection(Tn),le.focus();case"add-signal":return Et===""&&le.setCursor(ft.line,ft.ch),le.replaceSelection(Sn),le.focus();case"add-multiple":return Et===""&&le.setCursor(ft.line,ft.ch),le.replaceSelection(Ut),le.focus();case"inster-template-1":return Et===""&&le.setCursor(ft.line,ft.ch),le.replaceSelection(Vn),le.focus();case"eraser":return le.setValue(""),le.focus();case"trigger-watch":return Fe(!Tt),le.focus();case"trigger-full-screen":return st(!fe),le.focus();case Dt:It(Dt);return;case Ht:It(Ht);return;case Mt:It(Mt);return;case Rt:It(Rt);return;case"maths-latex":It("maths-latex");return;case Wt:It(Wt);return;case sn:It(sn);return;default:throw new Error}},[le,Tt,fe]),bn=(0,te.useCallback)((_t,ft)=>{var Et,Nt,mn,$n,Kn,In;switch(It(""),qe){case Dt:const{title:fa,link:Pa}=_t;return le.replaceSelection(`[${fa}](${Pa})`),le.focus();case Ht:const{language:pa,content:_a}=_t;return le.replaceSelection(["```"+pa,_a,"```"].join(`
`)),le.focus();case"maths-latex":for(var Hn=atob(_t),Zn=new Uint8Array(Hn.length),ga=0;ga<Hn.length;ga++)Zn[ga]=Hn.charCodeAt(ga);var Un=new Blob([Zn],{type:"image/png"});(0,Ce.I)(Un,aa=>{aa.id?le.replaceSelection(`![,](/api/attachments/${aa.id}?type=${aa.content_type})`):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":le.replaceSelection("`$$"+_t+"$$`");break;case Mt:case Rt:case qt:const{src:sa,alt:wa}=_t,Gn=ft,va=(mn=(Nt=(Et=Gn==null?void 0:Gn.name)==null?void 0:Et.split("."))==null?void 0:Nt.pop)==null?void 0:mn.call(Nt);return(($n=Gn==null?void 0:Gn.type)==null?void 0:$n.indexOf("image"))>-1||!(Gn!=null&&Gn.type)?Gn.align||Gn.width?le.replaceSelection(`<p style="text-align:${Gn.align||"initial"}"><img width="${Gn.width?Gn.width+"%":"initial"}" src="${sa}" alt="${wa||""}" /></p>`):le.replaceSelection(`<img width="100%" src="${sa}" alt="${wa||""}" />`):((Kn=Gn==null?void 0:Gn.type)==null?void 0:Kn.indexOf("video"))>-1?le.replaceSelection(`<video width="100%" controls src="${sa}"></video>`):((In=Gn==null?void 0:Gn.type)==null?void 0:In.indexOf("pdf"))>-1?le.replaceSelection(`<a href="${sa}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):ta.includes(va)?le.replaceSelection(`<a href="${sa}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):le.replaceSelection(`[${Gn.name}](${sa})`),le.focus();case sn:const{row:Oa,col:ma,align:ba}=_t;let da=`
`;for(let aa=0;aa<Oa;aa++){let xa=[],Ba=[];for(let $a=0;$a<ma;$a++)aa===1&&Ba.push(vn[ba]),xa.push(" ");aa===1&&(da+=`| ${Ba.join(" | ")} |
`),da+=`| ${xa.join(ma===1?"":" | ")} |
`}return le.replaceSelection(da+`
`),le.focus();default:throw new Error}},[le,qe]),Ln=(0,te.useMemo)(()=>{switch(qe){case Dt:return te.createElement(Ot,{callback:bn,onCancel:pn});case Ht:return te.createElement(Zt.Z,{callback:bn,onCancel:pn});case Mt:return te.createElement(Ce.Z,{callback:bn,onCancel:pn});case Wt:return te.createElement(ot,{callback:bn,onCancel:pn});case sn:return te.createElement(Se,{callback:bn,onCancel:pn});case"maths-latex":return te.createElement(nt,{showSaveButton:!0,callback:bn});case"inline-latex":return te.createElement(ct.Z,{showSaveButton:!0,callback:bn});default:return null}},[qe]);function pn(){It("")}(0,te.useEffect)(()=>{if(Rn.current){let _t=function(Kn){mn=!0,$n=Kn.pageY},ft=function(){mn=!1},Et=function(Kn){if(mn){let In=Kn.pageY-$n;In<0&&(In=0),In>300&&(In=300);let Hn=St+In+"px";an(Hn)}},Nt=Rn.current,mn=!1,$n=0;return Nt.addEventListener("mousedown",_t),document.addEventListener("mousemove",Et),document.addEventListener("mouseup",ft),()=>{Nt.removeEventListener("mousedown",_t),document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",ft)}}},[le,Rn]),(0,te.useEffect)(()=>{an(St)},[St]);const Jt=Wn(xe),gn=Wn(bt),Bn={width:Jt,height:gn},Yn=(0,te.useMemo)(()=>{if(kt){let _t=new Date(kt),ft=_t.getHours(),Et=_t.getMinutes(),Nt=_t.getSeconds();return ft=ft<10?"0"+ft:ft,Et=Et<10?"0"+Et:Et,Nt=Nt<10?"0"+Nt:Nt,`${ft}:${Et}:${Nt}`}return 0},[kt]),Jn=_t=>{const ft=[];if(Cn){let Et=-1;_t=_t.replace(/(@▁▁@|@▁@)/g,function(Nt,mn,$n){ft.push({multiLine:Nt!==Sn})})}return ft};function ua(){window.sessionStorage.removeItem(Vt),un(!1),en(0)}function Ea(){un(!1),en(0),le.setValue(window.sessionStorage.getItem(Vt))}(0,te.useEffect)(()=>{Qt[qe]&&qe!==Rt&&qe!==Wt&&setTimeout(()=>{const _t=document.getElementsByClassName("markdown-popup-form")[0],ft=window.innerWidth/2-_t.offsetWidth/2,Et=window.innerHeight/2-_t.offsetHeight/2;zn(ft),ln(Et)},0)},[qe]);const Fa=_t=>{_t.preventDefault();const ft=_t.clientX-_n,Et=_t.clientY-xn;document.body.onmousemove=Nt=>{let mn=Nt.clientX-ft,$n=Nt.clientY-Et;const Kn=document.getElementsByClassName("markdown-popup-form")[0],In=window.innerWidth-Kn.offsetWidth,Hn=window.innerHeight-Kn.offsetHeight;mn=Math.max(0,Math.min(mn,In)),$n=Math.max(0,Math.min($n,Hn)),Na(Nt.clientX,Nt.clientY,ft,Et)&&(zn(mn),ln($n))},document.body.onmouseup=function(){document.body.onmousemove=null}},Na=(_t,ft,Et,Nt)=>{const mn=document.body.clientHeight,$n=document.body.clientWidth;return _t<20&&Et>_t||_t>$n-20&&Et<_t||ft<20&&Nt>ft||ft>mn-20&&Nt<ft?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:zt},te.createElement("div",{className:`markdown-editor-container ${ca} ${Tt?"on-preview":""} ${Bt?"mini":""} ${fe?"full-screen":""}`,style:Bn},te.createElement(ge,{insertTemp:Kt,watch:Tt,fullScreen:fe,showNullButton:Xt,showNullProgramButton:Cn,onActionCallback:ea,hidetoolBar:na,extraUse:ze}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:on,placeholder:ha})),Tt?te.createElement("div",{ref:jt,className:"preview-container"},$t==="stex"&&te.createElement(Re,{value:nn}),$t!=="stex"&&te.createElement(Te.Z,{disabledFill:Xn,showProgramFill:Cn,value:nn})):null))),wn?te.createElement("a",{ref:Rn,className:"editor-resize"}):null,qe===Rt&&te.createElement(Pt,{callback:bn,onCancel:pn}),qe===Wt&&te.createElement(ot,{callback:bn,onCancel:pn}),te.createElement(ve.Z,null,Qt[qe]&&qe!==Rt&&qe!==Wt?te.createElement(Ge.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:_n,top:xn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Fa},Qt[qe]),open:!0,onCancel:pn,footer:null,destroyOnClose:!0,width:qe===Wt?"1200px":null,height:qe===Wt?"80vh":null,className:"markdown-popup-form"},Ln):null))}},28451:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return ie},I:function(){return ve}});var te=oe(78241),ue=oe(8591),Ke=oe(92832),Ze=oe(81327),ye=oe(5871),we=oe(5112),de=oe(3113),Xe=oe(77903),Me=oe(59301),je=oe(24065),Te=oe(59301),Re=Object.defineProperty,Ee=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ce,$e,Pe)=>$e in ce?Re(ce,$e,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[$e]=Pe,x=(ce,$e)=>{for(var Pe in $e||($e={}))y.call($e,Pe)&&b(ce,Pe,$e[Pe]);if(a)for(var Pe of a($e))E.call($e,Pe)&&b(ce,Pe,$e[Pe]);return ce},z=(ce,$e)=>Ee(ce,ae($e));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:ce,onCancel:$e})=>{const[Pe]=ee();let Qe=(0,Me.useRef)();function ht(Ue){Qe.current.width=Pe.getFieldValue("width"),Qe.current.align=Pe.getFieldValue("align"),ce(Ue,Qe.current)}function pt(Ue,Ye){if(Ue.status===-1){ue.ZP.error(Ue.message);return}Pe.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:Ye.type})}function Be(Ue){let Ye=Ue.target.files[0];Qe.current=Ye,ve(Ye,pt)}return Te.createElement(te.default,z(x({form:Pe},re),{className:"upload-image-panel",onFinish:ht,style:{width:470,overflow:"hidden"}}),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Ke.default,{style:ne})),Te.createElement(ge,{onFileChange:Be}))),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Ke.default,{style:{width:264}})),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Ze.Z,null,Te.createElement(te.default.Item,{name:"width",style:{margin:0}},Te.createElement(ye.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(de.ZP,{type:"default",onClick:$e},"\u53D6\u6D88"))))};function ge({onFileChange:ce}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:ce}))}function ve(ce,$e){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,je.bg)())throw ue.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Pe=new FormData;Pe.append("editormd-image-file",ce),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var Qe=new window.XMLHttpRequest;Qe.withCredentials=!0,Qe.addEventListener("load",function(ht){$e(JSON.parse(ht.target.responseText),ce)},!1),Qe.addEventListener("error",function(ht){console.error(ht)},!1),Qe.open("POST",`${Xe.KI}/api/attachments.json`),Qe.send(Pe)}},79346:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Ke}});var te=oe(59301),ue=oe(4676);class Ke extends te.Component{constructor(ye){super(ye);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,ue.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58856:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return ue}});var te=oe(59301);function ue(Ke,Ze){const ye=(0,te.useRef)();(0,te.useEffect)(()=>{ye.current=Ke}),(0,te.useEffect)(()=>{function we(){ye.current()}if(Ze!==null){let de=setInterval(we,Ze);return()=>clearInterval(de)}},[Ze])}},4359:function(Ie,lt,oe){"use strict";oe.r(lt),oe.d(lt,{default:function(){return ha}});var te=oe(59301),ue=oe(89070),Ke=oe(20834),Ze=oe(44e3),ye=oe(78241),we=oe(8591),de=oe(28103),Xe=oe(66104),Me=oe(95237),je=oe(43604),Te=oe(6848),Re=oe(92832),Ee=oe(3113),ae=oe(32134),a=oe(31417),y=oe(43418),E=oe(24905),b=oe(5871),x=oe(94941),z=oe(12290),ee=oe(85149),ne={flex_box_center:"flex_box_center___T9vjl",flex_space_between:"flex_space_between___zZP1J",flex_box_vertical_center:"flex_box_vertical_center___vbIhw",flex_box_center_end:"flex_box_center_end___SjRau",flex_box_column:"flex_box_column___Ic_zi",wrap:"wrap___GtXAk",modal:"modal___mDuC3",titleWrap:"titleWrap___EzCZh",required:"required___KgfdI",title:"title___TMgfc",colorGray:"colorGray___xNVTs",choiceWrap:"choiceWrap___Rv9ug",answer:"answer___hVpls",activeAnswer:"activeAnswer___oJoq9",deleteIcon:"deleteIcon___bkn4b",addIcon:"addIcon___S2pDY",editorWrap:"editorWrap___BOx_r",htmlWrap:"htmlWrap___ERVlQ",radio:"radio___lrt5b",color333:"color333___pz3OT",color999:"color999___jtQ7e",questionType:"questionType___qUnUb",questionChoices:"questionChoices___n36qp"},re=Object.defineProperty,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ce=(Ne,ze,le)=>ze in Ne?re(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,$e=(Ne,ze)=>{for(var le in ze||(ze={}))ge.call(ze,le)&&ce(Ne,le,ze[le]);if(ie)for(var le of ie(ze))ve.call(ze,le)&&ce(Ne,le,ze[le]);return Ne},Pe=(Ne,ze)=>{var le={};for(var it in Ne)ge.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&ie)for(var it of ie(Ne))ze.indexOf(it)<0&&ve.call(Ne,it)&&(le[it]=Ne[it]);return le},Qe=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const ht=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pt=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,onRef:Fe=()=>{},editData:fe}=le,st=Pe(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[qe,It]=(0,te.useState)([]),[kt,en]=(0,te.useState)(),[bt,an]=(0,te.useState)([]),[cn,un]=(0,te.useState)(""),[Fn,Dn]=(0,te.useState)(5),[Nn,_n]=(0,te.useState)(!1),zn=(0,ue.useParams)();(0,te.useEffect)(()=>{It(["","","",""])},[]),(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){_n(!0);return}un(fe==null?void 0:fe.question_title),Dn(parseInt(fe==null?void 0:fe.question_score)),It(fe==null?void 0:fe.question_choices.map(Ct=>Ct.choice_text));const jt=[];fe==null||fe.standard_answer.map((Ct,tn)=>{jt.push(Ct-1)}),an(jt)},[fe]),(0,te.useImperativeHandle)(ze,()=>({onSave:xn,isEdit:Nn}));const xn=()=>Qe(void 0,null,function*(){if(!cn)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const jt=qe.findIndex(Yt=>!Yt);if(jt>-1)return we.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${ht[jt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!bt.length)return we.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(bt.length<1)return we.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Ct=qe.map((Yt,ea)=>({choice_text:Yt,is_answer:bt.includes(ea)?ea+1:0}));let tn;fe.question_id?tn=yield Tt({type:"exercise/editExerciseQuestion",payload:{id:fe.question_id,question_title:cn,question_type:1,question_score:"5.0",question_choices:Ct.map(Yt=>Yt.choice_text),standard_answers:Ct.filter(Yt=>Yt.is_answer).map(Yt=>Yt.is_answer)}}):tn=yield Tt({type:"exercise/addExerciseQuestion",payload:{categoryId:zn.categoryId,question_title:cn,question_type:1,question_score:"5.0",question_choices:Ct.map(Yt=>Yt.choice_text),standard_answers:Ct.filter(Yt=>Yt.is_answer).map(Yt=>Yt.is_answer)}}),tn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),_n(!1),Tt({type:"exercise/editExercise",payload:$e({},zn)}))}),ln=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],on=jt=>Qe(void 0,null,function*(){switch(jt.id){case"del":let Ct;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Qe(this,null,function*(){yield(0,x.Fl)({id:fe.question_id}),Tt({type:"exercise/editExercise",payload:$e({},zn)})})}});break;case"up":case"down":yield Tt({type:"exercise/exeriseMoveUpDown",payload:{id:fe.question_id,opr:jt.id}}),Tt({type:"exercise/editExercise",payload:$e({},zn)});break;case"edit":_n(!0);break}}),zt=()=>{var jt;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u591A\u9009\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&ln.map(function(Ct,tn){return Ct.id==="up"&&fe.key===1||Ct.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:tn,placement:"bottom",title:Ct.name},te.createElement("span",{onClick:()=>on(Ct),className:Ct.icon}))})),te.createElement("div",{className:"mt5"},te.createElement(ee.Z,{value:fe.question_title})),te.createElement("div",{className:ne.questionChoices},(jt=fe==null?void 0:fe.question_choices)==null?void 0:jt.map(function(Ct,tn){return te.createElement(Me.Z,null,te.createElement(je.Z,null,te.createElement(E.default,{key:tn,checked:fe.standard_answer.includes(tn+1),disabled:!0},ht[tn],".")),te.createElement(je.Z,{flex:"1"},te.createElement("span",{className:"c-black font14"},te.createElement(ee.Z,{value:Ct.choice_text}))))})))},Rn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:cn,onChange:jt=>un(jt)}),qe.map((jt,Ct)=>te.createElement("div",{className:ne.choiceWrap,key:Ct},te.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},te.createElement("div",{className:`${ne.answer} ${bt.includes(Ct)?ne.activeAnswer:""}`,onClick:()=>{bt.includes(Ct)?an(bt.filter(tn=>tn!==Ct)):an([...bt,Ct])}},ht[Ct])),te.createElement("div",{className:ne.editorWrap},kt===Ct?te.createElement(z.Z,{id:`single-question-option-${Ct}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:jt,onChange:tn=>{qe[Ct]=tn,It(qe)}}):te.createElement("div",{className:ne.htmlWrap,onClick:()=>en(Ct)},te.createElement(ee.Z,{value:jt}))),Ct>1&&te.createElement(Te.Z,{title:"\u5220\u9664"},te.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>It(qe.filter((tn,Yt)=>Yt!==Ct))})),Ct<7&&Ct===qe.length-1&&te.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},te.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>It([...qe,""])})))),te.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:Fn,max:1e4,min:-1,onChange:jt=>{Dn(jt)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(Ee.ZP,{type:"default",onClick:()=>_n(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>xn()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!Nn&&zt(),Nn&&Rn())};var Be=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(pt)),Ue=oe(5112),Ye=Object.defineProperty,Je=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Gt=(Ne,ze,le)=>ze in Ne?Ye(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,Ot=(Ne,ze)=>{for(var le in ze||(ze={}))dt.call(ze,le)&&Gt(Ne,le,ze[le]);if(Je)for(var le of Je(ze))Lt.call(ze,le)&&Gt(Ne,le,ze[le]);return Ne},Zt=(Ne,ze)=>{var le={};for(var it in Ne)dt.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&Je)for(var it of Je(Ne))ze.indexOf(it)<0&&Lt.call(Ne,it)&&(le[it]=Ne[it]);return le},Ce=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const Ge=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],et=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,onRef:Fe=()=>{},editData:fe}=le,st=Zt(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[qe,It]=(0,te.useState)([]),[kt,en]=(0,te.useState)(),[bt,an]=(0,te.useState)([]),[cn,un]=(0,te.useState)(""),[Fn,Dn]=(0,te.useState)(0),[Nn,_n]=(0,te.useState)(!1),zn=(0,ue.useParams)();(0,te.useEffect)(()=>{It(["","","",""])},[]),(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){_n(!0);return}un(fe==null?void 0:fe.question_title),Dn(parseInt(fe==null?void 0:fe.question_score)),It(fe==null?void 0:fe.question_choices.map(Ct=>Ct.choice_text));const jt=[];fe==null||fe.standard_answer.map((Ct,tn)=>{jt.push(Ct-1)}),an(jt)},[fe]),(0,te.useImperativeHandle)(ze,()=>({onSave:xn,isEdit:Nn}));const xn=()=>Ce(void 0,null,function*(){if(!cn)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const jt=qe.findIndex(Yt=>!Yt);if(jt>-1)return we.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ge[jt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!bt.length)return we.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(bt.length<1)return we.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Ct=qe.map((Yt,ea)=>({choice_text:Yt,is_answer:bt.includes(ea)?ea+1:0}));let tn;fe.question_id?tn=yield(0,a.Kc)({id:fe.question_id,question_title:cn,question_type:1,question_score:Fn,question_choices:Ct.map(Yt=>Yt.choice_text),standard_answers:Ct.filter(Yt=>Yt.is_answer).map(Yt=>Yt.is_answer)}):tn=yield(0,a.iV)({exercise_bank_id:zn.topicId,question_title:cn,question_type:1,question_score:"5.0",question_choices:Ct.map(Yt=>Yt.choice_text),standard_answers:Ct.filter(Yt=>Yt.is_answer).map(Yt=>Yt.is_answer)}),tn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),_n(!1)),yield Tt({type:"polls/getExerciseBanks",payload:Ot({},zn)})}),ln=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],on=jt=>Ce(void 0,null,function*(){switch(jt.id){case"del":let Ct;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ce(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Tt({type:"polls/getExerciseBanks",payload:Ot({},zn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:jt.id}),Tt({type:"polls/getExerciseBanks",payload:Ot({},zn)});break;case"edit":_n(!0);break}}),zt=()=>{var jt;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u5355\u9009\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&ln.map(function(Ct,tn){return Ct.id==="up"&&fe.key===1||Ct.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:tn,placement:"bottom",title:Ct.name},te.createElement("span",{onClick:()=>on(Ct),className:Ct.icon}))})),te.createElement("div",{className:"mt5"},te.createElement(ee.Z,{value:fe.question_title})),te.createElement("div",{className:ne.questionChoices},(jt=fe==null?void 0:fe.question_choices)==null?void 0:jt.map(function(Ct,tn){return te.createElement(Me.Z,null,te.createElement(je.Z,null,te.createElement(Ue.ZP,{key:tn,checked:fe.standard_answer.includes(tn+1),disabled:!0},Ge[tn],".")),te.createElement(je.Z,{flex:"1"},te.createElement("span",{className:"c-black font14"},te.createElement(ee.Z,{value:Ct.choice_text}))))})))},Rn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:cn,onChange:jt=>un(jt)}),qe.map((jt,Ct)=>te.createElement("div",{className:ne.choiceWrap,key:Ct},te.createElement(Te.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},te.createElement("div",{className:`${ne.answer} ${bt.includes(Ct)?ne.activeAnswer:""}`,onClick:()=>{bt.includes(Ct)?an(bt.filter(tn=>tn!==Ct)):an([...bt,Ct])}},Ge[Ct])),te.createElement("div",{className:ne.editorWrap},kt===Ct?te.createElement(z.Z,{id:`single-question-option-${Ct}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:jt,onChange:tn=>{qe[Ct]=tn,It(qe)}}):te.createElement("div",{className:ne.htmlWrap,onClick:()=>en(Ct)},te.createElement(ee.Z,{value:jt}))),Ct>1&&te.createElement(Te.Z,{title:"\u5220\u9664"},te.createElement("i",{className:`${ne.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>It(qe.filter((tn,Yt)=>Yt!==Ct))})),Ct<7&&Ct===qe.length-1&&te.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},te.createElement("i",{className:`${ne.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>It([...qe,""])})))),te.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:Fn,max:1e4,min:-1,onChange:jt=>{Dn(jt)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(Ee.ZP,{type:"default",onClick:()=>_n(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>xn()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!Nn&&zt(),Nn&&Rn())};var wt=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(et)),at=Object.defineProperty,Pt=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ke=(Ne,ze,le)=>ze in Ne?at(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,xt=(Ne,ze)=>{for(var le in ze||(ze={}))me.call(ze,le)&&ke(Ne,le,ze[le]);if(Pt)for(var le of Pt(ze))_e.call(ze,le)&&ke(Ne,le,ze[le]);return Ne},gt=(Ne,ze)=>{var le={};for(var it in Ne)me.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&Pt)for(var it of Pt(Ne))ze.indexOf(it)<0&&_e.call(Ne,it)&&(le[it]=Ne[it]);return le},Ae=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],pe=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,onRef:Fe=()=>{},editData:fe}=le,st=gt(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[qe,It]=(0,te.useState)(),[kt,en]=(0,te.useState)(""),[bt,an]=(0,te.useState)(!1),[cn,un]=(0,te.useState)(5),Fn=(0,ue.useParams)();(0,te.useEffect)(()=>{if(!(fe!=null&&fe.question_choices)){an(!0);return}en(fe==null?void 0:fe.question_title),un(fe==null?void 0:fe.question_score),It(fe.standard_answer[0]+"")},[fe]),(0,te.useImperativeHandle)(ze,()=>({onSave:Dn,isEdit:bt}));const Dn=()=>Ae(void 0,null,function*(){if(!kt)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!qe)return we.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const ln=[{choice_text:"\u6B63\u786E",is_answer:qe==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:qe==="2"?2:0}];let on;return fe.question_id?on=yield(0,a.Kc)({id:fe.question_id,question_title:kt,question_type:2,question_score:cn,question_choices:ln.map(zt=>zt.choice_text),standard_answers:ln.filter(zt=>zt.is_answer).map(zt=>zt.is_answer)}):on=yield(0,a.iV)({exercise_bank_id:Fn.topicId,question_title:kt,question_type:2,question_score:cn,question_choices:ln.map(zt=>zt.choice_text),standard_answers:ln.filter(zt=>zt.is_answer).map(zt=>zt.is_answer)}),on.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),an(!1)),Tt({type:"polls/getExerciseBanks",payload:xt({},Fn)}),{name:kt,choices:ln}}),Nn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],_n=ln=>Ae(void 0,null,function*(){switch(ln.id){case"del":let on;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ae(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Tt({type:"polls/getExerciseBanks",payload:xt({},Fn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:ln.id}),Tt({type:"polls/getExerciseBanks",payload:xt({},Fn)});break;case"edit":an(!0);break}}),zn=()=>{var ln;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&Nn.map(function(on,zt){return on.id==="up"&&fe.key===1||on.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:zt,placement:"bottom",title:on.name},te.createElement("span",{onClick:()=>_n(on),className:on.icon}))})),te.createElement("div",{className:"mt5"},fe.question_title),te.createElement("div",{className:ne.questionChoices},(ln=fe==null?void 0:fe.question_choices)==null?void 0:ln.map(function(on,zt){return te.createElement(Ue.ZP,{key:zt,checked:fe.standard_answer.includes(zt+1),disabled:!0},be[zt],". ",te.createElement("span",{className:"c-black font14"},on.choice_text))})))},xn=()=>te.createElement("aside",null,te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u9898\u5E72\uFF1A")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:kt,onChange:ln=>en(ln)}),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.required},"*"),te.createElement("span",{className:ne.title},"\u7B54\u6848\u9009\u9879\uFF1A",te.createElement("span",{className:ne.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),te.createElement(Ue.ZP.Group,{buttonStyle:"solid",value:qe,onChange:ln=>It(ln.target.value)},te.createElement(Ue.ZP.Button,{value:"1",className:`${ne.radio} mr40`},"\u6B63\u786E"),te.createElement(Ue.ZP.Button,{value:"2",className:ne.radio},"\u9519\u8BEF")),te.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:cn,max:1e4,min:-1,onChange:ln=>{un(ln)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(Ee.ZP,{type:"default",onClick:()=>an(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>Dn()},"\u4FDD\u5B58")));return te.createElement("section",{className:ne.wrap},!bt&&zn(),bt&&xn())};var De=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(pe)),He=oe(65158),ot=oe(10672),se=oe(955),he=Object.defineProperty,rt=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,We=(Ne,ze,le)=>ze in Ne?he(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,vt=(Ne,ze)=>{for(var le in ze||(ze={}))Ve.call(ze,le)&&We(Ne,le,ze[le]);if(rt)for(var le of rt(ze))Se.call(ze,le)&&We(Ne,le,ze[le]);return Ne},ut=(Ne,ze)=>{var le={};for(var it in Ne)Ve.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&rt)for(var it of rt(Ne))ze.indexOf(it)<0&&Se.call(Ne,it)&&(le[it]=Ne[it]);return le},yt=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const nt=null,ct=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,editData:Fe}=le,fe=ut(le,["problemset","globalSetting","loading","dispatch","editData"]);const[st,qe]=(0,te.useState)(""),[It,kt]=(0,te.useState)(""),[en,bt]=(0,te.useState)([]),[an,cn]=(0,te.useState)(""),[un,Fn]=(0,te.useState)(),[Dn,Nn]=(0,te.useState)(!1),[_n,zn]=(0,te.useState)(5),[xn,ln]=(0,te.useState)(!1),on=(0,ue.useParams)();(0,te.useEffect)(()=>{if(!(Fe!=null&&Fe.question_title)){ln(!0);return}qe(Fe==null?void 0:Fe.question_title),Fn(Fe==null?void 0:Fe.is_ordered),zn(Fe==null?void 0:Fe.question_score);const Jt=Fe==null?void 0:Fe.standard_answer.map(gn=>gn.answer_text);bt(Jt)},[it.editData]),(0,te.useEffect)(()=>{Nn(!1)},[xn]),(0,te.useImperativeHandle)(ze,()=>({onSave:zt,isEdit:xn}));const zt=()=>yt(void 0,null,function*(){let Jt=[],gn=!1;if(en.forEach((Yn,Jn)=>{Jt.push({choice_id:Jn+1,answer_text:[]}),Yn.forEach((ua,Ea)=>{Jt[Jn].answer_text.push(ua),(!ua||!(0,se.eR)(ua,1e4))&&(cn(`${Jn}-${Ea}`),we.ZP.info(ua?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),gn=!0)})}),gn)return!1;let Bn;return Fe.question_id?Bn=yield(0,a.Kc)({id:Fe.question_id,question_title:st,question_type:3,question_score:_n,is_ordered:un,standard_answers:Jt}):Bn=yield(0,a.iV)({exercise_bank_id:on.topicId,question_title:st,question_type:3,question_score:_n,is_ordered:un,standard_answers:Jt}),Bn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),ln(!1)),Tt({type:"polls/getExerciseBanks",payload:vt({},on)}),{name:st,analysis:It,standard_answers:Jt,is_ordered:un}}),Rn=(Jt,gn,Bn)=>{const Yn=en.slice();if(gn&&Yn.splice(Jt,gn),Bn&&Dn)for(let Jn=0;Jn<Bn;Jn++)Yn.splice(Jt+Jn,0,[""]);Nn(!0),bt(Yn)},jt=(Jt,gn,Bn)=>{cn("");let Yn=en.slice();Yn[Jt][gn]=Bn,bt(Yn)},Ct=Jt=>{let gn=en.slice();gn[Jt]=[...gn[Jt],""],bt(gn)},tn=(Jt,gn)=>{let Bn=en.slice();if(!Bn[Jt][gn]){Bn[Jt]=Bn[Jt].filter((Yn,Jn)=>Jn!==gn),bt(Bn);return}y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{Bn[Jt]=Bn[Jt].filter((Yn,Jn)=>Jn!==gn),bt(Bn)}})},Yt=Jt=>{y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ne.modal,onOk:()=>{let gn=en.slice();gn=en.filter((Bn,Yn)=>Jt!==Yn),bt(gn)}})},ea=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),te.createElement("div",null,te.createElement(He.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:st,onChange:Jt=>qe(Jt),showNullButton:!0,onPlaceholderChange:Rn})),te.createElement("div",{className:"mt20"},en.map((Jt,gn)=>te.createElement(ot.Z,{key:gn,answers:Jt,index:gn,is_md:!0,activeOptionErrorIndex:an,onAnswerChange:jt,addChildAnswer:Ct,deleteChildAnswer:tn,deleteChildAnswermain:Yt}))),te.createElement("div",{className:"mt20"},en.length>1&&te.createElement("span",null,te.createElement(E.default,{checked:un,onChange:Jt=>Fn(Jt.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),te.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:_n,max:1e4,min:-1,onChange:Jt=>{zn(Jt)}})," \u5206"),te.createElement("aside",{className:"tr"},Fe.question_id&&te.createElement(Ee.ZP,{type:"default",onClick:()=>ln(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>zt()},"\u4FDD\u5B58"))),bn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Ln=Jt=>yt(void 0,null,function*(){switch(Jt.id){case"del":let gn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return yt(this,null,function*(){yield(0,a.x$)({pollsId:Fe.question_id}),Tt({type:"polls/getExerciseBanks",payload:vt({},on)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Fe==null?void 0:Fe.question_id,opr:Jt.id}),Tt({type:"polls/getExerciseBanks",payload:vt({},on)});break;case"edit":ln(!0);break}}),pn=()=>{var Jt;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09"),!Fe.hideAction&&bn.map(function(gn,Bn){return gn.id==="up"&&Fe.key===1||gn.id==="down"&&Fe.key===Fe.len?null:te.createElement(Te.Z,{key:Bn,placement:"bottom",title:gn.name},te.createElement("span",{onClick:()=>Ln(gn),className:gn.icon}))})),te.createElement("div",{className:"mt5"},Fe.question_title),te.createElement("div",{className:ne.questionChoices},(Jt=Fe==null?void 0:Fe.standard_answer)==null?void 0:Jt.map(function(gn,Bn){return te.createElement(Me.Z,null,te.createElement(je.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",gn.choice_id,"\uFF09\uFF1A"),te.createElement(je.Z,{flex:"1"},te.createElement(Re.default,{key:Bn,checked:Fe.standard_answer.includes(Bn),disabled:!0,value:gn.answer_text})))})))};return te.createElement("section",{className:ne.wrap},!xn&&pn(),xn&&ea())};var mt=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(ct)),At=Object.defineProperty,Dt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Rt=(Ne,ze,le)=>ze in Ne?At(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,qt=(Ne,ze)=>{for(var le in ze||(ze={}))Mt.call(ze,le)&&Rt(Ne,le,ze[le]);if(Dt)for(var le of Dt(ze))Wt.call(ze,le)&&Rt(Ne,le,ze[le]);return Ne},Ht=(Ne,ze)=>{var le={};for(var it in Ne)Mt.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&Dt)for(var it of Dt(Ne))ze.indexOf(it)<0&&Wt.call(Ne,it)&&(le[it]=Ne[it]);return le},sn=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const Pn=null,vn=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,onRef:Fe=()=>{},editData:fe}=le,st=Ht(le,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[qe,It]=(0,te.useState)(""),[kt,en]=(0,te.useState)(""),[bt,an]=(0,te.useState)(""),[cn,un]=(0,te.useState)(5),[Fn,Dn]=(0,te.useState)(!1),Nn=(0,ue.useParams)();(0,te.useEffect)(()=>{var zt;if(!(fe!=null&&fe.question_title)){Dn(!0);return}It(fe==null?void 0:fe.question_title),an((zt=fe==null?void 0:fe.standard_answer)==null?void 0:zt[0]),un(fe==null?void 0:fe.question_score)},[it.editData]),(0,te.useImperativeHandle)(ze,()=>({onSave:_n,isEdit:Fn}));const _n=()=>sn(void 0,null,function*(){if(!qe)return we.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let zt;return fe.question_id?zt=yield(0,a.Kc)({id:fe.question_id,question_title:qe,question_type:4,question_score:cn,standard_answers:[bt]}):zt=yield(0,a.iV)({exercise_bank_id:Nn.topicId,question_title:qe,question_type:4,question_score:cn,standard_answers:[bt]}),zt.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),Dn(!1),Tt({type:"polls/getExerciseBanks",payload:qt({},Nn)})),{name:qe,answer_texts:[bt],analysis:kt}}),zn=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),te.createElement(z.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qe,onChange:zt=>It(zt)}),te.createElement("p",{className:ne.titleWrap},te.createElement("span",{className:ne.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),te.createElement(z.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:bt,onChange:zt=>an(zt)}),te.createElement("p",{className:""},"\u5206\u503C\uFF1A",te.createElement(b.Z,{value:cn,max:1e4,min:-1,onChange:zt=>{un(zt)}})," \u5206"),te.createElement("aside",{className:"tr"},fe.question_id&&te.createElement(Ee.ZP,{type:"default",onClick:()=>Dn(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>_n()},"\u4FDD\u5B58"))),xn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],ln=zt=>sn(void 0,null,function*(){switch(zt.id){case"del":let Rn;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return sn(this,null,function*(){yield(0,a.x$)({pollsId:fe.question_id}),Tt({type:"polls/getExerciseBanks",payload:qt({},Nn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:fe==null?void 0:fe.question_id,opr:zt.id}),Tt({type:"polls/getExerciseBanks",payload:qt({},Nn)});break;case"edit":Dn(!0);break}}),on=()=>te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},fe.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",fe.question_score,"\u5206\uFF09"),!fe.hideAction&&xn.map(function(zt,Rn){return zt.id==="up"&&fe.key===1||zt.id==="down"&&fe.key===fe.len?null:te.createElement(Te.Z,{key:Rn,placement:"bottom",title:zt.name},te.createElement("span",{onClick:()=>ln(zt),className:zt.icon}))})),te.createElement("div",{className:"mt5"},fe.question_title),te.createElement("div",{className:ne.questionChoices},te.createElement("p",null,te.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),te.createElement(ee.Z,{value:bt})));return te.createElement("section",{className:ne.wrap},!Fn&&on(),Fn&&zn())};var kn=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(vn)),jn=Object.defineProperty,En=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Tn=(Ne,ze,le)=>ze in Ne?jn(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,Ut=(Ne,ze)=>{for(var le in ze||(ze={}))rn.call(ze,le)&&Tn(Ne,le,ze[le]);if(En)for(var le of En(ze))An.call(ze,le)&&Tn(Ne,le,ze[le]);return Ne},Sn=(Ne,ze)=>{var le={};for(var it in Ne)rn.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&En)for(var it of En(Ne))ze.indexOf(it)<0&&An.call(Ne,it)&&(le[it]=Ne[it]);return le},Vn=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const ta=null,Wn=(Ne,ze)=>{var le=Ne,{problemset:it,globalSetting:nn,loading:hn,dispatch:Tt,editData:Fe}=le,fe=Sn(le,["problemset","globalSetting","loading","dispatch","editData"]);const[st,qe]=(0,te.useState)(""),[It,kt]=(0,te.useState)(""),[en,bt]=(0,te.useState)(""),[an,cn]=(0,te.useState)([]),[un,Fn]=(0,te.useState)(""),[Dn,Nn]=(0,te.useState)(),[_n,zn]=(0,te.useState)(!1),[xn,ln]=(0,te.useState)([]),[on,zt]=(0,te.useState)(!1),Rn=(0,ue.useParams)();(0,te.useEffect)(()=>{var bn;Fe.edit&&zt(!0),qe(Fe.shixun_name),kt(Fe.question_title);const Ln=[];(bn=Fe.shixun)==null||bn.map(pn=>{Ln.push(pn.challenge_score)}),ln(Ln)},[Fe]),(0,te.useEffect)(()=>{zn(!1)},[on]),(0,te.useImperativeHandle)(ze,()=>({onSave:jt,isEdit:on}));const jt=()=>Vn(void 0,null,function*(){let bn=[];if(!1)return!1;let pn;return Fe.question_id?pn=yield(0,a.Kc)({id:Fe.question_id,question_title:It,shixun_name:st,shixun_id:Fe.shixun_id,question_type:5,question_scores:xn}):pn=yield(0,a.iV)({exercise_bank_id:Rn.topicId,question_title:It,shixun_name:st,shixun_id:Fe.shixun_id,question_type:5,question_scores:xn}),pn.status===0&&(we.ZP.success("\u4FDD\u5B58\u6210\u529F"),zt(!1)),yield Tt({type:"polls/getExerciseBanks",payload:Ut({},Rn)}),{name:It,analysis:en,standard_answers:bn,is_ordered:Dn}}),Ct=()=>{var bn;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),te.createElement("div",{className:"mt10"},te.createElement(Re.default,{defaultValue:st,onChange:Ln=>{qe(Ln.target.value)}})),te.createElement("div",{className:"mt10"},te.createElement(z.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:It,onChange:Ln=>{kt(Ln)}})),te.createElement("div",{className:"mt20"},(bn=Fe.shixun)==null?void 0:bn.map((Ln,pn)=>te.createElement(Me.Z,{gutter:[20,20]},te.createElement(je.Z,{flex:"1"},pn+1,".",Ln.challenge_name),te.createElement(je.Z,null,te.createElement(b.Z,{defaultValue:xn[pn],onChange:Jt=>{xn[pn]=Jt,ln(xn),console.log("srore:L",xn[pn])}}))))),te.createElement("div",{className:"mt20"},an.length>1&&te.createElement("span",null,te.createElement(E.default,{checked:Dn,onChange:Ln=>Nn(Ln.target.checked),className:`${ne.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),te.createElement("span",{className:`${ne.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),te.createElement("aside",{className:"tr"},!(Fe!=null&&Fe.edit)&&te.createElement(Ee.ZP,{type:"default",onClick:()=>zt(!1)},"\u53D6\u6D88"),te.createElement(Ee.ZP,{className:"ml20",type:"primary",onClick:()=>jt()},"\u4FDD\u5B58")))},tn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Yt=bn=>Vn(void 0,null,function*(){switch(bn.id){case"del":let Ln;y.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Vn(this,null,function*(){yield(0,a.x$)({pollsId:Fe.question_id}),Tt({type:"polls/getExerciseBanks",payload:Ut({},Rn)})})}});break;case"up":case"down":yield(0,a.W)({exerciseId:Fe==null?void 0:Fe.question_id,opr:bn.id}),Tt({type:"polls/getExerciseBanks",payload:Ut({},Rn)});break;case"edit":zt(!0);break}}),ea=()=>{var bn;return te.createElement("aside",null,te.createElement("div",{className:ne.questionType},te.createElement("div",null,te.createElement("span",{className:"font16 c-blue"},Fe.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Fe.question_score,"\u5206\uFF09"),te.createElement("div",{className:"tr"},te.createElement(ue.Link,{target:"_blank",to:`/shixuns/${Fe.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Fe.hideAction&&tn.map(function(Ln,pn){return Ln.id==="up"&&Fe.key===1||Ln.id==="down"&&Fe.key===Fe.len?null:te.createElement(Te.Z,{key:pn,placement:"bottom",title:Ln.name},te.createElement("span",{onClick:()=>Yt(Ln),className:Ln.icon}))}))),te.createElement("div",{className:"font16"},Fe.shixun_name),te.createElement("div",{className:"mt30"}),(bn=Fe.shixun)==null?void 0:bn.map(function(Ln,pn){return te.createElement("div",{key:pn},"\u7B2C",pn+1,"\u5173 ",te.createElement("span",{className:"ml10"},Ln.challenge_name)," ",te.createElement("span",{className:"ml10"},Ln.challenge_score))}))};return te.createElement("section",{className:ne.wrap},!on&&ea(),on&&Ct())};var ra=(0,ue.connect)(({problemset:Ne,loading:ze,globalSetting:le})=>({problemset:Ne,globalSetting:le,loading:ze.effects}),null,null,{forwardRef:!0})((0,te.forwardRef)(Wn)),Mn=oe(43428),Qn=oe(58421),Qt={flex_box_center:"flex_box_center___hUmFx",flex_space_between:"flex_space_between___ZQWRF",flex_box_vertical_center:"flex_box_vertical_center___NvFWH",flex_box_center_end:"flex_box_center_end___VzfH9",flex_box_column:"flex_box_column___jzLHY",wrp:"wrp___tA5YW",drawer:"drawer___aMsAr",menu:"menu___EdF6h",actived:"actived___rUgO6",actived2:"actived2___ENpPA",listItem:"listItem___Ixzli",info:"info___KHkuz",title:"title___pDJPn",titleLeft:"titleLeft___UBBKz",titleRight:"titleRight___WrCz9",search:"search___AEwRm",description:"description___CYPQc",menuCourse:"menuCourse___gwZ0E"},qn=Object.defineProperty,Le=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,St=(Ne,ze,le)=>ze in Ne?qn(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,Bt=(Ne,ze)=>{for(var le in ze||(ze={}))Oe.call(ze,le)&&St(Ne,le,ze[le]);if(Le)for(var le of Le(ze))xe.call(ze,le)&&St(Ne,le,ze[le]);return Ne},Ft=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const{Search:dn}=Re.default,Kt=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],$t=({classroomList:Ne,loading:ze,dispatch:le,callback:it})=>{var nn;const hn=(0,ue.useParams)(),Tt=(0,ue.useLocation)(),{actionTabs:Fe}=Ne,[fe]=ye.default.useForm(),{shixunLists:st}=Ne,[qe,It]=(0,te.useState)([]),[kt,en]=(0,te.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,te.useEffect)(()=>{le({type:"classroomList/getShixunLists",payload:Bt({},kt)})},[hn.categoryId]),(0,te.useEffect)(()=>{It([])},[Ne.actionTabs.key]),Ne.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:te.createElement(Mn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:Ne.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:Qt.drawer,footer:te.createElement("div",{className:"tc"},te.createElement(Ee.ZP,{size:"middle",onClick:()=>{le({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),te.createElement(Ee.ZP,{size:"middle",onClick:()=>Ft(void 0,null,function*(){var bt;qe.length>1?we.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):qe.length===0?we.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(it&&it((bt=st==null?void 0:st.shixun_list)==null?void 0:bt.filter(an=>an.id===qe[0])[0]),le({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},te.createElement("section",{className:"tc"},te.createElement(dn,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:Qt.search,onSearch:bt=>{kt.keyword=bt,le({type:"classroomList/getShixunLists",payload:Bt({},kt)})}})),te.createElement("section",{className:"edu-container"},Kt.map(function(bt,an){var cn;return te.createElement("ul",{className:Qt.menu,key:an},te.createElement("li",null,bt.name),(cn=bt==null?void 0:bt.children)==null?void 0:cn.map(function(un,Fn){return te.createElement("li",{key:Fn,className:kt[bt.id]==un.id?Qt.actived:"",onClick:()=>{kt[bt.id]=un.id,en(Bt({},kt)),le({type:"classroomList/getShixunLists",payload:Bt({},kt)})}},te.createElement("strong",null,un.name))}))}),(nn=st==null?void 0:st.shixun_list)==null?void 0:nn.map(function(bt,an){return te.createElement("div",{className:Qt.listItem,key:an},te.createElement(E.default,{checked:qe.includes(bt.id),value:bt.id,onChange:cn=>{let un=qe.indexOf(bt.id);qe.indexOf(bt.id)>-1?It(qe.filter(Fn=>Fn!==bt.id)):It(qe.concat(bt.id))}}),te.createElement("div",{className:Qt.info},te.createElement("div",{className:Qt.title},te.createElement("div",{className:Qt.titleLeft},te.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:bt.title}}))),te.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},te.createElement("span",{className:Qt.description,dangerouslySetInnerHTML:{__html:bt.description}})),te.createElement("div",{className:" mt15"},bt.challenge_names.map(function(cn,un){return te.createElement("span",{key:un,className:"mr30"},"\u7B2C",un+1,"\u5173 ",cn," ")})),te.createElement(de.Z,{dashed:!0}),te.createElement("div",{className:"c-light-black mt20"},te.createElement("span",null,bt.author_name),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,bt.author_school_name),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",bt.level),te.createElement("span",{className:"ml15 mr15"},"|"),te.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),te.createElement("span",null,bt.study_count))))}),te.createElement("p",null)),te.createElement("div",{className:"tc"},te.createElement(Qn.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:st==null?void 0:st.shixuns_count,onChange:bt=>{kt.page=bt,It([]),le({type:"classroomList/getShixunLists",payload:Bt({},kt)})}})))};var Vt=(0,ue.connect)(({classroomList:Ne,loading:ze})=>({classroomList:Ne,loading:ze}))($t),wn={flex_box_center:"flex_box_center___SQWFF",flex_space_between:"flex_space_between___CnFKV",flex_box_vertical_center:"flex_box_vertical_center___pIPP9",flex_box_center_end:"flex_box_center_end___wiYA8",flex_box_column:"flex_box_column___elCPc",bg:"bg___EaPuT",containerTitle:"containerTitle___ixpkx",containerDesc:"containerDesc___r2R0u",listItem:"listItem___jvD98",info:"info___dCwGz",title:"title___UW6TT",titleLeft:"titleLeft___MquHc",titleRight:"titleRight___aWhE3",acitons:"acitons___yle7y"},tt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,On=(Ne,ze,le)=>ze in Ne?tt(Ne,ze,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ne[ze]=le,yn=(Ne,ze)=>{for(var le in ze||(ze={}))Cn.call(ze,le)&&On(Ne,le,ze[le]);if(Xt)for(var le of Xt(ze))na.call(ze,le)&&On(Ne,le,ze[le]);return Ne},la=(Ne,ze)=>{var le={};for(var it in Ne)Cn.call(Ne,it)&&ze.indexOf(it)<0&&(le[it]=Ne[it]);if(Ne!=null&&Xt)for(var it of Xt(Ne))ze.indexOf(it)<0&&na.call(Ne,it)&&(le[it]=Ne[it]);return le},ia=(Ne,ze,le)=>new Promise((it,nn)=>{var hn=fe=>{try{Fe(le.next(fe))}catch(st){nn(st)}},Tt=fe=>{try{Fe(le.throw(fe))}catch(st){nn(st)}},Fe=fe=>fe.done?it(fe.value):Promise.resolve(fe.value).then(hn,Tt);Fe((le=le.apply(Ne,ze)).next())});const{SubMenu:ca}=Ke.default,{Content:ya,Sider:Sa}=Ze.default,Xn=Ne=>{var ze=Ne,{polls:le,globalSetting:it,loading:nn,user:hn,dispatch:Tt}=ze,Fe=la(ze,["polls","globalSetting","loading","user","dispatch"]),fe,st,qe,It,kt,en,bt,an,cn,un,Fn,Dn,Nn,_n,zn,xn,ln,on,zt,Rn,jt,Ct,tn,Yt,ea,bn,Ln,pn,Jt,gn,Bn,Yn,Jn,ua,Ea,Fa,Na,_t,ft,Et,Nt,mn,$n,Kn,In,Hn,Zn,ga,Un,fa,Pa,pa,_a,sa,wa,Gn;const va=(0,ue.useParams)(),Oa=(0,ue.useLocation)(),{userInfo:ma}=hn,[ba]=ye.default.useForm(),[da,aa]=(0,te.useState)([]),[xa,Ba]=(0,te.useState)(!1),$a=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Ca=(0,te.useRef)();(0,te.useEffect)(()=>{var fn,oa,La,za,Aa,Da;(fn=le.exerciseBanks)!=null&&fn.exercise_questions&&(aa([...(oa=le.exerciseBanks)==null?void 0:oa.exercise_questions]),ba.setFieldsValue({exercise_name:(za=(La=le.exerciseBanks)==null?void 0:La.exercise)==null?void 0:za.exercise_name,exercise_description:(Da=(Aa=le.exerciseBanks)==null?void 0:Aa.exercise)==null?void 0:Da.exercise_description}))},[le.exerciseBanks]),(0,te.useEffect)(()=>{Tt({type:"polls/getExerciseBanks",payload:yn({},va)})},[va.categoryId]);const Ia=()=>ia(void 0,null,function*(){var fn,oa;yield ba.validateFields();const La=ba.getFieldValue();La.is_md=!0,La.topicId=(oa=(fn=le.exerciseBanks)==null?void 0:fn.exercise)==null?void 0:oa.id,Ba(!1),yield(0,a.hO)(yn({},La)),Tt({type:"polls/getExerciseBanks",payload:yn({},va)})}),Ga=fn=>ia(void 0,null,function*(){const oa=yield Ca==null?void 0:Ca.current;if(oa!=null&&oa.isEdit){we.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}fn===5?Tt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):aa([...da,{question_type:fn}])}),Ta=function(){return da==null?void 0:da.map(function(fn,oa){if(fn.key=oa+1,fn.len=da.length,fn.question_type===0)return te.createElement("aside",null,te.createElement(wt,{ref:Ca,editData:fn}),te.createElement(de.Z,null));if(fn.question_type===1)return te.createElement("aside",null,te.createElement(Be,{ref:Ca,editData:fn}),te.createElement(de.Z,null));if(fn.question_type===2)return te.createElement("aside",null,te.createElement(De,{ref:Ca,editData:fn}),te.createElement(de.Z,null));if(fn.question_type===3)return te.createElement("aside",null,te.createElement(mt,{editData:fn}),te.createElement(de.Z,null));if(fn.question_type===4)return te.createElement("aside",null,te.createElement(kn,{editData:fn}),te.createElement(de.Z,null));if(fn.question_type===5)return te.createElement("aside",null,te.createElement(ra,{editData:fn}),te.createElement(de.Z,null))})};return te.createElement("section",{className:"edu-container"},te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},ma&&te.createElement(Xe.Z,{separator:">"},te.createElement(Xe.Z.Item,null,te.createElement(ue.Link,{to:`/users/${ma.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),te.createElement(Xe.Z.Item,null,te.createElement(ue.Link,{to:`/users/${ma==null?void 0:ma.login}/topics/${va.topicId}/${va.topictype}/exercise/detail`},"\u8BE6\u60C5")),te.createElement(Xe.Z.Item,null,"\u7F16\u8F91"))),te.createElement("aside",{className:[wn.title,"mt20"].join(" ")},te.createElement(Me.Z,{style:{width:"100%"},align:"middle"},te.createElement(je.Z,{flex:"1"},te.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),te.createElement(se.VV,{status:[(st=(fe=le.exerciseBanks)==null?void 0:fe.exercise)!=null&&st.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),te.createElement(je.Z,null,te.createElement(ue.Link,{className:"font16 c-light-black",to:`/users/${ma.login}/topics/personal`},"\u8FD4\u56DE"))))),te.createElement("section",{className:[wn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!xa&&te.createElement("aside",null,te.createElement("div",{className:wn.containerDesc},te.createElement("div",null,(It=(qe=le.exerciseBanks)==null?void 0:qe.exercise)==null?void 0:It.exercise_name),te.createElement("div",null,te.createElement(Te.Z,{title:"\u7F16\u8F91"},te.createElement("span",{onClick:()=>Ba(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),te.createElement("div",{className:"c-light-black"},(en=(kt=le.exerciseBanks)==null?void 0:kt.exercise)==null?void 0:en.exercise_description)),xa&&te.createElement(ye.default,{layout:"vertical",form:ba},te.createElement(ye.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},te.createElement(Re.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),te.createElement(ye.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},te.createElement(Re.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),te.createElement(ye.default.Item,{className:"tr"},te.createElement(Ee.ZP,{type:"primary",onClick:()=>{Ia()}},"\u4FDD\u5B58")))),te.createElement("p",{className:"mt10",style:{display:"flex"}},te.createElement("span",{className:"fl",style:{flex:"1"}},!!((an=(bt=le.exerciseBanks)==null?void 0:bt.exercise_types)!=null&&an.q_singles)&&te.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(un=(cn=le.exerciseBanks)==null?void 0:cn.exercise_types)==null?void 0:un.q_singles,"\u9898\uFF0C\u5171",(Dn=(Fn=le.exerciseBanks)==null?void 0:Fn.exercise_types)==null?void 0:Dn.q_singles_scores,"\u5206"),!!((_n=(Nn=le.exerciseBanks)==null?void 0:Nn.exercise_types)!=null&&_n.q_doubles)&&te.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(xn=(zn=le.exerciseBanks)==null?void 0:zn.exercise_types)==null?void 0:xn.q_doubles,"\u9898\uFF0C\u5171",(on=(ln=le.exerciseBanks)==null?void 0:ln.exercise_types)==null?void 0:on.q_doubles_scores,"\u5206"),!!((Rn=(zt=le.exerciseBanks)==null?void 0:zt.exercise_types)!=null&&Rn.q_judges)&&te.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(Ct=(jt=le.exerciseBanks)==null?void 0:jt.exercise_types)==null?void 0:Ct.q_judges,"\u9898\uFF0C\u5171",(Yt=(tn=le.exerciseBanks)==null?void 0:tn.exercise_types)==null?void 0:Yt.q_judges_scores,"\u5206"),!!((bn=(ea=le.exerciseBanks)==null?void 0:ea.exercise_types)!=null&&bn.q_nulls)&&te.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(pn=(Ln=le.exerciseBanks)==null?void 0:Ln.exercise_types)==null?void 0:pn.q_nulls,"\u9898\uFF0C\u5171",(gn=(Jt=le.exerciseBanks)==null?void 0:Jt.exercise_types)==null?void 0:gn.q_nulls_scores,"\u5206"),!!((Yn=(Bn=le.exerciseBanks)==null?void 0:Bn.exercise_types)!=null&&Yn.q_mains)&&te.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(ua=(Jn=le.exerciseBanks)==null?void 0:Jn.exercise_types)==null?void 0:ua.q_mains,"\u9898\uFF0C\u5171",(Fa=(Ea=le.exerciseBanks)==null?void 0:Ea.exercise_types)==null?void 0:Fa.q_mains_scores,"\u5206"),!!((_t=(Na=le.exerciseBanks)==null?void 0:Na.exercise_types)!=null&&_t.q_shixuns)&&te.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(Et=(ft=le.exerciseBanks)==null?void 0:ft.exercise_types)==null?void 0:Et.q_shixuns,"\u9898\uFF0C\u5171",(mn=(Nt=le.exerciseBanks)==null?void 0:Nt.exercise_types)==null?void 0:mn.q_shixuns_scores,"\u5206"),!!((Kn=($n=le.exerciseBanks)==null?void 0:$n.exercise_types)!=null&&Kn.q_pros)&&te.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(Hn=(In=le.exerciseBanks)==null?void 0:In.exercise_types)==null?void 0:Hn.q_pros,"\u9898\uFF0C\u5171",(ga=(Zn=le.exerciseBanks)==null?void 0:Zn.exercise_types)==null?void 0:ga.q_pros_scores,"\u5206")),te.createElement("span",{className:"fr"},!!((fa=(Un=le.exerciseBanks)==null?void 0:Un.exercise_types)!=null&&fa.q_counts)&&te.createElement("span",null,"\u5408\u8BA1 ",te.createElement("span",{className:"color-blue"},(pa=(Pa=le.exerciseBanks)==null?void 0:Pa.exercise_types)==null?void 0:pa.q_counts)," \u9898\uFF0C \u5171 ",te.createElement("span",{className:`${((sa=(_a=le.exerciseBanks)==null?void 0:_a.exercise_types)==null?void 0:sa.q_scores)>100?"color-red font-bd":"color-orange"}`},(Gn=(wa=le.exerciseBanks)==null?void 0:wa.exercise_types)==null?void 0:Gn.q_scores)," \u5206"))),da!=""&&te.createElement("section",{className:[wn.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Ta()),te.createElement("section",{style:{display:"flex"},className:[wn.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},te.createElement("div",{style:{flex:"1"}},$a.map(function(fn,oa){return te.createElement(Ee.ZP,{className:"mr20",type:"primary",onClick:()=>Ga(fn.id)},te.createElement(ae.Z,{className:"mr5"}),fn.name)}))),te.createElement(Vt,{callback:fn=>{da.push({shixun:fn.challenge_names.map(oa=>({challenge_name:oa,challenge_score:5})),shixun_name:fn.title,shixun_id:fn.id,question_type:5,edit:!0}),aa([...da])}}))};var ha=(0,ue.connect)(({polls:Ne,loading:ze,user:le,globalSetting:it})=>({polls:Ne,globalSetting:it,user:le,loading:ze.effects}))(Xn)},56762:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return ue}});var te=oe(59301);function ue(){const[,Ke]=te.useReducer(Ze=>Ze+1,0);return Ke}},66104:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return pt}});var te=oe(92310),ue=oe.n(te),Ke=oe(11592),Ze=oe(26112),ye=oe(59301),we=oe(92343),de=oe(36355),Xe=oe(84105),Me=oe(91857);const je=Be=>{let{children:Ue}=Be;const{getPrefixCls:Ye}=ye.useContext(de.E_),Je=Ye("breadcrumb");return ye.createElement("li",{className:`${Je}-separator`,"aria-hidden":"true"},Ue===""?Ue:Ue||"/")};je.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=je,Re=function(Be,Ue){var Ye={};for(var Je in Be)Object.prototype.hasOwnProperty.call(Be,Je)&&Ue.indexOf(Je)<0&&(Ye[Je]=Be[Je]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Be);dt<Je.length;dt++)Ue.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Je[dt])&&(Ye[Je[dt]]=Be[Je[dt]]);return Ye};function Ee(Be,Ue){if(Be.title===void 0||Be.title===null)return null;const Ye=Object.keys(Ue).join("|");return typeof Be.title=="object"?Be.title:String(Be.title).replace(new RegExp(`:(${Ye})`,"g"),(Je,dt)=>Ue[dt]||Je)}function ae(Be,Ue,Ye,Je){if(Ye==null)return null;const{className:dt,onClick:Lt}=Ue,Gt=Re(Ue,["className","onClick"]),Ot=Object.assign(Object.assign({},(0,Ze.Z)(Gt,{data:!0,aria:!0})),{onClick:Lt});return Je!==void 0?ye.createElement("a",Object.assign({},Ot,{className:ue()(`${Be}-link`,dt),href:Je}),Ye):ye.createElement("span",Object.assign({},Ot,{className:ue()(`${Be}-link`,dt)}),Ye)}function a(Be,Ue){return(Je,dt,Lt,Gt,Ot)=>{if(Ue)return Ue(Je,dt,Lt,Gt);const Zt=Ee(Je,dt);return ae(Be,Je,Zt,Ot)}}var y=function(Be,Ue){var Ye={};for(var Je in Be)Object.prototype.hasOwnProperty.call(Be,Je)&&Ue.indexOf(Je)<0&&(Ye[Je]=Be[Je]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Be);dt<Je.length;dt++)Ue.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Je[dt])&&(Ye[Je[dt]]=Be[Je[dt]]);return Ye};const E=Be=>{const{prefixCls:Ue,separator:Ye="/",children:Je,menu:dt,overlay:Lt,dropdownProps:Gt,href:Ot}=Be,Ce=(Ge=>{if(dt||Lt){const et=Object.assign({},Gt);if(dt){const wt=dt||{},{items:at}=wt,Pt=y(wt,["items"]);et.menu=Object.assign(Object.assign({},Pt),{items:at==null?void 0:at.map((me,_e)=>{var{key:ke,title:xt,label:gt,path:Ae}=me,be=y(me,["key","title","label","path"]);let pe=gt!=null?gt:xt;return Ae&&(pe=ye.createElement("a",{href:`${Ot}${Ae}`},pe)),Object.assign(Object.assign({},be),{key:ke!=null?ke:_e,label:pe})})})}else Lt&&(et.overlay=Lt);return ye.createElement(Me.Z,Object.assign({placement:"bottom"},et),ye.createElement("span",{className:`${Ue}-overlay-link`},Ge,ye.createElement(Xe.Z,null)))}return Ge})(Je);return Ce!=null?ye.createElement(ye.Fragment,null,ye.createElement("li",null,Ce),Ye&&ye.createElement(Te,null,Ye)):null},b=Be=>{const{prefixCls:Ue,children:Ye,href:Je}=Be,dt=y(Be,["prefixCls","children","href"]),{getPrefixCls:Lt}=ye.useContext(de.E_),Gt=Lt("breadcrumb",Ue);return ye.createElement(E,Object.assign({},dt,{prefixCls:Gt}),ae(Gt,dt,Ye,Je))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),ne=oe(37613);const re=Be=>{const{componentCls:Ue,iconCls:Ye}=Be;return{[Ue]:Object.assign(Object.assign({},(0,z.Wf)(Be)),{color:Be.itemColor,fontSize:Be.fontSize,[Ye]:{fontSize:Be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Be.linkColor,transition:`color ${Be.motionDurationMid}`,padding:`0 ${Be.paddingXXS}px`,borderRadius:Be.borderRadiusSM,height:Be.lineHeight*Be.fontSize,display:"inline-block",marginInline:-Be.marginXXS,"&:hover":{color:Be.linkHoverColor,backgroundColor:Be.colorBgTextHover}},(0,z.Qy)(Be)),"li:last-child":{color:Be.lastItemColor},[`${Ue}-separator`]:{marginInline:Be.separatorMargin,color:Be.separatorColor},[`${Ue}-link`]:{[`
> ${Ye} + span,
> ${Ye} + a
`]:{marginInlineStart:Be.marginXXS}},[`${Ue}-overlay-link`]:{borderRadius:Be.borderRadiusSM,height:Be.lineHeight*Be.fontSize,display:"inline-block",padding:`0 ${Be.paddingXXS}px`,marginInline:-Be.marginXXS,[`> ${Ye}`]:{marginInlineStart:Be.marginXXS,fontSize:Be.fontSizeIcon},"&:hover":{color:Be.linkHoverColor,backgroundColor:Be.colorBgTextHover,a:{color:Be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Be=>{const Ue=(0,ne.TS)(Be,{});return[re(Ue)]},Be=>({itemColor:Be.colorTextDescription,lastItemColor:Be.colorText,iconFontSize:Be.fontSize,linkColor:Be.colorTextDescription,linkHoverColor:Be.colorText,separatorColor:Be.colorTextDescription,separatorMargin:Be.marginXS})),ge=function(Be,Ue){var Ye={};for(var Je in Be)Object.prototype.hasOwnProperty.call(Be,Je)&&Ue.indexOf(Je)<0&&(Ye[Je]=Be[Je]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Be);dt<Je.length;dt++)Ue.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Je[dt])&&(Ye[Je[dt]]=Be[Je[dt]]);return Ye};function ve(Be){const{breadcrumbName:Ue,children:Ye}=Be,Je=ge(Be,["breadcrumbName","children"]),dt=Object.assign({title:Ue},Je);return Ye&&(dt.menu={items:Ye.map(Lt=>{var{breadcrumbName:Gt}=Lt,Ot=ge(Lt,["breadcrumbName"]);return Object.assign(Object.assign({},Ot),{title:Gt})})}),dt}function ce(Be,Ue){return(0,ye.useMemo)(()=>Be||(Ue?Ue.map(ve):null),[Be,Ue])}var $e=function(Be,Ue){var Ye={};for(var Je in Be)Object.prototype.hasOwnProperty.call(Be,Je)&&Ue.indexOf(Je)<0&&(Ye[Je]=Be[Je]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Be);dt<Je.length;dt++)Ue.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Je[dt])&&(Ye[Je[dt]]=Be[Je[dt]]);return Ye};const Pe=(Be,Ue)=>{if(Ue===void 0)return Ue;let Ye=(Ue||"").replace(/^\//,"");return Object.keys(Be).forEach(Je=>{Ye=Ye.replace(`:${Je}`,Be[Je])}),Ye},Qe=Be=>{const{prefixCls:Ue,separator:Ye="/",style:Je,className:dt,rootClassName:Lt,routes:Gt,items:Ot,children:Zt,itemRender:Ce,params:Ge={}}=Be,et=$e(Be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:at,breadcrumb:Pt}=ye.useContext(de.E_);let me;const _e=wt("breadcrumb",Ue),[ke,xt]=ie(_e),gt=ce(Ot,Gt),Ae=a(_e,Ce);if(gt&&gt.length>0){const De=[],He=Ot||Gt;me=gt.map((ot,se)=>{const{path:he,key:rt,type:Ve,menu:Se,overlay:We,onClick:vt,className:ut,separator:yt,dropdownProps:nt}=ot,ct=Pe(Ge,he);ct!==void 0&&De.push(ct);const mt=rt!=null?rt:se;if(Ve==="separator")return ye.createElement(Te,{key:mt},yt);const At={},Dt=se===gt.length-1;Se?At.menu=Se:We&&(At.overlay=We);let{href:Mt}=ot;return De.length&&ct!==void 0&&(Mt=`#/${De.join("/")}`),ye.createElement(E,Object.assign({key:mt},At,(0,Ze.Z)(ot,{data:!0,aria:!0}),{className:ut,dropdownProps:nt,href:Mt,separator:Dt?"":Ye,onClick:vt,prefixCls:_e}),Ae(ot,Ge,He,De,Mt))})}else if(Zt){const De=(0,Ke.Z)(Zt).length;me=(0,Ke.Z)(Zt).map((He,ot)=>{if(!He)return He;const se=ot===De-1;return(0,we.Tm)(He,{separator:se?"":Ye,key:ot})})}const be=ue()(_e,Pt==null?void 0:Pt.className,{[`${_e}-rtl`]:at==="rtl"},dt,Lt,xt),pe=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Je);return ke(ye.createElement("nav",Object.assign({className:be,style:pe},et),ye.createElement("ol",null,me)))};Qe.Item=x,Qe.Separator=Te;var ht=Qe,pt=ht},24905:function(Ie,lt,oe){"use strict";oe.d(lt,{default:function(){return ie}});var te=oe(92310),ue=oe.n(te),Ke=oe(5630),Ze=oe(59301),ye=oe(36355),we=oe(1684),de=oe(32441),Me=Ze.createContext(null),je=oe(98447),Te=oe(14088),Re=oe(4572),Ee=function(ge,ve){var ce={};for(var $e in ge)Object.prototype.hasOwnProperty.call(ge,$e)&&ve.indexOf($e)<0&&(ce[$e]=ge[$e]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,$e=Object.getOwnPropertySymbols(ge);Pe<$e.length;Pe++)ve.indexOf($e[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,$e[Pe])&&(ce[$e[Pe]]=ge[$e[Pe]]);return ce};const ae=(ge,ve)=>{var ce;const{prefixCls:$e,className:Pe,rootClassName:Qe,children:ht,indeterminate:pt=!1,style:Be,onMouseEnter:Ue,onMouseLeave:Ye,skipGroup:Je=!1,disabled:dt}=ge,Lt=Ee(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Gt,direction:Ot,checkbox:Zt}=Ze.useContext(ye.E_),Ce=Ze.useContext(Me),{isFormItemInput:Ge}=Ze.useContext(de.aM),et=Ze.useContext(we.Z),wt=(ce=(Ce==null?void 0:Ce.disabled)||dt)!==null&&ce!==void 0?ce:et,at=Ze.useRef(Lt.value);Ze.useEffect(()=>{Ce==null||Ce.registerValue(Lt.value)},[]),Ze.useEffect(()=>{if(!Je)return Lt.value!==at.current&&(Ce==null||Ce.cancelValue(at.current),Ce==null||Ce.registerValue(Lt.value),at.current=Lt.value),()=>Ce==null?void 0:Ce.cancelValue(Lt.value)},[Lt.value]);const Pt=Gt("checkbox",$e),[me,_e]=(0,je.ZP)(Pt),ke=Object.assign({},Lt);Ce&&!Je&&(ke.onChange=function(){Lt.onChange&&Lt.onChange.apply(Lt,arguments),Ce.toggleOption&&Ce.toggleOption({label:ht,value:Lt.value})},ke.name=Ce.name,ke.checked=Ce.value.includes(Lt.value));const xt=ue()(`${Pt}-wrapper`,{[`${Pt}-rtl`]:Ot==="rtl",[`${Pt}-wrapper-checked`]:ke.checked,[`${Pt}-wrapper-disabled`]:wt,[`${Pt}-wrapper-in-form-item`]:Ge},Zt==null?void 0:Zt.className,Pe,Qe,_e),gt=ue()({[`${Pt}-indeterminate`]:pt},Re.A,_e),Ae=pt?"mixed":void 0;return me(Ze.createElement(Te.Z,{component:"Checkbox",disabled:wt},Ze.createElement("label",{className:xt,style:Object.assign(Object.assign({},Zt==null?void 0:Zt.style),Be),onMouseEnter:Ue,onMouseLeave:Ye},Ze.createElement(Ke.Z,Object.assign({"aria-checked":Ae},ke,{prefixCls:Pt,className:gt,disabled:wt,ref:ve})),ht!==void 0&&Ze.createElement("span",null,ht))))};var y=Ze.forwardRef(ae),E=oe(26407),b=oe(2738),x=function(ge,ve){var ce={};for(var $e in ge)Object.prototype.hasOwnProperty.call(ge,$e)&&ve.indexOf($e)<0&&(ce[$e]=ge[$e]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,$e=Object.getOwnPropertySymbols(ge);Pe<$e.length;Pe++)ve.indexOf($e[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,$e[Pe])&&(ce[$e[Pe]]=ge[$e[Pe]]);return ce};const z=(ge,ve)=>{const{defaultValue:ce,children:$e,options:Pe=[],prefixCls:Qe,className:ht,rootClassName:pt,style:Be,onChange:Ue}=ge,Ye=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Je,direction:dt}=Ze.useContext(ye.E_),[Lt,Gt]=Ze.useState(Ye.value||ce||[]),[Ot,Zt]=Ze.useState([]);Ze.useEffect(()=>{"value"in Ye&&Gt(Ye.value||[])},[Ye.value]);const Ce=Ze.useMemo(()=>Pe.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Pe]),Ge=be=>{Zt(pe=>pe.filter(De=>De!==be))},et=be=>{Zt(pe=>[].concat((0,E.Z)(pe),[be]))},wt=be=>{const pe=Lt.indexOf(be.value),De=(0,E.Z)(Lt);pe===-1?De.push(be.value):De.splice(pe,1),"value"in Ye||Gt(De),Ue==null||Ue(De.filter(He=>Ot.includes(He)).sort((He,ot)=>{const se=Ce.findIndex(rt=>rt.value===He),he=Ce.findIndex(rt=>rt.value===ot);return se-he}))},at=Je("checkbox",Qe),Pt=`${at}-group`,[me,_e]=(0,je.ZP)(at),ke=(0,b.Z)(Ye,["value","disabled"]),xt=Pe.length?Ce.map(be=>Ze.createElement(y,{prefixCls:at,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Ye.disabled,value:be.value,checked:Lt.includes(be.value),onChange:be.onChange,className:`${Pt}-item`,style:be.style,title:be.title},be.label)):$e,gt={toggleOption:wt,value:Lt,disabled:Ye.disabled,name:Ye.name,registerValue:et,cancelValue:Ge},Ae=ue()(Pt,{[`${Pt}-rtl`]:dt==="rtl"},ht,pt,_e);return me(Ze.createElement("div",Object.assign({className:Ae,style:Be},ke,{ref:ve}),Ze.createElement(Me.Provider,{value:gt},xt)))},ee=Ze.forwardRef(z);var ne=Ze.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ie,lt,oe){"use strict";oe.d(lt,{C2:function(){return ye}});var te=oe(17313),ue=oe(37613),Ke=oe(83116);const Ze=we=>{const{checkboxCls:de}=we,Xe=`${de}-wrapper`;return[{[`${de}-group`]:Object.assign(Object.assign({},(0,te.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Xe]:Object.assign(Object.assign({},(0,te.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Xe}`]:{marginInlineStart:0},[`&${Xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[de]:Object.assign(Object.assign({},(0,te.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${de}-inner`]:Object.assign({},(0,te.oN)(we))},[`${de}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
${Xe}:not(${Xe}-disabled),
${de}:not(${de}-disabled)
`]:{[`&:hover ${de}-inner`]:{borderColor:we.colorPrimary}},[`${Xe}:not(${Xe}-disabled)`]:{[`&:hover ${de}-checked:not(${de}-disabled) ${de}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${de}-checked:not(${de}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${de}-checked`]:{[`${de}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
${Xe}-checked:not(${Xe}-disabled),
${de}-checked:not(${de}-disabled)
`]:{[`&:hover ${de}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[de]:{"&-indeterminate":{[`${de}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Xe}-disabled`]:{cursor:"not-allowed"},[`${de}-disabled`]:{[`&, ${de}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${de}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${de}-indeterminate ${de}-inner::after`]:{background:we.colorTextDisabled}}}]};function ye(we,de){const Xe=(0,ue.TS)(de,{checkboxCls:`.${we}`,checkboxSize:de.controlInteractiveSize});return[Ze(Xe)]}lt.ZP=(0,Ke.Z)("Checkbox",(we,de)=>{let{prefixCls:Xe}=de;return[ye(Xe,we)]})},28103:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var te=oe(92310),ue=oe.n(te),Ke=oe(59301),Ze=oe(36355),ye=oe(17313),we=oe(83116),de=oe(37613);const Xe=Ee=>{const{componentCls:ae,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:E,textPaddingInline:b,orientationMargin:x,verticalMarginInline:z}=Ee;return{[ae]:Object.assign(Object.assign({},(0,ye.Wf)(Ee)),{borderBlockStart:`${E}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${E}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ee.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ae}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ee.dividerHorizontalWithTextGutterMargin}px 0`,color:Ee.colorTextHeading,fontWeight:500,fontSize:Ee.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${E}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ae}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ae}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ae}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${E}px 0 0`},[`&-horizontal${ae}-with-text${ae}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ae}-dashed`]:{borderInlineStartWidth:E,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ae}-with-text`]:{color:Ee.colorText,fontWeight:"normal",fontSize:Ee.fontSize},[`&-horizontal${ae}-with-text-left${ae}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ae}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ae}-with-text-right${ae}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ae}-inner-text`]:{paddingInlineEnd:a}}})}};var Me=(0,we.Z)("Divider",Ee=>{const ae=(0,de.TS)(Ee,{dividerHorizontalWithTextGutterMargin:Ee.margin,dividerHorizontalGutterMargin:Ee.marginLG,sizePaddingEdgeHorizontal:0});return[Xe(ae)]},Ee=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ee.marginXS})),je=function(Ee,ae){var a={};for(var y in Ee)Object.prototype.hasOwnProperty.call(Ee,y)&&ae.indexOf(y)<0&&(a[y]=Ee[y]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,y=Object.getOwnPropertySymbols(Ee);E<y.length;E++)ae.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(Ee,y[E])&&(a[y[E]]=Ee[y[E]]);return a},Re=Ee=>{const{getPrefixCls:ae,direction:a,divider:y}=Ke.useContext(Ze.E_),{prefixCls:E,type:b="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:ne,children:re,dashed:ie,plain:ge,style:ve}=Ee,ce=je(Ee,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$e=ae("divider",E),[Pe,Qe]=Me($e),ht=x.length>0?`-${x}`:x,pt=!!re,Be=x==="left"&&z!=null,Ue=x==="right"&&z!=null,Ye=ue()($e,y==null?void 0:y.className,Qe,`${$e}-${b}`,{[`${$e}-with-text`]:pt,[`${$e}-with-text${ht}`]:pt,[`${$e}-dashed`]:!!ie,[`${$e}-plain`]:!!ge,[`${$e}-rtl`]:a==="rtl",[`${$e}-no-default-orientation-margin-left`]:Be,[`${$e}-no-default-orientation-margin-right`]:Ue},ee,ne),Je=Ke.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),dt=Object.assign(Object.assign({},Be&&{marginLeft:Je}),Ue&&{marginRight:Je});return Pe(Ke.createElement("div",Object.assign({className:Ye,style:Object.assign(Object.assign({},y==null?void 0:y.style),ve)},ce,{role:"separator"}),re&&b!=="vertical"&&Ke.createElement("span",{className:`${$e}-inner-text`,style:dt},re)))}},43428:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return me}});var te=oe(92310),ue=oe.n(te),Ke=oe(33708),Ze=oe(33606),ye=oe(43403),we=oe(34280),de=oe(59301),Xe=de.createContext(null),Me=de.createContext({}),je=Xe,Te=oe(400),Re=oe(92413),Ee=oe(77900),ae=oe(10228),a=oe(26112),y=oe(70425),E=function(ke){var xt=ke.prefixCls,gt=ke.className,Ae=ke.style,be=ke.children,pe=ke.containerRef,De=ke.id,He=ke.onMouseEnter,ot=ke.onMouseOver,se=ke.onMouseLeave,he=ke.onClick,rt=ke.onKeyDown,Ve=ke.onKeyUp,Se={onMouseEnter:He,onMouseOver:ot,onMouseLeave:se,onClick:he,onKeyDown:rt,onKeyUp:Ve},We=de.useContext(Me),vt=We.panel,ut=(0,y.useComposeRef)(vt,pe);return de.createElement(de.Fragment,null,de.createElement("div",(0,Re.Z)({id:De,className:ue()("".concat(xt,"-content"),gt),style:(0,Ke.Z)({},Ae),"aria-modal":"true",role:"dialog",ref:ut},Se),be))},b=E,x=oe(48736);function z(_e){return typeof _e=="string"&&String(Number(_e))===_e?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(_e)):_e}function ee(_e){warning(!("wrapperClassName"in _e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!_e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ne={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function re(_e,ke){var xt,gt,Ae,be,pe=_e.prefixCls,De=_e.open,He=_e.placement,ot=_e.inline,se=_e.push,he=_e.forceRender,rt=_e.autoFocus,Ve=_e.keyboard,Se=_e.rootClassName,We=_e.rootStyle,vt=_e.zIndex,ut=_e.className,yt=_e.id,nt=_e.style,ct=_e.motion,mt=_e.width,At=_e.height,Dt=_e.children,Mt=_e.contentWrapperStyle,Wt=_e.mask,Rt=_e.maskClosable,qt=_e.maskMotion,Ht=_e.maskClassName,sn=_e.maskStyle,Pn=_e.afterOpenChange,vn=_e.onClose,kn=_e.onMouseEnter,jn=_e.onMouseOver,En=_e.onMouseLeave,rn=_e.onClick,An=_e.onKeyDown,Tn=_e.onKeyUp,Ut=de.useRef(),Sn=de.useRef(),Vn=de.useRef();de.useImperativeHandle(ke,function(){return Ut.current});var ta=function(Vt){var wn=Vt.keyCode,tt=Vt.shiftKey;switch(wn){case ae.Z.TAB:{if(wn===ae.Z.TAB){if(!tt&&document.activeElement===Vn.current){var Xt;(Xt=Sn.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}else if(tt&&document.activeElement===Sn.current){var Cn;(Cn=Vn.current)===null||Cn===void 0||Cn.focus({preventScroll:!0})}}break}case ae.Z.ESC:{vn&&Ve&&(Vt.stopPropagation(),vn(Vt));break}}};de.useEffect(function(){if(De&&rt){var $t;($t=Ut.current)===null||$t===void 0||$t.focus({preventScroll:!0})}},[De]);var Wn=de.useState(!1),ra=(0,Ze.Z)(Wn,2),Mn=ra[0],Qn=ra[1],Qt=de.useContext(je),qn;se===!1?qn={distance:0}:se===!0?qn={}:qn=se||{};var Le=(xt=(gt=(Ae=qn)===null||Ae===void 0?void 0:Ae.distance)!==null&&gt!==void 0?gt:Qt==null?void 0:Qt.pushDistance)!==null&&xt!==void 0?xt:180,Oe=de.useMemo(function(){return{pushDistance:Le,push:function(){Qn(!0)},pull:function(){Qn(!1)}}},[Le]);de.useEffect(function(){if(De){var $t;Qt==null||($t=Qt.push)===null||$t===void 0||$t.call(Qt)}else{var Vt;Qt==null||(Vt=Qt.pull)===null||Vt===void 0||Vt.call(Qt)}},[De]),de.useEffect(function(){return function(){var $t;Qt==null||($t=Qt.pull)===null||$t===void 0||$t.call(Qt)}},[]);var xe=Wt&&de.createElement(Ee.default,(0,Re.Z)({key:"mask"},qt,{visible:De}),function($t,Vt){var wn=$t.className,tt=$t.style;return de.createElement("div",{className:ue()("".concat(pe,"-mask"),wn,Ht),style:(0,Ke.Z)((0,Ke.Z)({},tt),sn),onClick:Rt&&De?vn:void 0,ref:Vt})}),St=typeof ct=="function"?ct(He):ct,Bt={};if(Mn&&Le)switch(He){case"top":Bt.transform="translateY(".concat(Le,"px)");break;case"bottom":Bt.transform="translateY(".concat(-Le,"px)");break;case"left":Bt.transform="translateX(".concat(Le,"px)");break;default:Bt.transform="translateX(".concat(-Le,"px)");break}He==="left"||He==="right"?Bt.width=z(mt):Bt.height=z(At);var Ft={onMouseEnter:kn,onMouseOver:jn,onMouseLeave:En,onClick:rn,onKeyDown:An,onKeyUp:Tn},dn=de.createElement(Ee.default,(0,Re.Z)({key:"panel"},St,{visible:De,forceRender:he,onVisibleChanged:function(Vt){Pn==null||Pn(Vt)},removeOnLeave:!1,leavedClassName:"".concat(pe,"-content-wrapper-hidden")}),function($t,Vt){var wn=$t.className,tt=$t.style;return de.createElement("div",(0,Re.Z)({className:ue()("".concat(pe,"-content-wrapper"),wn),style:(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Bt),tt),Mt)},(0,a.Z)(_e,{data:!0})),de.createElement(b,(0,Re.Z)({id:yt,containerRef:Vt,prefixCls:pe,className:ut,style:nt},Ft),Dt))}),Kt=(0,Ke.Z)({},We);return vt&&(Kt.zIndex=vt),de.createElement(je.Provider,{value:Oe},de.createElement("div",{className:ue()(pe,"".concat(pe,"-").concat(He),Se,(be={},(0,Te.Z)(be,"".concat(pe,"-open"),De),(0,Te.Z)(be,"".concat(pe,"-inline"),ot),be)),style:Kt,tabIndex:-1,ref:Ut,onKeyDown:ta},xe,de.createElement("div",{tabIndex:0,ref:Sn,style:ne,"aria-hidden":"true","data-sentinel":"start"}),dn,de.createElement("div",{tabIndex:0,ref:Vn,style:ne,"aria-hidden":"true","data-sentinel":"end"})))}var ie=de.forwardRef(re),ge=ie,ve=function(ke){var xt=ke.open,gt=xt===void 0?!1:xt,Ae=ke.prefixCls,be=Ae===void 0?"rc-drawer":Ae,pe=ke.placement,De=pe===void 0?"right":pe,He=ke.autoFocus,ot=He===void 0?!0:He,se=ke.keyboard,he=se===void 0?!0:se,rt=ke.width,Ve=rt===void 0?378:rt,Se=ke.mask,We=Se===void 0?!0:Se,vt=ke.maskClosable,ut=vt===void 0?!0:vt,yt=ke.getContainer,nt=ke.forceRender,ct=ke.afterOpenChange,mt=ke.destroyOnClose,At=ke.onMouseEnter,Dt=ke.onMouseOver,Mt=ke.onMouseLeave,Wt=ke.onClick,Rt=ke.onKeyDown,qt=ke.onKeyUp,Ht=ke.panelRef,sn=de.useState(!1),Pn=(0,Ze.Z)(sn,2),vn=Pn[0],kn=Pn[1],jn=de.useState(!1),En=(0,Ze.Z)(jn,2),rn=En[0],An=En[1];(0,we.Z)(function(){An(!0)},[]);var Tn=rn?gt:!1,Ut=de.useRef(),Sn=de.useRef();(0,we.Z)(function(){Tn&&(Sn.current=document.activeElement)},[Tn]);var Vn=function(Qn){var Qt;if(kn(Qn),ct==null||ct(Qn),!Qn&&Sn.current&&!((Qt=Ut.current)!==null&&Qt!==void 0&&Qt.contains(Sn.current))){var qn;(qn=Sn.current)===null||qn===void 0||qn.focus({preventScroll:!0})}},ta=de.useMemo(function(){return{panel:Ht}},[Ht]);if(!nt&&!vn&&!Tn&&mt)return null;var Wn={onMouseEnter:At,onMouseOver:Dt,onMouseLeave:Mt,onClick:Wt,onKeyDown:Rt,onKeyUp:qt},ra=(0,Ke.Z)((0,Ke.Z)({},ke),{},{open:Tn,prefixCls:be,placement:De,autoFocus:ot,keyboard:he,width:Ve,mask:We,maskClosable:ut,inline:yt===!1,afterOpenChange:Vn,ref:Ut},Wn);return de.createElement(Me.Provider,{value:ta},de.createElement(ye.Z,{open:Tn||nt||vn,autoDestroy:!1,getContainer:yt,autoLock:We&&(Tn||vn)},de.createElement(ge,ra)))},ce=ve,$e=ce,Pe=oe(62892),Qe=oe(36355),ht=oe(32441),pt=oe(47729),Ue=_e=>{const{prefixCls:ke,title:xt,footer:gt,extra:Ae,closeIcon:be,closable:pe,onClose:De,headerStyle:He,drawerStyle:ot,bodyStyle:se,footerStyle:he,children:rt}=_e,Ve=de.useCallback(yt=>de.createElement("button",{type:"button",onClick:De,"aria-label":"Close",className:`${ke}-close`},yt),[De]),[Se,We]=(0,pt.Z)(pe,be,Ve,void 0,!0),vt=de.useMemo(()=>!xt&&!Se?null:de.createElement("div",{style:He,className:ue()(`${ke}-header`,{[`${ke}-header-close-only`]:Se&&!xt&&!Ae})},de.createElement("div",{className:`${ke}-header-title`},We,xt&&de.createElement("div",{className:`${ke}-title`},xt)),Ae&&de.createElement("div",{className:`${ke}-extra`},Ae)),[Se,We,Ae,He,ke,xt]),ut=de.useMemo(()=>{if(!gt)return null;const yt=`${ke}-footer`;return de.createElement("div",{className:yt,style:he},gt)},[gt,he,ke]);return de.createElement("div",{className:`${ke}-wrapper-body`,style:ot},vt,de.createElement("div",{className:`${ke}-body`,style:se},rt),ut)},Ye=oe(33234),Je=oe(83116),dt=oe(37613),Gt=_e=>{const{componentCls:ke,motionDurationSlow:xt}=_e,gt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xt}`}}};return{[ke]:{[`${ke}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ke}-panel-motion`]:{"&-left":[gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ot=_e=>{const{componentCls:ke,zIndexPopup:xt,colorBgMask:gt,colorBgElevated:Ae,motionDurationSlow:be,motionDurationMid:pe,padding:De,paddingLG:He,fontSizeLG:ot,lineHeightLG:se,lineWidth:he,lineType:rt,colorSplit:Ve,marginSM:Se,colorIcon:We,colorIconHover:vt,colorText:ut,fontWeightStrong:yt,footerPaddingBlock:nt,footerPaddingInline:ct}=_e,mt=`${ke}-content-wrapper`;return{[ke]:{position:"fixed",inset:0,zIndex:xt,pointerEvents:"none","&-pure":{position:"relative",background:Ae,[`&${ke}-left`]:{boxShadow:_e.boxShadowDrawerLeft},[`&${ke}-right`]:{boxShadow:_e.boxShadowDrawerRight},[`&${ke}-top`]:{boxShadow:_e.boxShadowDrawerUp},[`&${ke}-bottom`]:{boxShadow:_e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ke}-mask`]:{position:"absolute",inset:0,zIndex:xt,background:gt,pointerEvents:"auto"},[mt]:{position:"absolute",zIndex:xt,maxWidth:"100vw",transition:`all ${be}`,"&-hidden":{display:"none"}},[`&-left > ${mt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowDrawerLeft},[`&-right > ${mt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:_e.boxShadowDrawerRight},[`&-top > ${mt}`]:{top:0,insetInline:0,boxShadow:_e.boxShadowDrawerUp},[`&-bottom > ${mt}`]:{bottom:0,insetInline:0,boxShadow:_e.boxShadowDrawerDown},[`${ke}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Ae,pointerEvents:"auto"},[`${ke}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ke}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${De}px ${He}px`,fontSize:ot,lineHeight:se,borderBottom:`${he}px ${rt} ${Ve}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ke}-extra`]:{flex:"none"},[`${ke}-close`]:{display:"inline-block",marginInlineEnd:Se,color:We,fontWeight:yt,fontSize:ot,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${pe}`,textRendering:"auto","&:focus, &:hover":{color:vt,textDecoration:"none"}},[`${ke}-title`]:{flex:1,margin:0,color:ut,fontWeight:_e.fontWeightStrong,fontSize:ot,lineHeight:se},[`${ke}-body`]:{flex:1,minWidth:0,minHeight:0,padding:He,overflow:"auto"},[`${ke}-footer`]:{flexShrink:0,padding:`${nt}px ${ct}px`,borderTop:`${he}px ${rt} ${Ve}`},"&-rtl":{direction:"rtl"}}}};var Zt=(0,Je.Z)("Drawer",_e=>{const ke=(0,dt.TS)(_e,{});return[Ot(ke),Gt(ke)]},_e=>({zIndexPopup:_e.zIndexPopupBase,footerPaddingBlock:_e.paddingXS,footerPaddingInline:_e.padding})),Ce=oe(11575),Ge=function(_e,ke){var xt={};for(var gt in _e)Object.prototype.hasOwnProperty.call(_e,gt)&&ke.indexOf(gt)<0&&(xt[gt]=_e[gt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,gt=Object.getOwnPropertySymbols(_e);Ae<gt.length;Ae++)ke.indexOf(gt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(_e,gt[Ae])&&(xt[gt[Ae]]=_e[gt[Ae]]);return xt};const et=null,wt={distance:180},at=_e=>{var ke;const{rootClassName:xt,width:gt,height:Ae,size:be="default",mask:pe=!0,push:De=wt,open:He,afterOpenChange:ot,onClose:se,prefixCls:he,getContainer:rt,style:Ve,className:Se,visible:We,afterVisibleChange:vt}=_e,ut=Ge(_e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:yt,getPrefixCls:nt,direction:ct,drawer:mt}=de.useContext(Qe.E_),At=nt("drawer",he),[Dt,Mt]=Zt(At),Wt=rt===void 0&&yt?()=>yt(document.body):rt,Rt=ue()({"no-mask":!pe,[`${At}-rtl`]:ct==="rtl"},xt,Mt),qt=de.useMemo(()=>gt!=null?gt:be==="large"?736:378,[gt,be]),Ht=de.useMemo(()=>Ae!=null?Ae:be==="large"?736:378,[Ae,be]),sn={motionName:(0,Pe.m)(At,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=kn=>({motionName:(0,Pe.m)(At,`panel-motion-${kn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),vn=(0,Ce.H)();return Dt(de.createElement(Ye.BR,null,de.createElement(ht.Ux,{status:!0,override:!0},de.createElement($e,Object.assign({prefixCls:At,onClose:se,maskMotion:sn,motion:Pn},ut,{open:He!=null?He:We,mask:pe,push:De,width:qt,height:Ht,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Ve),className:ue()(mt==null?void 0:mt.className,Se),rootClassName:Rt,getContainer:Wt,afterOpenChange:ot!=null?ot:vt,panelRef:vn}),de.createElement(Ue,Object.assign({prefixCls:At},ut,{onClose:se}))))))},Pt=_e=>{const{prefixCls:ke,style:xt,className:gt,placement:Ae="right"}=_e,be=Ge(_e,["prefixCls","style","className","placement"]),{getPrefixCls:pe}=de.useContext(Qe.E_),De=pe("drawer",ke),[He,ot]=Zt(De),se=ue()(De,`${De}-pure`,`${De}-${Ae}`,ot,gt);return He(de.createElement("div",{className:se,style:xt},de.createElement(Ue,Object.assign({prefixCls:De},be))))};at._InternalPanelDoNotUseOrYouWillBeFired=Pt;var me=at},91857:function(Ie,lt,oe){"use strict";var te=oe(59301),ue=oe(38819),Ke=oe(92310),Ze=oe.n(Ke),ye=oe(31561),we=oe(70425),de=oe(18929),Xe=oe(2738),Me=oe(79676),je=oe(53487),Te=oe(92343),Re=oe(36355),Ee=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=ne=>{const{menu:re,arrow:ie,prefixCls:ge,children:ve,trigger:ce,disabled:$e,dropdownRender:Pe,getPopupContainer:Qe,overlayClassName:ht,rootClassName:pt,open:Be,onOpenChange:Ue,visible:Ye,onVisibleChange:Je,mouseEnterDelay:dt=.15,mouseLeaveDelay:Lt=.1,autoAdjustOverflow:Gt=!0,placement:Ot="",overlay:Zt,transitionName:Ce}=ne,{getPopupContainer:Ge,getPrefixCls:et,direction:wt}=te.useContext(Re.E_),at=te.useMemo(()=>{const Se=et();return Ce!==void 0?Ce:Ot.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[et,Ot,Ce]),Pt=te.useMemo(()=>Ot?Ot.includes("Center")?Ot.slice(0,Ot.indexOf("Center")):Ot:wt==="rtl"?"bottomRight":"bottomLeft",[Ot,wt]),me=et("dropdown",ge),[_e,ke]=(0,y.Z)(me),[,xt]=(0,a.Z)(),gt=te.Children.only(ve),Ae=(0,Te.Tm)(gt,{className:Ze()(`${me}-trigger`,{[`${me}-rtl`]:wt==="rtl"},gt.props.className),disabled:$e}),be=$e?[]:ce;let pe;be&&be.includes("contextMenu")&&(pe=!0);const[De,He]=(0,de.Z)(!1,{value:Be!=null?Be:Ye}),ot=(0,we.useEvent)(Se=>{Ue==null||Ue(Se),Je==null||Je(Se),He(Se)}),se=Ze()(ht,pt,ke,{[`${me}-rtl`]:wt==="rtl"}),he=(0,Me.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Gt,offset:xt.marginXXS,arrowWidth:ie?xt.sizePopupArrow:0,borderRadius:xt.borderRadius}),rt=te.useCallback(()=>{He(!1)},[]),Ve=()=>{let Se;return re!=null&&re.items?Se=te.createElement(Ee.default,Object.assign({},re)):typeof Zt=="function"?Se=Zt():Se=Zt,Pe&&(Se=Pe(Se)),Se=te.Children.only(typeof Se=="string"?te.createElement("span",null,Se):Se),te.createElement(ae.J,{prefixCls:`${me}-menu`,expandIcon:te.createElement("span",{className:`${me}-menu-submenu-arrow`},te.createElement(ue.Z,{className:`${me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:rt,validator:We=>{let{mode:vt}=We}},Se)};return _e(te.createElement(ye.Z,Object.assign({alignPoint:pe},(0,Xe.Z)(ne,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Lt,visible:De,builtinPlacements:he,arrow:!!ie,overlayClassName:se,prefixCls:me,getPopupContainer:Qe||Ge,transitionName:at,trigger:be,overlay:Ve,placement:Pt,onVisibleChange:ot}),Ae))};function x(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,je.Z)(b,"dropdown",ne=>ne,x),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,lt.Z=b},47211:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return Te}});var te=oe(17313),ue=oe(13826),Ke=oe(92899),Ze=oe(29878),ye=oe(19447),we=oe(83116),de=oe(37613),Me=Re=>{const{componentCls:Ee,menuCls:ae,colorError:a,colorTextLightSolid:y}=Re,E=`${ae}-item`;return{[`${Ee}, ${Ee}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const je=Re=>{const{componentCls:Ee,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ve,colorBgElevated:ce}=Re;return[{[Ee]:Object.assign(Object.assign({},(0,te.Wf)(Re)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${Ee}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ee}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ee}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ee}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ee}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ee}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ee}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ee}-placement-bottomRight`]:{animationName:ue.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ee}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ee}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ee}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ee}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ee}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ee}-placement-topRight`]:{animationName:ue.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ee}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ee}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ee}-placement-bottomRight`]:{animationName:ue.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ee}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ee}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ee}-placement-topRight`]:{animationName:ue.ly}})},(0,ye.ZP)(Re,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ee} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ee}, ${Ee}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,te.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ve}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Re.marginXS,fontSize:Re.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ve}px`,color:Re.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,te.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${Ee}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${Ee}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ve+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ee}-menu-submenu-title`]:{[`&, ${Ee}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ee}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,ue.oN)(Re,"slide-up"),(0,ue.oN)(Re,"slide-down"),(0,Ke.Fm)(Re,"move-up"),(0,Ke.Fm)(Re,"move-down"),(0,Ze._y)(Re,"zoom-big")]]};var Te=(0,we.Z)("Dropdown",(Re,Ee)=>{let{rootPrefixCls:ae}=Ee;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ye.fS)({contentRadius:ne}),ge=(0,de.TS)(Re,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[je(ge),Me(ge)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},8628:function(Ie,lt,oe){"use strict";var te=oe(59301),ue=oe(34280),Ke=oe(56762),Ze=oe(69507);function ye(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const de=(0,te.useRef)({}),Xe=(0,Ke.Z)(),Me=(0,Ze.ZP)();return(0,ue.Z)(()=>{const je=Me.subscribe(Te=>{de.current=Te,we&&Xe()});return()=>Me.unsubscribe(je)},[]),de.current}lt.Z=ye},45818:function(Ie,lt,oe){"use strict";oe.d(lt,{D:function(){return z},Z:function(){return re}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(ge,ve){return ue.createElement(ye.Z,(0,te.Z)({},ge,{ref:ve,icon:Ze}))},de=ue.forwardRef(we),Xe=de,Me=oe(33853),je=oe(38819),Te=oe(92310),Re=oe.n(Te),Ee=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ve={};for(var ce in ie)Object.prototype.hasOwnProperty.call(ie,ce)&&ge.indexOf(ce)<0&&(ve[ce]=ie[ce]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ce=Object.getOwnPropertySymbols(ie);$e<ce.length;$e++)ge.indexOf(ce[$e])<0&&Object.prototype.propertyIsEnumerable.call(ie,ce[$e])&&(ve[ce[$e]]=ie[ce[$e]]);return ve};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ue.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=ue.forwardRef((ie,ge)=>{const{prefixCls:ve,className:ce,trigger:$e,children:Pe,defaultCollapsed:Qe=!1,theme:ht="dark",style:pt={},collapsible:Be=!1,reverseArrow:Ue=!1,width:Ye=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:dt,breakpoint:Lt,onCollapse:Gt,onBreakpoint:Ot}=ie,Zt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ce}=(0,ue.useContext)(E.Gs),[Ge,et]=(0,ue.useState)("collapsed"in ie?ie.collapsed:Qe),[wt,at]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in ie&&et(ie.collapsed)},[ie.collapsed]);const Pt=(Ae,be)=>{"collapsed"in ie||et(Ae),Gt==null||Gt(Ae,be)},me=(0,ue.useRef)();me.current=Ae=>{at(Ae.matches),Ot==null||Ot(Ae.matches),Ge!==Ae.matches&&Pt(Ae.matches,"responsive")},(0,ue.useEffect)(()=>{function Ae(pe){return me.current(pe)}let be;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&Lt&&Lt in x){be=pe(`(max-width: ${x[Lt]})`);try{be.addEventListener("change",Ae)}catch(De){be.addListener(Ae)}Ae(be)}}return()=>{try{be==null||be.removeEventListener("change",Ae)}catch(pe){be==null||be.removeListener(Ae)}}},[Lt]),(0,ue.useEffect)(()=>{const Ae=ee("ant-sider-");return Ce.addSider(Ae),()=>Ce.removeSider(Ae)},[]);const _e=()=>{Pt(!Ge,"clickTrigger")},{getPrefixCls:ke}=(0,ue.useContext)(y.E_),xt=()=>{const Ae=ke("layout-sider",ve),be=(0,Ee.Z)(Zt,["collapsed"]),pe=Ge?Je:Ye,De=a(pe)?`${pe}px`:String(pe),He=parseFloat(String(Je||0))===0?ue.createElement("span",{onClick:_e,className:Re()(`${Ae}-zero-width-trigger`,`${Ae}-zero-width-trigger-${Ue?"right":"left"}`),style:dt},$e||ue.createElement(Xe,null)):null,he={expanded:Ue?ue.createElement(je.Z,null):ue.createElement(Me.Z,null),collapsed:Ue?ue.createElement(Me.Z,null):ue.createElement(je.Z,null)}[Ge?"collapsed":"expanded"],rt=$e!==null?He||ue.createElement("div",{className:`${Ae}-trigger`,onClick:_e,style:{width:De}},$e||he):null,Ve=Object.assign(Object.assign({},pt),{flex:`0 0 ${De}`,maxWidth:De,minWidth:De,width:De}),Se=Re()(Ae,`${Ae}-${ht}`,{[`${Ae}-collapsed`]:!!Ge,[`${Ae}-has-trigger`]:Be&&$e!==null&&!He,[`${Ae}-below`]:!!wt,[`${Ae}-zero-width`]:parseFloat(De)===0},ce);return ue.createElement("aside",Object.assign({className:Se},be,{style:Ve,ref:ge}),ue.createElement("div",{className:`${Ae}-children`},Pe),Be||wt&&He?rt:null)},gt=ue.useMemo(()=>({siderCollapsed:Ge}),[Ge]);return ue.createElement(z.Provider,{value:gt},xt())})},44e3:function(Ie,lt,oe){"use strict";var te=oe(84966),ue=oe(45818);const Ke=te.ZP;Ke.Header=te.h4,Ke.Footer=te.$_,Ke.Content=te.VY,Ke.Sider=ue.Z,lt.default=Ke},84966:function(Ie,lt,oe){"use strict";oe.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ee},ZP:function(){return ee}});var te=oe(26407),ue=oe(92310),Ke=oe.n(ue),Ze=oe(2738),ye=oe(59301),we=oe(36355),de=oe(83116),Me=ne=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ve,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:ce,background:ve},[`${re}-sider-zero-width-trigger`]:{color:ce,background:ve,border:`1px solid ${ie}`,borderInlineStart:0}}}};const je=ne=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ve,footerBg:ce,triggerBg:$e,headerHeight:Pe,headerPadding:Qe,headerColor:ht,footerPadding:pt,triggerHeight:Be,zeroTriggerHeight:Ue,zeroTriggerWidth:Ye,motionDurationMid:Je,motionDurationSlow:dt,fontSize:Lt,borderRadius:Gt,bodyBg:Ot,headerBg:Zt,siderBg:Ce}=ne;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ot,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:Ce,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Be,color:ve,lineHeight:`${Be}px`,textAlign:"center",background:$e,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Pe,insetInlineEnd:-Ye,zIndex:1,width:Ye,height:Ue,color:ve,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ce,borderStartStartRadius:0,borderStartEndRadius:Gt,borderEndEndRadius:Gt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ye,borderStartStartRadius:Gt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Gt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Pe,padding:Qe,color:ht,lineHeight:`${Pe}px`,background:Zt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:pt,color:ge,fontSize:Lt,background:ce},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,de.Z)("Layout",ne=>[je(ne)],ne=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ve,controlHeightSM:ce,marginXXS:$e,colorTextLightSolid:Pe,colorBgContainer:Qe}=ne,ht=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${ht}px`,headerColor:ve,footerPadding:`${ce}px ${ht}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+$e*2,triggerBg:"#002140",triggerColor:Pe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=function(ne,re){var ie={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&re.indexOf(ge)<0&&(ie[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,ge=Object.getOwnPropertySymbols(ne);ve<ge.length;ve++)re.indexOf(ge[ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[ve])&&(ie[ge[ve]]=ne[ge[ve]]);return ie};const Ee=ye.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ie,displayName:ge}=ne;return ve=>ye.forwardRef(($e,Pe)=>ye.createElement(ve,Object.assign({ref:Pe,suffixCls:re,tagName:ie},$e)))}const a=ye.forwardRef((ne,re)=>{const{prefixCls:ie,suffixCls:ge,className:ve,tagName:ce}=ne,$e=Re(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Pe}=ye.useContext(we.E_),Qe=Pe("layout",ie),[ht,pt]=Te(Qe),Be=ge?`${Qe}-${ge}`:Qe;return ht(ye.createElement(ce,Object.assign({className:Ke()(ie||Be,ve,pt),ref:re},$e)))}),y=ye.forwardRef((ne,re)=>{const{direction:ie}=ye.useContext(we.E_),[ge,ve]=ye.useState([]),{prefixCls:ce,className:$e,rootClassName:Pe,children:Qe,hasSider:ht,tagName:pt,style:Be}=ne,Ue=Re(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ye=(0,Ze.Z)(Ue,["suffixCls"]),{getPrefixCls:Je,layout:dt}=ye.useContext(we.E_),Lt=Je("layout",ce),[Gt,Ot]=Te(Lt),Zt=Ke()(Lt,{[`${Lt}-has-sider`]:typeof ht=="boolean"?ht:ge.length>0,[`${Lt}-rtl`]:ie==="rtl"},dt==null?void 0:dt.className,$e,Pe,Ot),Ce=ye.useMemo(()=>({siderHook:{addSider:Ge=>{ve(et=>[].concat((0,te.Z)(et),[Ge]))},removeSider:Ge=>{ve(et=>et.filter(wt=>wt!==Ge))}}}),[]);return Gt(ye.createElement(Ee.Provider,{value:Ce},ye.createElement(pt,Object.assign({ref:re,className:Zt,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Be)},Ye),Qe)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ie,lt,oe){"use strict";oe.d(lt,{J:function(){return we}});var te=oe(59301),ue=oe(33234),Ke=oe(70425),Ze=function(de,Xe){var Me={};for(var je in de)Object.prototype.hasOwnProperty.call(de,je)&&Xe.indexOf(je)<0&&(Me[je]=de[je]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,je=Object.getOwnPropertySymbols(de);Te<je.length;Te++)Xe.indexOf(je[Te])<0&&Object.prototype.propertyIsEnumerable.call(de,je[Te])&&(Me[je[Te]]=de[je[Te]]);return Me};const ye=te.createContext(null),we=te.forwardRef((de,Xe)=>{const{children:Me}=de,je=Ze(de,["children"]),Te=te.useContext(ye),Re=te.useMemo(()=>Object.assign(Object.assign({},Te),je),[Te,je.prefixCls,je.mode,je.selectable]);return te.createElement(ye.Provider,{value:Re},te.createElement(ue.BR,null,(0,Ke.supportNodeRef)(Me)?te.cloneElement(Me,{ref:Xe}):Me))});lt.Z=ye},20834:function(Ie,lt,oe){"use strict";oe.d(lt,{default:function(){return gt}});var te=oe(15285),ue=oe(59301),Ke=oe(45818),Ze=oe(92310),ye=oe.n(Ze),we=oe(36355),de=function(Ae,be){var pe={};for(var De in Ae)Object.prototype.hasOwnProperty.call(Ae,De)&&be.indexOf(De)<0&&(pe[De]=Ae[De]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,De=Object.getOwnPropertySymbols(Ae);He<De.length;He++)be.indexOf(De[He])<0&&Object.prototype.propertyIsEnumerable.call(Ae,De[He])&&(pe[De[He]]=Ae[De[He]]);return pe},Me=Ae=>{const{prefixCls:be,className:pe,dashed:De}=Ae,He=de(Ae,["prefixCls","className","dashed"]),{getPrefixCls:ot}=ue.useContext(we.E_),se=ot("menu",be),he=ye()({[`${se}-item-divider-dashed`]:!!De},pe);return ue.createElement(te.iz,Object.assign({className:he},He))},je=oe(11592),Te=oe(2738),Re=oe(6848),Ee=oe(92343),a=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ae=>{var be;const{className:pe,children:De,icon:He,title:ot,danger:se}=Ae,{prefixCls:he,firstLevel:rt,direction:Ve,disableMenuItemTitleTooltip:Se,inlineCollapsed:We}=ue.useContext(a),vt=At=>{const Dt=ue.createElement("span",{className:`${he}-title-content`},De);return(!He||(0,Ee.l$)(De)&&De.type==="span")&&De&&At&&rt&&typeof De=="string"?ue.createElement("div",{className:`${he}-inline-collapsed-noicon`},De.charAt(0)):Dt},{siderCollapsed:ut}=ue.useContext(Ke.D);let yt=ot;typeof ot=="undefined"?yt=rt?De:"":ot===!1&&(yt="");const nt={title:yt};!ut&&!We&&(nt.title=null,nt.open=!1);const ct=(0,je.Z)(De).length;let mt=ue.createElement(te.ck,Object.assign({},(0,Te.Z)(Ae,["title","icon","danger"]),{className:ye()({[`${he}-item-danger`]:se,[`${he}-item-only-child`]:(He?ct+1:ct)===1},pe),title:typeof ot=="string"?ot:void 0}),(0,Ee.Tm)(He,{className:ye()((0,Ee.l$)(He)?(be=He.props)===null||be===void 0?void 0:be.className:"",`${he}-item-icon`)}),vt(We));return Se||(mt=ue.createElement(Re.Z,Object.assign({},nt,{placement:Ve==="rtl"?"left":"right",overlayClassName:`${he}-inline-collapsed-tooltip`}),mt)),mt},x=Ae=>{var be;const{popupClassName:pe,icon:De,title:He,theme:ot}=Ae,se=ue.useContext(a),{prefixCls:he,inlineCollapsed:rt,theme:Ve}=se,Se=(0,te.Xl)();let We;if(!De)We=rt&&!Se.length&&He&&typeof He=="string"?ue.createElement("div",{className:`${he}-inline-collapsed-noicon`},He.charAt(0)):ue.createElement("span",{className:`${he}-title-content`},He);else{const ut=(0,Ee.l$)(He)&&He.type==="span";We=ue.createElement(ue.Fragment,null,(0,Ee.Tm)(De,{className:ye()((0,Ee.l$)(De)?(be=De.props)===null||be===void 0?void 0:be.className:"",`${he}-item-icon`)}),ut?He:ue.createElement("span",{className:`${he}-title-content`},He))}const vt=ue.useMemo(()=>Object.assign(Object.assign({},se),{firstLevel:!1}),[se]);return ue.createElement(a.Provider,{value:vt},ue.createElement(te.Wd,Object.assign({},(0,Te.Z)(Ae,["icon"]),{title:We,popupClassName:ye()(he,pe,`${he}-${ot||Ve}`)})))},z=oe(18785),ee=oe(70425),ne=oe(62892),re=oe(40875),ie=function(Ae,be){var pe={};for(var De in Ae)Object.prototype.hasOwnProperty.call(Ae,De)&&be.indexOf(De)<0&&(pe[De]=Ae[De]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,De=Object.getOwnPropertySymbols(Ae);He<De.length;He++)be.indexOf(De[He])<0&&Object.prototype.propertyIsEnumerable.call(Ae,De[He])&&(pe[De[He]]=Ae[De[He]]);return pe};function ge(Ae){return(Ae||[]).map((be,pe)=>{if(be&&typeof be=="object"){const De=be,{label:He,children:ot,key:se,type:he}=De,rt=ie(De,["label","children","key","type"]),Ve=se!=null?se:`tmp-${pe}`;return ot||he==="group"?he==="group"?ue.createElement(te.BW,Object.assign({key:Ve},rt,{title:He}),ge(ot)):ue.createElement(x,Object.assign({key:Ve},rt,{title:He}),ge(ot)):he==="divider"?ue.createElement(Me,Object.assign({key:Ve},rt)):ue.createElement(E,Object.assign({key:Ve},rt),He)}return null}).filter(be=>be)}function ve(Ae){return ue.useMemo(()=>Ae&&ge(Ae),[Ae])}var ce=oe(64993),$e=oe(17313),Pe=oe(8378),Qe=oe(13826),ht=oe(29878),pt=oe(83116),Be=oe(37613),Ye=Ae=>{const{componentCls:be,motionDurationSlow:pe,horizontalLineHeight:De,colorSplit:He,lineWidth:ot,lineType:se,itemPaddingInline:he}=Ae;return{[`${be}-horizontal`]:{lineHeight:De,border:0,borderBottom:`${ot}px ${se} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:he},[`> ${be}-item:hover,
> ${be}-item-active,
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},dt=Ae=>{let{componentCls:be,menuArrowOffset:pe}=Ae;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Lt=Ae=>Object.assign({},(0,$e.oN)(Ae));var Ot=(Ae,be)=>{const{componentCls:pe,itemColor:De,itemSelectedColor:He,groupTitleColor:ot,itemBg:se,subMenuItemBg:he,itemSelectedBg:rt,activeBarHeight:Ve,activeBarWidth:Se,activeBarBorderWidth:We,motionDurationSlow:vt,motionEaseInOut:ut,motionEaseOut:yt,itemPaddingInline:nt,motionDurationMid:ct,itemHoverColor:mt,lineType:At,colorSplit:Dt,itemDisabledColor:Mt,dangerItemColor:Wt,dangerItemHoverColor:Rt,dangerItemSelectedColor:qt,dangerItemActiveBg:Ht,dangerItemSelectedBg:sn,itemHoverBg:Pn,itemActiveBg:vn,menuSubMenuBg:kn,horizontalItemSelectedColor:jn,horizontalItemSelectedBg:En,horizontalItemBorderRadius:rn,horizontalItemHoverBg:An,popupBg:Tn}=Ae;return{[`${pe}-${be}, ${pe}-${be} > ${pe}`]:{color:De,background:se,[`&${pe}-root:focus-visible`]:Object.assign({},Lt(Ae)),[`${pe}-item-group-title`]:{color:ot},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:He}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${Mt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:mt}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:vn}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Pn},"&:active":{backgroundColor:vn}}},[`${pe}-item-danger`]:{color:Wt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Rt}},[`&${pe}-item:active`]:{background:Ht}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:He,[`&${pe}-item-danger`]:{color:qt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:rt,[`&${pe}-item-danger`]:{backgroundColor:sn}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Lt(Ae))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:kn},[`&${pe}-popup > ${pe}`]:{backgroundColor:Tn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:We,marginTop:-We,marginBottom:0,borderRadius:rn,"&::after":{position:"absolute",insetInline:nt,bottom:0,borderBottom:`${Ve}px solid transparent`,transition:`border-color ${vt} ${ut}`,content:'""'},"&:hover, &-active, &-open":{background:An,"&::after":{borderBottomWidth:Ve,borderBottomColor:jn}},"&-selected":{color:jn,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:Ve,borderBottomColor:jn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${We}px ${At} ${Dt}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:he},[`${pe}-item, ${pe}-submenu-title`]:We&&Se?{width:`calc(100% + ${We}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Se}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ct} ${yt}`,`opacity ${ct} ${yt}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:qt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ct} ${ut}`,`opacity ${ct} ${ut}`].join(",")}}}}}};const Zt=Ae=>{const{componentCls:be,itemHeight:pe,itemMarginInline:De,padding:He,menuArrowSize:ot,marginXS:se,itemMarginBlock:he}=Ae,rt=He+ot+se;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:De,marginBlock:he,width:`calc(100% - ${De*2}px)`},[`> ${be}-item,
> ${be}-submenu > ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${be}-item-group-list ${be}-submenu-title,
${be}-submenu-title`]:{paddingInlineEnd:rt}}};var Ge=Ae=>{const{componentCls:be,iconCls:pe,itemHeight:De,colorTextLightSolid:He,dropdownWidth:ot,controlHeightLG:se,motionDurationMid:he,motionEaseOut:rt,paddingXL:Ve,itemMarginInline:Se,fontSizeLG:We,motionDurationSlow:vt,paddingXS:ut,boxShadowSecondary:yt,collapsedWidth:nt,collapsedIconSize:ct}=Ae,mt={height:De,lineHeight:`${De}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},Zt(Ae))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},Zt(Ae)),{boxShadow:yt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:ot,maxHeight:`calc(100vh - ${se*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vt}`,`background ${vt}`,`padding ${he} ${rt}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:mt,[`& ${be}-item-group-title`]:{paddingInlineStart:Ve}},[`${be}-item`]:mt}},{[`${be}-inline-collapsed`]:{width:nt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:We,textAlign:"center"}}},[`> ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${We/2}px - ${Se}px)`,textOverflow:"clip",[`
${be}-submenu-arrow,
${be}-submenu-expand-icon
`]:{opacity:0},[`${be}-item-icon, ${pe}`]:{margin:0,fontSize:ct,lineHeight:`${De}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:He}},[`${be}-item-group-title`]:Object.assign(Object.assign({},$e.vS),{paddingInline:ut})}}]};const et=Ae=>{const{componentCls:be,motionDurationSlow:pe,motionDurationMid:De,motionEaseInOut:He,motionEaseOut:ot,iconCls:se,iconSize:he,iconMarginInlineEnd:rt}=Ae;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${He}`].join(","),[`${be}-item-icon, ${se}`]:{minWidth:he,fontSize:he,transition:[`font-size ${De} ${ot}`,`margin ${pe} ${He}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:rt,opacity:1,transition:[`opacity ${pe} ${He}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,$e.Ro)()),[`&${be}-item-only-child`]:{[`> ${se}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},wt=Ae=>{const{componentCls:be,motionDurationSlow:pe,motionEaseInOut:De,borderRadius:He,menuArrowSize:ot,menuArrowOffset:se}=Ae;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ae.margin,width:ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${De}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ot*.6,height:ot*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${pe} ${De}`,`transform ${pe} ${De}`,`top ${pe} ${De}`,`color ${pe} ${De}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${se})`},"&::after":{transform:`rotate(-45deg) translateY(${se})`}}}}},at=Ae=>{const{antCls:be,componentCls:pe,fontSize:De,motionDurationSlow:He,motionDurationMid:ot,motionEaseInOut:se,paddingXS:he,padding:rt,colorSplit:Ve,lineWidth:Se,zIndexPopup:We,borderRadiusLG:vt,subMenuItemBorderRadius:ut,menuArrowSize:yt,menuArrowOffset:nt,lineType:ct,menuPanelMaskInset:mt,groupTitleLineHeight:At,groupTitleFontSize:Dt}=Ae;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,$e.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$e.Wf)(Ae)),(0,$e.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:De,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:Ae.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${he}px ${rt}px`,fontSize:Dt,lineHeight:At,transition:`all ${He}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${He} ${se}`,`background ${He} ${se}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${He} ${se}`,`background ${He} ${se}`,`padding ${ot} ${se}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${He} ${se}`,`padding ${He} ${se}`].join(",")},[`${pe}-title-content`]:{transition:`color ${He}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ve,borderStyle:ct,borderWidth:0,borderTopWidth:Se,marginBlock:Se,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(Ae)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${De*2}px ${rt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:We,borderRadius:vt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${mt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:mt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ae.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ae.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ae.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ae.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:vt},et(Ae)),wt(Ae)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:ut},[`${pe}-submenu-title::after`]:{transition:`transform ${He} ${se}`}})}}),wt(Ae)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nt})`},"&::after":{transform:`rotate(45deg) translateX(-${nt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${yt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nt})`},"&::before":{transform:`rotate(45deg) translateX(${nt})`}}})},{[`${be}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var Pt=(Ae,be)=>(0,pt.Z)("Menu",De=>{if(be===!1)return[];const{colorBgElevated:He,colorPrimary:ot,colorTextLightSolid:se,controlHeightLG:he,fontSize:rt,darkItemColor:Ve,darkDangerItemColor:Se,darkItemBg:We,darkSubMenuItemBg:vt,darkItemSelectedColor:ut,darkItemSelectedBg:yt,darkDangerItemSelectedBg:nt,darkItemHoverBg:ct,darkGroupTitleColor:mt,darkItemHoverColor:At,darkItemDisabledColor:Dt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:Rt}=De,qt=rt/7*5,Ht=(0,Be.TS)(De,{menuArrowSize:qt,menuHorizontalHeight:he*1.15,menuArrowOffset:`${qt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),sn=(0,Be.TS)(Ht,{itemColor:Ve,itemHoverColor:At,groupTitleColor:mt,itemSelectedColor:ut,itemBg:We,popupBg:We,subMenuItemBg:vt,itemActiveBg:"transparent",itemSelectedBg:yt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ct,itemDisabledColor:Dt,dangerItemColor:Se,dangerItemHoverColor:Mt,dangerItemSelectedColor:Wt,dangerItemActiveBg:Rt,dangerItemSelectedBg:nt,menuSubMenuBg:vt,horizontalItemSelectedColor:se,horizontalItemSelectedBg:ot});return[at(Ht),Ye(Ht),Ge(Ht),Ot(Ht,"light"),Ot(sn,"dark"),dt(Ht),(0,Pe.Z)(Ht),(0,Qe.oN)(Ht,"slide-up"),(0,Qe.oN)(Ht,"slide-down"),(0,ht._y)(Ht,"zoom-big")]},De=>{const{colorPrimary:He,colorError:ot,colorTextDisabled:se,colorErrorBg:he,colorText:rt,colorTextDescription:Ve,colorBgContainer:Se,colorFillAlter:We,colorFillContent:vt,lineWidth:ut,lineWidthBold:yt,controlItemBgActive:nt,colorBgTextHover:ct,controlHeightLG:mt,lineHeight:At,colorBgElevated:Dt,marginXXS:Mt,padding:Wt,fontSize:Rt,controlHeightSM:qt,fontSizeLG:Ht,colorTextLightSolid:sn,colorErrorHover:Pn}=De,vn=new ce.C(sn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:De.zIndexPopupBase+50,radiusItem:De.borderRadiusLG,itemBorderRadius:De.borderRadiusLG,radiusSubMenuItem:De.borderRadiusSM,subMenuItemBorderRadius:De.borderRadiusSM,colorItemText:rt,itemColor:rt,colorItemTextHover:rt,itemHoverColor:rt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Ve,groupTitleColor:Ve,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:Se,itemBg:Se,colorItemBgHover:ct,itemHoverBg:ct,colorItemBgActive:vt,itemActiveBg:nt,colorSubItemBg:We,subMenuItemBg:We,colorItemBgSelected:nt,itemSelectedBg:nt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:yt,activeBarHeight:yt,colorActiveBarBorderSize:ut,activeBarBorderWidth:ut,colorItemTextDisabled:se,itemDisabledColor:se,colorDangerItemText:ot,dangerItemColor:ot,colorDangerItemTextHover:ot,dangerItemHoverColor:ot,colorDangerItemTextSelected:ot,dangerItemSelectedColor:ot,colorDangerItemBgActive:he,dangerItemActiveBg:he,colorDangerItemBgSelected:he,dangerItemSelectedBg:he,itemMarginInline:De.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:mt,groupTitleLineHeight:At,collapsedWidth:mt*2,popupBg:Dt,itemMarginBlock:Mt,itemPaddingInline:Wt,horizontalLineHeight:`${mt*1.15}px`,iconSize:Rt,iconMarginInlineEnd:qt-Rt,collapsedIconSize:Ht,groupTitleFontSize:Rt,darkItemDisabledColor:new ce.C(sn).setAlpha(.25).toRgbString(),darkItemColor:vn,darkDangerItemColor:ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:sn,darkItemSelectedBg:He,darkDangerItemSelectedBg:ot,darkItemHoverBg:"transparent",darkGroupTitleColor:vn,darkItemHoverColor:sn,darkDangerItemHoverColor:Pn,darkDangerItemSelectedColor:sn,darkDangerItemActiveBg:ot}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ae),me=function(Ae,be){var pe={};for(var De in Ae)Object.prototype.hasOwnProperty.call(Ae,De)&&be.indexOf(De)<0&&(pe[De]=Ae[De]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,De=Object.getOwnPropertySymbols(Ae);He<De.length;He++)be.indexOf(De[He])<0&&Object.prototype.propertyIsEnumerable.call(Ae,De[He])&&(pe[De[He]]=Ae[De[He]]);return pe},ke=(0,ue.forwardRef)((Ae,be)=>{var pe,De;const He=ue.useContext(re.Z),ot=He||{},{getPrefixCls:se,getPopupContainer:he,direction:rt,menu:Ve}=ue.useContext(we.E_),Se=se(),{prefixCls:We,className:vt,style:ut,theme:yt="light",expandIcon:nt,_internalDisableMenuItemTitleTooltip:ct,inlineCollapsed:mt,siderCollapsed:At,items:Dt,children:Mt,rootClassName:Wt,mode:Rt,selectable:qt,onClick:Ht,overflowedIndicatorPopupClassName:sn}=Ae,Pn=me(Ae,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),vn=(0,Te.Z)(Pn,["collapsedWidth"]),kn=ve(Dt)||Mt;(pe=ot.validator)===null||pe===void 0||pe.call(ot,{mode:Rt});const jn=(0,ee.useEvent)(function(){var Mn;Ht==null||Ht.apply(void 0,arguments),(Mn=ot.onClick)===null||Mn===void 0||Mn.call(ot)}),En=ot.mode||Rt,rn=qt!=null?qt:ot.selectable,An=ue.useMemo(()=>At!==void 0?At:mt,[mt,At]),Tn={horizontal:{motionName:`${Se}-slide-up`},inline:(0,ne.Z)(Se),other:{motionName:`${Se}-zoom-big`}},Ut=se("menu",We||ot.prefixCls),[Sn,Vn]=Pt(Ut,!He),ta=ye()(`${Ut}-${yt}`,Ve==null?void 0:Ve.className,vt);let Wn;if(typeof nt=="function")Wn=nt;else if(nt===null||nt===!1)Wn=null;else if(ot.expandIcon===null||ot.expandIcon===!1)Wn=null;else{const Mn=nt!=null?nt:ot.expandIcon;Wn=(0,Ee.Tm)(Mn,{className:ye()(`${Ut}-submenu-expand-icon`,(0,Ee.l$)(Mn)?(De=Mn.props)===null||De===void 0?void 0:De.className:"")})}const ra=ue.useMemo(()=>({prefixCls:Ut,inlineCollapsed:An||!1,direction:rt,firstLevel:!0,theme:yt,mode:En,disableMenuItemTitleTooltip:ct}),[Ut,An,rt,ct,yt]);return Sn(ue.createElement(re.Z.Provider,{value:null},ue.createElement(a.Provider,{value:ra},ue.createElement(te.ZP,Object.assign({getPopupContainer:he,overflowedIndicator:ue.createElement(z.Z,null),overflowedIndicatorPopupClassName:ye()(Ut,`${Ut}-${yt}`,sn),mode:En,selectable:rn,onClick:jn},vn,{inlineCollapsed:An,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),ut),className:ta,prefixCls:Ut,direction:rt,defaultMotions:Tn,expandIcon:Wn,ref:be,rootClassName:ye()(Wt,Vn)}),kn))))});const xt=(0,ue.forwardRef)((Ae,be)=>{const pe=(0,ue.useRef)(null),De=ue.useContext(Ke.D);return(0,ue.useImperativeHandle)(be,()=>({menu:pe.current,focus:He=>{var ot;(ot=pe.current)===null||ot===void 0||ot.focus(He)}})),ue.createElement(ke,Object.assign({ref:pe},Ae,De))});xt.Item=E,xt.SubMenu=x,xt.Divider=Me,xt.ItemGroup=te.BW;var gt=xt},58421:function(Ie,lt,oe){"use strict";oe.d(lt,{Z:function(){return ot}});var te=oe(92413),ue=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ze=Ke,ye=oe(7657),we=function(he,rt){return ue.createElement(ye.Z,(0,te.Z)({},he,{ref:rt,icon:Ze}))},de=ue.forwardRef(we),Xe=de,Me=oe(49198),je=oe(33853),Te=oe(38819),Re=oe(92310),Ee=oe.n(Re),ae=oe(400),a=oe(33708),y=oe(6909),E=oe(4771),b=oe(9427),x=oe(25440),z=oe(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ne=ee,re=oe(91735),ie=function(se){(0,b.Z)(rt,se);var he=(0,x.Z)(rt);function rt(){var Ve;(0,y.Z)(this,rt);for(var Se=arguments.length,We=new Array(Se),vt=0;vt<Se;vt++)We[vt]=arguments[vt];return Ve=he.call.apply(he,[this].concat(We)),Ve.state={goInputText:""},Ve.getValidValue=function(){var ut=Ve.state.goInputText;return!ut||Number.isNaN(ut)?void 0:Number(ut)},Ve.buildOptionText=function(ut){return"".concat(ut," ").concat(Ve.props.locale.items_per_page)},Ve.changeSize=function(ut){Ve.props.changeSize(Number(ut))},Ve.handleChange=function(ut){Ve.setState({goInputText:ut.target.value})},Ve.handleBlur=function(ut){var yt=Ve.props,nt=yt.goButton,ct=yt.quickGo,mt=yt.rootPrefixCls,At=Ve.state.goInputText;nt||At===""||(Ve.setState({goInputText:""}),!(ut.relatedTarget&&(ut.relatedTarget.className.indexOf("".concat(mt,"-item-link"))>=0||ut.relatedTarget.className.indexOf("".concat(mt,"-item"))>=0))&&ct(Ve.getValidValue()))},Ve.go=function(ut){var yt=Ve.state.goInputText;yt!==""&&(ut.keyCode===ne.ENTER||ut.type==="click")&&(Ve.setState({goInputText:""}),Ve.props.quickGo(Ve.getValidValue()))},Ve}return(0,E.Z)(rt,[{key:"getPageSizeOptions",value:function(){var Se=this.props,We=Se.pageSize,vt=Se.pageSizeOptions;return vt.some(function(ut){return ut.toString()===We.toString()})?vt:vt.concat([We.toString()]).sort(function(ut,yt){var nt=Number.isNaN(Number(ut))?0:Number(ut),ct=Number.isNaN(Number(yt))?0:Number(yt);return nt-ct})}},{key:"render",value:function(){var Se=this,We=this.props,vt=We.pageSize,ut=We.locale,yt=We.rootPrefixCls,nt=We.changeSize,ct=We.quickGo,mt=We.goButton,At=We.selectComponentClass,Dt=We.buildOptionText,Mt=We.selectPrefixCls,Wt=We.disabled,Rt=this.state.goInputText,qt="".concat(yt,"-options"),Ht=At,sn=null,Pn=null,vn=null;if(!nt&&!ct)return null;var kn=this.getPageSizeOptions();if(nt&&Ht){var jn=kn.map(function(En,rn){return ue.createElement(Ht.Option,{key:rn,value:En.toString()},(Dt||Se.buildOptionText)(En))});sn=ue.createElement(Ht,{disabled:Wt,prefixCls:Mt,showSearch:!1,className:"".concat(qt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(vt||kn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(rn){return rn.parentNode},"aria-label":ut.page_size,defaultOpen:!1},jn)}return ct&&(mt&&(vn=typeof mt=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Wt,className:"".concat(qt,"-quick-jumper-button")},ut.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},mt)),Pn=ue.createElement("div",{className:"".concat(qt,"-quick-jumper")},ut.jump_to,ue.createElement("input",{disabled:Wt,type:"text",value:Rt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ut.page}),ut.page,vn)),ue.createElement("li",{className:"".concat(qt)},sn,Pn)}}]),rt}(ue.Component);ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var ge=ie,ve=function(he){var rt,Ve=he.rootPrefixCls,Se=he.page,We=he.active,vt=he.className,ut=he.showTitle,yt=he.onClick,nt=he.onKeyPress,ct=he.itemRender,mt="".concat(Ve,"-item"),At=Ee()(mt,"".concat(mt,"-").concat(Se),(rt={},(0,ae.Z)(rt,"".concat(mt,"-active"),We),(0,ae.Z)(rt,"".concat(mt,"-disabled"),!Se),(0,ae.Z)(rt,he.className,vt),rt)),Dt=function(){yt(Se)},Mt=function(qt){nt(qt,yt,Se)},Wt=ct(Se,"page",ue.createElement("a",{rel:"nofollow"},Se));return Wt?ue.createElement("li",{title:ut?Se.toString():null,className:At,onClick:Dt,onKeyPress:Mt,tabIndex:0},Wt):null},ce=ve;function $e(){}function Pe(se){var he=Number(se);return typeof he=="number"&&!Number.isNaN(he)&&isFinite(he)&&Math.floor(he)===he}var Qe=function(he,rt,Ve){return Ve};function ht(se,he,rt){var Ve=typeof se=="undefined"?he.pageSize:se;return Math.floor((rt.total-1)/Ve)+1}var pt=function(se){(0,b.Z)(rt,se);var he=(0,x.Z)(rt);function rt(Ve){var Se;(0,y.Z)(this,rt),Se=he.call(this,Ve),Se.paginationNode=ue.createRef(),Se.getJumpPrevPage=function(){return Math.max(1,Se.state.current-(Se.props.showLessItems?3:5))},Se.getJumpNextPage=function(){return Math.min(ht(void 0,Se.state,Se.props),Se.state.current+(Se.props.showLessItems?3:5))},Se.getItemIcon=function(nt,ct){var mt=Se.props.prefixCls,At=nt||ue.createElement("button",{type:"button","aria-label":ct,className:"".concat(mt,"-item-link")});return typeof nt=="function"&&(At=ue.createElement(nt,(0,a.Z)({},Se.props))),At},Se.isValid=function(nt){var ct=Se.props.total;return Pe(nt)&&nt!==Se.state.current&&Pe(ct)&&ct>0},Se.shouldDisplayQuickJumper=function(){var nt=Se.props,ct=nt.showQuickJumper,mt=nt.total,At=Se.state.pageSize;return mt<=At?!1:ct},Se.handleKeyDown=function(nt){(nt.keyCode===ne.ARROW_UP||nt.keyCode===ne.ARROW_DOWN)&&nt.preventDefault()},Se.handleKeyUp=function(nt){var ct=Se.getValidValue(nt),mt=Se.state.currentInputValue;ct!==mt&&Se.setState({currentInputValue:ct}),nt.keyCode===ne.ENTER?Se.handleChange(ct):nt.keyCode===ne.ARROW_UP?Se.handleChange(ct-1):nt.keyCode===ne.ARROW_DOWN&&Se.handleChange(ct+1)},Se.handleBlur=function(nt){var ct=Se.getValidValue(nt);Se.handleChange(ct)},Se.changePageSize=function(nt){var ct=Se.state.current,mt=ht(nt,Se.state,Se.props);ct=ct>mt?mt:ct,mt===0&&(ct=Se.state.current),typeof nt=="number"&&("pageSize"in Se.props||Se.setState({pageSize:nt}),"current"in Se.props||Se.setState({current:ct,currentInputValue:ct})),Se.props.onShowSizeChange(ct,nt),"onChange"in Se.props&&Se.props.onChange&&Se.props.onChange(ct,nt)},Se.handleChange=function(nt){var ct=Se.props,mt=ct.disabled,At=ct.onChange,Dt=Se.state,Mt=Dt.pageSize,Wt=Dt.current,Rt=Dt.currentInputValue;if(Se.isValid(nt)&&!mt){var qt=ht(void 0,Se.state,Se.props),Ht=nt;return nt>qt?Ht=qt:nt<1&&(Ht=1),"current"in Se.props||Se.setState({current:Ht}),Ht!==Rt&&Se.setState({currentInputValue:Ht}),At(Ht,Mt),Ht}return Wt},Se.prev=function(){Se.hasPrev()&&Se.handleChange(Se.state.current-1)},Se.next=function(){Se.hasNext()&&Se.handleChange(Se.state.current+1)},Se.jumpPrev=function(){Se.handleChange(Se.getJumpPrevPage())},Se.jumpNext=function(){Se.handleChange(Se.getJumpNextPage())},Se.hasPrev=function(){return Se.state.current>1},Se.hasNext=function(){return Se.state.current<ht(void 0,Se.state,Se.props)},Se.runIfEnter=function(nt,ct){if(nt.key==="Enter"||nt.charCode===13){for(var mt=arguments.length,At=new Array(mt>2?mt-2:0),Dt=2;Dt<mt;Dt++)At[Dt-2]=arguments[Dt];ct.apply(void 0,At)}},Se.runIfEnterPrev=function(nt){Se.runIfEnter(nt,Se.prev)},Se.runIfEnterNext=function(nt){Se.runIfEnter(nt,Se.next)},Se.runIfEnterJumpPrev=function(nt){Se.runIfEnter(nt,Se.jumpPrev)},Se.runIfEnterJumpNext=function(nt){Se.runIfEnter(nt,Se.jumpNext)},Se.handleGoTO=function(nt){(nt.keyCode===ne.ENTER||nt.type==="click")&&Se.handleChange(Se.state.currentInputValue)},Se.renderPrev=function(nt){var ct=Se.props,mt=ct.prevIcon,At=ct.itemRender,Dt=At(nt,"prev",Se.getItemIcon(mt,"prev page")),Mt=!Se.hasPrev();return(0,ue.isValidElement)(Dt)?(0,ue.cloneElement)(Dt,{disabled:Mt}):Dt},Se.renderNext=function(nt){var ct=Se.props,mt=ct.nextIcon,At=ct.itemRender,Dt=At(nt,"next",Se.getItemIcon(mt,"next page")),Mt=!Se.hasNext();return(0,ue.isValidElement)(Dt)?(0,ue.cloneElement)(Dt,{disabled:Mt}):Dt};var We=Ve.onChange!==$e,vt="current"in Ve;vt&&!We&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ut=Ve.defaultCurrent;"current"in Ve&&(ut=Ve.current);var yt=Ve.defaultPageSize;return"pageSize"in Ve&&(yt=Ve.pageSize),ut=Math.min(ut,ht(yt,void 0,Ve)),Se.state={current:ut,currentInputValue:ut,pageSize:yt},Se}return(0,E.Z)(rt,[{key:"componentDidUpdate",value:function(Se,We){var vt=this.props.prefixCls;if(We.current!==this.state.current&&this.paginationNode.current){var ut=this.paginationNode.current.querySelector(".".concat(vt,"-item-").concat(We.current));if(ut&&document.activeElement===ut){var yt;ut==null||(yt=ut.blur)===null||yt===void 0||yt.call(ut)}}}},{key:"getValidValue",value:function(Se){var We=Se.target.value,vt=ht(void 0,this.state,this.props),ut=this.state.currentInputValue,yt;return We===""?yt=We:Number.isNaN(Number(We))?yt=ut:We>=vt?yt=vt:yt=Number(We),yt}},{key:"getShowSizeChanger",value:function(){var Se=this.props,We=Se.showSizeChanger,vt=Se.total,ut=Se.totalBoundaryShowSizeChanger;return typeof We!="undefined"?We:vt>ut}},{key:"render",value:function(){var Se=this.props,We=Se.prefixCls,vt=Se.className,ut=Se.style,yt=Se.disabled,nt=Se.hideOnSinglePage,ct=Se.total,mt=Se.locale,At=Se.showQuickJumper,Dt=Se.showLessItems,Mt=Se.showTitle,Wt=Se.showTotal,Rt=Se.simple,qt=Se.itemRender,Ht=Se.showPrevNextJumpers,sn=Se.jumpPrevIcon,Pn=Se.jumpNextIcon,vn=Se.selectComponentClass,kn=Se.selectPrefixCls,jn=Se.pageSizeOptions,En=this.state,rn=En.current,An=En.pageSize,Tn=En.currentInputValue;if(nt===!0&&ct<=An)return null;var Ut=ht(void 0,this.state,this.props),Sn=[],Vn=null,ta=null,Wn=null,ra=null,Mn=null,Qn=At&&At.goButton,Qt=Dt?1:2,qn=rn-1>0?rn-1:0,Le=rn+1<Ut?rn+1:Ut,Oe=(0,z.Z)(this.props,{aria:!0,data:!0}),xe=Wt&&ue.createElement("li",{className:"".concat(We,"-total-text")},Wt(ct,[ct===0?0:(rn-1)*An+1,rn*An>ct?ct:rn*An]));if(Rt){Qn&&(typeof Qn=="boolean"?Mn=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},mt.jump_to_confirm):Mn=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Qn),Mn=ue.createElement("li",{title:Mt?"".concat(mt.jump_to).concat(rn,"/").concat(Ut):null,className:"".concat(We,"-simple-pager")},Mn));var St=this.renderPrev(qn);return ue.createElement("ul",(0,te.Z)({className:Ee()(We,"".concat(We,"-simple"),(0,ae.Z)({},"".concat(We,"-disabled"),yt),vt),style:ut,ref:this.paginationNode},Oe),xe,St?ue.createElement("li",{title:Mt?mt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ee()("".concat(We,"-prev"),(0,ae.Z)({},"".concat(We,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},St):null,ue.createElement("li",{title:Mt?"".concat(rn,"/").concat(Ut):null,className:"".concat(We,"-simple-pager")},ue.createElement("input",{type:"text",value:Tn,disabled:yt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(We,"-slash")},"/"),Ut),ue.createElement("li",{title:Mt?mt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ee()("".concat(We,"-next"),(0,ae.Z)({},"".concat(We,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Le)),Mn)}if(Ut<=3+Qt*2){var Bt={locale:mt,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mt,itemRender:qt};Ut||Sn.push(ue.createElement(ce,(0,te.Z)({},Bt,{key:"noPager",page:1,className:"".concat(We,"-item-disabled")})));for(var Ft=1;Ft<=Ut;Ft+=1){var dn=rn===Ft;Sn.push(ue.createElement(ce,(0,te.Z)({},Bt,{key:Ft,page:Ft,active:dn})))}}else{var Kt=Dt?mt.prev_3:mt.prev_5,$t=Dt?mt.next_3:mt.next_5,Vt=qt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(sn,"prev page")),wn=qt(this.getJumpNextPage(),"jump-next",this.getItemIcon(Pn,"next page"));Ht&&(Vn=Vt?ue.createElement("li",{title:Mt?Kt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ee()("".concat(We,"-jump-prev"),(0,ae.Z)({},"".concat(We,"-jump-prev-custom-icon"),!!sn))},Vt):null,ta=wn?ue.createElement("li",{title:Mt?$t:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ee()("".concat(We,"-jump-next"),(0,ae.Z)({},"".concat(We,"-jump-next-custom-icon"),!!Pn))},wn):null),ra=ue.createElement(ce,{locale:mt,last:!0,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ut,page:Ut,active:!1,showTitle:Mt,itemRender:qt}),Wn=ue.createElement(ce,{locale:mt,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mt,itemRender:qt});var tt=Math.max(1,rn-Qt),Xt=Math.min(rn+Qt,Ut);rn-1<=Qt&&(Xt=1+Qt*2),Ut-rn<=Qt&&(tt=Ut-Qt*2);for(var Cn=tt;Cn<=Xt;Cn+=1){var na=rn===Cn;Sn.push(ue.createElement(ce,{locale:mt,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Cn,page:Cn,active:na,showTitle:Mt,itemRender:qt}))}rn-1>=Qt*2&&rn!==3&&(Sn[0]=(0,ue.cloneElement)(Sn[0],{className:"".concat(We,"-item-after-jump-prev")}),Sn.unshift(Vn)),Ut-rn>=Qt*2&&rn!==Ut-2&&(Sn[Sn.length-1]=(0,ue.cloneElement)(Sn[Sn.length-1],{className:"".concat(We,"-item-before-jump-next")}),Sn.push(ta)),tt!==1&&Sn.unshift(Wn),Xt!==Ut&&Sn.push(ra)}var On=!this.hasPrev()||!Ut,yn=!this.hasNext()||!Ut,la=this.renderPrev(qn),ia=this.renderNext(Le);return ue.createElement("ul",(0,te.Z)({className:Ee()(We,vt,(0,ae.Z)({},"".concat(We,"-disabled"),yt)),style:ut,ref:this.paginationNode},Oe),xe,la?ue.createElement("li",{title:Mt?mt.prev_page:null,onClick:this.prev,tabIndex:On?null:0,onKeyPress:this.runIfEnterPrev,className:Ee()("".concat(We,"-prev"),(0,ae.Z)({},"".concat(We,"-disabled"),On)),"aria-disabled":On},la):null,Sn,ia?ue.createElement("li",{title:Mt?mt.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:Ee()("".concat(We,"-next"),(0,ae.Z)({},"".concat(We,"-disabled"),yn)),"aria-disabled":yn},ia):null,ue.createElement(ge,{disabled:yt,locale:mt,rootPrefixCls:We,selectComponentClass:vn,selectPrefixCls:kn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:rn,pageSize:An,pageSizeOptions:jn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qn}))}}],[{key:"getDerivedStateFromProps",value:function(Se,We){var vt={};if("current"in Se&&(vt.current=Se.current,Se.current!==We.current&&(vt.currentInputValue=vt.current)),"pageSize"in Se&&Se.pageSize!==We.pageSize){var ut=We.current,yt=ht(Se.pageSize,We,Se);ut=ut>yt?yt:ut,"current"in Se||(vt.current=ut,vt.currentInputValue=ut),vt.pageSize=Se.pageSize}return vt}}]),rt}(ue.Component);pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:$e,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:$e,locale:re.Z,style:{},itemRender:Qe,totalBoundaryShowSizeChanger:50};var Be=pt,Ue=oe(22075),Ye=oe(36355),Je=oe(19716),dt=oe(8628),Lt=oe(9763),Gt=oe(57809);const Ot=se=>ue.createElement(Gt.default,Object.assign({},se,{showSearch:!0,size:"small"})),Zt=se=>ue.createElement(Gt.default,Object.assign({},se,{showSearch:!0,size:"middle"}));Ot.Option=Gt.default.Option,Zt.Option=Gt.default.Option;var Ce=oe(9937),Ge=oe(17313),et=oe(83116),wt=oe(37613);const at=se=>{const{componentCls:he}=se;return{[`${he}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${he}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${he}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed"}}},[`&${he}-disabled`]:{cursor:"not-allowed",[`${he}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:se.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:se.colorBorder,backgroundColor:se.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:se.itemActiveBgDisabled},a:{color:se.itemActiveColorDisabled}}},[`${he}-item-link`]:{color:se.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${he}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${he}-simple-pager`]:{color:se.colorTextDisabled},[`${he}-jump-prev, ${he}-jump-next`]:{[`${he}-item-link-icon`]:{opacity:0},[`${he}-item-ellipsis`]:{opacity:1}}},[`&${he}-simple`]:{[`${he}-prev, ${he}-next`]:{[`&${he}-disabled ${he}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pt=se=>{const{componentCls:he}=se;return{[`&${he}-mini ${he}-total-text, &${he}-mini ${he}-simple-pager`]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`},[`&${he}-mini ${he}-item`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM-2}px`},[`&${he}-mini:not(${he}-disabled) ${he}-item:not(${he}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},[`&${he}-mini ${he}-prev, &${he}-mini ${he}-next`]:{minWidth:se.itemSizeSM,height:se.itemSizeSM,margin:0,lineHeight:`${se.itemSizeSM}px`},[`&${he}-mini:not(${he}-disabled)`]:{[`${he}-prev, ${he}-next`]:{[`&:hover ${he}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${he}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${he}-disabled:hover ${he}-item-link`]:{backgroundColor:"transparent"}}},[`
&${he}-mini ${he}-prev ${he}-item-link,
&${he}-mini ${he}-next ${he}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}},[`&${he}-mini ${he}-jump-prev, &${he}-mini ${he}-jump-next`]:{height:se.itemSizeSM,marginInlineEnd:0,lineHeight:`${se.itemSizeSM}px`},[`&${he}-mini ${he}-options`]:{marginInlineStart:se.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:se.miniOptionsSizeChangerTop},"&-quick-jumper":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ce.x0)(se)),{width:se.paginationMiniQuickJumperInputWidth,height:se.controlHeightSM})}}}},me=se=>{const{componentCls:he}=se;return{[`
&${he}-simple ${he}-prev,
&${he}-simple ${he}-next
`]:{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`,verticalAlign:"top",[`${he}-item-link`]:{height:se.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive},"&::after":{height:se.itemSizeSM,lineHeight:`${se.itemSizeSM}px`}}},[`&${he}-simple ${he}-simple-pager`]:{display:"inline-block",height:se.itemSizeSM,marginInlineEnd:se.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:se.marginXS,padding:`0 ${se.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:se.itemInputBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadius,outline:"none",transition:`border-color ${se.motionDurationMid}`,color:"inherit","&:hover":{borderColor:se.colorPrimary},"&:focus":{borderColor:se.colorPrimaryHover,boxShadow:`${se.inputOutlineOffset}px 0 ${se.controlOutlineWidth}px ${se.controlOutline}`},"&[disabled]":{color:se.colorTextDisabled,backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,cursor:"not-allowed"}}}}},_e=se=>{const{componentCls:he}=se;return{[`${he}-jump-prev, ${he}-jump-next`]:{outline:0,[`${he}-item-container`]:{position:"relative",[`${he}-item-link-icon`]:{color:se.colorPrimary,fontSize:se.fontSizeSM,opacity:0,transition:`all ${se.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${he}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:se.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:se.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:se.paginationEllipsisTextIndent,opacity:1,transition:`all ${se.motionDurationMid}`}},"&:hover":{[`${he}-item-link-icon`]:{opacity:1},[`${he}-item-ellipsis`]:{opacity:0}}},[`
${he}-prev,
${he}-jump-prev,
${he}-jump-next
`]:{marginInlineEnd:se.marginXS},[`
${he}-prev,
${he}-next,
${he}-jump-prev,
${he}-jump-next
`]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,color:se.colorText,fontFamily:se.fontFamily,lineHeight:`${se.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:se.borderRadius,cursor:"pointer",transition:`all ${se.motionDurationMid}`},[`${he}-prev, ${he}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:se.colorText,cursor:"pointer",userSelect:"none"},[`${he}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:se.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:"none",transition:`all ${se.motionDurationMid}`},[`&:hover ${he}-item-link`]:{backgroundColor:se.colorBgTextHover},[`&:active ${he}-item-link`]:{backgroundColor:se.colorBgTextActive},[`&${he}-disabled:hover`]:{[`${he}-item-link`]:{backgroundColor:"transparent"}}},[`${he}-slash`]:{marginInlineEnd:se.paginationSlashMarginInlineEnd,marginInlineStart:se.paginationSlashMarginInlineStart},[`${he}-options`]:{display:"inline-block",marginInlineStart:se.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:se.controlHeight,marginInlineStart:se.marginXS,lineHeight:`${se.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ce.ik)(se)),{width:se.controlHeightLG*1.25,height:se.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:se.marginXS,marginInlineEnd:se.marginXS})}}}},ke=se=>{const{componentCls:he}=se;return{[`${he}-item`]:{display:"inline-block",minWidth:se.itemSize,height:se.itemSize,marginInlineEnd:se.marginXS,fontFamily:se.fontFamily,lineHeight:`${se.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${se.lineWidth}px ${se.lineType} transparent`,borderRadius:se.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se.paginationItemPaddingInline}px`,color:se.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${he}-item-active)`]:{"&:hover":{transition:`all ${se.motionDurationMid}`,backgroundColor:se.colorBgTextHover},"&:active":{backgroundColor:se.colorBgTextActive}},"&-active":{fontWeight:se.fontWeightStrong,backgroundColor:se.itemActiveBg,borderColor:se.colorPrimary,a:{color:se.colorPrimary},"&:hover":{borderColor:se.colorPrimaryHover},"&:hover a":{color:se.colorPrimaryHover}}}}},xt=se=>{const{componentCls:he}=se;return{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(se)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${he}-total-text`]:{display:"inline-block",height:se.itemSize,marginInlineEnd:se.marginXS,lineHeight:`${se.itemSize-2}px`,verticalAlign:"middle"}}),ke(se)),_e(se)),me(se)),Pt(se)),at(se)),{[`@media only screen and (max-width: ${se.screenLG}px)`]:{[`${he}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${se.screenSM}px)`]:{[`${he}-options`]:{display:"none"}}}),[`&${se.componentCls}-rtl`]:{direction:"rtl"}}},gt=se=>{const{componentCls:he}=se;return{[`${he}${he}-disabled:not(${he}-mini)`]:{"&, &:hover":{[`${he}-item-link`]:{borderColor:se.colorBorder}},"&:focus-visible":{[`${he}-item-link`]:{borderColor:se.colorBorder}},[`${he}-item, ${he}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,[`&:hover:not(${he}-item-active)`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,a:{color:se.colorTextDisabled}},[`&${he}-item-active`]:{backgroundColor:se.itemActiveBgDisabled}},[`${he}-prev, ${he}-next`]:{"&:hover button":{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder,color:se.colorTextDisabled},[`${he}-item-link`]:{backgroundColor:se.colorBgContainerDisabled,borderColor:se.colorBorder}}},[`${he}:not(${he}-mini)`]:{[`${he}-prev, ${he}-next`]:{"&:hover button":{borderColor:se.colorPrimaryHover,backgroundColor:se.itemBg},[`${he}-item-link`]:{backgroundColor:se.itemLinkBg,borderColor:se.colorBorder},[`&:hover ${he}-item-link`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,color:se.colorPrimary},[`&${he}-disabled`]:{[`${he}-item-link`]:{borderColor:se.colorBorder,color:se.colorTextDisabled}}},[`${he}-item`]:{backgroundColor:se.itemBg,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,[`&:hover:not(${he}-item-active)`]:{borderColor:se.colorPrimary,backgroundColor:se.itemBg,a:{color:se.colorPrimary}},"&-active":{borderColor:se.colorPrimary}}}}},Ae=se=>{const{componentCls:he}=se;return{[`${he}:not(${he}-disabled)`]:{[`${he}-item`]:Object.assign({},(0,Ge.Qy)(se)),[`${he}-jump-prev, ${he}-jump-next`]:{"&:focus-visible":Object.assign({[`${he}-item-link-icon`]:{opacity:1},[`${he}-item-ellipsis`]:{opacity:0}},(0,Ge.oN)(se))},[`${he}-prev, ${he}-next`]:{[`&:focus-visible ${he}-item-link`]:Object.assign({},(0,Ge.oN)(se))}}}};var be=(0,et.Z)("Pagination",se=>{const he=(0,wt.TS)(se,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:se.marginXXS/2,paginationMiniQuickJumperInputWidth:se.controlHeightLG*1.1,paginationItemPaddingInline:se.marginXXS*1.5,paginationEllipsisLetterSpacing:se.marginXXS/2,paginationSlashMarginInlineStart:se.marginXXS,paginationSlashMarginInlineEnd:se.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ce.e5)(se),(0,Ce.TM)(se));return[xt(he),Ae(he),se.wireframe&&gt(he)]},se=>({itemBg:se.colorBgContainer,itemSize:se.controlHeight,itemSizeSM:se.controlHeightSM,itemActiveBg:se.colorBgContainer,itemLinkBg:se.colorBgContainer,itemActiveColorDisabled:se.colorTextDisabled,itemActiveBgDisabled:se.controlItemBgActiveDisabled,itemInputBg:se.colorBgContainer,miniOptionsSizeChangerTop:0})),pe=function(se,he){var rt={};for(var Ve in se)Object.prototype.hasOwnProperty.call(se,Ve)&&he.indexOf(Ve)<0&&(rt[Ve]=se[Ve]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ve=Object.getOwnPropertySymbols(se);Se<Ve.length;Se++)he.indexOf(Ve[Se])<0&&Object.prototype.propertyIsEnumerable.call(se,Ve[Se])&&(rt[Ve[Se]]=se[Ve[Se]]);return rt},He=se=>{const{prefixCls:he,selectPrefixCls:rt,className:Ve,rootClassName:Se,style:We,size:vt,locale:ut,selectComponentClass:yt,responsive:nt,showSizeChanger:ct}=se,mt=pe(se,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:At}=(0,dt.Z)(nt),{getPrefixCls:Dt,direction:Mt,pagination:Wt={}}=ue.useContext(Ye.E_),Rt=Dt("pagination",he),[qt,Ht]=be(Rt),sn=ct!=null?ct:Wt.showSizeChanger,Pn=ue.useMemo(()=>{const Ut=ue.createElement("span",{className:`${Rt}-item-ellipsis`},"\u2022\u2022\u2022"),Sn=ue.createElement("button",{className:`${Rt}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?ue.createElement(Te.Z,null):ue.createElement(je.Z,null)),Vn=ue.createElement("button",{className:`${Rt}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?ue.createElement(je.Z,null):ue.createElement(Te.Z,null)),ta=ue.createElement("a",{className:`${Rt}-item-link`},ue.createElement("div",{className:`${Rt}-item-container`},Mt==="rtl"?ue.createElement(Me.Z,{className:`${Rt}-item-link-icon`}):ue.createElement(Xe,{className:`${Rt}-item-link-icon`}),Ut)),Wn=ue.createElement("a",{className:`${Rt}-item-link`},ue.createElement("div",{className:`${Rt}-item-container`},Mt==="rtl"?ue.createElement(Xe,{className:`${Rt}-item-link-icon`}):ue.createElement(Me.Z,{className:`${Rt}-item-link-icon`}),Ut));return{prevIcon:Sn,nextIcon:Vn,jumpPrevIcon:ta,jumpNextIcon:Wn}},[Mt,Rt]),[vn]=(0,Lt.Z)("Pagination",Ue.Z),kn=Object.assign(Object.assign({},vn),ut),jn=(0,Je.Z)(vt),En=jn==="small"||!!(At&&!jn&&nt),rn=Dt("select",rt),An=Ee()({[`${Rt}-mini`]:En,[`${Rt}-rtl`]:Mt==="rtl"},Wt==null?void 0:Wt.className,Ve,Se,Ht),Tn=Object.assign(Object.assign({},Wt==null?void 0:Wt.style),We);return qt(ue.createElement(Be,Object.assign({},Pn,mt,{style:Tn,prefixCls:Rt,selectPrefixCls:rn,className:An,selectComponentClass:yt||(En?Ot:Zt),locale:kn,showSizeChanger:sn})))},ot=He},12563:function(Ie,lt,oe){"use strict";oe.d(lt,{default:function(){return $e}});var te=oe(59301),ue=oe(99267),Ke=oe(92310),Ze=oe.n(Ke),ye=oe(36785),we=oe(47729),de=oe(14088),Xe=oe(36355),Me=oe(17313),je=oe(37613),Te=oe(83116);const Re=Pe=>{const{paddingXXS:Qe,lineWidth:ht,tagPaddingHorizontal:pt,componentCls:Be}=Pe,Ue=pt-ht,Ye=Qe-ht;return{[Be]:Object.assign(Object.assign({},(0,Me.Wf)(Pe)),{display:"inline-block",height:"auto",marginInlineEnd:Pe.marginXS,paddingInline:Ue,fontSize:Pe.tagFontSize,lineHeight:Pe.tagLineHeight,whiteSpace:"nowrap",background:Pe.defaultBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusSM,opacity:1,transition:`all ${Pe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Be}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Pe.defaultColor},[`${Be}-close-icon`]:{marginInlineStart:Ye,color:Pe.colorTextDescription,fontSize:Pe.tagIconSize,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,"&:hover":{color:Pe.colorTextHeading}},[`&${Be}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Pe.iconCls}-close, ${Pe.iconCls}-close:hover`]:{color:Pe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Be}-checkable-checked):hover`]:{color:Pe.colorPrimary,backgroundColor:Pe.colorFillSecondary},"&:active, &-checked":{color:Pe.colorTextLightSolid},"&-checked":{backgroundColor:Pe.colorPrimary,"&:hover":{backgroundColor:Pe.colorPrimaryHover}},"&:active":{backgroundColor:Pe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Pe.iconCls} + span, > span + ${Pe.iconCls}`]:{marginInlineStart:Ue}}),[`${Be}-borderless`]:{borderColor:"transparent",background:Pe.tagBorderlessBg}}},Ee=Pe=>{const{lineWidth:Qe,fontSizeIcon:ht}=Pe,pt=Pe.fontSizeSM,Be=`${Pe.lineHeightSM*pt}px`;return(0,je.TS)(Pe,{tagFontSize:pt,tagLineHeight:Be,tagIconSize:ht-2*Qe,tagPaddingHorizontal:8,tagBorderlessBg:Pe.colorFillTertiary})},ae=Pe=>({defaultBg:Pe.colorFillQuaternary,defaultColor:Pe.colorText});var a=(0,Te.Z)("Tag",Pe=>{const Qe=Ee(Pe);return Re(Qe)},ae),y=function(Pe,Qe){var ht={};for(var pt in Pe)Object.prototype.hasOwnProperty.call(Pe,pt)&&Qe.indexOf(pt)<0&&(ht[pt]=Pe[pt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,pt=Object.getOwnPropertySymbols(Pe);Be<pt.length;Be++)Qe.indexOf(pt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Pe,pt[Be])&&(ht[pt[Be]]=Pe[pt[Be]]);return ht},b=Pe=>{const{prefixCls:Qe,style:ht,className:pt,checked:Be,onChange:Ue,onClick:Ye}=Pe,Je=y(Pe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:dt,tag:Lt}=te.useContext(Xe.E_),Gt=et=>{Ue==null||Ue(!Be),Ye==null||Ye(et)},Ot=dt("tag",Qe),[Zt,Ce]=a(Ot),Ge=Ze()(Ot,`${Ot}-checkable`,{[`${Ot}-checkable-checked`]:Be},Lt==null?void 0:Lt.className,pt,Ce);return Zt(te.createElement("span",Object.assign({},Je,{style:Object.assign(Object.assign({},ht),Lt==null?void 0:Lt.style),className:Ge,onClick:Gt})))},x=oe(45157);const z=Pe=>(0,x.Z)(Pe,(Qe,ht)=>{let{textColor:pt,lightBorderColor:Be,lightColor:Ue,darkColor:Ye}=ht;return{[`${Pe.componentCls}-${Qe}`]:{color:pt,background:Ue,borderColor:Be,"&-inverse":{color:Pe.colorTextLightSolid,background:Ye,borderColor:Ye},[`&${Pe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ee=(0,Te.b)(["Tag","preset"],Pe=>{const Qe=Ee(Pe);return z(Qe)},ae);function ne(Pe){return typeof Pe!="string"?Pe:Pe.charAt(0).toUpperCase()+Pe.slice(1)}const re=(Pe,Qe,ht)=>{const pt=ne(ht);return{[`${Pe.componentCls}-${Qe}`]:{color:Pe[`color${ht}`],background:Pe[`color${pt}Bg`],borderColor:Pe[`color${pt}Border`],[`&${Pe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ie=(0,Te.b)(["Tag","status"],Pe=>{const Qe=Ee(Pe);return[re(Qe,"success","Success"),re(Qe,"processing","Info"),re(Qe,"error","Error"),re(Qe,"warning","Warning")]},ae),ge=function(Pe,Qe){var ht={};for(var pt in Pe)Object.prototype.hasOwnProperty.call(Pe,pt)&&Qe.indexOf(pt)<0&&(ht[pt]=Pe[pt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,pt=Object.getOwnPropertySymbols(Pe);Be<pt.length;Be++)Qe.indexOf(pt[Be])<0&&Object.prototype.propertyIsEnumerable.call(Pe,pt[Be])&&(ht[pt[Be]]=Pe[pt[Be]]);return ht};const ve=(Pe,Qe)=>{const{prefixCls:ht,className:pt,rootClassName:Be,style:Ue,children:Ye,icon:Je,color:dt,onClose:Lt,closeIcon:Gt,closable:Ot,bordered:Zt=!0}=Pe,Ce=ge(Pe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Ge,direction:et,tag:wt}=te.useContext(Xe.E_),[at,Pt]=te.useState(!0);te.useEffect(()=>{"visible"in Ce&&Pt(Ce.visible)},[Ce.visible]);const me=(0,ye.o2)(dt),_e=(0,ye.yT)(dt),ke=me||_e,xt=Object.assign(Object.assign({backgroundColor:dt&&!ke?dt:void 0},wt==null?void 0:wt.style),Ue),gt=Ge("tag",ht),[Ae,be]=a(gt),pe=Ze()(gt,wt==null?void 0:wt.className,{[`${gt}-${dt}`]:ke,[`${gt}-has-color`]:dt&&!ke,[`${gt}-hidden`]:!at,[`${gt}-rtl`]:et==="rtl",[`${gt}-borderless`]:!Zt},pt,Be,be),De=Ve=>{Ve.stopPropagation(),Lt==null||Lt(Ve),!Ve.defaultPrevented&&Pt(!1)},[,He]=(0,we.Z)(Ot,Gt,Ve=>Ve===null?te.createElement(ue.Z,{className:`${gt}-close-icon`,onClick:De}):te.createElement("span",{className:`${gt}-close-icon`,onClick:De},Ve),null,!1),ot=typeof Ce.onClick=="function"||Ye&&Ye.type==="a",se=Je||null,he=se?te.createElement(te.Fragment,null,se,Ye&&te.createElement("span",null,Ye)):Ye,rt=te.createElement("span",Object.assign({},Ce,{ref:Qe,className:pe,style:xt}),he,He,me&&te.createElement(ee,{key:"preset",prefixCls:gt}),_e&&te.createElement(ie,{key:"status",prefixCls:gt}));return Ae(ot?te.createElement(de.Z,{component:"Tag"},rt):rt)},ce=te.forwardRef(ve);ce.CheckableTag=b;var $e=ce}}]);