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.
258 lines
590 KiB
258 lines
590 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8882],{52310:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},33463:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},28575:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},84249:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},81893:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={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"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},73148:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},56747:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},50881:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},22751:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={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"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},79852:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},34182:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},74664:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 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-8H544V328c0-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 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},91034:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return re}});var le=te(87462),ue=te(67294),$e={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"},Ie=$e,xe=te(74643),Fe=function(Me,Re){return ue.createElement(xe.Z,(0,le.Z)({},Me,{ref:Re,icon:Ie}))},re=ue.forwardRef(Fe)},71736:function(Xe,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Xe(ie,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ie,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Xe.prototype,"name",{get:function(){return this._name},set:function(ie){if(typeof ie!="string"||ie==="")throw new Error("Shape name must be a valid string.");this._name=ie}}),Object.defineProperty(Xe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("The default value must be a real number, not: "+ie);this._defaultValue=ie}}),Object.defineProperty(Xe.prototype,"minimum",{get:function(){return this._minimum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Minimum must be a real number, not: "+ie);this._minimum=ie}}),Object.defineProperty(Xe.prototype,"maximum",{get:function(){return this._maximum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Maximum must be a real number, not: "+ie);this._maximum=ie}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ie,a){var y=go.Shape._FigureParameters[ie];return y?y[a]:null},go.Shape.setFigureParameter=function(ie,a,y){if(!(y instanceof Xe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ie];x||(x=[],go.Shape._FigureParameters[ie]=x),x[a]=y};var ot=[];function te(ie,a){var y=ot.pop();return y===void 0?new go.Point(ie,a):(y.x=ie,y.y=a,y)}function le(){var ie=ot.pop();return ie===void 0?new go.Point:ie}function ue(ie){ot.push(ie)}function $e(ie,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var de=ie-y,se=b-z,me=NaN,ye=NaN;if(de===0)if(se===0)ie===y&&(me=ie,ye=a);else{var pe=(E-ee)/se,Le=E-pe*b;me=ie,ye=pe*me+Le}else if(se===0){var fe=(a-x)/de,yt=a-fe*ie;me=b,ye=fe*me+yt}else{var fe=(a-x)/de,pe=(E-ee)/se,yt=a-fe*ie,Le=E-pe*b;me=(Le-yt)/(fe-pe),ye=fe*me+yt}return ne.x=me,ne.y=ye,ne}function Ie(ie,a,y,x,b,E,z,ee,ne,de,se,me,ye,pe){var Le=1-ne,fe=ne,yt=ie*Le+y*fe,rt=a*Le+x*fe,Vt=y*Le+b*fe,Ee=x*Le+E*fe,Ge=b*Le+z*fe,tt=E*Le+ee*fe,nt=yt*Le+Vt*fe,gt=rt*Le+Ee*fe,zt=Vt*Le+Ge*fe,Kt=Ee*Le+tt*fe,bn=nt*Le+zt*fe,xn=gt*Le+Kt*fe;de.x=yt,de.y=rt,se.x=nt,se.y=gt,me.x=bn,me.y=xn,ye.x=zt,ye.y=Kt,pe.x=Ge,pe.y=tt}var xe=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),re=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Xe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*re,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ie,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(ie,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(ie,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(ie,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(ie,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(ie,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ie,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ie,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(ie,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(ie,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(ie,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(ie,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(ie,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(ie,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ie,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=xe,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ie,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ie,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ie,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,re*a,0,a,(1-re)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ie,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,re*y,(1-re)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ie,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,re*y,re*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ie,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-re)*a,0,0,(1-re)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ie,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(ie,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(ie,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(ie,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 Xe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Xe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Xe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ye=[];function Me(){var ie=Ye.pop();return ie===void 0?[]:ie}function Re(ie){ie.length=0,Ye.push(ie)}function He(ie){for(var a=Me(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ie;z++)E=2*Math.PI/ie*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Ue(ie){var a=Ce(ie),y=Me();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Re(a),y}function Ce(ie){for(var a=He(ie),y=Me(),x=Math.floor(a.length/2),b=a.length-1,E=ie%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],de=a[(x+z-1)%b],se=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=$e(ee.x,ee.y,de.x,de.y,ne.x,ne.y,se.x,se.y,new go.Point)}return y[y.length]=y[0],Re(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ie,a,y){var x=He(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ie,a,y){var x=He(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ie,a,y){var x=He(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ie,a,y){var x=He(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ie,a,y){var x=He(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ie,a,y){var x=He(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ie,a,y){var x=He(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ie,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ie,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ie,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ie,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ie,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ie,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Re(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ie,a,y){var x=Ue(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ie,a,y){var x=Ue(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ie,a,y){var x=Ue(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ie,a,y){var x=Ue(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ie,a,y){var x=Ue(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ie,a,y){var x=Ue(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Re(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Xe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ie,a,y){var x=ie?ie.parameter1:NaN,b=ie?ie.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Xe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=xe,E.spot2=Fe,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ie,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(ie,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Xe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ie,a,y){var x=ie?ie.parameter1:NaN,b=ie?ie.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ie,a,y){var x=re/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ie,a,y){var x=ie?ie.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),ne=x-Math.min(Math.cos(ee)*x/2,E),de=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,se=new go.PathFigure(ne,0,!0);return b.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),se.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,de)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,a,y-de)),se.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),se.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),se.add(new go.PathSegment(go.PathSegment.Line,ne,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,y-de)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,0,de).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Xe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Xe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ie,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,re*a,0,a,(.5-re/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+re/2)*y,re*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ie,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(ie,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(ie,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(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,ne=E*re;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-ne+ee-.02)*y)),E=.2,z=0,ee=-.3,ne=E*re,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,ne=E*re,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ie,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-E)*y);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=re*.4;var de=le(),se=le(),me=le(),ye=le();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,de,se,me,ye,ye);var pe=le(),Le=le(),fe=le();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ye,ye,fe,pe,Le);var yt=le(),rt=le(),Vt=le();Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,yt,rt,Vt,ye,ye);var Ee=le(),Ge=le(),tt=le();return Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ye,ye,tt,Ee,Ge),ne.add(new go.PathSegment(go.PathSegment.Move,tt.x*a,tt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Ee.x*a,Ee.y*y,Ge.x*a,Ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,me.x*a,me.y*y,de.x*a,de.y*y,se.x*a,se.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,tt.x*a,tt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Vt.x*a,Vt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,fe.x*a,fe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,pe.x*a,pe.y*y,Le.x*a,Le.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Vt.x*a,Vt.y*y,yt.x*a,yt.y*y,rt.x*a,rt.y*y).close()),ue(de),ue(se),ue(me),ue(ye),ue(pe),ue(Le),ue(fe),ue(yt),ue(rt),ue(Vt),ue(Ee),ue(Ge),ue(tt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ie,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 Xe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ie,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(ie,a,y){var x=new go.Geometry,b=re*.4,E=.4,z=.5,ee=.5,ne=le(),de=le(),se=le(),me=le(),ye=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,se,me,de,ne,ne),ye.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,se.x*a,se.y*y,me.x*a,me.y*y));var pe=te(de.x,de.y);Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,de,se,me);var Le=te(de.x,de.y);ye.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.95*.9)*a,pe.y*.1*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*a,pe.y*.1*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,me.x*a,me.y*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=re*.35;var fe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var yt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(yt),ue(ne),ue(de),ue(se),ue(me),ue(pe),ue(Le),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ie,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*re,ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),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,E=0,z=-.125,ee=b*re;var ne=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(ne),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ie,a,y){var x=ie?ie.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ie,a,y){var x=ie?ie.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ie,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(ie,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(ie,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(ie,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ie,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(ie,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(ie,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(ie,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(ie,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(ie,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ie,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Xe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var b=ie?ie.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,de=new go.PathFigure(0,z,!0);ne.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E,z)),de.add(new go.PathSegment(go.PathSegment.Line,E,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,E,y)),de.add(new go.PathSegment(go.PathSegment.Line,E,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var se=$e(0,ee/y,1,ee/y,E/a,1,1,.5,le());return ne.spot2=new go.Spot(se.x,se.y),ue(se),ne}),go.Shape.setFigureParameter("Arrow2",0,new Xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Xe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ie?ie.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,ne=new go.Geometry,de=new go.PathFigure(0,z,!0);ne.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E,z)),de.add(new go.PathSegment(go.PathSegment.Line,E,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Line,E,y)),de.add(new go.PathSegment(go.PathSegment.Line,E,ee)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var se=$e(0,ee/y,1,ee/y,E/a,1,1,.5,le());return ne.spot2=new go.Spot(se.x,se.y),ue(se),ne}),go.Shape.defineFigureGenerator("Chevron",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Xe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=$e(0,.5,.3,0,0,b/y,.1,b/y,le());return z.spot1=new go.Spot(ne.x,ne.y),ne=$e(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Xe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=40);var b=ie?ie.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var de=new go.Geometry,se=new go.PathFigure(a,.5*y,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var me=$e(0,.5,.3,ee/y,0,E/y,1,E/y,le());return de.spot1=new go.Spot(me.x,me.y),me=$e(.7,ne/y,1,.5,0,z/y,1,z/y,me),de.spot2=new go.Spot(me.x,me.y),ue(me),de}),go.Shape.setFigureParameter("IBeamArrow",0,new Xe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=$e(.7,1,1,.5,0,E/y,1,E/y,le());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Xe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=40);var b=ie?ie.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=y));var de=new go.Geometry,se=new go.PathFigure(a,.5*y,!0);de.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),de.spot1=new go.Spot(0,E/y);var me=$e(.7,ne/y,1,.5,0,z/y,1,z/y,le());return de.spot2=new go.Spot(me.x,me.y),ue(me),de}),go.Shape.setFigureParameter("Pointer",0,new Xe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=$e(.2,.65,1,.65,0,1,1,.5,le());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Xe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=$e(0,.65,1,.65,0,1,1,.5,le());return b.spot2=new go.Spot(z.x,z.y),ue(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Xe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=$e(.7,1,1,.5,0,E/y,1,E/y,le());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Xe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=$e(.7,1,1,.5,0,E/y,1,E/y,le());return z.spot2=new go.Spot(ne.x,ne.y),ue(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Xe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=re*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=re*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,re*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,re*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-re*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-re*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-re*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-re*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=re*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,re*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,re*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-re*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-re*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-re*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-re*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=re*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-re*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-re*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,re*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,re*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+re*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+re*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=re*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-re*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-re*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,re*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,re*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-re*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-re*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ie,a,y){var x=new go.Geometry,b=.2,E=.1,z=re*b,ee=re*E,ne=.5,de=.1,se=new go.PathFigure(ne*a,(de+E)*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,de*y,(ne-z)*a,(de+E)*y,(ne-b)*a,(de+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-E)*y,(ne-b)*a,(de-ee)*y,(ne-z)*a,(de-E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,de*y,(ne+z)*a,(de-E)*y,(ne+b)*a,(de-ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de+E)*y,(ne+b)*a,(de+ee)*y,(ne+z)*a,(de+E)*y));var me=.05,ye=re*me;ne=.05,de=.25;var pe=new go.PathFigure(.5*a,.2*y,!0);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,de=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+me)*a,de*y,(ne+ye)*a,(de-me)*y,(ne+me)*a,(de-ye)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),me=.025,ye=re*me,ne=.825,de=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-me)*y,(ne+me)*a,(de-ye)*y,(ne+ye)*a,(de-me)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-me)*a,de*y,(ne-ye)*a,(de-me)*y,(ne-me)*a,(de-ye)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),me=.05,ye=re*me,ne=.5,de=.7,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-me)*y,(ne+me)*a,(de-ye)*y,(ne+ye)*a,(de-me)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-me)*a,de*y,(ne-ye)*a,(de-me)*y,(ne-me)*a,(de-ye)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),me=.025,ye=re*me,ne=.175,de=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-me)*y,(ne+me)*a,(de-ye)*y,(ne+ye)*a,(de-me)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-me)*a,de*y,(ne-ye)*a,(de-me)*y,(ne-me)*a,(de-ye)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),me=.05,ye=re*me,ne=.05,de=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-me)*y,(ne-me)*a,(de-ye)*y,(ne-ye)*a,(de-me)*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Xe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ie,a,y){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=re*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=re*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=re*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ie,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ie,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=re*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);x.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 de=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),de.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),de.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ie,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ie,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ie,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ie,a,y){var x=new go.Geometry,b=ie?ie.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Ground",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ie,a,y){var x=new go.Geometry,b=re*.1,E=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.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 de=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=re*.4,z=re*.1,ee=.1,ne=.9,de=.5,se=new go.PathFigure(.8*a,.5*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var me=new go.PathFigure((ne+ee)*a,de*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de+ee)*y,(ne+ee)*a,(de+z)*y,(ne+z)*a,(de+ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,de*y,(ne-z)*a,(de+ee)*y,(ne-ee)*a,(de+z)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-ee)*y,(ne-ee)*a,(de-z)*y,(ne-z)*a,(de-ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,de*y,(ne+z)*a,(de-ee)*y,(ne+ee)*a,(de-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*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+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=re*.1,z=.9,ee=.5;var de=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var de=new go.PathFigure(.8*a,.5*y,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=re*.1,z=.9,ee=.5;var se=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var de=new go.PathFigure(.2*a,0,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ie,a,y){var x=new go.Geometry,b=re*.1,E=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ie,a,y){var x=new go.Geometry,b=re*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ie,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=re*.8,ee=.8,ne=0,de=.5,se=(b-a)/2,me=(E-y)/2,ye=new go.PathFigure(ne*a+se,(de+ee)*y+me,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+se,de*y+me,(ne-z)*a+se,(de+ee)*y+me,(ne-ee)*a+se,(de+z)*y+me)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de-ee)*y+me,(ne-ee)*a+se,(de-z)*y+me,(ne-z)*a+se,(de-ee)*y+me)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+se,de*y+me,ne*a+se,(de-ee)*y+me,(ne-ee+z*.5)*a+se,(de-z)*y+me)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de+ee)*y+me,(ne-ee+z*.5)*a+se,(de+z)*y+me,ne*a+se,(de+ee)*y+me).close()),z=re*.4,ee=.4,ne=.2,de=.5;var pe=new go.PathFigure(ne*a+se,(de+ee)*y+me,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+se,de*y+me,(ne-z)*a+se,(de+ee)*y+me,(ne-ee)*a+se,(de+z)*y+me)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de-ee)*y+me,(ne-ee)*a+se,(de-z)*y+me,(ne-z)*a+se,(de-ee)*y+me)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+se,de*y+me,ne*a+se,(de-ee)*y+me,(ne-ee+z*.5)*a+se,(de-z)*y+me)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de+ee)*y+me,(ne-ee+z*.5)*a+se,(de+z)*y+me,ne*a+se,(de+ee)*y+me).close()),z=re*.2,ee=.2,ne=.5,de=.5;var Le=new go.PathFigure((ne-ee)*a+se,de*y+me,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de-ee)*y+me,(ne-ee)*a+se,(de-z)*y+me,(ne-z)*a+se,(de-ee)*y+me)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+se,de*y+me,(ne+z)*a+se,(de-ee)*y+me,(ne+ee)*a+se,(de-z)*y+me)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de+ee)*y+me,(ne+ee)*a+se,(de+z)*y+me,(ne+z)*a+se,(de+ee)*y+me)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+se,de*y+me,(ne-z)*a+se,(de+ee)*y+me,(ne-ee)*a+se,(de+z)*y+me)),z=re*.4,ee=.4,ne=.8,de=.5;var fe=new go.PathFigure(ne*a+se,(de-ee)*y+me,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+se,de*y+me,(ne+z)*a+se,(de-ee)*y+me,(ne+ee)*a+se,(de-z)*y+me)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de+ee)*y+me,(ne+ee)*a+se,(de+z)*y+me,(ne+z)*a+se,(de+ee)*y+me)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+se,de*y+me,ne*a+se,(de+ee)*y+me,(ne+ee-z*.5)*a+se,(de+z)*y+me)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de-ee)*y+me,(ne+ee-z*.5)*a+se,(de-z)*y+me,ne*a+se,(de-ee)*y+me).close()),z=re*.8,ee=.8,ne=1,de=.5;var yt=new go.PathFigure(ne*a+se,(de-ee)*y+me,!0);return x.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+se,de*y+me,(ne+z)*a+se,(de-ee)*y+me,(ne+ee)*a+se,(de-z)*y+me)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de+ee)*y+me,(ne+ee)*a+se,(de+z)*y+me,(ne+z)*a+se,(de+ee)*y+me)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+se,de*y+me,ne*a+se,(de+ee)*y+me,(ne+ee-z*.5)*a+se,(de+z)*y+me)),yt.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+se,(de-ee)*y+me,(ne+ee-z*.5)*a+se,(de-z)*y+me,ne*a+se,(de-ee)*y+me).close()),x}),go.Shape.defineFigureGenerator("Email",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ie,a,y){var x=new go.Geometry,b=re*.4,E=.4,z=.5,ee=.5,ne=le(),de=le(),se=le(),me=le();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,de,se,me);var ye=te(de.x,de.y),pe=new go.PathFigure(de.x*a,de.y*y,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,me.x*a,me.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,se,me,de,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,se.x*a,se.y*y,me.x*a,me.y*y)),b=re*.3,E=.3,Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,se,me,de,ne,ne),pe.add(new go.PathSegment(go.PathSegment.Line,de.x*a,de.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,me.x*a,me.y*y,se.x*a,se.y*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,de,se,me),pe.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,me.x*a,me.y*y,se.x*a,se.y*y).close());var pe=new go.PathFigure(.45*a,0,!0);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ue(ne),ue(de),ue(se),ue(me),ue(ye),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,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 E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ie,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*re,ne=.4*Math.SQRT2/2+.5,de=.5-.5*Math.SQRT2/2,se=1,me=.5,ye=.5,pe=0,Le=new go.PathFigure(ne*a,(1-de)*y,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,me*y,se*a,.7*y,se*a,me*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye+E)*a,(pe+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,de=Math.PI/4,se=4*(1-Math.cos(de))/(3*Math.sin(de)),me=se*.5,ye=z,pe=z,Le=se*ye,fe=se*pe;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ye)*a,ne*y,(ee-(Le+ye)/2)*a,(ne+(pe+fe)/2)*y,(ee-ye)*a,(ne+fe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-pe)*y,(ee-ye)*a,(ne-fe)*y,(ee-Le)*a,(ne-pe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ye)*a,ne*y,(ee+Le)*a,(ne-pe)*y,(ee+ye)*a,(ne-fe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ye)*a,(ne+fe)*y,(ee+(Le+ye)/2)*a,(ne+(pe+fe)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var yt=new go.PathFigure(.2*a,y,!1);x.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var rt=new go.PathFigure(.8*a,y,!1);return x.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=re*.1,ne=.2,de=.9,se=new go.PathFigure((ne-z)*a,de*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-z)*y,(ne-z)*a,(de-ee)*y,(ne-ee)*a,(de-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,de*y,(ne+ee)*a,(de-z)*y,(ne+z)*a,(de-ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de+z)*y,(ne+z)*a,(de+ee)*y,(ne+ee)*a,(de+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,de*y,(ne-ee)*a,(de+z)*y,(ne-z)*a,(de+ee)*y).close()),z=.1,ee=re*.1,ne=.8,de=.9;var me=new go.PathFigure((ne-z)*a,de*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de-z)*y,(ne-z)*a,(de-ee)*y,(ne-ee)*a,(de-z)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,de*y,(ne+ee)*a,(de-z)*y,(ne+z)*a,(de-ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(de+z)*y,(ne+z)*a,(de+ee)*y,(ne+ee)*a,(de+z)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,de*y,(ne-ee)*a,(de+z)*y,(ne-z)*a,(de+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,de=re*.1,se=.1,me=.9,ye=new go.PathFigure((se-ne)*a,me*y,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ne)*y,(se-ne)*a,(me-de)*y,(se-de)*a,(me-ne)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+ne)*a,me*y,(se+de)*a,(me-ne)*y,(se+ne)*a,(me-de)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ne)*y,(se+ne)*a,(me+de)*y,(se+de)*a,(me+ne)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se-ne)*a,me*y,(se-de)*a,(me+ne)*y,(se-ne)*a,(me+de)*y)),ne=.1,de=re*.1,se=.4,me=.9;var pe=new go.PathFigure((se-ne)*a,me*y,!0);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ne)*y,(se-ne)*a,(me-de)*y,(se-de)*a,(me-ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ne)*a,me*y,(se+de)*a,(me-ne)*y,(se+ne)*a,(me-de)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ne)*y,(se+ne)*a,(me+de)*y,(se+de)*a,(me+ne)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ne)*a,me*y,(se-de)*a,(me+ne)*y,(se-ne)*a,(me+de)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var se=.05,me=re*.05,ye=.175,pe=.95,ee=new go.PathFigure((ye-se)*a,pe*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe-se)*y,(ye-se)*a,(pe-me)*y,(ye-me)*a,(pe-se)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*a,pe*y,(ye+me)*a,(pe-se)*y,(ye+se)*a,(pe-me)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe+se)*y,(ye+se)*a,(pe+me)*y,(ye+me)*a,(pe+se)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*a,pe*y,(ye-me)*a,(pe+se)*y,(ye-se)*a,(pe+me)*y));var se=.05,me=re*.05,ye=.375,pe=.95,ne=new go.PathFigure((ye-se)*a,pe*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe-se)*y,(ye-se)*a,(pe-me)*y,(ye-me)*a,(pe-se)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*a,pe*y,(ye+me)*a,(pe-se)*y,(ye+se)*a,(pe-me)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe+se)*y,(ye+se)*a,(pe+me)*y,(ye+me)*a,(pe+se)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*a,pe*y,(ye-me)*a,(pe+se)*y,(ye-se)*a,(pe+me)*y));var se=.05,me=re*.05,ye=.625,pe=.95,de=new go.PathFigure((ye-se)*a,pe*y,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe-se)*y,(ye-se)*a,(pe-me)*y,(ye-me)*a,(pe-se)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*a,pe*y,(ye+me)*a,(pe-se)*y,(ye+se)*a,(pe-me)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe+se)*y,(ye+se)*a,(pe+me)*y,(ye+me)*a,(pe+se)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*a,pe*y,(ye-me)*a,(pe+se)*y,(ye-se)*a,(pe+me)*y));var se=.05,me=re*.05,ye=.825,pe=.95,Le=new go.PathFigure((ye-se)*a,pe*y,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe-se)*y,(ye-se)*a,(pe-me)*y,(ye-me)*a,(pe-se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye+se)*a,pe*y,(ye+me)*a,(pe-se)*y,(ye+se)*a,(pe-me)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(pe+se)*y,(ye+se)*a,(pe+me)*y,(ye+me)*a,(pe+se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ye-se)*a,pe*y,(ye-me)*a,(pe+se)*y,(ye-se)*a,(pe+me)*y).close());var fe=new go.PathFigure(0,y,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=re*.05,de=.35,se=.775,me=new go.PathFigure((de-ee)*a,se*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se-ee)*y,(de-ee)*a,(se-ne)*y,(de-ne)*a,(se-ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(de+ee)*a,se*y,(de+ne)*a,(se-ee)*y,(de+ee)*a,(se-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se+ee)*y,(de+ee)*a,(se+ne)*y,(de+ne)*a,(se+ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(de-ee)*a,se*y,(de-ne)*a,(se+ee)*y,(de-ee)*a,(se+ne)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ie,a,y){var x=new go.Geometry,b=.3,E=re*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var de=new go.PathFigure(0,.7*y,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var de=new go.PathFigure(.15*a,.5*y,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ie,a,y){var x=new go.Geometry,b=.5,E=re*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=re*.05,z=.5,ee=.8;var de=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),de.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),de.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ie,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(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ie,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(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ie,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(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return x.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()),x}),go.Shape.defineFigureGenerator("Staircase",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("PC",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Plane",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.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()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ie,a,y){var x=new go.Geometry,b=8,E=b*re,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);x.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 de=new go.PathFigure(a*.78,y*.05,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),de.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),de.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ie,a,y){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*re,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ie,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(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ie,a,y){var x=new go.Geometry,b=15,E=b*re,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ie,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016: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 Xe={},ot="5.0",te={},le=null,ue=!1,$e=!1,Ie=null,xe=!1,Fe=null,re=null,Ye=0;Ye<arguments.length;Ye++){var Me=arguments[Ye];if(Me!==null)switch(typeof Me){case"number":ot=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=Me:Ie=Me;break;case"object":typeof Me.is3D!="undefined"?le=Me:te=Me;break;case"boolean":ue=Me,$e=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!$e&&(ue=!0)),Ie!==null&&te.id===void 0&&(te.id=Ie);var Re="",He="",Ue=!1,Ce=null,ie=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var ne=function(ke){return parseFloat(ke)>4?parseFloat(ke):5};Xe.setHTML5Codebase=function(ke,lt){re=ke,Kt(ke,lt)},Xe.setJavaCodebase=Xe.setJavaCodebaseVersion=Xe.isCompiledInstalled=Xe.setPreCompiledScriptPath=Xe.setPreCompiledResourcePath=function(){},Xe.setHTML5CodebaseVersion=function(ke,lt){var ht=parseFloat(ke);if(ht!==NaN&&ht<5){console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead.");return}Fe=ke,zt(ke,lt)},Xe.getHTML5CodebaseVersion=function(){return ie},Xe.getParameters=function(){return te},Xe.setFontsCSSURL=function(ke){z=ke},Xe.setGiacJSURL=function(ke){},Xe.setJNLPFile=function(ke){Re=ke},Xe.setJNLPBaseDir=function(ke){},Xe.inject=function(){function ke(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var lt="auto",ht=te.id,tn,Et=!1,kt=0;kt<arguments.length;kt++){var be=arguments[kt];typeof be=="string"?(be=be.toLowerCase(),be.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?lt=be:ht=arguments[kt]):typeof be=="boolean"?Et=be:be instanceof HTMLElement&&(tn=be)}Bt();function Bt(){if(!xe){setTimeout(Bt,200);return}lt=nt(lt);var en=tn||document.getElementById(ht);if(!en){console.log("possibly bug on ajax loading? ");return}if(Xe.removeExistingApplet(en,!1),te.width===void 0&&en.clientWidth&&(te.width=en.clientWidth),te.height===void 0&&en.clientHeight&&(te.height=en.clientHeight),!(te.width&&te.height)&<==="html5"&&(delete te.width,delete te.height),Ce=lt,lt==="screenshot")rt(en,te);else{var $n=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?$n=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&($n=(!de()||ke())&&se()),$n?(Ce="screenshot",Ee(en,te,Et,lt)):yt(en,te,Et)}}};function de(){try{return window.self!==window.top}catch(ke){return!0}}function se(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Xe.getViews=function(){return le},Xe.isJavaInstalled=function(){return!1};var me=function(ke){var lt=function(kt){var be=JSON.parse(kt),Bt=function(jt){return jt.type=="G"||jt.type=="E"},en=be.elements?be.elements.filter(Bt)[0]:be;if(!en||!en.url){ht();return}te.fileName=en.url,ye(en.settings||{}),le.is3D=!0;var $n="https://www.geogebra.org/images/";Xe.setPreviewImage(x||en.previewUrl,$n+"GeoGebra_loading.png",$n+"applet_play.png"),ke()},ht=function(){te.onError&&te.onError(),bn("Error: Fetching material (id "+te.material_id+") failed.",te)},tn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Et="/materials/"+te.material_id+"?scope=basic";pe("https://"+tn+"/api/proxy.php?path="+encodeURIComponent(Et),lt,ht)};function ye(ke){var lt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ht){ke[ht]=!!ke[ht]}),lt.forEach(function(ht){te[ht]===void 0&&ke[ht]!==void 0&&(te[ht]=ke[ht])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function pe(ke,lt,ht){var tn=new XMLHttpRequest;tn.open("GET",ke),tn.onload=function(){lt(tn.responseText)},tn.onerror=ht,tn.send()}Xe.isHTML5Installed=function(){return!0},Xe.getLoadedAppletType=function(){return Ce},Xe.setPreviewImage=function(ke,lt,ht){x=ke,b=lt,E=ht},Xe.removeExistingApplet=function(ke,lt){var ht;typeof ke=="string"&&(ke=document.getElementById(ke)),Ce=null;var tn=null;for(ht=0;ht<ke.childNodes.length;ht++){var Et=ke.childNodes[ht],kt=Et.className;kt==="applet_screenshot"?lt?(Et.style.display="block",Ce="screenshot"):Et.style.display="none":kt!=="applet_scaler prerender"&&(ke.removeChild(Et),tn=kt&&kt.indexOf("appletParameters")!=-1?Et.id:null,ht--)}var be=te.id!==void 0?te.id:tn,Bt=window[be];Bt&&typeof Bt.getBase64=="function"&&(Bt.remove(),window[be]=null)},Xe.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ke=Xe.getAppletObject();return ke&&typeof ke.recalculateEnvironments=="function"?(ke.recalculateEnvironments(),!0):!1},Xe.startAnimation=function(){var ke=Xe.getAppletObject();return ke&&typeof ke.startAnimation=="function"?(ke.startAnimation(),!0):!1},Xe.stopAnimation=function(){var ke=Xe.getAppletObject();return ke&&typeof ke.stopAnimation=="function"?(ke.stopAnimation(),!0):!1},Xe.getAppletObject=function(){var ke=te.id!==void 0?te.id:"ggbApplet";return window[ke]},Xe.resize=function(){};var Le=function(ke,lt,ht){var tn=document.createElement("param");tn.setAttribute("name",lt),tn.setAttribute("value",ht),ke.appendChild(tn)},fe=function(ke){return ke&&ke!=="false"},yt=function(ke,lt,ht){ne(ie)<=4.2&&(ht=!0);var tn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ie||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(tn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var kt=lt.width,be=lt.height;if(lt.disableAutoScale=lt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():lt.disableAutoScale,lt.width!==void 0)if(ne(ie)<=4.4)fe(lt.showToolBar)&&(lt.height-=7),fe(lt.showAlgebraInput)&&(lt.height-=37),lt.width<605&&fe(lt.showToolBar)&&(lt.width=605,kt=605);else{var Bt=100;(fe(lt.showToolBar)||fe(lt.showMenuBar))&&(lt.hasOwnProperty("customToolBar")&&(lt.customToolbar=lt.customToolBar),Bt=fe(lt.showMenuBar)?245:155),kt<Bt&&(lt.width=Bt,kt=Bt)}Et.style.border="none",Et.style.display="inline-block";for(var en in lt)lt.hasOwnProperty(en)&&en!=="appletOnLoad"&&Et.setAttribute("data-param-"+en,lt[en]);z&&Et.setAttribute("data-param-fontscssurl",z),Xe.resize=function(){GGBAppletUtils.responsiveResize(ke,lt)},window.addEventListener("resize",function(Nn){Xe.resize()});var $n=typeof lt.appletOnLoad=="function"?lt.appletOnLoad:function(){};if(!ht&<.width!==void 0){lt.hasOwnProperty("showSplash")||Et.setAttribute("data-param-showSplash","false");var jt=ke.querySelector(".applet_scaler.prerender"),ct=jt!==null;if(ct)var _e=jt.querySelector(".ggb_preview");else{var _e=tt(kt,be,lt.borderColor,!1);jt=document.createElement("div"),jt.className="applet_scaler",jt.style.position="relative",jt.style.display="block",jt.style.width=kt+"px",jt.style.height=be+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(jt,"66%"),ne(ie)>=5?(lt.appletOnLoad=function(Nn){var Pe=ke.querySelector(".ggb_preview");Pe&&Pe.parentNode.removeChild(Pe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(jt),window.GGBT_wsf_view&&$(window).trigger("resize"),$n(Nn)},ct||jt.appendChild(_e)):Et.appendChild(_e),jt.appendChild(Et),ct||ke.appendChild(jt),setTimeout(function(){Xe.resize()},1)}else{var De=document.createElement("div");De.className="applet_scaler",De.style.position="relative",De.style.display="block",De.appendChild(Et),ke.appendChild(De),lt.appletOnLoad=function(Nn){Xe.resize(),$n(Nn)}}function ze(Nn,Pe){Pe&&typeof Pe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Nn,Pe.appletOnLoad):renderGGBElement(Nn),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pe)}function Qe(Nn,Pe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Nn,params:Pe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ae){ze(Ae.article,Ae.params)}),html5AppletsToProcess=null)},ne(ie)<5&&(Nn.className+=" geogebraweb")):ze(Nn,Pe)}if(tn){scriptLoadStarted=!0;for(var St=0;St<Et.childNodes.length;St++){var Ft=Et.childNodes[St].tagName;Ft==="TABLE"&&(Et.removeChild(Et.childNodes[St]),St--)}if(ggbHTML5LoadedScript!==null){var qt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');qt!=null&&qt.parentNode.removeChild(qt)}var an=document.createElement("script"),pn=function(){Qe(Et,lt)};an.src=He+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ie,ggbHTML5LoadedScript=an.src,bn("GeoGebra HTML5 codebase loaded: '"+He+"'.",lt),!re&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),pn()):He.requirejs?__webpack_require__.e(12).then(function(){var Nn=[__webpack_require__(12)];pn.apply(null,Nn)}.bind(this)).catch(__webpack_require__.oe):(an.onload=pn,ke.appendChild(an))}else Qe(Et,lt);lt.height=be,lt.width=kt},rt=function(ke,lt,ht){var tn=tt(lt.width,lt.height,lt.borderColor,ht),Et=document.createElement("div");Et.style.position="relative",Et.style.display="block",Et.style.width=lt.width+"px",Et.style.height=lt.height+"px",Et.className="applet_screenshot applet_scaler"+(ht?" applet_screenshot_play":""),Et.appendChild(tn);var kt=GGBAppletUtils.getScale(lt,ke,ht);ht?(ke.appendChild(Ge()),window.GGBT_wsf_view||(ke.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),ke.appendChild(Et),kt!==1&&!isNaN(kt)&&(GGBAppletUtils.scaleElement(Et,kt),Et.style.width=lt.width+"px",Et.style.height=lt.height+"px",Et.parentNode.style.width=lt.width*kt+"px",Et.parentNode.style.height=lt.height*kt+"px"),Xe.resize=function(){Vt(ke,tn,Et,ht)},window.addEventListener("resize",function(be){Xe.resize()}),Xe.resize()};function Vt(ke,lt,ht,tn){if(ke.contains(lt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ke)}var Et=GGBAppletUtils.getScale(te,ke,tn);ht.parentNode!==null&&(!isNaN(Et)&&Et!==1?(GGBAppletUtils.scaleElement(ht,Et),ht.parentNode.style.width=te.width*Et+"px",ht.parentNode.style.height=te.height*Et+"px"):(GGBAppletUtils.scaleElement(ht,1),ht.parentNode.style.width=te.width+"px",ht.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ke),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Xe.onExitFullscreen=function(ke,lt){lt.appendChild(ke)};var Ee=function(ke,lt,ht,tn){rt(ke,lt,!0);for(var Et=function(){var Bt=[];for(be=0;be<ke.childNodes.length;be++)Bt.push(ke.childNodes[be]);if(window.GGBT_wsf_view){var en=window.GGBT_wsf_view.renderFullScreen(ke,lt.id),$n=document.getElementById("fullscreencontainer"),jt=jQuery(ke).find(".fullscreencontent");jt.length>0?(en.remove(),jt.attr("id","fullscreencontent").show(),jQuery($n).append(jt),window.dispatchEvent(new Event("resize"))):yt(en,lt,!1),window.GGBT_wsf_view.launchFullScreen($n)}else Ce=tn,yt(ke,lt,!1);if(!window.GGBT_wsf_view)for(be=0;be<Bt.length;be++)ke.removeChild(Bt[be])},kt=ke.getElementsByClassName("ggb_preview_play"),be=0;be<kt.length;be++)kt[be].addEventListener("click",Et,!1),kt[be].addEventListener("ontouchstart",Et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ke),se()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ge=function(){var ke=document.createElement("div");if(ke.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var lt='.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");}',ht=document.createElement("style");ht.styleSheet?ht.styleSheet.cssText=lt:ht.appendChild(document.createTextNode(lt)),document.getElementsByTagName("head")[0].appendChild(ht)}return ke},tt=function(ke,lt,ht,tn){var Et=document.createElement("div");Et.className="ggb_preview",Et.style.position="absolute",Et.style.zIndex="90",Et.style.width=ke-2+"px",Et.style.height=lt-2+"px",Et.style.top="0px",Et.style.left="0px",Et.style.overflow="hidden",Et.style.backgroundColor="white";var kt="lightgrey";ht!==void 0&&(ht==="none"?kt="transparent":kt=ht),Et.style.border="1px solid "+kt;var be=document.createElement("img");if(be.style.position="relative",be.style.zIndex="1000",be.style.top="-1px",be.style.left="-1px",x!==null&&be.setAttribute("src",x),be.style.opacity=.7,b!==null){var Bt,en,$n;if(!tn){Bt=document.createElement("img"),Bt.style.position="absolute",Bt.style.zIndex="1001",Bt.style.opacity=1,be.style.opacity=.3,en=360,en>ke/4*3&&(en=ke/4*3),$n=en/5.8,Bt.setAttribute("src",b),Bt.setAttribute("width",en),Bt.setAttribute("height",$n);var jt=(ke-en)/2,ct=(lt-$n)/2;Bt.style.left=jt+"px",Bt.style.top=ct+"px",Et.appendChild(Bt)}}return Et.appendChild(be),Et},nt=function(ke){return ke=ke.toLowerCase(),ke==="html5"||ke==="screenshot"?ke:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],zt=function(ke,lt){if(ie=ke,lt){Kt(ie,!0);return}var ht=!ue;if(ht){var tn=ne(ie);!isNaN(tn)&&tn<4.4&&(ht=!1)}var Et,kt;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var be=ie.indexOf("//");be>0?kt=ie:be===0?kt=Et+ie:kt="https://www.geogebra.org/apps/5.2.814.0/";for(var Bt in gt)if(ie.slice(gt[Bt].length*-1)===gt[Bt]||ie.slice((gt[Bt].length+1)*-1)===gt[Bt]+"/"){Kt(kt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ht&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!fe(te.showToolBar)&&!fe(te.showMenuBar)&&!fe(te.showAlgebraInput)&&!fe(te.enableRightClick)&&(!te.appName||te.appName=="classic")?kt+="webSimple/":kt+="web3d/",Kt(kt,!1)},Kt=function(ke,lt){if(ke.requirejs){He=ke;return}ke.slice(-1)!=="/"&&(ke+="/"),He=ke,lt===null&&(lt=ke.indexOf("http")===-1),Ue=lt,a="web.nocache.js",y=!1;var ht=He.split("/");ht.length>1&&(!lt&&ht[ht.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(ht[ht.length-2])>=0&&(a=ht[ht.length-2]+".nocache.js")),ht=ke.split("/"),ie=ht[ht.length-3],ie.substr(0,4)==="test"?ie=ie.substr(4,1)+"."+ie.substr(5,1):(ie.substr(0,3)==="war"||ie.substr(0,4)==="beta")&&(ie="5.0");var tn=parseFloat(ie);tn!==NaN&&tn<5&&ke.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+tn+" is deprecated. Using version latest instead."),zt("5.0",lt))},bn=function(ke,lt){window.console&&window.console.log&&(!lt||typeof lt.showLogging=="undefined"||lt.showLogging&<.showLogging!=="false")&&console.log(ke)};te.material_id!==void 0?me(xn):xn();function xn(){var ke=ot;Fe!==null?ke=Fe:parseFloat(ke)<5&&(ke="5.0"),zt(ke,!1),re!==null&&Kt(re,Ue),xe=!0}return Xe},GGBAppletUtils=function(){"use strict";function Xe(){return window.GGBT_wsf_edit!==void 0}function ot(xe,Fe){Fe!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Fe+","+Fe+")",xe.style.webkitTransform="scale("+Fe+","+Fe+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function te(xe,Fe,re,Ye,Me,Re){var He=null;if(Re!=null&&Re!="")for(var Ue=xe.parentNode;Ue!=null;)if((" "+Ue.className+" ").indexOf(" "+Re+" ")>-1){He=Ue;break}else Ue=Ue.parentNode;var Ce=0,ie=0,a=0,y=0,x=0,b=0,E=0;if(He)Ce=He.offsetWidth,ie=Math.max(Ye?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ie=window.innerHeight,a=window.innerWidth),xe){var z=xe.getBoundingClientRect();z.left>0&&z.left<=Ce&&(Me===void 0||!Me)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return xe&&((re===void 0||!re)&&Fe>0&&Fe+y<Ce?Ce=Fe:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(re===void 0||!re)&&(ie-=E)),{width:Ce,height:ie}}function le(xe,Fe,re,Ye,Me){if(xe.isScreenshoGenerator)return 1;var Re=Ye!==void 0&&Ye,He=xe.noScaleMargin!=null&&xe.noScaleMargin,Ue=function(ee){return ee&&ee!=="false"},Ce=Ue(xe.autoHeight),ie=te(Fe,xe.width,re,Ce,Re&&window.GGBT_wsf_view||He,Me),a=parseInt(ie.width),y=xe.width,x=xe.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Re?1:ie.height/x;return re!==void 0&&!re&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function ue(xe,Fe,re){var Ye=1,Me,Re=!1;if(xe.hasOwnProperty("allowUpscale")&&(Re=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Ye=parseFloat(xe.scale),(isNaN(Ye)||Ye===null||Ye===0)&&(Ye=1),Ye>1&&(Re=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Re=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Me=le(xe,Fe,Re,re,xe.scaleContainerClass);else return Ye;return Re&&(!xe.hasOwnProperty("scale")||Ye===1)?Me:Math.min(Ye,Me)}function $e(xe){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=xe.getBoundingClientRect(),Me=(Fe-Ye.width)/2,Re=(re-Ye.height)/2;Re<0&&(Re=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?xe.style.left="40px":xe.style.left=Me+"px",xe.style.top=Re+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Re<40?xe.style.top="40px":xe.style.top=Re+"px",xe.style.left=Me+"px")}function Ie(xe,Fe){var re=xe.querySelector(".appletParameters");if(re){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==re.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(re.parentElement&&/fullscreen/.test(re.parentElement.className))return;var Ye=ue(Fe,xe);Xe()&&re.setAttribute("data-param-scale",Ye);for(var Me=null,Re=0;Re<xe.childNodes.length;Re++)if(xe.childNodes[Re].className!==void 0&&xe.childNodes[Re].className.match(/^applet_scaler/)){Me=xe.childNodes[Re];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var He=Fe.id!==void 0?Fe.id:"ggbApplet",Ue=window[He];(Ue==null||!Ue.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(Ye)&&Ye!==1?(Me.parentNode.style.width=Fe.width*Ye+"px",Me.parentNode.style.height=Fe.height*Ye+"px",ot(Me,Ye)):(ot(Me,1),Me.parentNode.style.width=Fe.width+"px",Me.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&$e(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(re).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Xe,positionCenter:$e,getScale:ue,scaleElement:ot}}();__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 Xe=n.location.search;return Xe.indexOf(J)!=-1||Xe.indexOf(K)!=-1}function q(Xe,ot){}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(Xe){var ot=s[L].bindings;s[L].bindings=function(){for(var te=ot?ot():{},le=Xe[webModule.__softPermutationId],ue=O;ue<le.length;ue++){var $e=le[ue];te[$e[O]]=$e[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var Xe=o.createElement(Q);if(Xe.id=L,Xe.style.cssText=R+S,Xe.tabIndex=-1,o.body.appendChild(Xe),t=Xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(Xe){function ot(le){function ue(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var $e=ue();if($e){le();return}function Ie(){if(!$e){if(!ue())return;$e=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var xe=setInterval(function(){Ie()},$)}function te(le){var ue=u(),$e=ue.body,Ie=ue.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=le,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),$e.appendChild(Ie)}ot(function(){te(Xe)})}webModule.__startLoadingFragment=function(Xe){return C(Xe)},webModule.__installRunAsyncCode=function(Xe){var ot=u(),te=ot.body,le=ot.createElement(_);le.language=ab,le.text=Xe,te.appendChild(le),te.removeChild(le)};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(Xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Xe){var ot=c[Xe];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function Xe(xe){var Fe=xe.lastIndexOf(rb);Fe==-1&&(Fe=xe.length);var re=xe.indexOf(sb);re==-1&&(re=xe.length);var Ye=xe.lastIndexOf(tb,Math.min(re,Fe));return Ye>=O?xe.substring(O,Ye+P):W}function ot(xe){if(!xe.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=xe+vb,xe=Xe(Fe.src)}return xe}function te(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function le(){for(var xe=o.getElementsByTagName(_),Fe=O;Fe<xe.length;++Fe)if(xe[Fe].src.indexOf(xb)!=-1)return Xe(xe[Fe].src);return W}function ue(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function $e(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Ie=te();return Ie==W&&(Ie=le()),Ie==W&&(Ie=ue()),Ie==W&&$e()&&(Ie=Xe(o.location.href)),Ie=ot(Ie),Ie}function C(Xe){return Xe.match(/^\//)||Xe.match(/^[a-zA-Z]+:\/\//)?Xe:webModule.__moduleBase+Xe}function D(){var Xe=[],ot=O,te=[],le=[];function ue(xe){var Fe=le[xe](),re=te[xe];if(Fe in re)return Fe;var Ye=[];for(var Me in re)Ye[re[Me]]=Me;throw r&&r(xe,Ye,Fe),null}if(__gwt_isKnownPropertyValue=function(xe,Fe){return Fe in te[xe]},webModule.__getPropMap=function(){var xe={};for(var Fe in te)te.hasOwnProperty(Fe)&&(xe[Fe]=ue(Fe));return xe},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var $e;try{$e=Cb;var Ie=$e.indexOf(Db);Ie!=-1&&(ot=parseInt($e.substring(Ie+P),$),$e=$e.substring(O,Ie))}catch(xe){}return webModule.__softPermutationId=ot,C($e+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})()},15476:function(Xe,ot,te){"use strict";te.d(ot,{Ax:function(){return Ie},Ds:function(){return xe},KI:function(){return re},SI:function(){return $e},f1:function(){return ue}});var le=te(11320);function ue(Ye){let Me=!0;if(Ye.length>0){for(let Re=0;Re<Ye.length;Re++)if(Ye[Re].compile_success==0||!Ye[Re].compile_success){Me=!1;break}}else Me=!1;return Me}function $e(Ye,Me=""){let Re=[];for(let He=0;He<Ye.length;He++){let Ue=Ye[He],Ce=Me?`${Me}/${Ue.name}`:`${Ue.name}`;Re.push({title:Ue.name,type:Ue.type,isLeaf:Ue.type!=="tree",key:Ce})}return Re}function Ie(Ye,Me,Re){for(let He=0;He<Ye.length;He++){let Ue=Ye[He];if(Ue.key===Me){Ue.children=Re;break}Ue.children&&Ie(Ue.children,Me,Re)}return Ye}function xe(Ye,Me,Re){let He;return function(){let Ue=this,Ce=arguments,ie=function(){He=null,Re||Ye.apply(Ue,Ce)},a=Re&&!He;clearTimeout(He),He=setTimeout(ie,Me),a&&Ye.apply(Ue,Ce)}}const Fe=!0,re=le.Z.API_SERVER},63205:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return He}});var le=te(67294),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},$e=te(94184),Ie=te.n($e),xe=te(57953),Fe=te(15979),re=te(33170),Ye=te(28706),Me=(Ue,Ce,ie)=>new Promise((a,y)=>{var x=z=>{try{E(ie.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ie.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ie=ie.apply(Ue,Ce)).next())}),He=({data:Ue,className:Ce,fullWidth:ie,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,le.useRef)(null),ee=(0,le.useRef)(null),ne=(0,le.useRef)(null),de=(0,le.useRef)(null),[se,me]=(0,le.useState)(!1),[ye,pe]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ue!=null&&Ue.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ue!=null&&Ue.src&&Le()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ue==null?void 0:Ue.visible]);const Le=()=>Me(void 0,null,function*(){me(!0),pe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ee=yield(0,Ye.ZJ)(Ue==null?void 0:Ue.src);z.current.src="",z.current.src=Ee,z.current.onload=function(){Vt()},me(!1),pe("")}),fe=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},yt=Ee=>Me(void 0,null,function*(){me(!0),pe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ge=yield(0,re.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ue.title,file:Ee.dataUrl}});Ge!=null&&Ge.id&&!E?(yield(0,re.ZP)(`/api/attachments/${Ue.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ge==null?void 0:Ge.id,settings:JSON.stringify(Ee.state)}})).status===0&&x():Ge!=null&&Ge.id&&x(Ge),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",me(!1),pe("")}),rt=()=>{const Ee=document.querySelector('a[href="https://markerjs.com/"]');Ee&&Ee.parentNode&&(Ee.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(tt=>{const nt=document.querySelector(tt.name);nt&&nt.setAttribute("title",tt.title)})},Vt=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=de.current,ee.current.addEventListener("render",yt),ee.current.addEventListener("beforeclose",fe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ue!=null&&Ue.snapshotData&&ee.current.restoreState(Ue.snapshotData),setTimeout(()=>{window.scrollTo(0,0),rt()},300)};return le.createElement(le.Fragment,null,(Ue==null?void 0:Ue.visible)&&le.createElement(xe.Z,{spinning:se,tip:ye,style:{position:"absolute"}},le.createElement("div",{ref:de,className:Ie()(ue.imageDimensions,Ce,ie?ue.fullWidth:""),style:a},le.createElement("img",{className:ue.img,ref:z}))))}},36527:function(Xe,ot,te){"use strict";var le=te(67294),ue=te(71230),$e=te(15746),Ie=te(66368),xe=te(71577),Fe=te(85725),re=te(71736),Ye=te(84279),Me=te(67294);const Re=(0,le.forwardRef)(({callback:He,showSaveButton:Ue,value:Ce=""},ie)=>{const a=(0,le.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(ue.Z,{className:re.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Me.createElement($e.Z,{flex:"110px",className:re.Z.item},Me.createElement("div",null,Me.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:re.Z.children},ee.children.map((de,se)=>Me.createElement("div",{key:se},Me.createElement("h1",null,de.name),Me.createElement(ue.Z,{gutter:[10,10]},de.data.map((me,ye)=>Me.createElement($e.Z,{key:ye,onClick:()=>b(me),className:re.Z.diamond},Me.createElement(Fe.Z,{value:"`$$"+me.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(ue.Z,{className:re.Z.lists,gutter:[10,10]},x.map((ee,ne)=>Me.createElement($e.Z,{flex:"110px",className:re.Z.item},Me.createElement("div",null,Me.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:re.Z.children},ee.children.map((de,se)=>Me.createElement("div",{key:se},de.name&&Me.createElement("h1",null,de.name),Me.createElement(ue.Z,{gutter:[10,10]},de.data.map((me,ye)=>Me.createElement($e.Z,{key:ye,onClick:()=>b(me),className:re.Z.diamond},Me.createElement(Fe.Z,{value:"`$$"+me.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return He&&He(ne),ne};return(0,le.useImperativeHandle)(ie,()=>({getData:z})),Me.createElement("div",{className:re.Z.mathWrap},Me.createElement(Ie.default,{defaultActiveKey:"1",items:E}),Me.createElement("math-field",{locale:"zh_cn",className:re.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Ue&&Me.createElement("div",{className:re.Z.button},Me.createElement(xe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Re},57444:function(Xe,ot,te){"use strict";te.d(ot,{h:function(){return ee}});var le=te(67294),ue=te(11713),$e=te(22150),Ie=te(71577),xe=te(4631),Fe=te.n(xe),re=te(71749),Ye=te(30483),Me=Object.defineProperty,Re=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,a=(ne,de,se)=>de in ne?Me(ne,de,{enumerable:!0,configurable:!0,writable:!0,value:se}):ne[de]=se,y=(ne,de)=>{for(var se in de||(de={}))Ce.call(de,se)&&a(ne,se,de[se]);if(Ue)for(var se of Ue(de))ie.call(de,se)&&a(ne,se,de[se]);return ne},x=(ne,de)=>Re(ne,He(de));const b=ue.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ot.Z=({callback:ne,onCancel:de})=>{const[se,me]=(0,le.useState)("python");function ye(Le){me(z[Le][1])}function pe(Le){ne(Le)}return le.createElement($e.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pe,style:{width:500}}),le.createElement($e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(ue.default,{getPopupContainer:Le=>Le.parentNode,onChange:ye},Object.keys(z).map(Le=>le.createElement(b,{key:Le,value:Le},z[Le][0])))),le.createElement($e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(ee,{mode:se})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ie.ZP,{type:"ghost",onClick:de},"\u53D6\u6D88")))};function ee({value:ne,onChange:de,mode:se,options:me={}}){const ye=(0,le.useRef)(),[pe,Le]=(0,le.useState)();return(0,le.useEffect)(()=>{if(pe){let fe=function(yt){const rt=yt.getValue();de&&de(rt)};return pe.on("change",fe),()=>{pe.off("change",fe)}}},[pe,de]),(0,le.useEffect)(()=>{pe&&pe.setOption("mode",se)},[pe,se]),(0,le.useEffect)(()=>{pe&&(ne!==pe.getValue()||ne==="")&&setTimeout(()=>{pe.setValue(ne||"")},300)},[pe,ne]),(0,le.useEffect)(()=>{if(ye.current&&!pe){const fe=Fe().fromTextArea(ye.current,y({mode:se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Le(fe)}},[ye.current,pe]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:ye}))}},35567:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return ha}});var le=te(67294),ue=te(4631),$e=te.n(ue),Ie=te(91033),xe=te(71749),Fe=te(57341),re=te(82801),Ye=te(88386),Me=te(49047),Re=te(80785),He=te(85725),Ue=({value:Oe="",className:Ze,showTextOnly:Ke,showLines:$t,style:Pn={}})=>{const En=(0,le.useMemo)(()=>"",[Oe]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:En}}))},Ce=te(67294),ie=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(Oe,Ze,Ke)=>Ze in Oe?ie(Oe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Oe[Ze]=Ke,ee=(Oe,Ze)=>{for(var Ke in Ze||(Ze={}))b.call(Ze,Ke)&&z(Oe,Ke,Ze[Ke]);if(x)for(var Ke of x(Ze))E.call(Ze,Ke)&&z(Oe,Ke,Ze[Ke]);return Oe},ne=(Oe,Ze)=>a(Oe,y(Ze));let de=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function se({onActionCallback:Oe,title:Ze,icon:Ke,actionName:$t,className:Pn="",children:En}){function Ea(){Oe($t)}return Ce.createElement("a",{title:Ze,className:Pn,onClick:Ea},Ce.createElement("i",{className:`${Ke}`}),En)}var me=({watch:Oe,showNullButton:Ze,showNullProgramButton:Ke,onActionCallback:$t,fullScreen:Pn,insertTemp:En,hidetoolBar:Ea,extraUse:ra})=>{const Fn=[...de,{title:`${Oe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Oe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!Ea&&Fn.map((ma,Ha)=>Ce.createElement("li",{key:Ha},ma.actionName?Ce.createElement(se,ne(ee({},ma),{onActionCallback:$t})):Ce.createElement("span",{className:"v-line"}))),Ze?Ce.createElement("li",null,Ce.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$t},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ke?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$t},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(se,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$t},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,En&&Ce.createElement("li",null,Ce.createElement(se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${En}`,onActionCallback:$t},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ra&&Ce.createElement("li",null,ra),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(se,{icon:`${Pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$t})))},ye=te(76621),pe=te(22150),Le=te(69677),fe=te(71577),yt=Object.defineProperty,rt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,nt=(Oe,Ze,Ke)=>Ze in Oe?yt(Oe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Oe[Ze]=Ke,gt=(Oe,Ze)=>{for(var Ke in Ze||(Ze={}))Ge.call(Ze,Ke)&&nt(Oe,Ke,Ze[Ke]);if(Ee)for(var Ke of Ee(Ze))tt.call(Ze,Ke)&&nt(Oe,Ke,Ze[Ke]);return Oe},zt=(Oe,Ze)=>rt(Oe,Vt(Ze));const Kt={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:Oe,onCancel:Ze})=>{function Ke($t){Oe($t)}return le.createElement(pe.default,zt(gt({},Kt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ke,style:{width:500}}),le.createElement(pe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(Le.default,null)),le.createElement(pe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(Le.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(fe.ZP,{type:"ghost",onClick:Ze},"\u53D6\u6D88")))},xn=te(57444),ke=te(70859),lt=te(14446),ht=te(71230),tn=te(63205),Et=te(67294),kt=({callback:Oe,onCancel:Ze})=>{const Ke=document.createElement("canvas"),$t=Ke.getContext("2d");Ke.width=1e3,Ke.height=800,$t.fillStyle="#ffffff",$t.fillRect(0,0,Ke.width,Ke.height);const Pn=Ke.toDataURL("image/png");return Et.createElement(lt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(ht.Z,{style:{height:"100vh"}},Et.createElement(tn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:En=>{Oe({src:En.url})},onClose:Ze})))},be=te(23495);function Bt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Bt,go.CommandHandler),Bt.prototype.canAlignSelection=function(){var Oe=this.diagram;return!(Oe===null||Oe.isReadOnly||Oe.isModelReadOnly||Oe.selection.count<2)},Bt.prototype.alignLeft=function(){var Oe=this.diagram;Oe.startTransaction("aligning left");var Ze=1/0;Oe.selection.each(function(Ke){Ke instanceof go.Link||(Ze=Math.min(Ke.position.x,Ze))}),Oe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ze,Ke.position.y))}),Oe.commitTransaction("aligning left")},Bt.prototype.alignRight=function(){var Oe=this.diagram;Oe.startTransaction("aligning right");var Ze=-1/0;Oe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var $t=Ke.actualBounds.x+Ke.actualBounds.width;Ze=Math.max($t,Ze)}}),Oe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ze-Ke.actualBounds.width,Ke.position.y))}),Oe.commitTransaction("aligning right")},Bt.prototype.alignTop=function(){var Oe=this.diagram;Oe.startTransaction("alignTop");var Ze=1/0;Oe.selection.each(function(Ke){Ke instanceof go.Link||(Ze=Math.min(Ke.position.y,Ze))}),Oe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.position.x,Ze))}),Oe.commitTransaction("alignTop")},Bt.prototype.alignBottom=function(){var Oe=this.diagram;Oe.startTransaction("aligning bottom");var Ze=-1/0;Oe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var $t=Ke.actualBounds.y+Ke.actualBounds.height;Ze=Math.max($t,Ze)}}),Oe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.actualBounds.x,Ze-Ke.actualBounds.height))}),Oe.commitTransaction("aligning bottom")},Bt.prototype.alignCenterX=function(){var Oe=this.diagram,Ze=Oe.selection.first();if(Ze){Oe.startTransaction("aligning Center X");var Ke=Ze.actualBounds.x+Ze.actualBounds.width/2;Oe.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point(Ke-$t.actualBounds.width/2,$t.actualBounds.y))}),Oe.commitTransaction("aligning Center X")}},Bt.prototype.alignCenterY=function(){var Oe=this.diagram,Ze=Oe.selection.first();if(Ze){Oe.startTransaction("aligning Center Y");var Ke=Ze.actualBounds.y+Ze.actualBounds.height/2;Oe.selection.each(function($t){$t instanceof go.Link||$t.move(new go.Point($t.actualBounds.x,Ke-$t.actualBounds.height/2))}),Oe.commitTransaction("aligning Center Y")}},Bt.prototype.alignColumn=function(Oe){var Ze=this.diagram;Ze.startTransaction("align Column"),Oe===void 0&&(Oe=0),Oe=parseFloat(Oe);var Ke=new Array;Ze.selection.each(function(ra){ra instanceof go.Link||Ke.push(ra)});for(var $t=0;$t<Ke.length-1;$t++){var Pn=Ke[$t],En=Pn.actualBounds.y+Pn.actualBounds.height+Oe,Ea=Ke[$t+1];Ea.move(new go.Point(Pn.actualBounds.x,En))}Ze.commitTransaction("align Column")},Bt.prototype.alignRow=function(Oe){Oe===void 0&&(Oe=0),Oe=parseFloat(Oe);var Ze=this.diagram;Ze.startTransaction("align Row");var Ke=new Array;Ze.selection.each(function(ra){ra instanceof go.Link||Ke.push(ra)});for(var $t=0;$t<Ke.length-1;$t++){var Pn=Ke[$t],En=Pn.actualBounds.x+Pn.actualBounds.width+Oe,Ea=Ke[$t+1];Ea.move(new go.Point(En,Pn.actualBounds.y))}Ze.commitTransaction("align Row")},Bt.prototype.canRotate=function(Oe){var Ze=this.diagram;return!(Ze===null||Ze.isReadOnly||Ze.isModelReadOnly||Ze.selection.count<1)},Bt.prototype.rotate=function(Oe){Oe===void 0&&(Oe=90);var Ze=this.diagram;Ze.startTransaction("rotate "+Oe.toString());var Ze=this.diagram;Ze.selection.each(function(Ke){Ke instanceof go.Link||Ke instanceof go.Group||(Ke.angle+=Oe)}),Ze.commitTransaction("rotate "+Oe.toString())},Bt.prototype.pullToFront=function(){var Oe=this.diagram;Oe.startTransaction("pullToFront");var Ze=new go.Map;Oe.selection.each(function(Ke){Ze.set(Ke.layer,0)}),Ze.iteratorKeys.each(function(Ke){var $t=0;Ke.parts.each(function(Pn){if(!Pn.isSelected){var En=Pn.zOrder;isNaN(En)?Pn.zOrder=0:$t=Math.max($t,En)}}),Ze.set(Ke,$t)}),Oe.selection.each(function(Ke){Bt._assignZOrder(Ke,Ze.get(Ke.layer)+1)}),Oe.commitTransaction("pullToFront")},Bt.prototype.pushToBack=function(){var Oe=this.diagram;Oe.startTransaction("pushToBack");var Ze=new go.Map;Oe.selection.each(function(Ke){Ze.set(Ke.layer,0)}),Ze.iteratorKeys.each(function(Ke){var $t=0;Ke.parts.each(function(Pn){if(!Pn.isSelected){var En=Pn.zOrder;isNaN(En)?Pn.zOrder=0:$t=Math.min($t,En)}}),Ze.set(Ke,$t)}),Oe.selection.each(function(Ke){Bt._assignZOrder(Ke,Ze.get(Ke.layer)-1-Bt._findGroupDepth(Ke))}),Oe.commitTransaction("pushToBack")},Bt._assignZOrder=function(Oe,Ze,Ke){Ke===void 0&&(Ke=Oe),Oe.layer===Ke.layer&&(Oe.zOrder=Ze),Oe instanceof go.Group&&Oe.memberParts.each(function($t){Bt._assignZOrder($t,Ze+1,Ke)})},Bt._findGroupDepth=function(Oe){if(Oe instanceof go.Group){var Ze=0;return Oe.memberParts.each(function(Ke){Ze=Math.max(Ze,Bt._findGroupDepth(Ke))}),Ze+1}else return 0},Bt.prototype.doKeyDown=function(){var Oe=this.diagram;if(Oe!==null){var Ze=Oe.lastInput;if(Ze.key==="Up"||Ze.key==="Down"||Ze.key==="Left"||Ze.key==="Right"){var Ke=this.arrowKeyBehavior;if(Ke==="none")return;if(Ke==="select"){this._arrowKeySelect();return}else if(Ke==="move"){this._arrowKeyMove();return}else if(Ke==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Bt.prototype._getAllParts=function(){var Oe=new Array;return this.diagram.nodes.each(function(Ze){Oe.push(Ze)}),this.diagram.parts.each(function(Ze){Oe.push(Ze)}),Oe},Bt.prototype._arrowKeyMove=function(){var Oe=this.diagram,Ze=Oe.lastInput,Ke=0,$t=0;if(Ze.control||Ze.meta)Ke=1,$t=1;else if(Oe.grid!==null){var Pn=Oe.grid.gridCellSize;$t=Pn.width,Ke=Pn.height}Oe.startTransaction("arrowKeyMove"),Oe.selection.each(function(En){Ze.key==="Up"?En.move(new go.Point(En.actualBounds.x,En.actualBounds.y-Ke)):Ze.key==="Down"?En.move(new go.Point(En.actualBounds.x,En.actualBounds.y+Ke)):Ze.key==="Left"?En.move(new go.Point(En.actualBounds.x-$t,En.actualBounds.y)):Ze.key==="Right"&&En.move(new go.Point(En.actualBounds.x+$t,En.actualBounds.y))}),Oe.commitTransaction("arrowKeyMove")},Bt.prototype._arrowKeySelect=function(){var Oe=this.diagram,Ze=Oe.lastInput,Ke=null;Ze.key==="Up"?Ke=this._findNearestPartTowards(270):Ze.key==="Down"?Ke=this._findNearestPartTowards(90):Ze.key==="Left"?Ke=this._findNearestPartTowards(180):Ze.key==="Right"&&(Ke=this._findNearestPartTowards(0)),Ke!==null&&(Ze.shift?Ke.isSelected=!0:Ze.control||Ze.meta?Ke.isSelected=!Ke.isSelected:Oe.select(Ke))},Bt.prototype._findNearestPartTowards=function(Oe){var Ze=this.diagram.selection.first();if(Ze===null)return null;for(var Ke=Ze.actualBounds.center,$t=this._getAllParts(),Pn=1/0,En=Ze,Ea=0;Ea<$t.length;Ea++){var ra=$t[Ea];if(ra!==Ze&&ra.canSelect()){var Fn=ra.actualBounds.center,ma=Ke.directionPoint(Fn),Ha=this._angleCloseness(ma,Oe);if(Ha<=45){var At=Ke.distanceSquaredPoint(Fn);At*=1+Math.sin(Ha*Math.PI/180),At<Pn&&(Pn=At,En=ra)}}}return En},Bt.prototype._angleCloseness=function(Oe,Ze){return Math.min(Math.abs(Ze-Oe),Math.min(Math.abs(Ze+360-Oe),Math.abs(Ze-360-Oe)))},Bt.prototype._arrowKeyTree=function(){var Oe=this.diagram,Ze=Oe.selection.first();if(Ze instanceof go.Node){var Ke=Oe.lastInput;if(Ke.key==="Right"){if(!Ze.isTreeLeaf)if(!Ze.isTreeExpanded)Oe.commandHandler.canExpandTree(Ze)&&Oe.commandHandler.expandTree(Ze);else{var $t=this._sortTreeChildrenByY(Ze).first();$t!==null&&Oe.select($t)}}else if(Ke.key==="Left")if(!Ze.isTreeLeaf&&Ze.isTreeExpanded)Oe.commandHandler.canCollapseTree(Ze)&&Oe.commandHandler.collapseTree(Ze);else{var Pn=Ze.findTreeParentNode();Pn!==null&&Oe.select(Pn)}else if(Ke.key==="Up"){var Pn=Ze.findTreeParentNode();if(Pn!==null){var En=this._sortTreeChildrenByY(Pn),Ea=En.indexOf(Ze);if(Ea>0){for(var ra=En.elt(Ea-1);ra!==null&&ra.isTreeExpanded&&!ra.isTreeLeaf;){var Fn=this._sortTreeChildrenByY(ra);ra=Fn.last()}ra!==null&&Oe.select(ra)}else Oe.select(Pn)}}else if(Ke.key==="Down")if(Ze.isTreeExpanded&&!Ze.isTreeLeaf){var $t=this._sortTreeChildrenByY(Ze).first();$t!==null&&Oe.select($t)}else for(;Ze!==null;){var Pn=Ze.findTreeParentNode();if(Pn===null)break;var En=this._sortTreeChildrenByY(Pn),Ea=En.indexOf(Ze);if(Ea<En.length-1){Oe.select(En.elt(Ea+1));break}else Ze=Pn}var ma=Oe.selection.first();ma!==null&&Oe.scrollToRect(ma.actualBounds)}},Bt.prototype._sortTreeChildrenByY=function(Oe){var Ze=new go.List().addAll(Oe.findTreeChildrenNodes());return Ze.sort(function(Ke,$t){var Pn=Ke.location,En=$t.location;return Pn.y<En.y?-1:Pn.y>En.y?1:Pn.x<En.x?-1:Pn.x>En.x?1:0}),Ze},Bt.prototype.copyToClipboard=function(Oe){go.CommandHandler.prototype.copyToClipboard.call(this,Oe),this._lastPasteOffset.set(this.pasteOffset)},Bt.prototype.pasteFromClipboard=function(){var Oe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Oe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Oe},Object.defineProperty(Bt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Oe){if(Oe!=="move"&&Oe!=="select"&&Oe!=="scroll"&&Oe!=="tree"&&Oe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Oe);this._arrowKeyBehavior=Oe}}),Object.defineProperty(Bt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Oe){if(!(Oe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Oe);this._pasteOffset.set(Oe)}});var en=Bt,$n=te(18023),jt=te(15746),ct=te(33170),_e={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},De=te(67294),ze=(Oe,Ze,Ke)=>new Promise(($t,Pn)=>{var En=Fn=>{try{ra(Ke.next(Fn))}catch(ma){Pn(ma)}},Ea=Fn=>{try{ra(Ke.throw(Fn))}catch(ma){Pn(ma)}},ra=Fn=>Fn.done?$t(Fn.value):Promise.resolve(Fn.value).then(En,Ea);ra((Ke=Ke.apply(Oe,Ze)).next())});function Qe({onCancel:Oe,callback:Ze}){let Ke=(0,le.useRef)(),$t=(0,le.useRef)(),Pn=(0,le.useRef)(),En=(0,le.useRef)(!1);const Ea=(0,le.useRef)(!1),[ra,Fn]=(0,le.useState)(0);function ma(){const At=be.bx.make,sa={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"};Ke.current=new be.S0($t.current,{padding:20,grid:At(be.s_,"Grid",At(be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),At(be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Zt=>{var Bn=Zt.diagram.commandHandler.addTopLevelParts(Zt.diagram.selection,!0);Bn||Zt.diagram.currentTool.doCancel()},commandHandler:At(en),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Zt=>{var Bn=Zt.subject;Bn.location=Bn.location.copy().snapToGridPoint(Zt.diagram.grid.gridOrigin,Zt.diagram.grid.gridCellSize),setTimeout(()=>{Zt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Zt=>{var Bn=Zt.subject;setTimeout(()=>{Zt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Zt=>{var Bn=Zt.parameter.part;Bn.invalidateConnectedLinks();var da=Zt.subject;Zt.diagram.toolManager.linkingTool.isForwards?da.toNode.invalidateConnectedLinks():da.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ke.current.nodeTemplate=At(be.NB,"Auto",{locationSpot:be.z6.Center,locationObjectName:"SHAPE",desiredSize:new be.$u(120,60),minSize:new be.$u(40,40),resizable:!0,resizeCellSize:new be.$u(10,10),rotatable:!0},new be.KX("location","loc",be.E9.parse).makeTwoWay(be.E9.stringify),new be.KX("desiredSize","size",be.$u.parse).makeTwoWay(be.$u.stringify),At(be.bn,{name:"SHAPE",fill:sa.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:be.z6.AllSides,toSpot:be.z6.AllSides},new be.KX("figure"),new be.KX("fill"),new be.KX("stroke","borderColor"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),At(be.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),At(be.al,{margin:1,textAlign:"center",overflow:be.al.OverflowEllipsis,editable:!0},new be.KX("text").makeTwoWay(),new be.KX("stroke","color"))),Ke.current.nodeTemplate.toolTip=At("ToolTip",At(be.s_,"Vertical",{maxSize:new be.$u(200,NaN)},At(be.al,{font:"bold 10pt sans-serif",textAlign:"center"},new be.KX("text")),At(be.al,{font:"10pt sans-serif",textAlign:"center"},new be.KX("text","details"))));function lo(Zt,Bn){var da=(jn,So)=>{jn.handled=!0,jn.diagram.model.commit(La=>{var ja=So.part.adornedPart,so=new be.E9().setRectSpot(ja.actualBounds,Zt);so.subtract(ja.location),so.scale(2,2),so.x+=Math.sign(so.x)*130,so.y+=Math.sign(so.y)*130,so.add(ja.location),so.snapToGridPoint(jn.diagram.grid.gridOrigin,jn.diagram.grid.gridCellSize);var Eo=La.copyNodeData(ja.data);La.setGroupKeyForNodeData(Eo,La.getGroupKeyForNodeData(ja.data)),La.addNodeData(Eo);var or={from:ja.key,to:La.getKeyForNodeData(Eo)};La.addLinkData(or);var Co=jn.diagram.findNodeForData(Eo);Co.location=so,jn.diagram.select(Co),setTimeout(()=>{jn.diagram.commandHandler.editTextBlock()},20)})};return At(be.bn,{figure:Bn,alignment:Zt,alignmentFocus:Zt.opposite(),width:Zt.equals(be.z6.Top)||Zt.equals(be.z6.Bottom)?25:18,height:Zt.equals(be.z6.Top)||Zt.equals(be.z6.Bottom)?18:25,fill:"orange",stroke:sa.white,strokeWidth:4,mouseEnter:(jn,So)=>So.fill="dodgerblue",mouseLeave:(jn,So)=>So.fill="orange",isActionable:!0,click:da,contextClick:da})}function Po(Zt){return At(be.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:(Bn,da)=>da.fill="dodgerblue",mouseLeave:(Bn,da)=>da.fill="orange",click:(Bn,da)=>{Bn.diagram.commandHandler.showContextMenu(da.part.adornedPart)}},Zt||{})}Ke.current.nodeTemplate.selectionAdornmentTemplate=At(be.uz,"Spot",At(be.Vm,{padding:10}),lo(be.z6.Top,"TriangleUp"),lo(be.z6.Left,"TriangleLeft"),lo(be.z6.Right,"TriangleRight"),lo(be.z6.Bottom,"TriangleDown"),Po({alignment:new be.z6(.75,0)}));function Ja(Zt,Bn){return(da,jn)=>{da.handled=!0,da.diagram.model.commit(So=>{So.set(jn.part.adornedPart.data,Zt,Bn)})}}function za(Zt,Bn){return Bn||(Bn="color"),At(be.bn,{width:16,height:16,stroke:"lightgray",fill:Zt,margin:1,background:"transparent",mouseEnter:(da,jn)=>jn.stroke="dodgerblue",mouseLeave:(da,jn)=>jn.stroke="lightgray",click:Ja(Bn,Zt),contextClick:Ja(Bn,Zt)})}function $o(){return[At("ContextMenuButton",At(be.s_,"Horizontal",za(sa.white,"fill"),za(sa.beige,"fill"),za(sa.extralightblue,"fill"),za(sa.extralightred,"fill"))),At("ContextMenuButton",At(be.s_,"Horizontal",za(sa.lightgray,"fill"),za(sa.lightgreen,"fill"),za(sa.lightblue,"fill"),za(sa.lightred,"fill")))]}function Sa(){return[At("ContextMenuButton",At(be.s_,"Horizontal",za(sa.black),za(sa.green),za(sa.blue),za(sa.red))),At("ContextMenuButton",At(be.s_,"Horizontal",za(sa.white),za(sa.magenta),za(sa.purple),za(sa.orange)))]}function Ko(Zt,Bn){return Bn||(Bn="thickness"),At(be.bn,"LineH",{width:16,height:16,strokeWidth:Zt,margin:1,background:"transparent",mouseEnter:(da,jn)=>jn.background="dodgerblue",mouseLeave:(da,jn)=>jn.background="transparent",click:Ja(Bn,Zt),contextClick:Ja(Bn,Zt)})}function xo(Zt,Bn){return Bn||(Bn="dash"),At(be.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Zt,margin:1,background:"transparent",mouseEnter:(da,jn)=>jn.background="dodgerblue",mouseLeave:(da,jn)=>jn.background="transparent",click:Ja(Bn,Zt),contextClick:Ja(Bn,Zt)})}function To(){return[At("ContextMenuButton",At(be.s_,"Horizontal",Ko(1),Ko(2),Ko(3),Ko(4))),At("ContextMenuButton",At(be.s_,"Horizontal",xo(null),xo([2,4]),xo([4,4])))]}function to(Zt,Bn){return Bn||(Bn="figure"),At(be.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Zt,margin:1,background:"transparent",mouseEnter:(da,jn)=>jn.fill="dodgerblue",mouseLeave:(da,jn)=>jn.fill="lightgray",click:Ja(Bn,Zt),contextClick:Ja(Bn,Zt)})}Ke.current.nodeTemplate.contextMenu=At("ContextMenu",At("ContextMenuButton",At(be.s_,"Horizontal",to("Rectangle"),to("RoundedRectangle"),to("Ellipse"),to("Diamond"))),At("ContextMenuButton",At(be.s_,"Horizontal",to("Parallelogram2"),to("ManualOperation"),to("Procedure"),to("Cylinder1"))),At("ContextMenuButton",At(be.s_,"Horizontal",to("Terminator"),to("CreateRequest"),to("Document"),to("TriangleDown"))),$o(),Sa(),To()),Ke.current.groupTemplate=At(be.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:be.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Zt,Bn)=>{var da=Bn.addMembers(Bn.diagram.selection,!0);da||Bn.diagram.currentTool.doCancel()},avoidable:!1},new be.KX("location","loc",be.E9.parse).makeTwoWay(be.E9.stringify),At(be.s_,"Auto",{name:"BODY"},At(be.bn,{parameter1:10,fill:sa.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:be.z6.AllSides,toSpot:be.z6.AllSides},new be.KX("fill"),new be.KX("stroke","color"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),At(be.Vm,{background:"transparent",margin:20})),At(be.al,{alignment:be.z6.Top,alignmentFocus:be.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new be.KX("text"),new be.KX("stroke","color"))),Ke.current.groupTemplate.selectionAdornmentTemplate=At(be.uz,"Spot",At(be.s_,"Auto",At(be.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),At(be.Vm,{margin:1.5})),Po({alignment:be.z6.TopRight,alignmentFocus:be.z6.BottomRight})),Ke.current.groupTemplate.contextMenu=At("ContextMenu",$o(),Sa(),To()),Ke.current.linkTemplate=At(be.rU,{layerName:"Foreground",routing:be.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new be.KX("fromSpot","fromSpot",be.z6.parse),new be.KX("toSpot","toSpot",be.z6.parse),new be.KX("fromShortLength","dir",Zt=>Zt>=1?10:0),new be.KX("toShortLength","dir",Zt=>Zt>=1?10:0),new be.KX("points").makeTwoWay(),At(be.bn,{strokeWidth:2},new be.KX("stroke","color"),new be.KX("strokeWidth","thickness"),new be.KX("strokeDashArray","dash")),At(be.bn,{segmentIndex:0,segmentOffset:new be.E9(15,0),segmentOrientation:be.rU.OrientAlong,alignmentFocus:be.z6.Right,figure:"circle",width:10,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Zt=>Zt===1)),At(be.bn,{segmentIndex:-1,segmentOffset:new be.E9(-10,6),segmentOrientation:be.rU.OrientPlus90,alignmentFocus:be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Zt=>Zt>=1),new be.KX("width","thickness",Zt=>7+3*Zt),new be.KX("height","thickness",Zt=>7+3*Zt),new be.KX("segmentOffset","thickness",Zt=>new be.E9(-15,4+1.5*Zt))),At(be.bn,{segmentIndex:0,segmentOffset:new be.E9(15,-6),segmentOrientation:be.rU.OrientMinus90,alignmentFocus:be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new be.KX("fill","color"),new be.KX("visible","dir",Zt=>Zt===2),new be.KX("width","thickness",Zt=>7+3*Zt),new be.KX("height","thickness",Zt=>7+3*Zt),new be.KX("segmentOffset","thickness",Zt=>new be.E9(-15,4+1.5*Zt))),At(be.al,{alignmentFocus:new be.z6(0,1,-4,0),editable:!0},new be.KX("text").makeTwoWay(),new be.KX("stroke","color"))),Ke.current.linkTemplate.selectionAdornmentTemplate=At(be.uz,At(be.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Vo(2)},new be.KX("pathPattern","thickness",Vo)),Po({alignmentFocus:new be.z6(0,0,-6,-4)}));function Vo(Zt){return At(be.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Zt+4).toString()+" H3"})}function Io(Zt){var Bn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Zt===0?Bn="M0 0 M16 16 M0 8 L16 8":Zt===2&&(Bn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),At(be.bn,{geometryString:Bn,margin:2,background:"transparent",mouseEnter:(da,jn)=>jn.background="dodgerblue",mouseLeave:(da,jn)=>jn.background="transparent",click:Ja("dir",Zt),contextClick:Ja("dir",Zt)})}function pr(Zt){var Bn=(da,jn)=>{da.handled=!0,da.diagram.model.commit(So=>{var La=jn.part.adornedPart;So.set(La.data,Zt?"toSpot":"fromSpot",be.z6.stringify(be.z6.AllSides)),(Zt?La.toNode:La.fromNode).invalidateConnectedLinks()})};return At(be.bn,{width:12,height:12,fill:"transparent",mouseEnter:(da,jn)=>jn.background="dodgerblue",mouseLeave:(da,jn)=>jn.background="transparent",click:Bn,contextClick:Bn})}function Zo(Zt,Bn){var da=0,jn=be.z6.RightSide;Zt.equals(be.z6.Top)?(da=270,jn=be.z6.TopSide):Zt.equals(be.z6.Left)?(da=180,jn=be.z6.LeftSide):Zt.equals(be.z6.Bottom)&&(da=90,jn=be.z6.BottomSide),Bn||(da-=180);var So=(La,ja)=>{La.handled=!0,La.diagram.model.commit(so=>{var Eo=ja.part.adornedPart;so.set(Eo.data,Bn?"toSpot":"fromSpot",be.z6.stringify(jn)),(Bn?Eo.toNode:Eo.fromNode).invalidateConnectedLinks()})};return At(be.bn,{alignment:Zt,alignmentFocus:Zt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:da,background:"transparent",mouseEnter:(La,ja)=>ja.background="dodgerblue",mouseLeave:(La,ja)=>ja.background="transparent",click:So,contextClick:So})}Ke.current.linkTemplate.contextMenu=At("ContextMenu",Sa(),To(),At("ContextMenuButton",At(be.s_,"Horizontal",Io(0),Io(1),Io(2))),At("ContextMenuButton",At(be.s_,"Horizontal",At(be.s_,"Spot",pr(!1),Zo(be.z6.Top,!1),Zo(be.z6.Left,!1),Zo(be.z6.Right,!1),Zo(be.z6.Bottom,!1)),At(be.s_,"Spot",{margin:new be.Zt(0,0,0,2)},pr(!0),Zo(be.z6.Top,!0),Zo(be.z6.Left,!0),Zo(be.z6.Right,!0),Zo(be.z6.Bottom,!0)))));const vr=`{ "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 Mt=["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 Da(Zt){return console.log("shapeName:",Zt),Mt.indexOf(Zt)>=0}var ar=new be.YI(Pn.current,{maxSelectionCount:1,linkTemplate:At(be.rU,{locationSpot:be.z6.Center,selectionAdornmentTemplate:At(be.uz,"Link",{locationSpot:be.z6.Center},At(be.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),At(be.bn,{toArrow:"Standard",stroke:null}))},{routing:be.rU.AvoidsNodes,curve:be.rU.JumpOver,corner:5,toShortLength:4},new be.KX("points"),At(be.bn,{isPanelMain:!0,strokeWidth:2}),At(be.bn,{toArrow:"Standard",stroke:null})),model:new be.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...be.bn.getFigureGenerators().toArray().map(Zt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Zt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ke.current.addDiagramListener("TextEdited",function(Zt){var Bn;const da=Zt.subject.part;var jn=(Bn=document.activeElement)==null?void 0:Bn.value;typeof jn=="string"&&jn.trim()===""&&Ke.current.model.commit(function(So){So.set(da.data,"text","\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}),ar.nodeTemplate=At(be.NB,"Auto",{locationSpot:be.z6.Center},new be.KX("location","location",be.E9.parse).makeTwoWay(be.E9.stringify),At(be.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 be.KX("stroke").makeTwoWay(),new be.KX("fill").makeTwoWay(),new be.KX("figure")),At(be.al,{margin:new be.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new be.$u(16,16),maxSize:new be.$u(10,NaN),textAlign:"center",editable:!0},new be.KX("key").makeTwoWay())),setTimeout(()=>{Ke.current.grid=At(be.s_,"Grid",At(be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),At(be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ke.current.grid.visible=!0,Ke.current.grid.gridCellStroke="darkgray",Ke.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ke.current,Ke.current}const Ha=()=>ze(this,null,function*(){var At=Ke.current.makeImage();const sa=yield(0,ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:At.src}});Ze({src:sa.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{ma()},500),Fn(ra+1),()=>{Ke.current=null}),[]),De.createElement("div",{ref:Ea,className:En.current?`${_e.maxH60} body-overflow-initial`:"body-overflow-initial"},De.createElement(lt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ra,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:De.createElement(ht.Z,null,De.createElement(jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),De.createElement(jt.Z,{onClick:()=>{var At,sa,lo=Ke.current.selection.first();if(En.current=!En.current,document.activeElement&&lo){let Po=(sa=(At=document.activeElement)==null?void 0:At.value)==null?void 0:sa.trim();typeof Po=="string"&&Ke.current.model.commit(function(Ja){Ja.set(lo.data,"text",Po||"\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}Fn(ra+1)}},De.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Oe},De.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:_e.flowChartWrp},De.createElement("div",{style:{display:"flex",height:"100%"}},De.createElement("div",{style:{width:"300px",height:"100%"}},De.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),De.createElement("div",{style:{height:"calc(100% - 50px)"},className:_e.myPaletteDiv,ref:Pn})),De.createElement("div",{style:{flex:1,position:"relative"}},De.createElement("div",{ref:$t,style:{height:"80vh"}}))),De.createElement("div",{className:"tr"},De.createElement(fe.ZP,{size:"large",onClick:Ha,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var St=Qe,Ft=te(78045),qt=te(31795);const an=Ft.ZP.Group,pn={margin:"0 8px"};var Nn=({callback:Oe,onCancel:Ze})=>{function Ke($t){Oe($t)}return le.createElement(pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ke},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:pn},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:pn},"\u884C\u6570"),le.createElement(pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(qt.Z,null)),le.createElement("span",{style:pn},"\u5217\u6570"),le.createElement(pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(qt.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:pn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(pe.default.Item,{name:"align"},le.createElement(an,null,le.createElement(Ft.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(Ft.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(Ft.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(Ft.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(fe.ZP,{type:"ghost",onClick:Ze},"\u53D6\u6D88")))},Pe=te(47897),Ae=te(61016),cn=te.n(Ae),Te=(0,le.forwardRef)(({use3d:Oe,width:Ze,height:Ke,callback:$t,showSaveButton:Pn},En)=>{const Ea=(0,le.useRef)(),ra=(0,le.useRef)(),[Fn,ma]=(0,le.useState)(!1),Ha=(0,le.useRef)({id:Ea,appName:"graphing",width:Ze||1e3,height:Ke||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{ra.current=new(cn())(Ha.current,!0),window.onload=function(){ra.current.inject("applet_container")}},[]);const At=()=>{var sa=window.ggbApplet.getPNGBase64(1,!0,72);return $t&&$t(sa),sa};return(0,le.useEffect)(()=>{Ha.current.appName=Fn?"3D":"graphing",ra.current.inject("applet_container")},[Fn]),(0,le.useEffect)(()=>{ma(Oe)},[Oe]),(0,le.useImperativeHandle)(En,()=>({getImgData:At})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ea}),le.createElement(ht.Z,{align:"middle"},le.createElement(jt.Z,{flex:1},le.createElement(Pe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Fn,onChange:sa=>ma(sa)})),le.createElement(jt.Z,null,le.createElement(fe.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ot=te(36527),Sn=te(25934),Yt=te(2453);const vn="link",Ut="upload-image",Jt="add-flowchart",gn="draw-image",na="add-flowchart",Dn="code-block",zn="add-table",fa="------------",ia={default:fa,left:`:${fa}`,center:`:${fa}:`,right:`${fa}:`};var mt=te(99914),dt=(Oe,Ze,Ke)=>new Promise(($t,Pn)=>{var En=Fn=>{try{ra(Ke.next(Fn))}catch(ma){Pn(ma)}},Ea=Fn=>{try{ra(Ke.throw(Fn))}catch(ma){Pn(ma)}},ra=Fn=>Fn.done?$t(Fn.value):Promise.resolve(Fn.value).then(En,Ea);ra((Ke=Ke.apply(Oe,Ze)).next())});function ft(){}let mn=0;const Zn=1e4,ua="\u2581",Hn="@\u2581\u2581@",aa="@\u2581@",on=`
|
|
**\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`,oa=["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 Ra(Oe){return/^\d+$/.test(Oe)?`${Oe}px`:Oe}const ta=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Aa={[ta+"-B"]:"bold",[ta+"-I"]:"italic"},ho={[vn]:"\u6DFB\u52A0\u94FE\u63A5",[Dn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ut]:"\u6DFB\u52A0\u56FE\u7247",[gn]:"\u6DFB\u52A0\u753B\u56FE",[Jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[zn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ha=({defaultValue:Oe="",onChange:Ze,width:Ke="100%",height:$t=400,miniToolbar:Pn=!1,isFocus:En=!1,watch:Ea,insertTemp:ra,mode:Fn="markdown",id:ma="markdown-editor-id",showResizeBar:Ha=!1,noStorage:At=!1,showNullButton:sa=!1,showNullProgramButton:lo=!1,hidetoolBar:Po=!1,fullScreen:Ja=!1,onBlur:za,onCMBeforeChange:$o,onFullScreen:Sa,className:Ko="",disablePaste:xo=!1,disabled:To=!1,disabledFill:to=!1,placeholder:Vo="",values:Io="",extraUse:pr,isShowTool:Zo=!0,disableImageUpload:vr=!1})=>{const[Mt,Da]=(0,le.useState)(null),[ar,Zt]=(0,le.useState)(Oe),[Bn,da]=(0,le.useState)(Ea),[jn,So]=(0,le.useState)(Ja),[La,ja]=(0,le.useState)(""),[so,Eo]=(0,le.useState)(0),[or,Co]=(0,le.useState)($t),[Ar,Nr]=(0,le.useState)(!1),cr=(0,le.useRef)((0,Sn.Z)()),Pr=(0,le.useRef)(!1),Hr=(0,le.useRef)(),[Fr,zr]=(0,le.useState)(0),[jr,kr]=(0,le.useState)(0),jo=(0,le.useRef)(),yr=(0,le.useRef)(),We=(0,le.useRef)(),Je=(0,le.useRef)(),ut=()=>dt(void 0,null,function*(){var Ct;const pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:cr.current}});(Ct=pt==null?void 0:pt.attachments)!=null&&Ct.length&&(console.log("cm:",Mt,jo),pt.attachments.map(bt=>{bt.content_type.indexOf("image")>-1?Mt.replaceSelection(``):bt.content_type.indexOf("video")>-1?Mt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):bt.content_type.indexOf("pdf")>-1?Mt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type}&disposition=inline" target="_blank">${bt.name}</a>`):Mt.replaceSelection(`[${bt.name}](${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type})`)}))});(0,le.useEffect)(()=>{const Ct=window.scrollY||window.pageYOffset;Zt(Io),Mt==null||Mt.setValue(Io),window.scrollTo(0,Ct)},[Io]),(0,le.useEffect)(()=>{Sa==null||Sa(jn)},[jn]),(0,le.useEffect)(()=>{if(jo.current){let Ct=function(bt,Lt){var dn,Un;if(xo){Lt.preventDefault();return}const Mn=Lt.clipboardData;if(Mn){const Wn=Mn.types.toString(),Gn=Mn.items;if(Wn==="Files"||Mn.types.indexOf("Files")>-1){if(Lt.preventDefault(),Fn=="stex")return;try{let Yn=Gn[1];((dn=Gn[0])==null?void 0:dn.kind)==="file"&&(Yn=Gn[0]);const Xn=Yn.getAsFile(),wa=Xn.name.split(".").pop();if(vr&&((Un=Xn==null?void 0:Xn.type)==null?void 0:Un.indexOf("image"))>-1)return!0;(0,ke.I)(Xn,Pa=>{var Ba,Wa,Ua;Pa.id?((Ba=Xn==null?void 0:Xn.type)==null?void 0:Ba.indexOf("image"))>-1?pt.replaceSelection(`<img width="100%" src="/api/attachments/${Pa.id}?type=${Pa.content_type})" alt="" />`):((Wa=Xn==null?void 0:Xn.type)==null?void 0:Wa.indexOf("video"))>-1?pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Pa.id}"></video>`):((Ua=Xn==null?void 0:Xn.type)==null?void 0:Ua.indexOf("pdf"))>-1?pt.replaceSelection(`<a href="/api/attachments/${Pa.id}?type=${Xn.type}&disposition=inline" target="_blank">${Xn.name}</a>`):oa.includes(wa)?pt.replaceSelection(`<a href="/api/attachments/${Pa.id}?type=office&disposition=inline" target="_blank">${Xn.name}</a>`):pt.replaceSelection(`[${Xn.name}](/api/attachments/${Pa.id}?type=${Pa.content_type})`):(Pa==null?void 0:Pa.status)===401&&(Yt.ZP.warning((Pa==null?void 0:Pa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Yn){Yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pt=$e().fromTextArea(jo.current,{mode:Fn,lineNumbers:!Pn,lineWrapping:!0,value:Oe,autoCloseTags:!lo,autoCloseBrackets:!0});return pt.on("keyup",function(bt,Lt){Lt.keyCode===8&&(bt.getValue()==""?pt.setOption("placeholder",Vo):pt.setOption("placeholder",null))}),pt.on("keydown",function(bt,Lt){if(Lt.keyCode===8){var dn=st(bt);dn&&Lt.preventDefault()}}),En&&pt.focus(),pt.on("paste",Ct),pt.on("dragleave",function(bt,Lt){yr.current.classList.remove("mouse-hover-md")}),To&&pt.on("beforeChange",function(bt,Lt){(Lt.origin==="paste"||Lt.origin==="+input")&&Lt.cancel()}),Da(pt),()=>{pt.off("paste",Ct)}}},[]);const he=(0,le.useCallback)(()=>{if(yr.current)try{}catch(Ct){console.log(Ct,"---- to set md editor body height")}},[or,yr,jn]);(0,le.useEffect)(()=>{function Ct(){let pt=new Ie.Z(bt=>{for(let Lt of bt)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&(he(),Mt.setSize("100%","100%"),Mt.refresh())});return pt.observe(jo.current.parentElement),pt}if(Mt){const pt=Ct();return()=>{var bt,Lt;(bt=jo.current)!=null&&bt.parentElement&&pt.unobserve((Lt=jo.current)==null?void 0:Lt.parentElement)}}},[Mt,he]),(0,le.useEffect)(()=>{if(Mt){let Ct=[];for(const[pt,bt]of Object.entries(Aa)){let Lt={[pt]:()=>{wt(bt)}};Ct.push(Lt),Mt.addKeyMap(Lt)}return Hr.current=setInterval(()=>{Pr.current&&ut()},4e3),()=>{clearInterval(Hr.current);for(let pt of Ct)Mt.removeKeyMap(pt)}}},[Mt]),(0,le.useEffect)(()=>{Ja!==jn&&So(Ja)},[Ja]),(0,mt.Z)(()=>{if(!At&&so>0){let Ct=new Date().getTime(),pt=window.sessionStorage.getItem(ma);Ct>=so+Zn&&(!pt||pt!==ar)&&(window.sessionStorage.setItem(ma,ar),Nr(!0))}},Zn),(0,le.useEffect)(()=>{da(Ea)},[Mt,Ea]),(0,le.useEffect)(()=>{Mt&&En&&Mt.focus()},[Mt,En]),(0,le.useEffect)(()=>{if(Bn&&Mt){let Ct=function(bt){let Lt=bt.target;if(Je.current){let dn=Lt.scrollTop/Lt.scrollHeight;Je.current.scrollTop=Je.current.scrollHeight*dn}};const pt=Mt.getScrollerElement();return pt.addEventListener("scroll",Ct),()=>{pt.removeEventListener("scroll",Ct)}}},[Mt,Bn]),(0,le.useEffect)(()=>{if(Mt&&$o){let Ct=function(pt,bt){$o(pt,bt)};return Mt.on("beforeChange",Ct),()=>{Mt.off("beforeChange",Ct)}}},[Mt,$o]),(0,le.useEffect)(()=>{if(Mt&&za){let Ct=function(){za(Mt.getValue())};return Mt.on("blur",Ct),()=>{Mt.off("blur",Ct)}}},[Mt,za]);function st(Ct,pt){var bt=Ct.getDoc(),Lt=bt.getCursor(),dn=bt.getLine(Lt.line),Un=dn.charAt(Lt.ch-1),Mn=dn.lastIndexOf("@\u2581@",Lt.ch),Wn=dn.lastIndexOf("@\u2581\u2581@",Lt.ch),Gn=Mn>Wn?Mn:Wn,Yn=Mn>Wn?3:4;if(Hn.indexOf(Un)===-1)return null;if(console.log("change1:",pt,Ct,dn,Lt,Gn,Mn,Wn,Un),Gn>=0&&Lt.ch-Gn<5){var Xn=Gn+Yn;return bt.replaceRange("",{line:Lt.line,ch:Gn},{line:Lt.line,ch:Xn}),{line:Lt.line,ch:Xn}}return null}(0,le.useEffect)(()=>{if(Mt){let Ct=function(pt,bt){const Lt=pt.getValue();Zt(Lt),Eo(new Date().getTime()),pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ze&&(lo?Ze(Lt,nn(Lt)):Ze(Lt))};return Mt.on("change",Ct),()=>{Mt.off("change",Ct)}}},[Mt,Ze]),(0,le.useEffect)(()=>{if(Mt)if(Oe==null)Mt.setValue(""),Zt("");else{const Ct=window.scrollY||window.pageYOffset;Oe!==Mt.getValue()&&(Mt.setValue(Oe),Zt(Oe),Mt.setCursor(To?1:Mt.lineCount(),0),window.scrollTo(0,Ct))}},[Mt,Oe]);const wt=(0,le.useCallback)(Ct=>{const pt=Mt.getCursor(),bt=Mt.getSelection();let Lt=bt.split(`
|
|
`);switch(Ct){case"bold":return Mt.replaceSelection("**"+bt+"**"),bt===""&&Mt.setCursor(pt.line,pt.ch+2),Mt.focus();case"italic":return Mt.replaceSelection("*"+bt+"*"),bt===""&&Mt.setCursor(pt.line,pt.ch+1),Mt.focus();case"code":return Mt.replaceSelection("`"+bt+"`"),bt===""&&Mt.setCursor(pt.line,pt.ch+1),Mt.focus();case"inline-latex":return ja("inline-latex"),Mt.focus();case"latex":return Mt.replaceSelection("```latex\n"+bt+"\n```"),Mt.setCursor(pt.line+1,bt.length+1),Mt.focus();case"line-break":return Mt.replaceSelection(`<br/>
|
|
`),Mt.focus();case"list-ul":return bt===""?Mt.replaceSelection("- "+bt):Mt.replaceSelection(Lt.map(dn=>dn===""?"":`- ${dn}`).join(`
|
|
`)),Mt.focus();case"list-ol":return bt===""?Mt.replaceSelection("1. "+bt):Mt.replaceSelection(Lt.map((dn,Un)=>dn===""?"":`${Un+1}. ${dn}`).join(`
|
|
`)),Mt.focus();case"add-null-ch":return bt===""&&Mt.setCursor(pt.line,pt.ch),Mt.replaceSelection(ua),Mt.focus();case"add-signal":return bt===""&&Mt.setCursor(pt.line,pt.ch),Mt.replaceSelection(aa),Mt.focus();case"add-multiple":return bt===""&&Mt.setCursor(pt.line,pt.ch),Mt.replaceSelection(Hn),Mt.focus();case"inster-template-1":return bt===""&&Mt.setCursor(pt.line,pt.ch),Mt.replaceSelection(on),Mt.focus();case"eraser":return Mt.setValue(""),Mt.focus();case"trigger-watch":return da(!Bn),Mt.focus();case"trigger-full-screen":return So(!jn),Mt.focus();case vn:ja(vn);return;case Dn:ja(Dn);return;case Ut:ja(Ut);return;case gn:ja(gn);return;case"maths-latex":ja("maths-latex");return;case Jt:ja(Jt);return;case zn:ja(zn);return;default:throw new Error}},[Mt,Bn,jn]),Rt=(0,le.useCallback)((Ct,pt)=>{var bt,Lt,dn,Un,Mn,Wn;if(ja(""),!(vr&&La==Ut))switch(La){case vn:const{title:Pa,link:Ba}=Ct;return Mt.replaceSelection(`[${Pa}](${Ba})`),Mt.focus();case Dn:const{language:Wa,content:Ua}=Ct;return Mt.replaceSelection(["```"+Wa,Ua,"```"].join(`
|
|
`)),Mt.focus();case"maths-latex":for(var Gn=atob(Ct),Yn=new Uint8Array(Gn.length),Xn=0;Xn<Gn.length;Xn++)Yn[Xn]=Gn.charCodeAt(Xn);var wa=new Blob([Yn],{type:"image/png"});(0,ke.I)(wa,yo=>{yo.id?Mt.replaceSelection(``):(yo==null?void 0:yo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mt.replaceSelection("`$$"+Ct+"$$`");break;case Ut:case gn:case na:const{src:co,alt:no}=Ct,Ia=pt,Jo=(dn=(Lt=(bt=Ia==null?void 0:Ia.name)==null?void 0:bt.split("."))==null?void 0:Lt.pop)==null?void 0:dn.call(Lt);return((Un=Ia==null?void 0:Ia.type)==null?void 0:Un.indexOf("image"))>-1||!(Ia!=null&&Ia.type)?Ia.align||Ia.width?Mt.replaceSelection(`<p style="text-align:${Ia.align||"initial"}"><img width="${Ia.width?Ia.width+"%":"initial"}" src="${co}" alt="${no||""}" /></p>`):Mt.replaceSelection(`<img width="100%" src="${co}" alt="${no||""}" />`):((Mn=Ia==null?void 0:Ia.type)==null?void 0:Mn.indexOf("video"))>-1?Mt.replaceSelection(`<video width="100%" controls src="${co}"></video>`):((Wn=Ia==null?void 0:Ia.type)==null?void 0:Wn.indexOf("pdf"))>-1?Mt.replaceSelection(`<a href="${co}?type=${Ia.type}&disposition=inline" target="_blank">${Ia.name}</a>`):oa.includes(Jo)?Mt.replaceSelection(`<a href="${co}?type=office&disposition=inline" target="_blank">${Ia.name}</a>`):Mt.replaceSelection(`[${Ia.name}](${co})`),Mt.focus();case zn:const{row:qo,col:Mo,align:Ro}=Ct;let Wo=`
|
|
`;for(let yo=0;yo<qo;yo++){let er=[],rr=[];for(let Lo=0;Lo<Mo;Lo++)yo===1&&rr.push(ia[Ro]),er.push(" ");yo===1&&(Wo+=`| ${rr.join(" | ")} |
|
|
`),Wo+=`| ${er.join(Mo===1?"":" | ")} |
|
|
`}return Mt.replaceSelection(Wo+`
|
|
`),Mt.focus();default:throw new Error}},[Mt,La,vr]),qe=(0,le.useMemo)(()=>{switch(La){case vn:return le.createElement(bn,{callback:Rt,onCancel:it});case Dn:return le.createElement(xn.Z,{callback:Rt,onCancel:it});case Ut:return le.createElement(ke.Z,{callback:Rt,onCancel:it});case Jt:return le.createElement(St,{callback:Rt,onCancel:it});case zn:return le.createElement(Nn,{callback:Rt,onCancel:it});case"maths-latex":return le.createElement(Te,{showSaveButton:!0,callback:Rt});case"inline-latex":return le.createElement(Ot.Z,{showSaveButton:!0,callback:Rt});default:return null}},[La]);function it(){ja("")}(0,le.useEffect)(()=>{if(We.current){let Ct=function(Mn){dn=!0,Un=Mn.pageY},pt=function(){dn=!1},bt=function(Mn){if(dn){let Wn=Mn.pageY-Un;Wn<0&&(Wn=0),Wn>300&&(Wn=300);let Gn=$t+Wn+"px";Co(Gn)}},Lt=We.current,dn=!1,Un=0;return Lt.addEventListener("mousedown",Ct),document.addEventListener("mousemove",bt),document.addEventListener("mouseup",pt),()=>{Lt.removeEventListener("mousedown",Ct),document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",pt)}}},[Mt,We]),(0,le.useEffect)(()=>{Co($t)},[$t]);const at=Ra(Ke),Tt=Ra(or),Qt={width:at,height:Tt},sn=(0,le.useMemo)(()=>{if(so){let Ct=new Date(so),pt=Ct.getHours(),bt=Ct.getMinutes(),Lt=Ct.getSeconds();return pt=pt<10?"0"+pt:pt,bt=bt<10?"0"+bt:bt,Lt=Lt<10?"0"+Lt:Lt,`${pt}:${bt}:${Lt}`}return 0},[so]),nn=Ct=>{const pt=[];if(lo){let bt=-1;Ct=Ct.replace(/(@▁▁@|@▁@)/g,function(Lt,dn,Un){pt.push({multiLine:Lt!==aa})})}return pt};function Cn(){window.sessionStorage.removeItem(ma),Nr(!1),Eo(0)}function An(){Nr(!1),Eo(0),Mt.setValue(window.sessionStorage.getItem(ma))}(0,le.useEffect)(()=>{ho[La]&&La!==gn&&La!==Jt&&setTimeout(()=>{const Ct=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth/2-Ct.offsetWidth/2,bt=window.innerHeight/2-Ct.offsetHeight/2;zr(pt),kr(bt)},0)},[La]);const _n=Ct=>{Ct.preventDefault();const pt=Ct.clientX-Fr,bt=Ct.clientY-jr;document.body.onmousemove=Lt=>{let dn=Lt.clientX-pt,Un=Lt.clientY-bt;const Mn=document.getElementsByClassName("markdown-popup-form")[0],Wn=window.innerWidth-Mn.offsetWidth,Gn=window.innerHeight-Mn.offsetHeight;dn=Math.max(0,Math.min(dn,Wn)),Un=Math.max(0,Math.min(Un,Gn)),Wt(Lt.clientX,Lt.clientY,pt,bt)&&(zr(dn),kr(Un))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wt=(Ct,pt,bt,Lt)=>{const dn=document.body.clientHeight,Un=document.body.clientWidth;return Ct<20&&bt>Ct||Ct>Un-20&&bt<Ct||pt<20&&Lt>pt||pt>dn-20&&Lt<pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:yr},le.createElement("div",{className:`markdown-editor-container ${Ko} ${Bn?"on-preview":""} ${Pn?"mini":""} ${jn?"full-screen":""}`,style:Qt},Zo&&le.createElement(me,{insertTemp:ra,watch:Bn,fullScreen:jn,showNullButton:sa,showNullProgramButton:lo,onActionCallback:wt,hidetoolBar:Po,extraUse:pr}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:jo,placeholder:Vo})),Bn?le.createElement("div",{ref:Je,className:"preview-container"},Fn==="stex"&&le.createElement(Ue,{value:ar}),Fn!=="stex"&&le.createElement(He.Z,{disabledFill:to,showProgramFill:lo,value:ar})):null))),Ha?le.createElement("a",{ref:We,className:"editor-resize"}):null,La===gn&&le.createElement(kt,{callback:Rt,onCancel:it}),La===Jt&&le.createElement(St,{callback:Rt,onCancel:it}),le.createElement(ye.Z,null,ho[La]&&La!==gn&&La!==Jt?le.createElement(lt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fr,top:jr},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:_n},ho[La]),open:!0,onCancel:it,footer:null,destroyOnClose:!0,width:La===Jt?"1200px":null,height:La===Jt?"80vh":null,className:"markdown-popup-form"},qe):null))}},70859:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return se},I:function(){return ye}});var le=te(22150),ue=te(2453),$e=te(69677),Ie=te(93421),xe=te(31795),Fe=te(78045),re=te(71577),Ye=te(15476),Me=te(67294),Re=te(52262),He=te(67294),Ue=Object.defineProperty,Ce=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(pe,Le,fe)=>Le in pe?Ue(pe,Le,{enumerable:!0,configurable:!0,writable:!0,value:fe}):pe[Le]=fe,E=(pe,Le)=>{for(var fe in Le||(Le={}))y.call(Le,fe)&&b(pe,fe,Le[fe]);if(a)for(var fe of a(Le))x.call(Le,fe)&&b(pe,fe,Le[fe]);return pe},z=(pe,Le)=>Ce(pe,ie(Le));const{useForm:ee}=le.default,ne={width:280,marginRight:10},de={labelCol:{span:5},wrapperCol:{span:19}};var se=({callback:pe,onCancel:Le})=>{const[fe]=ee();let yt=(0,Me.useRef)();function rt(Ge){yt.current.width=fe.getFieldValue("width"),yt.current.align=fe.getFieldValue("align"),pe(Ge,yt.current)}function Vt(Ge,tt){if(Ge.status===-1){ue.ZP.error(Ge.message);return}fe.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:tt.type})}function Ee(Ge){let tt=Ge.target.files[0];yt.current=tt,ye(tt,Vt)}return He.createElement(le.default,z(E({form:fe},de),{className:"upload-image-panel",onFinish:rt,style:{width:470,overflow:"hidden"}}),He.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement($e.default,{style:ne})),He.createElement(me,{onFileChange:Ee}))),He.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement($e.default,{style:{width:264}})),He.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(Ie.Z,null,He.createElement(le.default.Item,{name:"width",style:{margin:0}},He.createElement(xe.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Fe.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"}]})),He.createElement("aside",null,He.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(re.ZP,{type:"default",onClick:Le},"\u53D6\u6D88"))))};function me({onFileChange:pe}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:pe}))}function ye(pe,Le){if(!pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Re.bg)())throw ue.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let fe=new FormData;fe.append("editormd-image-file",pe),fe.append("file_param_name","editormd-image-file"),fe.append("byxhr","true");var yt=new window.XMLHttpRequest;yt.withCredentials=!0,yt.addEventListener("load",function(rt){Le(JSON.parse(rt.target.responseText),pe)},!1),yt.addEventListener("error",function(rt){console.error(rt)},!1),yt.open("POST",`${Ye.KI}/api/attachments.json`),yt.send(fe)}},76621:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return $e}});var le=te(67294),ue=te(73935);class $e extends le.Component{constructor(xe){super(xe);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,ue.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return ue}});var le=te(67294);function ue($e,Ie){const xe=(0,le.useRef)();(0,le.useEffect)(()=>{xe.current=$e}),(0,le.useEffect)(()=>{function Fe(){xe.current()}if(Ie!==null){let re=setInterval(Fe,Ie);return()=>clearInterval(re)}},[Ie])}},36347:function(Xe,ot,te){"use strict";te.r(ot),te.d(ot,{default:function(){return ia}});var le=te(67294),ue=te(35973),$e=te(85673),Ie=te(66368),xe=te(52310),Fe=te(28706),re=te(35567),Ye=te(11320),Me=te(85725),Re=te(14446),He=te(2453),Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(mt,dt,ft)=>dt in mt?Ue(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,x=(mt,dt)=>{for(var ft in dt||(dt={}))ie.call(dt,ft)&&y(mt,ft,dt[ft]);if(Ce)for(var ft of Ce(dt))a.call(dt,ft)&&y(mt,ft,dt[ft]);return mt},b=(mt,dt,ft)=>new Promise((mn,Zn)=>{var ua=on=>{try{aa(ft.next(on))}catch(oa){Zn(oa)}},Hn=on=>{try{aa(ft.throw(on))}catch(oa){Zn(oa)}},aa=on=>on.done?mn(on.value):Promise.resolve(on.value).then(ua,Hn);aa((ft=ft.apply(mt,dt)).next())});const E=({shixunHomeworks:mt,dispatch:dt})=>{const ft=(0,ue.useParams)();return le.createElement(Re.default,{centered:!0,title:"\u63D0\u793A",open:mt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>b(void 0,null,function*(){(yield dt({type:"shixunHomeworks/deleteReply",payload:{object_id:mt.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(He.ZP.success("\u5220\u9664\u6210\u529F"),dt({type:"shixunHomeworks/setActionTabs",payload:{}}),dt({type:"shixunHomeworks/getReplyList",payload:x({},mt.actionTabs.params)}))}),onCancel:()=>{dt({type:"shixunHomeworks/setActionTabs",payload:{}})}},le.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var z=(0,ue.connect)(({shixunHomeworks:mt})=>({shixunHomeworks:mt}))(E),ee=te(27484),ne=te.n(ee),de=te(71230),se=te(15746),me=te(69677),ye=te(71577),pe=te(83062),Le=te(28452),fe=te(84249),yt=te(79852),rt={flex_box_center:"flex_box_center___XZOIk",flex_space_between:"flex_space_between___Yg4Dl",flex_box_vertical_center:"flex_box_vertical_center___uGbSz",flex_box_center_end:"flex_box_center_end___y3xze",flex_box_column:"flex_box_column___uiCa0",listItem:"listItem___ZZCkK",description:"description___WfCjN",liked:"liked___mHx4H",likedActive:"likedActive___zTpzg",reply:"reply___H7MjG",replyList:"replyList___Aweik",comment:"comment___ej0Vc"},Vt=Object.defineProperty,Ee=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,nt=(mt,dt,ft)=>dt in mt?Vt(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,gt=(mt,dt)=>{for(var ft in dt||(dt={}))Ge.call(dt,ft)&&nt(mt,ft,dt[ft]);if(Ee)for(var ft of Ee(dt))tt.call(dt,ft)&&nt(mt,ft,dt[ft]);return mt},zt=(mt,dt,ft)=>new Promise((mn,Zn)=>{var ua=on=>{try{aa(ft.next(on))}catch(oa){Zn(oa)}},Hn=on=>{try{aa(ft.throw(on))}catch(oa){Zn(oa)}},aa=on=>on.done?mn(on.value):Promise.resolve(on.value).then(ua,Hn);aa((ft=ft.apply(mt,dt)).next())});ne().locale("ZH-cn");const Kt=({graduation:mt,classroomList:dt,globalSetting:ft,loading:mn,dispatch:Zn})=>{var ua;const[Hn,aa]=(0,le.useState)(gt({},(0,ue.useParams)())),[on,oa]=(0,le.useState)(!1),[Ra,la]=(0,le.useState)(-1),[ta,Aa]=(0,le.useState)(""),{detailLeftMenus:ho}=dt,{graduationDetail:ha,replyList:Oe,detail:Ze,tasksDetail:Ke}=mt,$t={1:"\u8BBE\u8BA1",2:"\u8BBA\u6587",3:"\u521B\u4F5C"},Pn={1:"\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645",2:"\u7ED3\u5408\u79D1\u7814",3:"\u5176\u5B83"},En={1:"\u771F\u9898",2:"\u6A21\u62DF\u9898"},Ea={1:"\u7EB5\u5411\u8BFE\u9898",2:"\u6A2A\u5411\u8BFE\u9898",3:"\u81EA\u9009"},ra={1:"\u65B0\u9898",2:"\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42",3:"\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42"};return Hn.page_size=10,(0,le.useEffect)(()=>{Zn({type:"graduation/getReplyList",payload:gt({},Hn)}),Zn({type:"graduation/getTopisDetail",payload:gt({},Hn)})},[Hn.categoryId]),le.createElement("section",{className:rt.bg},le.createElement("section",{className:" edu-container"},le.createElement("aside",{className:[rt.desc,"c-black","font14","bg-white"].join(" ")},le.createElement("h1",{className:rt.description},Ze.description),le.createElement("div",{className:"mt30"},le.createElement("ul",{className:rt.listItem},le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u7C7B\u578B\uFF1A"),le.createElement("span",null,$t[Ze==null?void 0:Ze.topic_type]||"--")),le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\uFF1A"),le.createElement("span",null,Pn[Ze==null?void 0:Ze.topic_source]||"--")),le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D281\uFF1A"),le.createElement("span",null,En[Ze==null?void 0:Ze.topic_property_first]||"--")),le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D282\uFF1A"),le.createElement("span",null,Ea[Ze==null?void 0:Ze.topic_property_second]||"--")),le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"),le.createElement("span",null,ra[Ze==null?void 0:Ze.topic_repeat]||"--")),le.createElement("li",null,le.createElement("span",{className:"c-light-black"},"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"),le.createElement("span",null,Ze.city||"--")),le.createElement("li",{className:"fl with50"},le.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"),le.createElement("span",null,Ze.source_unit||"--")))),le.createElement("div",{className:"pl30"},(ua=Ke==null?void 0:Ke.attachments)==null?void 0:ua.map((Fn,ma)=>le.createElement("div",null,le.createElement("a",{href:`${Ye.Z.API_SERVER}${Fn.url}`},le.createElement("span",{className:"iconfont icon-fujian c-green font14"}),le.createElement("span",{className:"ml10 c-black"},Fn.title),le.createElement("span",{className:"c-light-black ml20 font12"},Fn.filesize)))))),le.createElement("aside",{className:[rt.reply,"bg-white","mt20"].join(" ")},on&&le.createElement(re.Z,{onChange:Fn=>{Aa(Fn)},height:200,isFocus:!0,watch:!0}),le.createElement(de.Z,{onClick:()=>{oa(!0)}},le.createElement(se.Z,{flex:"1"},!on&&le.createElement(me.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),le.createElement(se.Z,null,le.createElement(ye.ZP,{type:"primary",size:"middle",onClick:()=>zt(void 0,null,function*(){ta===""?He.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield Zn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:Hn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:ta}}})).status===0&&(He.ZP.success("\u53D1\u5E03\u6210\u529F"),Zn({type:"graduation/getReplyList",payload:gt({},Hn)}),oa(!1))})},"\u53D1\u8868")))),(Oe==null?void 0:Oe.comments)&&Oe.comments!=""&&le.createElement("aside",{className:[rt.replyList,"bg-white"].join(" ")},Oe==null?void 0:Oe.comments.map(function(Fn,ma){var Ha,At;return le.createElement(de.Z,{gutter:[12,12],key:ma},le.createElement(se.Z,{flex:"40px"},le.createElement("img",{width:"40",src:`${Ye.Z.IMG_SERVER}/images/${(Ha=Fn==null?void 0:Fn.author)==null?void 0:Ha.image_url}`})),le.createElement(se.Z,{flex:"1"},le.createElement(de.Z,{align:"middle"},le.createElement(se.Z,{span:24},le.createElement("span",{className:"c-light-black"},(At=Fn==null?void 0:Fn.author)==null?void 0:At.name),le.createElement("span",{className:"c-light-black ml10"},ne()(Fn==null?void 0:Fn.created_on).fromNow()," \u53D1\u5E03")),le.createElement(se.Z,{span:24},le.createElement(Me.Z,{value:Fn.content})),Fn.children&&le.createElement("aside",{className:rt.comment},Fn.children.map(function(sa,lo){return le.createElement(de.Z,{key:lo},le.createElement(se.Z,{span:24},le.createElement(de.Z,null,le.createElement(se.Z,{flex:"1"},sa.author.name,le.createElement("span",{className:"c-light-black ml10"},ne()(sa==null?void 0:sa.created_on).fromNow())),le.createElement(se.Z,null,le.createElement(pe.Z,{title:"\u5220\u9664"},le.createElement(fe.Z,{className:"current",onClick:()=>{Zn({type:"graduation/setActionTabs",payload:{key:"\u5220\u9664",params:Hn,selectArr:Fn}})}}))))),le.createElement(se.Z,null,le.createElement("strong",null,le.createElement(Me.Z,{value:sa.content}))))})),le.createElement(se.Z,{span:24,className:"mt5 c-light-black"},Ra===ma&&le.createElement("aside",null,le.createElement(re.Z,{onChange:sa=>{Aa(sa)},height:150,isFocus:!0}),le.createElement(de.Z,null,le.createElement(se.Z,{span:24,className:"tr"},le.createElement(ye.ZP,{type:"primary",size:"middle",onClick:()=>zt(this,null,function*(){ta===""?He.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield Zn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:Hn.categoryId,jour_type:"HomeworkCommon",m_parent_id:Fn.id,reply_id:1,notes:ta}}}),Zn({type:"graduation/getReplyList",payload:gt({},Hn)}),He.ZP.success("\u53D1\u5E03\u6210\u529F"),la(-1))})},"\u53D1\u8868")))),Ra!==ma&&le.createElement("div",{className:"tr"},le.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>la(ma)}),Fn.liked&&le.createElement("span",{className:"c-orange"},le.createElement(yt.Z,{className:"mr5 ml30",onClick:()=>zt(this,null,function*(){yield Zn({type:"graduation/replyUnLike",payload:{object_id:Fn.id,object_type:"message"}}),Zn({type:"graduation/getReplyList",payload:gt({},Hn)})})}),Fn.praises_count),!Fn.liked&&le.createElement("span",null,le.createElement(yt.Z,{className:"mr5 ml30",onClick:()=>zt(this,null,function*(){yield Zn({type:"graduation/replyLike",payload:{object_id:Fn.id,object_type:"message"}}),Zn({type:"graduation/getReplyList",payload:gt({},Hn)})})}),Fn.praises_count))))))}))),le.createElement("aside",{className:"tc mt30 pb30"},le.createElement(Le.Z,{defaultCurrent:1,total:Oe==null?void 0:Oe.total_count,hideOnSinglePage:!0,current:Hn.page||1,onChange:Fn=>{Hn.page=Fn,Zn({type:"graduation/getReplyList",payload:gt({},Hn)})}})),le.createElement(z,null))};var bn=(0,ue.connect)(({graduation:mt,classroomList:dt,loading:ft,globalSetting:mn})=>({graduation:mt,globalSetting:mn,classroomList:dt,loading:ft.effects}))(Kt),xn=te(22150),ke=te(9430),lt=Object.defineProperty,ht=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,kt=(mt,dt,ft)=>dt in mt?lt(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,be=(mt,dt)=>{for(var ft in dt||(dt={}))tn.call(dt,ft)&&kt(mt,ft,dt[ft]);if(ht)for(var ft of ht(dt))Et.call(dt,ft)&&kt(mt,ft,dt[ft]);return mt},Bt=(mt,dt)=>{var ft={};for(var mn in mt)tn.call(mt,mn)&&dt.indexOf(mn)<0&&(ft[mn]=mt[mn]);if(mt!=null&&ht)for(var mn of ht(mt))dt.indexOf(mn)<0&&Et.call(mt,mn)&&(ft[mn]=mt[mn]);return ft},en=(mt,dt,ft)=>new Promise((mn,Zn)=>{var ua=on=>{try{aa(ft.next(on))}catch(oa){Zn(oa)}},Hn=on=>{try{aa(ft.throw(on))}catch(oa){Zn(oa)}},aa=on=>on.done?mn(on.value):Promise.resolve(on.value).then(ua,Hn);aa((ft=ft.apply(mt,dt)).next())});const $n=mt=>{var dt=mt,{graduation:ft,dispatch:mn}=dt,Zn=Bt(dt,["graduation","dispatch"]);const ua=(0,ue.useParams)();return le.createElement(Re.default,{centered:!0,title:"\u63D0\u793A",open:ft.actionTabs.key==="\u62D2\u7EDD",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>en(void 0,null,function*(){(yield mn({type:"graduation/refuseTopic",payload:be({student_graduation_topic:ft.actionTabs.selectArrs.id},ua)})).status===0&&(He.ZP.success("\u62D2\u7EDD\u6210\u529F"),mn({type:"graduation/setActionTabs",payload:{}}),mn({type:"graduation/getTopisDetailList",payload:be({},ft.actionTabs.params)}))}),onCancel:()=>{mn({type:"graduation/setActionTabs",payload:{}})}},le.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u5B66\u751F\u9009\u9898?"))};var jt=(0,ue.connect)(({graduation:mt})=>({graduation:mt}))($n),ct=te(11713),_e=Object.defineProperty,De=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,St=(mt,dt,ft)=>dt in mt?_e(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,Ft=(mt,dt)=>{for(var ft in dt||(dt={}))ze.call(dt,ft)&&St(mt,ft,dt[ft]);if(De)for(var ft of De(dt))Qe.call(dt,ft)&&St(mt,ft,dt[ft]);return mt},qt=(mt,dt)=>{var ft={};for(var mn in mt)ze.call(mt,mn)&&dt.indexOf(mn)<0&&(ft[mn]=mt[mn]);if(mt!=null&&De)for(var mn of De(mt))dt.indexOf(mn)<0&&Qe.call(mt,mn)&&(ft[mn]=mt[mn]);return ft},an=(mt,dt,ft)=>new Promise((mn,Zn)=>{var ua=on=>{try{aa(ft.next(on))}catch(oa){Zn(oa)}},Hn=on=>{try{aa(ft.throw(on))}catch(oa){Zn(oa)}},aa=on=>on.done?mn(on.value):Promise.resolve(on.value).then(ua,Hn);aa((ft=ft.apply(mt,dt)).next())});const pn=mt=>{var dt=mt,{graduation:ft,dispatch:mn}=dt,Zn=qt(dt,["graduation","dispatch"]),ua;const Hn=(0,ue.useParams)(),{detailList:aa}=ft,[on]=xn.default.useForm();return le.createElement(Re.default,{centered:!0,title:"\u540C\u610F\u9009\u9898",open:ft.actionTabs.key==="\u540C\u610F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>an(void 0,null,function*(){var oa;yield on.validateFields();const Ra=on.getFieldsValue();(yield mn({type:"graduation/agreeTopic",payload:Ft({group_id:Ra.group_id,course_group_name:(oa=aa==null?void 0:aa.group_list)==null?void 0:oa.filter(ta=>ta.group_id==Ra.group_id)[0].group_name,student_graduation_topic:ft.actionTabs.selectArrs.id},Hn)})).status===0&&(He.ZP.success("\u540C\u610F\u6210\u529F"),mn({type:"graduation/setActionTabs",payload:{}}),mn({type:"graduation/getTopisDetailList",payload:Ft({},ft.actionTabs.params)}))}),onCancel:()=>{mn({type:"graduation/setActionTabs",payload:{}})}},le.createElement("p",null,"\u786E\u8BA4\u540C\u610F\u5B66\u751F\u7684\u9009\u9898\uFF0C\u5C06\u5B66\u751F\u52A0\u5165\u6211\u7684\u5206\u73ED"),le.createElement(xn.default,{form:on},le.createElement(xn.default.Item,{name:"group_id",label:"\u9009\u62E9\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u73ED"}]},le.createElement(ct.default,{placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",size:"middle"},(ua=aa==null?void 0:aa.group_list)==null?void 0:ua.map(function(oa,Ra){return le.createElement(ct.default.Option,{value:oa.group_id},oa.group_name)})))))};var Nn=(0,ue.connect)(({graduation:mt})=>({graduation:mt}))(pn),Pe=Object.defineProperty,Ae=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Te=(mt,dt,ft)=>dt in mt?Pe(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,Ot=(mt,dt)=>{for(var ft in dt||(dt={}))cn.call(dt,ft)&&Te(mt,ft,dt[ft]);if(Ae)for(var ft of Ae(dt))Nt.call(dt,ft)&&Te(mt,ft,dt[ft]);return mt};const Sn=({graduation:mt,loading:dt,dispatch:ft})=>{const[mn,Zn]=(0,le.useState)(Ot({},(0,ue.useParams)())),ua=(0,ue.useLocation)(),{detailList:Hn}=mt,[aa,on]=(0,le.useState)({}),[oa]=xn.default.useForm(),Ra=(ta,Aa)=>{mn.page=ta,mn.limit=20,ft({type:"graduation/getTopisDetailList",payload:Ot({},mn)})},la=[{title:"\u5E8F\u53F7",dataIndex:"name",width:200,align:"center",render:(ta,Aa,ho)=>ho+1},{title:"\u59D3\u540D",dataIndex:"student_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"class_group_name"},{title:"\u9009\u9898\u65F6\u95F4",dataIndex:"selected_time"},{title:"\u786E\u8BA4\u7ED3\u679C",dataIndex:"result",render:ta=>ta==="\u5DF2\u62D2\u7EDD"?le.createElement("span",{className:"c-orange"},"\u5DF2\u62D2\u7EDD"):ta},{title:"\u64CD\u4F5C",dataInex:"action",render:(ta,Aa)=>le.createElement("div",null,(Aa.result==="\u5F85\u786E\u8BA4"||Aa.result==="\u5DF2\u540C\u610F")&&le.createElement("span",{className:"current",onClick:()=>{ft({type:"graduation/setActionTabs",payload:{key:"\u62D2\u7EDD",selectArrs:Aa,params:mn}})}},"\u62D2\u7EDD"),Aa.result==="\u5F85\u786E\u8BA4"&&le.createElement("span",{className:"current ml20 c-blue",onClick:()=>{ft({type:"graduation/setActionTabs",payload:{key:"\u540C\u610F",selectArrs:Aa,params:mn}})}},"\u540C\u610F"))}];return le.createElement(le.Fragment,null,le.createElement("section",{className:"minH500 bg-white "},le.createElement(ke.default,{loading:dt["graduation/getTopisDetailList"],pagination:!1,dataSource:Hn.users_list,columns:la}),le.createElement(jt,null),le.createElement(Nn,null)),le.createElement("aside",{className:"tc mb50 mt30"},le.createElement(Le.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:Ra,defaultCurrent:mn.page||1,current:mn.page||1,defaultPageSize:15,total:mt.users_count})))};var Yt=(0,ue.connect)(({graduation:mt,loading:dt})=>({graduation:mt,loading:dt.effects}))(Sn),vn={flex_box_center:"flex_box_center___ZPOJ5",flex_space_between:"flex_space_between___GmCrk",flex_box_vertical_center:"flex_box_vertical_center___XpcAN",flex_box_center_end:"flex_box_center_end___krRXE",flex_box_column:"flex_box_column___DLzSN",title:"title___KDcLT",menuTabs:"menuTabs___nxQqE",rightMenu:"rightMenu___MVID9",shixunDetail:"shixunDetail___NvT9l"},Ut=Object.defineProperty,Jt=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Dn=(mt,dt,ft)=>dt in mt?Ut(mt,dt,{enumerable:!0,configurable:!0,writable:!0,value:ft}):mt[dt]=ft,zn=(mt,dt)=>{for(var ft in dt||(dt={}))gn.call(dt,ft)&&Dn(mt,ft,dt[ft]);if(Jt)for(var ft of Jt(dt))na.call(dt,ft)&&Dn(mt,ft,dt[ft]);return mt};const fa=({graduation:mt,globalSetting:dt,loading:ft,dispatch:mn})=>{const Zn=(0,ue.useParams)(),[ua]=(0,ue.useSearchParams)(),Hn=(0,ue.useLocation)(),[aa,on]=(0,le.useState)([]),[oa,Ra]=(0,le.useState)(ua.get("tabs")||0),{detailTaskList:la,tasksDetail:ta}=mt;let Aa;Zn.category=ua.get("category_id"),(0,le.useEffect)(()=>{mn({type:"graduation/getTasksDetail",payload:zn({},Zn)}),mn({type:"graduation/getTasksListDetail",payload:zn({},Zn)})},[Zn.coursesId]);const ho=[{name:"\u4EFB\u52A1\u5217\u8868",id:0,compontent:le.createElement(Yt,null)},{name:"\u4EFB\u52A1\u63CF\u8FF0",id:1,compontent:le.createElement(bn,null)}];return le.createElement("section",null,le.createElement("div",{className:"edu-container"},la.course_name&&le.createElement("section",{className:"animated fadeIn"},le.createElement("aside",{className:"mt10"},le.createElement($e.Z,{separator:">"},le.createElement($e.Z.Item,null,le.createElement(ue.Link,{to:`/classrooms/${la.course_id}/shixun_homework`},la.course_name)),le.createElement($e.Z.Item,null,le.createElement(ue.Link,{to:`/classrooms/${la.course_id}/graduation_tasks`},"\u6BD5\u8BBE\u4EFB\u52A1")),le.createElement($e.Z.Item,null,"\u4EFB\u52A1\u8BE6\u60C5"))),le.createElement("aside",{className:[vn.title,"mt20"].join(" ")},le.createElement(ue.Link,{to:`/classrooms/${la.course_id}/graduation_tasks`},le.createElement(xe.Z,{className:"font16 c-black"})),le.createElement("strong",{className:"font20 ml5"},la.task_name),le.createElement(Fe.VV,{status:[la.status_name]}))),le.createElement("aside",{className:"mt30 relative"},le.createElement("aside",{className:vn.rightMenu},le.createElement(ue.Link,{className:vn.shixunDetail,to:`/classrooms/${Zn.coursesId}/graduation_tasks/${Zn.categoryId}/edit`},le.createElement("span",{className:"iconfont icon-shixunxiangqing"}),"\u7F16\u8F91\u4EFB\u52A1")),le.createElement(Ie.default,{defaultActiveKey:oa,className:vn.menuTabs},ho.map((ha,Oe)=>le.createElement(Ie.default.TabPane,{tab:ha.name,key:ha.id},ha.compontent))))))};var ia=(0,ue.connect)(({graduation:mt,loading:dt,globalSetting:ft})=>({graduation:mt,globalSetting:ft,loading:dt.effects}))(fa)},38780:function(Xe,ot){"use strict";function te(){const le=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const $e=ue<0||arguments.length<=ue?void 0:arguments[ue];$e&&Object.keys($e).forEach(Ie=>{const xe=$e[Ie];xe!==void 0&&(le[Ie]=xe)})}return le}ot.Z=te},66367:function(Xe,ot,te){"use strict";te.d(ot,{F:function(){return le},Z:function(){return ue}});function le($e){return $e!=null&&$e===$e.window}function ue($e,Ie){var xe,Fe;if(typeof window=="undefined")return 0;const re=Ie?"scrollTop":"scrollLeft";let Ye=0;return le($e)?Ye=$e[Ie?"pageYOffset":"pageXOffset"]:$e instanceof Document?Ye=$e.documentElement[re]:($e instanceof HTMLElement||$e)&&(Ye=$e[re]),$e&&!le($e)&&typeof Ye!="number"&&(Ye=(Fe=((xe=$e.ownerDocument)!==null&&xe!==void 0?xe:$e).documentElement)===null||Fe===void 0?void 0:Fe[re]),Ye}},57838:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return ue}});var le=te(67294);function ue(){const[,$e]=le.useReducer(Ie=>Ie+1,0);return $e}},58375:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return Ie}});var le=te(96523);function ue(xe,Fe,re,Ye){const Me=re-Fe;return xe/=Ye/2,xe<1?Me/2*xe*xe*xe+Fe:Me/2*((xe-=2)*xe*xe+2)+Fe}var $e=te(66367);function Ie(xe){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:re=()=>window,callback:Ye,duration:Me=450}=Fe,Re=re(),He=(0,$e.Z)(Re,!0),Ue=Date.now(),Ce=()=>{const a=Date.now()-Ue,y=ue(a>Me?Me:a,He,xe,Me);(0,$e.F)(Re)?Re.scrollTo(window.pageXOffset,y):Re instanceof Document||Re.constructor.name==="HTMLDocument"?Re.documentElement.scrollTop=y:Re.scrollTop=y,a<Me?(0,le.Z)(Ce):typeof Ye=="function"&&Ye()};(0,le.Z)(Ce)}},85673:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return Vt}});var le=te(94184),ue=te.n(le),$e=te(37419),Ie=te(1337),xe=te(67294),Fe=te(96159),re=te(53124),Ye=te(42922),Me=te(35874);const Re=Ee=>{let{children:Ge}=Ee;const{getPrefixCls:tt}=xe.useContext(re.E_),nt=tt("breadcrumb");return xe.createElement("li",{className:`${nt}-separator`,"aria-hidden":"true"},Ge===""?Ge:Ge||"/")};Re.__ANT_BREADCRUMB_SEPARATOR=!0;var He=Re,Ue=function(Ee,Ge){var tt={};for(var nt in Ee)Object.prototype.hasOwnProperty.call(Ee,nt)&&Ge.indexOf(nt)<0&&(tt[nt]=Ee[nt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Ee);gt<nt.length;gt++)Ge.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,nt[gt])&&(tt[nt[gt]]=Ee[nt[gt]]);return tt};function Ce(Ee,Ge){if(Ee.title===void 0||Ee.title===null)return null;const tt=Object.keys(Ge).join("|");return typeof Ee.title=="object"?Ee.title:String(Ee.title).replace(new RegExp(`:(${tt})`,"g"),(nt,gt)=>Ge[gt]||nt)}function ie(Ee,Ge,tt,nt){if(tt==null)return null;const{className:gt,onClick:zt}=Ge,Kt=Ue(Ge,["className","onClick"]),bn=Object.assign(Object.assign({},(0,Ie.Z)(Kt,{data:!0,aria:!0})),{onClick:zt});return nt!==void 0?xe.createElement("a",Object.assign({},bn,{className:ue()(`${Ee}-link`,gt),href:nt}),tt):xe.createElement("span",Object.assign({},bn,{className:ue()(`${Ee}-link`,gt)}),tt)}function a(Ee,Ge){return(nt,gt,zt,Kt,bn)=>{if(Ge)return Ge(nt,gt,zt,Kt);const xn=Ce(nt,gt);return ie(Ee,nt,xn,bn)}}var y=function(Ee,Ge){var tt={};for(var nt in Ee)Object.prototype.hasOwnProperty.call(Ee,nt)&&Ge.indexOf(nt)<0&&(tt[nt]=Ee[nt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Ee);gt<nt.length;gt++)Ge.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,nt[gt])&&(tt[nt[gt]]=Ee[nt[gt]]);return tt};const x=Ee=>{const{prefixCls:Ge,separator:tt="/",children:nt,menu:gt,overlay:zt,dropdownProps:Kt,href:bn}=Ee,ke=(lt=>{if(gt||zt){const ht=Object.assign({},Kt);if(gt){const tn=gt||{},{items:Et}=tn,kt=y(tn,["items"]);ht.menu=Object.assign(Object.assign({},kt),{items:Et==null?void 0:Et.map((be,Bt)=>{var{key:en,title:$n,label:jt,path:ct}=be,_e=y(be,["key","title","label","path"]);let De=jt!=null?jt:$n;return ct&&(De=xe.createElement("a",{href:`${bn}${ct}`},De)),Object.assign(Object.assign({},_e),{key:en!=null?en:Bt,label:De})})})}else zt&&(ht.overlay=zt);return xe.createElement(Me.Z,Object.assign({placement:"bottom"},ht),xe.createElement("span",{className:`${Ge}-overlay-link`},lt,xe.createElement(Ye.Z,null)))}return lt})(nt);return ke!=null?xe.createElement(xe.Fragment,null,xe.createElement("li",null,ke),tt&&xe.createElement(He,null,tt)):null},b=Ee=>{const{prefixCls:Ge,children:tt,href:nt}=Ee,gt=y(Ee,["prefixCls","children","href"]),{getPrefixCls:zt}=xe.useContext(re.E_),Kt=zt("breadcrumb",Ge);return xe.createElement(x,Object.assign({},gt,{prefixCls:Kt}),ie(Kt,gt,tt,nt))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=te(14747),ee=te(67968),ne=te(45503);const de=Ee=>{const{componentCls:Ge,iconCls:tt}=Ee;return{[Ge]:Object.assign(Object.assign({},(0,z.Wf)(Ee)),{color:Ee.itemColor,fontSize:Ee.fontSize,[tt]:{fontSize:Ee.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ee.linkColor,transition:`color ${Ee.motionDurationMid}`,padding:`0 ${Ee.paddingXXS}px`,borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",marginInline:-Ee.marginXXS,"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover}},(0,z.Qy)(Ee)),"li:last-child":{color:Ee.lastItemColor},[`${Ge}-separator`]:{marginInline:Ee.separatorMargin,color:Ee.separatorColor},[`${Ge}-link`]:{[`
|
|
> ${tt} + span,
|
|
> ${tt} + a
|
|
`]:{marginInlineStart:Ee.marginXXS}},[`${Ge}-overlay-link`]:{borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",padding:`0 ${Ee.paddingXXS}px`,marginInline:-Ee.marginXXS,[`> ${tt}`]:{marginInlineStart:Ee.marginXXS,fontSize:Ee.fontSizeIcon},"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover,a:{color:Ee.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ee.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,ee.Z)("Breadcrumb",Ee=>{const Ge=(0,ne.TS)(Ee,{});return[de(Ge)]},Ee=>({itemColor:Ee.colorTextDescription,lastItemColor:Ee.colorText,iconFontSize:Ee.fontSize,linkColor:Ee.colorTextDescription,linkHoverColor:Ee.colorText,separatorColor:Ee.colorTextDescription,separatorMargin:Ee.marginXS})),me=function(Ee,Ge){var tt={};for(var nt in Ee)Object.prototype.hasOwnProperty.call(Ee,nt)&&Ge.indexOf(nt)<0&&(tt[nt]=Ee[nt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Ee);gt<nt.length;gt++)Ge.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,nt[gt])&&(tt[nt[gt]]=Ee[nt[gt]]);return tt};function ye(Ee){const{breadcrumbName:Ge,children:tt}=Ee,nt=me(Ee,["breadcrumbName","children"]),gt=Object.assign({title:Ge},nt);return tt&&(gt.menu={items:tt.map(zt=>{var{breadcrumbName:Kt}=zt,bn=me(zt,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Kt})})}),gt}function pe(Ee,Ge){return(0,xe.useMemo)(()=>Ee||(Ge?Ge.map(ye):null),[Ee,Ge])}var Le=function(Ee,Ge){var tt={};for(var nt in Ee)Object.prototype.hasOwnProperty.call(Ee,nt)&&Ge.indexOf(nt)<0&&(tt[nt]=Ee[nt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Ee);gt<nt.length;gt++)Ge.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,nt[gt])&&(tt[nt[gt]]=Ee[nt[gt]]);return tt};const fe=(Ee,Ge)=>{if(Ge===void 0)return Ge;let tt=(Ge||"").replace(/^\//,"");return Object.keys(Ee).forEach(nt=>{tt=tt.replace(`:${nt}`,Ee[nt])}),tt},yt=Ee=>{const{prefixCls:Ge,separator:tt="/",style:nt,className:gt,rootClassName:zt,routes:Kt,items:bn,children:xn,itemRender:ke,params:lt={}}=Ee,ht=Le(Ee,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:tn,direction:Et,breadcrumb:kt}=xe.useContext(re.E_);let be;const Bt=tn("breadcrumb",Ge),[en,$n]=se(Bt),jt=pe(bn,Kt),ct=a(Bt,ke);if(jt&&jt.length>0){const ze=[],Qe=bn||Kt;be=jt.map((St,Ft)=>{const{path:qt,key:an,type:pn,menu:Nn,overlay:Pe,onClick:Ae,className:cn,separator:Nt,dropdownProps:Te}=St,Ot=fe(lt,qt);Ot!==void 0&&ze.push(Ot);const Sn=an!=null?an:Ft;if(pn==="separator")return xe.createElement(He,{key:Sn},Nt);const Yt={},vn=Ft===jt.length-1;Nn?Yt.menu=Nn:Pe&&(Yt.overlay=Pe);let{href:Ut}=St;return ze.length&&Ot!==void 0&&(Ut=`#/${ze.join("/")}`),xe.createElement(x,Object.assign({key:Sn},Yt,(0,Ie.Z)(St,{data:!0,aria:!0}),{className:cn,dropdownProps:Te,href:Ut,separator:vn?"":tt,onClick:Ae,prefixCls:Bt}),ct(St,lt,Qe,ze,Ut))})}else if(xn){const ze=(0,$e.Z)(xn).length;be=(0,$e.Z)(xn).map((Qe,St)=>{if(!Qe)return Qe;const Ft=St===ze-1;return(0,Fe.Tm)(Qe,{separator:Ft?"":tt,key:St})})}const _e=ue()(Bt,kt==null?void 0:kt.className,{[`${Bt}-rtl`]:Et==="rtl"},gt,zt,$n),De=Object.assign(Object.assign({},kt==null?void 0:kt.style),nt);return en(xe.createElement("nav",Object.assign({className:_e,style:De},ht),xe.createElement("ol",null,be)))};yt.Item=E,yt.Separator=He;var rt=yt,Vt=rt},84567:function(Xe,ot,te){"use strict";te.d(ot,{default:function(){return se}});var le=te(94184),ue=te.n(le),$e=te(95860),Ie=te(67294),xe=te(53124),Fe=te(98866),re=te(65223),Me=Ie.createContext(null),Re=te(63185),He=te(45353),Ue=te(92429),Ce=function(me,ye){var pe={};for(var Le in me)Object.prototype.hasOwnProperty.call(me,Le)&&ye.indexOf(Le)<0&&(pe[Le]=me[Le]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Le=Object.getOwnPropertySymbols(me);fe<Le.length;fe++)ye.indexOf(Le[fe])<0&&Object.prototype.propertyIsEnumerable.call(me,Le[fe])&&(pe[Le[fe]]=me[Le[fe]]);return pe};const ie=(me,ye)=>{var pe;const{prefixCls:Le,className:fe,rootClassName:yt,children:rt,indeterminate:Vt=!1,style:Ee,onMouseEnter:Ge,onMouseLeave:tt,skipGroup:nt=!1,disabled:gt}=me,zt=Ce(me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Kt,direction:bn,checkbox:xn}=Ie.useContext(xe.E_),ke=Ie.useContext(Me),{isFormItemInput:lt}=Ie.useContext(re.aM),ht=Ie.useContext(Fe.Z),tn=(pe=(ke==null?void 0:ke.disabled)||gt)!==null&&pe!==void 0?pe:ht,Et=Ie.useRef(zt.value);Ie.useEffect(()=>{ke==null||ke.registerValue(zt.value)},[]),Ie.useEffect(()=>{if(!nt)return zt.value!==Et.current&&(ke==null||ke.cancelValue(Et.current),ke==null||ke.registerValue(zt.value),Et.current=zt.value),()=>ke==null?void 0:ke.cancelValue(zt.value)},[zt.value]);const kt=Kt("checkbox",Le),[be,Bt]=(0,Re.ZP)(kt),en=Object.assign({},zt);ke&&!nt&&(en.onChange=function(){zt.onChange&&zt.onChange.apply(zt,arguments),ke.toggleOption&&ke.toggleOption({label:rt,value:zt.value})},en.name=ke.name,en.checked=ke.value.includes(zt.value));const $n=ue()(`${kt}-wrapper`,{[`${kt}-rtl`]:bn==="rtl",[`${kt}-wrapper-checked`]:en.checked,[`${kt}-wrapper-disabled`]:tn,[`${kt}-wrapper-in-form-item`]:lt},xn==null?void 0:xn.className,fe,yt,Bt),jt=ue()({[`${kt}-indeterminate`]:Vt},Ue.A,Bt),ct=Vt?"mixed":void 0;return be(Ie.createElement(He.Z,{component:"Checkbox",disabled:tn},Ie.createElement("label",{className:$n,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),Ee),onMouseEnter:Ge,onMouseLeave:tt},Ie.createElement($e.Z,Object.assign({"aria-checked":ct},en,{prefixCls:kt,className:jt,disabled:tn,ref:ye})),rt!==void 0&&Ie.createElement("span",null,rt))))};var y=Ie.forwardRef(ie),x=te(74902),b=te(10366),E=function(me,ye){var pe={};for(var Le in me)Object.prototype.hasOwnProperty.call(me,Le)&&ye.indexOf(Le)<0&&(pe[Le]=me[Le]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Le=Object.getOwnPropertySymbols(me);fe<Le.length;fe++)ye.indexOf(Le[fe])<0&&Object.prototype.propertyIsEnumerable.call(me,Le[fe])&&(pe[Le[fe]]=me[Le[fe]]);return pe};const z=(me,ye)=>{const{defaultValue:pe,children:Le,options:fe=[],prefixCls:yt,className:rt,rootClassName:Vt,style:Ee,onChange:Ge}=me,tt=E(me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:nt,direction:gt}=Ie.useContext(xe.E_),[zt,Kt]=Ie.useState(tt.value||pe||[]),[bn,xn]=Ie.useState([]);Ie.useEffect(()=>{"value"in tt&&Kt(tt.value||[])},[tt.value]);const ke=Ie.useMemo(()=>fe.map(_e=>typeof _e=="string"||typeof _e=="number"?{label:_e,value:_e}:_e),[fe]),lt=_e=>{xn(De=>De.filter(ze=>ze!==_e))},ht=_e=>{xn(De=>[].concat((0,x.Z)(De),[_e]))},tn=_e=>{const De=zt.indexOf(_e.value),ze=(0,x.Z)(zt);De===-1?ze.push(_e.value):ze.splice(De,1),"value"in tt||Kt(ze),Ge==null||Ge(ze.filter(Qe=>bn.includes(Qe)).sort((Qe,St)=>{const Ft=ke.findIndex(an=>an.value===Qe),qt=ke.findIndex(an=>an.value===St);return Ft-qt}))},Et=nt("checkbox",yt),kt=`${Et}-group`,[be,Bt]=(0,Re.ZP)(Et),en=(0,b.Z)(tt,["value","disabled"]),$n=fe.length?ke.map(_e=>Ie.createElement(y,{prefixCls:Et,key:_e.value.toString(),disabled:"disabled"in _e?_e.disabled:tt.disabled,value:_e.value,checked:zt.includes(_e.value),onChange:_e.onChange,className:`${kt}-item`,style:_e.style,title:_e.title},_e.label)):Le,jt={toggleOption:tn,value:zt,disabled:tt.disabled,name:tt.name,registerValue:ht,cancelValue:lt},ct=ue()(kt,{[`${kt}-rtl`]:gt==="rtl"},rt,Vt,Bt);return be(Ie.createElement("div",Object.assign({className:ct,style:Ee},en,{ref:ye}),Ie.createElement(Me.Provider,{value:jt},$n)))},ee=Ie.forwardRef(z);var ne=Ie.memo(ee);const de=y;de.Group=ne,de.__ANT_CHECKBOX=!0;var se=de},63185:function(Xe,ot,te){"use strict";te.d(ot,{C2:function(){return xe}});var le=te(14747),ue=te(45503),$e=te(67968);const Ie=Fe=>{const{checkboxCls:re}=Fe,Ye=`${re}-wrapper`;return[{[`${re}-group`]:Object.assign(Object.assign({},(0,le.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Ye]:Object.assign(Object.assign({},(0,le.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ye}`]:{marginInlineStart:0},[`&${Ye}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[re]:Object.assign(Object.assign({},(0,le.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${re}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${re}-inner`]:Object.assign({},(0,le.oN)(Fe))},[`${re}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
|
|
${Ye}:not(${Ye}-disabled),
|
|
${re}:not(${re}-disabled)
|
|
`]:{[`&:hover ${re}-inner`]:{borderColor:Fe.colorPrimary}},[`${Ye}:not(${Ye}-disabled)`]:{[`&:hover ${re}-checked:not(${re}-disabled) ${re}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${re}-checked:not(${re}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${re}-checked`]:{[`${re}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
|
|
${Ye}-checked:not(${Ye}-disabled),
|
|
${re}-checked:not(${re}-disabled)
|
|
`]:{[`&:hover ${re}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[re]:{"&-indeterminate":{[`${re}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ye}-disabled`]:{cursor:"not-allowed"},[`${re}-disabled`]:{[`&, ${re}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${re}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${re}-indeterminate ${re}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function xe(Fe,re){const Ye=(0,ue.TS)(re,{checkboxCls:`.${Fe}`,checkboxSize:re.controlInteractiveSize});return[Ie(Ye)]}ot.ZP=(0,$e.Z)("Checkbox",(Fe,re)=>{let{prefixCls:Ye}=re;return[xe(Ye,Fe)]})},35874:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return De}});var le=te(67294),ue=te(91034),$e=te(94184),Ie=te.n($e),xe=te(87462),Fe=te(4942),re=te(97685),Ye=te(45987),Me=te(62709),Re=te(71002),He=te(12060);function Ue(ze,Qe,St){var Ft=React.useRef({});return(!("value"in Ft.current)||St(Ft.current.condition,Qe))&&(Ft.current.value=ze(),Ft.current.condition=Qe),Ft.current.value}function Ce(ze,Qe){typeof ze=="function"?ze(Qe):(0,Re.Z)(ze)==="object"&&ze&&"current"in ze&&(ze.current=Qe)}function ie(){for(var ze=arguments.length,Qe=new Array(ze),St=0;St<ze;St++)Qe[St]=arguments[St];var Ft=Qe.filter(function(qt){return qt});return Ft.length<=1?Ft[0]:function(qt){Qe.forEach(function(an){Ce(an,qt)})}}function a(){for(var ze=arguments.length,Qe=new Array(ze),St=0;St<ze;St++)Qe[St]=arguments[St];return useMemo(function(){return ie.apply(void 0,Qe)},Qe,function(Ft,qt){return Ft.length===qt.length&&Ft.every(function(an,pn){return an===qt[pn]})})}function y(ze){var Qe,St,Ft=(0,He.isMemo)(ze)?ze.type.type:ze.type;return!(typeof Ft=="function"&&!((Qe=Ft.prototype)!==null&&Qe!==void 0&&Qe.render)||typeof ze=="function"&&!((St=ze.prototype)!==null&&St!==void 0&&St.render))}var x={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Qe){var St=Qe.keyCode;if(Qe.altKey&&!Qe.ctrlKey||Qe.metaKey||St>=x.F1&&St<=x.F12)return!1;switch(St){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Qe){if(Qe>=x.ZERO&&Qe<=x.NINE||Qe>=x.NUM_ZERO&&Qe<=x.NUM_MULTIPLY||Qe>=x.A&&Qe<=x.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Qe===0)return!0;switch(Qe){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=x,E=function(Qe){return+setTimeout(Qe,16)},z=function(Qe){return clearTimeout(Qe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(E=function(Qe){return window.requestAnimationFrame(Qe)},z=function(Qe){return window.cancelAnimationFrame(Qe)});var ee=0,ne=new Map;function de(ze){ne.delete(ze)}var se=function(Qe){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var Ft=ee;function qt(an){if(an===0)de(Ft),Qe();else{var pn=E(function(){qt(an-1)});ne.set(Ft,pn)}}return qt(St),Ft};se.cancel=function(ze){var Qe=ne.get(ze);return de(Qe),z(Qe)};var me=se,ye=b.ESC,pe=b.TAB;function Le(ze){var Qe=ze.visible,St=ze.triggerRef,Ft=ze.onVisibleChange,qt=ze.autoFocus,an=ze.overlayRef,pn=le.useRef(!1),Nn=function(){if(Qe){var Nt,Te;(Nt=St.current)===null||Nt===void 0||(Te=Nt.focus)===null||Te===void 0||Te.call(Nt),Ft==null||Ft(!1)}},Pe=function(){var Nt;return(Nt=an.current)!==null&&Nt!==void 0&&Nt.focus?(an.current.focus(),pn.current=!0,!0):!1},Ae=function(Nt){switch(Nt.keyCode){case ye:Nn();break;case pe:{var Te=!1;pn.current||(Te=Pe()),Te?Nt.preventDefault():Nn();break}}};le.useEffect(function(){return Qe?(window.addEventListener("keydown",Ae),qt&&me(Pe,3),function(){window.removeEventListener("keydown",Ae),pn.current=!1}):function(){pn.current=!1}},[Qe])}var fe=(0,le.forwardRef)(function(ze,Qe){var St=ze.overlay,Ft=ze.arrow,qt=ze.prefixCls,an=(0,le.useMemo)(function(){var Nn;return typeof St=="function"?Nn=St():Nn=St,Nn},[St]),pn=ie(Qe,an==null?void 0:an.ref);return le.createElement(le.Fragment,null,Ft&&le.createElement("div",{className:"".concat(qt,"-arrow")}),le.cloneElement(an,{ref:y(an)?pn:void 0}))}),yt=fe,rt={adjustX:1,adjustY:1},Vt=[0,0],Ee={topLeft:{points:["bl","tl"],overflow:rt,offset:[0,-4],targetOffset:Vt},top:{points:["bc","tc"],overflow:rt,offset:[0,-4],targetOffset:Vt},topRight:{points:["br","tr"],overflow:rt,offset:[0,-4],targetOffset:Vt},bottomLeft:{points:["tl","bl"],overflow:rt,offset:[0,4],targetOffset:Vt},bottom:{points:["tc","bc"],overflow:rt,offset:[0,4],targetOffset:Vt},bottomRight:{points:["tr","br"],overflow:rt,offset:[0,4],targetOffset:Vt}},Ge=Ee,tt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nt(ze,Qe){var St,Ft=ze.arrow,qt=Ft===void 0?!1:Ft,an=ze.prefixCls,pn=an===void 0?"rc-dropdown":an,Nn=ze.transitionName,Pe=ze.animation,Ae=ze.align,cn=ze.placement,Nt=cn===void 0?"bottomLeft":cn,Te=ze.placements,Ot=Te===void 0?Ge:Te,Sn=ze.getPopupContainer,Yt=ze.showAction,vn=ze.hideAction,Ut=ze.overlayClassName,Jt=ze.overlayStyle,gn=ze.visible,na=ze.trigger,Dn=na===void 0?["hover"]:na,zn=ze.autoFocus,fa=ze.overlay,ia=ze.children,mt=ze.onVisibleChange,dt=(0,Ye.Z)(ze,tt),ft=le.useState(),mn=(0,re.Z)(ft,2),Zn=mn[0],ua=mn[1],Hn="visible"in ze?gn:Zn,aa=le.useRef(null),on=le.useRef(null),oa=le.useRef(null);le.useImperativeHandle(Qe,function(){return aa.current});var Ra=function($t){ua($t),mt==null||mt($t)};Le({visible:Hn,triggerRef:oa,onVisibleChange:Ra,autoFocus:zn,overlayRef:on});var la=function($t){var Pn=ze.onOverlayClick;ua(!1),Pn&&Pn($t)},ta=function(){return le.createElement(yt,{ref:on,overlay:fa,prefixCls:pn,arrow:qt})},Aa=function(){return typeof fa=="function"?ta:ta()},ho=function(){var $t=ze.minOverlayWidthMatchTrigger,Pn=ze.alignPoint;return"minOverlayWidthMatchTrigger"in ze?$t:!Pn},ha=function(){var $t=ze.openClassName;return $t!==void 0?$t:"".concat(pn,"-open")},Oe=le.cloneElement(ia,{className:Ie()((St=ia.props)===null||St===void 0?void 0:St.className,Hn&&ha()),ref:y(ia)?ie(oa,ia.ref):void 0}),Ze=vn;return!Ze&&Dn.indexOf("contextMenu")!==-1&&(Ze=["click"]),le.createElement(Me.Z,(0,xe.Z)({builtinPlacements:Ot},dt,{prefixCls:pn,ref:aa,popupClassName:Ie()(Ut,(0,Fe.Z)({},"".concat(pn,"-show-arrow"),qt)),popupStyle:Jt,action:Dn,showAction:Yt,hideAction:Ze,popupPlacement:Nt,popupAlign:Ae,popupTransitionName:Nn,popupAnimation:Pe,popupVisible:Hn,stretch:ho()?"minWidth":"",popup:Aa(),onPopupVisibleChange:Ra,onPopupClick:la,getPopupContainer:Sn}),Oe)}var gt=le.forwardRef(nt),zt=gt,Kt=te(60276),bn=te(5663),xn=te(10366),ke=te(80636),lt=te(8745),ht=te(96159),tn=te(53124),Et=te(68508),kt=te(76529),be=te(46605),Bt=te(66748);const en=null,$n=ze=>{const{menu:Qe,arrow:St,prefixCls:Ft,children:qt,trigger:an,disabled:pn,dropdownRender:Nn,getPopupContainer:Pe,overlayClassName:Ae,rootClassName:cn,open:Nt,onOpenChange:Te,visible:Ot,onVisibleChange:Sn,mouseEnterDelay:Yt=.15,mouseLeaveDelay:vn=.1,autoAdjustOverflow:Ut=!0,placement:Jt="",overlay:gn,transitionName:na}=ze,{getPopupContainer:Dn,getPrefixCls:zn,direction:fa}=le.useContext(tn.E_),ia=le.useMemo(()=>{const Oe=zn();return na!==void 0?na:Jt.includes("top")?`${Oe}-slide-down`:`${Oe}-slide-up`},[zn,Jt,na]),mt=le.useMemo(()=>Jt?Jt.includes("Center")?Jt.slice(0,Jt.indexOf("Center")):Jt:fa==="rtl"?"bottomRight":"bottomLeft",[Jt,fa]),dt=zn("dropdown",Ft),[ft,mn]=(0,Bt.Z)(dt),[,Zn]=(0,be.Z)(),ua=le.Children.only(qt),Hn=(0,ht.Tm)(ua,{className:Ie()(`${dt}-trigger`,{[`${dt}-rtl`]:fa==="rtl"},ua.props.className),disabled:pn}),aa=pn?[]:an;let on;aa&&aa.includes("contextMenu")&&(on=!0);const[oa,Ra]=(0,bn.Z)(!1,{value:Nt!=null?Nt:Ot}),la=(0,Kt.useEvent)(Oe=>{Te==null||Te(Oe),Sn==null||Sn(Oe),Ra(Oe)}),ta=Ie()(Ae,cn,mn,{[`${dt}-rtl`]:fa==="rtl"}),Aa=(0,ke.Z)({arrowPointAtCenter:typeof St=="object"&&St.pointAtCenter,autoAdjustOverflow:Ut,offset:Zn.marginXXS,arrowWidth:St?Zn.sizePopupArrow:0,borderRadius:Zn.borderRadius}),ho=le.useCallback(()=>{Ra(!1)},[]),ha=()=>{let Oe;return Qe!=null&&Qe.items?Oe=le.createElement(Et.default,Object.assign({},Qe)):typeof gn=="function"?Oe=gn():Oe=gn,Nn&&(Oe=Nn(Oe)),Oe=le.Children.only(typeof Oe=="string"?le.createElement("span",null,Oe):Oe),le.createElement(kt.J,{prefixCls:`${dt}-menu`,expandIcon:le.createElement("span",{className:`${dt}-menu-submenu-arrow`},le.createElement(ue.Z,{className:`${dt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ho,validator:Ze=>{let{mode:Ke}=Ze}},Oe)};return ft(le.createElement(zt,Object.assign({alignPoint:on},(0,xn.Z)(ze,["rootClassName"]),{mouseEnterDelay:Yt,mouseLeaveDelay:vn,visible:oa,builtinPlacements:Aa,arrow:!!St,overlayClassName:ta,prefixCls:dt,getPopupContainer:Pe||Dn,transitionName:ia,trigger:aa,overlay:ha,placement:mt,onVisibleChange:la}),Hn))};function jt(ze){return Object.assign(Object.assign({},ze),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ct=(0,lt.Z)($n,"dropdown",ze=>ze,jt),_e=ze=>le.createElement(ct,Object.assign({},ze),le.createElement("span",null));$n._InternalPanelDoNotUseOrYouWillBeFired=_e;var De=$n},85418:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return a}});var le=te(35874),ue=te(94184),$e=te.n(ue),Ie=te(67294),xe=te(25877),Fe=te(71577),re=te(53124),Ye=te(93421),Me=te(4173),Re=te(66748),He=function(y,x){var b={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&x.indexOf(E)<0&&(b[E]=y[E]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(y);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(y,E[z])&&(b[E[z]]=y[E[z]]);return b};const Ue=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=Ie.useContext(re.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:de,loading:se,onClick:me,htmlType:ye,children:pe,className:Le,menu:fe,arrow:yt,autoFocus:rt,overlay:Vt,trigger:Ee,align:Ge,open:tt,onOpenChange:nt,placement:gt,getPopupContainer:zt,href:Kt,icon:bn=Ie.createElement(xe.Z,null),title:xn,buttonsRender:ke=pn=>pn,mouseEnterDelay:lt,mouseLeaveDelay:ht,overlayClassName:tn,overlayStyle:Et,destroyPopupOnHide:kt,dropdownRender:be}=y,Bt=He(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),en=b("dropdown",z),$n=`${en}-button`,[jt,ct]=(0,Re.Z)(en),_e={menu:fe,arrow:yt,autoFocus:rt,align:Ge,disabled:de,trigger:de?[]:Ee,onOpenChange:nt,getPopupContainer:zt||x,mouseEnterDelay:lt,mouseLeaveDelay:ht,overlayClassName:tn,overlayStyle:Et,destroyPopupOnHide:kt,dropdownRender:be},{compactSize:De,compactItemClassnames:ze}=(0,Me.ri)(en,E),Qe=$e()($n,ze,Le,ct);"overlay"in y&&(_e.overlay=Vt),"open"in y&&(_e.open=tt),"placement"in y?_e.placement=gt:_e.placement=E==="rtl"?"bottomLeft":"bottomRight";const St=Ie.createElement(Fe.ZP,{type:ee,danger:ne,disabled:de,loading:se,onClick:me,htmlType:ye,href:Kt,title:xn},pe),Ft=Ie.createElement(Fe.ZP,{type:ee,danger:ne,icon:bn}),[qt,an]=ke([St,Ft]);return jt(Ie.createElement(Ye.Z.Compact,Object.assign({className:Qe,size:De,block:!0},Bt),qt,Ie.createElement(le.Z,Object.assign({},_e),an)))};Ue.__ANT_BUTTON=!0;var Ce=Ue;const ie=le.Z;ie.Button=Ce;var a=ie},66748:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return He}});var le=te(14747),ue=te(67771),$e=te(33297),Ie=te(50438),xe=te(97414),Fe=te(67968),re=te(45503),Me=Ue=>{const{componentCls:Ce,menuCls:ie,colorError:a,colorTextLightSolid:y}=Ue,x=`${ie}-item`;return{[`${Ce}, ${Ce}-menu-submenu`]:{[`${ie} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Re=Ue=>{const{componentCls:Ce,menuCls:ie,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:de,colorTextDisabled:se,fontSizeIcon:me,controlPaddingHorizontal:ye,colorBgElevated:pe}=Ue;return[{[Ce]:Object.assign(Object.assign({},(0,le.Wf)(Ue)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:me}},[`${Ce}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:me},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ce}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomRight`]:{animationName:ue.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topRight`]:{animationName:ue.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomRight`]:{animationName:ue.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topRight`]:{animationName:ue.ly}})},(0,xe.ZP)(Ue,{colorBg:pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ce} ${ie}`]:{position:"relative",margin:0},[`${ie}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ce}, ${Ce}-menu-submenu`]:{[ie]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:Ue.borderRadiusLG,outline:"none",boxShadow:Ue.boxShadowSecondary},(0,le.Qy)(Ue)),{[`${ie}-item-group-title`]:{padding:`${ee}px ${ye}px`,color:Ue.colorTextDescription,transition:`all ${z}`},[`${ie}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ie}-item-icon`]:{minWidth:ne,marginInlineEnd:Ue.marginXS,fontSize:Ue.fontSizeSM},[`${ie}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ie}-item, ${ie}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ye}px`,color:Ue.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ue.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ue.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ue.controlItemBgHover}},(0,le.Qy)(Ue)),{"&-selected":{color:Ue.colorPrimary,backgroundColor:Ue.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ue.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ue.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ue.colorSplit},[`${Ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ue.paddingXS,[`${Ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ue.colorTextDescription,fontSize:me,fontStyle:"normal"}}}),[`${ie}-item-group-list`]:{margin:`0 ${Ue.marginXS}px`,padding:0,listStyle:"none"},[`${ie}-submenu-title`]:{paddingInlineEnd:ye+Ue.fontSizeSM},[`${ie}-submenu-vertical`]:{position:"relative"},[`${ie}-submenu${ie}-submenu-disabled ${Ce}-menu-submenu-title`]:{[`&, ${Ce}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:pe,cursor:"not-allowed"}},[`${ie}-submenu-selected ${Ce}-menu-submenu-title`]:{color:Ue.colorPrimary}})}},[(0,ue.oN)(Ue,"slide-up"),(0,ue.oN)(Ue,"slide-down"),(0,$e.Fm)(Ue,"move-up"),(0,$e.Fm)(Ue,"move-down"),(0,Ie._y)(Ue,"zoom-big")]]};var He=(0,Fe.Z)("Dropdown",(Ue,Ce)=>{let{rootPrefixCls:ie}=Ce;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Ue,de=(x-b*E)/2,{dropdownArrowOffset:se}=(0,xe.fS)({contentRadius:ne}),me=(0,re.TS)(Ue,{menuCls:`${ee}-menu`,rootPrefixCls:ie,dropdownArrowDistance:y/2+a,dropdownArrowOffset:se,dropdownPaddingVertical:de,dropdownEdgeChildPadding:z});return[Re(me),Me(me)]},Ue=>({zIndexPopup:Ue.zIndexPopupBase+50}))},25378:function(Xe,ot,te){"use strict";var le=te(67294),ue=te(14075),$e=te(57838),Ie=te(74443);function xe(){let Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const re=(0,le.useRef)({}),Ye=(0,$e.Z)(),Me=(0,Ie.ZP)();return(0,ue.Z)(()=>{const Re=Me.subscribe(He=>{re.current=He,Fe&&Ye()});return()=>Me.unsubscribe(Re)},[]),re.current}ot.Z=xe},71322:function(Xe,ot,te){"use strict";te.d(ot,{D:function(){return E},Z:function(){return ne}});var le=te(87462),ue=te(67294),$e={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"},Ie=$e,xe=te(74643),Fe=function(se,me){return ue.createElement(xe.Z,(0,le.Z)({},se,{ref:me,icon:Ie}))},re=ue.forwardRef(Fe),Ye=te(22751),Me=te(91034),Re=te(94184),He=te.n(Re),Ue=te(10366),ie=de=>!isNaN(parseFloat(de))&&isFinite(de),a=te(53124),y=te(84321),x=function(de,se){var me={};for(var ye in de)Object.prototype.hasOwnProperty.call(de,ye)&&se.indexOf(ye)<0&&(me[ye]=de[ye]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ye=Object.getOwnPropertySymbols(de);pe<ye.length;pe++)se.indexOf(ye[pe])<0&&Object.prototype.propertyIsEnumerable.call(de,ye[pe])&&(me[ye[pe]]=de[ye[pe]]);return me};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=ue.createContext({}),z=(()=>{let de=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de+=1,`${se}${de}`}})();var ne=ue.forwardRef((de,se)=>{const{prefixCls:me,className:ye,trigger:pe,children:Le,defaultCollapsed:fe=!1,theme:yt="dark",style:rt={},collapsible:Vt=!1,reverseArrow:Ee=!1,width:Ge=200,collapsedWidth:tt=80,zeroWidthTriggerStyle:nt,breakpoint:gt,onCollapse:zt,onBreakpoint:Kt}=de,bn=x(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xn}=(0,ue.useContext)(y.Gs),[ke,lt]=(0,ue.useState)("collapsed"in de?de.collapsed:fe),[ht,tn]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in de&<(de.collapsed)},[de.collapsed]);const Et=(jt,ct)=>{"collapsed"in de||lt(jt),zt==null||zt(jt,ct)},kt=(0,ue.useRef)();kt.current=jt=>{tn(jt.matches),Kt==null||Kt(jt.matches),ke!==jt.matches&&Et(jt.matches,"responsive")},(0,ue.useEffect)(()=>{function jt(_e){return kt.current(_e)}let ct;if(typeof window!="undefined"){const{matchMedia:_e}=window;if(_e&>&> in b){ct=_e(`(max-width: ${b[gt]})`);try{ct.addEventListener("change",jt)}catch(De){ct.addListener(jt)}jt(ct)}}return()=>{try{ct==null||ct.removeEventListener("change",jt)}catch(_e){ct==null||ct.removeListener(jt)}}},[gt]),(0,ue.useEffect)(()=>{const jt=z("ant-sider-");return xn.addSider(jt),()=>xn.removeSider(jt)},[]);const be=()=>{Et(!ke,"clickTrigger")},{getPrefixCls:Bt}=(0,ue.useContext)(a.E_),en=()=>{const jt=Bt("layout-sider",me),ct=(0,Ue.Z)(bn,["collapsed"]),_e=ke?tt:Ge,De=ie(_e)?`${_e}px`:String(_e),ze=parseFloat(String(tt||0))===0?ue.createElement("span",{onClick:be,className:He()(`${jt}-zero-width-trigger`,`${jt}-zero-width-trigger-${Ee?"right":"left"}`),style:nt},pe||ue.createElement(re,null)):null,Ft={expanded:Ee?ue.createElement(Me.Z,null):ue.createElement(Ye.Z,null),collapsed:Ee?ue.createElement(Ye.Z,null):ue.createElement(Me.Z,null)}[ke?"collapsed":"expanded"],qt=pe!==null?ze||ue.createElement("div",{className:`${jt}-trigger`,onClick:be,style:{width:De}},pe||Ft):null,an=Object.assign(Object.assign({},rt),{flex:`0 0 ${De}`,maxWidth:De,minWidth:De,width:De}),pn=He()(jt,`${jt}-${yt}`,{[`${jt}-collapsed`]:!!ke,[`${jt}-has-trigger`]:Vt&&pe!==null&&!ze,[`${jt}-below`]:!!ht,[`${jt}-zero-width`]:parseFloat(De)===0},ye);return ue.createElement("aside",Object.assign({className:pn},ct,{style:an,ref:se}),ue.createElement("div",{className:`${jt}-children`},Le),Vt||ht&&ze?qt:null)},$n=ue.useMemo(()=>({siderCollapsed:ke}),[ke]);return ue.createElement(E.Provider,{value:$n},en())})},84321:function(Xe,ot,te){"use strict";te.d(ot,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ce},ZP:function(){return ee}});var le=te(74902),ue=te(94184),$e=te.n(ue),Ie=te(10366),xe=te(67294),Fe=te(53124),re=te(67968),Me=ne=>{const{componentCls:de,bodyBg:se,lightSiderBg:me,lightTriggerBg:ye,lightTriggerColor:pe}=ne;return{[`${de}-sider-light`]:{background:me,[`${de}-sider-trigger`]:{color:pe,background:ye},[`${de}-sider-zero-width-trigger`]:{color:pe,background:ye,border:`1px solid ${se}`,borderInlineStart:0}}}};const Re=ne=>{const{antCls:de,componentCls:se,colorText:me,triggerColor:ye,footerBg:pe,triggerBg:Le,headerHeight:fe,headerPadding:yt,headerColor:rt,footerPadding:Vt,triggerHeight:Ee,zeroTriggerHeight:Ge,zeroTriggerWidth:tt,motionDurationMid:nt,motionDurationSlow:gt,fontSize:zt,borderRadius:Kt,bodyBg:bn,headerBg:xn,siderBg:ke}=ne;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:ke,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${de}-menu${de}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ee},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ee,color:ye,lineHeight:`${Ee}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:fe,insetInlineEnd:-tt,zIndex:1,width:tt,height:Ge,color:ye,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ke,borderStartStartRadius:0,borderStartEndRadius:Kt,borderEndEndRadius:Kt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-tt,borderStartStartRadius:Kt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Kt}}}}},Me(ne)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:fe,padding:yt,color:rt,lineHeight:`${fe}px`,background:xn,[`${de}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:Vt,color:me,fontSize:zt,background:pe},[`${se}-content`]:{flex:"auto",minHeight:0}}};var He=(0,re.Z)("Layout",ne=>[Re(ne)],ne=>{const{colorBgLayout:de,controlHeight:se,controlHeightLG:me,colorText:ye,controlHeightSM:pe,marginXXS:Le,colorTextLightSolid:fe,colorBgContainer:yt}=ne,rt=me*1.25;return{colorBgHeader:"#001529",colorBgBody:de,colorBgTrigger:"#002140",bodyBg:de,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${rt}px`,headerColor:ye,footerPadding:`${pe}px ${rt}px`,footerBg:de,siderBg:"#001529",triggerHeight:me+Le*2,triggerBg:"#002140",triggerColor:fe,zeroTriggerWidth:me,zeroTriggerHeight:me,lightSiderBg:yt,lightTriggerBg:yt,lightTriggerColor:ye}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ue=function(ne,de){var se={};for(var me in ne)Object.prototype.hasOwnProperty.call(ne,me)&&de.indexOf(me)<0&&(se[me]=ne[me]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,me=Object.getOwnPropertySymbols(ne);ye<me.length;ye++)de.indexOf(me[ye])<0&&Object.prototype.propertyIsEnumerable.call(ne,me[ye])&&(se[me[ye]]=ne[me[ye]]);return se};const Ce=xe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ie(ne){let{suffixCls:de,tagName:se,displayName:me}=ne;return ye=>xe.forwardRef((Le,fe)=>xe.createElement(ye,Object.assign({ref:fe,suffixCls:de,tagName:se},Le)))}const a=xe.forwardRef((ne,de)=>{const{prefixCls:se,suffixCls:me,className:ye,tagName:pe}=ne,Le=Ue(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:fe}=xe.useContext(Fe.E_),yt=fe("layout",se),[rt,Vt]=He(yt),Ee=me?`${yt}-${me}`:yt;return rt(xe.createElement(pe,Object.assign({className:$e()(se||Ee,ye,Vt),ref:de},Le)))}),y=xe.forwardRef((ne,de)=>{const{direction:se}=xe.useContext(Fe.E_),[me,ye]=xe.useState([]),{prefixCls:pe,className:Le,rootClassName:fe,children:yt,hasSider:rt,tagName:Vt,style:Ee}=ne,Ge=Ue(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),tt=(0,Ie.Z)(Ge,["suffixCls"]),{getPrefixCls:nt,layout:gt}=xe.useContext(Fe.E_),zt=nt("layout",pe),[Kt,bn]=He(zt),xn=$e()(zt,{[`${zt}-has-sider`]:typeof rt=="boolean"?rt:me.length>0,[`${zt}-rtl`]:se==="rtl"},gt==null?void 0:gt.className,Le,fe,bn),ke=xe.useMemo(()=>({siderHook:{addSider:lt=>{ye(ht=>[].concat((0,le.Z)(ht),[lt]))},removeSider:lt=>{ye(ht=>ht.filter(tn=>tn!==lt))}}}),[]);return Kt(xe.createElement(Ce.Provider,{value:ke},xe.createElement(Vt,Object.assign({ref:de,className:xn,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Ee)},tt),yt)))}),x=ie({tagName:"div",displayName:"Layout"})(y),b=ie({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ie({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ie({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},76529:function(Xe,ot,te){"use strict";te.d(ot,{J:function(){return Fe}});var le=te(67294),ue=te(4173),$e=te(60276),Ie=function(re,Ye){var Me={};for(var Re in re)Object.prototype.hasOwnProperty.call(re,Re)&&Ye.indexOf(Re)<0&&(Me[Re]=re[Re]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols(re);He<Re.length;He++)Ye.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call(re,Re[He])&&(Me[Re[He]]=re[Re[He]]);return Me};const xe=le.createContext(null),Fe=le.forwardRef((re,Ye)=>{const{children:Me}=re,Re=Ie(re,["children"]),He=le.useContext(xe),Ue=le.useMemo(()=>Object.assign(Object.assign({},He),Re),[He,Re.prefixCls,Re.mode,Re.selectable]);return le.createElement(xe.Provider,{value:Ue},le.createElement(ue.BR,null,(0,$e.supportNodeRef)(Me)?le.cloneElement(Me,{ref:Ye}):Me))});ot.Z=xe},68508:function(Xe,ot,te){"use strict";te.d(ot,{default:function(){return jt}});var le=te(78595),ue=te(67294),$e=te(71322),Ie=te(94184),xe=te.n(Ie),Fe=te(53124),re=function(ct,_e){var De={};for(var ze in ct)Object.prototype.hasOwnProperty.call(ct,ze)&&_e.indexOf(ze)<0&&(De[ze]=ct[ze]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ze=Object.getOwnPropertySymbols(ct);Qe<ze.length;Qe++)_e.indexOf(ze[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ze[Qe])&&(De[ze[Qe]]=ct[ze[Qe]]);return De},Me=ct=>{const{prefixCls:_e,className:De,dashed:ze}=ct,Qe=re(ct,["prefixCls","className","dashed"]),{getPrefixCls:St}=ue.useContext(Fe.E_),Ft=St("menu",_e),qt=xe()({[`${Ft}-item-divider-dashed`]:!!ze},De);return ue.createElement(le.iz,Object.assign({className:qt},Qe))},Re=te(37419),He=te(10366),Ue=te(83062),Ce=te(96159),a=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ct=>{var _e;const{className:De,children:ze,icon:Qe,title:St,danger:Ft}=ct,{prefixCls:qt,firstLevel:an,direction:pn,disableMenuItemTitleTooltip:Nn,inlineCollapsed:Pe}=ue.useContext(a),Ae=Yt=>{const vn=ue.createElement("span",{className:`${qt}-title-content`},ze);return(!Qe||(0,Ce.l$)(ze)&&ze.type==="span")&&ze&&Yt&&an&&typeof ze=="string"?ue.createElement("div",{className:`${qt}-inline-collapsed-noicon`},ze.charAt(0)):vn},{siderCollapsed:cn}=ue.useContext($e.D);let Nt=St;typeof St=="undefined"?Nt=an?ze:"":St===!1&&(Nt="");const Te={title:Nt};!cn&&!Pe&&(Te.title=null,Te.open=!1);const Ot=(0,Re.Z)(ze).length;let Sn=ue.createElement(le.ck,Object.assign({},(0,He.Z)(ct,["title","icon","danger"]),{className:xe()({[`${qt}-item-danger`]:Ft,[`${qt}-item-only-child`]:(Qe?Ot+1:Ot)===1},De),title:typeof St=="string"?St:void 0}),(0,Ce.Tm)(Qe,{className:xe()((0,Ce.l$)(Qe)?(_e=Qe.props)===null||_e===void 0?void 0:_e.className:"",`${qt}-item-icon`)}),Ae(Pe));return Nn||(Sn=ue.createElement(Ue.Z,Object.assign({},Te,{placement:pn==="rtl"?"left":"right",overlayClassName:`${qt}-inline-collapsed-tooltip`}),Sn)),Sn},E=ct=>{var _e;const{popupClassName:De,icon:ze,title:Qe,theme:St}=ct,Ft=ue.useContext(a),{prefixCls:qt,inlineCollapsed:an,theme:pn}=Ft,Nn=(0,le.Xl)();let Pe;if(!ze)Pe=an&&!Nn.length&&Qe&&typeof Qe=="string"?ue.createElement("div",{className:`${qt}-inline-collapsed-noicon`},Qe.charAt(0)):ue.createElement("span",{className:`${qt}-title-content`},Qe);else{const cn=(0,Ce.l$)(Qe)&&Qe.type==="span";Pe=ue.createElement(ue.Fragment,null,(0,Ce.Tm)(ze,{className:xe()((0,Ce.l$)(ze)?(_e=ze.props)===null||_e===void 0?void 0:_e.className:"",`${qt}-item-icon`)}),cn?Qe:ue.createElement("span",{className:`${qt}-title-content`},Qe))}const Ae=ue.useMemo(()=>Object.assign(Object.assign({},Ft),{firstLevel:!1}),[Ft]);return ue.createElement(a.Provider,{value:Ae},ue.createElement(le.Wd,Object.assign({},(0,He.Z)(ct,["icon"]),{title:Pe,popupClassName:xe()(qt,De,`${qt}-${St||pn}`)})))},z=te(25877),ee=te(60276),ne=te(33603),de=te(76529),se=function(ct,_e){var De={};for(var ze in ct)Object.prototype.hasOwnProperty.call(ct,ze)&&_e.indexOf(ze)<0&&(De[ze]=ct[ze]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ze=Object.getOwnPropertySymbols(ct);Qe<ze.length;Qe++)_e.indexOf(ze[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ze[Qe])&&(De[ze[Qe]]=ct[ze[Qe]]);return De};function me(ct){return(ct||[]).map((_e,De)=>{if(_e&&typeof _e=="object"){const ze=_e,{label:Qe,children:St,key:Ft,type:qt}=ze,an=se(ze,["label","children","key","type"]),pn=Ft!=null?Ft:`tmp-${De}`;return St||qt==="group"?qt==="group"?ue.createElement(le.BW,Object.assign({key:pn},an,{title:Qe}),me(St)):ue.createElement(E,Object.assign({key:pn},an,{title:Qe}),me(St)):qt==="divider"?ue.createElement(Me,Object.assign({key:pn},an)):ue.createElement(x,Object.assign({key:pn},an),Qe)}return null}).filter(_e=>_e)}function ye(ct){return ue.useMemo(()=>ct&&me(ct),[ct])}var pe=te(84780),Le=te(14747),fe=te(33507),yt=te(67771),rt=te(50438),Vt=te(67968),Ee=te(45503),tt=ct=>{const{componentCls:_e,motionDurationSlow:De,horizontalLineHeight:ze,colorSplit:Qe,lineWidth:St,lineType:Ft,itemPaddingInline:qt}=ct;return{[`${_e}-horizontal`]:{lineHeight:ze,border:0,borderBottom:`${St}px ${Ft} ${Qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${_e}-item, ${_e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:qt},[`> ${_e}-item:hover,
|
|
> ${_e}-item-active,
|
|
> ${_e}-submenu ${_e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${_e}-item, ${_e}-submenu-title`]:{transition:[`border-color ${De}`,`background ${De}`].join(",")},[`${_e}-submenu-arrow`]:{display:"none"}}}},gt=ct=>{let{componentCls:_e,menuArrowOffset:De}=ct;return{[`${_e}-rtl`]:{direction:"rtl"},[`${_e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_e}-rtl${_e}-vertical,
|
|
${_e}-submenu-rtl ${_e}-vertical`]:{[`${_e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${De})`},"&::after":{transform:`rotate(45deg) translateY(${De})`}}}}};const zt=ct=>Object.assign({},(0,Le.oN)(ct));var bn=(ct,_e)=>{const{componentCls:De,itemColor:ze,itemSelectedColor:Qe,groupTitleColor:St,itemBg:Ft,subMenuItemBg:qt,itemSelectedBg:an,activeBarHeight:pn,activeBarWidth:Nn,activeBarBorderWidth:Pe,motionDurationSlow:Ae,motionEaseInOut:cn,motionEaseOut:Nt,itemPaddingInline:Te,motionDurationMid:Ot,itemHoverColor:Sn,lineType:Yt,colorSplit:vn,itemDisabledColor:Ut,dangerItemColor:Jt,dangerItemHoverColor:gn,dangerItemSelectedColor:na,dangerItemActiveBg:Dn,dangerItemSelectedBg:zn,itemHoverBg:fa,itemActiveBg:ia,menuSubMenuBg:mt,horizontalItemSelectedColor:dt,horizontalItemSelectedBg:ft,horizontalItemBorderRadius:mn,horizontalItemHoverBg:Zn,popupBg:ua}=ct;return{[`${De}-${_e}, ${De}-${_e} > ${De}`]:{color:ze,background:Ft,[`&${De}-root:focus-visible`]:Object.assign({},zt(ct)),[`${De}-item-group-title`]:{color:St},[`${De}-submenu-selected`]:{[`> ${De}-submenu-title`]:{color:Qe}},[`${De}-item-disabled, ${De}-submenu-disabled`]:{color:`${Ut} !important`},[`${De}-item:not(${De}-item-selected):not(${De}-submenu-selected)`]:{[`&:hover, > ${De}-submenu-title:hover`]:{color:Sn}},[`&:not(${De}-horizontal)`]:{[`${De}-item:not(${De}-item-selected)`]:{"&:hover":{backgroundColor:fa},"&:active":{backgroundColor:ia}},[`${De}-submenu-title`]:{"&:hover":{backgroundColor:fa},"&:active":{backgroundColor:ia}}},[`${De}-item-danger`]:{color:Jt,[`&${De}-item:hover`]:{[`&:not(${De}-item-selected):not(${De}-submenu-selected)`]:{color:gn}},[`&${De}-item:active`]:{background:Dn}},[`${De}-item a`]:{"&, &:hover":{color:"inherit"}},[`${De}-item-selected`]:{color:Qe,[`&${De}-item-danger`]:{color:na},"a, a:hover":{color:"inherit"}},[`& ${De}-item-selected`]:{backgroundColor:an,[`&${De}-item-danger`]:{backgroundColor:zn}},[`${De}-item, ${De}-submenu-title`]:{[`&:not(${De}-item-disabled):focus-visible`]:Object.assign({},zt(ct))},[`&${De}-submenu > ${De}`]:{backgroundColor:mt},[`&${De}-popup > ${De}`]:{backgroundColor:ua},[`&${De}-horizontal`]:Object.assign(Object.assign({},_e==="dark"?{borderBottom:0}:{}),{[`> ${De}-item, > ${De}-submenu`]:{top:Pe,marginTop:-Pe,marginBottom:0,borderRadius:mn,"&::after":{position:"absolute",insetInline:Te,bottom:0,borderBottom:`${pn}px solid transparent`,transition:`border-color ${Ae} ${cn}`,content:'""'},"&:hover, &-active, &-open":{background:Zn,"&::after":{borderBottomWidth:pn,borderBottomColor:dt}},"&-selected":{color:dt,backgroundColor:ft,"&:hover":{backgroundColor:ft},"&::after":{borderBottomWidth:pn,borderBottomColor:dt}}}}),[`&${De}-root`]:{[`&${De}-inline, &${De}-vertical`]:{borderInlineEnd:`${Pe}px ${Yt} ${vn}`}},[`&${De}-inline`]:{[`${De}-sub${De}-inline`]:{background:qt},[`${De}-item, ${De}-submenu-title`]:Pe&&Nn?{width:`calc(100% + ${Pe}px)`}:{},[`${De}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Nn}px solid ${Qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ot} ${Nt}`,`opacity ${Ot} ${Nt}`].join(","),content:'""'},[`&${De}-item-danger`]:{"&::after":{borderInlineEndColor:na}}},[`${De}-selected, ${De}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ot} ${cn}`,`opacity ${Ot} ${cn}`].join(",")}}}}}};const xn=ct=>{const{componentCls:_e,itemHeight:De,itemMarginInline:ze,padding:Qe,menuArrowSize:St,marginXS:Ft,itemMarginBlock:qt}=ct,an=Qe+St+Ft;return{[`${_e}-item`]:{position:"relative",overflow:"hidden"},[`${_e}-item, ${_e}-submenu-title`]:{height:De,lineHeight:`${De}px`,paddingInline:Qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ze,marginBlock:qt,width:`calc(100% - ${ze*2}px)`},[`> ${_e}-item,
|
|
> ${_e}-submenu > ${_e}-submenu-title`]:{height:De,lineHeight:`${De}px`},[`${_e}-item-group-list ${_e}-submenu-title,
|
|
${_e}-submenu-title`]:{paddingInlineEnd:an}}};var lt=ct=>{const{componentCls:_e,iconCls:De,itemHeight:ze,colorTextLightSolid:Qe,dropdownWidth:St,controlHeightLG:Ft,motionDurationMid:qt,motionEaseOut:an,paddingXL:pn,itemMarginInline:Nn,fontSizeLG:Pe,motionDurationSlow:Ae,paddingXS:cn,boxShadowSecondary:Nt,collapsedWidth:Te,collapsedIconSize:Ot}=ct,Sn={height:ze,lineHeight:`${ze}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_e]:{"&-inline, &-vertical":Object.assign({[`&${_e}-root`]:{boxShadow:"none"}},xn(ct))},[`${_e}-submenu-popup`]:{[`${_e}-vertical`]:Object.assign(Object.assign({},xn(ct)),{boxShadow:Nt})}},{[`${_e}-submenu-popup ${_e}-vertical${_e}-sub`]:{minWidth:St,maxHeight:`calc(100vh - ${Ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${_e}-inline`]:{width:"100%",[`&${_e}-root`]:{[`${_e}-item, ${_e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ae}`,`background ${Ae}`,`padding ${qt} ${an}`].join(","),[`> ${_e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${_e}-sub${_e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${_e}-submenu > ${_e}-submenu-title`]:Sn,[`& ${_e}-item-group-title`]:{paddingInlineStart:pn}},[`${_e}-item`]:Sn}},{[`${_e}-inline-collapsed`]:{width:Te,[`&${_e}-root`]:{[`${_e}-item, ${_e}-submenu ${_e}-submenu-title`]:{[`> ${_e}-inline-collapsed-noicon`]:{fontSize:Pe,textAlign:"center"}}},[`> ${_e}-item,
|
|
> ${_e}-item-group > ${_e}-item-group-list > ${_e}-item,
|
|
> ${_e}-item-group > ${_e}-item-group-list > ${_e}-submenu > ${_e}-submenu-title,
|
|
> ${_e}-submenu > ${_e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Pe/2}px - ${Nn}px)`,textOverflow:"clip",[`
|
|
${_e}-submenu-arrow,
|
|
${_e}-submenu-expand-icon
|
|
`]:{opacity:0},[`${_e}-item-icon, ${De}`]:{margin:0,fontSize:Ot,lineHeight:`${ze}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_e}-item-icon, ${De}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_e}-item-icon, ${De}`]:{display:"none"},"a, a:hover":{color:Qe}},[`${_e}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:cn})}}]};const ht=ct=>{const{componentCls:_e,motionDurationSlow:De,motionDurationMid:ze,motionEaseInOut:Qe,motionEaseOut:St,iconCls:Ft,iconSize:qt,iconMarginInlineEnd:an}=ct;return{[`${_e}-item, ${_e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${De}`,`background ${De}`,`padding ${De} ${Qe}`].join(","),[`${_e}-item-icon, ${Ft}`]:{minWidth:qt,fontSize:qt,transition:[`font-size ${ze} ${St}`,`margin ${De} ${Qe}`,`color ${De}`].join(","),"+ span":{marginInlineStart:an,opacity:1,transition:[`opacity ${De} ${Qe}`,`margin ${De}`,`color ${De}`].join(",")}},[`${_e}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${_e}-item-only-child`]:{[`> ${Ft}, > ${_e}-item-icon`]:{marginInlineEnd:0}}},[`${_e}-item-disabled, ${_e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${_e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tn=ct=>{const{componentCls:_e,motionDurationSlow:De,motionEaseInOut:ze,borderRadius:Qe,menuArrowSize:St,menuArrowOffset:Ft}=ct;return{[`${_e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ct.margin,width:St,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${De} ${ze}, opacity ${De}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:St*.6,height:St*.15,backgroundColor:"currentcolor",borderRadius:Qe,transition:[`background ${De} ${ze}`,`transform ${De} ${ze}`,`top ${De} ${ze}`,`color ${De} ${ze}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ft})`},"&::after":{transform:`rotate(-45deg) translateY(${Ft})`}}}}},Et=ct=>{const{antCls:_e,componentCls:De,fontSize:ze,motionDurationSlow:Qe,motionDurationMid:St,motionEaseInOut:Ft,paddingXS:qt,padding:an,colorSplit:pn,lineWidth:Nn,zIndexPopup:Pe,borderRadiusLG:Ae,subMenuItemBorderRadius:cn,menuArrowSize:Nt,menuArrowOffset:Te,lineType:Ot,menuPanelMaskInset:Sn,groupTitleLineHeight:Yt,groupTitleFontSize:vn}=ct;return[{"":{[`${De}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${De}-submenu-hidden`]:{display:"none"}},{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(ct)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ze,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${De}-item`]:{flex:"none"}},[`${De}-item, ${De}-submenu, ${De}-submenu-title`]:{borderRadius:ct.itemBorderRadius},[`${De}-item-group-title`]:{padding:`${qt}px ${an}px`,fontSize:vn,lineHeight:Yt,transition:`all ${Qe}`},[`&-horizontal ${De}-submenu`]:{transition:[`border-color ${Qe} ${Ft}`,`background ${Qe} ${Ft}`].join(",")},[`${De}-submenu, ${De}-submenu-inline`]:{transition:[`border-color ${Qe} ${Ft}`,`background ${Qe} ${Ft}`,`padding ${St} ${Ft}`].join(",")},[`${De}-submenu ${De}-sub`]:{cursor:"initial",transition:[`background ${Qe} ${Ft}`,`padding ${Qe} ${Ft}`].join(",")},[`${De}-title-content`]:{transition:`color ${Qe}`},[`${De}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${De}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:pn,borderStyle:Ot,borderWidth:0,borderTopWidth:Nn,marginBlock:Nn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ht(ct)),{[`${De}-item-group`]:{[`${De}-item-group-list`]:{margin:0,padding:0,[`${De}-item, ${De}-submenu-title`]:{paddingInline:`${ze*2}px ${an}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Pe,borderRadius:Ae,boxShadow:"none",transformOrigin:"0 0",[`&${De}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Sn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Sn},"\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:ct.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ct.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ct.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ct.paddingXS},[`> ${De}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ae},ht(ct)),tn(ct)),{[`${De}-item, ${De}-submenu > ${De}-submenu-title`]:{borderRadius:cn},[`${De}-submenu-title::after`]:{transition:`transform ${Qe} ${Ft}`}})}}),tn(ct)),{[`&-inline-collapsed ${De}-submenu-arrow,
|
|
&-inline ${De}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Te})`},"&::after":{transform:`rotate(45deg) translateX(-${Te})`}},[`${De}-submenu-open${De}-submenu-inline > ${De}-submenu-title > ${De}-submenu-arrow`]:{transform:`translateY(-${Nt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Te})`},"&::before":{transform:`rotate(45deg) translateX(${Te})`}}})},{[`${_e}-layout-header`]:{[De]:{lineHeight:"inherit"}}}]};var kt=(ct,_e)=>(0,Vt.Z)("Menu",ze=>{if(_e===!1)return[];const{colorBgElevated:Qe,colorPrimary:St,colorTextLightSolid:Ft,controlHeightLG:qt,fontSize:an,darkItemColor:pn,darkDangerItemColor:Nn,darkItemBg:Pe,darkSubMenuItemBg:Ae,darkItemSelectedColor:cn,darkItemSelectedBg:Nt,darkDangerItemSelectedBg:Te,darkItemHoverBg:Ot,darkGroupTitleColor:Sn,darkItemHoverColor:Yt,darkItemDisabledColor:vn,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:gn}=ze,na=an/7*5,Dn=(0,Ee.TS)(ze,{menuArrowSize:na,menuHorizontalHeight:qt*1.15,menuArrowOffset:`${na*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Qe}),zn=(0,Ee.TS)(Dn,{itemColor:pn,itemHoverColor:Yt,groupTitleColor:Sn,itemSelectedColor:cn,itemBg:Pe,popupBg:Pe,subMenuItemBg:Ae,itemActiveBg:"transparent",itemSelectedBg:Nt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ot,itemDisabledColor:vn,dangerItemColor:Nn,dangerItemHoverColor:Ut,dangerItemSelectedColor:Jt,dangerItemActiveBg:gn,dangerItemSelectedBg:Te,menuSubMenuBg:Ae,horizontalItemSelectedColor:Ft,horizontalItemSelectedBg:St});return[Et(Dn),tt(Dn),lt(Dn),bn(Dn,"light"),bn(zn,"dark"),gt(Dn),(0,fe.Z)(Dn),(0,yt.oN)(Dn,"slide-up"),(0,yt.oN)(Dn,"slide-down"),(0,rt._y)(Dn,"zoom-big")]},ze=>{const{colorPrimary:Qe,colorError:St,colorTextDisabled:Ft,colorErrorBg:qt,colorText:an,colorTextDescription:pn,colorBgContainer:Nn,colorFillAlter:Pe,colorFillContent:Ae,lineWidth:cn,lineWidthBold:Nt,controlItemBgActive:Te,colorBgTextHover:Ot,controlHeightLG:Sn,lineHeight:Yt,colorBgElevated:vn,marginXXS:Ut,padding:Jt,fontSize:gn,controlHeightSM:na,fontSizeLG:Dn,colorTextLightSolid:zn,colorErrorHover:fa}=ze,ia=new pe.C(zn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ze.zIndexPopupBase+50,radiusItem:ze.borderRadiusLG,itemBorderRadius:ze.borderRadiusLG,radiusSubMenuItem:ze.borderRadiusSM,subMenuItemBorderRadius:ze.borderRadiusSM,colorItemText:an,itemColor:an,colorItemTextHover:an,itemHoverColor:an,colorItemTextHoverHorizontal:Qe,horizontalItemHoverColor:Qe,colorGroupTitle:pn,groupTitleColor:pn,colorItemTextSelected:Qe,itemSelectedColor:Qe,colorItemTextSelectedHorizontal:Qe,horizontalItemSelectedColor:Qe,colorItemBg:Nn,itemBg:Nn,colorItemBgHover:Ot,itemHoverBg:Ot,colorItemBgActive:Ae,itemActiveBg:Te,colorSubItemBg:Pe,subMenuItemBg:Pe,colorItemBgSelected:Te,itemSelectedBg:Te,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Nt,activeBarHeight:Nt,colorActiveBarBorderSize:cn,activeBarBorderWidth:cn,colorItemTextDisabled:Ft,itemDisabledColor:Ft,colorDangerItemText:St,dangerItemColor:St,colorDangerItemTextHover:St,dangerItemHoverColor:St,colorDangerItemTextSelected:St,dangerItemSelectedColor:St,colorDangerItemBgActive:qt,dangerItemActiveBg:qt,colorDangerItemBgSelected:qt,dangerItemSelectedBg:qt,itemMarginInline:ze.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Sn,groupTitleLineHeight:Yt,collapsedWidth:Sn*2,popupBg:vn,itemMarginBlock:Ut,itemPaddingInline:Jt,horizontalLineHeight:`${Sn*1.15}px`,iconSize:gn,iconMarginInlineEnd:na-gn,collapsedIconSize:Dn,groupTitleFontSize:gn,darkItemDisabledColor:new pe.C(zn).setAlpha(.25).toRgbString(),darkItemColor:ia,darkDangerItemColor:St,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zn,darkItemSelectedBg:Qe,darkDangerItemSelectedBg:St,darkItemHoverBg:"transparent",darkGroupTitleColor:ia,darkItemHoverColor:zn,darkDangerItemHoverColor:fa,darkDangerItemSelectedColor:zn,darkDangerItemActiveBg:St}},{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"]]})(ct),be=function(ct,_e){var De={};for(var ze in ct)Object.prototype.hasOwnProperty.call(ct,ze)&&_e.indexOf(ze)<0&&(De[ze]=ct[ze]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ze=Object.getOwnPropertySymbols(ct);Qe<ze.length;Qe++)_e.indexOf(ze[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ze[Qe])&&(De[ze[Qe]]=ct[ze[Qe]]);return De},en=(0,ue.forwardRef)((ct,_e)=>{var De,ze;const Qe=ue.useContext(de.Z),St=Qe||{},{getPrefixCls:Ft,getPopupContainer:qt,direction:an,menu:pn}=ue.useContext(Fe.E_),Nn=Ft(),{prefixCls:Pe,className:Ae,style:cn,theme:Nt="light",expandIcon:Te,_internalDisableMenuItemTitleTooltip:Ot,inlineCollapsed:Sn,siderCollapsed:Yt,items:vn,children:Ut,rootClassName:Jt,mode:gn,selectable:na,onClick:Dn,overflowedIndicatorPopupClassName:zn}=ct,fa=be(ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ia=(0,He.Z)(fa,["collapsedWidth"]),mt=ye(vn)||Ut;(De=St.validator)===null||De===void 0||De.call(St,{mode:gn});const dt=(0,ee.useEvent)(function(){var ta;Dn==null||Dn.apply(void 0,arguments),(ta=St.onClick)===null||ta===void 0||ta.call(St)}),ft=St.mode||gn,mn=na!=null?na:St.selectable,Zn=ue.useMemo(()=>Yt!==void 0?Yt:Sn,[Sn,Yt]),ua={horizontal:{motionName:`${Nn}-slide-up`},inline:(0,ne.Z)(Nn),other:{motionName:`${Nn}-zoom-big`}},Hn=Ft("menu",Pe||St.prefixCls),[aa,on]=kt(Hn,!Qe),oa=xe()(`${Hn}-${Nt}`,pn==null?void 0:pn.className,Ae);let Ra;if(typeof Te=="function")Ra=Te;else if(Te===null||Te===!1)Ra=null;else if(St.expandIcon===null||St.expandIcon===!1)Ra=null;else{const ta=Te!=null?Te:St.expandIcon;Ra=(0,Ce.Tm)(ta,{className:xe()(`${Hn}-submenu-expand-icon`,(0,Ce.l$)(ta)?(ze=ta.props)===null||ze===void 0?void 0:ze.className:"")})}const la=ue.useMemo(()=>({prefixCls:Hn,inlineCollapsed:Zn||!1,direction:an,firstLevel:!0,theme:Nt,mode:ft,disableMenuItemTitleTooltip:Ot}),[Hn,Zn,an,Ot,Nt]);return aa(ue.createElement(de.Z.Provider,{value:null},ue.createElement(a.Provider,{value:la},ue.createElement(le.ZP,Object.assign({getPopupContainer:qt,overflowedIndicator:ue.createElement(z.Z,null),overflowedIndicatorPopupClassName:xe()(Hn,`${Hn}-${Nt}`,zn),mode:ft,selectable:mn,onClick:dt},ia,{inlineCollapsed:Zn,style:Object.assign(Object.assign({},pn==null?void 0:pn.style),cn),className:oa,prefixCls:Hn,direction:an,defaultMotions:ua,expandIcon:Ra,ref:_e,rootClassName:xe()(Jt,on)}),mt))))});const $n=(0,ue.forwardRef)((ct,_e)=>{const De=(0,ue.useRef)(null),ze=ue.useContext($e.D);return(0,ue.useImperativeHandle)(_e,()=>({menu:De.current,focus:Qe=>{var St;(St=De.current)===null||St===void 0||St.focus(Qe)}})),ue.createElement(en,Object.assign({ref:De},ct,ze))});$n.Item=x,$n.SubMenu=E,$n.Divider=Me,$n.ItemGroup=le.BW;var jt=$n},28452:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return Nn}});var le=te(87462),ue=te(67294),$e={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"},Ie=$e,xe=te(74643),Fe=function(Ae,cn){return ue.createElement(xe.Z,(0,le.Z)({},Ae,{ref:cn,icon:Ie}))},re=ue.forwardRef(Fe),Ye=te(81893),Me=te(22751),Re=te(91034),He=te(94184),Ue=te.n(He),Ce=te(4942),ie=te(1413),a=te(15671),y=te(43144),x=te(60136),b=te(51630),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ee="".concat(E," ").concat(z).split(/[\s\n]+/),ne="aria-",de="data-";function se(Pe,Ae){return Pe.indexOf(Ae)===0}function me(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn;Ae===!1?cn={aria:!0,data:!0,attr:!0}:Ae===!0?cn={aria:!0}:cn=(0,ie.Z)({},Ae);var Nt={};return Object.keys(Pe).forEach(function(Te){(cn.aria&&(Te==="role"||se(Te,ne))||cn.data&&se(Te,de)||cn.attr&&ee.includes(Te))&&(Nt[Te]=Pe[Te])}),Nt}var ye={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},pe=ye,Le=te(81626),fe=function(Pe){(0,x.Z)(cn,Pe);var Ae=(0,b.Z)(cn);function cn(){var Nt;(0,a.Z)(this,cn);for(var Te=arguments.length,Ot=new Array(Te),Sn=0;Sn<Te;Sn++)Ot[Sn]=arguments[Sn];return Nt=Ae.call.apply(Ae,[this].concat(Ot)),Nt.state={goInputText:""},Nt.getValidValue=function(){var Yt=Nt.state.goInputText;return!Yt||Number.isNaN(Yt)?void 0:Number(Yt)},Nt.buildOptionText=function(Yt){return"".concat(Yt," ").concat(Nt.props.locale.items_per_page)},Nt.changeSize=function(Yt){Nt.props.changeSize(Number(Yt))},Nt.handleChange=function(Yt){Nt.setState({goInputText:Yt.target.value})},Nt.handleBlur=function(Yt){var vn=Nt.props,Ut=vn.goButton,Jt=vn.quickGo,gn=vn.rootPrefixCls,na=Nt.state.goInputText;Ut||na===""||(Nt.setState({goInputText:""}),!(Yt.relatedTarget&&(Yt.relatedTarget.className.indexOf("".concat(gn,"-item-link"))>=0||Yt.relatedTarget.className.indexOf("".concat(gn,"-item"))>=0))&&Jt(Nt.getValidValue()))},Nt.go=function(Yt){var vn=Nt.state.goInputText;vn!==""&&(Yt.keyCode===pe.ENTER||Yt.type==="click")&&(Nt.setState({goInputText:""}),Nt.props.quickGo(Nt.getValidValue()))},Nt}return(0,y.Z)(cn,[{key:"getPageSizeOptions",value:function(){var Te=this.props,Ot=Te.pageSize,Sn=Te.pageSizeOptions;return Sn.some(function(Yt){return Yt.toString()===Ot.toString()})?Sn:Sn.concat([Ot.toString()]).sort(function(Yt,vn){var Ut=Number.isNaN(Number(Yt))?0:Number(Yt),Jt=Number.isNaN(Number(vn))?0:Number(vn);return Ut-Jt})}},{key:"render",value:function(){var Te=this,Ot=this.props,Sn=Ot.pageSize,Yt=Ot.locale,vn=Ot.rootPrefixCls,Ut=Ot.changeSize,Jt=Ot.quickGo,gn=Ot.goButton,na=Ot.selectComponentClass,Dn=Ot.buildOptionText,zn=Ot.selectPrefixCls,fa=Ot.disabled,ia=this.state.goInputText,mt="".concat(vn,"-options"),dt=na,ft=null,mn=null,Zn=null;if(!Ut&&!Jt)return null;var ua=this.getPageSizeOptions();if(Ut&&dt){var Hn=ua.map(function(aa,on){return ue.createElement(dt.Option,{key:on,value:aa.toString()},(Dn||Te.buildOptionText)(aa))});ft=ue.createElement(dt,{disabled:fa,prefixCls:zn,showSearch:!1,className:"".concat(mt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Sn||ua[0]).toString(),onChange:this.changeSize,getPopupContainer:function(on){return on.parentNode},"aria-label":Yt.page_size,defaultOpen:!1},Hn)}return Jt&&(gn&&(Zn=typeof gn=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fa,className:"".concat(mt,"-quick-jumper-button")},Yt.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},gn)),mn=ue.createElement("div",{className:"".concat(mt,"-quick-jumper")},Yt.jump_to,ue.createElement("input",{disabled:fa,type:"text",value:ia,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Yt.page}),Yt.page,Zn)),ue.createElement("li",{className:"".concat(mt)},ft,mn)}}]),cn}(ue.Component);fe.defaultProps={pageSizeOptions:["10","20","50","100"]};var yt=fe,rt=function(Ae){var cn,Nt=Ae.rootPrefixCls,Te=Ae.page,Ot=Ae.active,Sn=Ae.className,Yt=Ae.showTitle,vn=Ae.onClick,Ut=Ae.onKeyPress,Jt=Ae.itemRender,gn="".concat(Nt,"-item"),na=Ue()(gn,"".concat(gn,"-").concat(Te),(cn={},(0,Ce.Z)(cn,"".concat(gn,"-active"),Ot),(0,Ce.Z)(cn,"".concat(gn,"-disabled"),!Te),(0,Ce.Z)(cn,Ae.className,Sn),cn)),Dn=function(){vn(Te)},zn=function(mt){Ut(mt,vn,Te)},fa=Jt(Te,"page",ue.createElement("a",{rel:"nofollow"},Te));return fa?ue.createElement("li",{title:Yt?Te.toString():null,className:na,onClick:Dn,onKeyPress:zn,tabIndex:0},fa):null},Vt=rt;function Ee(){}function Ge(Pe){var Ae=Number(Pe);return typeof Ae=="number"&&!Number.isNaN(Ae)&&isFinite(Ae)&&Math.floor(Ae)===Ae}var tt=function(Ae,cn,Nt){return Nt};function nt(Pe,Ae,cn){var Nt=typeof Pe=="undefined"?Ae.pageSize:Pe;return Math.floor((cn.total-1)/Nt)+1}var gt=function(Pe){(0,x.Z)(cn,Pe);var Ae=(0,b.Z)(cn);function cn(Nt){var Te;(0,a.Z)(this,cn),Te=Ae.call(this,Nt),Te.paginationNode=ue.createRef(),Te.getJumpPrevPage=function(){return Math.max(1,Te.state.current-(Te.props.showLessItems?3:5))},Te.getJumpNextPage=function(){return Math.min(nt(void 0,Te.state,Te.props),Te.state.current+(Te.props.showLessItems?3:5))},Te.getItemIcon=function(Ut,Jt){var gn=Te.props.prefixCls,na=Ut||ue.createElement("button",{type:"button","aria-label":Jt,className:"".concat(gn,"-item-link")});return typeof Ut=="function"&&(na=ue.createElement(Ut,(0,ie.Z)({},Te.props))),na},Te.isValid=function(Ut){var Jt=Te.props.total;return Ge(Ut)&&Ut!==Te.state.current&&Ge(Jt)&&Jt>0},Te.shouldDisplayQuickJumper=function(){var Ut=Te.props,Jt=Ut.showQuickJumper,gn=Ut.total,na=Te.state.pageSize;return gn<=na?!1:Jt},Te.handleKeyDown=function(Ut){(Ut.keyCode===pe.ARROW_UP||Ut.keyCode===pe.ARROW_DOWN)&&Ut.preventDefault()},Te.handleKeyUp=function(Ut){var Jt=Te.getValidValue(Ut),gn=Te.state.currentInputValue;Jt!==gn&&Te.setState({currentInputValue:Jt}),Ut.keyCode===pe.ENTER?Te.handleChange(Jt):Ut.keyCode===pe.ARROW_UP?Te.handleChange(Jt-1):Ut.keyCode===pe.ARROW_DOWN&&Te.handleChange(Jt+1)},Te.handleBlur=function(Ut){var Jt=Te.getValidValue(Ut);Te.handleChange(Jt)},Te.changePageSize=function(Ut){var Jt=Te.state.current,gn=nt(Ut,Te.state,Te.props);Jt=Jt>gn?gn:Jt,gn===0&&(Jt=Te.state.current),typeof Ut=="number"&&("pageSize"in Te.props||Te.setState({pageSize:Ut}),"current"in Te.props||Te.setState({current:Jt,currentInputValue:Jt})),Te.props.onShowSizeChange(Jt,Ut),"onChange"in Te.props&&Te.props.onChange&&Te.props.onChange(Jt,Ut)},Te.handleChange=function(Ut){var Jt=Te.props,gn=Jt.disabled,na=Jt.onChange,Dn=Te.state,zn=Dn.pageSize,fa=Dn.current,ia=Dn.currentInputValue;if(Te.isValid(Ut)&&!gn){var mt=nt(void 0,Te.state,Te.props),dt=Ut;return Ut>mt?dt=mt:Ut<1&&(dt=1),"current"in Te.props||Te.setState({current:dt}),dt!==ia&&Te.setState({currentInputValue:dt}),na(dt,zn),dt}return fa},Te.prev=function(){Te.hasPrev()&&Te.handleChange(Te.state.current-1)},Te.next=function(){Te.hasNext()&&Te.handleChange(Te.state.current+1)},Te.jumpPrev=function(){Te.handleChange(Te.getJumpPrevPage())},Te.jumpNext=function(){Te.handleChange(Te.getJumpNextPage())},Te.hasPrev=function(){return Te.state.current>1},Te.hasNext=function(){return Te.state.current<nt(void 0,Te.state,Te.props)},Te.runIfEnter=function(Ut,Jt){if(Ut.key==="Enter"||Ut.charCode===13){for(var gn=arguments.length,na=new Array(gn>2?gn-2:0),Dn=2;Dn<gn;Dn++)na[Dn-2]=arguments[Dn];Jt.apply(void 0,na)}},Te.runIfEnterPrev=function(Ut){Te.runIfEnter(Ut,Te.prev)},Te.runIfEnterNext=function(Ut){Te.runIfEnter(Ut,Te.next)},Te.runIfEnterJumpPrev=function(Ut){Te.runIfEnter(Ut,Te.jumpPrev)},Te.runIfEnterJumpNext=function(Ut){Te.runIfEnter(Ut,Te.jumpNext)},Te.handleGoTO=function(Ut){(Ut.keyCode===pe.ENTER||Ut.type==="click")&&Te.handleChange(Te.state.currentInputValue)},Te.renderPrev=function(Ut){var Jt=Te.props,gn=Jt.prevIcon,na=Jt.itemRender,Dn=na(Ut,"prev",Te.getItemIcon(gn,"prev page")),zn=!Te.hasPrev();return(0,ue.isValidElement)(Dn)?(0,ue.cloneElement)(Dn,{disabled:zn}):Dn},Te.renderNext=function(Ut){var Jt=Te.props,gn=Jt.nextIcon,na=Jt.itemRender,Dn=na(Ut,"next",Te.getItemIcon(gn,"next page")),zn=!Te.hasNext();return(0,ue.isValidElement)(Dn)?(0,ue.cloneElement)(Dn,{disabled:zn}):Dn};var Ot=Nt.onChange!==Ee,Sn="current"in Nt;Sn&&!Ot&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Yt=Nt.defaultCurrent;"current"in Nt&&(Yt=Nt.current);var vn=Nt.defaultPageSize;return"pageSize"in Nt&&(vn=Nt.pageSize),Yt=Math.min(Yt,nt(vn,void 0,Nt)),Te.state={current:Yt,currentInputValue:Yt,pageSize:vn},Te}return(0,y.Z)(cn,[{key:"componentDidUpdate",value:function(Te,Ot){var Sn=this.props.prefixCls;if(Ot.current!==this.state.current&&this.paginationNode.current){var Yt=this.paginationNode.current.querySelector(".".concat(Sn,"-item-").concat(Ot.current));if(Yt&&document.activeElement===Yt){var vn;Yt==null||(vn=Yt.blur)===null||vn===void 0||vn.call(Yt)}}}},{key:"getValidValue",value:function(Te){var Ot=Te.target.value,Sn=nt(void 0,this.state,this.props),Yt=this.state.currentInputValue,vn;return Ot===""?vn=Ot:Number.isNaN(Number(Ot))?vn=Yt:Ot>=Sn?vn=Sn:vn=Number(Ot),vn}},{key:"getShowSizeChanger",value:function(){var Te=this.props,Ot=Te.showSizeChanger,Sn=Te.total,Yt=Te.totalBoundaryShowSizeChanger;return typeof Ot!="undefined"?Ot:Sn>Yt}},{key:"render",value:function(){var Te=this.props,Ot=Te.prefixCls,Sn=Te.className,Yt=Te.style,vn=Te.disabled,Ut=Te.hideOnSinglePage,Jt=Te.total,gn=Te.locale,na=Te.showQuickJumper,Dn=Te.showLessItems,zn=Te.showTitle,fa=Te.showTotal,ia=Te.simple,mt=Te.itemRender,dt=Te.showPrevNextJumpers,ft=Te.jumpPrevIcon,mn=Te.jumpNextIcon,Zn=Te.selectComponentClass,ua=Te.selectPrefixCls,Hn=Te.pageSizeOptions,aa=this.state,on=aa.current,oa=aa.pageSize,Ra=aa.currentInputValue;if(Ut===!0&&Jt<=oa)return null;var la=nt(void 0,this.state,this.props),ta=[],Aa=null,ho=null,ha=null,Oe=null,Ze=null,Ke=na&&na.goButton,$t=Dn?1:2,Pn=on-1>0?on-1:0,En=on+1<la?on+1:la,Ea=me(this.props,{aria:!0,data:!0}),ra=fa&&ue.createElement("li",{className:"".concat(Ot,"-total-text")},fa(Jt,[Jt===0?0:(on-1)*oa+1,on*oa>Jt?Jt:on*oa]));if(ia){Ke&&(typeof Ke=="boolean"?Ze=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},gn.jump_to_confirm):Ze=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ke),Ze=ue.createElement("li",{title:zn?"".concat(gn.jump_to).concat(on,"/").concat(la):null,className:"".concat(Ot,"-simple-pager")},Ze));var Fn=this.renderPrev(Pn);return ue.createElement("ul",(0,le.Z)({className:Ue()(Ot,"".concat(Ot,"-simple"),(0,Ce.Z)({},"".concat(Ot,"-disabled"),vn),Sn),style:Yt,ref:this.paginationNode},Ea),ra,Fn?ue.createElement("li",{title:zn?gn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ue()("".concat(Ot,"-prev"),(0,Ce.Z)({},"".concat(Ot,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Fn):null,ue.createElement("li",{title:zn?"".concat(on,"/").concat(la):null,className:"".concat(Ot,"-simple-pager")},ue.createElement("input",{type:"text",value:Ra,disabled:vn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(Ot,"-slash")},"/"),la),ue.createElement("li",{title:zn?gn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ue()("".concat(Ot,"-next"),(0,Ce.Z)({},"".concat(Ot,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(En)),Ze)}if(la<=3+$t*2){var ma={locale:gn,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:zn,itemRender:mt};la||ta.push(ue.createElement(Vt,(0,le.Z)({},ma,{key:"noPager",page:1,className:"".concat(Ot,"-item-disabled")})));for(var Ha=1;Ha<=la;Ha+=1){var At=on===Ha;ta.push(ue.createElement(Vt,(0,le.Z)({},ma,{key:Ha,page:Ha,active:At})))}}else{var sa=Dn?gn.prev_3:gn.prev_5,lo=Dn?gn.next_3:gn.next_5,Po=mt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ft,"prev page")),Ja=mt(this.getJumpNextPage(),"jump-next",this.getItemIcon(mn,"next page"));dt&&(Aa=Po?ue.createElement("li",{title:zn?sa:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ue()("".concat(Ot,"-jump-prev"),(0,Ce.Z)({},"".concat(Ot,"-jump-prev-custom-icon"),!!ft))},Po):null,ho=Ja?ue.createElement("li",{title:zn?lo:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ue()("".concat(Ot,"-jump-next"),(0,Ce.Z)({},"".concat(Ot,"-jump-next-custom-icon"),!!mn))},Ja):null),Oe=ue.createElement(Vt,{locale:gn,last:!0,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:la,page:la,active:!1,showTitle:zn,itemRender:mt}),ha=ue.createElement(Vt,{locale:gn,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:zn,itemRender:mt});var za=Math.max(1,on-$t),$o=Math.min(on+$t,la);on-1<=$t&&($o=1+$t*2),la-on<=$t&&(za=la-$t*2);for(var Sa=za;Sa<=$o;Sa+=1){var Ko=on===Sa;ta.push(ue.createElement(Vt,{locale:gn,rootPrefixCls:Ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Sa,page:Sa,active:Ko,showTitle:zn,itemRender:mt}))}on-1>=$t*2&&on!==3&&(ta[0]=(0,ue.cloneElement)(ta[0],{className:"".concat(Ot,"-item-after-jump-prev")}),ta.unshift(Aa)),la-on>=$t*2&&on!==la-2&&(ta[ta.length-1]=(0,ue.cloneElement)(ta[ta.length-1],{className:"".concat(Ot,"-item-before-jump-next")}),ta.push(ho)),za!==1&&ta.unshift(ha),$o!==la&&ta.push(Oe)}var xo=!this.hasPrev()||!la,To=!this.hasNext()||!la,to=this.renderPrev(Pn),Vo=this.renderNext(En);return ue.createElement("ul",(0,le.Z)({className:Ue()(Ot,Sn,(0,Ce.Z)({},"".concat(Ot,"-disabled"),vn)),style:Yt,ref:this.paginationNode},Ea),ra,to?ue.createElement("li",{title:zn?gn.prev_page:null,onClick:this.prev,tabIndex:xo?null:0,onKeyPress:this.runIfEnterPrev,className:Ue()("".concat(Ot,"-prev"),(0,Ce.Z)({},"".concat(Ot,"-disabled"),xo)),"aria-disabled":xo},to):null,ta,Vo?ue.createElement("li",{title:zn?gn.next_page:null,onClick:this.next,tabIndex:To?null:0,onKeyPress:this.runIfEnterNext,className:Ue()("".concat(Ot,"-next"),(0,Ce.Z)({},"".concat(Ot,"-disabled"),To)),"aria-disabled":To},Vo):null,ue.createElement(yt,{disabled:vn,locale:gn,rootPrefixCls:Ot,selectComponentClass:Zn,selectPrefixCls:ua,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:on,pageSize:oa,pageSizeOptions:Hn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ke}))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ot){var Sn={};if("current"in Te&&(Sn.current=Te.current,Te.current!==Ot.current&&(Sn.currentInputValue=Sn.current)),"pageSize"in Te&&Te.pageSize!==Ot.pageSize){var Yt=Ot.current,vn=nt(Te.pageSize,Ot,Te);Yt=Yt>vn?vn:Yt,"current"in Te||(Sn.current=Yt,Sn.currentInputValue=Yt),Sn.pageSize=Te.pageSize}return Sn}}]),cn}(ue.Component);gt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ee,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ee,locale:Le.Z,style:{},itemRender:tt,totalBoundaryShowSizeChanger:50};var zt=gt,Kt=te(62906),bn=te(53124),xn=te(98675),ke=te(25378),lt=te(10110),ht=te(11713);const tn=Pe=>ue.createElement(ht.default,Object.assign({},Pe,{showSearch:!0,size:"small"})),Et=Pe=>ue.createElement(ht.default,Object.assign({},Pe,{showSearch:!0,size:"middle"}));tn.Option=ht.default.Option,Et.Option=ht.default.Option;var kt=te(47673),be=te(14747),Bt=te(67968),en=te(45503);const $n=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ae}-item-link`]:{color:Pe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ae}-item-link`]:{color:Pe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`${Ae}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Pe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Pe.colorBorder,backgroundColor:Pe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Pe.itemActiveBgDisabled},a:{color:Pe.itemActiveColorDisabled}}},[`${Ae}-item-link`]:{color:Pe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ae}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ae}-simple-pager`]:{color:Pe.colorTextDisabled},[`${Ae}-jump-prev, ${Ae}-jump-next`]:{[`${Ae}-item-link-icon`]:{opacity:0},[`${Ae}-item-ellipsis`]:{opacity:1}}},[`&${Ae}-simple`]:{[`${Ae}-prev, ${Ae}-next`]:{[`&${Ae}-disabled ${Ae}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},jt=Pe=>{const{componentCls:Ae}=Pe;return{[`&${Ae}-mini ${Ae}-total-text, &${Ae}-mini ${Ae}-simple-pager`]:{height:Pe.itemSizeSM,lineHeight:`${Pe.itemSizeSM}px`},[`&${Ae}-mini ${Ae}-item`]:{minWidth:Pe.itemSizeSM,height:Pe.itemSizeSM,margin:0,lineHeight:`${Pe.itemSizeSM-2}px`},[`&${Ae}-mini:not(${Ae}-disabled) ${Ae}-item:not(${Ae}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Pe.colorBgTextHover},"&:active":{backgroundColor:Pe.colorBgTextActive}},[`&${Ae}-mini ${Ae}-prev, &${Ae}-mini ${Ae}-next`]:{minWidth:Pe.itemSizeSM,height:Pe.itemSizeSM,margin:0,lineHeight:`${Pe.itemSizeSM}px`},[`&${Ae}-mini:not(${Ae}-disabled)`]:{[`${Ae}-prev, ${Ae}-next`]:{[`&:hover ${Ae}-item-link`]:{backgroundColor:Pe.colorBgTextHover},[`&:active ${Ae}-item-link`]:{backgroundColor:Pe.colorBgTextActive},[`&${Ae}-disabled:hover ${Ae}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${Ae}-mini ${Ae}-prev ${Ae}-item-link,
|
|
&${Ae}-mini ${Ae}-next ${Ae}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Pe.itemSizeSM,lineHeight:`${Pe.itemSizeSM}px`}},[`&${Ae}-mini ${Ae}-jump-prev, &${Ae}-mini ${Ae}-jump-next`]:{height:Pe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Pe.itemSizeSM}px`},[`&${Ae}-mini ${Ae}-options`]:{marginInlineStart:Pe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Pe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Pe.itemSizeSM,lineHeight:`${Pe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,kt.x0)(Pe)),{width:Pe.paginationMiniQuickJumperInputWidth,height:Pe.controlHeightSM})}}}},ct=Pe=>{const{componentCls:Ae}=Pe;return{[`
|
|
&${Ae}-simple ${Ae}-prev,
|
|
&${Ae}-simple ${Ae}-next
|
|
`]:{height:Pe.itemSizeSM,lineHeight:`${Pe.itemSizeSM}px`,verticalAlign:"top",[`${Ae}-item-link`]:{height:Pe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Pe.colorBgTextHover},"&:active":{backgroundColor:Pe.colorBgTextActive},"&::after":{height:Pe.itemSizeSM,lineHeight:`${Pe.itemSizeSM}px`}}},[`&${Ae}-simple ${Ae}-simple-pager`]:{display:"inline-block",height:Pe.itemSizeSM,marginInlineEnd:Pe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Pe.marginXS,padding:`0 ${Pe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Pe.itemInputBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadius,outline:"none",transition:`border-color ${Pe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Pe.colorPrimary},"&:focus":{borderColor:Pe.colorPrimaryHover,boxShadow:`${Pe.inputOutlineOffset}px 0 ${Pe.controlOutlineWidth}px ${Pe.controlOutline}`},"&[disabled]":{color:Pe.colorTextDisabled,backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,cursor:"not-allowed"}}}}},_e=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}-jump-prev, ${Ae}-jump-next`]:{outline:0,[`${Ae}-item-container`]:{position:"relative",[`${Ae}-item-link-icon`]:{color:Pe.colorPrimary,fontSize:Pe.fontSizeSM,opacity:0,transition:`all ${Pe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ae}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Pe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Pe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Pe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Pe.motionDurationMid}`}},"&:hover":{[`${Ae}-item-link-icon`]:{opacity:1},[`${Ae}-item-ellipsis`]:{opacity:0}}},[`
|
|
${Ae}-prev,
|
|
${Ae}-jump-prev,
|
|
${Ae}-jump-next
|
|
`]:{marginInlineEnd:Pe.marginXS},[`
|
|
${Ae}-prev,
|
|
${Ae}-next,
|
|
${Ae}-jump-prev,
|
|
${Ae}-jump-next
|
|
`]:{display:"inline-block",minWidth:Pe.itemSize,height:Pe.itemSize,color:Pe.colorText,fontFamily:Pe.fontFamily,lineHeight:`${Pe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Pe.borderRadius,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`},[`${Ae}-prev, ${Ae}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Pe.colorText,cursor:"pointer",userSelect:"none"},[`${Ae}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Pe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Pe.lineWidth}px ${Pe.lineType} transparent`,borderRadius:Pe.borderRadius,outline:"none",transition:`all ${Pe.motionDurationMid}`},[`&:hover ${Ae}-item-link`]:{backgroundColor:Pe.colorBgTextHover},[`&:active ${Ae}-item-link`]:{backgroundColor:Pe.colorBgTextActive},[`&${Ae}-disabled:hover`]:{[`${Ae}-item-link`]:{backgroundColor:"transparent"}}},[`${Ae}-slash`]:{marginInlineEnd:Pe.paginationSlashMarginInlineEnd,marginInlineStart:Pe.paginationSlashMarginInlineStart},[`${Ae}-options`]:{display:"inline-block",marginInlineStart:Pe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Pe.controlHeight,marginInlineStart:Pe.marginXS,lineHeight:`${Pe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,kt.ik)(Pe)),{width:Pe.controlHeightLG*1.25,height:Pe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Pe.marginXS,marginInlineEnd:Pe.marginXS})}}}},De=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}-item`]:{display:"inline-block",minWidth:Pe.itemSize,height:Pe.itemSize,marginInlineEnd:Pe.marginXS,fontFamily:Pe.fontFamily,lineHeight:`${Pe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Pe.lineWidth}px ${Pe.lineType} transparent`,borderRadius:Pe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Pe.paginationItemPaddingInline}px`,color:Pe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ae}-item-active)`]:{"&:hover":{transition:`all ${Pe.motionDurationMid}`,backgroundColor:Pe.colorBgTextHover},"&:active":{backgroundColor:Pe.colorBgTextActive}},"&-active":{fontWeight:Pe.fontWeightStrong,backgroundColor:Pe.itemActiveBg,borderColor:Pe.colorPrimary,a:{color:Pe.colorPrimary},"&:hover":{borderColor:Pe.colorPrimaryHover},"&:hover a":{color:Pe.colorPrimaryHover}}}}},ze=Pe=>{const{componentCls:Ae}=Pe;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(Pe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ae}-total-text`]:{display:"inline-block",height:Pe.itemSize,marginInlineEnd:Pe.marginXS,lineHeight:`${Pe.itemSize-2}px`,verticalAlign:"middle"}}),De(Pe)),_e(Pe)),ct(Pe)),jt(Pe)),$n(Pe)),{[`@media only screen and (max-width: ${Pe.screenLG}px)`]:{[`${Ae}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Pe.screenSM}px)`]:{[`${Ae}-options`]:{display:"none"}}}),[`&${Pe.componentCls}-rtl`]:{direction:"rtl"}}},Qe=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}${Ae}-disabled:not(${Ae}-mini)`]:{"&, &:hover":{[`${Ae}-item-link`]:{borderColor:Pe.colorBorder}},"&:focus-visible":{[`${Ae}-item-link`]:{borderColor:Pe.colorBorder}},[`${Ae}-item, ${Ae}-item-link`]:{backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,[`&:hover:not(${Ae}-item-active)`]:{backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,a:{color:Pe.colorTextDisabled}},[`&${Ae}-item-active`]:{backgroundColor:Pe.itemActiveBgDisabled}},[`${Ae}-prev, ${Ae}-next`]:{"&:hover button":{backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,color:Pe.colorTextDisabled},[`${Ae}-item-link`]:{backgroundColor:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder}}},[`${Ae}:not(${Ae}-mini)`]:{[`${Ae}-prev, ${Ae}-next`]:{"&:hover button":{borderColor:Pe.colorPrimaryHover,backgroundColor:Pe.itemBg},[`${Ae}-item-link`]:{backgroundColor:Pe.itemLinkBg,borderColor:Pe.colorBorder},[`&:hover ${Ae}-item-link`]:{borderColor:Pe.colorPrimary,backgroundColor:Pe.itemBg,color:Pe.colorPrimary},[`&${Ae}-disabled`]:{[`${Ae}-item-link`]:{borderColor:Pe.colorBorder,color:Pe.colorTextDisabled}}},[`${Ae}-item`]:{backgroundColor:Pe.itemBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,[`&:hover:not(${Ae}-item-active)`]:{borderColor:Pe.colorPrimary,backgroundColor:Pe.itemBg,a:{color:Pe.colorPrimary}},"&-active":{borderColor:Pe.colorPrimary}}}}},St=Pe=>{const{componentCls:Ae}=Pe;return{[`${Ae}:not(${Ae}-disabled)`]:{[`${Ae}-item`]:Object.assign({},(0,be.Qy)(Pe)),[`${Ae}-jump-prev, ${Ae}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ae}-item-link-icon`]:{opacity:1},[`${Ae}-item-ellipsis`]:{opacity:0}},(0,be.oN)(Pe))},[`${Ae}-prev, ${Ae}-next`]:{[`&:focus-visible ${Ae}-item-link`]:Object.assign({},(0,be.oN)(Pe))}}}};var Ft=(0,Bt.Z)("Pagination",Pe=>{const Ae=(0,en.TS)(Pe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Pe.marginXXS/2,paginationMiniQuickJumperInputWidth:Pe.controlHeightLG*1.1,paginationItemPaddingInline:Pe.marginXXS*1.5,paginationEllipsisLetterSpacing:Pe.marginXXS/2,paginationSlashMarginInlineStart:Pe.marginXXS,paginationSlashMarginInlineEnd:Pe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,kt.e5)(Pe),(0,kt.TM)(Pe));return[ze(Ae),St(Ae),Pe.wireframe&&Qe(Ae)]},Pe=>({itemBg:Pe.colorBgContainer,itemSize:Pe.controlHeight,itemSizeSM:Pe.controlHeightSM,itemActiveBg:Pe.colorBgContainer,itemLinkBg:Pe.colorBgContainer,itemActiveColorDisabled:Pe.colorTextDisabled,itemActiveBgDisabled:Pe.controlItemBgActiveDisabled,itemInputBg:Pe.colorBgContainer,miniOptionsSizeChangerTop:0})),qt=function(Pe,Ae){var cn={};for(var Nt in Pe)Object.prototype.hasOwnProperty.call(Pe,Nt)&&Ae.indexOf(Nt)<0&&(cn[Nt]=Pe[Nt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Nt=Object.getOwnPropertySymbols(Pe);Te<Nt.length;Te++)Ae.indexOf(Nt[Te])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Nt[Te])&&(cn[Nt[Te]]=Pe[Nt[Te]]);return cn},pn=Pe=>{const{prefixCls:Ae,selectPrefixCls:cn,className:Nt,rootClassName:Te,style:Ot,size:Sn,locale:Yt,selectComponentClass:vn,responsive:Ut,showSizeChanger:Jt}=Pe,gn=qt(Pe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:na}=(0,ke.Z)(Ut),{getPrefixCls:Dn,direction:zn,pagination:fa={}}=ue.useContext(bn.E_),ia=Dn("pagination",Ae),[mt,dt]=Ft(ia),ft=Jt!=null?Jt:fa.showSizeChanger,mn=ue.useMemo(()=>{const la=ue.createElement("span",{className:`${ia}-item-ellipsis`},"\u2022\u2022\u2022"),ta=ue.createElement("button",{className:`${ia}-item-link`,type:"button",tabIndex:-1},zn==="rtl"?ue.createElement(Re.Z,null):ue.createElement(Me.Z,null)),Aa=ue.createElement("button",{className:`${ia}-item-link`,type:"button",tabIndex:-1},zn==="rtl"?ue.createElement(Me.Z,null):ue.createElement(Re.Z,null)),ho=ue.createElement("a",{className:`${ia}-item-link`},ue.createElement("div",{className:`${ia}-item-container`},zn==="rtl"?ue.createElement(Ye.Z,{className:`${ia}-item-link-icon`}):ue.createElement(re,{className:`${ia}-item-link-icon`}),la)),ha=ue.createElement("a",{className:`${ia}-item-link`},ue.createElement("div",{className:`${ia}-item-container`},zn==="rtl"?ue.createElement(re,{className:`${ia}-item-link-icon`}):ue.createElement(Ye.Z,{className:`${ia}-item-link-icon`}),la));return{prevIcon:ta,nextIcon:Aa,jumpPrevIcon:ho,jumpNextIcon:ha}},[zn,ia]),[Zn]=(0,lt.Z)("Pagination",Kt.Z),ua=Object.assign(Object.assign({},Zn),Yt),Hn=(0,xn.Z)(Sn),aa=Hn==="small"||!!(na&&!Hn&&Ut),on=Dn("select",cn),oa=Ue()({[`${ia}-mini`]:aa,[`${ia}-rtl`]:zn==="rtl"},fa==null?void 0:fa.className,Nt,Te,dt),Ra=Object.assign(Object.assign({},fa==null?void 0:fa.style),Ot);return mt(ue.createElement(zt,Object.assign({},mn,gn,{style:Ra,prefixCls:ia,selectPrefixCls:on,className:oa,selectComponentClass:vn||(aa?tn:Et),locale:ua,showSizeChanger:ft})))},Nn=pn},49867:function(Xe,ot,te){"use strict";te.d(ot,{N:function(){return le}});const le=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},9430:function(Xe,ot,te){"use strict";te.d(ot,{default:function(){return Ld}});var le={},ue="rc-table-internal-hook",$e=te(97685),Ie=te(66680),xe=te(8410),Fe=te(91881),re=te(67294),Ye=te(73935);function Me(ae){var oe=re.createContext(void 0),ge=function(Se){var ve=Se.value,we=Se.children,Be=re.useRef(ve);Be.current=ve;var Ne=re.useState(function(){return{getValue:function(){return Be.current},listeners:new Set}}),je=(0,$e.Z)(Ne,1),et=je[0];return(0,xe.Z)(function(){(0,Ye.unstable_batchedUpdates)(function(){et.listeners.forEach(function(Ve){Ve(ve)})})},[ve]),re.createElement(oe.Provider,{value:et},we)};return{Context:oe,Provider:ge,defaultValue:ae}}function Re(ae,oe){var ge=(0,Ie.Z)(typeof oe=="function"?oe:function(Ve){if(oe===void 0)return Ve;if(!Array.isArray(oe))return Ve[oe];var Pt={};return oe.forEach(function(vt){Pt[vt]=Ve[vt]}),Pt}),ce=re.useContext(ae==null?void 0:ae.Context),Se=ce||{},ve=Se.listeners,we=Se.getValue,Be=re.useRef();Be.current=ge(ce?we():ae==null?void 0:ae.defaultValue);var Ne=re.useState({}),je=(0,$e.Z)(Ne,2),et=je[1];return(0,xe.Z)(function(){if(!ce)return;function Ve(Pt){var vt=ge(Pt);(0,Fe.Z)(Be.current,vt,!0)||et({})}return ve.add(Ve),function(){ve.delete(Ve)}},[ce]),Be.current}var He=te(87462),Ue=te(42550);function Ce(){var ae=re.createContext(null);function oe(){return re.useContext(ae)}function ge(Se,ve){var we=(0,Ue.Yr)(Se),Be=function(je,et){var Ve=we?{ref:et}:{},Pt=re.useRef(0),vt=re.useRef(je),xt=oe();return xt!==null?re.createElement(Se,(0,He.Z)({},je,Ve)):((!ve||ve(vt.current,je))&&(Pt.current+=1),vt.current=je,re.createElement(ae.Provider,{value:Pt.current},re.createElement(Se,(0,He.Z)({},je,Ve))))};return we?re.forwardRef(Be):Be}function ce(Se,ve){var we=(0,Ue.Yr)(Se),Be=function(je,et){var Ve=we?{ref:et}:{};return oe(),re.createElement(Se,(0,He.Z)({},je,Ve))};return we?re.memo(re.forwardRef(Be),ve):re.memo(Be,ve)}return{makeImmutable:ge,responseImmutable:ce,useImmutableMark:oe}}var ie=Ce(),a=ie.makeImmutable,y=ie.responseImmutable,x=ie.useImmutableMark,b=Ce(),E=b.makeImmutable,z=b.responseImmutable,ee=b.useImmutableMark,ne=Me(),de=ne;function se(ae,oe){var ge=re.useRef(0);ge.current+=1;var ce=re.useRef(ae),Se=[];Object.keys(ae||{}).map(function(we){var Be;(ae==null?void 0:ae[we])!==((Be=ce.current)===null||Be===void 0?void 0:Be[we])&&Se.push(we)}),ce.current=ae;var ve=re.useRef([]);return Se.length&&(ve.current=Se),re.useDebugValue(ge.current),re.useDebugValue(ve.current.join(", ")),oe&&console.log("".concat(oe,":"),ge.current,ve.current),ge.current}var me=null,ye=re.memo(function(){var ae=se();return re.createElement("h1",null,"Render Times: ",ae)});ye.displayName="RenderBlock";var pe=te(71002),Le=te(1413),fe=te(4942),yt=te(94184),rt=te.n(yt);function Vt(ae,oe,ge){var ce=re.useRef({});return(!("value"in ce.current)||ge(ce.current.condition,oe))&&(ce.current.value=ae(),ce.current.condition=oe),ce.current.value}var Ee={},Ge=[],tt=function(oe){Ge.push(oe)};function nt(ae,oe){if(0)var ge}function gt(ae,oe){if(0)var ge}function zt(){Ee={}}function Kt(ae,oe,ge){!oe&&!Ee[ge]&&(ae(!1,ge),Ee[ge]=!0)}function bn(ae,oe){Kt(nt,ae,oe)}function xn(ae,oe){Kt(gt,ae,oe)}bn.preMessage=tt,bn.resetWarned=zt,bn.noteOnce=xn;var ke=bn;function lt(ae,oe){var ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=new Set;function Se(ve,we){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ne=ce.has(ve);if(ke(!Ne,"Warning: There may be circular references"),Ne)return!1;if(ve===we)return!0;if(ge&&Be>1)return!1;ce.add(ve);var je=Be+1;if(Array.isArray(ve)){if(!Array.isArray(we)||ve.length!==we.length)return!1;for(var et=0;et<ve.length;et++)if(!Se(ve[et],we[et],je))return!1;return!0}if(ve&&we&&(0,pe.Z)(ve)==="object"&&(0,pe.Z)(we)==="object"){var Ve=Object.keys(ve);return Ve.length!==Object.keys(we).length?!1:Ve.every(function(Pt){return Se(ve[Pt],we[Pt],je)})}return!1}return Se(ae,oe)}var ht=lt;function tn(ae,oe){for(var ge=ae,ce=0;ce<oe.length;ce+=1){if(ge==null)return;ge=ge[oe[ce]]}return ge}var Et=re.createContext({renderWithProps:!1}),kt=Et,be="RC_TABLE_KEY";function Bt(ae){return ae==null?[]:Array.isArray(ae)?ae:[ae]}function en(ae){var oe=[],ge={};return ae.forEach(function(ce){for(var Se=ce||{},ve=Se.key,we=Se.dataIndex,Be=ve||Bt(we).join("-")||be;ge[Be];)Be="".concat(Be,"_next");ge[Be]=!0,oe.push(Be)}),oe}function $n(ae){return ae!=null}function jt(ae){return ae&&(0,pe.Z)(ae)==="object"&&!Array.isArray(ae)&&!re.isValidElement(ae)}function ct(ae,oe,ge,ce,Se,ve){var we=re.useContext(kt),Be=ee(),Ne=Vt(function(){if($n(ce))return[ce];var je=oe==null||oe===""?[]:Array.isArray(oe)?oe:[oe],et=tn(ae,je),Ve=et,Pt=void 0;if(Se){var vt=Se(et,ae,ge);jt(vt)?(Ve=vt.children,Pt=vt.props,we.renderWithProps=!0):Ve=vt}return[Ve,Pt]},[Be,ae,ce,oe,Se,ge],function(je,et){if(ve){var Ve=(0,$e.Z)(je,2),Pt=Ve[1],vt=(0,$e.Z)(et,2),xt=vt[1];return ve(xt,Pt)}return we.renderWithProps?!0:!ht(je,et,!0)});return Ne}function _e(ae,oe,ge,ce){var Se=ae+oe-1;return ae<=ce&&Se>=ge}function De(ae,oe){return Re(de,function(ge){var ce=_e(ae,oe||1,ge.hoverStartRow,ge.hoverEndRow);return[ce,ge.onHover]})}var ze=function(oe){var ge=oe.ellipsis,ce=oe.rowType,Se=oe.children,ve,we=ge===!0?{showTitle:!0}:ge;return we&&(we.showTitle||ce==="header")&&(typeof Se=="string"||typeof Se=="number"?ve=Se.toString():re.isValidElement(Se)&&typeof Se.props.children=="string"&&(ve=Se.props.children)),ve};function Qe(ae){var oe,ge,ce,Se,ve,we,Be,Ne,je=ae.component,et=ae.children,Ve=ae.ellipsis,Pt=ae.scope,vt=ae.prefixCls,xt=ae.className,Gt=ae.align,It=ae.record,Ht=ae.render,Dt=ae.dataIndex,_t=ae.renderIndex,yn=ae.shouldCellUpdate,On=ae.index,fn=ae.rowType,Vn=ae.colSpan,qn=ae.rowSpan,rn=ae.fixLeft,hn=ae.fixRight,ln=ae.firstFixLeft,Xt=ae.lastFixLeft,un=ae.firstFixRight,Kn=ae.lastFixRight,ga=ae.appendNode,Jn=ae.additionalProps,Tn=Jn===void 0?{}:Jn,ca=ae.isSticky,pa="".concat(vt,"-cell"),Ma=Re(de,["supportSticky","allColumnsFixedLeft"]),Ca=Ma.supportSticky,Ya=Ma.allColumnsFixedLeft,Qa=ct(It,Dt,_t,et,Ht,yn),ea=(0,$e.Z)(Qa,2),oo=ea[0],Na=ea[1],Ka={},Ga=typeof rn=="number"&&Ca,Do=typeof hn=="number"&&Ca;Ga&&(Ka.position="sticky",Ka.left=rn),Do&&(Ka.position="sticky",Ka.right=hn);var kn=(oe=(ge=(ce=Na==null?void 0:Na.colSpan)!==null&&ce!==void 0?ce:Tn.colSpan)!==null&&ge!==void 0?ge:Vn)!==null&&oe!==void 0?oe:1,Rn=(Se=(ve=(we=Na==null?void 0:Na.rowSpan)!==null&&we!==void 0?we:Tn.rowSpan)!==null&&ve!==void 0?ve:qn)!==null&&Se!==void 0?Se:1,In=De(On,Rn),Ln=(0,$e.Z)(In,2),Fa=Ln[0],wn=Ln[1],Qn=function(io){var Ao;It&&wn(On,On+Rn-1),Tn==null||(Ao=Tn.onMouseEnter)===null||Ao===void 0||Ao.call(Tn,io)},ba=function(io){var Ao;It&&wn(-1,-1),Tn==null||(Ao=Tn.onMouseLeave)===null||Ao===void 0||Ao.call(Tn,io)};if(kn===0||Rn===0)return null;var ya=(Be=Tn.title)!==null&&Be!==void 0?Be:ze({rowType:fn,ellipsis:Ve,children:oo}),wo=rt()(pa,xt,(Ne={},(0,fe.Z)(Ne,"".concat(pa,"-fix-left"),Ga&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-left-first"),ln&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-left-last"),Xt&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-left-all"),Xt&&Ya&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-right"),Do&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-right-first"),un&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-fix-right-last"),Kn&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-ellipsis"),Ve),(0,fe.Z)(Ne,"".concat(pa,"-with-append"),ga),(0,fe.Z)(Ne,"".concat(pa,"-fix-sticky"),(Ga||Do)&&ca&&Ca),(0,fe.Z)(Ne,"".concat(pa,"-row-hover"),!Na&&Fa),Ne),Tn.className,Na==null?void 0:Na.className),vo={};Gt&&(vo.textAlign=Gt);var tr=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Ka),Tn.style),vo),Na==null?void 0:Na.style),ro=oo;return(0,pe.Z)(ro)==="object"&&!Array.isArray(ro)&&!re.isValidElement(ro)&&(ro=null),Ve&&(Xt||un)&&(ro=re.createElement("span",{className:"".concat(pa,"-content")},ro)),re.createElement(je,(0,He.Z)({},Na,Tn,{className:wo,style:tr,title:ya,scope:Pt,onMouseEnter:Qn,onMouseLeave:ba,colSpan:kn!==1?kn:null,rowSpan:Rn!==1?Rn:null}),ga,ro)}var St=re.memo(Qe);function Ft(ae,oe,ge,ce,Se,ve){var we=ge[ae]||{},Be=ge[oe]||{},Ne,je;we.fixed==="left"?Ne=ce.left[Se==="rtl"?oe:ae]:Be.fixed==="right"&&(je=ce.right[Se==="rtl"?ae:oe]);var et=!1,Ve=!1,Pt=!1,vt=!1,xt=ge[oe+1],Gt=ge[ae-1],It=!(ve!=null&&ve.children);if(Se==="rtl"){if(Ne!==void 0){var Ht=Gt&&Gt.fixed==="left";vt=!Ht&&It}else if(je!==void 0){var Dt=xt&&xt.fixed==="right";Pt=!Dt&&It}}else if(Ne!==void 0){var _t=xt&&xt.fixed==="left";et=!_t&&It}else if(je!==void 0){var yn=Gt&&Gt.fixed==="right";Ve=!yn&&It}return{fixLeft:Ne,fixRight:je,lastFixLeft:et,firstFixRight:Ve,lastFixRight:Pt,firstFixLeft:vt,isSticky:ce.isSticky}}var qt=re.createContext({}),an=qt;function pn(ae){var oe=ae.className,ge=ae.index,ce=ae.children,Se=ae.colSpan,ve=Se===void 0?1:Se,we=ae.rowSpan,Be=ae.align,Ne=Re(de,["prefixCls","direction"]),je=Ne.prefixCls,et=Ne.direction,Ve=re.useContext(an),Pt=Ve.scrollColumnIndex,vt=Ve.stickyOffsets,xt=Ve.flattenColumns,Gt=Ve.columns,It=ge+ve-1,Ht=It+1===Pt?ve+1:ve,Dt=Ft(ge,ge+Ht-1,xt,vt,et,Gt==null?void 0:Gt[ge]);return re.createElement(St,(0,He.Z)({className:oe,index:ge,component:"td",prefixCls:je,record:null,dataIndex:null,align:Be,colSpan:Ht,rowSpan:we,render:function(){return ce}},Dt))}var Nn=te(45987),Pe=["children"];function Ae(ae){var oe=ae.children,ge=(0,Nn.Z)(ae,Pe);return re.createElement("tr",ge,oe)}function cn(ae){var oe=ae.children;return oe}cn.Row=Ae,cn.Cell=pn;var Nt=cn;function Te(ae){var oe=ae.children,ge=ae.stickyOffsets,ce=ae.flattenColumns,Se=ae.columns,ve=Re(de,"prefixCls"),we=ce.length-1,Be=ce[we],Ne=re.useMemo(function(){return{stickyOffsets:ge,flattenColumns:ce,scrollColumnIndex:Be!=null&&Be.scrollbar?we:null,columns:Se}},[Be,ce,we,ge,Se]);return re.createElement(an.Provider,{value:Ne},re.createElement("tfoot",{className:"".concat(ve,"-summary")},oe))}var Ot=z(Te),Sn=Nt;function Yt(ae){var oe=re.useRef();oe.current=ae;var ge=re.useCallback(function(){for(var ce,Se=arguments.length,ve=new Array(Se),we=0;we<Se;we++)ve[we]=arguments[we];return(ce=oe.current)===null||ce===void 0?void 0:ce.call.apply(ce,[oe].concat(ve))},[]);return ge}function vn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ut=vn()?re.useLayoutEffect:re.useEffect,Jt=function(oe,ge){var ce=React.useRef(!0);Ut(function(){return oe(ce.current)},ge),Ut(function(){return ce.current=!1,function(){ce.current=!0}},[])},gn=function(oe,ge){Jt(function(ce){if(!ce)return oe()},ge)},na=null;function Dn(ae){var oe=React.useRef(!1),ge=React.useState(ae),ce=_slicedToArray(ge,2),Se=ce[0],ve=ce[1];React.useEffect(function(){return oe.current=!1,function(){oe.current=!0}},[]);function we(Be,Ne){Ne&&oe.current||ve(Be)}return[Se,we]}function zn(ae){return ae!==void 0}function fa(ae,oe){var ge=oe||{},ce=ge.defaultValue,Se=ge.value,ve=ge.onChange,we=ge.postState,Be=useState(function(){return zn(Se)?Se:zn(ce)?typeof ce=="function"?ce():ce:typeof ae=="function"?ae():ae}),Ne=_slicedToArray(Be,2),je=Ne[0],et=Ne[1],Ve=Se!==void 0?Se:je,Pt=we?we(Ve):Ve,vt=useEvent(ve),xt=useState([Ve]),Gt=_slicedToArray(xt,2),It=Gt[0],Ht=Gt[1];useLayoutUpdateEffect(function(){var _t=It[0];je!==_t&&vt(je,_t)},[It]),useLayoutUpdateEffect(function(){zn(Se)||et(Se)},[Se]);var Dt=useEvent(function(_t,yn){et(_t,yn),Ht([Ve],yn)});return[Pt,Dt]}var ia=te(35110);function mt(ae,oe){typeof ae=="function"?ae(oe):(0,pe.Z)(ae)==="object"&&ae&&"current"in ae&&(ae.current=oe)}function dt(){for(var ae=arguments.length,oe=new Array(ae),ge=0;ge<ae;ge++)oe[ge]=arguments[ge];var ce=oe.filter(function(Se){return Se});return ce.length<=1?ce[0]:function(Se){oe.forEach(function(ve){mt(ve,Se)})}}function ft(){for(var ae=arguments.length,oe=new Array(ae),ge=0;ge<ae;ge++)oe[ge]=arguments[ge];return useMemo(function(){return dt.apply(void 0,oe)},oe,function(ce,Se){return ce.length!==Se.length||ce.every(function(ve,we){return ve!==Se[we]})})}function mn(ae){var oe,ge,ce=isMemo(ae)?ae.type.type:ae.type;return!(typeof ce=="function"&&!((oe=ce.prototype)!==null&&oe!==void 0&&oe.render)||typeof ae=="function"&&!((ge=ae.prototype)!==null&&ge!==void 0&&ge.render))}function Zn(ae){return!isValidElement(ae)||isFragment(ae)?!1:mn(ae)}function ua(ae,oe,ge,ce){if(!oe.length)return ge;var Se=_toArray(oe),ve=Se[0],we=Se.slice(1),Be;return!ae&&typeof ve=="number"?Be=[]:Array.isArray(ae)?Be=_toConsumableArray(ae):Be=_objectSpread({},ae),ce&&ge===void 0&&we.length===1?delete Be[ve][we[0]]:Be[ve]=ua(Be[ve],we,ge,ce),Be}function Hn(ae,oe,ge){var ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return oe.length&&ce&&ge===void 0&&!get(ae,oe.slice(0,-1))?ae:ua(ae,oe,ge,ce)}function aa(ae){return _typeof(ae)==="object"&&ae!==null&&Object.getPrototypeOf(ae)===Object.prototype}function on(ae){return Array.isArray(ae)?[]:{}}var oa=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ra(){for(var ae=arguments.length,oe=new Array(ae),ge=0;ge<ae;ge++)oe[ge]=arguments[ge];var ce=on(oe[0]);return oe.forEach(function(Se){function ve(we,Be){var Ne=new Set(Be),je=get(Se,we),et=Array.isArray(je);if(et||aa(je)){if(!Ne.has(je)){Ne.add(je);var Ve=get(ce,we);et?ce=Hn(ce,we,[]):(!Ve||_typeof(Ve)!=="object")&&(ce=Hn(ce,we,on(je))),oa(je).forEach(function(Pt){ve([].concat(_toConsumableArray(we),[Pt]),Ne)})}}else ce=Hn(ce,we,je)}ve([])}),ce}var la=te(48555),ta=function(ae){if(!ae)return!1;if(ae instanceof Element){if(ae.offsetParent)return!0;if(ae.getBBox){var oe=ae.getBBox(),ge=oe.width,ce=oe.height;if(ge||ce)return!0}if(ae.getBoundingClientRect){var Se=ae.getBoundingClientRect(),ve=Se.width,we=Se.height;if(ve||we)return!0}}return!1},Aa=function(oe){if(vn()&&window.document.documentElement){var ge=Array.isArray(oe)?oe:[oe],ce=window.document.documentElement;return ge.some(function(Se){return Se in ce.style})}return!1},ho=function(oe,ge){if(!Aa(oe))return!1;var ce=document.createElement("div"),Se=ce.style[oe];return ce.style[oe]=ge,ce.style[oe]!==Se};function ha(ae,oe){return!Array.isArray(ae)&&oe!==void 0?ho(ae,oe):Aa(ae)}var Oe;function Ze(ae){if(typeof document=="undefined")return 0;if(ae||Oe===void 0){var oe=document.createElement("div");oe.style.width="100%",oe.style.height="200px";var ge=document.createElement("div"),ce=ge.style;ce.position="absolute",ce.top="0",ce.left="0",ce.pointerEvents="none",ce.visibility="hidden",ce.width="200px",ce.height="150px",ce.overflow="hidden",ge.appendChild(oe),document.body.appendChild(ge);var Se=oe.offsetWidth;ge.style.overflow="scroll";var ve=oe.offsetWidth;Se===ve&&(ve=ge.clientWidth),document.body.removeChild(ge),Oe=Se-ve}return Oe}function Ke(ae){var oe=ae.match(/^(.*)px$/),ge=Number(oe==null?void 0:oe[1]);return Number.isNaN(ge)?Ze():ge}function $t(ae){if(typeof document=="undefined"||!ae||!(ae instanceof Element))return{width:0,height:0};var oe=getComputedStyle(ae,"::-webkit-scrollbar"),ge=oe.width,ce=oe.height;return{width:Ke(ge),height:Ke(ce)}}var Pn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,En=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ea="".concat(Pn," ").concat(En).split(/[\s\n]+/),ra="aria-",Fn="data-";function ma(ae,oe){return ae.indexOf(oe)===0}function Ha(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge;oe===!1?ge={aria:!0,data:!0,attr:!0}:oe===!0?ge={aria:!0}:ge=(0,Le.Z)({},oe);var ce={};return Object.keys(ae).forEach(function(Se){(ge.aria&&(Se==="role"||ma(Se,ra))||ge.data&&ma(Se,Fn)||ge.attr&&Ea.includes(Se))&&(ce[Se]=ae[Se])}),ce}function At(ae,oe,ge,ce,Se,ve,we){ae.push({record:oe,indent:ge,index:we});var Be=ve(oe),Ne=Se==null?void 0:Se.has(Be);if(oe&&Array.isArray(oe[ce])&&Ne)for(var je=0;je<oe[ce].length;je+=1)At(ae,oe[ce][je],ge+1,ce,Se,ve,je)}function sa(ae,oe,ge,ce){var Se=re.useMemo(function(){if(ge!=null&&ge.size){for(var ve=[],we=0;we<(ae==null?void 0:ae.length);we+=1){var Be=ae[we];At(ve,Be,0,oe,ge,ce,we)}return ve}return ae==null?void 0:ae.map(function(Ne,je){return{record:Ne,indent:0,index:je}})},[ae,oe,ge,ce]);return Se}function lo(ae){var oe=ae.prefixCls,ge=ae.children,ce=ae.component,Se=ae.cellComponent,ve=ae.className,we=ae.expanded,Be=ae.colSpan,Ne=ae.isEmpty,je=Re(de,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),et=je.scrollbarSize,Ve=je.fixHeader,Pt=je.fixColumn,vt=je.componentWidth,xt=je.horizonScroll,Gt=ge;return(Ne?xt&&vt:Pt)&&(Gt=re.createElement("div",{style:{width:vt-(Ve?et:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(oe,"-expanded-row-fixed")},Gt)),re.createElement(ce,{className:ve,style:{display:we?null:"none"}},re.createElement(St,{component:Se,prefixCls:oe,colSpan:Be},Gt))}var Po=lo;function Ja(ae,oe,ge,ce){var Se=Re(de,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ve=Se.flattenColumns,we=Se.expandableType,Be=Se.expandedKeys,Ne=Se.childrenColumnName,je=Se.onTriggerExpand,et=Se.rowExpandable,Ve=Se.onRow,Pt=Se.expandRowByClick,vt=Se.rowClassName,xt=we==="nest",Gt=we==="row"&&(!et||et(ae)),It=Gt||xt,Ht=Be&&Be.has(oe),Dt=Ne&&ae&&ae[Ne],_t=Yt(je),yn=Ve==null?void 0:Ve(ae,ge),On=yn==null?void 0:yn.onClick,fn=function(hn){Pt&&It&&je(ae,hn);for(var ln=arguments.length,Xt=new Array(ln>1?ln-1:0),un=1;un<ln;un++)Xt[un-1]=arguments[un];On==null||On.apply(void 0,[hn].concat(Xt))},Vn;typeof vt=="string"?Vn=vt:typeof vt=="function"&&(Vn=vt(ae,ge,ce));var qn=en(ve);return(0,Le.Z)((0,Le.Z)({},Se),{},{columnsKey:qn,nestExpandable:xt,expanded:Ht,hasNestChildren:Dt,record:ae,onTriggerExpand:_t,rowSupportExpand:Gt,expandable:It,rowProps:(0,Le.Z)((0,Le.Z)({},yn),{},{className:rt()(Vn,yn==null?void 0:yn.className),onClick:fn})})}function za(ae,oe,ge,ce,Se){var ve=ae.record,we=ae.prefixCls,Be=ae.columnsKey,Ne=ae.fixedInfoList,je=ae.expandIconColumnIndex,et=ae.nestExpandable,Ve=ae.indentSize,Pt=ae.expandIcon,vt=ae.expanded,xt=ae.hasNestChildren,Gt=ae.onTriggerExpand,It=Be[ge],Ht=Ne[ge],Dt;ge===(je||0)&&et&&(Dt=re.createElement(re.Fragment,null,re.createElement("span",{style:{paddingLeft:"".concat(Ve*ce,"px")},className:"".concat(we,"-row-indent indent-level-").concat(ce)}),Pt({prefixCls:we,expanded:vt,expandable:xt,record:ve,onExpand:Gt})));var _t;return oe.onCell&&(_t=oe.onCell(ve,Se)),{key:It,fixedInfo:Ht,appendCellNode:Dt,additionalCellProps:_t||{}}}function $o(ae){var oe=ae.className,ge=ae.style,ce=ae.record,Se=ae.index,ve=ae.renderIndex,we=ae.rowKey,Be=ae.indent,Ne=Be===void 0?0:Be,je=ae.rowComponent,et=ae.cellComponent,Ve=ae.scopeCellComponent,Pt=Ja(ce,we,Se,Ne),vt=Pt.prefixCls,xt=Pt.flattenColumns,Gt=Pt.expandedRowClassName,It=Pt.expandedRowRender,Ht=Pt.rowProps,Dt=Pt.expanded,_t=Pt.rowSupportExpand,yn=re.useState(!1),On=(0,$e.Z)(yn,2),fn=On[0],Vn=On[1];re.useEffect(function(){Dt&&Vn(!0)},[Dt]);var qn=re.createElement(je,(0,He.Z)({},Ht,{"data-row-key":we,className:rt()(oe,"".concat(vt,"-row"),"".concat(vt,"-row-level-").concat(Ne),Ht==null?void 0:Ht.className),style:(0,Le.Z)((0,Le.Z)({},ge),Ht==null?void 0:Ht.style)}),xt.map(function(Xt,un){var Kn=Xt.render,ga=Xt.dataIndex,Jn=Xt.className,Tn=za(Pt,Xt,un,Ne,Se),ca=Tn.key,pa=Tn.fixedInfo,Ma=Tn.appendCellNode,Ca=Tn.additionalCellProps;return re.createElement(St,(0,He.Z)({className:Jn,ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:Xt.rowScope?Ve:et,prefixCls:vt,key:ca,record:ce,index:Se,renderIndex:ve,dataIndex:ga,render:Kn,shouldCellUpdate:Xt.shouldCellUpdate},pa,{appendNode:Ma,additionalProps:Ca}))})),rn;if(_t&&(fn||Dt)){var hn=It(ce,Se,Ne+1,Dt),ln=Gt&&Gt(ce,Se,Ne);rn=re.createElement(Po,{expanded:Dt,className:rt()("".concat(vt,"-expanded-row"),"".concat(vt,"-expanded-row-level-").concat(Ne+1),ln),prefixCls:vt,component:je,cellComponent:et,colSpan:xt.length,isEmpty:!1},hn)}return re.createElement(re.Fragment,null,qn,rn)}$o.displayName="BodyRow";var Sa=z($o);function Ko(ae){var oe=ae.columnKey,ge=ae.onColumnResize,ce=re.useRef();return re.useEffect(function(){ce.current&&ge(oe,ce.current.offsetWidth)},[]),re.createElement(la.Z,{data:oe},re.createElement("td",{ref:ce,style:{padding:0,border:0,height:0}},re.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function xo(ae){var oe=ae.prefixCls,ge=ae.columnsKey,ce=ae.onColumnResize;return re.createElement("tr",{"aria-hidden":"true",className:"".concat(oe,"-measure-row"),style:{height:0,fontSize:0}},re.createElement(la.Z.Collection,{onBatchResize:function(ve){ve.forEach(function(we){var Be=we.data,Ne=we.size;ce(Be,Ne.offsetWidth)})}},ge.map(function(Se){return re.createElement(Ko,{key:Se,columnKey:Se,onColumnResize:ce})})))}function To(ae){var oe=ae.data,ge=ae.measureColumnWidth,ce=Re(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Se=ce.prefixCls,ve=ce.getComponent,we=ce.onColumnResize,Be=ce.flattenColumns,Ne=ce.getRowKey,je=ce.expandedKeys,et=ce.childrenColumnName,Ve=ce.emptyNode,Pt=sa(oe,et,je,Ne),vt=re.useRef({renderWithProps:!1}),xt=ve(["body","wrapper"],"tbody"),Gt=ve(["body","row"],"tr"),It=ve(["body","cell"],"td"),Ht=ve(["body","cell"],"th"),Dt;oe.length?Dt=Pt.map(function(yn,On){var fn=yn.record,Vn=yn.indent,qn=yn.index,rn=Ne(fn,On);return re.createElement(Sa,{key:rn,rowKey:rn,record:fn,index:On,renderIndex:qn,rowComponent:Gt,cellComponent:It,scopeCellComponent:Ht,getRowKey:Ne,indent:Vn})}):Dt=re.createElement(Po,{expanded:!0,className:"".concat(Se,"-placeholder"),prefixCls:Se,component:Gt,cellComponent:It,colSpan:Be.length,isEmpty:!0},Ve);var _t=en(Be);return re.createElement(kt.Provider,{value:vt.current},re.createElement(xt,{className:"".concat(Se,"-tbody")},ge&&re.createElement(xo,{prefixCls:Se,columnsKey:_t,onColumnResize:we}),Dt))}To.displayName="Body";var to=z(To),Vo=["expandable"],Io="RC_TABLE_INTERNAL_COL_DEFINE";function pr(ae){var oe=ae.expandable,ge=(0,Nn.Z)(ae,Vo),ce;return"expandable"in ae?ce=(0,Le.Z)((0,Le.Z)({},ge),oe):ce=ge,ce.showExpandColumn===!1&&(ce.expandIconColumnIndex=-1),ce}var Zo=["columnType"];function vr(ae){for(var oe=ae.colWidths,ge=ae.columns,ce=ae.columCount,Se=[],ve=ce||ge.length,we=!1,Be=ve-1;Be>=0;Be-=1){var Ne=oe[Be],je=ge&&ge[Be],et=je&&je[Io];if(Ne||et||we){var Ve=et||{},Pt=Ve.columnType,vt=(0,Nn.Z)(Ve,Zo);Se.unshift(re.createElement("col",(0,He.Z)({key:Be,style:{width:Ne}},vt))),we=!0}}return re.createElement("colgroup",null,Se)}var Mt=vr,Da=te(74902),ar=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Zt(ae,oe){return(0,re.useMemo)(function(){for(var ge=[],ce=0;ce<oe;ce+=1){var Se=ae[ce];if(Se!==void 0)ge[ce]=Se;else return null}return ge},[ae.join("_"),oe])}var Bn=re.forwardRef(function(ae,oe){var ge=ae.className,ce=ae.noData,Se=ae.columns,ve=ae.flattenColumns,we=ae.colWidths,Be=ae.columCount,Ne=ae.stickyOffsets,je=ae.direction,et=ae.fixHeader,Ve=ae.stickyTopOffset,Pt=ae.stickyBottomOffset,vt=ae.stickyClassName,xt=ae.onScroll,Gt=ae.maxContentScroll,It=ae.children,Ht=(0,Nn.Z)(ae,ar),Dt=Re(de,["prefixCls","scrollbarSize","isSticky"]),_t=Dt.prefixCls,yn=Dt.scrollbarSize,On=Dt.isSticky,fn=On&&!et?0:yn,Vn=re.useRef(null),qn=re.useCallback(function(Jn){mt(oe,Jn),mt(Vn,Jn)},[]);re.useEffect(function(){var Jn;function Tn(ca){var pa=ca,Ma=pa.currentTarget,Ca=pa.deltaX;Ca&&(xt({currentTarget:Ma,scrollLeft:Ma.scrollLeft+Ca}),ca.preventDefault())}return(Jn=Vn.current)===null||Jn===void 0||Jn.addEventListener("wheel",Tn),function(){var ca;(ca=Vn.current)===null||ca===void 0||ca.removeEventListener("wheel",Tn)}},[]);var rn=re.useMemo(function(){return ve.every(function(Jn){return Jn.width})},[ve]),hn=ve[ve.length-1],ln={fixed:hn?hn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_t,"-cell-scrollbar")}}},Xt=(0,re.useMemo)(function(){return fn?[].concat((0,Da.Z)(Se),[ln]):Se},[fn,Se]),un=(0,re.useMemo)(function(){return fn?[].concat((0,Da.Z)(ve),[ln]):ve},[fn,ve]),Kn=(0,re.useMemo)(function(){var Jn=Ne.right,Tn=Ne.left;return(0,Le.Z)((0,Le.Z)({},Ne),{},{left:je==="rtl"?[].concat((0,Da.Z)(Tn.map(function(ca){return ca+fn})),[0]):Tn,right:je==="rtl"?Jn:[].concat((0,Da.Z)(Jn.map(function(ca){return ca+fn})),[0]),isSticky:On})},[fn,Ne,On]),ga=Zt(we,Be);return re.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},On?{top:Ve,bottom:Pt}:{}),ref:qn,className:rt()(ge,(0,fe.Z)({},vt,!!vt))},re.createElement("table",{style:{tableLayout:"fixed",visibility:ce||ga?null:"hidden"}},(!ce||!Gt||rn)&&re.createElement(Mt,{colWidths:ga?[].concat((0,Da.Z)(ga),[fn]):[],columCount:Be+1,columns:un}),It((0,Le.Z)((0,Le.Z)({},Ht),{},{stickyOffsets:Kn,columns:Xt,flattenColumns:un}))))});Bn.displayName="FixedHolder";var da=re.memo(Bn);function jn(ae){var oe=ae.cells,ge=ae.stickyOffsets,ce=ae.flattenColumns,Se=ae.rowComponent,ve=ae.cellComponent,we=ae.tdCellComponent,Be=ae.onHeaderRow,Ne=ae.index,je=Re(de,["prefixCls","direction"]),et=je.prefixCls,Ve=je.direction,Pt;Be&&(Pt=Be(oe.map(function(xt){return xt.column}),Ne));var vt=en(oe.map(function(xt){return xt.column}));return re.createElement(Se,Pt,oe.map(function(xt,Gt){var It=xt.column,Ht=Ft(xt.colStart,xt.colEnd,ce,ge,Ve,It),Dt;return It&&It.onHeaderCell&&(Dt=xt.column.onHeaderCell(It)),re.createElement(St,(0,He.Z)({},xt,{scope:It.title?xt.colSpan>1?"colgroup":"col":null,ellipsis:It.ellipsis,align:It.align,component:It.title?ve:we,prefixCls:et,key:vt[Gt]},Ht,{additionalProps:Dt,rowType:"header"}))}))}jn.displayName="HeaderRow";var So=jn;function La(ae){var oe=[];function ge(we,Be){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;oe[Ne]=oe[Ne]||[];var je=Be,et=we.filter(Boolean).map(function(Ve){var Pt={key:Ve.key,className:Ve.className||"",children:Ve.title,column:Ve,colStart:je},vt=1,xt=Ve.children;return xt&&xt.length>0&&(vt=ge(xt,je,Ne+1).reduce(function(Gt,It){return Gt+It},0),Pt.hasSubColumns=!0),"colSpan"in Ve&&(vt=Ve.colSpan),"rowSpan"in Ve&&(Pt.rowSpan=Ve.rowSpan),Pt.colSpan=vt,Pt.colEnd=Pt.colStart+vt-1,oe[Ne].push(Pt),je+=vt,vt});return et}ge(ae,0);for(var ce=oe.length,Se=function(Be){oe[Be].forEach(function(Ne){!("rowSpan"in Ne)&&!Ne.hasSubColumns&&(Ne.rowSpan=ce-Be)})},ve=0;ve<ce;ve+=1)Se(ve);return oe}function ja(ae){var oe=ae.stickyOffsets,ge=ae.columns,ce=ae.flattenColumns,Se=ae.onHeaderRow,ve=Re(de,["prefixCls","getComponent"]),we=ve.prefixCls,Be=ve.getComponent,Ne=re.useMemo(function(){return La(ge)},[ge]),je=Be(["header","wrapper"],"thead"),et=Be(["header","row"],"tr"),Ve=Be(["header","cell"],"th"),Pt=Be(["header","cell"],"td");return re.createElement(je,{className:"".concat(we,"-thead")},Ne.map(function(vt,xt){var Gt=re.createElement(So,{key:xt,flattenColumns:ce,cells:vt,stickyOffsets:oe,rowComponent:et,cellComponent:Ve,tdCellComponent:Pt,onHeaderRow:Se,index:xt});return Gt}))}var so=z(ja);function Eo(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=[];return re.Children.forEach(ae,function(ce){ce==null&&!oe.keepEmpty||(Array.isArray(ce)?ge=ge.concat(Eo(ce)):(0,ia.isFragment)(ce)&&ce.props?ge=ge.concat(Eo(ce.props.children,oe)):ge.push(ce))}),ge}function or(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof oe=="number"?oe:oe.endsWith("%")?ae*parseFloat(oe)/100:null}function Co(ae,oe){return re.useMemo(function(){if(oe&&oe>0){var ge=0,ce=0;ae.forEach(function(je){var et=or(oe,je.width);et?ge+=et:ce+=1});var Se=oe-ge,ve=ce,we=Se/ce,Be=0,Ne=ae.map(function(je){var et=(0,Le.Z)({},je),Ve=or(oe,et.width);if(Ve)et.width=Ve;else{var Pt=Math.floor(we);et.width=ve===1?Se:Pt,Se-=Pt,ve-=1}return Be+=et.width,et});return[Ne,Be]}return[ae,oe]},[ae,oe])}var Ar=["children"],Nr=["fixed"];function cr(ae){return Eo(ae).filter(function(oe){return re.isValidElement(oe)}).map(function(oe){var ge=oe.key,ce=oe.props,Se=ce.children,ve=(0,Nn.Z)(ce,Ar),we=(0,Le.Z)({key:ge},ve);return Se&&(we.children=cr(Se)),we})}function Pr(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ae.filter(function(ge){return ge&&(0,pe.Z)(ge)==="object"}).reduce(function(ge,ce,Se){var ve=ce.fixed,we=ve===!0?"left":ve,Be="".concat(oe,"-").concat(Se),Ne=ce.children;return Ne&&Ne.length>0?[].concat((0,Da.Z)(ge),(0,Da.Z)(Pr(Ne,Be).map(function(je){return(0,Le.Z)({fixed:we},je)}))):[].concat((0,Da.Z)(ge),[(0,Le.Z)((0,Le.Z)({key:Be},ce),{},{fixed:we})])},[])}function Hr(ae){for(var oe=!0,ge=0;ge<ae.length;ge+=1){var ce=ae[ge];if(oe&&ce.fixed!=="left")oe=!1;else if(!oe&&ce.fixed==="left"){warning(!1,"Index ".concat(ge-1," of `columns` missing `fixed='left'` prop."));break}}for(var Se=!0,ve=ae.length-1;ve>=0;ve-=1){var we=ae[ve];if(Se&&we.fixed!=="right")Se=!1;else if(!Se&&we.fixed==="right"){warning(!1,"Index ".concat(ve+1," of `columns` missing `fixed='right'` prop."));break}}}function Fr(ae){return ae.map(function(oe){var ge=oe.fixed,ce=(0,Nn.Z)(oe,Nr),Se=ge;return ge==="left"?Se="right":ge==="right"&&(Se="left"),(0,Le.Z)({fixed:Se},ce)})}function zr(ae,oe){var ge=ae.prefixCls,ce=ae.columns,Se=ae.children,ve=ae.expandable,we=ae.expandedKeys,Be=ae.columnTitle,Ne=ae.getRowKey,je=ae.onTriggerExpand,et=ae.expandIcon,Ve=ae.rowExpandable,Pt=ae.expandIconColumnIndex,vt=ae.direction,xt=ae.expandRowByClick,Gt=ae.columnWidth,It=ae.fixed,Ht=ae.scrollWidth,Dt=re.useMemo(function(){return ce||cr(Se)},[ce,Se]),_t=re.useMemo(function(){if(ve){var hn,ln=Dt.slice();if(!ln.includes(le)){var Xt=Pt||0;Xt>=0&&ln.splice(Xt,0,le)}var un=ln.indexOf(le);ln=ln.filter(function(Tn,ca){return Tn!==le||ca===un});var Kn=Dt[un],ga;(It==="left"||It)&&!Pt?ga="left":(It==="right"||It)&&Pt===Dt.length?ga="right":ga=Kn?Kn.fixed:null;var Jn=(hn={},(0,fe.Z)(hn,Io,{className:"".concat(ge,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,fe.Z)(hn,"title",Be),(0,fe.Z)(hn,"fixed",ga),(0,fe.Z)(hn,"className","".concat(ge,"-row-expand-icon-cell")),(0,fe.Z)(hn,"width",Gt),(0,fe.Z)(hn,"render",function(ca,pa,Ma){var Ca=Ne(pa,Ma),Ya=we.has(Ca),Qa=Ve?Ve(pa):!0,ea=et({prefixCls:ge,expanded:Ya,expandable:Qa,record:pa,onExpand:je});return xt?re.createElement("span",{onClick:function(Na){return Na.stopPropagation()}},ea):ea}),hn);return ln.map(function(Tn){return Tn===le?Jn:Tn})}return Dt.filter(function(Tn){return Tn!==le})},[ve,Dt,Ne,we,et,vt]),yn=re.useMemo(function(){var hn=_t;return oe&&(hn=oe(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[oe,_t,vt]),On=re.useMemo(function(){return vt==="rtl"?Fr(Pr(yn)):Pr(yn)},[yn,vt,Ht]),fn=Co(On,Ht),Vn=(0,$e.Z)(fn,2),qn=Vn[0],rn=Vn[1];return[yn,qn,rn]}var jr=zr;function kr(ae){var oe,ge=ae.prefixCls,ce=ae.record,Se=ae.onExpand,ve=ae.expanded,we=ae.expandable,Be="".concat(ge,"-row-expand-icon");if(!we)return re.createElement("span",{className:rt()(Be,"".concat(ge,"-row-spaced"))});var Ne=function(et){Se(ce,et),et.stopPropagation()};return re.createElement("span",{className:rt()(Be,(oe={},(0,fe.Z)(oe,"".concat(ge,"-row-expanded"),ve),(0,fe.Z)(oe,"".concat(ge,"-row-collapsed"),!ve),oe)),onClick:Ne})}function jo(ae,oe,ge){var ce=[];function Se(ve){(ve||[]).forEach(function(we,Be){ce.push(oe(we,Be)),Se(we[ge])})}return Se(ae),ce}function yr(ae,oe,ge){var ce=pr(ae),Se=ce.expandIcon,ve=ce.expandedRowKeys,we=ce.defaultExpandedRowKeys,Be=ce.defaultExpandAllRows,Ne=ce.expandedRowRender,je=ce.onExpand,et=ce.onExpandedRowsChange,Ve=ce.childrenColumnName,Pt=Se||kr,vt=Ve||"children",xt=re.useMemo(function(){return Ne?"row":ae.expandable&&ae.internalHooks===ue&&ae.expandable.__PARENT_RENDER_ICON__||oe.some(function(On){return On&&(0,pe.Z)(On)==="object"&&On[vt]})?"nest":!1},[!!Ne,oe]),Gt=re.useState(function(){return we||(Be?jo(oe,ge,vt):[])}),It=(0,$e.Z)(Gt,2),Ht=It[0],Dt=It[1],_t=re.useMemo(function(){return new Set(ve||Ht||[])},[ve,Ht]),yn=re.useCallback(function(On){var fn=ge(On,oe.indexOf(On)),Vn,qn=_t.has(fn);qn?(_t.delete(fn),Vn=(0,Da.Z)(_t)):Vn=[].concat((0,Da.Z)(_t),[fn]),Dt(Vn),je&&je(!qn,On),et&&et(Vn)},[ge,_t,oe,je,et]);return[ce,xt,_t,Pt,vt,yn]}function We(ae,oe,ge,ce){var Se=ae.map(function(ve,we){return Ft(we,we,ae,oe,ge,ce==null?void 0:ce[we])});return Vt(function(){return Se},[Se],function(ve,we){return!ht(ve,we)})}function Je(ae){var oe=(0,re.useRef)(ae),ge=(0,re.useState)({}),ce=(0,$e.Z)(ge,2),Se=ce[1],ve=(0,re.useRef)(null),we=(0,re.useRef)([]);function Be(Ne){we.current.push(Ne);var je=Promise.resolve();ve.current=je,je.then(function(){if(ve.current===je){var et=we.current,Ve=oe.current;we.current=[],et.forEach(function(Pt){oe.current=Pt(oe.current)}),ve.current=null,Ve!==oe.current&&Se({})}})}return(0,re.useEffect)(function(){return function(){ve.current=null}},[]),[oe.current,Be]}function ut(ae){var oe=(0,re.useRef)(ae||null),ge=(0,re.useRef)();function ce(){window.clearTimeout(ge.current)}function Se(we){oe.current=we,ce(),ge.current=window.setTimeout(function(){oe.current=null,ge.current=void 0},100)}function ve(){return oe.current}return(0,re.useEffect)(function(){return ce},[]),[Se,ve]}function he(){var ae=re.useState(-1),oe=(0,$e.Z)(ae,2),ge=oe[0],ce=oe[1],Se=re.useState(-1),ve=(0,$e.Z)(Se,2),we=ve[0],Be=ve[1],Ne=re.useCallback(function(je,et){ce(je),Be(et)},[]);return[ge,we,Ne]}var st=vn()?window:null;function wt(ae,oe){var ge=(0,pe.Z)(ae)==="object"?ae:{},ce=ge.offsetHeader,Se=ce===void 0?0:ce,ve=ge.offsetSummary,we=ve===void 0?0:ve,Be=ge.offsetScroll,Ne=Be===void 0?0:Be,je=ge.getContainer,et=je===void 0?function(){return st}:je,Ve=et()||st;return re.useMemo(function(){var Pt=!!ae;return{isSticky:Pt,stickyClassName:Pt?"".concat(oe,"-sticky-holder"):"",offsetHeader:Se,offsetSummary:we,offsetScroll:Ne,container:Ve}},[Ne,Se,we,oe,Ve])}function Rt(ae,oe,ge){var ce=(0,re.useMemo)(function(){for(var Se=[],ve=[],we=0,Be=0,Ne=0;Ne<oe;Ne+=1)if(ge==="rtl"){ve[Ne]=Be,Be+=ae[Ne]||0;var je=oe-Ne-1;Se[je]=we,we+=ae[je]||0}else{Se[Ne]=we,we+=ae[Ne]||0;var et=oe-Ne-1;ve[et]=Be,Be+=ae[et]||0}return{left:Se,right:ve}},[ae,oe,ge]);return ce}var qe=Rt;function it(ae){var oe=ae.className,ge=ae.children;return re.createElement("div",{className:oe},ge)}var at=it;function Tt(ae,oe,ge,ce){var Se=Ye.unstable_batchedUpdates?function(we){Ye.unstable_batchedUpdates(ge,we)}:ge;return ae!=null&&ae.addEventListener&&ae.addEventListener(oe,Se,ce),{remove:function(){ae!=null&&ae.removeEventListener&&ae.removeEventListener(oe,Se,ce)}}}var Qt=/margin|padding|width|height|max|min|offset/,sn={left:!0,top:!0},nn={cssFloat:1,styleFloat:1,float:1};function Cn(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function An(ae,oe,ge){if(oe=oe.toLowerCase(),ge==="auto"){if(oe==="height")return ae.offsetHeight;if(oe==="width")return ae.offsetWidth}return oe in sn||(sn[oe]=Qt.test(oe)),sn[oe]?parseFloat(ge)||0:ge}function _n(ae,oe){var ge=arguments.length,ce=Cn(ae);return oe=nn[oe]?"cssFloat"in ae.style?"cssFloat":"styleFloat":oe,ge===1?ce:An(ae,oe,ce[oe]||ae.style[oe])}function Wt(ae,oe,ge){var ce=arguments.length;if(oe=nn[oe]?"cssFloat"in ae.style?"cssFloat":"styleFloat":oe,ce===3)return typeof ge=="number"&&Qt.test(oe)&&(ge="".concat(ge,"px")),ae.style[oe]=ge,ge;for(var Se in oe)oe.hasOwnProperty(Se)&&Wt(ae,Se,oe[Se]);return Cn(ae)}function Ct(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function pt(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function bt(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),oe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:oe}}function Lt(){var ae=document.documentElement.clientWidth,oe=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:oe}}function dn(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Un(ae){var oe=ae.getBoundingClientRect(),ge=document.documentElement;return{left:oe.left+(window.pageXOffset||ge.scrollLeft)-(ge.clientLeft||document.body.clientLeft||0),top:oe.top+(window.pageYOffset||ge.scrollTop)-(ge.clientTop||document.body.clientTop||0)}}var Mn=function(oe,ge){var ce,Se,ve=oe.scrollBodyRef,we=oe.onScroll,Be=oe.offsetScroll,Ne=oe.container,je=Re(de,"prefixCls"),et=((ce=ve.current)===null||ce===void 0?void 0:ce.scrollWidth)||0,Ve=((Se=ve.current)===null||Se===void 0?void 0:Se.clientWidth)||0,Pt=et&&Ve*(Ve/et),vt=re.useRef(),xt=Je({scrollLeft:0,isHiddenScrollBar:!1}),Gt=(0,$e.Z)(xt,2),It=Gt[0],Ht=Gt[1],Dt=re.useRef({delta:0,x:0}),_t=re.useState(!1),yn=(0,$e.Z)(_t,2),On=yn[0],fn=yn[1],Vn=function(){fn(!1)},qn=function(un){un.persist(),Dt.current.delta=un.pageX-It.scrollLeft,Dt.current.x=0,fn(!0),un.preventDefault()},rn=function(un){var Kn,ga=un||((Kn=window)===null||Kn===void 0?void 0:Kn.event),Jn=ga.buttons;if(!On||Jn===0){On&&fn(!1);return}var Tn=Dt.current.x+un.pageX-Dt.current.x-Dt.current.delta;Tn<=0&&(Tn=0),Tn+Pt>=Ve&&(Tn=Ve-Pt),we({scrollLeft:Tn/Ve*(et+2)}),Dt.current.x=un.pageX},hn=function(){if(ve.current){var un=Un(ve.current).top,Kn=un+ve.current.offsetHeight,ga=Ne===window?document.documentElement.scrollTop+window.innerHeight:Un(Ne).top+Ne.clientHeight;Kn-Ze()<=ga||un>=ga-Be?Ht(function(Jn){return(0,Le.Z)((0,Le.Z)({},Jn),{},{isHiddenScrollBar:!0})}):Ht(function(Jn){return(0,Le.Z)((0,Le.Z)({},Jn),{},{isHiddenScrollBar:!1})})}},ln=function(un){Ht(function(Kn){return(0,Le.Z)((0,Le.Z)({},Kn),{},{scrollLeft:un/et*Ve||0})})};return re.useImperativeHandle(ge,function(){return{setScrollLeft:ln}}),re.useEffect(function(){var Xt=Tt(document.body,"mouseup",Vn,!1),un=Tt(document.body,"mousemove",rn,!1);return hn(),function(){Xt.remove(),un.remove()}},[Pt,On]),re.useEffect(function(){var Xt=Tt(Ne,"scroll",hn,!1),un=Tt(window,"resize",hn,!1);return function(){Xt.remove(),un.remove()}},[Ne]),re.useEffect(function(){It.isHiddenScrollBar||Ht(function(Xt){var un=ve.current;return un?(0,Le.Z)((0,Le.Z)({},Xt),{},{scrollLeft:un.scrollLeft/un.scrollWidth*un.clientWidth}):Xt})},[It.isHiddenScrollBar]),et<=Ve||!Pt||It.isHiddenScrollBar?null:re.createElement("div",{style:{height:Ze(),width:Ve,bottom:Be},className:"".concat(je,"-sticky-scroll")},re.createElement("div",{onMouseDown:qn,ref:vt,className:rt()("".concat(je,"-sticky-scroll-bar"),(0,fe.Z)({},"".concat(je,"-sticky-scroll-bar-active"),On)),style:{width:"".concat(Pt,"px"),transform:"translate3d(".concat(It.scrollLeft,"px, 0, 0)")}}))},Wn=re.forwardRef(Mn);function Gn(ae){return null}var Yn=Gn;function Xn(ae){return null}var wa=Xn,Pa="rc-table",Ba=[],Wa={};function Ua(){return"No Data"}function co(ae){var oe,ge=(0,Le.Z)({rowKey:"key",prefixCls:Pa,emptyText:Ua},ae),ce=ge.prefixCls,Se=ge.className,ve=ge.rowClassName,we=ge.style,Be=ge.data,Ne=ge.rowKey,je=ge.scroll,et=ge.tableLayout,Ve=ge.direction,Pt=ge.title,vt=ge.footer,xt=ge.summary,Gt=ge.caption,It=ge.id,Ht=ge.showHeader,Dt=ge.components,_t=ge.emptyText,yn=ge.onRow,On=ge.onHeaderRow,fn=ge.internalHooks,Vn=ge.transformColumns,qn=ge.internalRefs,rn=ge.tailor,hn=ge.sticky,ln=Be||Ba,Xt=!!ln.length,un=fn===ue,Kn=re.useCallback(function(Ta,Za){return tn(Dt,Ta)||Za},[Dt]),ga=re.useMemo(function(){return typeof Ne=="function"?Ne:function(Ta){var Za=Ta&&Ta[Ne];return Za}},[Ne]),Jn=Kn(["body"]),Tn=he(),ca=(0,$e.Z)(Tn,3),pa=ca[0],Ma=ca[1],Ca=ca[2],Ya=yr(ge,ln,ga),Qa=(0,$e.Z)(Ya,6),ea=Qa[0],oo=Qa[1],Na=Qa[2],Ka=Qa[3],Ga=Qa[4],Do=Qa[5],kn=je==null?void 0:je.x,Rn=re.useState(0),In=(0,$e.Z)(Rn,2),Ln=In[0],Fa=In[1],wn=jr((0,Le.Z)((0,Le.Z)((0,Le.Z)({},ge),ea),{},{expandable:!!ea.expandedRowRender,columnTitle:ea.columnTitle,expandedKeys:Na,getRowKey:ga,onTriggerExpand:Do,expandIcon:Ka,expandIconColumnIndex:ea.expandIconColumnIndex,direction:Ve,scrollWidth:un&&rn&&typeof kn=="number"?kn:null}),un?Vn:null),Qn=(0,$e.Z)(wn,3),ba=Qn[0],ya=Qn[1],wo=Qn[2],vo=wo!=null?wo:kn,tr=re.useMemo(function(){return{columns:ba,flattenColumns:ya}},[ba,ya]),ro=re.useRef(),Xo=re.useRef(),io=re.useRef(),Ao=re.useRef(),Rr=re.useRef(),Oa=re.useState(!1),$a=(0,$e.Z)(Oa,2),Va=$a[0],uo=$a[1],mo=re.useState(!1),va=(0,$e.Z)(mo,2),Bo=va[0],No=va[1],Ho=Je(new Map),dr=(0,$e.Z)(Ho,2),nr=dr[0],Xr=dr[1],hr=en(ya),Yo=hr.map(function(Ta){return nr.get(Ta)}),zo=re.useMemo(function(){return Yo},[Yo.join("_")]),Oo=qe(zo,ya.length,Ve),fo=je&&$n(je.y),_a=je&&$n(vo)||!!ea.fixed,gr=_a&&ya.some(function(Ta){var Za=Ta.fixed;return Za}),Dr=re.useRef(),Cr=wt(hn,ce),sr=Cr.isSticky,ni=Cr.offsetHeader,fi=Cr.offsetSummary,xa=Cr.offsetScroll,ka=Cr.stickyClassName,bo=Cr.container,Xa=re.useMemo(function(){return xt==null?void 0:xt(ln)},[xt,ln]),Fo=(fo||sr)&&re.isValidElement(Xa)&&Xa.type===Nt&&Xa.props.fixed,ko,Go,Sr;fo&&(Go={overflowY:"scroll",maxHeight:je.y}),_a&&(ko={overflowX:"auto"},fo||(Go={overflowY:"hidden"}),Sr={width:vo===!0?"auto":vo,minWidth:"100%"});var Vi=re.useCallback(function(Ta,Za){ta(ro.current)&&Xr(function(Qo){if(Qo.get(Ta)!==Za){var Lr=new Map(Qo);return Lr.set(Ta,Za),Lr}return Qo})},[]),wd=ut(null),_i=(0,$e.Z)(wd,2),Nd=_i[0],Xi=_i[1];function ai(Ta,Za){Za&&(typeof Za=="function"?Za(Ta):Za.scrollLeft!==Ta&&(Za.scrollLeft=Ta,Za.scrollLeft!==Ta&&setTimeout(function(){Za.scrollLeft=Ta},0)))}var Zr=Yt(function(Ta){var Za=Ta.currentTarget,Qo=Ta.scrollLeft,Lr=Ve==="rtl",wr=typeof Qo=="number"?Qo:Za.scrollLeft,sl=Za||Wa;if(!Xi()||Xi()===sl){var Pi;Nd(sl),ai(wr,Xo.current),ai(wr,io.current),ai(wr,Rr.current),ai(wr,(Pi=Dr.current)===null||Pi===void 0?void 0:Pi.setScrollLeft)}var yi=Za||Xo.current;if(yi){var bi=yi.scrollWidth,xi=yi.clientWidth;if(bi===xi){uo(!1),No(!1);return}Lr?(uo(-wr<bi-xi),No(-wr>0)):(uo(wr>0),No(wr<bi-xi))}}),Yi=function(){_a&&io.current?Zr({currentTarget:io.current}):(uo(!1),No(!1))},Fd=function(Za){var Qo=Za.width;Qo!==Ln&&(Yi(),Fa(ro.current?ro.current.offsetWidth:Qo))},Qi=re.useRef(!1);re.useEffect(function(){Qi.current&&Yi()},[_a,Be,ba.length]),re.useEffect(function(){Qi.current=!0},[]);var Bd=re.useState(0),Ji=(0,$e.Z)(Bd,2),oi=Ji[0],qi=Ji[1],Od=re.useState(!0),el=(0,$e.Z)(Od,2),tl=el[0],$d=el[1];re.useEffect(function(){(!rn||!un)&&(io.current instanceof Element?qi($t(io.current).width):qi($t(Ao.current).width)),$d(ha("position","sticky"))},[]),re.useEffect(function(){un&&qn&&(qn.body.current=io.current)});var Td=re.useCallback(function(Ta){return re.createElement(re.Fragment,null,re.createElement(so,Ta),Fo==="top"&&re.createElement(Ot,Ta,Xa))},[Fo,Xa]),Id=re.useCallback(function(Ta){return re.createElement(Ot,Ta,Xa)},[Xa]),nl=Kn(["table"],"table"),ri=re.useMemo(function(){return et||(gr?vo==="max-content"?"auto":"fixed":fo||sr||ya.some(function(Ta){var Za=Ta.ellipsis;return Za})?"fixed":"auto")},[fo,gr,ya,et,sr]),hi,Si={colWidths:zo,columCount:ya.length,stickyOffsets:Oo,onHeaderRow:On,fixHeader:fo,scroll:je},al=re.useMemo(function(){return Xt?null:typeof _t=="function"?_t():_t},[Xt,_t]),ol=re.createElement(to,{data:ln,measureColumnWidth:fo||_a||sr}),rl=re.createElement(Mt,{colWidths:ya.map(function(Ta){var Za=Ta.width;return Za}),columns:ya}),il=Gt!=null?re.createElement("caption",{className:"".concat(ce,"-caption")},Gt):void 0,Md=Ha(ge,{data:!0}),ll=Ha(ge,{aria:!0});if(fo||sr){var pi;typeof Jn=="function"?(pi=Jn(ln,{scrollbarSize:oi,ref:io,onScroll:Zr}),Si.colWidths=ya.map(function(Ta,Za){var Qo=Ta.width,Lr=Za===ya.length-1?Qo-oi:Qo;return typeof Lr=="number"&&!Number.isNaN(Lr)?Lr:0})):pi=re.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},ko),Go),onScroll:Zr,ref:io,className:rt()("".concat(ce,"-body"))},re.createElement(nl,(0,He.Z)({style:(0,Le.Z)((0,Le.Z)({},Sr),{},{tableLayout:ri})},ll),il,rl,ol,!Fo&&Xa&&re.createElement(Ot,{stickyOffsets:Oo,flattenColumns:ya,columns:ba},Xa)));var dl=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!ln.length,maxContentScroll:_a&&vo==="max-content"},Si),tr),{},{direction:Ve,stickyClassName:ka,onScroll:Zr});hi=re.createElement(re.Fragment,null,Ht!==!1&&re.createElement(da,(0,He.Z)({},dl,{stickyTopOffset:ni,className:"".concat(ce,"-header"),ref:Xo}),Td),pi,Fo&&Fo!=="top"&&re.createElement(da,(0,He.Z)({},dl,{stickyBottomOffset:fi,className:"".concat(ce,"-summary"),ref:Rr}),Id),sr&&re.createElement(Wn,{ref:Dr,offsetScroll:xa,scrollBodyRef:io,onScroll:Zr,container:bo}))}else hi=re.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},ko),Go),className:rt()("".concat(ce,"-content")),onScroll:Zr,ref:io},re.createElement(nl,(0,He.Z)({style:(0,Le.Z)((0,Le.Z)({},Sr),{},{tableLayout:ri})},ll),il,rl,Ht!==!1&&re.createElement(so,(0,He.Z)({},Si,tr)),ol,Xa&&re.createElement(Ot,{stickyOffsets:Oo,flattenColumns:ya,columns:ba},Xa)));var vi=re.createElement("div",(0,He.Z)({className:rt()(ce,Se,(oe={},(0,fe.Z)(oe,"".concat(ce,"-rtl"),Ve==="rtl"),(0,fe.Z)(oe,"".concat(ce,"-ping-left"),Va),(0,fe.Z)(oe,"".concat(ce,"-ping-right"),Bo),(0,fe.Z)(oe,"".concat(ce,"-layout-fixed"),et==="fixed"),(0,fe.Z)(oe,"".concat(ce,"-fixed-header"),fo),(0,fe.Z)(oe,"".concat(ce,"-fixed-column"),gr),(0,fe.Z)(oe,"".concat(ce,"-scroll-horizontal"),_a),(0,fe.Z)(oe,"".concat(ce,"-has-fix-left"),ya[0]&&ya[0].fixed),(0,fe.Z)(oe,"".concat(ce,"-has-fix-right"),ya[ya.length-1]&&ya[ya.length-1].fixed==="right"),oe)),style:we,id:It,ref:ro},Md),Pt&&re.createElement(at,{className:"".concat(ce,"-title")},Pt(ln)),re.createElement("div",{ref:Ao,className:"".concat(ce,"-container")},hi),vt&&re.createElement(at,{className:"".concat(ce,"-footer")},vt(ln)));_a&&(vi=re.createElement(la.Z,{onResize:Fd},vi));var gl=We(ya,Oo,Ve,ba),Rd=re.useMemo(function(){return{scrollX:vo,prefixCls:ce,getComponent:Kn,scrollbarSize:oi,direction:Ve,fixedInfoList:gl,isSticky:sr,supportSticky:tl,componentWidth:Ln,fixHeader:fo,fixColumn:gr,horizonScroll:_a,tableLayout:ri,rowClassName:ve,expandedRowClassName:ea.expandedRowClassName,expandIcon:Ka,expandableType:oo,expandRowByClick:ea.expandRowByClick,expandedRowRender:ea.expandedRowRender,onTriggerExpand:Do,expandIconColumnIndex:ea.expandIconColumnIndex,indentSize:ea.indentSize,allColumnsFixedLeft:ya.every(function(Ta){return Ta.fixed==="left"}),emptyNode:al,columns:ba,flattenColumns:ya,onColumnResize:Vi,hoverStartRow:pa,hoverEndRow:Ma,onHover:Ca,rowExpandable:ea.rowExpandable,onRow:yn,getRowKey:ga,expandedKeys:Na,childrenColumnName:Ga}},[vo,ce,Kn,oi,Ve,gl,sr,tl,Ln,fo,gr,_a,ri,ve,ea.expandedRowClassName,Ka,oo,ea.expandRowByClick,ea.expandedRowRender,Do,ea.expandIconColumnIndex,ea.indentSize,al,ba,ya,Vi,pa,Ma,Ca,ea.rowExpandable,yn,ga,Na,Ga]);return re.createElement(de.Provider,{value:Rd},vi)}function no(ae){return E(co,ae)}var Ia=no();Ia.EXPAND_COLUMN=le,Ia.INTERNAL_HOOKS=ue,Ia.Column=Yn,Ia.ColumnGroup=wa,Ia.Summary=Sn;var Jo=Ia,qo=te(73299),Mo=Me(null),Ro=Me(null);function Wo(ae,oe,ge){var ce=oe||1;return ge[ae+ce]-(ge[ae]||0)}function yo(ae){var oe=ae.rowInfo,ge=ae.column,ce=ae.colIndex,Se=ae.indent,ve=ae.index,we=ae.renderIndex,Be=ae.record,Ne=ae.style,je=ae.className,et=ae.inverse,Ve=ae.getHeight,Pt=ge.render,vt=ge.dataIndex,xt=ge.className,Gt=ge.width,It=Re(Ro,["columnsOffset"]),Ht=It.columnsOffset,Dt=za(oe,ge,ce,Se,ve),_t=Dt.key,yn=Dt.fixedInfo,On=Dt.appendCellNode,fn=Dt.additionalCellProps,Vn=fn.style,qn=fn.colSpan,rn=qn===void 0?1:qn,hn=fn.rowSpan,ln=hn===void 0?1:hn,Xt=ce-1,un=Wo(Xt,rn,Ht),Kn=rn>1?Gt-un:0,ga=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},Vn),Ne),{},{flex:"0 0 ".concat(un,"px"),width:"".concat(un,"px"),marginRight:Kn,pointerEvents:"auto"}),Jn=re.useMemo(function(){return et?ln<=1:rn===0||ln===0||ln>1},[ln,rn,et]);Jn?ga.visibility="hidden":et&&(ga.height=Ve==null?void 0:Ve(ln));var Tn=Jn?function(){return null}:Pt,ca={};return(ln===0||rn===0)&&(ca.rowSpan=1,ca.colSpan=1),re.createElement(St,(0,He.Z)({className:rt()(xt,je),ellipsis:ge.ellipsis,align:ge.align,scope:ge.rowScope,component:"div",prefixCls:oe.prefixCls,key:_t,record:Be,index:ve,renderIndex:we,dataIndex:vt,render:Tn,shouldCellUpdate:ge.shouldCellUpdate},yn,{appendNode:On,additionalProps:(0,Le.Z)((0,Le.Z)({},fn),{},{style:ga},ca)}))}var er=yo,rr=["data","index","className","rowKey","style","extra","getHeight"],Lo=re.forwardRef(function(ae,oe){var ge=ae.data,ce=ae.index,Se=ae.className,ve=ae.rowKey,we=ae.style,Be=ae.extra,Ne=ae.getHeight,je=(0,Nn.Z)(ae,rr),et=ge.record,Ve=ge.indent,Pt=ge.index,vt=Re(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),xt=vt.scrollX,Gt=vt.flattenColumns,It=vt.prefixCls,Ht=vt.fixColumn,Dt=vt.componentWidth,_t=Ja(et,ve,ce,Ve),yn=_t.rowSupportExpand,On=_t.expanded,fn=_t.rowProps,Vn=_t.expandedRowRender,qn=_t.expandedRowClassName,rn;if(yn&&On){var hn=Vn(et,ce,Ve+1,On),ln=qn==null?void 0:qn(et,ce,Ve),Xt={};Ht&&(Xt={style:(0,fe.Z)({},"--virtual-width","".concat(Dt,"px"))});var un="".concat(It,"-expanded-row-cell");rn=re.createElement("div",{className:rt()("".concat(It,"-expanded-row"),"".concat(It,"-expanded-row-level-").concat(Ve+1),ln)},re.createElement(St,{component:"div",prefixCls:It,className:rt()(un,(0,fe.Z)({},"".concat(un,"-fixed"),Ht)),additionalProps:Xt},hn))}var Kn=(0,Le.Z)((0,Le.Z)({},we),{},{width:xt});Be&&(Kn.position="absolute",Kn.pointerEvents="none");var ga=re.createElement("div",(0,He.Z)({},fn,je,{ref:yn?null:oe,className:rt()(Se,"".concat(It,"-row"),fn==null?void 0:fn.className,(0,fe.Z)({},"".concat(It,"-row-extra"),Be)),style:(0,Le.Z)((0,Le.Z)({},Kn),fn==null?void 0:fn.style)}),Gt.map(function(Jn,Tn){return re.createElement(er,{key:Tn,rowInfo:_t,column:Jn,colIndex:Tn,indent:Ve,index:ce,renderIndex:Pt,record:et,inverse:Be,getHeight:Ne})}));return yn?re.createElement("div",{ref:oe},ga,rn):ga}),Br=z(Lo),Uo=Br,Wr=re.forwardRef(function(ae,oe){var ge=ae.data,ce=ae.onScroll,Se=Re(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ve=Se.flattenColumns,we=Se.onColumnResize,Be=Se.getRowKey,Ne=Se.expandedKeys,je=Se.prefixCls,et=Se.childrenColumnName,Ve=Se.emptyNode,Pt=Se.scrollX,vt=Re(Mo),xt=vt.scrollY,Gt=vt.listItemHeight,It=re.useRef(),Ht=sa(ge,et,Ne,Be),Dt=re.useMemo(function(){var rn=0;return ve.map(function(hn){var ln=hn.width,Xt=hn.key;return rn+=ln,[Xt,ln,rn]})},[ve]),_t=re.useMemo(function(){return Dt.map(function(rn){return rn[2]})},[Dt]);re.useEffect(function(){Dt.forEach(function(rn){var hn=(0,$e.Z)(rn,2),ln=hn[0],Xt=hn[1];we(ln,Xt)})},[Dt]),re.useImperativeHandle(oe,function(){var rn={};return Object.defineProperty(rn,"scrollLeft",{get:function(){var ln;return((ln=It.current)===null||ln===void 0?void 0:ln.getScrollInfo().x)||0},set:function(ln){var Xt;(Xt=It.current)===null||Xt===void 0||Xt.scrollTo({left:ln})}}),rn});var yn=function(hn,ln){var Xt,un=(Xt=Ht[ln])===null||Xt===void 0?void 0:Xt.record,Kn=hn.onCell;if(Kn){var ga,Jn=Kn(un,ln);return(ga=Jn==null?void 0:Jn.rowSpan)!==null&&ga!==void 0?ga:1}return 1},On=function(hn){var ln=hn.start,Xt=hn.end,un=hn.getSize,Kn=hn.offsetY;if(Xt<0)return null;for(var ga=ve.filter(function(kn){return yn(kn,ln)===0}),Jn=ln,Tn=function(Rn){if(ga=ga.filter(function(In){return yn(In,Rn)===0}),!ga.length)return Jn=Rn,"break"},ca=ln;ca>=0;ca-=1){var pa=Tn(ca);if(pa==="break")break}for(var Ma=ve.filter(function(kn){return yn(kn,Xt)!==1}),Ca=Xt,Ya=function(Rn){if(Ma=Ma.filter(function(In){return yn(In,Rn)!==1}),!Ma.length)return Ca=Math.max(Rn-1,Xt),"break"},Qa=Xt;Qa<Ht.length;Qa+=1){var ea=Ya(Qa);if(ea==="break")break}for(var oo=[],Na=function(Rn){var In=Ht[Rn];if(!In)return"continue";ve.some(function(Ln){return yn(Ln,Rn)>1})&&oo.push(Rn)},Ka=Jn;Ka<=Ca;Ka+=1)var Ga=Na(Ka);var Do=oo.map(function(kn){var Rn=Ht[kn],In=Be(Rn.record,kn),Ln=function(Qn){var ba=kn+Qn-1,ya=Be(Ht[ba].record,ba),wo=un(In,ya);return wo.bottom-wo.top},Fa=un(In);return re.createElement(Uo,{key:kn,data:Rn,rowKey:In,index:kn,style:{top:-Kn+Fa.top},extra:!0,getHeight:Ln})});return Do},fn=re.useMemo(function(){return{columnsOffset:_t}},[_t]),Vn="".concat(je,"-tbody"),qn;return Ht.length?qn=re.createElement(qo.Z,{fullHeight:!1,ref:It,className:rt()(Vn,"".concat(Vn,"-virtual")),height:xt,itemHeight:Gt||24,data:Ht,itemKey:function(hn){return Be(hn.record)},scrollWidth:Pt,onVirtualScroll:function(hn){var ln=hn.x;ce({scrollLeft:ln})},extraRender:On},function(rn,hn,ln){var Xt=Be(rn.record,hn);return re.createElement(Uo,(0,He.Z)({data:rn,rowKey:Xt,index:hn},ln))}):qn=re.createElement("div",{className:rt()("".concat(je,"-placeholder"))},re.createElement(St,{component:"div",prefixCls:je},Ve)),re.createElement(Ro.Provider,{value:fn},qn)}),_o=z(Wr),Ur=_o,br=function(oe,ge){var ce=ge.ref,Se=ge.onScroll;return re.createElement(Ur,{ref:ce,data:oe,onScroll:Se})},Or=100;function qa(ae){var oe=ae.columns,ge=ae.scroll,ce=ae.prefixCls,Se=ce===void 0?Pa:ce,ve=ae.className,we=ae.listItemHeight,Be=ge||{},Ne=Be.x,je=Be.y;typeof Ne!="number"&&(Ne=((oe||[]).length+1)*Or),typeof je!="number"&&(je=500);var et=re.useMemo(function(){return{scrollY:je,listItemHeight:we}},[je,we]);return re.createElement(Mo.Provider,{value:et},re.createElement(Jo,(0,He.Z)({},ae,{className:rt()(ve,"".concat(Se,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},ge),{},{x:Ne}),components:{body:br},columns:oe,internalHooks:ue,tailor:!0})))}function eo(ae){return E(qa,ae)}var po=eo(),$r=null;function Yr(ae){return null}var ao=Yr;function ir(ae){return null}var ur=ir,xr=te(10366),mr=te(58375),lr=te(53124),Gr=te(88258),Tr=te(98675),Ir=te(25378),Ei=te(24457),cl=te(28452),ul=te(57953),ml=te(46605);function fl(ae){return function(ge){let{prefixCls:ce,onExpand:Se,record:ve,expanded:we,expandable:Be}=ge;const Ne=`${ce}-row-expand-icon`;return re.createElement("button",{type:"button",onClick:je=>{Se(ve,je),je.stopPropagation()},className:rt()(Ne,{[`${Ne}-spaced`]:!Be,[`${Ne}-expanded`]:Be&&we,[`${Ne}-collapsed`]:Be&&!we}),"aria-label":we?ae.collapse:ae.expand,"aria-expanded":we})}}var hl=fl;function Mr(ae,oe){return"key"in ae&&ae.key!==void 0&&ae.key!==null?ae.key:ae.dataIndex?Array.isArray(ae.dataIndex)?ae.dataIndex.join("."):ae.dataIndex:oe}function Vr(ae,oe){return oe?`${oe}-${ae}`:`${ae}`}function Qr(ae,oe){return typeof ae=="function"?ae(oe):ae}function Sl(ae,oe){const ge=Qr(ae,oe);return Object.prototype.toString.call(ge)==="[object Object]"?"":ge}var pl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},vl=pl,Pl=te(74643),yl=function(oe,ge){return re.createElement(Pl.Z,(0,He.Z)({},oe,{ref:ge,icon:vl}))},bl=re.forwardRef(yl),Ci=te(7699),xl=te(57838);function El(ae){const oe=re.useRef(ae),ge=(0,xl.Z)();return[()=>oe.current,ce=>{oe.current=ce,ge()}]}var Li=te(71577),Jr=te(84567),wi=te(85418),Ni=te(32983),Cl=te(68508),Ll=te(76529),Fi=te(78045),wl=te(79870),Nl=te(72395),Fl=te(69677);function Bl(ae){let{value:oe,onChange:ge,filterSearch:ce,tablePrefixCls:Se,locale:ve}=ae;return ce?re.createElement("div",{className:`${Se}-filter-dropdown-search`},re.createElement(Fl.default,{prefix:re.createElement(Nl.Z,null),placeholder:ve.filterSearchPlaceholder,onChange:ge,value:oe,htmlSize:1,className:`${Se}-filter-dropdown-search-input`})):null}var Bi=Bl,Oi=te(92389);const Ol=ae=>{const{keyCode:oe}=ae;oe===Oi.Z.ENTER&&ae.stopPropagation()};var $l=re.forwardRef((ae,oe)=>re.createElement("div",{className:ae.className,onClick:ge=>ge.stopPropagation(),onKeyDown:Ol,ref:oe},ae.children));function Kr(ae){let oe=[];return(ae||[]).forEach(ge=>{let{value:ce,children:Se}=ge;oe.push(ce),Se&&(oe=[].concat((0,Da.Z)(oe),(0,Da.Z)(Kr(Se))))}),oe}function Tl(ae){return ae.some(oe=>{let{children:ge}=oe;return ge})}function $i(ae,oe){return typeof oe=="string"||typeof oe=="number"?oe==null?void 0:oe.toString().toLowerCase().includes(ae.trim().toLowerCase()):!1}function Ti(ae){let{filters:oe,prefixCls:ge,filteredKeys:ce,filterMultiple:Se,searchValue:ve,filterSearch:we}=ae;return oe.map((Be,Ne)=>{const je=String(Be.value);if(Be.children)return{key:je||Ne,label:Be.text,popupClassName:`${ge}-dropdown-submenu`,children:Ti({filters:Be.children,prefixCls:ge,filteredKeys:ce,filterMultiple:Se,searchValue:ve,filterSearch:we})};const et=Se?Jr.default:Fi.ZP,Ve={key:Be.value!==void 0?je:Ne,label:re.createElement(re.Fragment,null,re.createElement(et,{checked:ce.includes(je)}),re.createElement("span",null,Be.text))};return ve.trim()?typeof we=="function"?we(ve,Be)?Ve:null:$i(ve,Be.text)?Ve:null:Ve})}function Il(ae){var oe,ge;const{tablePrefixCls:ce,prefixCls:Se,column:ve,dropdownPrefixCls:we,columnKey:Be,filterMultiple:Ne,filterMode:je="menu",filterSearch:et=!1,filterState:Ve,triggerFilter:Pt,locale:vt,children:xt,getPopupContainer:Gt}=ae,{filterDropdownOpen:It,onFilterDropdownOpenChange:Ht,filterResetToDefaultFilteredValue:Dt,defaultFilteredValue:_t,filterDropdownVisible:yn,onFilterDropdownVisibleChange:On}=ve,[fn,Vn]=re.useState(!1),qn=!!(Ve&&(!((oe=Ve.filteredKeys)===null||oe===void 0)&&oe.length||Ve.forceFiltered)),rn=wn=>{Vn(wn),Ht==null||Ht(wn),On==null||On(wn)},hn=(ge=It!=null?It:yn)!==null&&ge!==void 0?ge:fn,ln=Ve==null?void 0:Ve.filteredKeys,[Xt,un]=El(ln||[]),Kn=wn=>{let{selectedKeys:Qn}=wn;un(Qn)},ga=(wn,Qn)=>{let{node:ba,checked:ya}=Qn;Kn(Ne?{selectedKeys:wn}:{selectedKeys:ya&&ba.key?[ba.key]:[]})};re.useEffect(()=>{fn&&Kn({selectedKeys:ln||[]})},[ln]);const[Jn,Tn]=re.useState([]),ca=wn=>{Tn(wn)},[pa,Ma]=re.useState(""),Ca=wn=>{const{value:Qn}=wn.target;Ma(Qn)};re.useEffect(()=>{fn||Ma("")},[fn]);const Ya=wn=>{const Qn=wn&&wn.length?wn:null;if(Qn===null&&(!Ve||!Ve.filteredKeys)||(0,Ci.Z)(Qn,Ve==null?void 0:Ve.filteredKeys,!0))return null;Pt({column:ve,key:Be,filteredKeys:Qn})},Qa=()=>{rn(!1),Ya(Xt())},ea=function(){let{confirm:wn,closeDropdown:Qn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};wn&&Ya([]),Qn&&rn(!1),Ma(""),un(Dt?(_t||[]).map(ba=>String(ba)):[])},oo=function(){let{closeDropdown:wn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};wn&&rn(!1),Ya(Xt())},Na=wn=>{wn&&ln!==void 0&&un(ln||[]),rn(wn),!wn&&!ve.filterDropdown&&Qa()},Ka=rt()({[`${we}-menu-without-submenu`]:!Tl(ve.filters||[])}),Ga=wn=>{if(wn.target.checked){const Qn=Kr(ve==null?void 0:ve.filters).map(ba=>String(ba));un(Qn)}else un([])},Do=wn=>{let{filters:Qn}=wn;return(Qn||[]).map((ba,ya)=>{const wo=String(ba.value),vo={title:ba.text,key:ba.value!==void 0?wo:ya};return ba.children&&(vo.children=Do({filters:ba.children})),vo})},kn=wn=>{var Qn;return Object.assign(Object.assign({},wn),{text:wn.title,value:wn.key,children:((Qn=wn.children)===null||Qn===void 0?void 0:Qn.map(ba=>kn(ba)))||[]})};let Rn;if(typeof ve.filterDropdown=="function")Rn=ve.filterDropdown({prefixCls:`${we}-custom`,setSelectedKeys:wn=>Kn({selectedKeys:wn}),selectedKeys:Xt(),confirm:oo,clearFilters:ea,filters:ve.filters,visible:hn,close:()=>{rn(!1)}});else if(ve.filterDropdown)Rn=ve.filterDropdown;else{const wn=Xt()||[],Qn=()=>(ve.filters||[]).length===0?re.createElement(Ni.Z,{image:Ni.Z.PRESENTED_IMAGE_SIMPLE,description:vt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):je==="tree"?re.createElement(re.Fragment,null,re.createElement(Bi,{filterSearch:et,value:pa,onChange:Ca,tablePrefixCls:ce,locale:vt}),re.createElement("div",{className:`${ce}-filter-dropdown-tree`},Ne?re.createElement(Jr.default,{checked:wn.length===Kr(ve.filters).length,indeterminate:wn.length>0&&wn.length<Kr(ve.filters).length,className:`${ce}-filter-dropdown-checkall`,onChange:Ga},vt.filterCheckall):null,re.createElement(wl.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ne,checkStrictly:!Ne,className:`${we}-menu`,onCheck:ga,checkedKeys:wn,selectedKeys:wn,showIcon:!1,treeData:Do({filters:ve.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:pa.trim()?ya=>typeof et=="function"?et(pa,kn(ya)):$i(pa,ya.title):void 0}))):re.createElement(re.Fragment,null,re.createElement(Bi,{filterSearch:et,value:pa,onChange:Ca,tablePrefixCls:ce,locale:vt}),re.createElement(Cl.default,{selectable:!0,multiple:Ne,prefixCls:`${we}-menu`,className:Ka,onSelect:Kn,onDeselect:Kn,selectedKeys:wn,getPopupContainer:Gt,openKeys:Jn,onOpenChange:ca,items:Ti({filters:ve.filters||[],filterSearch:et,prefixCls:Se,filteredKeys:Xt(),filterMultiple:Ne,searchValue:pa})})),ba=()=>Dt?(0,Ci.Z)((_t||[]).map(ya=>String(ya)),wn,!0):wn.length===0;Rn=re.createElement(re.Fragment,null,Qn(),re.createElement("div",{className:`${Se}-dropdown-btns`},re.createElement(Li.ZP,{type:"link",size:"small",disabled:ba(),onClick:()=>ea()},vt.filterReset),re.createElement(Li.ZP,{type:"primary",size:"small",onClick:Qa},vt.filterConfirm)))}ve.filterDropdown&&(Rn=re.createElement(Ll.J,{selectable:void 0},Rn));const In=()=>re.createElement($l,{className:`${Se}-dropdown`},Rn);let Ln;typeof ve.filterIcon=="function"?Ln=ve.filterIcon(qn):ve.filterIcon?Ln=ve.filterIcon:Ln=re.createElement(bl,null);const{direction:Fa}=re.useContext(lr.E_);return re.createElement("div",{className:`${Se}-column`},re.createElement("span",{className:`${ce}-column-title`},xt),re.createElement(wi.Z,{dropdownRender:In,trigger:["click"],open:hn,onOpenChange:Na,getPopupContainer:Gt,placement:Fa==="rtl"?"bottomLeft":"bottomRight"},re.createElement("span",{role:"button",tabIndex:-1,className:rt()(`${Se}-trigger`,{active:qn}),onClick:wn=>{wn.stopPropagation()}},Ln)))}var Ml=Il;function ii(ae,oe,ge){let ce=[];return(ae||[]).forEach((Se,ve)=>{var we;const Be=Vr(ve,ge);if(Se.filters||"filterDropdown"in Se||"onFilter"in Se)if("filteredValue"in Se){let Ne=Se.filteredValue;"filterDropdown"in Se||(Ne=(we=Ne==null?void 0:Ne.map(String))!==null&&we!==void 0?we:Ne),ce.push({column:Se,key:Mr(Se,Be),filteredKeys:Ne,forceFiltered:Se.filtered})}else ce.push({column:Se,key:Mr(Se,Be),filteredKeys:oe&&Se.defaultFilteredValue?Se.defaultFilteredValue:void 0,forceFiltered:Se.filtered});"children"in Se&&(ce=[].concat((0,Da.Z)(ce),(0,Da.Z)(ii(Se.children,oe,Be))))}),ce}function Ii(ae,oe,ge,ce,Se,ve,we,Be){return ge.map((Ne,je)=>{const et=Vr(je,Be),{filterMultiple:Ve=!0,filterMode:Pt,filterSearch:vt}=Ne;let xt=Ne;if(xt.filters||xt.filterDropdown){const Gt=Mr(xt,et),It=ce.find(Ht=>{let{key:Dt}=Ht;return Gt===Dt});xt=Object.assign(Object.assign({},xt),{title:Ht=>re.createElement(Ml,{tablePrefixCls:ae,prefixCls:`${ae}-filter`,dropdownPrefixCls:oe,column:xt,columnKey:Gt,filterState:It,filterMultiple:Ve,filterMode:Pt,filterSearch:vt,triggerFilter:ve,locale:Se,getPopupContainer:we},Qr(Ne.title,Ht))})}return"children"in xt&&(xt=Object.assign(Object.assign({},xt),{children:Ii(ae,oe,xt.children,ce,Se,ve,we,et)})),xt})}function Mi(ae){const oe={};return ae.forEach(ge=>{let{key:ce,filteredKeys:Se,column:ve}=ge;const{filters:we,filterDropdown:Be}=ve;if(Be)oe[ce]=Se||null;else if(Array.isArray(Se)){const Ne=Kr(we);oe[ce]=Ne.filter(je=>Se.includes(String(je)))}else oe[ce]=null}),oe}function Ri(ae,oe){return oe.reduce((ge,ce)=>{const{column:{onFilter:Se,filters:ve},filteredKeys:we}=ce;return Se&&we&&we.length?ge.filter(Be=>we.some(Ne=>{const je=Kr(ve),et=je.findIndex(Pt=>String(Pt)===String(Ne)),Ve=et!==-1?je[et]:Ne;return Se(Ve,Be)})):ge},ae)}const Di=ae=>ae.flatMap(oe=>"children"in oe?[oe].concat((0,Da.Z)(Di(oe.children||[]))):[oe]);function Rl(ae){let{prefixCls:oe,dropdownPrefixCls:ge,mergedColumns:ce,onFilterChange:Se,getPopupContainer:ve,locale:we}=ae;const Be=re.useMemo(()=>Di(ce||[]),[ce]),[Ne,je]=re.useState(()=>ii(Be,!0)),et=re.useMemo(()=>{const xt=ii(Be,!1);if(xt.length===0)return xt;let Gt=!0,It=!0;if(xt.forEach(Ht=>{let{filteredKeys:Dt}=Ht;Dt!==void 0?Gt=!1:It=!1}),Gt){const Ht=(Be||[]).map((Dt,_t)=>Mr(Dt,Vr(_t)));return Ne.filter(Dt=>{let{key:_t}=Dt;return Ht.includes(_t)}).map(Dt=>{const _t=Be[Ht.findIndex(yn=>yn===Dt.key)];return Object.assign(Object.assign({},Dt),{column:Object.assign(Object.assign({},Dt.column),_t),forceFiltered:_t.filtered})})}return xt},[Be,Ne]),Ve=re.useMemo(()=>Mi(et),[et]),Pt=xt=>{const Gt=et.filter(It=>{let{key:Ht}=It;return Ht!==xt.key});Gt.push(xt),je(Gt),Se(Mi(Gt),Gt)};return[xt=>Ii(oe,ge,xt,et,we,Pt,ve),et,Ve]}var Dl=Rl;function Al(ae,oe,ge){const ce=re.useRef({});function Se(ve){if(!ce.current||ce.current.data!==ae||ce.current.childrenColumnName!==oe||ce.current.getRowKey!==ge){let Be=function(Ne){Ne.forEach((je,et)=>{const Ve=ge(je,et);we.set(Ve,je),je&&typeof je=="object"&&oe in je&&Be(je[oe]||[])})};const we=new Map;Be(ae),ce.current={data:ae,childrenColumnName:oe,kvMap:we,getRowKey:ge}}return ce.current.kvMap.get(ve)}return[Se]}var zl=te(38780),kl=function(ae,oe){var ge={};for(var ce in ae)Object.prototype.hasOwnProperty.call(ae,ce)&&oe.indexOf(ce)<0&&(ge[ce]=ae[ce]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ce=Object.getOwnPropertySymbols(ae);Se<ce.length;Se++)oe.indexOf(ce[Se])<0&&Object.prototype.propertyIsEnumerable.call(ae,ce[Se])&&(ge[ce[Se]]=ae[ce[Se]]);return ge};const Ai=10;function Gl(ae,oe){const ge={current:ae.current,pageSize:ae.pageSize};return Object.keys(oe&&typeof oe=="object"?oe:{}).forEach(Se=>{const ve=ae[Se];typeof ve!="function"&&(ge[Se]=ve)}),ge}function Kl(ae,oe,ge){const ce=ge&&typeof ge=="object"?ge:{},{total:Se=0}=ce,ve=kl(ce,["total"]),[we,Be]=(0,re.useState)(()=>({current:"defaultCurrent"in ve?ve.defaultCurrent:1,pageSize:"defaultPageSize"in ve?ve.defaultPageSize:Ai})),Ne=(0,zl.Z)(we,ve,{total:Se>0?Se:ae}),je=Math.ceil((Se||ae)/Ne.pageSize);Ne.current>je&&(Ne.current=je||1);const et=(Pt,vt)=>{Be({current:Pt!=null?Pt:1,pageSize:vt||Ne.pageSize})},Ve=(Pt,vt)=>{var xt;ge&&((xt=ge.onChange)===null||xt===void 0||xt.call(ge,Pt,vt)),et(Pt,vt),oe(Pt,vt||(Ne==null?void 0:Ne.pageSize))};return ge===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ne),{onChange:Ve}),et]}var Zl=Kl,Hl=te(42922),zi=te(29873),li=te(97153),jl=te(83898),Wl=te(5663);const Er={},di="SELECT_ALL",gi="SELECT_INVERT",si="SELECT_NONE",ki=[],Gi=(ae,oe)=>{let ge=[];return(oe||[]).forEach(ce=>{ge.push(ce),ce&&typeof ce=="object"&&ae in ce&&(ge=[].concat((0,Da.Z)(ge),(0,Da.Z)(Gi(ae,ce[ae]))))}),ge};var Ul=(ae,oe)=>{const{preserveSelectedRowKeys:ge,selectedRowKeys:ce,defaultSelectedRowKeys:Se,getCheckboxProps:ve,onChange:we,onSelect:Be,onSelectAll:Ne,onSelectInvert:je,onSelectNone:et,onSelectMultiple:Ve,columnWidth:Pt,type:vt,selections:xt,fixed:Gt,renderCell:It,hideSelectAll:Ht,checkStrictly:Dt=!0}=oe||{},{prefixCls:_t,data:yn,pageData:On,getRecordByKey:fn,getRowKey:Vn,expandType:qn,childrenColumnName:rn,locale:hn,getPopupContainer:ln}=ae,[Xt,un]=(0,Wl.Z)(ce||Se||ki,{value:ce}),Kn=re.useRef(new Map),ga=(0,re.useCallback)(kn=>{if(ge){const Rn=new Map;kn.forEach(In=>{let Ln=fn(In);!Ln&&Kn.current.has(In)&&(Ln=Kn.current.get(In)),Rn.set(In,Ln)}),Kn.current=Rn}},[fn,ge]);re.useEffect(()=>{ga(Xt)},[Xt]);const{keyEntities:Jn}=(0,re.useMemo)(()=>{if(Dt)return{keyEntities:null};let kn=yn;if(ge){const Rn=new Set(yn.map((Ln,Fa)=>Vn(Ln,Fa))),In=Array.from(Kn.current).reduce((Ln,Fa)=>{let[wn,Qn]=Fa;return Rn.has(wn)?Ln:Ln.concat(Qn)},[]);kn=[].concat((0,Da.Z)(kn),(0,Da.Z)(In))}return(0,jl.I8)(kn,{externalGetKey:Vn,childrenPropName:rn})},[yn,Vn,Dt,rn,ge]),Tn=(0,re.useMemo)(()=>Gi(rn,On),[rn,On]),ca=(0,re.useMemo)(()=>{const kn=new Map;return Tn.forEach((Rn,In)=>{const Ln=Vn(Rn,In),Fa=(ve?ve(Rn):null)||{};kn.set(Ln,Fa)}),kn},[Tn,Vn,ve]),pa=(0,re.useCallback)(kn=>{var Rn;return!!(!((Rn=ca.get(Vn(kn)))===null||Rn===void 0)&&Rn.disabled)},[ca,Vn]),[Ma,Ca]=(0,re.useMemo)(()=>{if(Dt)return[Xt||[],[]];const{checkedKeys:kn,halfCheckedKeys:Rn}=(0,li.S)(Xt,!0,Jn,pa);return[kn||[],Rn]},[Xt,Dt,Jn,pa]),Ya=(0,re.useMemo)(()=>{const kn=vt==="radio"?Ma.slice(0,1):Ma;return new Set(kn)},[Ma,vt]),Qa=(0,re.useMemo)(()=>vt==="radio"?new Set:new Set(Ca),[Ca,vt]),[ea,oo]=(0,re.useState)(null);re.useEffect(()=>{oe||un(ki)},[!!oe]);const Na=(0,re.useCallback)((kn,Rn)=>{let In,Ln;ga(kn),ge?(In=kn,Ln=kn.map(Fa=>Kn.current.get(Fa))):(In=[],Ln=[],kn.forEach(Fa=>{const wn=fn(Fa);wn!==void 0&&(In.push(Fa),Ln.push(wn))})),un(In),we==null||we(In,Ln,{type:Rn})},[un,fn,we,ge]),Ka=(0,re.useCallback)((kn,Rn,In,Ln)=>{if(Be){const Fa=In.map(wn=>fn(wn));Be(fn(kn),Rn,Fa,Ln)}Na(In,"single")},[Be,fn,Na]),Ga=(0,re.useMemo)(()=>!xt||Ht?null:(xt===!0?[di,gi,si]:xt).map(Rn=>Rn===di?{key:"all",text:hn.selectionAll,onSelect(){Na(yn.map((In,Ln)=>Vn(In,Ln)).filter(In=>{const Ln=ca.get(In);return!(Ln!=null&&Ln.disabled)||Ya.has(In)}),"all")}}:Rn===gi?{key:"invert",text:hn.selectInvert,onSelect(){const In=new Set(Ya);On.forEach((Fa,wn)=>{const Qn=Vn(Fa,wn),ba=ca.get(Qn);ba!=null&&ba.disabled||(In.has(Qn)?In.delete(Qn):In.add(Qn))});const Ln=Array.from(In);je&&je(Ln),Na(Ln,"invert")}}:Rn===si?{key:"none",text:hn.selectNone,onSelect(){et==null||et(),Na(Array.from(Ya).filter(In=>{const Ln=ca.get(In);return Ln==null?void 0:Ln.disabled}),"none")}}:Rn).map(Rn=>Object.assign(Object.assign({},Rn),{onSelect:function(){for(var In,Ln,Fa=arguments.length,wn=new Array(Fa),Qn=0;Qn<Fa;Qn++)wn[Qn]=arguments[Qn];(Ln=Rn.onSelect)===null||Ln===void 0||(In=Ln).call.apply(In,[Rn].concat(wn)),oo(null)}})),[xt,Ya,On,Vn,je,Na]);return[(0,re.useCallback)(kn=>{var Rn;if(!oe)return kn.filter(Oa=>Oa!==Er);let In=(0,Da.Z)(kn);const Ln=new Set(Ya),Fa=Tn.map(Vn).filter(Oa=>!ca.get(Oa).disabled),wn=Fa.every(Oa=>Ln.has(Oa)),Qn=Fa.some(Oa=>Ln.has(Oa)),ba=()=>{const Oa=[];wn?Fa.forEach(Va=>{Ln.delete(Va),Oa.push(Va)}):Fa.forEach(Va=>{Ln.has(Va)||(Ln.add(Va),Oa.push(Va))});const $a=Array.from(Ln);Ne==null||Ne(!wn,$a.map(Va=>fn(Va)),Oa.map(Va=>fn(Va))),Na($a,"all"),oo(null)};let ya;if(vt!=="radio"){let Oa;if(Ga){const va={getPopupContainer:ln,items:Ga.map((Bo,No)=>{const{key:Ho,text:dr,onSelect:nr}=Bo;return{key:Ho!=null?Ho:No,onClick:()=>{nr==null||nr(Fa)},label:dr}})};Oa=re.createElement("div",{className:`${_t}-selection-extra`},re.createElement(wi.Z,{menu:va,getPopupContainer:ln},re.createElement("span",null,re.createElement(Hl.Z,null))))}const $a=Tn.map((va,Bo)=>{const No=Vn(va,Bo),Ho=ca.get(No)||{};return Object.assign({checked:Ln.has(No)},Ho)}).filter(va=>{let{disabled:Bo}=va;return Bo}),Va=!!$a.length&&$a.length===Tn.length,uo=Va&&$a.every(va=>{let{checked:Bo}=va;return Bo}),mo=Va&&$a.some(va=>{let{checked:Bo}=va;return Bo});ya=!Ht&&re.createElement("div",{className:`${_t}-selection`},re.createElement(Jr.default,{checked:Va?uo:!!Tn.length&&wn,indeterminate:Va?!uo&&mo:!wn&&Qn,onChange:ba,disabled:Tn.length===0||Va,"aria-label":Oa?"Custom selection":"Select all",skipGroup:!0}),Oa)}let wo;vt==="radio"?wo=(Oa,$a,Va)=>{const uo=Vn($a,Va),mo=Ln.has(uo);return{node:re.createElement(Fi.ZP,Object.assign({},ca.get(uo),{checked:mo,onClick:va=>va.stopPropagation(),onChange:va=>{Ln.has(uo)||Ka(uo,!0,[uo],va.nativeEvent)}})),checked:mo}}:wo=(Oa,$a,Va)=>{var uo;const mo=Vn($a,Va),va=Ln.has(mo),Bo=Qa.has(mo),No=ca.get(mo);let Ho;return qn==="nest"?Ho=Bo:Ho=(uo=No==null?void 0:No.indeterminate)!==null&&uo!==void 0?uo:Bo,{node:re.createElement(Jr.default,Object.assign({},No,{indeterminate:Ho,checked:va,skipGroup:!0,onClick:dr=>dr.stopPropagation(),onChange:dr=>{let{nativeEvent:nr}=dr;const{shiftKey:Xr}=nr;let hr=-1,Yo=-1;if(Xr&&Dt){const zo=new Set([ea,mo]);Fa.some((Oo,fo)=>{if(zo.has(Oo))if(hr===-1)hr=fo;else return Yo=fo,!0;return!1})}if(Yo!==-1&&hr!==Yo&&Dt){const zo=Fa.slice(hr,Yo+1),Oo=[];va?zo.forEach(_a=>{Ln.has(_a)&&(Oo.push(_a),Ln.delete(_a))}):zo.forEach(_a=>{Ln.has(_a)||(Oo.push(_a),Ln.add(_a))});const fo=Array.from(Ln);Ve==null||Ve(!va,fo.map(_a=>fn(_a)),Oo.map(_a=>fn(_a))),Na(fo,"multiple")}else{const zo=Ma;if(Dt){const Oo=va?(0,zi._5)(zo,mo):(0,zi.L0)(zo,mo);Ka(mo,!va,Oo,nr)}else{const Oo=(0,li.S)([].concat((0,Da.Z)(zo),[mo]),!0,Jn,pa),{checkedKeys:fo,halfCheckedKeys:_a}=Oo;let gr=fo;if(va){const Dr=new Set(fo);Dr.delete(mo),gr=(0,li.S)(Array.from(Dr),{checked:!1,halfCheckedKeys:_a},Jn,pa).checkedKeys}Ka(mo,!va,gr,nr)}}oo(va?null:mo)}})),checked:va}};const vo=(Oa,$a,Va)=>{const{node:uo,checked:mo}=wo(Oa,$a,Va);return It?It(mo,$a,Va,uo):uo};if(!In.includes(Er))if(In.findIndex(Oa=>{var $a;return(($a=Oa[Io])===null||$a===void 0?void 0:$a.columnType)==="EXPAND_COLUMN"})===0){const[Oa,...$a]=In;In=[Oa,Er].concat((0,Da.Z)($a))}else In=[Er].concat((0,Da.Z)(In));const tr=In.indexOf(Er);In=In.filter((Oa,$a)=>Oa!==Er||$a===tr);const ro=In[tr-1],Xo=In[tr+1];let io=Gt;io===void 0&&((Xo==null?void 0:Xo.fixed)!==void 0?io=Xo.fixed:(ro==null?void 0:ro.fixed)!==void 0&&(io=ro.fixed)),io&&ro&&((Rn=ro[Io])===null||Rn===void 0?void 0:Rn.columnType)==="EXPAND_COLUMN"&&ro.fixed===void 0&&(ro.fixed=io);const Ao=rt()(`${_t}-selection-col`,{[`${_t}-selection-col-with-dropdown`]:xt&&vt==="checkbox"}),Rr={fixed:io,width:Pt,className:`${_t}-selection-column`,title:oe.columnTitle||ya,render:vo,onCell:oe.onCell,[Io]:{className:Ao}};return In.map(Oa=>Oa===Er?Rr:Oa)},[Vn,Tn,oe,Ma,Ya,Qa,Pt,Ga,qn,ea,ca,Ve,Ka,pa]),Ya]},Vl=te(33463),_l=te(28575),Xl=te(83062);const qr="ascend",ci="descend";function ei(ae){return typeof ae.sorter=="object"&&typeof ae.sorter.multiple=="number"?ae.sorter.multiple:!1}function Ki(ae){return typeof ae=="function"?ae:ae&&typeof ae=="object"&&ae.compare?ae.compare:!1}function Yl(ae,oe){return oe?ae[ae.indexOf(oe)+1]:ae[0]}function ui(ae,oe,ge){let ce=[];function Se(ve,we){ce.push({column:ve,key:Mr(ve,we),multiplePriority:ei(ve),sortOrder:ve.sortOrder})}return(ae||[]).forEach((ve,we)=>{const Be=Vr(we,ge);ve.children?("sortOrder"in ve&&Se(ve,Be),ce=[].concat((0,Da.Z)(ce),(0,Da.Z)(ui(ve.children,oe,Be)))):ve.sorter&&("sortOrder"in ve?Se(ve,Be):oe&&ve.defaultSortOrder&&ce.push({column:ve,key:Mr(ve,Be),multiplePriority:ei(ve),sortOrder:ve.defaultSortOrder}))}),ce}function Zi(ae,oe,ge,ce,Se,ve,we,Be){return(oe||[]).map((Ne,je)=>{const et=Vr(je,Be);let Ve=Ne;if(Ve.sorter){const Pt=Ve.sortDirections||Se,vt=Ve.showSorterTooltip===void 0?we:Ve.showSorterTooltip,xt=Mr(Ve,et),Gt=ge.find(qn=>{let{key:rn}=qn;return rn===xt}),It=Gt?Gt.sortOrder:null,Ht=Yl(Pt,It);let Dt;if(Ne.sortIcon)Dt=Ne.sortIcon({sortOrder:It});else{const qn=Pt.includes(qr)&&re.createElement(_l.Z,{className:rt()(`${ae}-column-sorter-up`,{active:It===qr})}),rn=Pt.includes(ci)&&re.createElement(Vl.Z,{className:rt()(`${ae}-column-sorter-down`,{active:It===ci})});Dt=re.createElement("span",{className:rt()(`${ae}-column-sorter`,{[`${ae}-column-sorter-full`]:!!(qn&&rn)})},re.createElement("span",{className:`${ae}-column-sorter-inner`,"aria-hidden":"true"},qn,rn))}const{cancelSort:_t,triggerAsc:yn,triggerDesc:On}=ve||{};let fn=_t;Ht===ci?fn=On:Ht===qr&&(fn=yn);const Vn=typeof vt=="object"?vt:{title:fn};Ve=Object.assign(Object.assign({},Ve),{className:rt()(Ve.className,{[`${ae}-column-sort`]:It}),title:qn=>{const rn=re.createElement("div",{className:`${ae}-column-sorters`},re.createElement("span",{className:`${ae}-column-title`},Qr(Ne.title,qn)),Dt);return vt?re.createElement(Xl.Z,Object.assign({},Vn),rn):rn},onHeaderCell:qn=>{const rn=Ne.onHeaderCell&&Ne.onHeaderCell(qn)||{},hn=rn.onClick,ln=rn.onKeyDown;rn.onClick=Kn=>{ce({column:Ne,key:xt,sortOrder:Ht,multiplePriority:ei(Ne)}),hn==null||hn(Kn)},rn.onKeyDown=Kn=>{Kn.keyCode===Oi.Z.ENTER&&(ce({column:Ne,key:xt,sortOrder:Ht,multiplePriority:ei(Ne)}),ln==null||ln(Kn))};const Xt=Sl(Ne.title,{}),un=Xt==null?void 0:Xt.toString();return It?rn["aria-sort"]=It==="ascend"?"ascending":"descending":rn["aria-label"]=un||"",rn.className=rt()(rn.className,`${ae}-column-has-sorters`),rn.tabIndex=0,Ne.ellipsis&&(rn.title=(Xt!=null?Xt:"").toString()),rn}})}return"children"in Ve&&(Ve=Object.assign(Object.assign({},Ve),{children:Zi(ae,Ve.children,ge,ce,Se,ve,we,et)})),Ve})}function Hi(ae){const{column:oe,sortOrder:ge}=ae;return{column:oe,order:ge,field:oe.dataIndex,columnKey:oe.key}}function ji(ae){const oe=ae.filter(ge=>{let{sortOrder:ce}=ge;return ce}).map(Hi);return oe.length===0&&ae.length?Object.assign(Object.assign({},Hi(ae[ae.length-1])),{column:void 0}):oe.length<=1?oe[0]||{}:oe}function mi(ae,oe,ge){const ce=oe.slice().sort((we,Be)=>Be.multiplePriority-we.multiplePriority),Se=ae.slice(),ve=ce.filter(we=>{let{column:{sorter:Be},sortOrder:Ne}=we;return Ki(Be)&&Ne});return ve.length?Se.sort((we,Be)=>{for(let Ne=0;Ne<ve.length;Ne+=1){const je=ve[Ne],{column:{sorter:et},sortOrder:Ve}=je,Pt=Ki(et);if(Pt&&Ve){const vt=Pt(we,Be,Ve);if(vt!==0)return Ve===qr?vt:-vt}}return 0}).map(we=>{const Be=we[ge];return Be?Object.assign(Object.assign({},we),{[ge]:mi(Be,oe,ge)}):we}):Se}function Ql(ae){let{prefixCls:oe,mergedColumns:ge,onSorterChange:ce,sortDirections:Se,tableLocale:ve,showSorterTooltip:we}=ae;const[Be,Ne]=re.useState(ui(ge,!0)),je=re.useMemo(()=>{let xt=!0;const Gt=ui(ge,!1);if(!Gt.length)return Be;const It=[];function Ht(_t){xt?It.push(_t):It.push(Object.assign(Object.assign({},_t),{sortOrder:null}))}let Dt=null;return Gt.forEach(_t=>{Dt===null?(Ht(_t),_t.sortOrder&&(_t.multiplePriority===!1?xt=!1:Dt=!0)):(Dt&&_t.multiplePriority!==!1||(xt=!1),Ht(_t))}),It},[ge,Be]),et=re.useMemo(()=>{const xt=je.map(Gt=>{let{column:It,sortOrder:Ht}=Gt;return{column:It,order:Ht}});return{sortColumns:xt,sortColumn:xt[0]&&xt[0].column,sortOrder:xt[0]&&xt[0].order}},[je]);function Ve(xt){let Gt;xt.multiplePriority===!1||!je.length||je[0].multiplePriority===!1?Gt=[xt]:Gt=[].concat((0,Da.Z)(je.filter(It=>{let{key:Ht}=It;return Ht!==xt.key})),[xt]),Ne(Gt),ce(ji(Gt),Gt)}return[xt=>Zi(oe,xt,je,Ve,Se,ve,we),je,et,()=>ji(je)]}function Wi(ae,oe){return ae.map(ge=>{const ce=Object.assign({},ge);return ce.title=Qr(ge.title,oe),"children"in ce&&(ce.children=Wi(ce.children,oe)),ce})}function Jl(ae){return[re.useCallback(ge=>Wi(ge,ae),[ae])]}var ql=no((ae,oe)=>{const{_renderTimes:ge}=ae,{_renderTimes:ce}=oe;return ge!==ce}),ed=eo((ae,oe)=>{const{_renderTimes:ge}=ae,{_renderTimes:ce}=oe;return ge!==ce}),_r=te(84780),ti=te(14747),td=te(67968),nd=te(45503),ad=ae=>{const{componentCls:oe}=ae,ge=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,ce=(Se,ve,we)=>({[`&${oe}-${Se}`]:{[`> ${oe}-container`]:{[`> ${oe}-content, > ${oe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${oe}-expanded-row-fixed`]:{margin:`-${ve}px -${we+ae.lineWidth}px`}}}}}});return{[`${oe}-wrapper`]:{[`${oe}${oe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${oe}-title`]:{border:ge,borderBottom:0},[`> ${oe}-container`]:{borderInlineStart:ge,borderTop:ge,[`
|
|
> ${oe}-content,
|
|
> ${oe}-header,
|
|
> ${oe}-body,
|
|
> ${oe}-summary
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:ge},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ge},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${oe}-cell-fix-right-first::after`]:{borderInlineEnd:ge}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${oe}-expanded-row-fixed`]:{margin:`-${ae.tablePaddingVertical}px -${ae.tablePaddingHorizontal+ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ae.lineWidth,bottom:0,borderInlineEnd:ge,content:'""'}}}}}},[`&${oe}-scroll-horizontal`]:{[`> ${oe}-container > ${oe}-body`]:{"> table > tbody":{[`
|
|
> tr${oe}-expanded-row,
|
|
> tr${oe}-placeholder
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ce("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle)),ce("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall)),{[`> ${oe}-footer`]:{border:ge,borderTop:0}}),[`${oe}-cell`]:{[`${oe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae.lineWidth}px 0 ${ae.lineWidth}px ${ae.tableHeaderBg}`}},[`${oe}-bordered ${oe}-cell-scrollbar`]:{borderInlineEnd:ge}}}},od=ae=>{const{componentCls:oe}=ae;return{[`${oe}-wrapper`]:{[`${oe}-cell-ellipsis`]:Object.assign(Object.assign({},ti.vS),{wordBreak:"keep-all",[`
|
|
&${oe}-cell-fix-left-last,
|
|
&${oe}-cell-fix-right-first
|
|
`]:{overflow:"visible",[`${oe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${oe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},rd=ae=>{const{componentCls:oe}=ae;return{[`${oe}-wrapper`]:{[`${oe}-tbody > tr${oe}-placeholder`]:{textAlign:"center",color:ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ae.colorBgContainer}}}}},id=te(49867),ld=ae=>{const{componentCls:oe,antCls:ge,controlInteractiveSize:ce,motionDurationSlow:Se,lineWidth:ve,paddingXS:we,lineType:Be,tableBorderColor:Ne,tableExpandIconBg:je,tableExpandColumnWidth:et,borderRadius:Ve,fontSize:Pt,fontSizeSM:vt,lineHeight:xt,tablePaddingVertical:Gt,tablePaddingHorizontal:It,tableExpandedRowBg:Ht,paddingXXS:Dt}=ae,_t=ce/2-ve,yn=_t*2+ve*3,On=`${ve}px ${Be} ${Ne}`,fn=Dt-ve;return{[`${oe}-wrapper`]:{[`${oe}-expand-icon-col`]:{width:et},[`${oe}-row-expand-icon-cell`]:{textAlign:"center",[`${oe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${oe}-row-indent`]:{height:1,float:"left"},[`${oe}-row-expand-icon`]:Object.assign(Object.assign({},(0,id.N)(ae)),{position:"relative",float:"left",boxSizing:"border-box",width:yn,height:yn,padding:0,color:"inherit",lineHeight:`${yn}px`,background:je,border:On,borderRadius:Ve,transform:`scale(${ce/yn})`,transition:`all ${Se}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Se} ease-out`,content:'""'},"&::before":{top:_t,insetInlineEnd:fn,insetInlineStart:fn,height:ve},"&::after":{top:fn,bottom:fn,insetInlineStart:_t,width:ve,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${oe}-row-indent + ${oe}-row-expand-icon`]:{marginTop:(Pt*xt-ve*3)/2-Math.ceil((vt*1.4-ve*3)/2),marginInlineEnd:we},[`tr${oe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ht}},[`${ge}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${oe}-expanded-row-fixed`]:{position:"relative",margin:`-${Gt}px -${It}px`,padding:`${Gt}px ${It}px`}}}},dd=ae=>{const{componentCls:oe,antCls:ge,iconCls:ce,tableFilterDropdownWidth:Se,tableFilterDropdownSearchWidth:ve,paddingXXS:we,paddingXS:Be,colorText:Ne,lineWidth:je,lineType:et,tableBorderColor:Ve,tableHeaderIconColor:Pt,fontSizeSM:vt,tablePaddingHorizontal:xt,borderRadius:Gt,motionDurationSlow:It,colorTextDescription:Ht,colorPrimary:Dt,tableHeaderFilterActiveBg:_t,colorTextDisabled:yn,tableFilterDropdownBg:On,tableFilterDropdownHeight:fn,controlItemBgHover:Vn,controlItemBgActive:qn,boxShadowSecondary:rn,filterDropdownMenuBg:hn}=ae,ln=`${ge}-dropdown`,Xt=`${oe}-filter-dropdown`,un=`${ge}-tree`,Kn=`${je}px ${et} ${Ve}`;return[{[`${oe}-wrapper`]:{[`${oe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${oe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-we,marginInline:`${we}px ${-xt/2}px`,padding:`0 ${we}px`,color:Pt,fontSize:vt,borderRadius:Gt,cursor:"pointer",transition:`all ${It}`,"&:hover":{color:Ht,background:_t},"&.active":{color:Dt}}}},{[`${ge}-dropdown`]:{[Xt]:Object.assign(Object.assign({},(0,ti.Wf)(ae)),{minWidth:Se,backgroundColor:On,borderRadius:Gt,boxShadow:rn,overflow:"hidden",[`${ln}-menu`]:{maxHeight:fn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Be}px 0`,color:yn,fontSize:vt,textAlign:"center",content:'"Not Found"'}},[`${Xt}-tree`]:{paddingBlock:`${Be}px 0`,paddingInline:Be,[un]:{padding:0},[`${un}-treenode ${un}-node-content-wrapper:hover`]:{backgroundColor:Vn},[`${un}-treenode-checkbox-checked ${un}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:qn}}},[`${Xt}-search`]:{padding:Be,borderBottom:Kn,"&-input":{input:{minWidth:ve},[ce]:{color:yn}}},[`${Xt}-checkall`]:{width:"100%",marginBottom:we,marginInlineStart:we},[`${Xt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Be-je}px ${Be}px`,overflow:"hidden",borderTop:Kn}})}},{[`${ge}-dropdown ${Xt}, ${Xt}-submenu`]:{[`${ge}-checkbox-wrapper + span`]:{paddingInlineStart:Be,color:Ne},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},gd=ae=>{const{componentCls:oe,lineWidth:ge,colorSplit:ce,motionDurationSlow:Se,zIndexTableFixed:ve,tableBg:we,zIndexTableSticky:Be}=ae,Ne=ce;return{[`${oe}-wrapper`]:{[`
|
|
${oe}-cell-fix-left,
|
|
${oe}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:ve,background:we},[`
|
|
${oe}-cell-fix-left-first::after,
|
|
${oe}-cell-fix-left-last::after
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-ge,width:30,transform:"translateX(100%)",transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},[`${oe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
${oe}-cell-fix-right-first::after,
|
|
${oe}-cell-fix-right-last::after
|
|
`]:{position:"absolute",top:0,bottom:-ge,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},[`${oe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Be+1,width:30,transition:`box-shadow ${Se}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${oe}-ping-left`]:{[`&:not(${oe}-has-fix-left) ${oe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ne}`}},[`
|
|
${oe}-cell-fix-left-first::after,
|
|
${oe}-cell-fix-left-last::after
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ne}`},[`${oe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${oe}-ping-right`]:{[`&:not(${oe}-has-fix-right) ${oe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ne}`}},[`
|
|
${oe}-cell-fix-right-first::after,
|
|
${oe}-cell-fix-right-last::after
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ne}`}}}}},sd=ae=>{const{componentCls:oe,antCls:ge}=ae;return{[`${oe}-wrapper`]:{[`${oe}-pagination${ge}-pagination`]:{margin:`${ae.margin}px 0`},[`${oe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},cd=ae=>{const{componentCls:oe,tableRadius:ge}=ae;return{[`${oe}-wrapper`]:{[oe]:{[`${oe}-title, ${oe}-header`]:{borderRadius:`${ge}px ${ge}px 0 0`},[`${oe}-title + ${oe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${oe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:ge,borderStartEndRadius:ge,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ge},"> *:last-child":{borderStartEndRadius:ge}}},"&-footer":{borderRadius:`0 0 ${ge}px ${ge}px`}}}}},ud=ae=>{const{componentCls:oe}=ae;return{[`${oe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${oe}-pagination-left`]:{justifyContent:"flex-end"},[`${oe}-pagination-right`]:{justifyContent:"flex-start"},[`${oe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${oe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${oe}-row-indent`]:{float:"right"}}}}},md=ae=>{const{componentCls:oe,antCls:ge,iconCls:ce,fontSizeIcon:Se,padding:ve,paddingXS:we,tableHeaderIconColor:Be,tableHeaderIconColorHover:Ne,tableSelectionColumnWidth:je}=ae;return{[`${oe}-wrapper`]:{[`${oe}-selection-col`]:{width:je,[`&${oe}-selection-col-with-dropdown`]:{width:je+Se+ve/4}},[`${oe}-bordered ${oe}-selection-col`]:{width:je+we*2,[`&${oe}-selection-col-with-dropdown`]:{width:je+Se+ve/4+we*2}},[`
|
|
table tr th${oe}-selection-column,
|
|
table tr td${oe}-selection-column
|
|
`]:{paddingInlineEnd:ae.paddingXS,paddingInlineStart:ae.paddingXS,textAlign:"center",[`${ge}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${oe}-selection-column${oe}-cell-fix-left`]:{zIndex:ae.zIndexTableFixed+1},[`table tr th${oe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${oe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${oe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ae.tablePaddingHorizontal/4}px`,[ce]:{color:Be,fontSize:Se,verticalAlign:"baseline","&:hover":{color:Ne}}}}}},fd=ae=>{const{componentCls:oe}=ae,ge=(ce,Se,ve,we)=>({[`${oe}${oe}-${ce}`]:{fontSize:we,[`
|
|
${oe}-title,
|
|
${oe}-footer,
|
|
${oe}-cell,
|
|
${oe}-thead > tr > th,
|
|
${oe}-tbody > tr > th,
|
|
${oe}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{padding:`${Se}px ${ve}px`},[`${oe}-filter-trigger`]:{marginInlineEnd:`-${ve/2}px`},[`${oe}-expanded-row-fixed`]:{margin:`-${Se}px -${ve}px`},[`${oe}-tbody`]:{[`${oe}-wrapper:only-child ${oe}`]:{marginBlock:`-${Se}px`,marginInline:`${ae.tableExpandColumnWidth-ve}px -${ve}px`}},[`${oe}-selection-column`]:{paddingInlineStart:`${ve/4}px`}}});return{[`${oe}-wrapper`]:Object.assign(Object.assign({},ge("middle",ae.tablePaddingVerticalMiddle,ae.tablePaddingHorizontalMiddle,ae.tableFontSizeMiddle)),ge("small",ae.tablePaddingVerticalSmall,ae.tablePaddingHorizontalSmall,ae.tableFontSizeSmall))}},hd=ae=>{const{componentCls:oe,marginXXS:ge,fontSizeIcon:ce,tableHeaderIconColor:Se,tableHeaderIconColorHover:ve}=ae;return{[`${oe}-wrapper`]:{[`${oe}-thead th${oe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ae.motionDurationSlow}`,"&:hover":{background:ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ae.colorPrimary},[`
|
|
&${oe}-cell-fix-left:hover,
|
|
&${oe}-cell-fix-right:hover
|
|
`]:{background:ae.tableFixedHeaderSortActiveBg}},[`${oe}-thead th${oe}-column-sort`]:{background:ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${oe}-column-sort`]:{background:ae.tableBodySortBg},[`${oe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${oe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${oe}-column-sorter`]:{marginInlineStart:ge,color:Se,fontSize:0,transition:`color ${ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ce,"&.active":{color:ae.colorPrimary}},[`${oe}-column-sorter-up + ${oe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${oe}-column-sorters:hover ${oe}-column-sorter`]:{color:ve}}}},Sd=ae=>{const{componentCls:oe,opacityLoading:ge,tableScrollThumbBg:ce,tableScrollThumbBgHover:Se,tableScrollThumbSize:ve,tableScrollBg:we,zIndexTableSticky:Be,stickyScrollBarBorderRadius:Ne}=ae,je=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`;return{[`${oe}-wrapper`]:{[`${oe}-sticky`]:{"&-holder":{position:"sticky",zIndex:Be,background:ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ve}px !important`,zIndex:Be,display:"flex",alignItems:"center",background:we,borderTop:je,opacity:ge,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ve,backgroundColor:ce,borderRadius:Ne,transition:`all ${ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Se}}}}}}},Ui=ae=>{const{componentCls:oe,lineWidth:ge,tableBorderColor:ce}=ae,Se=`${ge}px ${ae.lineType} ${ce}`;return{[`${oe}-wrapper`]:{[`${oe}-summary`]:{position:"relative",zIndex:ae.zIndexTableFixed,background:ae.tableBg,"> tr":{"> th, > td":{borderBottom:Se}}},[`div${oe}-summary`]:{boxShadow:`0 -${ge}px 0 ${ce}`}}}},pd=ae=>{const{componentCls:oe}=ae,ge=`${ae.lineWidth}px ${ae.lineType} ${ae.tableBorderColor}`,ce=`${oe}-expanded-row-cell`;return{[`${oe}-wrapper`]:{[`${oe}-tbody-virtual`]:{[`${oe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${oe}-cell`]:{borderBottom:ge},[`${oe}-expanded-row`]:{[`${ce}${ce}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae.lineWidth}px)`,borderInlineEnd:"none"}}},[`${oe}-bordered`]:{[`${oe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ge,position:"absolute"},[`${oe}-cell`]:{borderInlineEnd:ge,[`&${oe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ae.lineWidth,borderInlineStart:ge}}}}}}};const vd=ae=>{const{componentCls:oe,fontWeightStrong:ge,tablePaddingVertical:ce,tablePaddingHorizontal:Se,lineWidth:ve,lineType:we,tableBorderColor:Be,tableFontSize:Ne,tableBg:je,tableRadius:et,tableHeaderTextColor:Ve,motionDurationMid:Pt,tableHeaderBg:vt,tableHeaderCellSplitColor:xt,tableRowHoverBg:Gt,tableSelectedRowBg:It,tableSelectedRowHoverBg:Ht,tableFooterTextColor:Dt,tableFooterBg:_t,paddingContentVerticalLG:yn}=ae,On=`${ve}px ${we} ${Be}`;return{[`${oe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ti.dF)()),{[oe]:Object.assign(Object.assign({},(0,ti.Wf)(ae)),{fontSize:Ne,background:je,borderRadius:`${et}px ${et}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${et}px ${et}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
${oe}-cell,
|
|
${oe}-thead > tr > th,
|
|
${oe}-tbody > tr > th,
|
|
${oe}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{position:"relative",padding:`${yn}px ${Se}px`,overflowWrap:"break-word"},[`${oe}-title`]:{padding:`${ce}px ${Se}px`},[`${oe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ve,fontWeight:ge,textAlign:"start",background:vt,borderBottom:On,transition:`background ${Pt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${oe}-selection-column):not(${oe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:xt,transform:"translateY(-50%)",transition:`background-color ${Pt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${oe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Pt}, border-color ${Pt}`,borderBottom:On,[`
|
|
> ${oe}-wrapper:only-child,
|
|
> ${oe}-expanded-row-fixed > ${oe}-wrapper:only-child
|
|
`]:{[oe]:{marginBlock:`-${ce}px`,marginInline:`${ae.tableExpandColumnWidth-Se}px -${Se}px`,[`${oe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ve,fontWeight:ge,textAlign:"start",background:vt,borderBottom:On,transition:`background ${Pt} ease`},[`
|
|
&${oe}-row:hover > th,
|
|
&${oe}-row:hover > td,
|
|
> th${oe}-cell-row-hover,
|
|
> td${oe}-cell-row-hover
|
|
`]:{background:Gt},[`&${oe}-row-selected`]:{"> th, > td":{background:It},"&:hover > th, &:hover > td":{background:Ht}}}},[`${oe}-footer`]:{padding:`${ce}px ${Se}px`,color:Dt,background:_t}})}};var Pd=(0,td.Z)("Table",ae=>{const{colorTextHeading:oe,colorSplit:ge,colorIcon:ce,colorIconHover:Se,opacityLoading:ve,colorBgContainer:we,controlInteractiveSize:Be,headerBg:Ne,headerColor:je,headerSortActiveBg:et,headerSortHoverBg:Ve,bodySortBg:Pt,rowHoverBg:vt,rowSelectedBg:xt,rowSelectedHoverBg:Gt,rowExpandedBg:It,cellPaddingBlock:Ht,cellPaddingInline:Dt,cellPaddingBlockMD:_t,cellPaddingInlineMD:yn,cellPaddingBlockSM:On,cellPaddingInlineSM:fn,borderColor:Vn,footerBg:qn,footerColor:rn,headerBorderRadius:hn,cellFontSize:ln,cellFontSizeMD:Xt,cellFontSizeSM:un,headerSplitColor:Kn,fixedHeaderSortActiveBg:ga,headerFilterHoverBg:Jn,filterDropdownBg:Tn,expandIconBg:ca,selectionColumnWidth:pa,stickyScrollBarBg:Ma}=ae,Ca=new _r.C(ce),Ya=new _r.C(Se),Qa=2,ea=(0,nd.TS)(ae,{tableFontSize:ln,tableBg:we,tableRadius:hn,tablePaddingVertical:Ht,tablePaddingHorizontal:Dt,tablePaddingVerticalMiddle:_t,tablePaddingHorizontalMiddle:yn,tablePaddingVerticalSmall:On,tablePaddingHorizontalSmall:fn,tableBorderColor:Vn,tableHeaderTextColor:je,tableHeaderBg:Ne,tableFooterTextColor:rn,tableFooterBg:qn,tableHeaderCellSplitColor:Kn,tableHeaderSortBg:et,tableHeaderSortHoverBg:Ve,tableHeaderIconColor:Ca.clone().setAlpha(Ca.getAlpha()*ve).toRgbString(),tableHeaderIconColorHover:Ya.clone().setAlpha(Ya.getAlpha()*ve).toRgbString(),tableBodySortBg:Pt,tableFixedHeaderSortActiveBg:ga,tableHeaderFilterActiveBg:Jn,tableFilterDropdownBg:Tn,tableRowHoverBg:vt,tableSelectedRowBg:xt,tableSelectedRowHoverBg:Gt,zIndexTableFixed:Qa,zIndexTableSticky:Qa+1,tableFontSizeMiddle:Xt,tableFontSizeSmall:un,tableSelectionColumnWidth:pa,tableExpandIconBg:ca,tableExpandColumnWidth:Be+2*ae.padding,tableExpandedRowBg:It,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ma,tableScrollThumbBgHover:oe,tableScrollBg:ge});return[vd(ea),sd(ea),Ui(ea),hd(ea),dd(ea),ad(ea),cd(ea),ld(ea),Ui(ea),rd(ea),md(ea),gd(ea),Sd(ea),od(ea),fd(ea),ud(ea),pd(ea)]},ae=>{const{colorFillAlter:oe,colorBgContainer:ge,colorTextHeading:ce,colorFillSecondary:Se,colorFillContent:ve,controlItemBgActive:we,controlItemBgActiveHover:Be,padding:Ne,paddingSM:je,paddingXS:et,colorBorderSecondary:Ve,borderRadiusLG:Pt,fontSize:vt,controlHeight:xt,colorTextPlaceholder:Gt}=ae,It=new _r.C(Se).onBackground(ge).toHexShortString(),Ht=new _r.C(ve).onBackground(ge).toHexShortString(),Dt=new _r.C(oe).onBackground(ge).toHexShortString();return{headerBg:Dt,headerColor:ce,headerSortActiveBg:It,headerSortHoverBg:Ht,bodySortBg:Dt,rowHoverBg:Dt,rowSelectedBg:we,rowSelectedHoverBg:Be,rowExpandedBg:oe,cellPaddingBlock:Ne,cellPaddingInline:Ne,cellPaddingBlockMD:je,cellPaddingInlineMD:et,cellPaddingBlockSM:et,cellPaddingInlineSM:et,borderColor:Ve,headerBorderRadius:Pt,footerBg:Dt,footerColor:ce,cellFontSize:vt,cellFontSizeMD:vt,cellFontSizeSM:vt,headerSplitColor:Ve,fixedHeaderSortActiveBg:It,headerFilterHoverBg:ve,filterDropdownMenuBg:ge,filterDropdownBg:ge,expandIconBg:ge,selectionColumnWidth:xt,stickyScrollBarBg:Gt,stickyScrollBarBorderRadius:100}});const yd=[],bd=(ae,oe)=>{const{prefixCls:ge,className:ce,rootClassName:Se,style:ve,size:we,bordered:Be,dropdownPrefixCls:Ne,dataSource:je,pagination:et,rowSelection:Ve,rowKey:Pt="key",rowClassName:vt,columns:xt,children:Gt,childrenColumnName:It,onChange:Ht,getPopupContainer:Dt,loading:_t,expandIcon:yn,expandable:On,expandedRowRender:fn,expandIconColumnIndex:Vn,indentSize:qn,scroll:rn,sortDirections:hn,locale:ln,showSorterTooltip:Xt=!0,virtual:un}=ae,Kn=re.useMemo(()=>xt||cr(Gt),[xt,Gt]),ga=re.useMemo(()=>Kn.some(xa=>xa.responsive),[Kn]),Jn=(0,Ir.Z)(ga),Tn=re.useMemo(()=>{const xa=new Set(Object.keys(Jn).filter(ka=>Jn[ka]));return Kn.filter(ka=>!ka.responsive||ka.responsive.some(bo=>xa.has(bo)))},[Kn,Jn]),ca=(0,xr.Z)(ae,["className","style","columns"]),{locale:pa=Ei.Z,direction:Ma,table:Ca,renderEmpty:Ya,getPrefixCls:Qa,getPopupContainer:ea}=re.useContext(lr.E_),oo=(0,Tr.Z)(we),Na=Object.assign(Object.assign({},pa.Table),ln),Ka=je||yd,Ga=Qa("table",ge),Do=Qa("dropdown",Ne),kn=Object.assign({childrenColumnName:It,expandIconColumnIndex:Vn},On),{childrenColumnName:Rn="children"}=kn,In=re.useMemo(()=>Ka.some(xa=>xa==null?void 0:xa[Rn])?"nest":fn||On&&On.expandedRowRender?"row":null,[Ka]),Ln={body:re.useRef()},Fa=re.useMemo(()=>typeof Pt=="function"?Pt:xa=>xa==null?void 0:xa[Pt],[Pt]),[wn]=Al(Ka,Rn,Fa),Qn={},ba=function(xa,ka){let bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Xa,Fo,ko;const Go=Object.assign(Object.assign({},Qn),xa);bo&&((Xa=Qn.resetPagination)===null||Xa===void 0||Xa.call(Qn),!((Fo=Go.pagination)===null||Fo===void 0)&&Fo.current&&(Go.pagination.current=1),et&&et.onChange&&et.onChange(1,(ko=Go.pagination)===null||ko===void 0?void 0:ko.pageSize)),rn&&rn.scrollToFirstRowOnChange!==!1&&Ln.body.current&&(0,mr.Z)(0,{getContainer:()=>Ln.body.current}),Ht==null||Ht(Go.pagination,Go.filters,Go.sorter,{currentDataSource:Ri(mi(Ka,Go.sorterStates,Rn),Go.filterStates),action:ka})},ya=(xa,ka)=>{ba({sorter:xa,sorterStates:ka},"sort",!1)},[wo,vo,tr,ro]=Ql({prefixCls:Ga,mergedColumns:Tn,onSorterChange:ya,sortDirections:hn||["ascend","descend"],tableLocale:Na,showSorterTooltip:Xt}),Xo=re.useMemo(()=>mi(Ka,vo,Rn),[Ka,vo]);Qn.sorter=ro(),Qn.sorterStates=vo;const io=(xa,ka)=>{ba({filters:xa,filterStates:ka},"filter",!0)},[Ao,Rr,Oa]=Dl({prefixCls:Ga,locale:Na,dropdownPrefixCls:Do,mergedColumns:Tn,onFilterChange:io,getPopupContainer:Dt||ea}),$a=Ri(Xo,Rr);Qn.filters=Oa,Qn.filterStates=Rr;const Va=re.useMemo(()=>{const xa={};return Object.keys(Oa).forEach(ka=>{Oa[ka]!==null&&(xa[ka]=Oa[ka])}),Object.assign(Object.assign({},tr),{filters:xa})},[tr,Oa]),[uo]=Jl(Va),mo=(xa,ka)=>{ba({pagination:Object.assign(Object.assign({},Qn.pagination),{current:xa,pageSize:ka})},"paginate")},[va,Bo]=Zl($a.length,mo,et);Qn.pagination=et===!1?{}:Gl(va,et),Qn.resetPagination=Bo;const No=re.useMemo(()=>{if(et===!1||!va.pageSize)return $a;const{current:xa=1,total:ka,pageSize:bo=Ai}=va;return $a.length<ka?$a.length>bo?$a.slice((xa-1)*bo,xa*bo):$a:$a.slice((xa-1)*bo,xa*bo)},[!!et,$a,va&&va.current,va&&va.pageSize,va&&va.total]),[Ho,dr]=Ul({prefixCls:Ga,data:$a,pageData:No,getRowKey:Fa,getRecordByKey:wn,expandType:In,childrenColumnName:Rn,locale:Na,getPopupContainer:Dt||ea},Ve),nr=(xa,ka,bo)=>{let Xa;return typeof vt=="function"?Xa=rt()(vt(xa,ka,bo)):Xa=rt()(vt),rt()({[`${Ga}-row-selected`]:dr.has(Fa(xa,ka))},Xa)};kn.__PARENT_RENDER_ICON__=kn.expandIcon,kn.expandIcon=kn.expandIcon||yn||hl(Na),In==="nest"&&kn.expandIconColumnIndex===void 0?kn.expandIconColumnIndex=Ve?1:0:kn.expandIconColumnIndex>0&&Ve&&(kn.expandIconColumnIndex-=1),typeof kn.indentSize!="number"&&(kn.indentSize=typeof qn=="number"?qn:15);const Xr=re.useCallback(xa=>uo(Ho(Ao(wo(xa)))),[wo,Ao,Ho]);let hr,Yo;if(et!==!1&&(va!=null&&va.total)){let xa;va.size?xa=va.size:xa=oo==="small"||oo==="middle"?"small":void 0;const ka=Fo=>re.createElement(cl.Z,Object.assign({},va,{className:rt()(`${Ga}-pagination ${Ga}-pagination-${Fo}`,va.className),size:xa})),bo=Ma==="rtl"?"left":"right",{position:Xa}=va;if(Xa!==null&&Array.isArray(Xa)){const Fo=Xa.find(Sr=>Sr.includes("top")),ko=Xa.find(Sr=>Sr.includes("bottom")),Go=Xa.every(Sr=>`${Sr}`=="none");!Fo&&!ko&&!Go&&(Yo=ka(bo)),Fo&&(hr=ka(Fo.toLowerCase().replace("top",""))),ko&&(Yo=ka(ko.toLowerCase().replace("bottom","")))}else Yo=ka(bo)}let zo;typeof _t=="boolean"?zo={spinning:_t}:typeof _t=="object"&&(zo=Object.assign({spinning:!0},_t));const[Oo,fo]=Pd(Ga),[,_a]=(0,ml.Z)(),gr=rt()(`${Ga}-wrapper`,Ca==null?void 0:Ca.className,{[`${Ga}-wrapper-rtl`]:Ma==="rtl"},ce,Se,fo),Dr=Object.assign(Object.assign({},Ca==null?void 0:Ca.style),ve),Cr=ln&&ln.emptyText||(Ya==null?void 0:Ya("Table"))||re.createElement(Gr.Z,{componentName:"Table"}),sr=un?ed:ql,ni={},fi=re.useMemo(()=>{const{fontSize:xa,lineHeight:ka,padding:bo,paddingXS:Xa,paddingSM:Fo}=_a,ko=Math.floor(xa*ka);switch(oo){case"large":return bo*2+ko;case"small":return Xa*2+ko;default:return Fo*2+ko}},[_a,oo]);return un&&(ni.listItemHeight=fi),Oo(re.createElement("div",{ref:oe,className:gr,style:Dr},re.createElement(ul.Z,Object.assign({spinning:!1},zo),hr,re.createElement(sr,Object.assign({},ni,ca,{columns:Tn,direction:Ma,expandable:kn,prefixCls:Ga,className:rt()({[`${Ga}-middle`]:oo==="middle",[`${Ga}-small`]:oo==="small",[`${Ga}-bordered`]:Be,[`${Ga}-empty`]:Ka.length===0}),data:No,rowKey:Fa,rowClassName:nr,emptyText:Cr,internalHooks:ue,internalRefs:Ln,transformColumns:Xr})),Yo)))};var xd=re.forwardRef(bd);const Ed=(ae,oe)=>{const ge=re.useRef(0);return ge.current+=1,re.createElement(xd,Object.assign({},ae,{ref:oe,_renderTimes:ge.current}))},fr=re.forwardRef(Ed);fr.SELECTION_COLUMN=Er,fr.EXPAND_COLUMN=le,fr.SELECTION_ALL=di,fr.SELECTION_INVERT=gi,fr.SELECTION_NONE=si,fr.Column=ao,fr.ColumnGroup=ur,fr.Summary=Sn;var Cd=fr,Ld=Cd},79870:function(Xe,ot,te){"use strict";te.d(ot,{default:function(){return yr}});var le=te(87462),ue=te(4942),$e=te(71002),Ie=te(1413),xe=te(74902),Fe=te(15671),re=te(43144),Ye=te(97326),Me=te(60136),Re=te(51630),He=te(94184),Ue=te.n(He),Ce={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Je){var ut=Je.keyCode;if(Je.altKey&&!Je.ctrlKey||Je.metaKey||ut>=Ce.F1&&ut<=Ce.F12)return!1;switch(ut){case Ce.ALT:case Ce.CAPS_LOCK:case Ce.CONTEXT_MENU:case Ce.CTRL:case Ce.DOWN:case Ce.END:case Ce.ESC:case Ce.HOME:case Ce.INSERT:case Ce.LEFT:case Ce.MAC_FF_META:case Ce.META:case Ce.NUMLOCK:case Ce.NUM_CENTER:case Ce.PAGE_DOWN:case Ce.PAGE_UP:case Ce.PAUSE:case Ce.PRINT_SCREEN:case Ce.RIGHT:case Ce.SHIFT:case Ce.UP:case Ce.WIN_KEY:case Ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Je){if(Je>=Ce.ZERO&&Je<=Ce.NINE||Je>=Ce.NUM_ZERO&&Je<=Ce.NUM_MULTIPLY||Je>=Ce.A&&Je<=Ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Je===0)return!0;switch(Je){case Ce.SPACE:case Ce.QUESTION_MARK:case Ce.NUM_PLUS:case Ce.NUM_MINUS:case Ce.NUM_PERIOD:case Ce.NUM_DIVISION:case Ce.SEMICOLON:case Ce.DASH:case Ce.EQUALS:case Ce.COMMA:case Ce.PERIOD:case Ce.SLASH:case Ce.APOSTROPHE:case Ce.SINGLE_QUOTE:case Ce.OPEN_SQUARE_BRACKET:case Ce.BACKSLASH:case Ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ie=Ce,a=te(34952),y=te(72978),x=te(67294),b=te(69610);function E(We){var Je=We.dropPosition,ut=We.dropLevelOffset,he=We.indent,st={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Je){case-1:st.top=0,st.left=-ut*he;break;case 1:st.bottom=0,st.left=-ut*he;break;case 0:st.bottom=0,st.left=he;break}return x.createElement("div",{style:st})}var z=te(36459),ee=te(97685),ne=te(45987);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var se=de()?x.useLayoutEffect:x.useEffect,me=se,ye=function(Je,ut){var he=React.useRef(!0);se(function(){if(!he.current)return Je()},ut),se(function(){return he.current=!1,function(){he.current=!0}},[])},pe=te(73299),Le=te(73935);function fe(We){return We instanceof HTMLElement||We instanceof SVGElement}function yt(We){return fe(We)?We:We instanceof x.Component?Le.findDOMNode(We):null}var rt=te(28580);function Vt(We,Je,ut){var he=React.useRef({});return(!("value"in he.current)||ut(he.current.condition,Je))&&(he.current.value=We(),he.current.condition=Je),he.current.value}function Ee(We,Je){typeof We=="function"?We(Je):(0,$e.Z)(We)==="object"&&We&&"current"in We&&(We.current=Je)}function Ge(){for(var We=arguments.length,Je=new Array(We),ut=0;ut<We;ut++)Je[ut]=arguments[ut];var he=Je.filter(function(st){return st});return he.length<=1?he[0]:function(st){Je.forEach(function(wt){Ee(wt,st)})}}function tt(){for(var We=arguments.length,Je=new Array(We),ut=0;ut<We;ut++)Je[ut]=arguments[ut];return useMemo(function(){return Ge.apply(void 0,Je)},Je,function(he,st){return he.length===st.length&&he.every(function(wt,Rt){return wt===st[Rt]})})}function nt(We){var Je,ut,he=(0,rt.isMemo)(We)?We.type.type:We.type;return!(typeof he=="function"&&!((Je=he.prototype)!==null&&Je!==void 0&&Je.render)||typeof We=="function"&&!((ut=We.prototype)!==null&&ut!==void 0&&ut.render))}function gt(We,Je){var ut={};return ut[We.toLowerCase()]=Je.toLowerCase(),ut["Webkit".concat(We)]="webkit".concat(Je),ut["Moz".concat(We)]="moz".concat(Je),ut["ms".concat(We)]="MS".concat(Je),ut["O".concat(We)]="o".concat(Je.toLowerCase()),ut}function zt(We,Je){var ut={animationend:gt("Animation","AnimationEnd"),transitionend:gt("Transition","TransitionEnd")};return We&&("AnimationEvent"in Je||delete ut.animationend.animation,"TransitionEvent"in Je||delete ut.transitionend.transition),ut}var Kt=zt(de(),typeof window!="undefined"?window:{}),bn={};if(de()){var xn=document.createElement("div");bn=xn.style}var ke={};function lt(We){if(ke[We])return ke[We];var Je=Kt[We];if(Je)for(var ut=Object.keys(Je),he=ut.length,st=0;st<he;st+=1){var wt=ut[st];if(Object.prototype.hasOwnProperty.call(Je,wt)&&wt in bn)return ke[We]=Je[wt],ke[We]}return""}var ht=lt("animationend"),tn=lt("transitionend"),Et=!!(ht&&tn),kt=ht||"animationend",be=tn||"transitionend";function Bt(We,Je){if(!We)return null;if((0,$e.Z)(We)==="object"){var ut=Je.replace(/-\w/g,function(he){return he[1].toUpperCase()});return We[ut]}return"".concat(We,"-").concat(Je)}var en="none",$n="appear",jt="enter",ct="leave",_e="none",De="prepare",ze="start",Qe="active",St="end";function Ft(We){var Je=x.useRef(!1),ut=x.useState(We),he=(0,ee.Z)(ut,2),st=he[0],wt=he[1];x.useEffect(function(){return Je.current=!1,function(){Je.current=!0}},[]);function Rt(qe,it){it&&Je.current||wt(qe)}return[st,Rt]}var qt=function(Je){return+setTimeout(Je,16)},an=function(Je){return clearTimeout(Je)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(qt=function(Je){return window.requestAnimationFrame(Je)},an=function(Je){return window.cancelAnimationFrame(Je)});var pn=0,Nn=new Map;function Pe(We){Nn.delete(We)}var Ae=function(Je){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pn+=1;var he=pn;function st(wt){if(wt===0)Pe(he),Je();else{var Rt=qt(function(){st(wt-1)});Nn.set(he,Rt)}}return st(ut),he};Ae.cancel=function(We){var Je=Nn.get(We);return Pe(Je),an(Je)};var cn=Ae,Nt=function(){var We=x.useRef(null);function Je(){cn.cancel(We.current)}function ut(he){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Je();var wt=cn(function(){st<=1?he({isCanceled:function(){return wt!==We.current}}):ut(he,st-1)});We.current=wt}return x.useEffect(function(){return function(){Je()}},[]),[ut,Je]},Te=de()?x.useLayoutEffect:x.useEffect,Ot=Te,Sn=[De,ze,Qe,St],Yt=!1,vn=!0;function Ut(We){return We===Qe||We===St}var Jt=function(We,Je){var ut=Ft(_e),he=(0,ee.Z)(ut,2),st=he[0],wt=he[1],Rt=Nt(),qe=(0,ee.Z)(Rt,2),it=qe[0],at=qe[1];function Tt(){wt(De,!0)}return Ot(function(){if(st!==_e&&st!==St){var Qt=Sn.indexOf(st),sn=Sn[Qt+1],nn=Je(st);nn===Yt?wt(sn,!0):it(function(Cn){function An(){Cn.isCanceled()||wt(sn,!0)}nn===!0?An():Promise.resolve(nn).then(An)})}},[We,st]),x.useEffect(function(){return function(){at()}},[]),[Tt,st]},gn=function(We){var Je=(0,x.useRef)(),ut=(0,x.useRef)(We);ut.current=We;var he=x.useCallback(function(Rt){ut.current(Rt)},[]);function st(Rt){Rt&&(Rt.removeEventListener(be,he),Rt.removeEventListener(kt,he))}function wt(Rt){Je.current&&Je.current!==Rt&&st(Je.current),Rt&&Rt!==Je.current&&(Rt.addEventListener(be,he),Rt.addEventListener(kt,he),Je.current=Rt)}return x.useEffect(function(){return function(){st(Je.current)}},[]),[wt,st]};function na(We,Je,ut,he){var st=he.motionEnter,wt=st===void 0?!0:st,Rt=he.motionAppear,qe=Rt===void 0?!0:Rt,it=he.motionLeave,at=it===void 0?!0:it,Tt=he.motionDeadline,Qt=he.motionLeaveImmediately,sn=he.onAppearPrepare,nn=he.onEnterPrepare,Cn=he.onLeavePrepare,An=he.onAppearStart,_n=he.onEnterStart,Wt=he.onLeaveStart,Ct=he.onAppearActive,pt=he.onEnterActive,bt=he.onLeaveActive,Lt=he.onAppearEnd,dn=he.onEnterEnd,Un=he.onLeaveEnd,Mn=he.onVisibleChanged,Wn=Ft(),Gn=(0,ee.Z)(Wn,2),Yn=Gn[0],Xn=Gn[1],wa=Ft(en),Pa=(0,ee.Z)(wa,2),Ba=Pa[0],Wa=Pa[1],Ua=Ft(null),co=(0,ee.Z)(Ua,2),no=co[0],Ia=co[1],Jo=(0,x.useRef)(!1),qo=(0,x.useRef)(null);function Mo(){return ut()}var Ro=(0,x.useRef)(!1);function Wo(qa){var eo=Mo();if(!(qa&&!qa.deadline&&qa.target!==eo)){var po=Ro.current,$r;Ba===$n&&po?$r=Lt==null?void 0:Lt(eo,qa):Ba===jt&&po?$r=dn==null?void 0:dn(eo,qa):Ba===ct&&po&&($r=Un==null?void 0:Un(eo,qa)),Ba!==en&&po&&$r!==!1&&(Wa(en,!0),Ia(null,!0))}}var yo=gn(Wo),er=(0,ee.Z)(yo,1),rr=er[0],Lo=x.useMemo(function(){var qa,eo,po;switch(Ba){case $n:return qa={},(0,ue.Z)(qa,De,sn),(0,ue.Z)(qa,ze,An),(0,ue.Z)(qa,Qe,Ct),qa;case jt:return eo={},(0,ue.Z)(eo,De,nn),(0,ue.Z)(eo,ze,_n),(0,ue.Z)(eo,Qe,pt),eo;case ct:return po={},(0,ue.Z)(po,De,Cn),(0,ue.Z)(po,ze,Wt),(0,ue.Z)(po,Qe,bt),po;default:return{}}},[Ba]),Br=Jt(Ba,function(qa){if(qa===De){var eo=Lo[De];return eo?eo(Mo()):Yt}if(_o in Lo){var po;Ia(((po=Lo[_o])===null||po===void 0?void 0:po.call(Lo,Mo(),null))||null)}return _o===Qe&&(rr(Mo()),Tt>0&&(clearTimeout(qo.current),qo.current=setTimeout(function(){Wo({deadline:!0})},Tt))),vn}),Uo=(0,ee.Z)(Br,2),Wr=Uo[0],_o=Uo[1],Ur=Ut(_o);Ro.current=Ur,Ot(function(){Xn(Je);var qa=Jo.current;if(Jo.current=!0,!!We){var eo;!qa&&Je&&qe&&(eo=$n),qa&&Je&&wt&&(eo=jt),(qa&&!Je&&at||!qa&&Qt&&!Je&&at)&&(eo=ct),eo&&(Wa(eo),Wr())}},[Je]),(0,x.useEffect)(function(){(Ba===$n&&!qe||Ba===jt&&!wt||Ba===ct&&!at)&&Wa(en)},[qe,wt,at]),(0,x.useEffect)(function(){return function(){Jo.current=!1,clearTimeout(qo.current)}},[]);var br=x.useRef(!1);(0,x.useEffect)(function(){Yn&&(br.current=!0),Yn!==void 0&&Ba===en&&((br.current||Yn)&&(Mn==null||Mn(Yn)),br.current=!0)},[Yn,Ba]);var Or=no;return Lo[De]&&_o===ze&&(Or=(0,Ie.Z)({transition:"none"},Or)),[Ba,_o,Or,Yn!=null?Yn:Je]}var Dn=function(We){(0,Me.Z)(ut,We);var Je=(0,Re.Z)(ut);function ut(){return(0,Fe.Z)(this,ut),Je.apply(this,arguments)}return(0,re.Z)(ut,[{key:"render",value:function(){return this.props.children}}]),ut}(x.Component),zn=Dn;function fa(We){var Je=We;(0,$e.Z)(We)==="object"&&(Je=We.transitionSupport);function ut(st){return!!(st.motionName&&Je)}var he=x.forwardRef(function(st,wt){var Rt=st.visible,qe=Rt===void 0?!0:Rt,it=st.removeOnLeave,at=it===void 0?!0:it,Tt=st.forceRender,Qt=st.children,sn=st.motionName,nn=st.leavedClassName,Cn=st.eventProps,An=ut(st),_n=(0,x.useRef)(),Wt=(0,x.useRef)();function Ct(){try{return _n.current instanceof HTMLElement?_n.current:yt(Wt.current)}catch(Ua){return null}}var pt=na(An,qe,Ct,st),bt=(0,ee.Z)(pt,4),Lt=bt[0],dn=bt[1],Un=bt[2],Mn=bt[3],Wn=x.useRef(Mn);Mn&&(Wn.current=!0);var Gn=x.useCallback(function(Ua){_n.current=Ua,Ee(wt,Ua)},[wt]),Yn,Xn=(0,Ie.Z)((0,Ie.Z)({},Cn),{},{visible:qe});if(!Qt)Yn=null;else if(Lt===en||!ut(st))Mn?Yn=Qt((0,Ie.Z)({},Xn),Gn):!at&&Wn.current&&nn?Yn=Qt((0,Ie.Z)((0,Ie.Z)({},Xn),{},{className:nn}),Gn):Tt||!at&&!nn?Yn=Qt((0,Ie.Z)((0,Ie.Z)({},Xn),{},{style:{display:"none"}}),Gn):Yn=null;else{var wa,Pa;dn===De?Pa="prepare":Ut(dn)?Pa="active":dn===ze&&(Pa="start"),Yn=Qt((0,Ie.Z)((0,Ie.Z)({},Xn),{},{className:Ue()(Bt(sn,Lt),(wa={},(0,ue.Z)(wa,Bt(sn,"".concat(Lt,"-").concat(Pa)),Pa),(0,ue.Z)(wa,sn,typeof sn=="string"),wa)),style:Un}),Gn)}if(x.isValidElement(Yn)&&nt(Yn)){var Ba=Yn,Wa=Ba.ref;Wa||(Yn=x.cloneElement(Yn,{ref:Gn}))}return x.createElement(zn,{ref:Wt},Yn)});return he.displayName="CSSMotion",he}var ia=fa(Et),mt="add",dt="keep",ft="remove",mn="removed";function Zn(We){var Je;return We&&(0,$e.Z)(We)==="object"&&"key"in We?Je=We:Je={key:We},(0,Ie.Z)((0,Ie.Z)({},Je),{},{key:String(Je.key)})}function ua(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return We.map(Zn)}function Hn(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=[],he=0,st=Je.length,wt=ua(We),Rt=ua(Je);wt.forEach(function(at){for(var Tt=!1,Qt=he;Qt<st;Qt+=1){var sn=Rt[Qt];if(sn.key===at.key){he<Qt&&(ut=ut.concat(Rt.slice(he,Qt).map(function(nn){return(0,Ie.Z)((0,Ie.Z)({},nn),{},{status:mt})})),he=Qt),ut.push((0,Ie.Z)((0,Ie.Z)({},sn),{},{status:dt})),he+=1,Tt=!0;break}}Tt||ut.push((0,Ie.Z)((0,Ie.Z)({},at),{},{status:ft}))}),he<st&&(ut=ut.concat(Rt.slice(he).map(function(at){return(0,Ie.Z)((0,Ie.Z)({},at),{},{status:mt})})));var qe={};ut.forEach(function(at){var Tt=at.key;qe[Tt]=(qe[Tt]||0)+1});var it=Object.keys(qe).filter(function(at){return qe[at]>1});return it.forEach(function(at){ut=ut.filter(function(Tt){var Qt=Tt.key,sn=Tt.status;return Qt!==at||sn!==ft}),ut.forEach(function(Tt){Tt.key===at&&(Tt.status=dt)})}),ut}var aa=["component","children","onVisibleChanged","onAllRemoved"],on=["status"],oa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ra(We){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia,ut=function(he){(0,Me.Z)(wt,he);var st=(0,Re.Z)(wt);function wt(){var Rt;(0,Fe.Z)(this,wt);for(var qe=arguments.length,it=new Array(qe),at=0;at<qe;at++)it[at]=arguments[at];return Rt=st.call.apply(st,[this].concat(it)),(0,ue.Z)((0,Ye.Z)(Rt),"state",{keyEntities:[]}),(0,ue.Z)((0,Ye.Z)(Rt),"removeKey",function(Tt){var Qt=Rt.state.keyEntities,sn=Qt.map(function(nn){return nn.key!==Tt?nn:(0,Ie.Z)((0,Ie.Z)({},nn),{},{status:mn})});return Rt.setState({keyEntities:sn}),sn.filter(function(nn){var Cn=nn.status;return Cn!==mn}).length}),Rt}return(0,re.Z)(wt,[{key:"render",value:function(){var qe=this,it=this.state.keyEntities,at=this.props,Tt=at.component,Qt=at.children,sn=at.onVisibleChanged,nn=at.onAllRemoved,Cn=(0,ne.Z)(at,aa),An=Tt||x.Fragment,_n={};return oa.forEach(function(Wt){_n[Wt]=Cn[Wt],delete Cn[Wt]}),delete Cn.keys,x.createElement(An,Cn,it.map(function(Wt){var Ct=Wt.status,pt=(0,ne.Z)(Wt,on),bt=Ct===mt||Ct===dt;return x.createElement(Je,(0,le.Z)({},_n,{key:pt.key,visible:bt,eventProps:pt,onVisibleChanged:function(dn){if(sn==null||sn(dn,{key:pt.key}),!dn){var Un=qe.removeKey(pt.key);Un===0&&nn&&nn()}}}),Qt)}))}}],[{key:"getDerivedStateFromProps",value:function(qe,it){var at=qe.keys,Tt=it.keyEntities,Qt=ua(at),sn=Hn(Tt,Qt);return{keyEntities:sn.filter(function(nn){var Cn=Tt.find(function(An){var _n=An.key;return nn.key===_n});return!(Cn&&Cn.status===mn&&nn.status===ft)})}}}]),wt}(x.Component);return(0,ue.Z)(ut,"defaultProps",{component:"div"}),ut}var la=Ra(Et),ta=ia,Aa=te(56261);function ho(We,Je){var ut=x.useState(!1),he=(0,ee.Z)(ut,2),st=he[0],wt=he[1];x.useLayoutEffect(function(){if(st)return We(),function(){Je()}},[st]),x.useLayoutEffect(function(){return wt(!0),function(){wt(!1)}},[])}var ha=te(83898),Oe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ze=function(Je,ut){var he=Je.className,st=Je.style,wt=Je.motion,Rt=Je.motionNodes,qe=Je.motionType,it=Je.onMotionStart,at=Je.onMotionEnd,Tt=Je.active,Qt=Je.treeNodeRequiredProps,sn=(0,ne.Z)(Je,Oe),nn=x.useState(!0),Cn=(0,ee.Z)(nn,2),An=Cn[0],_n=Cn[1],Wt=x.useContext(b.k),Ct=Wt.prefixCls,pt=Rt&&qe!=="hide";me(function(){Rt&&pt!==An&&_n(pt)},[Rt]);var bt=function(){Rt&&it()},Lt=x.useRef(!1),dn=function(){Rt&&!Lt.current&&(Lt.current=!0,at())};ho(bt,dn);var Un=function(Wn){pt===Wn&&dn()};return Rt?x.createElement(ta,(0,le.Z)({ref:ut,visible:An},wt,{motionAppear:qe==="show",onVisibleChanged:Un}),function(Mn,Wn){var Gn=Mn.className,Yn=Mn.style;return x.createElement("div",{ref:Wn,className:Ue()("".concat(Ct,"-treenode-motion"),Gn),style:Yn},Rt.map(function(Xn){var wa=(0,le.Z)({},((0,z.Z)(Xn.data),Xn.data)),Pa=Xn.title,Ba=Xn.key,Wa=Xn.isStart,Ua=Xn.isEnd;delete wa.children;var co=(0,ha.H8)(Ba,Qt);return x.createElement(Aa.Z,(0,le.Z)({},wa,co,{title:Pa,active:Tt,data:Xn.data,key:Ba,isStart:Wa,isEnd:Ua}))}))}):x.createElement(Aa.Z,(0,le.Z)({domRef:ut,className:he,style:st},sn,{active:Tt}))};Ze.displayName="MotionTreeNode";var Ke=x.forwardRef(Ze),$t=Ke;function Pn(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=We.length,he=Je.length;if(Math.abs(ut-he)!==1)return{add:!1,key:null};function st(wt,Rt){var qe=new Map;wt.forEach(function(at){qe.set(at,!0)});var it=Rt.filter(function(at){return!qe.has(at)});return it.length===1?it[0]:null}return ut<he?{add:!0,key:st(We,Je)}:{add:!1,key:st(Je,We)}}function En(We,Je,ut){var he=We.findIndex(function(qe){return qe.key===ut}),st=We[he+1],wt=Je.findIndex(function(qe){return qe.key===ut});if(st){var Rt=Je.findIndex(function(qe){return qe.key===st.key});return Je.slice(wt+1,Rt)}return Je.slice(wt+1)}var Ea=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ra={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fn=function(){},ma="RC_TREE_MOTION_".concat(Math.random()),Ha={key:ma},At={key:ma,level:0,index:0,pos:"0",node:Ha,nodes:[Ha]},sa={parent:null,children:[],pos:At.pos,data:Ha,title:null,key:ma,isStart:[],isEnd:[]};function lo(We,Je,ut,he){return Je===!1||!ut?We:We.slice(0,Math.ceil(ut/he)+1)}function Po(We){var Je=We.key,ut=We.pos;return(0,ha.km)(Je,ut)}function Ja(We){for(var Je=String(We.data.key),ut=We;ut.parent;)ut=ut.parent,Je="".concat(ut.data.key," > ").concat(Je);return Je}var za=x.forwardRef(function(We,Je){var ut=We.prefixCls,he=We.data,st=We.selectable,wt=We.checkable,Rt=We.expandedKeys,qe=We.selectedKeys,it=We.checkedKeys,at=We.loadedKeys,Tt=We.loadingKeys,Qt=We.halfCheckedKeys,sn=We.keyEntities,nn=We.disabled,Cn=We.dragging,An=We.dragOverNodeKey,_n=We.dropPosition,Wt=We.motion,Ct=We.height,pt=We.itemHeight,bt=We.virtual,Lt=We.focusable,dn=We.activeItem,Un=We.focused,Mn=We.tabIndex,Wn=We.onKeyDown,Gn=We.onFocus,Yn=We.onBlur,Xn=We.onActiveChange,wa=We.onListChangeStart,Pa=We.onListChangeEnd,Ba=(0,ne.Z)(We,Ea),Wa=x.useRef(null),Ua=x.useRef(null);x.useImperativeHandle(Je,function(){return{scrollTo:function(ir){Wa.current.scrollTo(ir)},getIndentWidth:function(){return Ua.current.offsetWidth}}});var co=x.useState(Rt),no=(0,ee.Z)(co,2),Ia=no[0],Jo=no[1],qo=x.useState(he),Mo=(0,ee.Z)(qo,2),Ro=Mo[0],Wo=Mo[1],yo=x.useState(he),er=(0,ee.Z)(yo,2),rr=er[0],Lo=er[1],Br=x.useState([]),Uo=(0,ee.Z)(Br,2),Wr=Uo[0],_o=Uo[1],Ur=x.useState(null),br=(0,ee.Z)(Ur,2),Or=br[0],qa=br[1],eo=x.useRef(he);eo.current=he;function po(){var ao=eo.current;Wo(ao),Lo(ao),_o([]),qa(null),Pa()}me(function(){Jo(Rt);var ao=Pn(Ia,Rt);if(ao.key!==null)if(ao.add){var ir=Ro.findIndex(function(Tr){var Ir=Tr.key;return Ir===ao.key}),ur=lo(En(Ro,he,ao.key),bt,Ct,pt),xr=Ro.slice();xr.splice(ir+1,0,sa),Lo(xr),_o(ur),qa("show")}else{var mr=he.findIndex(function(Tr){var Ir=Tr.key;return Ir===ao.key}),lr=lo(En(he,Ro,ao.key),bt,Ct,pt),Gr=he.slice();Gr.splice(mr+1,0,sa),Lo(Gr),_o(lr),qa("hide")}else Ro!==he&&(Wo(he),Lo(he))},[Rt,he]),x.useEffect(function(){Cn||po()},[Cn]);var $r=Wt?rr:he,Yr={expandedKeys:Rt,selectedKeys:qe,loadedKeys:at,loadingKeys:Tt,checkedKeys:it,halfCheckedKeys:Qt,dragOverNodeKey:An,dropPosition:_n,keyEntities:sn};return x.createElement(x.Fragment,null,Un&&dn&&x.createElement("span",{style:ra,"aria-live":"assertive"},Ja(dn)),x.createElement("div",null,x.createElement("input",{style:ra,disabled:Lt===!1||nn,tabIndex:Lt!==!1?Mn:null,onKeyDown:Wn,onFocus:Gn,onBlur:Yn,value:"",onChange:Fn,"aria-label":"for screen reader"})),x.createElement("div",{className:"".concat(ut,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},x.createElement("div",{className:"".concat(ut,"-indent")},x.createElement("div",{ref:Ua,className:"".concat(ut,"-indent-unit")}))),x.createElement(pe.Z,(0,le.Z)({},Ba,{data:$r,itemKey:Po,height:Ct,fullHeight:!1,virtual:bt,itemHeight:pt,prefixCls:"".concat(ut,"-list"),ref:Wa,onVisibleChange:function(ir,ur){var xr=new Set(ir),mr=ur.filter(function(lr){return!xr.has(lr)});mr.some(function(lr){return Po(lr)===ma})&&po()}}),function(ao){var ir=ao.pos,ur=(0,le.Z)({},((0,z.Z)(ao.data),ao.data)),xr=ao.title,mr=ao.key,lr=ao.isStart,Gr=ao.isEnd,Tr=(0,ha.km)(mr,ir);delete ur.key,delete ur.children;var Ir=(0,ha.H8)(Tr,Yr);return x.createElement($t,(0,le.Z)({},ur,Ir,{title:xr,active:!!dn&&mr===dn.key,pos:ir,data:ao.data,isStart:lr,isEnd:Gr,motion:Wt,motionNodes:mr===ma?Wr:null,motionType:Or,onMotionStart:wa,onMotionEnd:po,treeNodeRequiredProps:Yr,onMouseMove:function(){Xn(null)}}))}))});za.displayName="NodeList";var $o=za,Sa=te(29873),Ko=te(97153),xo=te(3596),To=10,to=function(We){(0,Me.Z)(ut,We);var Je=(0,Re.Z)(ut);function ut(){var he;(0,Fe.Z)(this,ut);for(var st=arguments.length,wt=new Array(st),Rt=0;Rt<st;Rt++)wt[Rt]=arguments[Rt];return he=Je.call.apply(Je,[this].concat(wt)),he.destroyed=!1,he.delayedDragEnterLogic=void 0,he.loadingRetryTimes={},he.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ha.w$)()},he.dragStartMousePosition=null,he.dragNode=void 0,he.currentMouseOverDroppableNodeKey=null,he.listRef=x.createRef(),he.onNodeDragStart=function(qe,it){var at=he.state,Tt=at.expandedKeys,Qt=at.keyEntities,sn=he.props.onDragStart,nn=it.props.eventKey;he.dragNode=it,he.dragStartMousePosition={x:qe.clientX,y:qe.clientY};var Cn=(0,Sa._5)(Tt,nn);he.setState({draggingNodeKey:nn,dragChildrenKeys:(0,Sa.wA)(nn,Qt),indent:he.listRef.current.getIndentWidth()}),he.setExpandedKeys(Cn),window.addEventListener("dragend",he.onWindowDragEnd),sn==null||sn({event:qe,node:(0,ha.F)(it.props)})},he.onNodeDragEnter=function(qe,it){var at=he.state,Tt=at.expandedKeys,Qt=at.keyEntities,sn=at.dragChildrenKeys,nn=at.flattenNodes,Cn=at.indent,An=he.props,_n=An.onDragEnter,Wt=An.onExpand,Ct=An.allowDrop,pt=An.direction,bt=it.props,Lt=bt.pos,dn=bt.eventKey,Un=(0,Ye.Z)(he),Mn=Un.dragNode;if(he.currentMouseOverDroppableNodeKey!==dn&&(he.currentMouseOverDroppableNodeKey=dn),!Mn){he.resetDragState();return}var Wn=(0,Sa.OM)(qe,Mn,it,Cn,he.dragStartMousePosition,Ct,nn,Qt,Tt,pt),Gn=Wn.dropPosition,Yn=Wn.dropLevelOffset,Xn=Wn.dropTargetKey,wa=Wn.dropContainerKey,Pa=Wn.dropTargetPos,Ba=Wn.dropAllowed,Wa=Wn.dragOverNodeKey;if(sn.indexOf(Xn)!==-1||!Ba){he.resetDragState();return}if(he.delayedDragEnterLogic||(he.delayedDragEnterLogic={}),Object.keys(he.delayedDragEnterLogic).forEach(function(Ua){clearTimeout(he.delayedDragEnterLogic[Ua])}),Mn.props.eventKey!==it.props.eventKey&&(qe.persist(),he.delayedDragEnterLogic[Lt]=window.setTimeout(function(){if(he.state.draggingNodeKey!==null){var Ua=(0,xe.Z)(Tt),co=(0,xo.Z)(Qt,it.props.eventKey);co&&(co.children||[]).length&&(Ua=(0,Sa.L0)(Tt,it.props.eventKey)),"expandedKeys"in he.props||he.setExpandedKeys(Ua),Wt==null||Wt(Ua,{node:(0,ha.F)(it.props),expanded:!0,nativeEvent:qe.nativeEvent})}},800)),Mn.props.eventKey===Xn&&Yn===0){he.resetDragState();return}he.setState({dragOverNodeKey:Wa,dropPosition:Gn,dropLevelOffset:Yn,dropTargetKey:Xn,dropContainerKey:wa,dropTargetPos:Pa,dropAllowed:Ba}),_n==null||_n({event:qe,node:(0,ha.F)(it.props),expandedKeys:Tt})},he.onNodeDragOver=function(qe,it){var at=he.state,Tt=at.dragChildrenKeys,Qt=at.flattenNodes,sn=at.keyEntities,nn=at.expandedKeys,Cn=at.indent,An=he.props,_n=An.onDragOver,Wt=An.allowDrop,Ct=An.direction,pt=(0,Ye.Z)(he),bt=pt.dragNode;if(bt){var Lt=(0,Sa.OM)(qe,bt,it,Cn,he.dragStartMousePosition,Wt,Qt,sn,nn,Ct),dn=Lt.dropPosition,Un=Lt.dropLevelOffset,Mn=Lt.dropTargetKey,Wn=Lt.dropContainerKey,Gn=Lt.dropAllowed,Yn=Lt.dropTargetPos,Xn=Lt.dragOverNodeKey;Tt.indexOf(Mn)!==-1||!Gn||(bt.props.eventKey===Mn&&Un===0?he.state.dropPosition===null&&he.state.dropLevelOffset===null&&he.state.dropTargetKey===null&&he.state.dropContainerKey===null&&he.state.dropTargetPos===null&&he.state.dropAllowed===!1&&he.state.dragOverNodeKey===null||he.resetDragState():dn===he.state.dropPosition&&Un===he.state.dropLevelOffset&&Mn===he.state.dropTargetKey&&Wn===he.state.dropContainerKey&&Yn===he.state.dropTargetPos&&Gn===he.state.dropAllowed&&Xn===he.state.dragOverNodeKey||he.setState({dropPosition:dn,dropLevelOffset:Un,dropTargetKey:Mn,dropContainerKey:Wn,dropTargetPos:Yn,dropAllowed:Gn,dragOverNodeKey:Xn}),_n==null||_n({event:qe,node:(0,ha.F)(it.props)}))}},he.onNodeDragLeave=function(qe,it){he.currentMouseOverDroppableNodeKey===it.props.eventKey&&!qe.currentTarget.contains(qe.relatedTarget)&&(he.resetDragState(),he.currentMouseOverDroppableNodeKey=null);var at=he.props.onDragLeave;at==null||at({event:qe,node:(0,ha.F)(it.props)})},he.onWindowDragEnd=function(qe){he.onNodeDragEnd(qe,null,!0),window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDragEnd=function(qe,it){var at=he.props.onDragEnd;he.setState({dragOverNodeKey:null}),he.cleanDragState(),at==null||at({event:qe,node:(0,ha.F)(it.props)}),he.dragNode=null,window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDrop=function(qe,it){var at,Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qt=he.state,sn=Qt.dragChildrenKeys,nn=Qt.dropPosition,Cn=Qt.dropTargetKey,An=Qt.dropTargetPos,_n=Qt.dropAllowed;if(_n){var Wt=he.props.onDrop;if(he.setState({dragOverNodeKey:null}),he.cleanDragState(),Cn!==null){var Ct=(0,Ie.Z)((0,Ie.Z)({},(0,ha.H8)(Cn,he.getTreeNodeRequiredProps())),{},{active:((at=he.getActiveItem())===null||at===void 0?void 0:at.key)===Cn,data:(0,xo.Z)(he.state.keyEntities,Cn).node}),pt=sn.indexOf(Cn)!==-1;(0,y.ZP)(!pt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var bt=(0,Sa.yx)(An),Lt={event:qe,node:(0,ha.F)(Ct),dragNode:he.dragNode?(0,ha.F)(he.dragNode.props):null,dragNodesKeys:[he.dragNode.props.eventKey].concat(sn),dropToGap:nn!==0,dropPosition:nn+Number(bt[bt.length-1])};Tt||Wt==null||Wt(Lt),he.dragNode=null}}},he.cleanDragState=function(){var qe=he.state.draggingNodeKey;qe!==null&&he.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),he.dragStartMousePosition=null,he.currentMouseOverDroppableNodeKey=null},he.triggerExpandActionExpand=function(qe,it){var at=he.state,Tt=at.expandedKeys,Qt=at.flattenNodes,sn=it.expanded,nn=it.key,Cn=it.isLeaf;if(!(Cn||qe.shiftKey||qe.metaKey||qe.ctrlKey)){var An=Qt.filter(function(Wt){return Wt.key===nn})[0],_n=(0,ha.F)((0,Ie.Z)((0,Ie.Z)({},(0,ha.H8)(nn,he.getTreeNodeRequiredProps())),{},{data:An.data}));he.setExpandedKeys(sn?(0,Sa._5)(Tt,nn):(0,Sa.L0)(Tt,nn)),he.onNodeExpand(qe,_n)}},he.onNodeClick=function(qe,it){var at=he.props,Tt=at.onClick,Qt=at.expandAction;Qt==="click"&&he.triggerExpandActionExpand(qe,it),Tt==null||Tt(qe,it)},he.onNodeDoubleClick=function(qe,it){var at=he.props,Tt=at.onDoubleClick,Qt=at.expandAction;Qt==="doubleClick"&&he.triggerExpandActionExpand(qe,it),Tt==null||Tt(qe,it)},he.onNodeSelect=function(qe,it){var at=he.state.selectedKeys,Tt=he.state,Qt=Tt.keyEntities,sn=Tt.fieldNames,nn=he.props,Cn=nn.onSelect,An=nn.multiple,_n=it.selected,Wt=it[sn.key],Ct=!_n;Ct?An?at=(0,Sa.L0)(at,Wt):at=[Wt]:at=(0,Sa._5)(at,Wt);var pt=at.map(function(bt){var Lt=(0,xo.Z)(Qt,bt);return Lt?Lt.node:null}).filter(function(bt){return bt});he.setUncontrolledState({selectedKeys:at}),Cn==null||Cn(at,{event:"select",selected:Ct,node:it,selectedNodes:pt,nativeEvent:qe.nativeEvent})},he.onNodeCheck=function(qe,it,at){var Tt=he.state,Qt=Tt.keyEntities,sn=Tt.checkedKeys,nn=Tt.halfCheckedKeys,Cn=he.props,An=Cn.checkStrictly,_n=Cn.onCheck,Wt=it.key,Ct,pt={event:"check",node:it,checked:at,nativeEvent:qe.nativeEvent};if(An){var bt=at?(0,Sa.L0)(sn,Wt):(0,Sa._5)(sn,Wt),Lt=(0,Sa._5)(nn,Wt);Ct={checked:bt,halfChecked:Lt},pt.checkedNodes=bt.map(function(Yn){return(0,xo.Z)(Qt,Yn)}).filter(function(Yn){return Yn}).map(function(Yn){return Yn.node}),he.setUncontrolledState({checkedKeys:bt})}else{var dn=(0,Ko.S)([].concat((0,xe.Z)(sn),[Wt]),!0,Qt),Un=dn.checkedKeys,Mn=dn.halfCheckedKeys;if(!at){var Wn=new Set(Un);Wn.delete(Wt);var Gn=(0,Ko.S)(Array.from(Wn),{checked:!1,halfCheckedKeys:Mn},Qt);Un=Gn.checkedKeys,Mn=Gn.halfCheckedKeys}Ct=Un,pt.checkedNodes=[],pt.checkedNodesPositions=[],pt.halfCheckedKeys=Mn,Un.forEach(function(Yn){var Xn=(0,xo.Z)(Qt,Yn);if(Xn){var wa=Xn.node,Pa=Xn.pos;pt.checkedNodes.push(wa),pt.checkedNodesPositions.push({node:wa,pos:Pa})}}),he.setUncontrolledState({checkedKeys:Un},!1,{halfCheckedKeys:Mn})}_n==null||_n(Ct,pt)},he.onNodeLoad=function(qe){var it=qe.key,at=new Promise(function(Tt,Qt){he.setState(function(sn){var nn=sn.loadedKeys,Cn=nn===void 0?[]:nn,An=sn.loadingKeys,_n=An===void 0?[]:An,Wt=he.props,Ct=Wt.loadData,pt=Wt.onLoad;if(!Ct||Cn.indexOf(it)!==-1||_n.indexOf(it)!==-1)return null;var bt=Ct(qe);return bt.then(function(){var Lt=he.state.loadedKeys,dn=(0,Sa.L0)(Lt,it);pt==null||pt(dn,{event:"load",node:qe}),he.setUncontrolledState({loadedKeys:dn}),he.setState(function(Un){return{loadingKeys:(0,Sa._5)(Un.loadingKeys,it)}}),Tt()}).catch(function(Lt){if(he.setState(function(Un){return{loadingKeys:(0,Sa._5)(Un.loadingKeys,it)}}),he.loadingRetryTimes[it]=(he.loadingRetryTimes[it]||0)+1,he.loadingRetryTimes[it]>=To){var dn=he.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),he.setUncontrolledState({loadedKeys:(0,Sa.L0)(dn,it)}),Tt()}Qt(Lt)}),{loadingKeys:(0,Sa.L0)(_n,it)}})});return at.catch(function(){}),at},he.onNodeMouseEnter=function(qe,it){var at=he.props.onMouseEnter;at==null||at({event:qe,node:it})},he.onNodeMouseLeave=function(qe,it){var at=he.props.onMouseLeave;at==null||at({event:qe,node:it})},he.onNodeContextMenu=function(qe,it){var at=he.props.onRightClick;at&&(qe.preventDefault(),at({event:qe,node:it}))},he.onFocus=function(){var qe=he.props.onFocus;he.setState({focused:!0});for(var it=arguments.length,at=new Array(it),Tt=0;Tt<it;Tt++)at[Tt]=arguments[Tt];qe==null||qe.apply(void 0,at)},he.onBlur=function(){var qe=he.props.onBlur;he.setState({focused:!1}),he.onActiveChange(null);for(var it=arguments.length,at=new Array(it),Tt=0;Tt<it;Tt++)at[Tt]=arguments[Tt];qe==null||qe.apply(void 0,at)},he.getTreeNodeRequiredProps=function(){var qe=he.state,it=qe.expandedKeys,at=qe.selectedKeys,Tt=qe.loadedKeys,Qt=qe.loadingKeys,sn=qe.checkedKeys,nn=qe.halfCheckedKeys,Cn=qe.dragOverNodeKey,An=qe.dropPosition,_n=qe.keyEntities;return{expandedKeys:it||[],selectedKeys:at||[],loadedKeys:Tt||[],loadingKeys:Qt||[],checkedKeys:sn||[],halfCheckedKeys:nn||[],dragOverNodeKey:Cn,dropPosition:An,keyEntities:_n}},he.setExpandedKeys=function(qe){var it=he.state,at=it.treeData,Tt=it.fieldNames,Qt=(0,ha.oH)(at,qe,Tt);he.setUncontrolledState({expandedKeys:qe,flattenNodes:Qt},!0)},he.onNodeExpand=function(qe,it){var at=he.state.expandedKeys,Tt=he.state,Qt=Tt.listChanging,sn=Tt.fieldNames,nn=he.props,Cn=nn.onExpand,An=nn.loadData,_n=it.expanded,Wt=it[sn.key];if(!Qt){var Ct=at.indexOf(Wt),pt=!_n;if((0,y.ZP)(_n&&Ct!==-1||!_n&&Ct===-1,"Expand state not sync with index check"),pt?at=(0,Sa.L0)(at,Wt):at=(0,Sa._5)(at,Wt),he.setExpandedKeys(at),Cn==null||Cn(at,{node:it,expanded:pt,nativeEvent:qe.nativeEvent}),pt&&An){var bt=he.onNodeLoad(it);bt&&bt.then(function(){var Lt=(0,ha.oH)(he.state.treeData,at,sn);he.setUncontrolledState({flattenNodes:Lt})}).catch(function(){var Lt=he.state.expandedKeys,dn=(0,Sa._5)(Lt,Wt);he.setExpandedKeys(dn)})}}},he.onListChangeStart=function(){he.setUncontrolledState({listChanging:!0})},he.onListChangeEnd=function(){setTimeout(function(){he.setUncontrolledState({listChanging:!1})})},he.onActiveChange=function(qe){var it=he.state.activeKey,at=he.props.onActiveChange;it!==qe&&(he.setState({activeKey:qe}),qe!==null&&he.scrollTo({key:qe}),at==null||at(qe))},he.getActiveItem=function(){var qe=he.state,it=qe.activeKey,at=qe.flattenNodes;return it===null?null:at.find(function(Tt){var Qt=Tt.key;return Qt===it})||null},he.offsetActiveKey=function(qe){var it=he.state,at=it.flattenNodes,Tt=it.activeKey,Qt=at.findIndex(function(Cn){var An=Cn.key;return An===Tt});Qt===-1&&qe<0&&(Qt=at.length),Qt=(Qt+qe+at.length)%at.length;var sn=at[Qt];if(sn){var nn=sn.key;he.onActiveChange(nn)}else he.onActiveChange(null)},he.onKeyDown=function(qe){var it=he.state,at=it.activeKey,Tt=it.expandedKeys,Qt=it.checkedKeys,sn=it.fieldNames,nn=he.props,Cn=nn.onKeyDown,An=nn.checkable,_n=nn.selectable;switch(qe.which){case ie.UP:{he.offsetActiveKey(-1),qe.preventDefault();break}case ie.DOWN:{he.offsetActiveKey(1),qe.preventDefault();break}}var Wt=he.getActiveItem();if(Wt&&Wt.data){var Ct=he.getTreeNodeRequiredProps(),pt=Wt.data.isLeaf===!1||!!(Wt.data[sn.children]||[]).length,bt=(0,ha.F)((0,Ie.Z)((0,Ie.Z)({},(0,ha.H8)(at,Ct)),{},{data:Wt.data,active:!0}));switch(qe.which){case ie.LEFT:{pt&&Tt.includes(at)?he.onNodeExpand({},bt):Wt.parent&&he.onActiveChange(Wt.parent.key),qe.preventDefault();break}case ie.RIGHT:{pt&&!Tt.includes(at)?he.onNodeExpand({},bt):Wt.children&&Wt.children.length&&he.onActiveChange(Wt.children[0].key),qe.preventDefault();break}case ie.ENTER:case ie.SPACE:{An&&!bt.disabled&&bt.checkable!==!1&&!bt.disableCheckbox?he.onNodeCheck({},bt,!Qt.includes(at)):!An&&_n&&!bt.disabled&&bt.selectable!==!1&&he.onNodeSelect({},bt);break}}}Cn==null||Cn(qe)},he.setUncontrolledState=function(qe){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!he.destroyed){var Tt=!1,Qt=!0,sn={};Object.keys(qe).forEach(function(nn){if(nn in he.props){Qt=!1;return}Tt=!0,sn[nn]=qe[nn]}),Tt&&(!it||Qt)&&he.setState((0,Ie.Z)((0,Ie.Z)({},sn),at))}},he.scrollTo=function(qe){he.listRef.current.scrollTo(qe)},he}return(0,re.Z)(ut,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var st=this.props.activeKey;st!==void 0&&st!==this.state.activeKey&&(this.setState({activeKey:st}),st!==null&&this.scrollTo({key:st}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var st,wt=this.state,Rt=wt.focused,qe=wt.flattenNodes,it=wt.keyEntities,at=wt.draggingNodeKey,Tt=wt.activeKey,Qt=wt.dropLevelOffset,sn=wt.dropContainerKey,nn=wt.dropTargetKey,Cn=wt.dropPosition,An=wt.dragOverNodeKey,_n=wt.indent,Wt=this.props,Ct=Wt.prefixCls,pt=Wt.className,bt=Wt.style,Lt=Wt.showLine,dn=Wt.focusable,Un=Wt.tabIndex,Mn=Un===void 0?0:Un,Wn=Wt.selectable,Gn=Wt.showIcon,Yn=Wt.icon,Xn=Wt.switcherIcon,wa=Wt.draggable,Pa=Wt.checkable,Ba=Wt.checkStrictly,Wa=Wt.disabled,Ua=Wt.motion,co=Wt.loadData,no=Wt.filterTreeNode,Ia=Wt.height,Jo=Wt.itemHeight,qo=Wt.virtual,Mo=Wt.titleRender,Ro=Wt.dropIndicatorRender,Wo=Wt.onContextMenu,yo=Wt.onScroll,er=Wt.direction,rr=Wt.rootClassName,Lo=Wt.rootStyle,Br=(0,a.Z)(this.props,{aria:!0,data:!0}),Uo;return wa&&((0,$e.Z)(wa)==="object"?Uo=wa:typeof wa=="function"?Uo={nodeDraggable:wa}:Uo={}),x.createElement(b.k.Provider,{value:{prefixCls:Ct,selectable:Wn,showIcon:Gn,icon:Yn,switcherIcon:Xn,draggable:Uo,draggingNodeKey:at,checkable:Pa,checkStrictly:Ba,disabled:Wa,keyEntities:it,dropLevelOffset:Qt,dropContainerKey:sn,dropTargetKey:nn,dropPosition:Cn,dragOverNodeKey:An,indent:_n,direction:er,dropIndicatorRender:Ro,loadData:co,filterTreeNode:no,titleRender:Mo,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},x.createElement("div",{role:"tree",className:Ue()(Ct,pt,rr,(st={},(0,ue.Z)(st,"".concat(Ct,"-show-line"),Lt),(0,ue.Z)(st,"".concat(Ct,"-focused"),Rt),(0,ue.Z)(st,"".concat(Ct,"-active-focused"),Tt!==null),st)),style:Lo},x.createElement($o,(0,le.Z)({ref:this.listRef,prefixCls:Ct,style:bt,data:qe,disabled:Wa,selectable:Wn,checkable:!!Pa,motion:Ua,dragging:at!==null,height:Ia,itemHeight:Jo,virtual:qo,focusable:dn,focused:Rt,tabIndex:Mn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Wo,onScroll:yo},this.getTreeNodeRequiredProps(),Br))))}}],[{key:"getDerivedStateFromProps",value:function(st,wt){var Rt=wt.prevProps,qe={prevProps:st};function it(dn){return!Rt&&dn in st||Rt&&Rt[dn]!==st[dn]}var at,Tt=wt.fieldNames;if(it("fieldNames")&&(Tt=(0,ha.w$)(st.fieldNames),qe.fieldNames=Tt),it("treeData")?at=st.treeData:it("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),at=(0,ha.zn)(st.children)),at){qe.treeData=at;var Qt=(0,ha.I8)(at,{fieldNames:Tt});qe.keyEntities=(0,Ie.Z)((0,ue.Z)({},ma,At),Qt.keyEntities)}var sn=qe.keyEntities||wt.keyEntities;if(it("expandedKeys")||Rt&&it("autoExpandParent"))qe.expandedKeys=st.autoExpandParent||!Rt&&st.defaultExpandParent?(0,Sa.r7)(st.expandedKeys,sn):st.expandedKeys;else if(!Rt&&st.defaultExpandAll){var nn=(0,Ie.Z)({},sn);delete nn[ma],qe.expandedKeys=Object.keys(nn).map(function(dn){return nn[dn].key})}else!Rt&&st.defaultExpandedKeys&&(qe.expandedKeys=st.autoExpandParent||st.defaultExpandParent?(0,Sa.r7)(st.defaultExpandedKeys,sn):st.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,at||qe.expandedKeys){var Cn=(0,ha.oH)(at||wt.treeData,qe.expandedKeys||wt.expandedKeys,Tt);qe.flattenNodes=Cn}if(st.selectable&&(it("selectedKeys")?qe.selectedKeys=(0,Sa.BT)(st.selectedKeys,st):!Rt&&st.defaultSelectedKeys&&(qe.selectedKeys=(0,Sa.BT)(st.defaultSelectedKeys,st))),st.checkable){var An;if(it("checkedKeys")?An=(0,Sa.E6)(st.checkedKeys)||{}:!Rt&&st.defaultCheckedKeys?An=(0,Sa.E6)(st.defaultCheckedKeys)||{}:at&&(An=(0,Sa.E6)(st.checkedKeys)||{checkedKeys:wt.checkedKeys,halfCheckedKeys:wt.halfCheckedKeys}),An){var _n=An,Wt=_n.checkedKeys,Ct=Wt===void 0?[]:Wt,pt=_n.halfCheckedKeys,bt=pt===void 0?[]:pt;if(!st.checkStrictly){var Lt=(0,Ko.S)(Ct,!0,sn);Ct=Lt.checkedKeys,bt=Lt.halfCheckedKeys}qe.checkedKeys=Ct,qe.halfCheckedKeys=bt}}return it("loadedKeys")&&(qe.loadedKeys=st.loadedKeys),qe}}]),ut}(x.Component);to.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:E,allowDrop:function(){return!0},expandAction:!1},to.TreeNode=Aa.Z;var Vo=to,Io=Vo,pr=te(73148),Zo=te(56747),vr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Mt=vr,Da=te(74643),ar=function(Je,ut){return x.createElement(Da.Z,(0,le.Z)({},Je,{ref:ut,icon:Mt}))},Zt=x.forwardRef(ar),Bn=te(53124),da=te(50881),jn=te(33603),So=te(32157);const La=4;function ja(We){const{dropPosition:Je,dropLevelOffset:ut,prefixCls:he,indent:st,direction:wt="ltr"}=We,Rt=wt==="ltr"?"left":"right",qe=wt==="ltr"?"right":"left",it={[Rt]:-ut*st+La,[qe]:0};switch(Je){case-1:it.top=-3;break;case 1:it.bottom=-3;break;default:it.bottom=-3,it[Rt]=st+La;break}return x.createElement("div",{style:it,className:`${he}-drop-indicator`})}var so=te(99184),or=x.forwardRef((We,Je)=>{const{getPrefixCls:ut,direction:he,virtual:st,tree:wt}=x.useContext(Bn.E_),{prefixCls:Rt,className:qe,showIcon:it=!1,showLine:at,switcherIcon:Tt,blockNode:Qt=!1,children:sn,checkable:nn=!1,selectable:Cn=!0,draggable:An,motion:_n,style:Wt}=We,Ct=ut("tree",Rt),pt=ut(),bt=_n!=null?_n:Object.assign(Object.assign({},(0,jn.Z)(pt)),{motionAppear:!1}),Lt=Object.assign(Object.assign({},We),{checkable:nn,selectable:Cn,showIcon:it,motion:bt,blockNode:Qt,showLine:!!at,dropIndicatorRender:ja}),[dn,Un]=(0,So.ZP)(Ct),Mn=x.useMemo(()=>{if(!An)return!1;let Gn={};switch(typeof An){case"function":Gn.nodeDraggable=An;break;case"object":Gn=Object.assign({},An);break;default:break}return Gn.icon!==!1&&(Gn.icon=Gn.icon||x.createElement(da.Z,null)),Gn},[An]),Wn=Gn=>x.createElement(so.Z,{prefixCls:Ct,switcherIcon:Tt,treeNodeProps:Gn,showLine:at});return dn(x.createElement(Io,Object.assign({itemHeight:20,ref:Je,virtual:st},Lt,{style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Wt),prefixCls:Ct,className:Ue()({[`${Ct}-icon-hide`]:!it,[`${Ct}-block-node`]:Qt,[`${Ct}-unselectable`]:!Cn,[`${Ct}-rtl`]:he==="rtl"},wt==null?void 0:wt.className,qe,Un),direction:he,checkable:nn&&x.createElement("span",{className:`${Ct}-checkbox-inner`}),selectable:Cn,switcherIcon:Wn,draggable:Mn}),sn))}),Co;(function(We){We[We.None=0]="None",We[We.Start=1]="Start",We[We.End=2]="End"})(Co||(Co={}));function Ar(We,Je){function ut(he){const{key:st,children:wt}=he;Je(st,he)!==!1&&Ar(wt||[],Je)}We.forEach(ut)}function Nr(We){let{treeData:Je,expandedKeys:ut,startKey:he,endKey:st}=We;const wt=[];let Rt=Co.None;if(he&&he===st)return[he];if(!he||!st)return[];function qe(it){return it===he||it===st}return Ar(Je,it=>{if(Rt===Co.End)return!1;if(qe(it)){if(wt.push(it),Rt===Co.None)Rt=Co.Start;else if(Rt===Co.Start)return Rt=Co.End,!1}else Rt===Co.Start&&wt.push(it);return ut.includes(it)}),wt}function cr(We,Je){const ut=(0,xe.Z)(Je),he=[];return Ar(We,(st,wt)=>{const Rt=ut.indexOf(st);return Rt!==-1&&(he.push(wt),ut.splice(Rt,1)),!!ut.length}),he}var Pr=function(We,Je){var ut={};for(var he in We)Object.prototype.hasOwnProperty.call(We,he)&&Je.indexOf(he)<0&&(ut[he]=We[he]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,he=Object.getOwnPropertySymbols(We);st<he.length;st++)Je.indexOf(he[st])<0&&Object.prototype.propertyIsEnumerable.call(We,he[st])&&(ut[he[st]]=We[he[st]]);return ut};function Hr(We){const{isLeaf:Je,expanded:ut}=We;return Je?x.createElement(pr.Z,null):ut?x.createElement(Zo.Z,null):x.createElement(Zt,null)}function Fr(We){let{treeData:Je,children:ut}=We;return Je||(0,ha.zn)(ut)}const zr=(We,Je)=>{var{defaultExpandAll:ut,defaultExpandParent:he,defaultExpandedKeys:st}=We,wt=Pr(We,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Rt=x.useRef(),qe=x.useRef(),it=()=>{const{keyEntities:Mn}=(0,ha.I8)(Fr(wt));let Wn;return ut?Wn=Object.keys(Mn):he?Wn=(0,Sa.r7)(wt.expandedKeys||st||[],Mn):Wn=wt.expandedKeys||st,Wn},[at,Tt]=x.useState(wt.selectedKeys||wt.defaultSelectedKeys||[]),[Qt,sn]=x.useState(()=>it());x.useEffect(()=>{"selectedKeys"in wt&&Tt(wt.selectedKeys)},[wt.selectedKeys]),x.useEffect(()=>{"expandedKeys"in wt&&sn(wt.expandedKeys)},[wt.expandedKeys]);const nn=(Mn,Wn)=>{var Gn;return"expandedKeys"in wt||sn(Mn),(Gn=wt.onExpand)===null||Gn===void 0?void 0:Gn.call(wt,Mn,Wn)},Cn=(Mn,Wn)=>{var Gn;const{multiple:Yn}=wt,{node:Xn,nativeEvent:wa}=Wn,{key:Pa=""}=Xn,Ba=Fr(wt),Wa=Object.assign(Object.assign({},Wn),{selected:!0}),Ua=(wa==null?void 0:wa.ctrlKey)||(wa==null?void 0:wa.metaKey),co=wa==null?void 0:wa.shiftKey;let no;Yn&&Ua?(no=Mn,Rt.current=Pa,qe.current=no,Wa.selectedNodes=cr(Ba,no)):Yn&&co?(no=Array.from(new Set([].concat((0,xe.Z)(qe.current||[]),(0,xe.Z)(Nr({treeData:Ba,expandedKeys:Qt,startKey:Pa,endKey:Rt.current}))))),Wa.selectedNodes=cr(Ba,no)):(no=[Pa],Rt.current=Pa,qe.current=no,Wa.selectedNodes=cr(Ba,no)),(Gn=wt.onSelect)===null||Gn===void 0||Gn.call(wt,no,Wa),"selectedKeys"in wt||Tt(no)},{getPrefixCls:An,direction:_n}=x.useContext(Bn.E_),{prefixCls:Wt,className:Ct,showIcon:pt=!0,expandAction:bt="click"}=wt,Lt=Pr(wt,["prefixCls","className","showIcon","expandAction"]),dn=An("tree",Wt),Un=Ue()(`${dn}-directory`,{[`${dn}-directory-rtl`]:_n==="rtl"},Ct);return x.createElement(or,Object.assign({icon:Hr,ref:Je,blockNode:!0},Lt,{showIcon:pt,expandAction:bt,prefixCls:dn,className:Un,expandedKeys:Qt,selectedKeys:at,onSelect:Cn,onExpand:nn}))};var kr=x.forwardRef(zr);const jo=or;jo.DirectoryTree=kr,jo.TreeNode=Aa.Z;var yr=jo},32157:function(Xe,ot,te){"use strict";te.d(ot,{TM:function(){return Ce},Yk:function(){return Ue}});var le=te(45930),ue=te(63185),$e=te(14747),Ie=te(33507),xe=te(45503),Fe=te(67968);const re=new le.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ye=(ie,a)=>({[`.${ie}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),Me=(ie,a)=>({[`.${ie}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:a.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${a.lineWidthBold}px solid ${a.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Re=(ie,a)=>{const{treeCls:y,treeNodeCls:x,treeNodePadding:b,titleHeight:E,nodeSelectedBg:z,nodeHoverBg:ee}=a,ne=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,$e.Wf)(a)),{background:a.colorBgContainer,borderRadius:a.borderRadius,transition:`background-color ${a.motionDurationSlow}`,[`&${y}-rtl`]:{[`${y}-switcher`]:{"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${y}-active-focused)`]:Object.assign({},(0,$e.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${x}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:re,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,$e.oN)(a)),[`&:not(${x}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:E,lineHeight:`${E}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${x}:hover &`]:{opacity:.45}},[`&${x}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:E}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},Ye(ie,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:E,margin:0,lineHeight:`${E}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:a.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:E/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:E/2*.8,height:E/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:ne},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:E,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${E}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${y}-node-selected`]:{backgroundColor:z},[`${y}-iconEle`]:{display:"inline-block",width:E,height:E,lineHeight:`${E}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${E}px`,userSelect:"none"},Me(ie,a)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:E/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${x}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${E/2}px !important`}}}}})}},He=ie=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:x,directoryNodeSelectedBg:b,directoryNodeSelectedColor:E}=ie;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${ie.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ie.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ie.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:E,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:E},[`${a}-node-content-wrapper`]:{color:E,background:"transparent"}}}}}},Ue=(ie,a)=>{const y=`.${ie}`,x=`${y}-treenode`,b=a.paddingXS/2,E=(0,xe.TS)(a,{treeCls:y,treeNodeCls:x,treeNodePadding:b});return[Re(ie,E),He(E)]},Ce=ie=>{const{controlHeightSM:a}=ie;return{titleHeight:a,nodeHoverBg:ie.controlItemBgHover,nodeSelectedBg:ie.controlItemBgActive}};ot.ZP=(0,Fe.Z)("Tree",(ie,a)=>{let{prefixCls:y}=a;return[{[ie.componentCls]:(0,ue.C2)(`${y}-checkbox`,ie)},Ue(y,ie),(0,Ie.Z)(ie)]},ie=>{const{colorTextLightSolid:a,colorPrimary:y}=ie;return Object.assign(Object.assign({},Ce(ie)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},99184:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return y}});var le=te(87462),ue=te(67294),$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ie=$e,xe=te(74643),Fe=function(b,E){return ue.createElement(xe.Z,(0,le.Z)({},b,{ref:E,icon:Ie}))},re=ue.forwardRef(Fe),Ye=te(73148),Me=te(3407),Re=te(34182),He=te(74664),Ue=te(94184),Ce=te.n(Ue),ie=te(96159),y=x=>{const{prefixCls:b,switcherIcon:E,treeNodeProps:z,showLine:ee}=x,{isLeaf:ne,expanded:de,loading:se}=z;if(se)return ue.createElement(Me.Z,{className:`${b}-switcher-loading-icon`});let me;if(ee&&typeof ee=="object"&&(me=ee.showLeafIcon),ne){if(!ee)return null;if(typeof me!="boolean"&&me){const Le=typeof me=="function"?me(z):me,fe=`${b}-switcher-line-custom-icon`;return(0,ie.l$)(Le)?(0,ie.Tm)(Le,{className:Ce()(Le.props.className||"",fe)}):Le}return me?ue.createElement(Ye.Z,{className:`${b}-switcher-line-icon`}):ue.createElement("span",{className:`${b}-switcher-leaf-line`})}const ye=`${b}-switcher-icon`,pe=typeof E=="function"?E(z):E;return(0,ie.l$)(pe)?(0,ie.Tm)(pe,{className:Ce()(pe.props.className||"",ye)}):pe!==void 0?pe:ee?de?ue.createElement(Re.Z,{className:`${b}-switcher-line-icon`}):ue.createElement(He.Z,{className:`${b}-switcher-line-icon`}):ue.createElement(re,{className:ye})}},72665:function(Xe,ot){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,ue=le?Symbol.for("react.element"):60103,$e=le?Symbol.for("react.portal"):60106,Ie=le?Symbol.for("react.fragment"):60107,xe=le?Symbol.for("react.strict_mode"):60108,Fe=le?Symbol.for("react.profiler"):60114,re=le?Symbol.for("react.provider"):60109,Ye=le?Symbol.for("react.context"):60110,Me=le?Symbol.for("react.async_mode"):60111,Re=le?Symbol.for("react.concurrent_mode"):60111,He=le?Symbol.for("react.forward_ref"):60112,Ue=le?Symbol.for("react.suspense"):60113,Ce=le?Symbol.for("react.suspense_list"):60120,ie=le?Symbol.for("react.memo"):60115,a=le?Symbol.for("react.lazy"):60116,y=le?Symbol.for("react.block"):60121,x=le?Symbol.for("react.fundamental"):60117,b=le?Symbol.for("react.responder"):60118,E=le?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var de=ne.$$typeof;switch(de){case ue:switch(ne=ne.type,ne){case Me:case Re:case Ie:case Fe:case xe:case Ue:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ye:case He:case a:case ie:case re:return ne;default:return de}}case $e:return de}}}function ee(ne){return z(ne)===Re}te=Me,te=Re,te=Ye,te=re,te=ue,te=He,te=Ie,te=a,te=ie,te=$e,te=Fe,te=xe,te=Ue,te=function(ne){return ee(ne)||z(ne)===Me},te=ee,te=function(ne){return z(ne)===Ye},te=function(ne){return z(ne)===re},te=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===ue},te=function(ne){return z(ne)===He},te=function(ne){return z(ne)===Ie},te=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ie},te=function(ne){return z(ne)===$e},te=function(ne){return z(ne)===Fe},te=function(ne){return z(ne)===xe},te=function(ne){return z(ne)===Ue},te=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ie||ne===Re||ne===Fe||ne===xe||ne===Ue||ne===Ce||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ie||ne.$$typeof===re||ne.$$typeof===Ye||ne.$$typeof===He||ne.$$typeof===x||ne.$$typeof===b||ne.$$typeof===E||ne.$$typeof===y)},te=z},12060:function(Xe,ot,te){"use strict";Xe.exports=te(72665)},56261:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return me}});var le=te(87462),ue=te(4942),$e=te(45987),Ie=te(1413),xe=te(15671),Fe=te(43144),re=te(97326),Ye=te(60136),Me=te(51630),Re=te(94184),He=te.n(Re),Ue=te(34952),Ce=te(67294),ie=te(69610),a=function(pe){for(var Le=pe.prefixCls,fe=pe.level,yt=pe.isStart,rt=pe.isEnd,Vt="".concat(Le,"-indent-unit"),Ee=[],Ge=0;Ge<fe;Ge+=1){var tt;Ee.push(Ce.createElement("span",{key:Ge,className:He()(Vt,(tt={},(0,ue.Z)(tt,"".concat(Vt,"-start"),yt[Ge]),(0,ue.Z)(tt,"".concat(Vt,"-end"),rt[Ge]),tt))}))}return Ce.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},Ee)},y=Ce.memo(a),x=te(3596),b=te(83898),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",ee="close",ne="---",de=function(ye){(0,Ye.Z)(Le,ye);var pe=(0,Me.Z)(Le);function Le(){var fe;(0,xe.Z)(this,Le);for(var yt=arguments.length,rt=new Array(yt),Vt=0;Vt<yt;Vt++)rt[Vt]=arguments[Vt];return fe=pe.call.apply(pe,[this].concat(rt)),fe.state={dragNodeHighlight:!1},fe.selectHandle=void 0,fe.cacheIndent=void 0,fe.onSelectorClick=function(Ee){var Ge=fe.props.context.onNodeClick;Ge(Ee,(0,b.F)(fe.props)),fe.isSelectable()?fe.onSelect(Ee):fe.onCheck(Ee)},fe.onSelectorDoubleClick=function(Ee){var Ge=fe.props.context.onNodeDoubleClick;Ge(Ee,(0,b.F)(fe.props))},fe.onSelect=function(Ee){if(!fe.isDisabled()){var Ge=fe.props.context.onNodeSelect;Ge(Ee,(0,b.F)(fe.props))}},fe.onCheck=function(Ee){if(!fe.isDisabled()){var Ge=fe.props,tt=Ge.disableCheckbox,nt=Ge.checked,gt=fe.props.context.onNodeCheck;if(!(!fe.isCheckable()||tt)){var zt=!nt;gt(Ee,(0,b.F)(fe.props),zt)}}},fe.onMouseEnter=function(Ee){var Ge=fe.props.context.onNodeMouseEnter;Ge(Ee,(0,b.F)(fe.props))},fe.onMouseLeave=function(Ee){var Ge=fe.props.context.onNodeMouseLeave;Ge(Ee,(0,b.F)(fe.props))},fe.onContextMenu=function(Ee){var Ge=fe.props.context.onNodeContextMenu;Ge(Ee,(0,b.F)(fe.props))},fe.onDragStart=function(Ee){var Ge=fe.props.context.onNodeDragStart;Ee.stopPropagation(),fe.setState({dragNodeHighlight:!0}),Ge(Ee,(0,re.Z)(fe));try{Ee.dataTransfer.setData("text/plain","")}catch(tt){}},fe.onDragEnter=function(Ee){var Ge=fe.props.context.onNodeDragEnter;Ee.preventDefault(),Ee.stopPropagation(),Ge(Ee,(0,re.Z)(fe))},fe.onDragOver=function(Ee){var Ge=fe.props.context.onNodeDragOver;Ee.preventDefault(),Ee.stopPropagation(),Ge(Ee,(0,re.Z)(fe))},fe.onDragLeave=function(Ee){var Ge=fe.props.context.onNodeDragLeave;Ee.stopPropagation(),Ge(Ee,(0,re.Z)(fe))},fe.onDragEnd=function(Ee){var Ge=fe.props.context.onNodeDragEnd;Ee.stopPropagation(),fe.setState({dragNodeHighlight:!1}),Ge(Ee,(0,re.Z)(fe))},fe.onDrop=function(Ee){var Ge=fe.props.context.onNodeDrop;Ee.preventDefault(),Ee.stopPropagation(),fe.setState({dragNodeHighlight:!1}),Ge(Ee,(0,re.Z)(fe))},fe.onExpand=function(Ee){var Ge=fe.props,tt=Ge.loading,nt=Ge.context.onNodeExpand;tt||nt(Ee,(0,b.F)(fe.props))},fe.setSelectHandle=function(Ee){fe.selectHandle=Ee},fe.getNodeState=function(){var Ee=fe.props.expanded;return fe.isLeaf()?null:Ee?z:ee},fe.hasChildren=function(){var Ee=fe.props.eventKey,Ge=fe.props.context.keyEntities,tt=(0,x.Z)(Ge,Ee)||{},nt=tt.children;return!!(nt||[]).length},fe.isLeaf=function(){var Ee=fe.props,Ge=Ee.isLeaf,tt=Ee.loaded,nt=fe.props.context.loadData,gt=fe.hasChildren();return Ge===!1?!1:Ge||!nt&&!gt||nt&&tt&&!gt},fe.isDisabled=function(){var Ee=fe.props.disabled,Ge=fe.props.context.disabled;return!!(Ge||Ee)},fe.isCheckable=function(){var Ee=fe.props.checkable,Ge=fe.props.context.checkable;return!Ge||Ee===!1?!1:Ge},fe.syncLoadData=function(Ee){var Ge=Ee.expanded,tt=Ee.loading,nt=Ee.loaded,gt=fe.props.context,zt=gt.loadData,Kt=gt.onNodeLoad;tt||zt&&Ge&&!fe.isLeaf()&&!fe.hasChildren()&&!nt&&Kt((0,b.F)(fe.props))},fe.isDraggable=function(){var Ee=fe.props,Ge=Ee.data,tt=Ee.context.draggable;return!!(tt&&(!tt.nodeDraggable||tt.nodeDraggable(Ge)))},fe.renderDragHandler=function(){var Ee=fe.props.context,Ge=Ee.draggable,tt=Ee.prefixCls;return Ge!=null&&Ge.icon?Ce.createElement("span",{className:"".concat(tt,"-draggable-icon")},Ge.icon):null},fe.renderSwitcherIconDom=function(Ee){var Ge=fe.props.switcherIcon,tt=fe.props.context.switcherIcon,nt=Ge||tt;return typeof nt=="function"?nt((0,Ie.Z)((0,Ie.Z)({},fe.props),{},{isLeaf:Ee})):nt},fe.renderSwitcher=function(){var Ee=fe.props.expanded,Ge=fe.props.context.prefixCls;if(fe.isLeaf()){var tt=fe.renderSwitcherIconDom(!0);return tt!==!1?Ce.createElement("span",{className:He()("".concat(Ge,"-switcher"),"".concat(Ge,"-switcher-noop"))},tt):null}var nt=He()("".concat(Ge,"-switcher"),"".concat(Ge,"-switcher_").concat(Ee?z:ee)),gt=fe.renderSwitcherIconDom(!1);return gt!==!1?Ce.createElement("span",{onClick:fe.onExpand,className:nt},gt):null},fe.renderCheckbox=function(){var Ee=fe.props,Ge=Ee.checked,tt=Ee.halfChecked,nt=Ee.disableCheckbox,gt=fe.props.context.prefixCls,zt=fe.isDisabled(),Kt=fe.isCheckable();if(!Kt)return null;var bn=typeof Kt!="boolean"?Kt:null;return Ce.createElement("span",{className:He()("".concat(gt,"-checkbox"),Ge&&"".concat(gt,"-checkbox-checked"),!Ge&&tt&&"".concat(gt,"-checkbox-indeterminate"),(zt||nt)&&"".concat(gt,"-checkbox-disabled")),onClick:fe.onCheck},bn)},fe.renderIcon=function(){var Ee=fe.props.loading,Ge=fe.props.context.prefixCls;return Ce.createElement("span",{className:He()("".concat(Ge,"-iconEle"),"".concat(Ge,"-icon__").concat(fe.getNodeState()||"docu"),Ee&&"".concat(Ge,"-icon_loading"))})},fe.renderSelector=function(){var Ee=fe.state.dragNodeHighlight,Ge=fe.props,tt=Ge.title,nt=tt===void 0?ne:tt,gt=Ge.selected,zt=Ge.icon,Kt=Ge.loading,bn=Ge.data,xn=fe.props.context,ke=xn.prefixCls,lt=xn.showIcon,ht=xn.icon,tn=xn.loadData,Et=xn.titleRender,kt=fe.isDisabled(),be="".concat(ke,"-node-content-wrapper"),Bt;if(lt){var en=zt||ht;Bt=en?Ce.createElement("span",{className:He()("".concat(ke,"-iconEle"),"".concat(ke,"-icon__customize"))},typeof en=="function"?en(fe.props):en):fe.renderIcon()}else tn&&Kt&&(Bt=fe.renderIcon());var $n;typeof nt=="function"?$n=nt(bn):Et?$n=Et(bn):$n=nt;var jt=Ce.createElement("span",{className:"".concat(ke,"-title")},$n);return Ce.createElement("span",{ref:fe.setSelectHandle,title:typeof nt=="string"?nt:"",className:He()("".concat(be),"".concat(be,"-").concat(fe.getNodeState()||"normal"),!kt&&(gt||Ee)&&"".concat(ke,"-node-selected")),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave,onContextMenu:fe.onContextMenu,onClick:fe.onSelectorClick,onDoubleClick:fe.onSelectorDoubleClick},Bt,jt,fe.renderDropIndicator())},fe.renderDropIndicator=function(){var Ee=fe.props,Ge=Ee.disabled,tt=Ee.eventKey,nt=fe.props.context,gt=nt.draggable,zt=nt.dropLevelOffset,Kt=nt.dropPosition,bn=nt.prefixCls,xn=nt.indent,ke=nt.dropIndicatorRender,lt=nt.dragOverNodeKey,ht=nt.direction,tn=!!gt,Et=!Ge&&tn&<===tt,kt=xn!=null?xn:fe.cacheIndent;return fe.cacheIndent=xn,Et?ke({dropPosition:Kt,dropLevelOffset:zt,indent:kt,prefixCls:bn,direction:ht}):null},fe}return(0,Fe.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var yt=this.props.selectable,rt=this.props.context.selectable;return typeof yt=="boolean"?yt:rt}},{key:"render",value:function(){var yt,rt=this.props,Vt=rt.eventKey,Ee=rt.className,Ge=rt.style,tt=rt.dragOver,nt=rt.dragOverGapTop,gt=rt.dragOverGapBottom,zt=rt.isLeaf,Kt=rt.isStart,bn=rt.isEnd,xn=rt.expanded,ke=rt.selected,lt=rt.checked,ht=rt.halfChecked,tn=rt.loading,Et=rt.domRef,kt=rt.active,be=rt.data,Bt=rt.onMouseMove,en=rt.selectable,$n=(0,$e.Z)(rt,E),jt=this.props.context,ct=jt.prefixCls,_e=jt.filterTreeNode,De=jt.keyEntities,ze=jt.dropContainerKey,Qe=jt.dropTargetKey,St=jt.draggingNodeKey,Ft=this.isDisabled(),qt=(0,Ue.Z)($n,{aria:!0,data:!0}),an=(0,x.Z)(De,Vt)||{},pn=an.level,Nn=bn[bn.length-1],Pe=this.isDraggable(),Ae=!Ft&&Pe,cn=St===Vt,Nt=en!==void 0?{"aria-selected":!!en}:void 0;return Ce.createElement("div",(0,le.Z)({ref:Et,className:He()(Ee,"".concat(ct,"-treenode"),(yt={},(0,ue.Z)(yt,"".concat(ct,"-treenode-disabled"),Ft),(0,ue.Z)(yt,"".concat(ct,"-treenode-switcher-").concat(xn?"open":"close"),!zt),(0,ue.Z)(yt,"".concat(ct,"-treenode-checkbox-checked"),lt),(0,ue.Z)(yt,"".concat(ct,"-treenode-checkbox-indeterminate"),ht),(0,ue.Z)(yt,"".concat(ct,"-treenode-selected"),ke),(0,ue.Z)(yt,"".concat(ct,"-treenode-loading"),tn),(0,ue.Z)(yt,"".concat(ct,"-treenode-active"),kt),(0,ue.Z)(yt,"".concat(ct,"-treenode-leaf-last"),Nn),(0,ue.Z)(yt,"".concat(ct,"-treenode-draggable"),Pe),(0,ue.Z)(yt,"dragging",cn),(0,ue.Z)(yt,"drop-target",Qe===Vt),(0,ue.Z)(yt,"drop-container",ze===Vt),(0,ue.Z)(yt,"drag-over",!Ft&&tt),(0,ue.Z)(yt,"drag-over-gap-top",!Ft&&nt),(0,ue.Z)(yt,"drag-over-gap-bottom",!Ft&>),(0,ue.Z)(yt,"filter-node",_e&&_e((0,b.F)(this.props))),yt)),style:Ge,draggable:Ae,"aria-grabbed":cn,onDragStart:Ae?this.onDragStart:void 0,onDragEnter:Pe?this.onDragEnter:void 0,onDragOver:Pe?this.onDragOver:void 0,onDragLeave:Pe?this.onDragLeave:void 0,onDrop:Pe?this.onDrop:void 0,onDragEnd:Pe?this.onDragEnd:void 0,onMouseMove:Bt},Nt,qt),Ce.createElement(y,{prefixCls:ct,level:pn,isStart:Kt,isEnd:bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(Ce.Component),se=function(pe){return Ce.createElement(ie.k.Consumer,null,function(Le){return Ce.createElement(de,(0,le.Z)({},pe,{context:Le}))})};se.displayName="TreeNode",se.isTreeNode=1;var me=se},69610:function(Xe,ot,te){"use strict";te.d(ot,{k:function(){return ue}});var le=te(67294),ue=le.createContext(null)},29873:function(Xe,ot,te){"use strict";te.d(ot,{BT:function(){return y},E6:function(){return E},L0:function(){return Re},OM:function(){return a},_5:function(){return Me},r7:function(){return z},wA:function(){return Ue},yx:function(){return He}});var le=te(74902),ue=te(71002),$e=te(72978),Ie=te(67294),xe=te(56261),Fe=te(3596),re=te(83898),Ye=null;function Me(ee,ne){if(!ee)return[];var de=ee.slice(),se=de.indexOf(ne);return se>=0&&de.splice(se,1),de}function Re(ee,ne){var de=(ee||[]).slice();return de.indexOf(ne)===-1&&de.push(ne),de}function He(ee){return ee.split("-")}function Ue(ee,ne){var de=[],se=(0,Fe.Z)(ne,ee);function me(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(pe){var Le=pe.key,fe=pe.children;de.push(Le),me(fe)})}return me(se.children),de}function Ce(ee){if(ee.parent){var ne=He(ee.pos);return Number(ne[ne.length-1])===ee.parent.children.length-1}return!1}function ie(ee){var ne=He(ee.pos);return Number(ne[ne.length-1])===0}function a(ee,ne,de,se,me,ye,pe,Le,fe,yt){var rt,Vt=ee.clientX,Ee=ee.clientY,Ge=ee.target.getBoundingClientRect(),tt=Ge.top,nt=Ge.height,gt=(yt==="rtl"?-1:1)*(((me==null?void 0:me.x)||0)-Vt),zt=(gt-12)/se,Kt=(0,Fe.Z)(Le,de.props.eventKey);if(Ee<tt+nt/2){var bn=pe.findIndex(function(jt){return jt.key===Kt.key}),xn=bn<=0?0:bn-1,ke=pe[xn].key;Kt=(0,Fe.Z)(Le,ke)}var lt=Kt.key,ht=Kt,tn=Kt.key,Et=0,kt=0;if(!fe.includes(lt))for(var be=0;be<zt&&Ce(Kt);be+=1)Kt=Kt.parent,kt+=1;var Bt=ne.props.data,en=Kt.node,$n=!0;return ie(Kt)&&Kt.level===0&&Ee<tt+nt/2&&ye({dragNode:Bt,dropNode:en,dropPosition:-1})&&Kt.key===de.props.eventKey?Et=-1:(ht.children||[]).length&&fe.includes(tn)?ye({dragNode:Bt,dropNode:en,dropPosition:0})?Et=0:$n=!1:kt===0?zt>-1.5?ye({dragNode:Bt,dropNode:en,dropPosition:1})?Et=1:$n=!1:ye({dragNode:Bt,dropNode:en,dropPosition:0})?Et=0:ye({dragNode:Bt,dropNode:en,dropPosition:1})?Et=1:$n=!1:ye({dragNode:Bt,dropNode:en,dropPosition:1})?Et=1:$n=!1,{dropPosition:Et,dropLevelOffset:kt,dropTargetKey:Kt.key,dropTargetPos:Kt.pos,dragOverNodeKey:tn,dropContainerKey:Et===0?null:((rt=Kt.parent)===null||rt===void 0?void 0:rt.key)||null,dropAllowed:$n}}function y(ee,ne){if(ee){var de=ne.multiple;return de?ee.slice():ee.length?[ee[0]]:ee}}var x=function(ne){return ne};function b(ee,ne){if(!ee)return[];var de=ne||{},se=de.processProps,me=se===void 0?x:se,ye=Array.isArray(ee)?ee:[ee];return ye.map(function(pe){var Le=pe.children,fe=_objectWithoutProperties(pe,Ye),yt=b(Le,ne);return React.createElement(TreeNode,_extends({key:fe.key},me(fe)),yt)})}function E(ee){if(!ee)return null;var ne;if(Array.isArray(ee))ne={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,ue.Z)(ee)==="object")ne={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,$e.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ne}function z(ee,ne){var de=new Set;function se(me){if(!de.has(me)){var ye=(0,Fe.Z)(ne,me);if(ye){de.add(me);var pe=ye.parent,Le=ye.node;Le.disabled||pe&&se(pe.key)}}}return(ee||[]).forEach(function(me){se(me)}),(0,le.Z)(de)}},97153:function(Xe,ot,te){"use strict";te.d(ot,{S:function(){return re}});var le=te(72978),ue=te(3596);function $e(Ye,Me){var Re=new Set;return Ye.forEach(function(He){Me.has(He)||Re.add(He)}),Re}function Ie(Ye){var Me=Ye||{},Re=Me.disabled,He=Me.disableCheckbox,Ue=Me.checkable;return!!(Re||He)||Ue===!1}function xe(Ye,Me,Re,He){for(var Ue=new Set(Ye),Ce=new Set,ie=0;ie<=Re;ie+=1){var a=Me.get(ie)||new Set;a.forEach(function(E){var z=E.key,ee=E.node,ne=E.children,de=ne===void 0?[]:ne;Ue.has(z)&&!He(ee)&&de.filter(function(se){return!He(se.node)}).forEach(function(se){Ue.add(se.key)})})}for(var y=new Set,x=Re;x>=0;x-=1){var b=Me.get(x)||new Set;b.forEach(function(E){var z=E.parent,ee=E.node;if(!(He(ee)||!E.parent||y.has(E.parent.key))){if(He(E.parent.node)){y.add(z.key);return}var ne=!0,de=!1;(z.children||[]).filter(function(se){return!He(se.node)}).forEach(function(se){var me=se.key,ye=Ue.has(me);ne&&!ye&&(ne=!1),!de&&(ye||Ce.has(me))&&(de=!0)}),ne&&Ue.add(z.key),de&&Ce.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(Ue),halfCheckedKeys:Array.from($e(Ce,Ue))}}function Fe(Ye,Me,Re,He,Ue){for(var Ce=new Set(Ye),ie=new Set(Me),a=0;a<=He;a+=1){var y=Re.get(a)||new Set;y.forEach(function(z){var ee=z.key,ne=z.node,de=z.children,se=de===void 0?[]:de;!Ce.has(ee)&&!ie.has(ee)&&!Ue(ne)&&se.filter(function(me){return!Ue(me.node)}).forEach(function(me){Ce.delete(me.key)})})}ie=new Set;for(var x=new Set,b=He;b>=0;b-=1){var E=Re.get(b)||new Set;E.forEach(function(z){var ee=z.parent,ne=z.node;if(!(Ue(ne)||!z.parent||x.has(z.parent.key))){if(Ue(z.parent.node)){x.add(ee.key);return}var de=!0,se=!1;(ee.children||[]).filter(function(me){return!Ue(me.node)}).forEach(function(me){var ye=me.key,pe=Ce.has(ye);de&&!pe&&(de=!1),!se&&(pe||ie.has(ye))&&(se=!0)}),de||Ce.delete(ee.key),se&&ie.add(ee.key),x.add(ee.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from($e(ie,Ce))}}function re(Ye,Me,Re,He){var Ue=[],Ce;He?Ce=He:Ce=Ie;var ie=new Set(Ye.filter(function(b){var E=!!(0,ue.Z)(Re,b);return E||Ue.push(b),E})),a=new Map,y=0;Object.keys(Re).forEach(function(b){var E=Re[b],z=E.level,ee=a.get(z);ee||(ee=new Set,a.set(z,ee)),ee.add(E),y=Math.max(y,z)}),(0,le.ZP)(!Ue.length,"Tree missing follow keys: ".concat(Ue.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var x;return Me===!0?x=xe(ie,a,y,Ce):x=Fe(ie,Me.halfCheckedKeys,a,y,Ce),x}},3596:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return le}});function le(ue,$e){return ue[$e]}},83898:function(Xe,ot,te){"use strict";te.d(ot,{I8:function(){return z},F:function(){return ne},zn:function(){return x},w$:function(){return a},oH:function(){return b},km:function(){return ie},H8:function(){return ee}});var le=te(71002),ue=te(74902),$e=te(1413),Ie=te(45987),xe=te(67294),Fe=te(28580);function re(de){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[];return xe.Children.forEach(de,function(ye){ye==null&&!se.keepEmpty||(Array.isArray(ye)?me=me.concat(re(ye)):(0,Fe.isFragment)(ye)&&ye.props?me=me.concat(re(ye.props.children,se)):me.push(ye))}),me}function Ye(de,se){var me=(0,$e.Z)({},de);return Array.isArray(se)&&se.forEach(function(ye){delete me[ye]}),me}var Me=te(72978),Re=te(3596),He=["children"];function Ue(de,se){return"".concat(de,"-").concat(se)}function Ce(de){return de&&de.type&&de.type.isTreeNode}function ie(de,se){return de!=null?de:se}function a(de){var se=de||{},me=se.title,ye=se._title,pe=se.key,Le=se.children,fe=me||"title";return{title:fe,_title:ye||[fe],key:pe||"key",children:Le||"children"}}function y(de,se){var me=new Map;function ye(pe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(pe||[]).forEach(function(fe){var yt=fe[se.key],rt=fe[se.children];warning(yt!=null,"Tree node must have a certain key: [".concat(Le).concat(yt,"]"));var Vt=String(yt);warning(!me.has(Vt)||yt===null||yt===void 0,"Same 'key' exist in the Tree: ".concat(Vt)),me.set(Vt,!0),ye(rt,"".concat(Le).concat(Vt," > "))})}ye(de)}function x(de){function se(me){var ye=re(me);return ye.map(function(pe){if(!Ce(pe))return(0,Me.ZP)(!pe,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=pe.key,fe=pe.props,yt=fe.children,rt=(0,Ie.Z)(fe,He),Vt=(0,$e.Z)({key:Le},rt),Ee=se(yt);return Ee.length&&(Vt.children=Ee),Vt}).filter(function(pe){return pe})}return se(de)}function b(de,se,me){var ye=a(me),pe=ye._title,Le=ye.key,fe=ye.children,yt=new Set(se===!0?[]:se),rt=[];function Vt(Ee){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ee.map(function(tt,nt){for(var gt=Ue(Ge?Ge.pos:"0",nt),zt=ie(tt[Le],gt),Kt,bn=0;bn<pe.length;bn+=1){var xn=pe[bn];if(tt[xn]!==void 0){Kt=tt[xn];break}}var ke=(0,$e.Z)((0,$e.Z)({},Ye(tt,[].concat((0,ue.Z)(pe),[Le,fe]))),{},{title:Kt,key:zt,parent:Ge,pos:gt,children:null,data:tt,isStart:[].concat((0,ue.Z)(Ge?Ge.isStart:[]),[nt===0]),isEnd:[].concat((0,ue.Z)(Ge?Ge.isEnd:[]),[nt===Ee.length-1])});return rt.push(ke),se===!0||yt.has(zt)?ke.children=Vt(tt[fe]||[],ke):ke.children=[],ke})}return Vt(de),rt}function E(de,se,me){var ye={};(0,le.Z)(me)==="object"?ye=me:ye={externalGetKey:me},ye=ye||{};var pe=ye,Le=pe.childrenPropName,fe=pe.externalGetKey,yt=pe.fieldNames,rt=a(yt),Vt=rt.key,Ee=rt.children,Ge=Le||Ee,tt;fe?typeof fe=="string"?tt=function(zt){return zt[fe]}:typeof fe=="function"&&(tt=function(zt){return fe(zt)}):tt=function(zt,Kt){return ie(zt[Vt],Kt)};function nt(gt,zt,Kt,bn){var xn=gt?gt[Ge]:de,ke=gt?Ue(Kt.pos,zt):"0",lt=gt?[].concat((0,ue.Z)(bn),[gt]):[];if(gt){var ht=tt(gt,ke),tn={node:gt,index:zt,pos:ke,key:ht,parentPos:Kt.node?Kt.pos:null,level:Kt.level+1,nodes:lt};se(tn)}xn&&xn.forEach(function(Et,kt){nt(Et,kt,{node:gt,pos:ke,level:Kt?Kt.level+1:-1},lt)})}nt(null)}function z(de){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=se.initWrapper,ye=se.processEntity,pe=se.onProcessFinished,Le=se.externalGetKey,fe=se.childrenPropName,yt=se.fieldNames,rt=arguments.length>2?arguments[2]:void 0,Vt=Le||rt,Ee={},Ge={},tt={posEntities:Ee,keyEntities:Ge};return me&&(tt=me(tt)||tt),E(de,function(nt){var gt=nt.node,zt=nt.index,Kt=nt.pos,bn=nt.key,xn=nt.parentPos,ke=nt.level,lt=nt.nodes,ht={node:gt,nodes:lt,index:zt,key:bn,pos:Kt,level:ke},tn=ie(bn,Kt);Ee[Kt]=ht,Ge[tn]=ht,ht.parent=Ee[xn],ht.parent&&(ht.parent.children=ht.parent.children||[],ht.parent.children.push(ht)),ye&&ye(ht,tt)},{externalGetKey:Vt,childrenPropName:fe,fieldNames:yt}),pe&&pe(tt),tt}function ee(de,se){var me=se.expandedKeys,ye=se.selectedKeys,pe=se.loadedKeys,Le=se.loadingKeys,fe=se.checkedKeys,yt=se.halfCheckedKeys,rt=se.dragOverNodeKey,Vt=se.dropPosition,Ee=se.keyEntities,Ge=(0,Re.Z)(Ee,de),tt={eventKey:de,expanded:me.indexOf(de)!==-1,selected:ye.indexOf(de)!==-1,loaded:pe.indexOf(de)!==-1,loading:Le.indexOf(de)!==-1,checked:fe.indexOf(de)!==-1,halfChecked:yt.indexOf(de)!==-1,pos:String(Ge?Ge.pos:""),dragOver:rt===de&&Vt===0,dragOverGapTop:rt===de&&Vt===-1,dragOverGapBottom:rt===de&&Vt===1};return tt}function ne(de){var se=de.data,me=de.expanded,ye=de.selected,pe=de.checked,Le=de.loaded,fe=de.loading,yt=de.halfChecked,rt=de.dragOver,Vt=de.dragOverGapTop,Ee=de.dragOverGapBottom,Ge=de.pos,tt=de.active,nt=de.eventKey,gt=(0,$e.Z)((0,$e.Z)({},se),{},{expanded:me,selected:ye,checked:pe,loaded:Le,loading:fe,halfChecked:yt,dragOver:rt,dragOverGapTop:Vt,dragOverGapBottom:Ee,pos:Ge,active:tt,key:nt});return"props"in gt||Object.defineProperty(gt,"props",{get:function(){return(0,Me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),de}}),gt}},34952:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return Ye}});var le=te(1413),ue=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,$e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ie="".concat(ue," ").concat($e).split(/[\s\n]+/),xe="aria-",Fe="data-";function re(Me,Re){return Me.indexOf(Re)===0}function Ye(Me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He;Re===!1?He={aria:!0,data:!0,attr:!0}:Re===!0?He={aria:!0}:He=(0,le.Z)({},Re);var Ue={};return Object.keys(Me).forEach(function(Ce){(He.aria&&(Ce==="role"||re(Ce,xe))||He.data&&re(Ce,Fe)||He.attr&&Ie.includes(Ce))&&(Ue[Ce]=Me[Ce])}),Ue}},72978:function(Xe,ot,te){"use strict";var le={};function ue(Ye,Me){}function $e(Ye,Me){}function Ie(){le={}}function xe(Ye,Me,Re){!Me&&!le[Re]&&(Ye(!1,Re),le[Re]=!0)}function Fe(Ye,Me){xe(ue,Ye,Me)}function re(Ye,Me){xe($e,Ye,Me)}ot.ZP=Fe},81533:function(Xe,ot){"use strict";var te;var le=typeof Symbol=="function"&&Symbol.for,ue=le?Symbol.for("react.element"):60103,$e=le?Symbol.for("react.portal"):60106,Ie=le?Symbol.for("react.fragment"):60107,xe=le?Symbol.for("react.strict_mode"):60108,Fe=le?Symbol.for("react.profiler"):60114,re=le?Symbol.for("react.provider"):60109,Ye=le?Symbol.for("react.context"):60110,Me=le?Symbol.for("react.async_mode"):60111,Re=le?Symbol.for("react.concurrent_mode"):60111,He=le?Symbol.for("react.forward_ref"):60112,Ue=le?Symbol.for("react.suspense"):60113,Ce=le?Symbol.for("react.suspense_list"):60120,ie=le?Symbol.for("react.memo"):60115,a=le?Symbol.for("react.lazy"):60116,y=le?Symbol.for("react.block"):60121,x=le?Symbol.for("react.fundamental"):60117,b=le?Symbol.for("react.responder"):60118,E=le?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var de=ne.$$typeof;switch(de){case ue:switch(ne=ne.type,ne){case Me:case Re:case Ie:case Fe:case xe:case Ue:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ye:case He:case a:case ie:case re:return ne;default:return de}}case $e:return de}}}function ee(ne){return z(ne)===Re}te=Me,te=Re,te=Ye,te=re,te=ue,te=He,te=Ie,te=a,te=ie,te=$e,te=Fe,te=xe,te=Ue,te=function(ne){return ee(ne)||z(ne)===Me},te=ee,te=function(ne){return z(ne)===Ye},te=function(ne){return z(ne)===re},te=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===ue},te=function(ne){return z(ne)===He},ot.isFragment=function(ne){return z(ne)===Ie},te=function(ne){return z(ne)===a},ot.isMemo=function(ne){return z(ne)===ie},te=function(ne){return z(ne)===$e},te=function(ne){return z(ne)===Fe},te=function(ne){return z(ne)===xe},te=function(ne){return z(ne)===Ue},te=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ie||ne===Re||ne===Fe||ne===xe||ne===Ue||ne===Ce||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ie||ne.$$typeof===re||ne.$$typeof===Ye||ne.$$typeof===He||ne.$$typeof===x||ne.$$typeof===b||ne.$$typeof===E||ne.$$typeof===y)},te=z},28580:function(Xe,ot,te){"use strict";Xe.exports=te(81533)},92389:function(Xe,ot){"use strict";var te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ue){var $e=ue.keyCode;if(ue.altKey&&!ue.ctrlKey||ue.metaKey||$e>=te.F1&&$e<=te.F12)return!1;switch($e){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ue){if(ue>=te.ZERO&&ue<=te.NINE||ue>=te.NUM_ZERO&&ue<=te.NUM_MULTIPLY||ue>=te.A&&ue<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ue===0)return!0;switch(ue){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};ot.Z=te},81626:function(Xe,ot){"use strict";ot.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(Xe,ot){"use strict";var te;var le=Symbol.for("react.element"),ue=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ie=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),re=Symbol.for("react.context"),Ye=Symbol.for("react.server_context"),Me=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case le:switch(x=x.type,x){case $e:case xe:case Ie:case Re:case He:return x;default:switch(x=x&&x.$$typeof,x){case Ye:case re:case Me:case Ce:case Ue:case Fe:return x;default:return b}}case ue:return b}}}te=re,te=Fe,te=le,te=Me,te=$e,te=Ce,te=Ue,te=ue,te=xe,te=Ie,te=Re,te=He,te=function(){return!1},te=function(){return!1},te=function(x){return y(x)===re},te=function(x){return y(x)===Fe},te=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===le},te=function(x){return y(x)===Me},ot.isFragment=function(x){return y(x)===$e},te=function(x){return y(x)===Ce},te=function(x){return y(x)===Ue},te=function(x){return y(x)===ue},te=function(x){return y(x)===xe},te=function(x){return y(x)===Ie},te=function(x){return y(x)===Re},te=function(x){return y(x)===He},te=function(x){return typeof x=="string"||typeof x=="function"||x===$e||x===xe||x===Ie||x===Re||x===He||x===ie||typeof x=="object"&&x!==null&&(x.$$typeof===Ce||x.$$typeof===Ue||x.$$typeof===Fe||x.$$typeof===re||x.$$typeof===Me||x.$$typeof===a||x.getModuleId!==void 0)},te=y},35110:function(Xe,ot,te){"use strict";Xe.exports=te(46762)},36459:function(Xe,ot,te){"use strict";te.d(ot,{Z:function(){return le}});function le(ue){if(ue==null)throw new TypeError("Cannot destructure "+ue)}}}]);
|