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

207 lines
549 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[8882],{27812:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},89489:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},59477:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},26227:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},49198:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},52671:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},8657:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},56082:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},33853:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},63524:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},15075:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},43531:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},38819:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Je}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(He,Re){return ce.createElement(we.Z,(0,ie.Z)({},He,{ref:Re,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae},96408:function(qe,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25863:function(){"use strict";function qe(oe,y,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=oe,this._defaultValue=y,this._minimum=a,this._maximum=x}Object.defineProperty(qe.prototype,"name",{get:function(){return this._name},set:function(oe){if(typeof oe!="string"||oe==="")throw new Error("Shape name must be a valid string.");this._name=oe}}),Object.defineProperty(qe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("The default value must be a real number, not: "+oe);this._defaultValue=oe}}),Object.defineProperty(qe.prototype,"minimum",{get:function(){return this._minimum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Minimum must be a real number, not: "+oe);this._minimum=oe}}),Object.defineProperty(qe.prototype,"maximum",{get:function(){return this._maximum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Maximum must be a real number, not: "+oe);this._maximum=oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(oe,y){var a=go.Shape._FigureParameters[oe];return a?a[y]:null},go.Shape.setFigureParameter=function(oe,y,a){if(!(a instanceof qe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[oe];x||(x=[],go.Shape._FigureParameters[oe]=x),x[y]=a};var gt=[];function ne(oe,y){var a=gt.pop();return a===void 0?new go.Point(oe,y):(a.x=oe,a.y=y,a)}function ie(){var oe=gt.pop();return oe===void 0?new go.Point:oe}function ce(oe){gt.push(oe)}function De(oe,y,a,x,b,E,z,ee,te){te||(te=new go.Point);var ge=oe-a,de=b-z,se=NaN,be=NaN;if(ge===0)if(de===0)oe===a&&(se=oe,be=y);else{var Se=(E-ee)/de,Ee=E-Se*b;se=oe,be=Se*se+Ee}else if(de===0){var he=(y-x)/ge,ft=y-he*oe;se=b,be=he*se+ft}else{var he=(y-x)/ge,Se=(E-ee)/de,ft=y-he*oe,Ee=E-Se*b;se=(Ee-ft)/(he-Se),be=he*se+ft}return te.x=se,te.y=be,te}function Ue(oe,y,a,x,b,E,z,ee,te,ge,de,se,be,Se){var Ee=1-te,he=te,ft=oe*Ee+a*he,it=y*Ee+x*he,_t=a*Ee+b*he,Ce=x*Ee+E*he,Ae=b*Ee+z*he,tt=E*Ee+ee*he,at=ft*Ee+_t*he,st=it*Ee+Ce*he,St=_t*Ee+Ae*he,wt=Ce*Ee+tt*he,Bt=at*Ee+St*he,Tt=st*Ee+wt*he;ge.x=ft,ge.y=it,de.x=at,de.y=st,se.x=Bt,se.y=Tt,be.x=St,be.y=wt,Se.x=Ae,Se.y=tt}var we=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new qe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ae,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,b,a,0,a-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(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=y,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y/2,x.startY=0,x.endX=y/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,y,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*y,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,y,a){var x=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=we,b.spot2=Be,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(oe,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ae*y,0,y,(1-ae)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ae*a,(1-ae)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ae*a,ae*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ae)*y,0,0,(1-ae)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new qe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new qe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y:x>y&&(x=y);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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new qe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new qe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=20:x<-y?x=-y/2:x>y&&(x=y/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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new qe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y/2:x>y&&(x=y/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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}});var Je=[];function Xe(){var oe=Je.pop();return oe===void 0?[]:oe}function He(oe){oe.length=0,Je.push(oe)}function Re(oe){for(var y=Xe(),a=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<oe;z++)E=2*Math.PI/oe*z+b,y[z]=new go.Point(x+a*Math.cos(E),x+a*Math.sin(E));return y.push(y[0]),y}function et(oe){var y=Ke(oe),a=Xe();a[0]=y[0];for(var x=1,b=1;x<y.length;x+=2,b+=3)a[b]=y[x],a[b+1]=y[x],a[b+2]=y[x+1];return He(y),a}function Ke(oe){for(var y=Re(oe),a=Xe(),x=Math.floor(y.length/2),b=y.length-1,E=oe%2===0?2:1,z=0;z<b;z++){var ee=y[z],te=y[z+1],ge=y[(x+z-1)%b],de=y[(x+z+E)%b];a[z*2]=ee,a[z*2+1]=De(ee.x,ee.y,ge.x,ge.y,te.x,te.y,de.x,de.y,new go.Point)}return a[a.length]=a[0],He(y),a}go.Shape.defineFigureGenerator("Pentagon",function(oe,y,a){var x=Re(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(oe,y,a){var x=Re(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(oe,y,a){var x=Re(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(oe,y,a){var x=Re(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(oe,y,a){var x=Re(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(oe,y,a){var x=Re(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(oe,y,a){var x=Re(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(oe,y,a){var x=Ke(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(oe,y,a){var x=Ke(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(oe,y,a){var x=Ke(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(oe,y,a){var x=Ke(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(oe,y,a){var x=Ke(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(oe,y,a){var x=Ke(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),He(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(oe,y,a){var x=et(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(oe,y,a){var x=et(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(oe,y,a){var x=et(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(oe,y,a){var x=et(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(oe,y,a){var x=et(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(oe,y,a){var x=et(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),He(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new qe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new qe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(oe,y,a){var x=oe?oe.parameter1:NaN,b=oe?oe.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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new qe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=y/2,E=new go.Geometry,z=new go.PathFigure(y,y/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,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=we,E.spot2=Be,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,y,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new qe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new qe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,y,a){var x=oe?oe.parameter1:NaN,b=oe?oe.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(y,a)/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(oe,y,a){var x=ae/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,E*a,y,(1-x)*a,(b+x)*y,(E+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new qe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,y)/2,E=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).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 qe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,y)/2,E=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).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 qe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,y,a){var x=oe?oe.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var E=y/2,z=a/2,ee=Math.atan2(a,y),te=x-Math.min(Math.cos(ee)*x/2,E),ge=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,de=new go.PathFigure(te,0,!0);return b.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),de.add(new go.PathSegment(go.PathSegment.Line,y-te,0)),de.add(new go.PathSegment(go.PathSegment.Line,y,ge)),de.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,y,a-ge)),de.add(new go.PathSegment(go.PathSegment.Line,y-te,a)),de.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),de.add(new go.PathSegment(go.PathSegment.Line,te,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new qe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new qe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,y,a){var x=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new qe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,y,a){var x=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-x)*y,.25*a,Math.abs(1-x)*y,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ae*y,0,y,(.5-ae/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ae/2)*a,ae*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var E=.2,z=.3,ee=0,te=E*ae;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z+.05)*y,(.5-te+ee-.02)*a)),E=.2,z=0,ee=-.3,te=E*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),E=.2,z=-.3,ee=0,te=E*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z-.05)*y,(.5-te+ee-.02)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,E*y,E*y).close()),b=new go.PathFigure(y*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+E)*y,ee*a,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,E*y,E*y).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(oe,y,a){var x=.8535533905932737,b=.5*y,E=.5*a;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,a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*y,(ee-E)*a);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),E=.4,b=ae*.4;var ge=ie(),de=ie(),se=ie(),be=ie();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ge,de,se,be,be);var Se=ie(),Ee=ie(),he=ie();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,be,be,he,Se,Ee);var ft=ie(),it=ie(),_t=ie();Ue(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ft,it,_t,be,be);var Ce=ie(),Ae=ie(),tt=ie();return Ue(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,be,be,tt,Ce,Ae),te.add(new go.PathSegment(go.PathSegment.Move,tt.x*y,tt.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,Ce.x*y,Ce.y*a,Ae.x*y,Ae.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,se.x*y,se.y*a,ge.x*y,ge.y*a,de.x*y,de.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,tt.x*y,tt.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,_t.x*y,_t.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,he.x*y,he.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,Se.x*y,Se.y*a,Ee.x*y,Ee.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*y,_t.y*a,ft.x*y,ft.y*a,it.x*y,it.y*a).close()),ce(ge),ce(de),ce(se),ce(be),ce(Se),ce(Ee),ce(he),ce(ft),ce(it),ce(_t),ce(Ce),ce(Ae),ce(tt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new qe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>y&&(x=y);var b=(y-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,y,a){var x=new go.Geometry,b=ae*.4,E=.4,z=.5,ee=.5,te=ie(),ge=ie(),de=ie(),se=ie(),be=new go.PathFigure((z-E)*y,ee*a,!1);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,de,se,ge,te,te),be.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,de.x*y,de.y*a,se.x*y,se.y*a));var Se=ne(ge.x,ge.y);Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ge,de,se);var Ee=ne(ge.x,ge.y);be.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.95*.9)*y,Se.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,Se.y*.1*a)),be.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,0)),be.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,.15*a)),be.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*y,(Ee.y*.1+.05*.9)*a)),be.add(new go.PathSegment(go.PathSegment.Line,Ee.x*y,Ee.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,de.x*y,de.y*a,se.x*y,se.y*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),E=.35,b=ae*.35;var he=new go.PathFigure(z*y,(ee-E)*a,!1);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a));var ft=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(ft),ce(te),ce(ge),ce(de),ce(se),ce(Se),ce(Ee),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(oe,y,a){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ae,te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a,(.5+ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,E=0,z=-.125,ee=b*ae;var te=new go.PathFigure((1-.5+b+E)*y,(.5+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a,(.5+ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a,(.5-ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a));var te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,y,a){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,y,a){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,y,a){var x=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*y,x*a,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*y,x*a,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new qe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new qe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,te=new go.Geometry,ge=new go.PathFigure(0,z,!0);te.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,z)),ge.add(new go.PathSegment(go.PathSegment.Line,E,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=De(0,ee/a,1,ee/a,E/y,1,1,.5,ie());return te.spot2=new go.Spot(de.x,de.y),ce(de),te}),go.Shape.setFigureParameter("Arrow2",0,new qe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new qe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=30),x>y&&(x=y);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var E=y-x,z=(a-b)/2,ee=z+b,te=new go.Geometry,ge=new go.PathFigure(0,z,!0);te.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,z)),ge.add(new go.PathSegment(go.PathSegment.Line,E,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var de=De(0,ee/a,1,ee/a,E/y,1,1,.5,ie());return te.spot2=new go.Spot(de.x,de.y),ce(de),te}),go.Shape.defineFigureGenerator("Chevron",function(oe,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,y,a){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*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new qe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var te=De(0,.5,.3,0,0,b/a,.1,b/a,ie());return z.spot1=new go.Spot(te.x,te.y),te=De(.7,1,1,.5,0,E/a,1,E/a,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new qe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new qe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var ge=new go.Geometry,de=new go.PathFigure(y,.5*a,!0);ge.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var se=De(0,.5,.3,ee/a,0,E/a,1,E/a,ie());return ge.spot1=new go.Spot(se.x,se.y),se=De(.7,te/a,1,.5,0,z/a,1,z/a,se),ge.spot2=new go.Spot(se.x,se.y),ce(se),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new qe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new qe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new qe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var b=oe?oe.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var ge=new go.Geometry,de=new go.PathFigure(y,.5*a,!0);ge.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),ge.spot1=new go.Spot(0,E/a);var se=De(.7,te/a,1,.5,0,z/a,1,z/a,ie());return ge.spot2=new go.Spot(se.x,se.y),ce(se),ge}),go.Shape.setFigureParameter("Pointer",0,new qe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=De(.2,.65,1,.65,0,1,1,.5,ie());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new qe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b.spot1=new go.Spot(x,.35);var z=De(0,.65,1,.65,0,1,1,.5,ie());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new qe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new qe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=50);var b=(a-x)/2,E=b+x;x>a&&(b=0,E=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var te=De(.7,1,1,.5,0,E/a,1,E/a,ie());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new qe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(0,.9*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var E=new go.PathFigure(0,.9*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var E=new go.PathFigure(0,.3*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,x,(.5+E)*y,0,1*y,ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ae*x,(.5+E)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,1*a,0,a-ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(y,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*x,1*y,2*x-ae*x,(.5+E)*y,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*y,2*x,0,2*x-ae*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(0,a-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x,(.5+E)*y,0,y,ae*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ae*x,(.5+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,a,0,a-ae*x));var ee=new go.PathFigure(0,a-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*x,0,a-x-ae*x,(.5-E)*y,a-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-x,(.5+E)*y,a-2*x,y,a-x-ae*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ae*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,ae*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*a,x+ae*x,0,2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+E)*a,x+ae*x,a)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ae*.5,z=new go.PathFigure(y-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ae*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,ae*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0));var ee=new go.PathFigure(y-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*x,.5*a,y-x-ae*x,0,y-2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y-2*x,(.5+E)*a,y-x-ae*x,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.25*y,.25*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(oe,y,a){var x=new go.Geometry,b=.2,E=.1,z=ae*b,ee=ae*E,te=.5,ge=.1,de=new go.PathFigure(te*y,(ge+E)*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*y,ge*a,(te-z)*y,(ge+E)*a,(te-b)*y,(ge+ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-E)*a,(te-b)*y,(ge-ee)*a,(te-z)*y,(ge-E)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*y,ge*a,(te+z)*y,(ge-E)*a,(te+b)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+E)*a,(te+b)*y,(ge+ee)*a,(te+z)*y,(ge+E)*a));var se=.05,be=ae*se;te=.05,ge=.25;var Se=new go.PathFigure(.5*y,.2*a,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),te=.95,ge=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,(te+se)*y,ge*a,(te+be)*y,(ge-se)*a,(te+se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),se=.025,be=ae*se,te=.825,ge=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),se=.05,be=ae*se,te=.5,ge=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),se=.025,be=ae*se,te=.175,ge=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te+se)*y,(ge-be)*a,(te+be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-se)*y,ge*a,(te-be)*y,(ge-se)*a,(te-se)*y,(ge-be)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),se=.05,be=ae*se,te=.05,ge=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-se)*a,(te-se)*y,(ge-be)*a,(te-be)*y,(ge-se)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new qe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,y,a){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var E=new go.PathFigure(.5*y,.5*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("Database",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+E)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+E)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(oe,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ae*.2,z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-E)*a,(.2-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+E)*y,0,y,(.2-E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+E)*a,(.8+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-E)*y,a,0,(.8+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("Document",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(.1*y,.4*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.75*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var E=new go.PathFigure(y,.5*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x}),go.Shape.defineFigureGenerator("Junction",function(oe,y,a){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ae*.5,ee=.5,te=new go.PathFigure(y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var ge=new go.PathFigure((E+b)*y,(E+b)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)),ge.add(new go.PathSegment(go.PathSegment.Move,E*y,(E+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(E+b)*y,E*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var E=new go.PathFigure(.1*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(.5*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*y,.9*a,y,(E+b)*a,(E+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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*y,b*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,y,a){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*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var E=new go.PathFigure(.1*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var E=new go.PathFigure(.2*y,.1*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(oe,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN,E=oe?oe.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)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x}),go.Shape.defineFigureGenerator("Process",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(0,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(oe,y,a){var x=new go.Geometry,b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*y,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,y,a){var x=new go.Geometry,b=oe?oe.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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,E*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a));var te=new go.PathFigure(.8*y,.75*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(oe,y,a){var x=new go.Geometry,b=ae*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var ge=new go.PathFigure((z+E)*y,ee*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=ae*.4,z=ae*.1,ee=.1,te=.9,ge=.5,de=new go.PathFigure(.8*y,.5*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+E)*a,(.4+b)*y,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,a)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-E)*a));var se=new go.PathFigure((te+ee)*y,ge*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a,(te+z)*y,(ge+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y,ge*a,(te-z)*y,(ge+ee)*a,(te-ee)*y,(ge+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a,(te-z)*y,(ge-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y,ge*a,(te+z)*y,(ge-ee)*a,(te+ee)*y,(ge-z)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=0,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ae*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+E+E)*y,(ee-b)*a,.8*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+E)*a,(z+E+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ge=new go.PathFigure(.8*y,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ae*.1,z=.9,ee=.5;var de=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ge=new go.PathFigure(.2*y,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+E)*y,(ee-b)*a,.9*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(oe,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(oe,y,a){var x=new go.Geometry,b=ae*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*y,a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+E)*y,0,(z+b)*y,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,y,a){var x=new go.Geometry,b=ae*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*y,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*y,ee*a,z*y,(ee-E)*a,z*y,(ee+E)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Diode",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(oe,y,a){var x=new go.Geometry,b=y,E=a;y=y*.38,a=a*.6;var z=ae*.8,ee=.8,te=0,ge=.5,de=(b-y)/2,se=(E-a)/2,be=new go.PathFigure(te*y+de,(ge+ee)*a+se,!0);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+de,ge*a+se,te*y+de,(ge-ee)*a+se,(te-ee+z*.5)*y+de,(ge-z)*a+se)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te-ee+z*.5)*y+de,(ge+z)*a+se,te*y+de,(ge+ee)*a+se).close()),z=ae*.4,ee=.4,te=.2,ge=.5;var Se=new go.PathFigure(te*y+de,(ge+ee)*a+se,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+de,ge*a+se,te*y+de,(ge-ee)*a+se,(te-ee+z*.5)*y+de,(ge-z)*a+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te-ee+z*.5)*y+de,(ge+z)*a+se,te*y+de,(ge+ee)*a+se).close()),z=ae*.2,ee=.2,te=.5,ge=.5;var Ee=new go.PathFigure((te-ee)*y+de,ge*a+se,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te-ee)*y+de,(ge-z)*a+se,(te-z)*y+de,(ge-ee)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+de,ge*a+se,(te-z)*y+de,(ge+ee)*a+se,(te-ee)*y+de,(ge+z)*a+se)),z=ae*.4,ee=.4,te=.8,ge=.5;var he=new go.PathFigure(te*y+de,(ge-ee)*a+se,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+de,ge*a+se,te*y+de,(ge+ee)*a+se,(te+ee-z*.5)*y+de,(ge+z)*a+se)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te+ee-z*.5)*y+de,(ge-z)*a+se,te*y+de,(ge-ee)*a+se).close()),z=ae*.8,ee=.8,te=1,ge=.5;var ft=new go.PathFigure(te*y+de,(ge-ee)*a+se,!0);return x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+de,ge*a+se,(te+z)*y+de,(ge-ee)*a+se,(te+ee)*y+de,(ge-z)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge+ee)*a+se,(te+ee)*y+de,(ge+z)*a+se,(te+z)*y+de,(ge+ee)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+de,ge*a+se,te*y+de,(ge+ee)*a+se,(te+ee-z*.5)*y+de,(ge+z)*a+se)),ft.add(new go.PathSegment(go.PathSegment.Bezier,te*y+de,(ge-ee)*a+se,(te+ee-z*.5)*y+de,(ge-z)*a+se,te*y+de,(ge-ee)*a+se).close()),x}),go.Shape.defineFigureGenerator("Email",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),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*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var E=new go.PathFigure(.1*y,a,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(oe,y,a){var x=new go.Geometry,b=ae*.4,E=.4,z=.5,ee=.5,te=ie(),ge=ie(),de=ie(),se=ie();Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ge,de,se);var be=ne(ge.x,ge.y),Se=new go.PathFigure(ge.x*y,ge.y*a,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,de.x*y,de.y*a,se.x*y,se.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),Ue(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,de,se,ge,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,de.x*y,de.y*a,se.x*y,se.y*a)),b=ae*.3,E=.3,Ue(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,de,se,ge,te,te),Se.add(new go.PathSegment(go.PathSegment.Line,ge.x*y,ge.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,se.x*y,se.y*a,de.x*y,de.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),Ue(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ge,de,se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*y,ge.y*a,se.x*y,se.y*a,de.x*y,de.y*a).close());var Se=new go.PathFigure(.45*y,0,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),ce(te),ce(ge),ce(de),ce(se),ce(be),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+te)*a).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,y,a){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ae,te=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,de=1,se=.5,be=.5,Se=0,Ee=new go.PathFigure(te*y,(1-ge)*a,!1);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de*y,se*a,de*y,.7*a,de*y,se*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+E)*y,(Se+E)*a,(.5+b+E)*y,(.5-ee+E)*a,(.5+ee+E)*y,(.5-b+E)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*y,.9*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,.9*a)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*y,.8*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*y,.9*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*y,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var E=new go.PathFigure(.45*y,.73*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),E.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),E.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*y,(1-.555)*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),E.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,ee=.5,te=z,ge=Math.PI/4,de=4*(1-Math.cos(ge))/(3*Math.sin(ge)),se=de*.5,be=z,Se=z,Ee=de*be,he=de*Se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-be)*y,te*a,(ee-(Ee+be)/2)*y,(te+(Se+he)/2)*a,(ee-be)*y,(te+he)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(te-Se)*a,(ee-be)*y,(te-he)*a,(ee-Ee)*y,(te-Se)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+be)*y,te*a,(ee+Ee)*y,(te-Se)*a,(ee+be)*y,(te-he)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+be)*y,(te+he)*a,(ee+(Ee+be)/2)*y,(te+(Se+he)/2)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var ft=new go.PathFigure(.2*y,a,!1);x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var it=new go.PathFigure(.8*y,a,!1);return x.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var E=new go.PathFigure(.2*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(.1*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,E*y,E*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var E=new go.PathFigure(.475*y,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),E.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),E.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=new go.PathFigure(y,b*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+E)*a,(b+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-E)*y,a,0,(b+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-E)*a,(b-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+E)*y,0,y,(b-E)*a));var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,.15*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var E=new go.PathFigure(0,.2*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var E=new go.PathFigure(.15*y,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(y,.8*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=ae*.1,te=.2,ge=.9,de=new go.PathFigure((te-z)*y,ge*a,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-z)*a,(te-z)*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,ge*a,(te+ee)*y,(ge-z)*a,(te+z)*y,(ge-ee)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+z)*a,(te+z)*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,ge*a,(te-ee)*y,(ge+z)*a,(te-z)*y,(ge+ee)*a).close()),z=.1,ee=ae*.1,te=.8,ge=.9;var se=new go.PathFigure((te-z)*y,ge*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge-z)*a,(te-z)*y,(ge-ee)*a,(te-ee)*y,(ge-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,ge*a,(te+ee)*y,(ge-z)*a,(te+z)*y,(ge-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(ge+z)*a,(te+z)*y,(ge+ee)*a,(te+ee)*y,(ge+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,ge*a,(te-ee)*y,(ge+z)*a,(te-z)*y,(ge+ee)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(oe,y,a){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*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var te=.1,ge=ae*.1,de=.1,se=.9,be=new go.PathFigure((de-te)*y,se*a,!0);x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se-te)*a,(de-te)*y,(se-ge)*a,(de-ge)*y,(se-te)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*y,se*a,(de+ge)*y,(se-te)*a,(de+te)*y,(se-ge)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se+te)*a,(de+te)*y,(se+ge)*a,(de+ge)*y,(se+te)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*y,se*a,(de-ge)*y,(se+te)*a,(de-te)*y,(se+ge)*a)),te=.1,ge=ae*.1,de=.4,se=.9;var Se=new go.PathFigure((de-te)*y,se*a,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se-te)*a,(de-te)*y,(se-ge)*a,(de-ge)*y,(se-te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de+te)*y,se*a,(de+ge)*y,(se-te)*a,(de+te)*y,(se-ge)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(se+te)*a,(de+te)*y,(se+ge)*a,(de+ge)*y,(se+te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de-te)*y,se*a,(de-ge)*y,(se+te)*a,(de-te)*y,(se+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var E=new go.PathFigure(.45*y,.7*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var de=.05,se=ae*.05,be=.175,Se=.95,ee=new go.PathFigure((be-de)*y,Se*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.375,Se=.95,te=new go.PathFigure((be-de)*y,Se*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.625,Se=.95,ge=new go.PathFigure((be-de)*y,Se*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a));var de=.05,se=ae*.05,be=.825,Se=.95,Ee=new go.PathFigure((be-de)*y,Se*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se-de)*a,(be-de)*y,(Se-se)*a,(be-se)*y,(Se-de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be+de)*y,Se*a,(be+se)*y,(Se-de)*a,(be+de)*y,(Se-se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,be*y,(Se+de)*a,(be+de)*y,(Se+se)*a,(be+se)*y,(Se+de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(be-de)*y,Se*a,(be-se)*y,(Se+de)*a,(be-de)*y,(Se+se)*a).close());var he=new go.PathFigure(0,a,!1);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,te=ae*.05,ge=.35,de=.775,se=new go.PathFigure((ge-ee)*y,de*a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de-ee)*a,(ge-ee)*y,(de-te)*a,(ge-te)*y,(de-ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ee)*y,de*a,(ge+te)*y,(de-ee)*a,(ge+ee)*y,(de-te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(de+ee)*a,(ge+ee)*y,(de+te)*a,(ge+te)*y,(de+ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ee)*y,de*a,(ge-te)*y,(de+ee)*a,(ge-ee)*y,(de+te)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(oe,y,a){var x=new go.Geometry,b=.3,E=ae*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),x}),go.Shape.defineFigureGenerator("Battery",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var E=new go.PathFigure(0,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var ge=new go.PathFigure(.15*y,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(oe,y,a){var x=new go.Geometry,b=.5,E=ae*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),b=.05,E=ae*.05,z=.5,ee=.8;var ge=new go.PathFigure((z-b)*y,ee*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var E=new go.PathFigure(0,a*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var E=new go.PathFigure(.126*y,.85*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var te=new go.PathFigure(.5*y,.1*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var E=new go.PathFigure(y*.204,a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var te=new go.PathFigure(y*.816,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var E=new go.PathFigure(y*.055,.07*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var te=new go.PathFigure(y*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(oe,y,a){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,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,y,a){var x=new go.Geometry,b=8,E=b*ae,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-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(y*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var te=new go.PathFigure(y*.83,a*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var ge=new go.PathFigure(y*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,y,a){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ae,E=a*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,E,y,E-b,y-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.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(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var E=new go.PathFigure(y*1,a*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(oe,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var E=new go.PathFigure(y*.1,a*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(oe,y,a){var x=new go.Geometry,b=15,E=b*ae,z=new go.PathFigure(y*.62,a*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.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(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.4,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.5,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var E=new go.PathFigure(y*.235,a*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),E.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),E.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(oe,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.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")},93510: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 qe={},gt="5.0",ne={},ie=null,ce=!1,De=!1,Ue=null,we=!1,Be=null,ae=null,Je=0;Je<arguments.length;Je++){var Xe=arguments[Je];if(Xe!==null)switch(typeof Xe){case"number":gt=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Xe:Ue=Xe;break;case"object":typeof Xe.is3D!="undefined"?ie=Xe:ne=Xe;break;case"boolean":ce=Xe,De=!0;break}}ie===null&&(ie={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!De&&(ce=!0)),Ue!==null&&ne.id===void 0&&(ne.id=Ue);var He="",Re="",et=!1,Ke=null,oe=null,y=null,a=!1,x=null,b=null,E=null,z=null,ee=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var te=function(Oe){return parseFloat(Oe)>4?parseFloat(Oe):5};qe.setHTML5Codebase=function(Oe,_e){ae=Oe,wt(Oe,_e)},qe.setJavaCodebase=qe.setJavaCodebaseVersion=qe.isCompiledInstalled=qe.setPreCompiledScriptPath=qe.setPreCompiledResourcePath=function(){},qe.setHTML5CodebaseVersion=function(Oe,_e){var ct=parseFloat(Oe);if(ct!==NaN&&ct<5){console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead.");return}Be=Oe,St(Oe,_e)},qe.getHTML5CodebaseVersion=function(){return oe},qe.getParameters=function(){return ne},qe.setFontsCSSURL=function(Oe){z=Oe},qe.setGiacJSURL=function(Oe){},qe.setJNLPFile=function(Oe){He=Oe},qe.setJNLPBaseDir=function(Oe){},qe.inject=function(){function Oe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var _e="auto",ct=ne.id,Gt,nt=!1,$t=0;$t<arguments.length;$t++){var ye=arguments[$t];typeof ye=="string"?(ye=ye.toLowerCase(),ye.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?_e=ye:ct=arguments[$t]):typeof ye=="boolean"?nt=ye:ye instanceof HTMLElement&&(Gt=ye)}Et();function Et(){if(!we){setTimeout(Et,200);return}_e=at(_e);var Ht=Gt||document.getElementById(ct);if(!Ht){console.log("possibly bug on ajax loading? ");return}if(qe.removeExistingApplet(Ht,!1),ne.width===void 0&&Ht.clientWidth&&(ne.width=Ht.clientWidth),ne.height===void 0&&Ht.clientHeight&&(ne.height=Ht.clientHeight),!(ne.width&&ne.height)&&_e==="html5"&&(delete ne.width,delete ne.height),Ke=_e,_e==="screenshot")it(Ht,ne);else{var un=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?un=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(un=(!ge()||Oe())&&de()),un?(Ke="screenshot",Ce(Ht,ne,nt,_e)):ft(Ht,ne,nt)}}};function ge(){try{return window.self!==window.top}catch(Oe){return!0}}function de(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}qe.getViews=function(){return ie},qe.isJavaInstalled=function(){return!1};var se=function(Oe){var _e=function($t){var ye=JSON.parse($t),Et=function(Xt){return Xt.type=="G"||Xt.type=="E"},Ht=ye.elements?ye.elements.filter(Et)[0]:ye;if(!Ht||!Ht.url){ct();return}ne.fileName=Ht.url,be(Ht.settings||{}),ie.is3D=!0;var un="https://www.geogebra.org/images/";qe.setPreviewImage(x||Ht.previewUrl,un+"GeoGebra_loading.png",un+"applet_play.png"),Oe()},ct=function(){ne.onError&&ne.onError(),Bt("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nt="/materials/"+ne.material_id+"?scope=basic";Se("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(nt),_e,ct)};function be(Oe){var _e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ct){Oe[ct]=!!Oe[ct]}),_e.forEach(function(ct){ne[ct]===void 0&&Oe[ct]!==void 0&&(ne[ct]=Oe[ct])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function Se(Oe,_e,ct){var Gt=new XMLHttpRequest;Gt.open("GET",Oe),Gt.onload=function(){_e(Gt.responseText)},Gt.onerror=ct,Gt.send()}qe.isHTML5Installed=function(){return!0},qe.getLoadedAppletType=function(){return Ke},qe.setPreviewImage=function(Oe,_e,ct){x=Oe,b=_e,E=ct},qe.removeExistingApplet=function(Oe,_e){var ct;typeof Oe=="string"&&(Oe=document.getElementById(Oe)),Ke=null;var Gt=null;for(ct=0;ct<Oe.childNodes.length;ct++){var nt=Oe.childNodes[ct],$t=nt.className;$t==="applet_screenshot"?_e?(nt.style.display="block",Ke="screenshot"):nt.style.display="none":$t!=="applet_scaler prerender"&&(Oe.removeChild(nt),Gt=$t&&$t.indexOf("appletParameters")!=-1?nt.id:null,ct--)}var ye=ne.id!==void 0?ne.id:Gt,Et=window[ye];Et&&typeof Et.getBase64=="function"&&(Et.remove(),window[ye]=null)},qe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Oe=qe.getAppletObject();return Oe&&typeof Oe.recalculateEnvironments=="function"?(Oe.recalculateEnvironments(),!0):!1},qe.startAnimation=function(){var Oe=qe.getAppletObject();return Oe&&typeof Oe.startAnimation=="function"?(Oe.startAnimation(),!0):!1},qe.stopAnimation=function(){var Oe=qe.getAppletObject();return Oe&&typeof Oe.stopAnimation=="function"?(Oe.stopAnimation(),!0):!1},qe.getAppletObject=function(){var Oe=ne.id!==void 0?ne.id:"ggbApplet";return window[Oe]},qe.resize=function(){};var Ee=function(Oe,_e,ct){var Gt=document.createElement("param");Gt.setAttribute("name",_e),Gt.setAttribute("value",ct),Oe.appendChild(Gt)},he=function(Oe){return Oe&&Oe!=="false"},ft=function(Oe,_e,ct){te(oe)<=4.2&&(ct=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var $t=_e.width,ye=_e.height;if(_e.disableAutoScale=_e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():_e.disableAutoScale,_e.width!==void 0)if(te(oe)<=4.4)he(_e.showToolBar)&&(_e.height-=7),he(_e.showAlgebraInput)&&(_e.height-=37),_e.width<605&&he(_e.showToolBar)&&(_e.width=605,$t=605);else{var Et=100;(he(_e.showToolBar)||he(_e.showMenuBar))&&(_e.hasOwnProperty("customToolBar")&&(_e.customToolbar=_e.customToolBar),Et=he(_e.showMenuBar)?245:155),$t<Et&&(_e.width=Et,$t=Et)}nt.style.border="none",nt.style.display="inline-block";for(var Ht in _e)_e.hasOwnProperty(Ht)&&Ht!=="appletOnLoad"&&nt.setAttribute("data-param-"+Ht,_e[Ht]);z&&nt.setAttribute("data-param-fontscssurl",z),qe.resize=function(){GGBAppletUtils.responsiveResize(Oe,_e)},window.addEventListener("resize",function(Pe){qe.resize()});var un=typeof _e.appletOnLoad=="function"?_e.appletOnLoad:function(){};if(!ct&&_e.width!==void 0){_e.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var Xt=Oe.querySelector(".applet_scaler.prerender"),Te=Xt!==null;if(Te)var $e=Xt.querySelector(".ggb_preview");else{var $e=tt($t,ye,_e.borderColor,!1);Xt=document.createElement("div"),Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.style.width=$t+"px",Xt.style.height=ye+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xt,"66%"),te(oe)>=5?(_e.appletOnLoad=function(Pe){var Ge=Oe.querySelector(".ggb_preview");Ge&&Ge.parentNode.removeChild(Ge),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Xt),window.GGBT_wsf_view&&$(window).trigger("resize"),un(Pe)},Te||Xt.appendChild($e)):nt.appendChild($e),Xt.appendChild(nt),Te||Oe.appendChild(Xt),setTimeout(function(){qe.resize()},1)}else{var Fe=document.createElement("div");Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.appendChild(nt),Oe.appendChild(Fe),_e.appletOnLoad=function(Pe){qe.resize(),un(Pe)}}function me(Pe,Ge){Ge&&typeof Ge.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pe,Ge.appletOnLoad):renderGGBElement(Pe),Bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ge)}function Ve(Pe,Ge){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pe,params:Ge}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Lt){me(Lt.article,Lt.params)}),html5AppletsToProcess=null)},te(oe)<5&&(Pe.className+=" geogebraweb")):me(Pe,Ge)}if(Gt){scriptLoadStarted=!0;for(var vt=0;vt<nt.childNodes.length;vt++){var pe=nt.childNodes[vt].tagName;pe==="TABLE"&&(nt.removeChild(nt.childNodes[vt]),vt--)}if(ggbHTML5LoadedScript!==null){var ue=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ue!=null&&ue.parentNode.removeChild(ue)}var Ze=document.createElement("script"),Ne=function(){Ve(nt,_e)};Ze.src=Re+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=oe,ggbHTML5LoadedScript=Ze.src,Bt("GeoGebra HTML5 codebase loaded: '"+Re+"'.",_e),!ae&&(!Be||Be=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ne()):Re.requirejs?__webpack_require__.e(3861).then(function(){var Pe=[__webpack_require__(40341)];Ne.apply(null,Pe)}.bind(this)).catch(__webpack_require__.oe):(Ze.onload=Ne,Oe.appendChild(Ze))}else Ve(nt,_e);_e.height=ye,_e.width=$t},it=function(Oe,_e,ct){var Gt=tt(_e.width,_e.height,_e.borderColor,ct),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=_e.width+"px",nt.style.height=_e.height+"px",nt.className="applet_screenshot applet_scaler"+(ct?" applet_screenshot_play":""),nt.appendChild(Gt);var $t=GGBAppletUtils.getScale(_e,Oe,ct);ct?(Oe.appendChild(Ae()),window.GGBT_wsf_view||(Oe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),Oe.appendChild(nt),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(nt,$t),nt.style.width=_e.width+"px",nt.style.height=_e.height+"px",nt.parentNode.style.width=_e.width*$t+"px",nt.parentNode.style.height=_e.height*$t+"px"),qe.resize=function(){_t(Oe,Gt,nt,ct)},window.addEventListener("resize",function(ye){qe.resize()}),qe.resize()};function _t(Oe,_e,ct,Gt){if(Oe.contains(_e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}var nt=GGBAppletUtils.getScale(ne,Oe,Gt);ct.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(ct,nt),ct.parentNode.style.width=ne.width*nt+"px",ct.parentNode.style.height=ne.height*nt+"px"):(GGBAppletUtils.scaleElement(ct,1),ct.parentNode.style.width=ne.width+"px",ct.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Oe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}qe.onExitFullscreen=function(Oe,_e){_e.appendChild(Oe)};var Ce=function(Oe,_e,ct,Gt){it(Oe,_e,!0);for(var nt=function(){var Et=[];for(ye=0;ye<Oe.childNodes.length;ye++)Et.push(Oe.childNodes[ye]);if(window.GGBT_wsf_view){var Ht=window.GGBT_wsf_view.renderFullScreen(Oe,_e.id),un=document.getElementById("fullscreencontainer"),Xt=jQuery(Oe).find(".fullscreencontent");Xt.length>0?(Ht.remove(),Xt.attr("id","fullscreencontent").show(),jQuery(un).append(Xt),window.dispatchEvent(new Event("resize"))):ft(Ht,_e,!1),window.GGBT_wsf_view.launchFullScreen(un)}else Ke=Gt,ft(Oe,_e,!1);if(!window.GGBT_wsf_view)for(ye=0;ye<Et.length;ye++)Oe.removeChild(Et[ye])},$t=Oe.getElementsByClassName("ggb_preview_play"),ye=0;ye<$t.length;ye++)$t[ye].addEventListener("click",nt,!1),$t[ye].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Oe),de()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ae=function(){var Oe=document.createElement("div");if(Oe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var _e='.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");}',ct=document.createElement("style");ct.styleSheet?ct.styleSheet.cssText=_e:ct.appendChild(document.createTextNode(_e)),document.getElementsByTagName("head")[0].appendChild(ct)}return Oe},tt=function(Oe,_e,ct,Gt){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=Oe-2+"px",nt.style.height=_e-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var $t="lightgrey";ct!==void 0&&(ct==="none"?$t="transparent":$t=ct),nt.style.border="1px solid "+$t;var ye=document.createElement("img");if(ye.style.position="relative",ye.style.zIndex="1000",ye.style.top="-1px",ye.style.left="-1px",x!==null&&ye.setAttribute("src",x),ye.style.opacity=.7,b!==null){var Et,Ht,un;if(!Gt){Et=document.createElement("img"),Et.style.position="absolute",Et.style.zIndex="1001",Et.style.opacity=1,ye.style.opacity=.3,Ht=360,Ht>Oe/4*3&&(Ht=Oe/4*3),un=Ht/5.8,Et.setAttribute("src",b),Et.setAttribute("width",Ht),Et.setAttribute("height",un);var Xt=(Oe-Ht)/2,Te=(_e-un)/2;Et.style.left=Xt+"px",Et.style.top=Te+"px",nt.appendChild(Et)}}return nt.appendChild(ye),nt},at=function(Oe){return Oe=Oe.toLowerCase(),Oe==="html5"||Oe==="screenshot"?Oe:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],St=function(Oe,_e){if(oe=Oe,_e){wt(oe,!0);return}var ct=!ce;if(ct){var Gt=te(oe);!isNaN(Gt)&&Gt<4.4&&(ct=!1)}var nt,$t;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var ye=oe.indexOf("//");ye>0?$t=oe:ye===0?$t=nt+oe:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Et in st)if(oe.slice(st[Et].length*-1)===st[Et]||oe.slice((st[Et].length+1)*-1)===st[Et]+"/"){wt($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ct&&!ie.is3D&&!ie.AV&&!ie.SV&&!ie.CV&&!ie.EV2&&!ie.CP&&!ie.PC&&!ie.DA&&!ie.FI&&!ie.PV&&!he(ne.showToolBar)&&!he(ne.showMenuBar)&&!he(ne.showAlgebraInput)&&!he(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?$t+="webSimple/":$t+="web3d/",wt($t,!1)},wt=function(Oe,_e){if(Oe.requirejs){Re=Oe;return}Oe.slice(-1)!=="/"&&(Oe+="/"),Re=Oe,_e===null&&(_e=Oe.indexOf("http")===-1),et=_e,y="web.nocache.js",a=!1;var ct=Re.split("/");ct.length>1&&(!_e&&ct[ct.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):st.indexOf(ct[ct.length-2])>=0&&(y=ct[ct.length-2]+".nocache.js")),ct=Oe.split("/"),oe=ct[ct.length-3],oe.substr(0,4)==="test"?oe=oe.substr(4,1)+"."+oe.substr(5,1):(oe.substr(0,3)==="war"||oe.substr(0,4)==="beta")&&(oe="5.0");var Gt=parseFloat(oe);Gt!==NaN&&Gt<5&&Oe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),St("5.0",_e))},Bt=function(Oe,_e){window.console&&window.console.log&&(!_e||typeof _e.showLogging=="undefined"||_e.showLogging&&_e.showLogging!=="false")&&console.log(Oe)};ne.material_id!==void 0?se(Tt):Tt();function Tt(){var Oe=gt;Be!==null?Oe=Be:parseFloat(Oe)<5&&(Oe="5.0"),St(Oe,!1),ae!==null&&wt(ae,et),we=!0}return qe},GGBAppletUtils=function(){"use strict";function qe(){return window.GGBT_wsf_edit!==void 0}function gt(we,Be){Be!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+Be+","+Be+")",we.style.webkitTransform="scale("+Be+","+Be+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function ne(we,Be,ae,Je,Xe,He){var Re=null;if(He!=null&&He!="")for(var et=we.parentNode;et!=null;)if((" "+et.className+" ").indexOf(" "+He+" ")>-1){Re=et;break}else et=et.parentNode;var Ke=0,oe=0,y=0,a=0,x=0,b=0,E=0;if(Re)Ke=Re.offsetWidth,oe=Math.max(Je?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Ke):(Ke=window.innerWidth,oe=window.innerHeight,y=window.innerWidth),we){var z=we.getBoundingClientRect();z.left>0&&z.left<=Ke&&(Xe===void 0||!Xe)&&(document.dir==="rtl"?(x=Ke-z.width-z.left,b=y<=480?10:30):(b=z.left,x=y<=480?10:30),a=b+x)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,E=40)}}return we&&((ae===void 0||!ae)&&Be>0&&Be+a<Ke?Ke=Be:Ke-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ae===void 0||!ae)&&(oe-=E)),{width:Ke,height:oe}}function ie(we,Be,ae,Je,Xe){if(we.isScreenshoGenerator)return 1;var He=Je!==void 0&&Je,Re=we.noScaleMargin!=null&&we.noScaleMargin,et=function(ee){return ee&&ee!=="false"},Ke=et(we.autoHeight),oe=ne(Be,we.width,ae,Ke,He&&window.GGBT_wsf_view||Re,Xe),y=parseInt(oe.width),a=we.width,x=we.height;if(a===void 0){var b=Be.querySelector(".appletParameters");b&&(a=b.offsetWidth,x=b.offsetHeight)}var E=y/a,z=He?1:oe.height/x;return ae!==void 0&&!ae&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function ce(we,Be,ae){var Je=1,Xe,He=!1;if(we.hasOwnProperty("allowUpscale")&&(He=we.allowUpscale),we.hasOwnProperty("scale")&&(Je=parseFloat(we.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(He=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))Xe=ie(we,Be,He,ae,we.scaleContainerClass);else return Je;return He&&(!we.hasOwnProperty("scale")||Je===1)?Xe:Math.min(Je,Xe)}function De(we){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=we.getBoundingClientRect(),Xe=(Be-Je.width)/2,He=(ae-Je.height)/2;He<0&&(He=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?we.style.left="40px":we.style.left=Xe+"px",we.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?we.style.top="40px":we.style.top=He+"px",we.style.left=Xe+"px")}function Ue(we,Be){var ae=we.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var Je=ce(Be,we);qe()&&ae.setAttribute("data-param-scale",Je);for(var Xe=null,He=0;He<we.childNodes.length;He++)if(we.childNodes[He].className!==void 0&&we.childNodes[He].className.match(/^applet_scaler/)){Xe=we.childNodes[He];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var Re=Be.id!==void 0?Be.id:"ggbApplet",et=window[Re];(et==null||!et.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Xe.parentNode.style.width=Be.width*Je+"px",Xe.parentNode.style.height=Be.height*Je+"px",gt(Xe,Je)):(gt(Xe,1),Xe.parentNode.style.width=Be.width+"px",Xe.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&De(we),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ae).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:qe,positionCenter:De,getScale:ce,scaleElement:gt}}();__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 qe=n.location.search;return qe.indexOf(J)!=-1||qe.indexOf(K)!=-1}function q(qe,gt){}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(qe){var gt=s[L].bindings;s[L].bindings=function(){for(var ne=gt?gt():{},ie=qe[webModule.__softPermutationId],ce=O;ce<ie.length;ce++){var De=ie[ce];ne[De[O]]=De[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var qe=o.createElement(Q);if(qe.id=L,qe.style.cssText=R+S,qe.tabIndex=-1,o.body.appendChild(qe),t=qe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(qe){function gt(ie){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=ce();if(De){ie();return}function Ue(){if(!De){if(!ce())return;De=!0,ie(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),we&&clearInterval(we)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var we=setInterval(function(){Ue()},$)}function ne(ie){var ce=u(),De=ce.body,Ue=ce.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ie,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ie))}),De.appendChild(Ue)}gt(function(){ne(qe)})}webModule.__startLoadingFragment=function(qe){return C(qe)},webModule.__installRunAsyncCode=function(qe){var gt=u(),ne=gt.body,ie=gt.createElement(_);ie.language=ab,ie.text=qe,ne.appendChild(ie),ne.removeChild(ie)};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(qe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(qe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(qe){var gt=c[qe];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function qe(we){var Be=we.lastIndexOf(rb);Be==-1&&(Be=we.length);var ae=we.indexOf(sb);ae==-1&&(ae=we.length);var Je=we.lastIndexOf(tb,Math.min(ae,Be));return Je>=O?we.substring(O,Je+P):W}function gt(we){if(!we.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=we+vb,we=qe(Be.src)}return we}function ne(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function ie(){for(var we=o.getElementsByTagName(_),Be=O;Be<we.length;++Be)if(we[Be].src.indexOf(xb)!=-1)return qe(we[Be].src);return W}function ce(){var we=o.getElementsByTagName(yb);return we.length>O?we[we.length-P].href:W}function De(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var Ue=ne();return Ue==W&&(Ue=ie()),Ue==W&&(Ue=ce()),Ue==W&&De()&&(Ue=qe(o.location.href)),Ue=gt(Ue),Ue}function C(qe){return qe.match(/^\//)||qe.match(/^[a-zA-Z]+:\/\//)?qe:webModule.__moduleBase+qe}function D(){var qe=[],gt=O,ne=[],ie=[];function ce(we){var Be=ie[we](),ae=ne[we];if(Be in ae)return Be;var Je=[];for(var Xe in ae)Je[ae[Xe]]=Xe;throw r&&r(we,Je,Be),null}if(__gwt_isKnownPropertyValue=function(we,Be){return Be in ne[we]},webModule.__getPropMap=function(){var we={};for(var Be in ne)ne.hasOwnProperty(Be)&&(we[Be]=ce(Be));return we},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var Ue=De.indexOf(Db);Ue!=-1&&(gt=parseInt(De.substring(Ue+P),$),De=De.substring(O,Ue))}catch(we){}return webModule.__softPermutationId=gt,C(De+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})()},28735:function(qe,gt,ne){"use strict";ne.d(gt,{Ax:function(){return Ue},Ds:function(){return we},KI:function(){return ae},SI:function(){return De},f1:function(){return ce}});var ie=ne(74128);function ce(Je){let Xe=!0;if(Je.length>0){for(let He=0;He<Je.length;He++)if(Je[He].compile_success==0||!Je[He].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function De(Je,Xe=""){let He=[];for(let Re=0;Re<Je.length;Re++){let et=Je[Re],Ke=Xe?`${Xe}/${et.name}`:`${et.name}`;He.push({title:et.name,type:et.type,isLeaf:et.type!=="tree",key:Ke})}return He}function Ue(Je,Xe,He){for(let Re=0;Re<Je.length;Re++){let et=Je[Re];if(et.key===Xe){et.children=He;break}et.children&&Ue(et.children,Xe,He)}return Je}function we(Je,Xe,He){let Re;return function(){let et=this,Ke=arguments,oe=function(){Re=null,He||Je.apply(et,Ke)},y=He&&!Re;clearTimeout(Re),Re=setTimeout(oe,Xe),y&&Je.apply(et,Ke)}}const Be=!0,ae=ie.Z.API_SERVER},16750:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Re}});var ie=ne(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=ne(92310),Ue=ne.n(De),we=ne(71418),Be=ne(2859),ae=ne(38147),Je=ne(65862),Xe=(et,Ke,oe)=>new Promise((y,a)=>{var x=z=>{try{E(oe.next(z))}catch(ee){a(ee)}},b=z=>{try{E(oe.throw(z))}catch(ee){a(ee)}},E=z=>z.done?y(z.value):Promise.resolve(z.value).then(x,b);E((oe=oe.apply(et,Ke)).next())}),Re=({data:et,className:Ke,fullWidth:oe,style:y={},onClose:a,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ie.useRef)(null),ee=(0,ie.useRef)(null),te=(0,ie.useRef)(null),ge=(0,ie.useRef)(null),[de,se]=(0,ie.useState)(!1),[be,Se]=(0,ie.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ie.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),et!=null&&et.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",et!=null&&et.src&&Ee()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[et==null?void 0:et.visible]);const Ee=()=>Xe(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,Je.ZJ)(et==null?void 0:et.src);z.current.src="",z.current.src=Ce,z.current.onload=function(){_t()},se(!1),Se("")}),he=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",a()},ft=Ce=>Xe(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ae=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:et.title,file:Ce.dataUrl}});Ae!=null&&Ae.id&&!E?(yield(0,ae.ZP)(`/api/attachments/${et.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ae==null?void 0:Ae.id,settings:JSON.stringify(Ce.state)}})).status===0&&x():Ae!=null&&Ae.id&&x(Ae),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",se(!1),Se("")}),it=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.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 at=document.querySelector(tt.name);at&&at.setAttribute("title",tt.title)})},_t=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=ge.current,ee.current.addEventListener("render",ft),ee.current.addEventListener("beforeclose",he),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(),et!=null&&et.snapshotData&&ee.current.restoreState(et.snapshotData),setTimeout(()=>{window.scrollTo(0,0),it()},300)};return ie.createElement(ie.Fragment,null,(et==null?void 0:et.visible)&&ie.createElement(we.Z,{spinning:de,tip:be,style:{position:"absolute"}},ie.createElement("div",{ref:ge,className:Ue()(ce.imageDimensions,Ke,oe?ce.fullWidth:""),style:y},ie.createElement("img",{className:ce.img,ref:z}))))}},99298:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(95237),De=ne(43604),Ue=ne(99313),we=ne(3113),Be=ne(6339),ae=ne(96408),Je=ne(48136),Xe=ne(59301);const He=(0,ie.forwardRef)(({callback:Re,showSaveButton:et,value:Ke=""},oe)=>{const y=(0,ie.useRef)(),a=[{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=>{y.current.setValue(y.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Xe.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},a.map((ee,te)=>Xe.createElement(De.Z,{flex:"110px",className:ae.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Xe.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Xe.createElement("div",{key:de},Xe.createElement("h1",null,ge.name),Xe.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Xe.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Xe.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Xe.createElement(ce.Z,{className:ae.Z.lists,gutter:[10,10]},x.map((ee,te)=>Xe.createElement(De.Z,{flex:"110px",className:ae.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Xe.createElement("div",{className:ae.Z.children},ee.children.map((ge,de)=>Xe.createElement("div",{key:de},ge.name&&Xe.createElement("h1",null,ge.name),Xe.createElement(ce.Z,{gutter:[10,10]},ge.data.map((se,be)=>Xe.createElement(De.Z,{key:be,onClick:()=>b(se),className:ae.Z.diamond},Xe.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.current.getValue();var te=ee.innerText;return Re&&Re(te),te};return(0,ie.useImperativeHandle)(oe,()=>({getData:z})),Xe.createElement("div",{className:ae.Z.mathWrap},Xe.createElement(Ue.default,{defaultActiveKey:"1",items:E}),Xe.createElement("math-field",{locale:"zh_cn",className:ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},Ke||""),et&&Xe.createElement("div",{className:ae.Z.button},Xe.createElement(we.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=He},85533:function(qe,gt,ne){"use strict";ne.d(gt,{h:function(){return ee}});var ie=ne(59301),ce=ne(57809),De=ne(78241),Ue=ne(3113),we=ne(89780),Be=ne.n(we),ae=ne(45559),Je=ne(42313),Xe=Object.defineProperty,He=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,y=(te,ge,de)=>ge in te?Xe(te,ge,{enumerable:!0,configurable:!0,writable:!0,value:de}):te[ge]=de,a=(te,ge)=>{for(var de in ge||(ge={}))Ke.call(ge,de)&&y(te,de,ge[de]);if(et)for(var de of et(ge))oe.call(ge,de)&&y(te,de,ge[de]);return te},x=(te,ge)=>He(te,Re(ge));const b=ce.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"]};gt.Z=({callback:te,onCancel:ge})=>{const[de,se]=(0,ie.useState)("python");function be(Ee){se(z[Ee][1])}function Se(Ee){te(Ee)}return ie.createElement(De.default,x(a({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Se,style:{width:500}}),ie.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ie.createElement(ce.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:be},Object.keys(z).map(Ee=>ie.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),ie.createElement(De.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ie.createElement(ee,{mode:de})),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Ue.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function ee({value:te,onChange:ge,mode:de,options:se={}}){const be=(0,ie.useRef)(),[Se,Ee]=(0,ie.useState)();return(0,ie.useEffect)(()=>{if(Se){let he=function(ft){const it=ft.getValue();ge&&ge(it)};return Se.on("change",he),()=>{Se.off("change",he)}}},[Se,ge]),(0,ie.useEffect)(()=>{Se&&Se.setOption("mode",de)},[Se,de]),(0,ie.useEffect)(()=>{Se&&(te!==Se.getValue()||te==="")&&setTimeout(()=>{Se.setValue(te||"")},300)},[Se,te]),(0,ie.useEffect)(()=>{if(be.current&&!Se){const he=Be().fromTextArea(be.current,a({mode:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Ee(he)}},[be.current,Se]),ie.createElement("div",{className:"my-codemirror-container"},ie.createElement("textarea",{ref:be}))}},96565:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return _a}});var ie=ne(59301),ce=ne(89780),De=ne.n(ce),Ue=ne(76374),we=ne(45559),Be=ne(6313),ae=ne(25717),Je=ne(99498),Xe=ne(25419),He=ne(67549),Re=ne(6339),et=({value:ke="",className:We,showTextOnly:je,showLines:Mt,style:mn={}})=>{const nn=(0,ie.useMemo)(()=>"",[ke]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{dangerouslySetInnerHTML:{__html:nn}}))},Ke=ne(59301),oe=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ke,We,je)=>We in ke?oe(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:je}):ke[We]=je,ee=(ke,We)=>{for(var je in We||(We={}))b.call(We,je)&&z(ke,je,We[je]);if(x)for(var je of x(We))E.call(We,je)&&z(ke,je,We[je]);return ke},te=(ke,We)=>y(ke,a(We));let ge=[{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 de({onActionCallback:ke,title:We,icon:je,actionName:Mt,className:mn="",children:nn}){function Xn(){ke(Mt)}return Ke.createElement("a",{title:We,className:mn,onClick:Xn},Ke.createElement("i",{className:`${je}`}),nn)}var se=({watch:ke,showNullButton:We,showNullProgramButton:je,onActionCallback:Mt,fullScreen:mn,insertTemp:nn,hidetoolBar:Xn,extraUse:Tn})=>{const sn=[...ge,{title:`${ke?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ke?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ke.createElement("ul",{className:"markdown-toolbar-container"},!Xn&&sn.map((_n,Ba)=>Ke.createElement("li",{key:Ba},_n.actionName?Ke.createElement(de,te(ee({},_n),{onActionCallback:Mt})):Ke.createElement("span",{className:"v-line"}))),We?Ke.createElement("li",null,Ke.createElement(de,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Mt},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,je?Ke.createElement(Ke.Fragment,null,Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Mt},Ke.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Mt},Ke.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,nn&&Ke.createElement("li",null,Ke.createElement(de,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${nn}`,onActionCallback:Mt},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Tn&&Ke.createElement("li",null,Tn),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(de,{icon:`${mn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:mn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Mt})))},be=ne(57261),Se=ne(78241),Ee=ne(92832),he=ne(3113),ft=Object.defineProperty,it=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(ke,We,je)=>We in ke?ft(ke,We,{enumerable:!0,configurable:!0,writable:!0,value:je}):ke[We]=je,st=(ke,We)=>{for(var je in We||(We={}))Ae.call(We,je)&&at(ke,je,We[je]);if(Ce)for(var je of Ce(We))tt.call(We,je)&&at(ke,je,We[je]);return ke},St=(ke,We)=>it(ke,_t(We));const wt={labelCol:{span:4},wrapperCol:{span:20}};var Bt=({callback:ke,onCancel:We})=>{function je(Mt){ke(Mt)}return ie.createElement(Se.default,St(st({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:je,style:{width:500}}),ie.createElement(Se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ie.createElement(Ee.default,null)),ie.createElement(Se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ie.createElement(Ee.default,null)),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(he.ZP,{type:"ghost",onClick:We},"\u53D6\u6D88")))},Tt=ne(85533),Oe=ne(45053),_e=ne(43418),ct=ne(95237),Gt=ne(16750),nt=ne(59301),$t=({callback:ke,onCancel:We})=>{const je=document.createElement("canvas"),Mt=je.getContext("2d");je.width=1e3,je.height=800,Mt.fillStyle="#ffffff",Mt.fillRect(0,0,je.width,je.height);const mn=je.toDataURL("image/png");return nt.createElement(_e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(ct.Z,{style:{height:"100vh"}},nt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:mn,visible:!0,title:String(Date.now())},onOk:nn=>{ke({src:nn.url})},onClose:We})))},ye=ne(12378);function Et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Et,go.CommandHandler),Et.prototype.canAlignSelection=function(){var ke=this.diagram;return!(ke===null||ke.isReadOnly||ke.isModelReadOnly||ke.selection.count<2)},Et.prototype.alignLeft=function(){var ke=this.diagram;ke.startTransaction("aligning left");var We=1/0;ke.selection.each(function(je){je instanceof go.Link||(We=Math.min(je.position.x,We))}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(We,je.position.y))}),ke.commitTransaction("aligning left")},Et.prototype.alignRight=function(){var ke=this.diagram;ke.startTransaction("aligning right");var We=-1/0;ke.selection.each(function(je){if(!(je instanceof go.Link)){var Mt=je.actualBounds.x+je.actualBounds.width;We=Math.max(Mt,We)}}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(We-je.actualBounds.width,je.position.y))}),ke.commitTransaction("aligning right")},Et.prototype.alignTop=function(){var ke=this.diagram;ke.startTransaction("alignTop");var We=1/0;ke.selection.each(function(je){je instanceof go.Link||(We=Math.min(je.position.y,We))}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.position.x,We))}),ke.commitTransaction("alignTop")},Et.prototype.alignBottom=function(){var ke=this.diagram;ke.startTransaction("aligning bottom");var We=-1/0;ke.selection.each(function(je){if(!(je instanceof go.Link)){var Mt=je.actualBounds.y+je.actualBounds.height;We=Math.max(Mt,We)}}),ke.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.actualBounds.x,We-je.actualBounds.height))}),ke.commitTransaction("aligning bottom")},Et.prototype.alignCenterX=function(){var ke=this.diagram,We=ke.selection.first();if(We){ke.startTransaction("aligning Center X");var je=We.actualBounds.x+We.actualBounds.width/2;ke.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(je-Mt.actualBounds.width/2,Mt.actualBounds.y))}),ke.commitTransaction("aligning Center X")}},Et.prototype.alignCenterY=function(){var ke=this.diagram,We=ke.selection.first();if(We){ke.startTransaction("aligning Center Y");var je=We.actualBounds.y+We.actualBounds.height/2;ke.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(Mt.actualBounds.x,je-Mt.actualBounds.height/2))}),ke.commitTransaction("aligning Center Y")}},Et.prototype.alignColumn=function(ke){var We=this.diagram;We.startTransaction("align Column"),ke===void 0&&(ke=0),ke=parseFloat(ke);var je=new Array;We.selection.each(function(Tn){Tn instanceof go.Link||je.push(Tn)});for(var Mt=0;Mt<je.length-1;Mt++){var mn=je[Mt],nn=mn.actualBounds.y+mn.actualBounds.height+ke,Xn=je[Mt+1];Xn.move(new go.Point(mn.actualBounds.x,nn))}We.commitTransaction("align Column")},Et.prototype.alignRow=function(ke){ke===void 0&&(ke=0),ke=parseFloat(ke);var We=this.diagram;We.startTransaction("align Row");var je=new Array;We.selection.each(function(Tn){Tn instanceof go.Link||je.push(Tn)});for(var Mt=0;Mt<je.length-1;Mt++){var mn=je[Mt],nn=mn.actualBounds.x+mn.actualBounds.width+ke,Xn=je[Mt+1];Xn.move(new go.Point(nn,mn.actualBounds.y))}We.commitTransaction("align Row")},Et.prototype.canRotate=function(ke){var We=this.diagram;return!(We===null||We.isReadOnly||We.isModelReadOnly||We.selection.count<1)},Et.prototype.rotate=function(ke){ke===void 0&&(ke=90);var We=this.diagram;We.startTransaction("rotate "+ke.toString());var We=this.diagram;We.selection.each(function(je){je instanceof go.Link||je instanceof go.Group||(je.angle+=ke)}),We.commitTransaction("rotate "+ke.toString())},Et.prototype.pullToFront=function(){var ke=this.diagram;ke.startTransaction("pullToFront");var We=new go.Map;ke.selection.each(function(je){We.set(je.layer,0)}),We.iteratorKeys.each(function(je){var Mt=0;je.parts.each(function(mn){if(!mn.isSelected){var nn=mn.zOrder;isNaN(nn)?mn.zOrder=0:Mt=Math.max(Mt,nn)}}),We.set(je,Mt)}),ke.selection.each(function(je){Et._assignZOrder(je,We.get(je.layer)+1)}),ke.commitTransaction("pullToFront")},Et.prototype.pushToBack=function(){var ke=this.diagram;ke.startTransaction("pushToBack");var We=new go.Map;ke.selection.each(function(je){We.set(je.layer,0)}),We.iteratorKeys.each(function(je){var Mt=0;je.parts.each(function(mn){if(!mn.isSelected){var nn=mn.zOrder;isNaN(nn)?mn.zOrder=0:Mt=Math.min(Mt,nn)}}),We.set(je,Mt)}),ke.selection.each(function(je){Et._assignZOrder(je,We.get(je.layer)-1-Et._findGroupDepth(je))}),ke.commitTransaction("pushToBack")},Et._assignZOrder=function(ke,We,je){je===void 0&&(je=ke),ke.layer===je.layer&&(ke.zOrder=We),ke instanceof go.Group&&ke.memberParts.each(function(Mt){Et._assignZOrder(Mt,We+1,je)})},Et._findGroupDepth=function(ke){if(ke instanceof go.Group){var We=0;return ke.memberParts.each(function(je){We=Math.max(We,Et._findGroupDepth(je))}),We+1}else return 0},Et.prototype.doKeyDown=function(){var ke=this.diagram;if(ke!==null){var We=ke.lastInput;if(We.key==="Up"||We.key==="Down"||We.key==="Left"||We.key==="Right"){var je=this.arrowKeyBehavior;if(je==="none")return;if(je==="select"){this._arrowKeySelect();return}else if(je==="move"){this._arrowKeyMove();return}else if(je==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Et.prototype._getAllParts=function(){var ke=new Array;return this.diagram.nodes.each(function(We){ke.push(We)}),this.diagram.parts.each(function(We){ke.push(We)}),ke},Et.prototype._arrowKeyMove=function(){var ke=this.diagram,We=ke.lastInput,je=0,Mt=0;if(We.control||We.meta)je=1,Mt=1;else if(ke.grid!==null){var mn=ke.grid.gridCellSize;Mt=mn.width,je=mn.height}ke.startTransaction("arrowKeyMove"),ke.selection.each(function(nn){We.key==="Up"?nn.move(new go.Point(nn.actualBounds.x,nn.actualBounds.y-je)):We.key==="Down"?nn.move(new go.Point(nn.actualBounds.x,nn.actualBounds.y+je)):We.key==="Left"?nn.move(new go.Point(nn.actualBounds.x-Mt,nn.actualBounds.y)):We.key==="Right"&&nn.move(new go.Point(nn.actualBounds.x+Mt,nn.actualBounds.y))}),ke.commitTransaction("arrowKeyMove")},Et.prototype._arrowKeySelect=function(){var ke=this.diagram,We=ke.lastInput,je=null;We.key==="Up"?je=this._findNearestPartTowards(270):We.key==="Down"?je=this._findNearestPartTowards(90):We.key==="Left"?je=this._findNearestPartTowards(180):We.key==="Right"&&(je=this._findNearestPartTowards(0)),je!==null&&(We.shift?je.isSelected=!0:We.control||We.meta?je.isSelected=!je.isSelected:ke.select(je))},Et.prototype._findNearestPartTowards=function(ke){var We=this.diagram.selection.first();if(We===null)return null;for(var je=We.actualBounds.center,Mt=this._getAllParts(),mn=1/0,nn=We,Xn=0;Xn<Mt.length;Xn++){var Tn=Mt[Xn];if(Tn!==We&&Tn.canSelect()){var sn=Tn.actualBounds.center,_n=je.directionPoint(sn),Ba=this._angleCloseness(_n,ke);if(Ba<=45){var Ft=je.distanceSquaredPoint(sn);Ft*=1+Math.sin(Ba*Math.PI/180),Ft<mn&&(mn=Ft,nn=Tn)}}}return nn},Et.prototype._angleCloseness=function(ke,We){return Math.min(Math.abs(We-ke),Math.min(Math.abs(We+360-ke),Math.abs(We-360-ke)))},Et.prototype._arrowKeyTree=function(){var ke=this.diagram,We=ke.selection.first();if(We instanceof go.Node){var je=ke.lastInput;if(je.key==="Right"){if(!We.isTreeLeaf)if(!We.isTreeExpanded)ke.commandHandler.canExpandTree(We)&&ke.commandHandler.expandTree(We);else{var Mt=this._sortTreeChildrenByY(We).first();Mt!==null&&ke.select(Mt)}}else if(je.key==="Left")if(!We.isTreeLeaf&&We.isTreeExpanded)ke.commandHandler.canCollapseTree(We)&&ke.commandHandler.collapseTree(We);else{var mn=We.findTreeParentNode();mn!==null&&ke.select(mn)}else if(je.key==="Up"){var mn=We.findTreeParentNode();if(mn!==null){var nn=this._sortTreeChildrenByY(mn),Xn=nn.indexOf(We);if(Xn>0){for(var Tn=nn.elt(Xn-1);Tn!==null&&Tn.isTreeExpanded&&!Tn.isTreeLeaf;){var sn=this._sortTreeChildrenByY(Tn);Tn=sn.last()}Tn!==null&&ke.select(Tn)}else ke.select(mn)}}else if(je.key==="Down")if(We.isTreeExpanded&&!We.isTreeLeaf){var Mt=this._sortTreeChildrenByY(We).first();Mt!==null&&ke.select(Mt)}else for(;We!==null;){var mn=We.findTreeParentNode();if(mn===null)break;var nn=this._sortTreeChildrenByY(mn),Xn=nn.indexOf(We);if(Xn<nn.length-1){ke.select(nn.elt(Xn+1));break}else We=mn}var _n=ke.selection.first();_n!==null&&ke.scrollToRect(_n.actualBounds)}},Et.prototype._sortTreeChildrenByY=function(ke){var We=new go.List().addAll(ke.findTreeChildrenNodes());return We.sort(function(je,Mt){var mn=je.location,nn=Mt.location;return mn.y<nn.y?-1:mn.y>nn.y?1:mn.x<nn.x?-1:mn.x>nn.x?1:0}),We},Et.prototype.copyToClipboard=function(ke){go.CommandHandler.prototype.copyToClipboard.call(this,ke),this._lastPasteOffset.set(this.pasteOffset)},Et.prototype.pasteFromClipboard=function(){var ke=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ke,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ke},Object.defineProperty(Et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ke){if(ke!=="move"&&ke!=="select"&&ke!=="scroll"&&ke!=="tree"&&ke!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ke);this._arrowKeyBehavior=ke}}),Object.defineProperty(Et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ke){if(!(ke instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ke);this._pasteOffset.set(ke)}});var Ht=Et,un=ne(25863),Xt=ne(43604),Te=ne(38147),$e={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Fe=ne(59301),me=(ke,We,je)=>new Promise((Mt,mn)=>{var nn=sn=>{try{Tn(je.next(sn))}catch(_n){mn(_n)}},Xn=sn=>{try{Tn(je.throw(sn))}catch(_n){mn(_n)}},Tn=sn=>sn.done?Mt(sn.value):Promise.resolve(sn.value).then(nn,Xn);Tn((je=je.apply(ke,We)).next())});function Ve({onCancel:ke,callback:We}){let je=(0,ie.useRef)(),Mt=(0,ie.useRef)(),mn=(0,ie.useRef)(),nn=(0,ie.useRef)(!1);const Xn=(0,ie.useRef)(!1),[Tn,sn]=(0,ie.useState)(0);function _n(){const Ft=ye.bx.make,Dn={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"};je.current=new ye.S0(Mt.current,{padding:20,grid:Ft(ye.s_,"Grid",Ft(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ft(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:zt=>{var xn=zt.diagram.commandHandler.addTopLevelParts(zt.diagram.selection,!0);xn||zt.diagram.currentTool.doCancel()},commandHandler:Ft(Ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:zt=>{var xn=zt.subject;xn.location=xn.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 xn=zt.subject;setTimeout(()=>{zt.diagram.commandHandler.editTextBlock()})},LinkRelinked:zt=>{var xn=zt.parameter.part;xn.invalidateConnectedLinks();var On=zt.subject;zt.diagram.toolManager.linkingTool.isForwards?On.toNode.invalidateConnectedLinks():On.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),je.current.nodeTemplate=Ft(ye.NB,"Auto",{locationSpot:ye.z6.Center,locationObjectName:"SHAPE",desiredSize:new ye.$u(120,60),minSize:new ye.$u(40,40),resizable:!0,resizeCellSize:new ye.$u(10,10),rotatable:!0},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),new ye.KX("desiredSize","size",ye.$u.parse).makeTwoWay(ye.$u.stringify),Ft(ye.bn,{name:"SHAPE",fill:Dn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("figure"),new ye.KX("fill"),new ye.KX("stroke","borderColor"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Ft(ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ft(ye.al,{margin:1,textAlign:"center",overflow:ye.al.OverflowEllipsis,editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),je.current.nodeTemplate.toolTip=Ft("ToolTip",Ft(ye.s_,"Vertical",{maxSize:new ye.$u(200,NaN)},Ft(ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ye.KX("text")),Ft(ye.al,{font:"10pt sans-serif",textAlign:"center"},new ye.KX("text","details"))));function va(zt,xn){var On=(In,oa)=>{In.handled=!0,In.diagram.model.commit(ra=>{var Ta=oa.part.adornedPart,Ka=new ye.E9().setRectSpot(Ta.actualBounds,zt);Ka.subtract(Ta.location),Ka.scale(2,2),Ka.x+=Math.sign(Ka.x)*130,Ka.y+=Math.sign(Ka.y)*130,Ka.add(Ta.location),Ka.snapToGridPoint(In.diagram.grid.gridOrigin,In.diagram.grid.gridCellSize);var no=ra.copyNodeData(Ta.data);ra.setGroupKeyForNodeData(no,ra.getGroupKeyForNodeData(Ta.data)),ra.addNodeData(no);var To={from:Ta.key,to:ra.getKeyForNodeData(no)};ra.addLinkData(To);var Wo=In.diagram.findNodeForData(no);Wo.location=Ka,In.diagram.select(Wo),setTimeout(()=>{In.diagram.commandHandler.editTextBlock()},20)})};return Ft(ye.bn,{figure:xn,alignment:zt,alignmentFocus:zt.opposite(),width:zt.equals(ye.z6.Top)||zt.equals(ye.z6.Bottom)?25:18,height:zt.equals(ye.z6.Top)||zt.equals(ye.z6.Bottom)?18:25,fill:"orange",stroke:Dn.white,strokeWidth:4,mouseEnter:(In,oa)=>oa.fill="dodgerblue",mouseLeave:(In,oa)=>oa.fill="orange",isActionable:!0,click:On,contextClick:On})}function ea(zt){return Ft(ye.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:(xn,On)=>On.fill="dodgerblue",mouseLeave:(xn,On)=>On.fill="orange",click:(xn,On)=>{xn.diagram.commandHandler.showContextMenu(On.part.adornedPart)}},zt||{})}je.current.nodeTemplate.selectionAdornmentTemplate=Ft(ye.uz,"Spot",Ft(ye.Vm,{padding:10}),va(ye.z6.Top,"TriangleUp"),va(ye.z6.Left,"TriangleLeft"),va(ye.z6.Right,"TriangleRight"),va(ye.z6.Bottom,"TriangleDown"),ea({alignment:new ye.z6(.75,0)}));function ia(zt,xn){return(On,In)=>{On.handled=!0,On.diagram.model.commit(oa=>{oa.set(In.part.adornedPart.data,zt,xn)})}}function ta(zt,xn){return xn||(xn="color"),Ft(ye.bn,{width:16,height:16,stroke:"lightgray",fill:zt,margin:1,background:"transparent",mouseEnter:(On,In)=>In.stroke="dodgerblue",mouseLeave:(On,In)=>In.stroke="lightgray",click:ia(xn,zt),contextClick:ia(xn,zt)})}function Aa(){return[Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",ta(Dn.white,"fill"),ta(Dn.beige,"fill"),ta(Dn.extralightblue,"fill"),ta(Dn.extralightred,"fill"))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",ta(Dn.lightgray,"fill"),ta(Dn.lightgreen,"fill"),ta(Dn.lightblue,"fill"),ta(Dn.lightred,"fill")))]}function Da(){return[Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",ta(Dn.black),ta(Dn.green),ta(Dn.blue),ta(Dn.red))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",ta(Dn.white),ta(Dn.magenta),ta(Dn.purple),ta(Dn.orange)))]}function Wa(zt,xn){return xn||(xn="thickness"),Ft(ye.bn,"LineH",{width:16,height:16,strokeWidth:zt,margin:1,background:"transparent",mouseEnter:(On,In)=>In.background="dodgerblue",mouseLeave:(On,In)=>In.background="transparent",click:ia(xn,zt),contextClick:ia(xn,zt)})}function ro(zt,xn){return xn||(xn="dash"),Ft(ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:zt,margin:1,background:"transparent",mouseEnter:(On,In)=>In.background="dodgerblue",mouseLeave:(On,In)=>In.background="transparent",click:ia(xn,zt),contextClick:ia(xn,zt)})}function Ya(){return[Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",Wa(1),Wa(2),Wa(3),Wa(4))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",ro(null),ro([2,4]),ro([4,4])))]}function Ca(zt,xn){return xn||(xn="figure"),Ft(ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:zt,margin:1,background:"transparent",mouseEnter:(On,In)=>In.fill="dodgerblue",mouseLeave:(On,In)=>In.fill="lightgray",click:ia(xn,zt),contextClick:ia(xn,zt)})}je.current.nodeTemplate.contextMenu=Ft("ContextMenu",Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",Ca("Rectangle"),Ca("RoundedRectangle"),Ca("Ellipse"),Ca("Diamond"))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",Ca("Parallelogram2"),Ca("ManualOperation"),Ca("Procedure"),Ca("Cylinder1"))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",Ca("Terminator"),Ca("CreateRequest"),Ca("Document"),Ca("TriangleDown"))),Aa(),Da(),Ya()),je.current.groupTemplate=Ft(ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(zt,xn)=>{var On=xn.addMembers(xn.diagram.selection,!0);On||xn.diagram.currentTool.doCancel()},avoidable:!1},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),Ft(ye.s_,"Auto",{name:"BODY"},Ft(ye.bn,{parameter1:10,fill:Dn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("fill"),new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Ft(ye.Vm,{background:"transparent",margin:20})),Ft(ye.al,{alignment:ye.z6.Top,alignmentFocus:ye.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ye.KX("text"),new ye.KX("stroke","color"))),je.current.groupTemplate.selectionAdornmentTemplate=Ft(ye.uz,"Spot",Ft(ye.s_,"Auto",Ft(ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ft(ye.Vm,{margin:1.5})),ea({alignment:ye.z6.TopRight,alignmentFocus:ye.z6.BottomRight})),je.current.groupTemplate.contextMenu=Ft("ContextMenu",Aa(),Da(),Ya()),je.current.linkTemplate=Ft(ye.rU,{layerName:"Foreground",routing:ye.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ye.KX("fromSpot","fromSpot",ye.z6.parse),new ye.KX("toSpot","toSpot",ye.z6.parse),new ye.KX("fromShortLength","dir",zt=>zt>=1?10:0),new ye.KX("toShortLength","dir",zt=>zt>=1?10:0),new ye.KX("points").makeTwoWay(),Ft(ye.bn,{strokeWidth:2},new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Ft(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,0),segmentOrientation:ye.rU.OrientAlong,alignmentFocus:ye.z6.Right,figure:"circle",width:10,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",zt=>zt===1)),Ft(ye.bn,{segmentIndex:-1,segmentOffset:new ye.E9(-10,6),segmentOrientation:ye.rU.OrientPlus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",zt=>zt>=1),new ye.KX("width","thickness",zt=>7+3*zt),new ye.KX("height","thickness",zt=>7+3*zt),new ye.KX("segmentOffset","thickness",zt=>new ye.E9(-15,4+1.5*zt))),Ft(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,-6),segmentOrientation:ye.rU.OrientMinus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",zt=>zt===2),new ye.KX("width","thickness",zt=>7+3*zt),new ye.KX("height","thickness",zt=>7+3*zt),new ye.KX("segmentOffset","thickness",zt=>new ye.E9(-15,4+1.5*zt))),Ft(ye.al,{alignmentFocus:new ye.z6(0,1,-4,0),editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),je.current.linkTemplate.selectionAdornmentTemplate=Ft(ye.uz,Ft(ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:bo(2)},new ye.KX("pathPattern","thickness",bo)),ea({alignmentFocus:new ye.z6(0,0,-6,-4)}));function bo(zt){return Ft(ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(zt+4).toString()+" H3"})}function xo(zt){var xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return zt===0?xn="M0 0 M16 16 M0 8 L16 8":zt===2&&(xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ft(ye.bn,{geometryString:xn,margin:2,background:"transparent",mouseEnter:(On,In)=>In.background="dodgerblue",mouseLeave:(On,In)=>In.background="transparent",click:ia("dir",zt),contextClick:ia("dir",zt)})}function Mo(zt){var xn=(On,In)=>{On.handled=!0,On.diagram.model.commit(oa=>{var ra=In.part.adornedPart;oa.set(ra.data,zt?"toSpot":"fromSpot",ye.z6.stringify(ye.z6.AllSides)),(zt?ra.toNode:ra.fromNode).invalidateConnectedLinks()})};return Ft(ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(On,In)=>In.background="dodgerblue",mouseLeave:(On,In)=>In.background="transparent",click:xn,contextClick:xn})}function oo(zt,xn){var On=0,In=ye.z6.RightSide;zt.equals(ye.z6.Top)?(On=270,In=ye.z6.TopSide):zt.equals(ye.z6.Left)?(On=180,In=ye.z6.LeftSide):zt.equals(ye.z6.Bottom)&&(On=90,In=ye.z6.BottomSide),xn||(On-=180);var oa=(ra,Ta)=>{ra.handled=!0,ra.diagram.model.commit(Ka=>{var no=Ta.part.adornedPart;Ka.set(no.data,xn?"toSpot":"fromSpot",ye.z6.stringify(In)),(xn?no.toNode:no.fromNode).invalidateConnectedLinks()})};return Ft(ye.bn,{alignment:zt,alignmentFocus:zt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:On,background:"transparent",mouseEnter:(ra,Ta)=>Ta.background="dodgerblue",mouseLeave:(ra,Ta)=>Ta.background="transparent",click:oa,contextClick:oa})}je.current.linkTemplate.contextMenu=Ft("ContextMenu",Da(),Ya(),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",xo(0),xo(1),xo(2))),Ft("ContextMenuButton",Ft(ye.s_,"Horizontal",Ft(ye.s_,"Spot",Mo(!1),oo(ye.z6.Top,!1),oo(ye.z6.Left,!1),oo(ye.z6.Right,!1),oo(ye.z6.Bottom,!1)),Ft(ye.s_,"Spot",{margin:new ye.Zt(0,0,0,2)},Mo(!0),oo(ye.z6.Top,!0),oo(ye.z6.Left,!0),oo(ye.z6.Right,!0),oo(ye.z6.Bottom,!0)))));const Dt=`{ "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 _o=["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 Io(zt){return console.log("shapeName:",zt),_o.indexOf(zt)>=0}var Co=new ye.YI(mn.current,{maxSelectionCount:1,linkTemplate:Ft(ye.rU,{locationSpot:ye.z6.Center,selectionAdornmentTemplate:Ft(ye.uz,"Link",{locationSpot:ye.z6.Center},Ft(ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ft(ye.bn,{toArrow:"Standard",stroke:null}))},{routing:ye.rU.AvoidsNodes,curve:ye.rU.JumpOver,corner:5,toShortLength:4},new ye.KX("points"),Ft(ye.bn,{isPanelMain:!0,strokeWidth:2}),Ft(ye.bn,{toArrow:"Standard",stroke:null})),model:new ye.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ye.bn.getFigureGenerators().toArray().map(zt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:zt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return je.current.addDiagramListener("TextEdited",function(zt){var xn;const On=zt.subject.part;var In=(xn=document.activeElement)==null?void 0:xn.value;typeof In=="string"&&In.trim()===""&&je.current.model.commit(function(oa){oa.set(On.data,"text","\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}),Co.nodeTemplate=Ft(ye.NB,"Auto",{locationSpot:ye.z6.Center},new ye.KX("location","location",ye.E9.parse).makeTwoWay(ye.E9.stringify),Ft(ye.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 ye.KX("stroke").makeTwoWay(),new ye.KX("fill").makeTwoWay(),new ye.KX("figure")),Ft(ye.al,{margin:new ye.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ye.$u(16,16),maxSize:new ye.$u(10,NaN),textAlign:"center",editable:!0},new ye.KX("key").makeTwoWay())),setTimeout(()=>{je.current.grid=Ft(ye.s_,"Grid",Ft(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ft(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),je.current.grid.visible=!0,je.current.grid.gridCellStroke="darkgray",je.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=je.current,je.current}const Ba=()=>me(this,null,function*(){var Ft=je.current.makeImage();const Dn=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ft.src}});We({src:Dn.url})});return(0,ie.useEffect)(()=>(setTimeout(()=>{_n()},500),sn(Tn+1),()=>{je.current=null}),[]),Fe.createElement("div",{ref:Xn,className:nn.current?`${$e.maxH60} body-overflow-initial`:"body-overflow-initial"},Fe.createElement(_e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Fe.createElement(ct.Z,null,Fe.createElement(Xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Fe.createElement(Xt.Z,{onClick:()=>{var Ft,Dn,va=je.current.selection.first();if(nn.current=!nn.current,document.activeElement&&va){let ea=(Dn=(Ft=document.activeElement)==null?void 0:Ft.value)==null?void 0:Dn.trim();typeof ea=="string"&&je.current.model.commit(function(ia){ia.set(va.data,"text",ea||"\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}sn(Tn+1)}},Fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ke},Fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:$e.flowChartWrp},Fe.createElement("div",{style:{display:"flex",height:"100%"}},Fe.createElement("div",{style:{width:"300px",height:"100%"}},Fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:$e.myPaletteDiv,ref:mn})),Fe.createElement("div",{style:{flex:1,position:"relative"}},Fe.createElement("div",{ref:Mt,style:{height:"80vh"}}))),Fe.createElement("div",{className:"tr"},Fe.createElement(he.ZP,{size:"large",onClick:Ba,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vt=Ve,pe=ne(5112),ue=ne(5871);const Ze=pe.ZP.Group,Ne={margin:"0 8px"};var Pe=({callback:ke,onCancel:We})=>{function je(Mt){ke(Mt)}return ie.createElement(Se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:je},ie.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ie.createElement("span",{style:Ne},"\u5355\u5143\u683C\u6570\uFF1A"),ie.createElement("span",{style:Ne},"\u884C\u6570"),ie.createElement(Se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ie.createElement(ue.Z,null)),ie.createElement("span",{style:Ne},"\u5217\u6570"),ie.createElement(Se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ie.createElement(ue.Z,null))),ie.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ie.createElement("span",{style:Ne},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ie.createElement(Se.default.Item,{name:"align"},ie.createElement(Ze,null,ie.createElement(pe.ZP,{value:"default"},ie.createElement("i",{className:"fa fa-align-justify"})),ie.createElement(pe.ZP,{value:"left"},ie.createElement("i",{className:"fa fa-align-left"})),ie.createElement(pe.ZP,{value:"center"},ie.createElement("i",{className:"fa fa-align-center"})),ie.createElement(pe.ZP,{value:"right"},ie.createElement("i",{className:"fa fa-align-right"}))))),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(he.ZP,{type:"ghost",onClick:We},"\u53D6\u6D88")))},Ge=ne(78673),Lt=ne(93510),mt=ne.n(Lt),lt=(0,ie.forwardRef)(({use3d:ke,width:We,height:je,callback:Mt,showSaveButton:mn},nn)=>{const Xn=(0,ie.useRef)(),Tn=(0,ie.useRef)(),[sn,_n]=(0,ie.useState)(!1),Ba=(0,ie.useRef)({id:Xn,appName:"graphing",width:We||1e3,height:je||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ie.useEffect)(()=>{Tn.current=new(mt())(Ba.current,!0),window.onload=function(){Tn.current.inject("applet_container")}},[]);const Ft=()=>{var Dn=window.ggbApplet.getPNGBase64(1,!0,72);return Mt&&Mt(Dn),Dn};return(0,ie.useEffect)(()=>{Ba.current.appName=sn?"3D":"graphing",Tn.current.inject("applet_container")},[sn]),(0,ie.useEffect)(()=>{_n(ke)},[ke]),(0,ie.useImperativeHandle)(nn,()=>({getImgData:Ft})),ie.createElement(ie.Fragment,null,ie.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Xn}),ie.createElement(ct.Z,{align:"middle"},ie.createElement(Xt.Z,{flex:1},ie.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:sn,onChange:Dn=>_n(Dn)})),ie.createElement(Xt.Z,null,ie.createElement(he.ZP,{size:"large",onClick:Ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yt=ne(99298),ot=ne(1012),Zt=ne(8591);const Rt="link",Nt="upload-image",Jt="add-flowchart",Yt="draw-image",yn="add-flowchart",rn="code-block",En="add-table",Kn="------------",jn={default:Kn,left:`:${Kn}`,center:`:${Kn}:`,right:`${Kn}:`};var ht=ne(31103),ut=(ke,We,je)=>new Promise((Mt,mn)=>{var nn=sn=>{try{Tn(je.next(sn))}catch(_n){mn(_n)}},Xn=sn=>{try{Tn(je.throw(sn))}catch(_n){mn(_n)}},Tn=sn=>sn.done?Mt(sn.value):Promise.resolve(sn.value).then(nn,Xn);Tn((je=je.apply(ke,We)).next())});function dt(){}let Ct=0;const vn=1e4,kn="\u2581",tn="@\u2581\u2581@",Bn="@\u2581@",Ln=`
**\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`,Gn=["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 da(ke){return/^\d+$/.test(ke)?`${ke}px`:ke}const Zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ba={[Zn+"-B"]:"bold",[Zn+"-I"]:"italic"},xa={[Rt]:"\u6DFB\u52A0\u94FE\u63A5",[rn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Nt]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[Jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[En]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _a=({defaultValue:ke="",onChange:We,width:je="100%",height:Mt=400,miniToolbar:mn=!1,isFocus:nn=!1,watch:Xn,insertTemp:Tn,mode:sn="markdown",id:_n="markdown-editor-id",showResizeBar:Ba=!1,noStorage:Ft=!1,showNullButton:Dn=!1,showNullProgramButton:va=!1,hidetoolBar:ea=!1,fullScreen:ia=!1,onBlur:ta,onCMBeforeChange:Aa,onFullScreen:Da,className:Wa="",disablePaste:ro=!1,disabled:Ya=!1,disabledFill:Ca=!1,placeholder:bo="",values:xo="",extraUse:Mo,onAddBlank:oo})=>{const[Dt,_o]=(0,ie.useState)(null),[Io,Co]=(0,ie.useState)(ke),[zt,xn]=(0,ie.useState)(Xn),[On,In]=(0,ie.useState)(ia),[oa,ra]=(0,ie.useState)(""),[Ta,Ka]=(0,ie.useState)(0),[no,To]=(0,ie.useState)(Mt),[Wo,Uo]=(0,ie.useState)(!1),vr=(0,ie.useRef)((0,ot.Z)()),Pr=(0,ie.useRef)(!1),nr=(0,ie.useRef)(),[ar,Vo]=(0,ie.useState)(0),[or,rr]=(0,ie.useState)(0),Lo=(0,ie.useRef)(),Ro=(0,ie.useRef)(),Ao=(0,ie.useRef)(),ko=(0,ie.useRef)(),ir=()=>ut(void 0,null,function*(){var fn;const Vt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:vr.current}});(fn=Vt==null?void 0:Vt.attachments)!=null&&fn.length&&(console.log("cm:",Dt,Lo),Vt.attachments.map(an=>{an.content_type.indexOf("image")>-1?Dt.replaceSelection(`![,](/api/attachments/${an.id}?type=${an.content_type})`):an.content_type.indexOf("video")>-1?Dt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):an.content_type.indexOf("pdf")>-1?Dt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${an.id}?type=${an.content_type}&disposition=inline" target="_blank">${an.name}</a>`):Dt.replaceSelection(`[${an.name}](${ENV.API_SERVER}/api/attachments/${an.id}?type=${an.content_type})`)}))});(0,ie.useEffect)(()=>{const fn=window.scrollY||window.pageYOffset;Co(xo),Dt==null||Dt.setValue(xo),window.scrollTo(0,fn)},[xo]),(0,ie.useEffect)(()=>{Da==null||Da(On)},[On]),(0,ie.useEffect)(()=>{if(Lo.current){let fn=function(an,on){var Qn;if(ro){on.preventDefault();return}const ma=on.clipboardData;if(ma){const ka=ma.types.toString(),Ia=ma.items;if(ka==="Files"||ma.types.indexOf("Files")>-1){if(on.preventDefault(),sn=="stex")return;try{let za=Ia[1];((Qn=Ia[0])==null?void 0:Qn.kind)==="file"&&(za=Ia[0]);const Ma=za.getAsFile(),mo=Ma.name.split(".").pop();(0,Oe.I)(Ma,Ua=>{var Go,Ko,Zo;Ua.id?((Go=Ma==null?void 0:Ma.type)==null?void 0:Go.indexOf("image"))>-1?Vt.replaceSelection(`<img width="100%" src="/api/attachments/${Ua.id}?type=${Ua.content_type})" alt="" />`):((Ko=Ma==null?void 0:Ma.type)==null?void 0:Ko.indexOf("video"))>-1?Vt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ua.id}"></video>`):((Zo=Ma==null?void 0:Ma.type)==null?void 0:Zo.indexOf("pdf"))>-1?Vt.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=${Ma.type}&disposition=inline" target="_blank">${Ma.name}</a>`):Gn.includes(mo)?Vt.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=office&disposition=inline" target="_blank">${Ma.name}</a>`):Vt.replaceSelection(`[${Ma.name}](/api/attachments/${Ua.id}?type=${Ua.content_type})`):(Ua==null?void 0:Ua.status)===401&&(Zt.ZP.warning((Ua==null?void 0:Ua.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(za){Zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Vt=De().fromTextArea(Lo.current,{mode:sn,lineNumbers:!mn,lineWrapping:!0,value:ke,autoCloseTags:!va,autoCloseBrackets:!0});return Vt.on("keyup",function(an,on){on.keyCode===8&&(an.getValue()==""?Vt.setOption("placeholder",bo):Vt.setOption("placeholder",null))}),Vt.on("keydown",function(an,on){if(on.keyCode===8){var Qn=Ur(an);Qn&&on.preventDefault()}}),nn&&Vt.focus(),Vt.on("paste",fn),Vt.on("dragleave",function(an,on){Ro.current.classList.remove("mouse-hover-md")}),Ya&&Vt.on("beforeChange",function(an,on){(on.origin==="paste"||on.origin==="+input")&&on.cancel()}),_o(Vt),()=>{Vt.off("paste",fn)}}},[]);const yr=(0,ie.useCallback)(()=>{if(Ro.current)try{}catch(fn){console.log(fn,"---- to set md editor body height")}},[no,Ro,On]);(0,ie.useEffect)(()=>{function fn(){let Vt=new Ue.Z(an=>{for(let on of an)(on.target.offsetHeight>0||on.target.offsetWidth>0)&&(yr(),Dt.setSize("100%","100%"),Dt.refresh())});return Vt.observe(Lo.current.parentElement),Vt}if(Dt){const Vt=fn();return()=>{var an,on;(an=Lo.current)!=null&&an.parentElement&&Vt.unobserve((on=Lo.current)==null?void 0:on.parentElement)}}},[Dt,yr]),(0,ie.useEffect)(()=>{if(Dt){let fn=[];for(const[Vt,an]of Object.entries(ba)){let on={[Vt]:()=>{lr(an)}};fn.push(on),Dt.addKeyMap(on)}return nr.current=setInterval(()=>{Pr.current&&ir()},4e3),()=>{clearInterval(nr.current);for(let Vt of fn)Dt.removeKeyMap(Vt)}}},[Dt]),(0,ie.useEffect)(()=>{ia!==On&&In(ia)},[ia]),(0,ht.Z)(()=>{if(!Ft&&Ta>0){let fn=new Date().getTime(),Vt=window.sessionStorage.getItem(_n);fn>=Ta+vn&&(!Vt||Vt!==Io)&&(window.sessionStorage.setItem(_n,Io),Uo(!0))}},vn),(0,ie.useEffect)(()=>{xn(Xn)},[Dt,Xn]),(0,ie.useEffect)(()=>{Dt&&nn&&Dt.focus()},[Dt,nn]),(0,ie.useEffect)(()=>{if(zt&&Dt){let fn=function(an){let on=an.target;if(ko.current){let Qn=on.scrollTop/on.scrollHeight;ko.current.scrollTop=ko.current.scrollHeight*Qn}};const Vt=Dt.getScrollerElement();return Vt.addEventListener("scroll",fn),()=>{Vt.removeEventListener("scroll",fn)}}},[Dt,zt]),(0,ie.useEffect)(()=>{if(Dt&&Aa){let fn=function(Vt,an){Aa(Vt,an)};return Dt.on("beforeChange",fn),()=>{Dt.off("beforeChange",fn)}}},[Dt,Aa]),(0,ie.useEffect)(()=>{if(Dt&&ta){let fn=function(){ta(Dt.getValue())};return Dt.on("blur",fn),()=>{Dt.off("blur",fn)}}},[Dt,ta]);function Ur(fn,Vt){var an=fn.getDoc(),on=an.getCursor(),Qn=an.getLine(on.line),ma=Qn.charAt(on.ch-1),ka=Qn.lastIndexOf("@\u2581@",on.ch),Ia=Qn.lastIndexOf("@\u2581\u2581@",on.ch),za=ka>Ia?ka:Ia,Ma=ka>Ia?3:4;if(tn.indexOf(ma)===-1)return null;if(console.log("change1:",Vt,fn,Qn,on,za,ka,Ia,ma),za>=0&&on.ch-za<5){var mo=za+Ma;return an.replaceRange("",{line:on.line,ch:za},{line:on.line,ch:mo}),{line:on.line,ch:mo}}return null}(0,ie.useEffect)(()=>{if(Dt){let fn=function(Vt,an){const on=Vt.getValue();Co(on),Ka(new Date().getTime()),Vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),We&&(va?We(on,Lr(on)):We(on))};return Dt.on("change",fn),()=>{Dt.off("change",fn)}}},[Dt,We]),(0,ie.useEffect)(()=>{if(Dt)if(ke==null)Dt.setValue(""),Co("");else{const fn=window.scrollY||window.pageYOffset;ke!==Dt.getValue()&&(Dt.setValue(ke),Co(ke),Dt.setCursor(Ya?1:Dt.lineCount(),0),window.scrollTo(0,fn))}},[Dt,ke]);const lr=(0,ie.useCallback)(fn=>{const Vt=Dt.getCursor(),an=Dt.getSelection();let on=an.split(`
`);switch(fn){case"bold":return Dt.replaceSelection("**"+an+"**"),an===""&&Dt.setCursor(Vt.line,Vt.ch+2),Dt.focus();case"italic":return Dt.replaceSelection("*"+an+"*"),an===""&&Dt.setCursor(Vt.line,Vt.ch+1),Dt.focus();case"code":return Dt.replaceSelection("`"+an+"`"),an===""&&Dt.setCursor(Vt.line,Vt.ch+1),Dt.focus();case"inline-latex":return ra("inline-latex"),Dt.focus();case"latex":return Dt.replaceSelection("```latex\n"+an+"\n```"),Dt.setCursor(Vt.line+1,an.length+1),Dt.focus();case"line-break":return Dt.replaceSelection(`<br/>
`),Dt.focus();case"list-ul":return an===""?Dt.replaceSelection("- "+an):Dt.replaceSelection(on.map(Qn=>Qn===""?"":`- ${Qn}`).join(`
`)),Dt.focus();case"list-ol":return an===""?Dt.replaceSelection("1. "+an):Dt.replaceSelection(on.map((Qn,ma)=>Qn===""?"":`${ma+1}. ${Qn}`).join(`
`)),Dt.focus();case"add-null-ch":oo==null||oo();return;case"add-signal":return an===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(Bn),Dt.focus();case"add-multiple":return an===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(tn),Dt.focus();case"inster-template-1":return an===""&&Dt.setCursor(Vt.line,Vt.ch),Dt.replaceSelection(Ln),Dt.focus();case"eraser":return Dt.setValue(""),Dt.focus();case"trigger-watch":return xn(!zt),Dt.focus();case"trigger-full-screen":return In(!On),Dt.focus();case Rt:ra(Rt);return;case rn:ra(rn);return;case Nt:ra(Nt);return;case Yt:ra(Yt);return;case"maths-latex":ra("maths-latex");return;case Jt:ra(Jt);return;case En:ra(En);return;default:throw new Error}},[Dt,zt,On]),uo=(0,ie.useCallback)((fn,Vt)=>{var an,on,Qn,ma,ka,Ia;switch(ra(""),oa){case Rt:const{title:Go,link:Ko}=fn;return Dt.replaceSelection(`[${Go}](${Ko})`),Dt.focus();case rn:const{language:Zo,content:dr}=fn;return Dt.replaceSelection(["```"+Zo,dr,"```"].join(`
`)),Dt.focus();case"maths-latex":for(var za=atob(fn),Ma=new Uint8Array(za.length),mo=0;mo<za.length;mo++)Ma[mo]=za.charCodeAt(mo);var Ua=new Blob([Ma],{type:"image/png"});(0,Oe.I)(Ua,io=>{io.id?Dt.replaceSelection(`![,](/api/attachments/${io.id}?type=${io.content_type})`):(io==null?void 0:io.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Dt.replaceSelection("`$$"+fn+"$$`");break;case Nt:case Yt:case yn:const{src:fo,alt:Xo}=fn,Fa=Vt,Br=(Qn=(on=(an=Fa==null?void 0:Fa.name)==null?void 0:an.split("."))==null?void 0:on.pop)==null?void 0:Qn.call(on);return((ma=Fa==null?void 0:Fa.type)==null?void 0:ma.indexOf("image"))>-1||!(Fa!=null&&Fa.type)?Fa.align||Fa.width?Dt.replaceSelection(`<p style="text-align:${Fa.align||"initial"}"><img width="${Fa.width?Fa.width+"%":"initial"}" src="${fo}" alt="${Xo||""}" /></p>`):Dt.replaceSelection(`<img width="100%" src="${fo}" alt="${Xo||""}" />`):((ka=Fa==null?void 0:Fa.type)==null?void 0:ka.indexOf("video"))>-1?Dt.replaceSelection(`<video width="100%" controls src="${fo}"></video>`):((Ia=Fa==null?void 0:Fa.type)==null?void 0:Ia.indexOf("pdf"))>-1?Dt.replaceSelection(`<a href="${fo}?type=${Fa.type}&disposition=inline" target="_blank">${Fa.name}</a>`):Gn.includes(Br)?Dt.replaceSelection(`<a href="${fo}?type=office&disposition=inline" target="_blank">${Fa.name}</a>`):Dt.replaceSelection(`[${Fa.name}](${fo})`),Dt.focus();case En:const{row:Fr,col:Yo,align:Nr}=fn;let Jo=`
`;for(let io=0;io<Fr;io++){let sr=[],Qo=[];for(let qo=0;qo<Yo;qo++)io===1&&Qo.push(jn[Nr]),sr.push(" ");io===1&&(Jo+=`| ${Qo.join(" | ")} |
`),Jo+=`| ${sr.join(Yo===1?"":" | ")} |
`}return Dt.replaceSelection(Jo+`
`),Dt.focus();default:throw new Error}},[Dt,oa]),br=(0,ie.useMemo)(()=>{switch(oa){case Rt:return ie.createElement(Bt,{callback:uo,onCancel:po});case rn:return ie.createElement(Tt.Z,{callback:uo,onCancel:po});case Nt:return ie.createElement(Oe.Z,{callback:uo,onCancel:po});case Jt:return ie.createElement(vt,{callback:uo,onCancel:po});case En:return ie.createElement(Pe,{callback:uo,onCancel:po});case"maths-latex":return ie.createElement(lt,{showSaveButton:!0,callback:uo});case"inline-latex":return ie.createElement(yt.Z,{showSaveButton:!0,callback:uo});default:return null}},[oa]);function po(){ra("")}(0,ie.useEffect)(()=>{if(Ao.current){let fn=function(ka){Qn=!0,ma=ka.pageY},Vt=function(){Qn=!1},an=function(ka){if(Qn){let Ia=ka.pageY-ma;Ia<0&&(Ia=0),Ia>300&&(Ia=300);let za=Mt+Ia+"px";To(za)}},on=Ao.current,Qn=!1,ma=0;return on.addEventListener("mousedown",fn),document.addEventListener("mousemove",an),document.addEventListener("mouseup",Vt),()=>{on.removeEventListener("mousedown",fn),document.removeEventListener("mousemove",an),document.removeEventListener("mouseup",Vt)}}},[Dt,Ao]),(0,ie.useEffect)(()=>{To(Mt)},[Mt]);const xr=da(je),Cr=da(no),gr={width:xr,height:Cr},Vr=(0,ie.useMemo)(()=>{if(Ta){let fn=new Date(Ta),Vt=fn.getHours(),an=fn.getMinutes(),on=fn.getSeconds();return Vt=Vt<10?"0"+Vt:Vt,an=an<10?"0"+an:an,on=on<10?"0"+on:on,`${Vt}:${an}:${on}`}return 0},[Ta]),Lr=fn=>{const Vt=[];if(va){let an=-1;fn=fn.replace(/(@▁▁@|@▁@)/g,function(on,Qn,ma){Vt.push({multiLine:on!==Bn})})}return Vt};function Xr(){window.sessionStorage.removeItem(_n),Uo(!1),Ka(0)}function Yr(){Uo(!1),Ka(0),Dt.setValue(window.sessionStorage.getItem(_n))}(0,ie.useEffect)(()=>{xa[oa]&&oa!==Yt&&oa!==Jt&&setTimeout(()=>{const fn=document.getElementsByClassName("markdown-popup-form")[0],Vt=window.innerWidth/2-fn.offsetWidth/2,an=window.innerHeight/2-fn.offsetHeight/2;Vo(Vt),rr(an)},0)},[oa]);const wr=fn=>{fn.preventDefault();const Vt=fn.clientX-ar,an=fn.clientY-or;document.body.onmousemove=on=>{let Qn=on.clientX-Vt,ma=on.clientY-an;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ia=window.innerWidth-ka.offsetWidth,za=window.innerHeight-ka.offsetHeight;Qn=Math.max(0,Math.min(Qn,Ia)),ma=Math.max(0,Math.min(ma,za)),Er(on.clientX,on.clientY,Vt,an)&&(Vo(Qn),rr(ma))},document.body.onmouseup=function(){document.body.onmousemove=null}},Er=(fn,Vt,an,on)=>{const Qn=document.body.clientHeight,ma=document.body.clientWidth;return fn<20&&an>fn||fn>ma-20&&an<fn||Vt<20&&on>Vt||Vt>Qn-20&&on<Vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"markdown-editor-wrapper",ref:Ro},ie.createElement("div",{className:`markdown-editor-container ${Wa} ${zt?"on-preview":""} ${mn?"mini":""} ${On?"full-screen":""}`,style:gr},ie.createElement(se,{insertTemp:Tn,watch:zt,fullScreen:On,showNullButton:Dn,showNullProgramButton:va,onActionCallback:lr,hidetoolBar:ea,extraUse:Mo}),ie.createElement("div",{className:"markdown-editor-body"},ie.createElement("div",{className:"codemirror-container"},ie.createElement("textarea",{ref:Lo,placeholder:bo})),zt?ie.createElement("div",{ref:ko,className:"preview-container"},sn==="stex"&&ie.createElement(et,{value:Io}),sn!=="stex"&&ie.createElement(Re.Z,{disabledFill:Ca,showProgramFill:va,value:Io})):null))),Ba?ie.createElement("a",{ref:Ao,className:"editor-resize"}):null,oa===Yt&&ie.createElement($t,{callback:uo,onCancel:po}),oa===Jt&&ie.createElement(vt,{callback:uo,onCancel:po}),ie.createElement(be.Z,null,xa[oa]&&oa!==Yt&&oa!==Jt?ie.createElement(_e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ar,top:or},title:ie.createElement("div",{style:{cursor:"move"},onMouseDown:wr},xa[oa]),open:!0,onCancel:po,footer:null,destroyOnClose:!0,width:oa===Jt?"1200px":null,height:oa===Jt?"80vh":null,className:"markdown-popup-form"},br):null))}},45053:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return de},I:function(){return be}});var ie=ne(78241),ce=ne(8591),De=ne(92832),Ue=ne(81327),we=ne(5871),Be=ne(5112),ae=ne(3113),Je=ne(28735),Xe=ne(59301),He=ne(41867),Re=ne(59301),et=Object.defineProperty,Ke=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(Se,Ee,he)=>Ee in Se?et(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:he}):Se[Ee]=he,E=(Se,Ee)=>{for(var he in Ee||(Ee={}))a.call(Ee,he)&&b(Se,he,Ee[he]);if(y)for(var he of y(Ee))x.call(Ee,he)&&b(Se,he,Ee[he]);return Se},z=(Se,Ee)=>Ke(Se,oe(Ee));const{useForm:ee}=ie.default,te={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var de=({callback:Se,onCancel:Ee})=>{const[he]=ee();let ft=(0,Xe.useRef)();function it(Ae){ft.current.width=he.getFieldValue("width"),ft.current.align=he.getFieldValue("align"),Se(Ae,ft.current)}function _t(Ae,tt){if(Ae.status===-1){ce.ZP.error(Ae.message);return}he.setFieldsValue({src:`/api/attachments/${Ae.id}`,type:tt.type})}function Ce(Ae){let tt=Ae.target.files[0];ft.current=tt,be(tt,_t)}return Re.createElement(ie.default,z(E({form:he},ge),{className:"upload-image-panel",onFinish:it,style:{width:470,overflow:"hidden"}}),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ie.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(De.default,{style:te})),Re.createElement(se,{onFileChange:Ce}))),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Re.createElement(De.default,{style:{width:264}})),Re.createElement(ie.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Re.createElement(Ue.Z,null,Re.createElement(ie.default.Item,{name:"width",style:{margin:0}},Re.createElement(we.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ie.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Re.createElement(Be.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"}]})),Re.createElement("aside",null,Re.createElement(ie.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(ae.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function se({onFileChange:Se}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:Se}))}function be(Se,Ee){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,He.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let he=new FormData;he.append("editormd-image-file",Se),he.append("file_param_name","editormd-image-file"),he.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(it){Ee(JSON.parse(it.target.responseText),Se)},!1),ft.addEventListener("error",function(it){console.error(it)},!1),ft.open("POST",`${Je.KI}/api/attachments.json`),ft.send(he)}},57261:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return De}});var ie=ne(59301),ce=ne(4676);class De extends ie.Component{constructor(we){super(we);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,ce.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},31103:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(59301);function ce(De,Ue){const we=(0,ie.useRef)();(0,ie.useEffect)(()=>{we.current=De}),(0,ie.useEffect)(()=>{function Be(){we.current()}if(Ue!==null){let ae=setInterval(Be,Ue);return()=>clearInterval(ae)}},[Ue])}},69911:function(qe,gt,ne){"use strict";ne.r(gt),ne.d(gt,{default:function(){return jn}});var ie=ne(59301),ce=ne(65582),De=ne(66104),Ue=ne(99313),we=ne(27812),Be=ne(65862),ae=ne(96565),Je=ne(74128),Xe=ne(6339),He=ne(43418),Re=ne(8591),et=Object.defineProperty,Ke=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(ht,ut,dt)=>ut in ht?et(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,x=(ht,ut)=>{for(var dt in ut||(ut={}))oe.call(ut,dt)&&a(ht,dt,ut[dt]);if(Ke)for(var dt of Ke(ut))y.call(ut,dt)&&a(ht,dt,ut[dt]);return ht},b=(ht,ut,dt)=>new Promise((Ct,vn)=>{var kn=Ln=>{try{Bn(dt.next(Ln))}catch(Gn){vn(Gn)}},tn=Ln=>{try{Bn(dt.throw(Ln))}catch(Gn){vn(Gn)}},Bn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(kn,tn);Bn((dt=dt.apply(ht,ut)).next())});const E=({shixunHomeworks:ht,dispatch:ut})=>{const dt=(0,ce.useParams)();return ie.createElement(He.default,{centered:!0,title:"\u63D0\u793A",open:ht.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>b(void 0,null,function*(){(yield ut({type:"shixunHomeworks/deleteReply",payload:{object_id:ht.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(Re.ZP.success("\u5220\u9664\u6210\u529F"),ut({type:"shixunHomeworks/setActionTabs",payload:{}}),ut({type:"shixunHomeworks/getReplyList",payload:x({},ht.actionTabs.params)}))}),onCancel:()=>{ut({type:"shixunHomeworks/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var z=(0,ce.connect)(({shixunHomeworks:ht})=>({shixunHomeworks:ht}))(E),ee=ne(66649),te=ne.n(ee),ge=ne(95237),de=ne(43604),se=ne(92832),be=ne(3113),Se=ne(6848),Ee=ne(58421),he=ne(26227),ft=ne(63524),it={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"},_t=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(ht,ut,dt)=>ut in ht?_t(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,st=(ht,ut)=>{for(var dt in ut||(ut={}))Ae.call(ut,dt)&&at(ht,dt,ut[dt]);if(Ce)for(var dt of Ce(ut))tt.call(ut,dt)&&at(ht,dt,ut[dt]);return ht},St=(ht,ut,dt)=>new Promise((Ct,vn)=>{var kn=Ln=>{try{Bn(dt.next(Ln))}catch(Gn){vn(Gn)}},tn=Ln=>{try{Bn(dt.throw(Ln))}catch(Gn){vn(Gn)}},Bn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(kn,tn);Bn((dt=dt.apply(ht,ut)).next())});te().locale("ZH-cn");const wt=({graduation:ht,classroomList:ut,globalSetting:dt,loading:Ct,dispatch:vn})=>{var kn;const[tn,Bn]=(0,ie.useState)(st({},(0,ce.useParams)())),[Ln,Gn]=(0,ie.useState)(!1),[da,pa]=(0,ie.useState)(-1),[Zn,ba]=(0,ie.useState)(""),{detailLeftMenus:xa}=ut,{graduationDetail:_a,replyList:ke,detail:We,tasksDetail:je}=ht,Mt={1:"\u8BBE\u8BA1",2:"\u8BBA\u6587",3:"\u521B\u4F5C"},mn={1:"\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645",2:"\u7ED3\u5408\u79D1\u7814",3:"\u5176\u5B83"},nn={1:"\u771F\u9898",2:"\u6A21\u62DF\u9898"},Xn={1:"\u7EB5\u5411\u8BFE\u9898",2:"\u6A2A\u5411\u8BFE\u9898",3:"\u81EA\u9009"},Tn={1:"\u65B0\u9898",2:"\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42",3:"\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42"};return tn.page_size=10,(0,ie.useEffect)(()=>{vn({type:"graduation/getReplyList",payload:st({},tn)}),vn({type:"graduation/getTopisDetail",payload:st({},tn)})},[tn.categoryId]),ie.createElement("section",{className:it.bg},ie.createElement("section",{className:" edu-container"},ie.createElement("aside",{className:[it.desc,"c-black","font14","bg-white"].join(" ")},ie.createElement("h1",{className:it.description},We.description),ie.createElement("div",{className:"mt30"},ie.createElement("ul",{className:it.listItem},ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u7C7B\u578B\uFF1A"),ie.createElement("span",null,Mt[We==null?void 0:We.topic_type]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\uFF1A"),ie.createElement("span",null,mn[We==null?void 0:We.topic_source]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D281\uFF1A"),ie.createElement("span",null,nn[We==null?void 0:We.topic_property_first]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D282\uFF1A"),ie.createElement("span",null,Xn[We==null?void 0:We.topic_property_second]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"),ie.createElement("span",null,Tn[We==null?void 0:We.topic_repeat]||"--")),ie.createElement("li",null,ie.createElement("span",{className:"c-light-black"},"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"),ie.createElement("span",null,We.city||"--")),ie.createElement("li",{className:"fl with50"},ie.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"),ie.createElement("span",null,We.source_unit||"--")))),ie.createElement("div",{className:"pl30"},(kn=je==null?void 0:je.attachments)==null?void 0:kn.map((sn,_n)=>ie.createElement("div",null,ie.createElement("a",{href:`${Je.Z.API_SERVER}${sn.url}`},ie.createElement("span",{className:"iconfont icon-fujian c-green font14"}),ie.createElement("span",{className:"ml10 c-black"},sn.title),ie.createElement("span",{className:"c-light-black ml20 font12"},sn.filesize)))))),ie.createElement("aside",{className:[it.reply,"bg-white","mt20"].join(" ")},Ln&&ie.createElement(ae.Z,{onChange:sn=>{ba(sn)},height:200,isFocus:!0,watch:!0}),ie.createElement(ge.Z,{onClick:()=>{Gn(!0)}},ie.createElement(de.Z,{flex:"1"},!Ln&&ie.createElement(se.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),ie.createElement(de.Z,null,ie.createElement(be.ZP,{type:"primary",size:"middle",onClick:()=>St(void 0,null,function*(){Zn===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield vn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:tn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:Zn}}})).status===0&&(Re.ZP.success("\u53D1\u5E03\u6210\u529F"),vn({type:"graduation/getReplyList",payload:st({},tn)}),Gn(!1))})},"\u53D1\u8868")))),(ke==null?void 0:ke.comments)&&ke.comments!=""&&ie.createElement("aside",{className:[it.replyList,"bg-white"].join(" ")},ke==null?void 0:ke.comments.map(function(sn,_n){var Ba,Ft;return ie.createElement(ge.Z,{gutter:[12,12],key:_n},ie.createElement(de.Z,{flex:"40px"},ie.createElement("img",{width:"40",src:`${Je.Z.IMG_SERVER}/images/${(Ba=sn==null?void 0:sn.author)==null?void 0:Ba.image_url}`})),ie.createElement(de.Z,{flex:"1"},ie.createElement(ge.Z,{align:"middle"},ie.createElement(de.Z,{span:24},ie.createElement("span",{className:"c-light-black"},(Ft=sn==null?void 0:sn.author)==null?void 0:Ft.name),ie.createElement("span",{className:"c-light-black ml10"},te()(sn==null?void 0:sn.created_on).fromNow()," \u53D1\u5E03")),ie.createElement(de.Z,{span:24},ie.createElement(Xe.Z,{value:sn.content})),sn.children&&ie.createElement("aside",{className:it.comment},sn.children.map(function(Dn,va){return ie.createElement(ge.Z,{key:va},ie.createElement(de.Z,{span:24},ie.createElement(ge.Z,null,ie.createElement(de.Z,{flex:"1"},Dn.author.name,ie.createElement("span",{className:"c-light-black ml10"},te()(Dn==null?void 0:Dn.created_on).fromNow())),ie.createElement(de.Z,null,ie.createElement(Se.Z,{title:"\u5220\u9664"},ie.createElement(he.Z,{className:"current",onClick:()=>{vn({type:"graduation/setActionTabs",payload:{key:"\u5220\u9664",params:tn,selectArr:sn}})}}))))),ie.createElement(de.Z,null,ie.createElement("strong",null,ie.createElement(Xe.Z,{value:Dn.content}))))})),ie.createElement(de.Z,{span:24,className:"mt5 c-light-black"},da===_n&&ie.createElement("aside",null,ie.createElement(ae.Z,{onChange:Dn=>{ba(Dn)},height:150,isFocus:!0}),ie.createElement(ge.Z,null,ie.createElement(de.Z,{span:24,className:"tr"},ie.createElement(be.ZP,{type:"primary",size:"middle",onClick:()=>St(this,null,function*(){Zn===""?Re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield vn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:tn.categoryId,jour_type:"HomeworkCommon",m_parent_id:sn.id,reply_id:1,notes:Zn}}}),vn({type:"graduation/getReplyList",payload:st({},tn)}),Re.ZP.success("\u53D1\u5E03\u6210\u529F"),pa(-1))})},"\u53D1\u8868")))),da!==_n&&ie.createElement("div",{className:"tr"},ie.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>pa(_n)}),sn.liked&&ie.createElement("span",{className:"c-orange"},ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield vn({type:"graduation/replyUnLike",payload:{object_id:sn.id,object_type:"message"}}),vn({type:"graduation/getReplyList",payload:st({},tn)})})}),sn.praises_count),!sn.liked&&ie.createElement("span",null,ie.createElement(ft.Z,{className:"mr5 ml30",onClick:()=>St(this,null,function*(){yield vn({type:"graduation/replyLike",payload:{object_id:sn.id,object_type:"message"}}),vn({type:"graduation/getReplyList",payload:st({},tn)})})}),sn.praises_count))))))}))),ie.createElement("aside",{className:"tc mt30 pb30"},ie.createElement(Ee.Z,{defaultCurrent:1,total:ke==null?void 0:ke.total_count,hideOnSinglePage:!0,current:tn.page||1,onChange:sn=>{tn.page=sn,vn({type:"graduation/getReplyList",payload:st({},tn)})}})),ie.createElement(z,null))};var Bt=(0,ce.connect)(({graduation:ht,classroomList:ut,loading:dt,globalSetting:Ct})=>({graduation:ht,globalSetting:Ct,classroomList:ut,loading:dt.effects}))(wt),Tt=ne(78241),Oe=ne(1710),_e=Object.defineProperty,ct=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,$t=(ht,ut,dt)=>ut in ht?_e(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,ye=(ht,ut)=>{for(var dt in ut||(ut={}))Gt.call(ut,dt)&&$t(ht,dt,ut[dt]);if(ct)for(var dt of ct(ut))nt.call(ut,dt)&&$t(ht,dt,ut[dt]);return ht},Et=(ht,ut)=>{var dt={};for(var Ct in ht)Gt.call(ht,Ct)&&ut.indexOf(Ct)<0&&(dt[Ct]=ht[Ct]);if(ht!=null&&ct)for(var Ct of ct(ht))ut.indexOf(Ct)<0&&nt.call(ht,Ct)&&(dt[Ct]=ht[Ct]);return dt},Ht=(ht,ut,dt)=>new Promise((Ct,vn)=>{var kn=Ln=>{try{Bn(dt.next(Ln))}catch(Gn){vn(Gn)}},tn=Ln=>{try{Bn(dt.throw(Ln))}catch(Gn){vn(Gn)}},Bn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(kn,tn);Bn((dt=dt.apply(ht,ut)).next())});const un=ht=>{var ut=ht,{graduation:dt,dispatch:Ct}=ut,vn=Et(ut,["graduation","dispatch"]);const kn=(0,ce.useParams)();return ie.createElement(He.default,{centered:!0,title:"\u63D0\u793A",open:dt.actionTabs.key==="\u62D2\u7EDD",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ht(void 0,null,function*(){(yield Ct({type:"graduation/refuseTopic",payload:ye({student_graduation_topic:dt.actionTabs.selectArrs.id},kn)})).status===0&&(Re.ZP.success("\u62D2\u7EDD\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:ye({},dt.actionTabs.params)}))}),onCancel:()=>{Ct({type:"graduation/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u5B66\u751F\u9009\u9898?"))};var Xt=(0,ce.connect)(({graduation:ht})=>({graduation:ht}))(un),Te=ne(57809),$e=Object.defineProperty,Fe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,vt=(ht,ut,dt)=>ut in ht?$e(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,pe=(ht,ut)=>{for(var dt in ut||(ut={}))me.call(ut,dt)&&vt(ht,dt,ut[dt]);if(Fe)for(var dt of Fe(ut))Ve.call(ut,dt)&&vt(ht,dt,ut[dt]);return ht},ue=(ht,ut)=>{var dt={};for(var Ct in ht)me.call(ht,Ct)&&ut.indexOf(Ct)<0&&(dt[Ct]=ht[Ct]);if(ht!=null&&Fe)for(var Ct of Fe(ht))ut.indexOf(Ct)<0&&Ve.call(ht,Ct)&&(dt[Ct]=ht[Ct]);return dt},Ze=(ht,ut,dt)=>new Promise((Ct,vn)=>{var kn=Ln=>{try{Bn(dt.next(Ln))}catch(Gn){vn(Gn)}},tn=Ln=>{try{Bn(dt.throw(Ln))}catch(Gn){vn(Gn)}},Bn=Ln=>Ln.done?Ct(Ln.value):Promise.resolve(Ln.value).then(kn,tn);Bn((dt=dt.apply(ht,ut)).next())});const Ne=ht=>{var ut=ht,{graduation:dt,dispatch:Ct}=ut,vn=ue(ut,["graduation","dispatch"]),kn;const tn=(0,ce.useParams)(),{detailList:Bn}=dt,[Ln]=Tt.default.useForm();return ie.createElement(He.default,{centered:!0,title:"\u540C\u610F\u9009\u9898",open:dt.actionTabs.key==="\u540C\u610F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ze(void 0,null,function*(){var Gn;yield Ln.validateFields();const da=Ln.getFieldsValue();(yield Ct({type:"graduation/agreeTopic",payload:pe({group_id:da.group_id,course_group_name:(Gn=Bn==null?void 0:Bn.group_list)==null?void 0:Gn.filter(Zn=>Zn.group_id==da.group_id)[0].group_name,student_graduation_topic:dt.actionTabs.selectArrs.id},tn)})).status===0&&(Re.ZP.success("\u540C\u610F\u6210\u529F"),Ct({type:"graduation/setActionTabs",payload:{}}),Ct({type:"graduation/getTopisDetailList",payload:pe({},dt.actionTabs.params)}))}),onCancel:()=>{Ct({type:"graduation/setActionTabs",payload:{}})}},ie.createElement("p",null,"\u786E\u8BA4\u540C\u610F\u5B66\u751F\u7684\u9009\u9898\uFF0C\u5C06\u5B66\u751F\u52A0\u5165\u6211\u7684\u5206\u73ED"),ie.createElement(Tt.default,{form:Ln},ie.createElement(Tt.default.Item,{name:"group_id",label:"\u9009\u62E9\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u73ED"}]},ie.createElement(Te.default,{placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",size:"middle"},(kn=Bn==null?void 0:Bn.group_list)==null?void 0:kn.map(function(Gn,da){return ie.createElement(Te.default.Option,{value:Gn.group_id},Gn.group_name)})))))};var Pe=(0,ce.connect)(({graduation:ht})=>({graduation:ht}))(Ne),Ge=Object.defineProperty,Lt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,lt=(ht,ut,dt)=>ut in ht?Ge(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,yt=(ht,ut)=>{for(var dt in ut||(ut={}))mt.call(ut,dt)&&lt(ht,dt,ut[dt]);if(Lt)for(var dt of Lt(ut))xt.call(ut,dt)&&lt(ht,dt,ut[dt]);return ht};const ot=({graduation:ht,loading:ut,dispatch:dt})=>{const[Ct,vn]=(0,ie.useState)(yt({},(0,ce.useParams)())),kn=(0,ce.useLocation)(),{detailList:tn}=ht,[Bn,Ln]=(0,ie.useState)({}),[Gn]=Tt.default.useForm(),da=(Zn,ba)=>{Ct.page=Zn,Ct.limit=20,dt({type:"graduation/getTopisDetailList",payload:yt({},Ct)})},pa=[{title:"\u5E8F\u53F7",dataIndex:"name",width:200,align:"center",render:(Zn,ba,xa)=>xa+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:Zn=>Zn==="\u5DF2\u62D2\u7EDD"?ie.createElement("span",{className:"c-orange"},"\u5DF2\u62D2\u7EDD"):Zn},{title:"\u64CD\u4F5C",dataInex:"action",render:(Zn,ba)=>ie.createElement("div",null,(ba.result==="\u5F85\u786E\u8BA4"||ba.result==="\u5DF2\u540C\u610F")&&ie.createElement("span",{className:"current",onClick:()=>{dt({type:"graduation/setActionTabs",payload:{key:"\u62D2\u7EDD",selectArrs:ba,params:Ct}})}},"\u62D2\u7EDD"),ba.result==="\u5F85\u786E\u8BA4"&&ie.createElement("span",{className:"current ml20 c-blue",onClick:()=>{dt({type:"graduation/setActionTabs",payload:{key:"\u540C\u610F",selectArrs:ba,params:Ct}})}},"\u540C\u610F"))}];return ie.createElement(ie.Fragment,null,ie.createElement("section",{className:"minH500 bg-white "},ie.createElement(Oe.default,{loading:ut["graduation/getTopisDetailList"],pagination:!1,dataSource:tn.users_list,columns:pa}),ie.createElement(Xt,null),ie.createElement(Pe,null)),ie.createElement("aside",{className:"tc mb50 mt30"},ie.createElement(Ee.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:da,defaultCurrent:Ct.page||1,current:Ct.page||1,defaultPageSize:15,total:ht.users_count})))};var Zt=(0,ce.connect)(({graduation:ht,loading:ut})=>({graduation:ht,loading:ut.effects}))(ot),Rt={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"},Nt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,rn=(ht,ut,dt)=>ut in ht?Nt(ht,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ht[ut]=dt,En=(ht,ut)=>{for(var dt in ut||(ut={}))Yt.call(ut,dt)&&rn(ht,dt,ut[dt]);if(Jt)for(var dt of Jt(ut))yn.call(ut,dt)&&rn(ht,dt,ut[dt]);return ht};const Kn=({graduation:ht,globalSetting:ut,loading:dt,dispatch:Ct})=>{const vn=(0,ce.useParams)(),[kn]=(0,ce.useSearchParams)(),tn=(0,ce.useLocation)(),[Bn,Ln]=(0,ie.useState)([]),[Gn,da]=(0,ie.useState)(kn.get("tabs")||0),{detailTaskList:pa,tasksDetail:Zn}=ht;let ba;vn.category=kn.get("category_id"),(0,ie.useEffect)(()=>{Ct({type:"graduation/getTasksDetail",payload:En({},vn)}),Ct({type:"graduation/getTasksListDetail",payload:En({},vn)})},[vn.coursesId]);const xa=[{name:"\u4EFB\u52A1\u5217\u8868",id:0,compontent:ie.createElement(Zt,null)},{name:"\u4EFB\u52A1\u63CF\u8FF0",id:1,compontent:ie.createElement(Bt,null)}];return ie.createElement("section",null,ie.createElement("div",{className:"edu-container"},pa.course_name&&ie.createElement("section",{className:"animated fadeIn"},ie.createElement("aside",{className:"mt10"},ie.createElement(De.Z,{separator:">"},ie.createElement(De.Z.Item,null,ie.createElement(ce.Link,{to:`/classrooms/${pa.course_id}/shixun_homework`},pa.course_name)),ie.createElement(De.Z.Item,null,ie.createElement(ce.Link,{to:`/classrooms/${pa.course_id}/graduation_tasks`},"\u6BD5\u8BBE\u4EFB\u52A1")),ie.createElement(De.Z.Item,null,"\u4EFB\u52A1\u8BE6\u60C5"))),ie.createElement("aside",{className:[Rt.title,"mt20"].join(" ")},ie.createElement(ce.Link,{to:`/classrooms/${pa.course_id}/graduation_tasks`},ie.createElement(we.Z,{className:"font16 c-black"})),ie.createElement("strong",{className:"font20 ml5"},pa.task_name),ie.createElement(Be.VV,{status:[pa.status_name]}))),ie.createElement("aside",{className:"mt30 relative"},ie.createElement("aside",{className:Rt.rightMenu},ie.createElement(ce.Link,{className:Rt.shixunDetail,to:`/classrooms/${vn.coursesId}/graduation_tasks/${vn.categoryId}/edit`},ie.createElement("span",{className:"iconfont icon-shixunxiangqing"}),"\u7F16\u8F91\u4EFB\u52A1")),ie.createElement(Ue.default,{defaultActiveKey:Gn,className:Rt.menuTabs},xa.map((_a,ke)=>ie.createElement(Ue.default.TabPane,{tab:_a.name,key:_a.id},_a.compontent))))))};var jn=(0,ce.connect)(({graduation:ht,loading:ut,globalSetting:dt})=>({graduation:ht,globalSetting:dt,loading:ut.effects}))(Kn)},50371:function(qe,gt){"use strict";function ne(){const ie=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ce=1;ce<arguments.length;ce++){const De=ce<0||arguments.length<=ce?void 0:arguments[ce];De&&Object.keys(De).forEach(Ue=>{const we=De[Ue];we!==void 0&&(ie[Ue]=we)})}return ie}gt.Z=ne},13845:function(qe,gt,ne){"use strict";ne.d(gt,{F:function(){return ie},Z:function(){return ce}});function ie(De){return De!=null&&De===De.window}function ce(De,Ue){var we,Be;if(typeof window=="undefined")return 0;const ae=Ue?"scrollTop":"scrollLeft";let Je=0;return ie(De)?Je=De[Ue?"pageYOffset":"pageXOffset"]:De instanceof Document?Je=De.documentElement[ae]:(De instanceof HTMLElement||De)&&(Je=De[ae]),De&&!ie(De)&&typeof Je!="number"&&(Je=(Be=((we=De.ownerDocument)!==null&&we!==void 0?we:De).documentElement)===null||Be===void 0?void 0:Be[ae]),Je}},56762:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(59301);function ce(){const[,De]=ie.useReducer(Ue=>Ue+1,0);return De}},68031:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Ue}});var ie=ne(16089);function ce(we,Be,ae,Je){const Xe=ae-Be;return we/=Je/2,we<1?Xe/2*we*we*we+Be:Xe/2*((we-=2)*we*we+2)+Be}var De=ne(13845);function Ue(we){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:Je,duration:Xe=450}=Be,He=ae(),Re=(0,De.Z)(He,!0),et=Date.now(),Ke=()=>{const y=Date.now()-et,a=ce(y>Xe?Xe:y,Re,we,Xe);(0,De.F)(He)?He.scrollTo(window.pageXOffset,a):He instanceof Document||He.constructor.name==="HTMLDocument"?He.documentElement.scrollTop=a:He.scrollTop=a,y<Xe?(0,ie.Z)(Ke):typeof Je=="function"&&Je()};(0,ie.Z)(Ke)}},66104:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return _t}});var ie=ne(92310),ce=ne.n(ie),De=ne(11592),Ue=ne(26112),we=ne(59301),Be=ne(92343),ae=ne(36355),Je=ne(84105),Xe=ne(91857);const He=Ce=>{let{children:Ae}=Ce;const{getPrefixCls:tt}=we.useContext(ae.E_),at=tt("breadcrumb");return we.createElement("li",{className:`${at}-separator`,"aria-hidden":"true"},Ae===""?Ae:Ae||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Re=He,et=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};function Ke(Ce,Ae){if(Ce.title===void 0||Ce.title===null)return null;const tt=Object.keys(Ae).join("|");return typeof Ce.title=="object"?Ce.title:String(Ce.title).replace(new RegExp(`:(${tt})`,"g"),(at,st)=>Ae[st]||at)}function oe(Ce,Ae,tt,at){if(tt==null)return null;const{className:st,onClick:St}=Ae,wt=et(Ae,["className","onClick"]),Bt=Object.assign(Object.assign({},(0,Ue.Z)(wt,{data:!0,aria:!0})),{onClick:St});return at!==void 0?we.createElement("a",Object.assign({},Bt,{className:ce()(`${Ce}-link`,st),href:at}),tt):we.createElement("span",Object.assign({},Bt,{className:ce()(`${Ce}-link`,st)}),tt)}function y(Ce,Ae){return(at,st,St,wt,Bt)=>{if(Ae)return Ae(at,st,St,wt);const Tt=Ke(at,st);return oe(Ce,at,Tt,Bt)}}var a=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};const x=Ce=>{const{prefixCls:Ae,separator:tt="/",children:at,menu:st,overlay:St,dropdownProps:wt,href:Bt}=Ce,Oe=(_e=>{if(st||St){const ct=Object.assign({},wt);if(st){const Gt=st||{},{items:nt}=Gt,$t=a(Gt,["items"]);ct.menu=Object.assign(Object.assign({},$t),{items:nt==null?void 0:nt.map((ye,Et)=>{var{key:Ht,title:un,label:Xt,path:Te}=ye,$e=a(ye,["key","title","label","path"]);let Fe=Xt!=null?Xt:un;return Te&&(Fe=we.createElement("a",{href:`${Bt}${Te}`},Fe)),Object.assign(Object.assign({},$e),{key:Ht!=null?Ht:Et,label:Fe})})})}else St&&(ct.overlay=St);return we.createElement(Xe.Z,Object.assign({placement:"bottom"},ct),we.createElement("span",{className:`${Ae}-overlay-link`},_e,we.createElement(Je.Z,null)))}return _e})(at);return Oe!=null?we.createElement(we.Fragment,null,we.createElement("li",null,Oe),tt&&we.createElement(Re,null,tt)):null},b=Ce=>{const{prefixCls:Ae,children:tt,href:at}=Ce,st=a(Ce,["prefixCls","children","href"]),{getPrefixCls:St}=we.useContext(ae.E_),wt=St("breadcrumb",Ae);return we.createElement(x,Object.assign({},st,{prefixCls:wt}),oe(wt,st,tt,at))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ne(17313),ee=ne(83116),te=ne(37613);const ge=Ce=>{const{componentCls:Ae,iconCls:tt}=Ce;return{[Ae]:Object.assign(Object.assign({},(0,z.Wf)(Ce)),{color:Ce.itemColor,fontSize:Ce.fontSize,[tt]:{fontSize:Ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ce.linkColor,transition:`color ${Ce.motionDurationMid}`,padding:`0 ${Ce.paddingXXS}px`,borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",marginInline:-Ce.marginXXS,"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover}},(0,z.Qy)(Ce)),"li:last-child":{color:Ce.lastItemColor},[`${Ae}-separator`]:{marginInline:Ce.separatorMargin,color:Ce.separatorColor},[`${Ae}-link`]:{[`
> ${tt} + span,
> ${tt} + a
`]:{marginInlineStart:Ce.marginXXS}},[`${Ae}-overlay-link`]:{borderRadius:Ce.borderRadiusSM,height:Ce.lineHeight*Ce.fontSize,display:"inline-block",padding:`0 ${Ce.paddingXXS}px`,marginInline:-Ce.marginXXS,[`> ${tt}`]:{marginInlineStart:Ce.marginXXS,fontSize:Ce.fontSizeIcon},"&:hover":{color:Ce.linkHoverColor,backgroundColor:Ce.colorBgTextHover,a:{color:Ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ce.componentCls}-rtl`]:{direction:"rtl"}})}};var de=(0,ee.Z)("Breadcrumb",Ce=>{const Ae=(0,te.TS)(Ce,{});return[ge(Ae)]},Ce=>({itemColor:Ce.colorTextDescription,lastItemColor:Ce.colorText,iconFontSize:Ce.fontSize,linkColor:Ce.colorTextDescription,linkHoverColor:Ce.colorText,separatorColor:Ce.colorTextDescription,separatorMargin:Ce.marginXS})),se=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};function be(Ce){const{breadcrumbName:Ae,children:tt}=Ce,at=se(Ce,["breadcrumbName","children"]),st=Object.assign({title:Ae},at);return tt&&(st.menu={items:tt.map(St=>{var{breadcrumbName:wt}=St,Bt=se(St,["breadcrumbName"]);return Object.assign(Object.assign({},Bt),{title:wt})})}),st}function Se(Ce,Ae){return(0,we.useMemo)(()=>Ce||(Ae?Ae.map(be):null),[Ce,Ae])}var Ee=function(Ce,Ae){var tt={};for(var at in Ce)Object.prototype.hasOwnProperty.call(Ce,at)&&Ae.indexOf(at)<0&&(tt[at]=Ce[at]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,at=Object.getOwnPropertySymbols(Ce);st<at.length;st++)Ae.indexOf(at[st])<0&&Object.prototype.propertyIsEnumerable.call(Ce,at[st])&&(tt[at[st]]=Ce[at[st]]);return tt};const he=(Ce,Ae)=>{if(Ae===void 0)return Ae;let tt=(Ae||"").replace(/^\//,"");return Object.keys(Ce).forEach(at=>{tt=tt.replace(`:${at}`,Ce[at])}),tt},ft=Ce=>{const{prefixCls:Ae,separator:tt="/",style:at,className:st,rootClassName:St,routes:wt,items:Bt,children:Tt,itemRender:Oe,params:_e={}}=Ce,ct=Ee(Ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:nt,breadcrumb:$t}=we.useContext(ae.E_);let ye;const Et=Gt("breadcrumb",Ae),[Ht,un]=de(Et),Xt=Se(Bt,wt),Te=y(Et,Oe);if(Xt&&Xt.length>0){const me=[],Ve=Bt||wt;ye=Xt.map((vt,pe)=>{const{path:ue,key:Ze,type:Ne,menu:Pe,overlay:Ge,onClick:Lt,className:mt,separator:xt,dropdownProps:lt}=vt,yt=he(_e,ue);yt!==void 0&&me.push(yt);const ot=Ze!=null?Ze:pe;if(Ne==="separator")return we.createElement(Re,{key:ot},xt);const Zt={},Rt=pe===Xt.length-1;Pe?Zt.menu=Pe:Ge&&(Zt.overlay=Ge);let{href:Nt}=vt;return me.length&&yt!==void 0&&(Nt=`#/${me.join("/")}`),we.createElement(x,Object.assign({key:ot},Zt,(0,Ue.Z)(vt,{data:!0,aria:!0}),{className:mt,dropdownProps:lt,href:Nt,separator:Rt?"":tt,onClick:Lt,prefixCls:Et}),Te(vt,_e,Ve,me,Nt))})}else if(Tt){const me=(0,De.Z)(Tt).length;ye=(0,De.Z)(Tt).map((Ve,vt)=>{if(!Ve)return Ve;const pe=vt===me-1;return(0,Be.Tm)(Ve,{separator:pe?"":tt,key:vt})})}const $e=ce()(Et,$t==null?void 0:$t.className,{[`${Et}-rtl`]:nt==="rtl"},st,St,un),Fe=Object.assign(Object.assign({},$t==null?void 0:$t.style),at);return Ht(we.createElement("nav",Object.assign({className:$e,style:Fe},ct),we.createElement("ol",null,ye)))};ft.Item=E,ft.Separator=Re;var it=ft,_t=it},24905:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return de}});var ie=ne(92310),ce=ne.n(ie),De=ne(5630),Ue=ne(59301),we=ne(36355),Be=ne(1684),ae=ne(32441),Xe=Ue.createContext(null),He=ne(98447),Re=ne(14088),et=ne(4572),Ke=function(se,be){var Se={};for(var Ee in se)Object.prototype.hasOwnProperty.call(se,Ee)&&be.indexOf(Ee)<0&&(Se[Ee]=se[Ee]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Ee=Object.getOwnPropertySymbols(se);he<Ee.length;he++)be.indexOf(Ee[he])<0&&Object.prototype.propertyIsEnumerable.call(se,Ee[he])&&(Se[Ee[he]]=se[Ee[he]]);return Se};const oe=(se,be)=>{var Se;const{prefixCls:Ee,className:he,rootClassName:ft,children:it,indeterminate:_t=!1,style:Ce,onMouseEnter:Ae,onMouseLeave:tt,skipGroup:at=!1,disabled:st}=se,St=Ke(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Bt,checkbox:Tt}=Ue.useContext(we.E_),Oe=Ue.useContext(Xe),{isFormItemInput:_e}=Ue.useContext(ae.aM),ct=Ue.useContext(Be.Z),Gt=(Se=(Oe==null?void 0:Oe.disabled)||st)!==null&&Se!==void 0?Se:ct,nt=Ue.useRef(St.value);Ue.useEffect(()=>{Oe==null||Oe.registerValue(St.value)},[]),Ue.useEffect(()=>{if(!at)return St.value!==nt.current&&(Oe==null||Oe.cancelValue(nt.current),Oe==null||Oe.registerValue(St.value),nt.current=St.value),()=>Oe==null?void 0:Oe.cancelValue(St.value)},[St.value]);const $t=wt("checkbox",Ee),[ye,Et]=(0,He.ZP)($t),Ht=Object.assign({},St);Oe&&!at&&(Ht.onChange=function(){St.onChange&&St.onChange.apply(St,arguments),Oe.toggleOption&&Oe.toggleOption({label:it,value:St.value})},Ht.name=Oe.name,Ht.checked=Oe.value.includes(St.value));const un=ce()(`${$t}-wrapper`,{[`${$t}-rtl`]:Bt==="rtl",[`${$t}-wrapper-checked`]:Ht.checked,[`${$t}-wrapper-disabled`]:Gt,[`${$t}-wrapper-in-form-item`]:_e},Tt==null?void 0:Tt.className,he,ft,Et),Xt=ce()({[`${$t}-indeterminate`]:_t},et.A,Et),Te=_t?"mixed":void 0;return ye(Ue.createElement(Re.Z,{component:"Checkbox",disabled:Gt},Ue.createElement("label",{className:un,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),Ce),onMouseEnter:Ae,onMouseLeave:tt},Ue.createElement(De.Z,Object.assign({"aria-checked":Te},Ht,{prefixCls:$t,className:Xt,disabled:Gt,ref:be})),it!==void 0&&Ue.createElement("span",null,it))))};var a=Ue.forwardRef(oe),x=ne(94480),b=ne(2738),E=function(se,be){var Se={};for(var Ee in se)Object.prototype.hasOwnProperty.call(se,Ee)&&be.indexOf(Ee)<0&&(Se[Ee]=se[Ee]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Ee=Object.getOwnPropertySymbols(se);he<Ee.length;he++)be.indexOf(Ee[he])<0&&Object.prototype.propertyIsEnumerable.call(se,Ee[he])&&(Se[Ee[he]]=se[Ee[he]]);return Se};const z=(se,be)=>{const{defaultValue:Se,children:Ee,options:he=[],prefixCls:ft,className:it,rootClassName:_t,style:Ce,onChange:Ae}=se,tt=E(se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:st}=Ue.useContext(we.E_),[St,wt]=Ue.useState(tt.value||Se||[]),[Bt,Tt]=Ue.useState([]);Ue.useEffect(()=>{"value"in tt&&wt(tt.value||[])},[tt.value]);const Oe=Ue.useMemo(()=>he.map($e=>typeof $e=="string"||typeof $e=="number"?{label:$e,value:$e}:$e),[he]),_e=$e=>{Tt(Fe=>Fe.filter(me=>me!==$e))},ct=$e=>{Tt(Fe=>[].concat((0,x.Z)(Fe),[$e]))},Gt=$e=>{const Fe=St.indexOf($e.value),me=(0,x.Z)(St);Fe===-1?me.push($e.value):me.splice(Fe,1),"value"in tt||wt(me),Ae==null||Ae(me.filter(Ve=>Bt.includes(Ve)).sort((Ve,vt)=>{const pe=Oe.findIndex(Ze=>Ze.value===Ve),ue=Oe.findIndex(Ze=>Ze.value===vt);return pe-ue}))},nt=at("checkbox",ft),$t=`${nt}-group`,[ye,Et]=(0,He.ZP)(nt),Ht=(0,b.Z)(tt,["value","disabled"]),un=he.length?Oe.map($e=>Ue.createElement(a,{prefixCls:nt,key:$e.value.toString(),disabled:"disabled"in $e?$e.disabled:tt.disabled,value:$e.value,checked:St.includes($e.value),onChange:$e.onChange,className:`${$t}-item`,style:$e.style,title:$e.title},$e.label)):Ee,Xt={toggleOption:Gt,value:St,disabled:tt.disabled,name:tt.name,registerValue:ct,cancelValue:_e},Te=ce()($t,{[`${$t}-rtl`]:st==="rtl"},it,_t,Et);return ye(Ue.createElement("div",Object.assign({className:Te,style:Ce},Ht,{ref:be}),Ue.createElement(Xe.Provider,{value:Xt},un)))},ee=Ue.forwardRef(z);var te=Ue.memo(ee);const ge=a;ge.Group=te,ge.__ANT_CHECKBOX=!0;var de=ge},98447:function(qe,gt,ne){"use strict";ne.d(gt,{C2:function(){return we}});var ie=ne(17313),ce=ne(37613),De=ne(83116);const Ue=Be=>{const{checkboxCls:ae}=Be,Je=`${ae}-wrapper`;return[{[`${ae}-group`]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{display:"inline-flex",flexWrap:"wrap",columnGap:Be.marginXS,[`> ${Be.antCls}-row`]:{flex:1}}),[Je]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Je}`]:{marginInlineStart:0},[`&${Je}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ae]:Object.assign(Object.assign({},(0,ie.Wf)(Be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Be.borderRadiusSM,alignSelf:"center",[`${ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ae}-inner`]:Object.assign({},(0,ie.oN)(Be))},[`${ae}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Be.checkboxSize,height:Be.checkboxSize,direction:"ltr",backgroundColor:Be.colorBgContainer,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,borderCollapse:"separate",transition:`all ${Be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Be.checkboxSize/14*5,height:Be.checkboxSize/14*8,border:`${Be.lineWidthBold}px solid ${Be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Be.motionDurationFast} ${Be.motionEaseInBack}, opacity ${Be.motionDurationFast}`}},"& + span":{paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS}})},{[`
${Je}:not(${Je}-disabled),
${ae}:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{borderColor:Be.colorPrimary}},[`${Je}:not(${Je}-disabled)`]:{[`&:hover ${ae}-checked:not(${ae}-disabled) ${ae}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ae}-checked:not(${ae}-disabled):after`]:{borderColor:Be.colorPrimaryHover}}},{[`${ae}-checked`]:{[`${ae}-inner`]:{backgroundColor:Be.colorPrimary,borderColor:Be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Be.motionDurationMid} ${Be.motionEaseOutBack} ${Be.motionDurationFast}`}}},[`
${Je}-checked:not(${Je}-disabled),
${ae}-checked:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"}}},{[ae]:{"&-indeterminate":{[`${ae}-inner`]:{backgroundColor:Be.colorBgContainer,borderColor:Be.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Be.fontSizeLG/2,height:Be.fontSizeLG/2,backgroundColor:Be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Je}-disabled`]:{cursor:"not-allowed"},[`${ae}-disabled`]:{[`&, ${ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ae}-inner`]:{background:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,"&:after":{borderColor:Be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Be.colorTextDisabled},[`&${ae}-indeterminate ${ae}-inner::after`]:{background:Be.colorTextDisabled}}}]};function we(Be,ae){const Je=(0,ce.TS)(ae,{checkboxCls:`.${Be}`,checkboxSize:ae.controlInteractiveSize});return[Ue(Je)]}gt.ZP=(0,De.Z)("Checkbox",(Be,ae)=>{let{prefixCls:Je}=ae;return[we(Je,Be)]})},91857:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(38819),De=ne(92310),Ue=ne.n(De),we=ne(31561),Be=ne(70425),ae=ne(18929),Je=ne(2738),Xe=ne(79676),He=ne(53487),Re=ne(92343),et=ne(36355),Ke=ne(20834),oe=ne(40875),y=ne(88088),a=ne(47211);const x=null,b=te=>{const{menu:ge,arrow:de,prefixCls:se,children:be,trigger:Se,disabled:Ee,dropdownRender:he,getPopupContainer:ft,overlayClassName:it,rootClassName:_t,open:Ce,onOpenChange:Ae,visible:tt,onVisibleChange:at,mouseEnterDelay:st=.15,mouseLeaveDelay:St=.1,autoAdjustOverflow:wt=!0,placement:Bt="",overlay:Tt,transitionName:Oe}=te,{getPopupContainer:_e,getPrefixCls:ct,direction:Gt}=ie.useContext(et.E_),nt=ie.useMemo(()=>{const Pe=ct();return Oe!==void 0?Oe:Bt.includes("top")?`${Pe}-slide-down`:`${Pe}-slide-up`},[ct,Bt,Oe]),$t=ie.useMemo(()=>Bt?Bt.includes("Center")?Bt.slice(0,Bt.indexOf("Center")):Bt:Gt==="rtl"?"bottomRight":"bottomLeft",[Bt,Gt]),ye=ct("dropdown",se),[Et,Ht]=(0,a.Z)(ye),[,un]=(0,y.Z)(),Xt=ie.Children.only(be),Te=(0,Re.Tm)(Xt,{className:Ue()(`${ye}-trigger`,{[`${ye}-rtl`]:Gt==="rtl"},Xt.props.className),disabled:Ee}),$e=Ee?[]:Se;let Fe;$e&&$e.includes("contextMenu")&&(Fe=!0);const[me,Ve]=(0,ae.Z)(!1,{value:Ce!=null?Ce:tt}),vt=(0,Be.useEvent)(Pe=>{Ae==null||Ae(Pe),at==null||at(Pe),Ve(Pe)}),pe=Ue()(it,_t,Ht,{[`${ye}-rtl`]:Gt==="rtl"}),ue=(0,Xe.Z)({arrowPointAtCenter:typeof de=="object"&&de.pointAtCenter,autoAdjustOverflow:wt,offset:un.marginXXS,arrowWidth:de?un.sizePopupArrow:0,borderRadius:un.borderRadius}),Ze=ie.useCallback(()=>{Ve(!1)},[]),Ne=()=>{let Pe;return ge!=null&&ge.items?Pe=ie.createElement(Ke.default,Object.assign({},ge)):typeof Tt=="function"?Pe=Tt():Pe=Tt,he&&(Pe=he(Pe)),Pe=ie.Children.only(typeof Pe=="string"?ie.createElement("span",null,Pe):Pe),ie.createElement(oe.J,{prefixCls:`${ye}-menu`,expandIcon:ie.createElement("span",{className:`${ye}-menu-submenu-arrow`},ie.createElement(ce.Z,{className:`${ye}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ze,validator:Ge=>{let{mode:Lt}=Ge}},Pe)};return Et(ie.createElement(we.Z,Object.assign({alignPoint:Fe},(0,Je.Z)(te,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:St,visible:me,builtinPlacements:ue,arrow:!!de,overlayClassName:pe,prefixCls:ye,getPopupContainer:ft||_e,transitionName:nt,trigger:$e,overlay:Ne,placement:$t,onVisibleChange:vt}),Te))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,He.Z)(b,"dropdown",te=>te,E),ee=te=>ie.createElement(z,Object.assign({},te),ie.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,gt.Z=b},38854:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return y}});var ie=ne(91857),ce=ne(92310),De=ne.n(ce),Ue=ne(59301),we=ne(18785),Be=ne(3113),ae=ne(36355),Je=ne(81327),Xe=ne(33234),He=ne(47211),Re=function(a,x){var b={};for(var E in a)Object.prototype.hasOwnProperty.call(a,E)&&x.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(a);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(a,E[z])&&(b[E[z]]=a[E[z]]);return b};const et=a=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=Ue.useContext(ae.E_),{prefixCls:z,type:ee="default",danger:te,disabled:ge,loading:de,onClick:se,htmlType:be,children:Se,className:Ee,menu:he,arrow:ft,autoFocus:it,overlay:_t,trigger:Ce,align:Ae,open:tt,onOpenChange:at,placement:st,getPopupContainer:St,href:wt,icon:Bt=Ue.createElement(we.Z,null),title:Tt,buttonsRender:Oe=Ne=>Ne,mouseEnterDelay:_e,mouseLeaveDelay:ct,overlayClassName:Gt,overlayStyle:nt,destroyPopupOnHide:$t,dropdownRender:ye}=a,Et=Re(a,["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"]),Ht=b("dropdown",z),un=`${Ht}-button`,[Xt,Te]=(0,He.Z)(Ht),$e={menu:he,arrow:ft,autoFocus:it,align:Ae,disabled:ge,trigger:ge?[]:Ce,onOpenChange:at,getPopupContainer:St||x,mouseEnterDelay:_e,mouseLeaveDelay:ct,overlayClassName:Gt,overlayStyle:nt,destroyPopupOnHide:$t,dropdownRender:ye},{compactSize:Fe,compactItemClassnames:me}=(0,Xe.ri)(Ht,E),Ve=De()(un,me,Ee,Te);"overlay"in a&&($e.overlay=_t),"open"in a&&($e.open=tt),"placement"in a?$e.placement=st:$e.placement=E==="rtl"?"bottomLeft":"bottomRight";const vt=Ue.createElement(Be.ZP,{type:ee,danger:te,disabled:ge,loading:de,onClick:se,htmlType:be,href:wt,title:Tt},Se),pe=Ue.createElement(Be.ZP,{type:ee,danger:te,icon:Bt}),[ue,Ze]=Oe([vt,pe]);return Xt(Ue.createElement(Je.Z.Compact,Object.assign({className:Ve,size:Fe,block:!0},Et),ue,Ue.createElement(ie.Z,Object.assign({},$e),Ze)))};et.__ANT_BUTTON=!0;var Ke=et;const oe=ie.Z;oe.Button=Ke;var y=oe},47211:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return Re}});var ie=ne(17313),ce=ne(13826),De=ne(92899),Ue=ne(29878),we=ne(19447),Be=ne(83116),ae=ne(37613),Xe=et=>{const{componentCls:Ke,menuCls:oe,colorError:y,colorTextLightSolid:a}=et,x=`${oe}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${oe} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const He=et=>{const{componentCls:Ke,menuCls:oe,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ge,colorTextDisabled:de,fontSizeIcon:se,controlPaddingHorizontal:be,colorBgElevated:Se}=et;return[{[Ke]:Object.assign(Object.assign({},(0,ie.Wf)(et)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:se}},[`${Ke}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:se},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ke}-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${Ke}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ke}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ke}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ke}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:ce.ly}})},(0,we.ZP)(et,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${oe}`]:{position:"relative",margin:0},[`${oe}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:ge,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:et.borderRadiusLG,outline:"none",boxShadow:et.boxShadowSecondary},(0,ie.Qy)(et)),{[`${oe}-item-group-title`]:{padding:`${ee}px ${be}px`,color:et.colorTextDescription,transition:`all ${z}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:te,marginInlineEnd:et.marginXS,fontSize:et.fontSizeSM},[`${oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${oe}-item, ${oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${be}px`,color:et.colorText,fontWeight:"normal",fontSize:te,lineHeight:et.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:et.borderRadiusSM,"&:hover, &-active":{backgroundColor:et.controlItemBgHover}},(0,ie.Qy)(et)),{"&-selected":{color:et.colorPrimary,backgroundColor:et.controlItemBgActive,"&:hover, &-active":{backgroundColor:et.controlItemBgActiveHover}},"&-disabled":{color:de,cursor:"not-allowed","&:hover":{color:de,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${et.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:et.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:et.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:et.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${et.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:be+et.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:de,backgroundColor:Se,cursor:"not-allowed"}},[`${oe}-submenu-selected ${Ke}-menu-submenu-title`]:{color:et.colorPrimary}})}},[(0,ce.oN)(et,"slide-up"),(0,ce.oN)(et,"slide-down"),(0,De.Fm)(et,"move-up"),(0,De.Fm)(et,"move-down"),(0,Ue._y)(et,"zoom-big")]]};var Re=(0,Be.Z)("Dropdown",(et,Ke)=>{let{rootPrefixCls:oe}=Ke;const{marginXXS:y,sizePopupArrow:a,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=et,ge=(x-b*E)/2,{dropdownArrowOffset:de}=(0,we.fS)({contentRadius:te}),se=(0,ae.TS)(et,{menuCls:`${ee}-menu`,rootPrefixCls:oe,dropdownArrowDistance:a/2+y,dropdownArrowOffset:de,dropdownPaddingVertical:ge,dropdownEdgeChildPadding:z});return[He(se),Xe(se)]},et=>({zIndexPopup:et.zIndexPopupBase+50}))},8628:function(qe,gt,ne){"use strict";var ie=ne(59301),ce=ne(34280),De=ne(56762),Ue=ne(69507);function we(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ae=(0,ie.useRef)({}),Je=(0,De.Z)(),Xe=(0,Ue.ZP)();return(0,ce.Z)(()=>{const He=Xe.subscribe(Re=>{ae.current=Re,Be&&Je()});return()=>Xe.unsubscribe(He)},[]),ae.current}gt.Z=we},45818:function(qe,gt,ne){"use strict";ne.d(gt,{D:function(){return z},Z:function(){return ge}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(se,be){return ce.createElement(we.Z,(0,ie.Z)({},se,{ref:be,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=ne(33853),He=ne(38819),Re=ne(92310),et=ne.n(Re),Ke=ne(2738),y=de=>!isNaN(parseFloat(de))&&isFinite(de),a=ne(36355),x=ne(84966),b=function(de,se){var be={};for(var Se in de)Object.prototype.hasOwnProperty.call(de,Se)&&se.indexOf(Se)<0&&(be[Se]=de[Se]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Se=Object.getOwnPropertySymbols(de);Ee<Se.length;Ee++)se.indexOf(Se[Ee])<0&&Object.prototype.propertyIsEnumerable.call(de,Se[Ee])&&(be[Se[Ee]]=de[Se[Ee]]);return be};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ce.createContext({}),ee=(()=>{let de=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de+=1,`${se}${de}`}})();var ge=ce.forwardRef((de,se)=>{const{prefixCls:be,className:Se,trigger:Ee,children:he,defaultCollapsed:ft=!1,theme:it="dark",style:_t={},collapsible:Ce=!1,reverseArrow:Ae=!1,width:tt=200,collapsedWidth:at=80,zeroWidthTriggerStyle:st,breakpoint:St,onCollapse:wt,onBreakpoint:Bt}=de,Tt=b(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Oe}=(0,ce.useContext)(x.Gs),[_e,ct]=(0,ce.useState)("collapsed"in de?de.collapsed:ft),[Gt,nt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in de&&ct(de.collapsed)},[de.collapsed]);const $t=(Te,$e)=>{"collapsed"in de||ct(Te),wt==null||wt(Te,$e)},ye=(0,ce.useRef)();ye.current=Te=>{nt(Te.matches),Bt==null||Bt(Te.matches),_e!==Te.matches&&$t(Te.matches,"responsive")},(0,ce.useEffect)(()=>{function Te(Fe){return ye.current(Fe)}let $e;if(typeof window!="undefined"){const{matchMedia:Fe}=window;if(Fe&&St&&St in E){$e=Fe(`(max-width: ${E[St]})`);try{$e.addEventListener("change",Te)}catch(me){$e.addListener(Te)}Te($e)}}return()=>{try{$e==null||$e.removeEventListener("change",Te)}catch(Fe){$e==null||$e.removeListener(Te)}}},[St]),(0,ce.useEffect)(()=>{const Te=ee("ant-sider-");return Oe.addSider(Te),()=>Oe.removeSider(Te)},[]);const Et=()=>{$t(!_e,"clickTrigger")},{getPrefixCls:Ht}=(0,ce.useContext)(a.E_),un=()=>{const Te=Ht("layout-sider",be),$e=(0,Ke.Z)(Tt,["collapsed"]),Fe=_e?at:tt,me=y(Fe)?`${Fe}px`:String(Fe),Ve=parseFloat(String(at||0))===0?ce.createElement("span",{onClick:Et,className:et()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${Ae?"right":"left"}`),style:st},Ee||ce.createElement(Je,null)):null,ue={expanded:Ae?ce.createElement(He.Z,null):ce.createElement(Xe.Z,null),collapsed:Ae?ce.createElement(Xe.Z,null):ce.createElement(He.Z,null)}[_e?"collapsed":"expanded"],Ze=Ee!==null?Ve||ce.createElement("div",{className:`${Te}-trigger`,onClick:Et,style:{width:me}},Ee||ue):null,Ne=Object.assign(Object.assign({},_t),{flex:`0 0 ${me}`,maxWidth:me,minWidth:me,width:me}),Pe=et()(Te,`${Te}-${it}`,{[`${Te}-collapsed`]:!!_e,[`${Te}-has-trigger`]:Ce&&Ee!==null&&!Ve,[`${Te}-below`]:!!Gt,[`${Te}-zero-width`]:parseFloat(me)===0},Se);return ce.createElement("aside",Object.assign({className:Pe},$e,{style:Ne,ref:se}),ce.createElement("div",{className:`${Te}-children`},he),Ce||Gt&&Ve?Ze:null)},Xt=ce.useMemo(()=>({siderCollapsed:_e}),[_e]);return ce.createElement(z.Provider,{value:Xt},un())})},84966:function(qe,gt,ne){"use strict";ne.d(gt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ke},ZP:function(){return ee}});var ie=ne(94480),ce=ne(92310),De=ne.n(ce),Ue=ne(2738),we=ne(59301),Be=ne(36355),ae=ne(83116),Xe=te=>{const{componentCls:ge,bodyBg:de,lightSiderBg:se,lightTriggerBg:be,lightTriggerColor:Se}=te;return{[`${ge}-sider-light`]:{background:se,[`${ge}-sider-trigger`]:{color:Se,background:be},[`${ge}-sider-zero-width-trigger`]:{color:Se,background:be,border:`1px solid ${de}`,borderInlineStart:0}}}};const He=te=>{const{antCls:ge,componentCls:de,colorText:se,triggerColor:be,footerBg:Se,triggerBg:Ee,headerHeight:he,headerPadding:ft,headerColor:it,footerPadding:_t,triggerHeight:Ce,zeroTriggerHeight:Ae,zeroTriggerWidth:tt,motionDurationMid:at,motionDurationSlow:st,fontSize:St,borderRadius:wt,bodyBg:Bt,headerBg:Tt,siderBg:Oe}=te;return{[de]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Bt,"&, *":{boxSizing:"border-box"},[`&${de}-has-sider`]:{flexDirection:"row",[`> ${de}, > ${de}-content`]:{width:0}},[`${de}-header, &${de}-footer`]:{flex:"0 0 auto"},[`${de}-sider`]:{position:"relative",minWidth:0,background:Oe,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ge}-menu${ge}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:be,lineHeight:`${Ce}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-tt,zIndex:1,width:tt,height:Ae,color:be,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Oe,borderStartStartRadius:0,borderStartEndRadius:wt,borderEndEndRadius:wt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${st} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${st}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-tt,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},Xe(te)),{"&-rtl":{direction:"rtl"}}),[`${de}-header`]:{height:he,padding:ft,color:it,lineHeight:`${he}px`,background:Tt,[`${ge}-menu`]:{lineHeight:"inherit"}},[`${de}-footer`]:{padding:_t,color:se,fontSize:St,background:Se},[`${de}-content`]:{flex:"auto",minHeight:0}}};var Re=(0,ae.Z)("Layout",te=>[He(te)],te=>{const{colorBgLayout:ge,controlHeight:de,controlHeightLG:se,colorText:be,controlHeightSM:Se,marginXXS:Ee,colorTextLightSolid:he,colorBgContainer:ft}=te,it=se*1.25;return{colorBgHeader:"#001529",colorBgBody:ge,colorBgTrigger:"#002140",bodyBg:ge,headerBg:"#001529",headerHeight:de*2,headerPadding:`0 ${it}px`,headerColor:be,footerPadding:`${Se}px ${it}px`,footerBg:ge,siderBg:"#001529",triggerHeight:se+Ee*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),et=function(te,ge){var de={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ge.indexOf(se)<0&&(de[se]=te[se]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,se=Object.getOwnPropertySymbols(te);be<se.length;be++)ge.indexOf(se[be])<0&&Object.prototype.propertyIsEnumerable.call(te,se[be])&&(de[se[be]]=te[se[be]]);return de};const Ke=we.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function oe(te){let{suffixCls:ge,tagName:de,displayName:se}=te;return be=>we.forwardRef((Ee,he)=>we.createElement(be,Object.assign({ref:he,suffixCls:ge,tagName:de},Ee)))}const y=we.forwardRef((te,ge)=>{const{prefixCls:de,suffixCls:se,className:be,tagName:Se}=te,Ee=et(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=we.useContext(Be.E_),ft=he("layout",de),[it,_t]=Re(ft),Ce=se?`${ft}-${se}`:ft;return it(we.createElement(Se,Object.assign({className:De()(de||Ce,be,_t),ref:ge},Ee)))}),a=we.forwardRef((te,ge)=>{const{direction:de}=we.useContext(Be.E_),[se,be]=we.useState([]),{prefixCls:Se,className:Ee,rootClassName:he,children:ft,hasSider:it,tagName:_t,style:Ce}=te,Ae=et(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),tt=(0,Ue.Z)(Ae,["suffixCls"]),{getPrefixCls:at,layout:st}=we.useContext(Be.E_),St=at("layout",Se),[wt,Bt]=Re(St),Tt=De()(St,{[`${St}-has-sider`]:typeof it=="boolean"?it:se.length>0,[`${St}-rtl`]:de==="rtl"},st==null?void 0:st.className,Ee,he,Bt),Oe=we.useMemo(()=>({siderHook:{addSider:_e=>{be(ct=>[].concat((0,ie.Z)(ct),[_e]))},removeSider:_e=>{be(ct=>ct.filter(Gt=>Gt!==_e))}}}),[]);return wt(we.createElement(Ke.Provider,{value:Oe},we.createElement(_t,Object.assign({ref:ge,className:Tt,style:Object.assign(Object.assign({},st==null?void 0:st.style),Ce)},tt),ft)))}),x=oe({tagName:"div",displayName:"Layout"})(a),b=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(y),E=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=x},40875:function(qe,gt,ne){"use strict";ne.d(gt,{J:function(){return Be}});var ie=ne(59301),ce=ne(33234),De=ne(70425),Ue=function(ae,Je){var Xe={};for(var He in ae)Object.prototype.hasOwnProperty.call(ae,He)&&Je.indexOf(He)<0&&(Xe[He]=ae[He]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,He=Object.getOwnPropertySymbols(ae);Re<He.length;Re++)Je.indexOf(He[Re])<0&&Object.prototype.propertyIsEnumerable.call(ae,He[Re])&&(Xe[He[Re]]=ae[He[Re]]);return Xe};const we=ie.createContext(null),Be=ie.forwardRef((ae,Je)=>{const{children:Xe}=ae,He=Ue(ae,["children"]),Re=ie.useContext(we),et=ie.useMemo(()=>Object.assign(Object.assign({},Re),He),[Re,He.prefixCls,He.mode,He.selectable]);return ie.createElement(we.Provider,{value:et},ie.createElement(ce.BR,null,(0,De.supportNodeRef)(Xe)?ie.cloneElement(Xe,{ref:Je}):Xe))});gt.Z=we},20834:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return Xt}});var ie=ne(15285),ce=ne(59301),De=ne(45818),Ue=ne(92310),we=ne.n(Ue),Be=ne(36355),ae=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe},Xe=Te=>{const{prefixCls:$e,className:Fe,dashed:me}=Te,Ve=ae(Te,["prefixCls","className","dashed"]),{getPrefixCls:vt}=ce.useContext(Be.E_),pe=vt("menu",$e),ue=we()({[`${pe}-item-divider-dashed`]:!!me},Fe);return ce.createElement(ie.iz,Object.assign({className:ue},Ve))},He=ne(11592),Re=ne(2738),et=ne(6848),Ke=ne(92343),y=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Te=>{var $e;const{className:Fe,children:me,icon:Ve,title:vt,danger:pe}=Te,{prefixCls:ue,firstLevel:Ze,direction:Ne,disableMenuItemTitleTooltip:Pe,inlineCollapsed:Ge}=ce.useContext(y),Lt=Zt=>{const Rt=ce.createElement("span",{className:`${ue}-title-content`},me);return(!Ve||(0,Ke.l$)(me)&&me.type==="span")&&me&&Zt&&Ze&&typeof me=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},me.charAt(0)):Rt},{siderCollapsed:mt}=ce.useContext(De.D);let xt=vt;typeof vt=="undefined"?xt=Ze?me:"":vt===!1&&(xt="");const lt={title:xt};!mt&&!Ge&&(lt.title=null,lt.open=!1);const yt=(0,He.Z)(me).length;let ot=ce.createElement(ie.ck,Object.assign({},(0,Re.Z)(Te,["title","icon","danger"]),{className:we()({[`${ue}-item-danger`]:pe,[`${ue}-item-only-child`]:(Ve?yt+1:yt)===1},Fe),title:typeof vt=="string"?vt:void 0}),(0,Ke.Tm)(Ve,{className:we()((0,Ke.l$)(Ve)?($e=Ve.props)===null||$e===void 0?void 0:$e.className:"",`${ue}-item-icon`)}),Lt(Ge));return Pe||(ot=ce.createElement(et.Z,Object.assign({},lt,{placement:Ne==="rtl"?"left":"right",overlayClassName:`${ue}-inline-collapsed-tooltip`}),ot)),ot},E=Te=>{var $e;const{popupClassName:Fe,icon:me,title:Ve,theme:vt}=Te,pe=ce.useContext(y),{prefixCls:ue,inlineCollapsed:Ze,theme:Ne}=pe,Pe=(0,ie.Xl)();let Ge;if(!me)Ge=Ze&&!Pe.length&&Ve&&typeof Ve=="string"?ce.createElement("div",{className:`${ue}-inline-collapsed-noicon`},Ve.charAt(0)):ce.createElement("span",{className:`${ue}-title-content`},Ve);else{const mt=(0,Ke.l$)(Ve)&&Ve.type==="span";Ge=ce.createElement(ce.Fragment,null,(0,Ke.Tm)(me,{className:we()((0,Ke.l$)(me)?($e=me.props)===null||$e===void 0?void 0:$e.className:"",`${ue}-item-icon`)}),mt?Ve:ce.createElement("span",{className:`${ue}-title-content`},Ve))}const Lt=ce.useMemo(()=>Object.assign(Object.assign({},pe),{firstLevel:!1}),[pe]);return ce.createElement(y.Provider,{value:Lt},ce.createElement(ie.Wd,Object.assign({},(0,Re.Z)(Te,["icon"]),{title:Ge,popupClassName:we()(ue,Fe,`${ue}-${vt||Ne}`)})))},z=ne(18785),ee=ne(70425),te=ne(62892),ge=ne(40875),de=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe};function se(Te){return(Te||[]).map(($e,Fe)=>{if($e&&typeof $e=="object"){const me=$e,{label:Ve,children:vt,key:pe,type:ue}=me,Ze=de(me,["label","children","key","type"]),Ne=pe!=null?pe:`tmp-${Fe}`;return vt||ue==="group"?ue==="group"?ce.createElement(ie.BW,Object.assign({key:Ne},Ze,{title:Ve}),se(vt)):ce.createElement(E,Object.assign({key:Ne},Ze,{title:Ve}),se(vt)):ue==="divider"?ce.createElement(Xe,Object.assign({key:Ne},Ze)):ce.createElement(x,Object.assign({key:Ne},Ze),Ve)}return null}).filter($e=>$e)}function be(Te){return ce.useMemo(()=>Te&&se(Te),[Te])}var Se=ne(64993),Ee=ne(17313),he=ne(8378),ft=ne(13826),it=ne(29878),_t=ne(83116),Ce=ne(37613),tt=Te=>{const{componentCls:$e,motionDurationSlow:Fe,horizontalLineHeight:me,colorSplit:Ve,lineWidth:vt,lineType:pe,itemPaddingInline:ue}=Te;return{[`${$e}-horizontal`]:{lineHeight:me,border:0,borderBottom:`${vt}px ${pe} ${Ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${$e}-item, ${$e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ue},[`> ${$e}-item:hover,
> ${$e}-item-active,
> ${$e}-submenu ${$e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${$e}-item, ${$e}-submenu-title`]:{transition:[`border-color ${Fe}`,`background ${Fe}`].join(",")},[`${$e}-submenu-arrow`]:{display:"none"}}}},st=Te=>{let{componentCls:$e,menuArrowOffset:Fe}=Te;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(-${Fe})`},"&::after":{transform:`rotate(45deg) translateY(${Fe})`}}}}};const St=Te=>Object.assign({},(0,Ee.oN)(Te));var Bt=(Te,$e)=>{const{componentCls:Fe,itemColor:me,itemSelectedColor:Ve,groupTitleColor:vt,itemBg:pe,subMenuItemBg:ue,itemSelectedBg:Ze,activeBarHeight:Ne,activeBarWidth:Pe,activeBarBorderWidth:Ge,motionDurationSlow:Lt,motionEaseInOut:mt,motionEaseOut:xt,itemPaddingInline:lt,motionDurationMid:yt,itemHoverColor:ot,lineType:Zt,colorSplit:Rt,itemDisabledColor:Nt,dangerItemColor:Jt,dangerItemHoverColor:Yt,dangerItemSelectedColor:yn,dangerItemActiveBg:rn,dangerItemSelectedBg:En,itemHoverBg:Kn,itemActiveBg:jn,menuSubMenuBg:ht,horizontalItemSelectedColor:ut,horizontalItemSelectedBg:dt,horizontalItemBorderRadius:Ct,horizontalItemHoverBg:vn,popupBg:kn}=Te;return{[`${Fe}-${$e}, ${Fe}-${$e} > ${Fe}`]:{color:me,background:pe,[`&${Fe}-root:focus-visible`]:Object.assign({},St(Te)),[`${Fe}-item-group-title`]:{color:vt},[`${Fe}-submenu-selected`]:{[`> ${Fe}-submenu-title`]:{color:Ve}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{color:`${Nt} !important`},[`${Fe}-item:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{[`&:hover, > ${Fe}-submenu-title:hover`]:{color:ot}},[`&:not(${Fe}-horizontal)`]:{[`${Fe}-item:not(${Fe}-item-selected)`]:{"&:hover":{backgroundColor:Kn},"&:active":{backgroundColor:jn}},[`${Fe}-submenu-title`]:{"&:hover":{backgroundColor:Kn},"&:active":{backgroundColor:jn}}},[`${Fe}-item-danger`]:{color:Jt,[`&${Fe}-item:hover`]:{[`&:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{color:Yt}},[`&${Fe}-item:active`]:{background:rn}},[`${Fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Fe}-item-selected`]:{color:Ve,[`&${Fe}-item-danger`]:{color:yn},"a, a:hover":{color:"inherit"}},[`& ${Fe}-item-selected`]:{backgroundColor:Ze,[`&${Fe}-item-danger`]:{backgroundColor:En}},[`${Fe}-item, ${Fe}-submenu-title`]:{[`&:not(${Fe}-item-disabled):focus-visible`]:Object.assign({},St(Te))},[`&${Fe}-submenu > ${Fe}`]:{backgroundColor:ht},[`&${Fe}-popup > ${Fe}`]:{backgroundColor:kn},[`&${Fe}-horizontal`]:Object.assign(Object.assign({},$e==="dark"?{borderBottom:0}:{}),{[`> ${Fe}-item, > ${Fe}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:Ct,"&::after":{position:"absolute",insetInline:lt,bottom:0,borderBottom:`${Ne}px solid transparent`,transition:`border-color ${Lt} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:vn,"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}},"&-selected":{color:ut,backgroundColor:dt,"&:hover":{backgroundColor:dt},"&::after":{borderBottomWidth:Ne,borderBottomColor:ut}}}}),[`&${Fe}-root`]:{[`&${Fe}-inline, &${Fe}-vertical`]:{borderInlineEnd:`${Ge}px ${Zt} ${Rt}`}},[`&${Fe}-inline`]:{[`${Fe}-sub${Fe}-inline`]:{background:ue},[`${Fe}-item, ${Fe}-submenu-title`]:Ge&&Pe?{width:`calc(100% + ${Ge}px)`}:{},[`${Fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Pe}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${yt} ${xt}`,`opacity ${yt} ${xt}`].join(","),content:'""'},[`&${Fe}-item-danger`]:{"&::after":{borderInlineEndColor:yn}}},[`${Fe}-selected, ${Fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${yt} ${mt}`,`opacity ${yt} ${mt}`].join(",")}}}}}};const Tt=Te=>{const{componentCls:$e,itemHeight:Fe,itemMarginInline:me,padding:Ve,menuArrowSize:vt,marginXS:pe,itemMarginBlock:ue}=Te,Ze=Ve+vt+pe;return{[`${$e}-item`]:{position:"relative",overflow:"hidden"},[`${$e}-item, ${$e}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`,paddingInline:Ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:me,marginBlock:ue,width:`calc(100% - ${me*2}px)`},[`> ${$e}-item,
> ${$e}-submenu > ${$e}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`},[`${$e}-item-group-list ${$e}-submenu-title,
${$e}-submenu-title`]:{paddingInlineEnd:Ze}}};var _e=Te=>{const{componentCls:$e,iconCls:Fe,itemHeight:me,colorTextLightSolid:Ve,dropdownWidth:vt,controlHeightLG:pe,motionDurationMid:ue,motionEaseOut:Ze,paddingXL:Ne,itemMarginInline:Pe,fontSizeLG:Ge,motionDurationSlow:Lt,paddingXS:mt,boxShadowSecondary:xt,collapsedWidth:lt,collapsedIconSize:yt}=Te,ot={height:me,lineHeight:`${me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[$e]:{"&-inline, &-vertical":Object.assign({[`&${$e}-root`]:{boxShadow:"none"}},Tt(Te))},[`${$e}-submenu-popup`]:{[`${$e}-vertical`]:Object.assign(Object.assign({},Tt(Te)),{boxShadow:xt})}},{[`${$e}-submenu-popup ${$e}-vertical${$e}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${pe*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 ${Lt}`,`background ${Lt}`,`padding ${ue} ${Ze}`].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`]:ot,[`& ${$e}-item-group-title`]:{paddingInlineStart:Ne}},[`${$e}-item`]:ot}},{[`${$e}-inline-collapsed`]:{width:lt,[`&${$e}-root`]:{[`${$e}-item, ${$e}-submenu ${$e}-submenu-title`]:{[`> ${$e}-inline-collapsed-noicon`]:{fontSize:Ge,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% - ${Ge/2}px - ${Pe}px)`,textOverflow:"clip",[`
${$e}-submenu-arrow,
${$e}-submenu-expand-icon
`]:{opacity:0},[`${$e}-item-icon, ${Fe}`]:{margin:0,fontSize:yt,lineHeight:`${me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${$e}-item-icon, ${Fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${$e}-item-icon, ${Fe}`]:{display:"none"},"a, a:hover":{color:Ve}},[`${$e}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:mt})}}]};const ct=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionDurationMid:me,motionEaseInOut:Ve,motionEaseOut:vt,iconCls:pe,iconSize:ue,iconMarginInlineEnd:Ze}=Te;return{[`${$e}-item, ${$e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Fe}`,`background ${Fe}`,`padding ${Fe} ${Ve}`].join(","),[`${$e}-item-icon, ${pe}`]:{minWidth:ue,fontSize:ue,transition:[`font-size ${me} ${vt}`,`margin ${Fe} ${Ve}`,`color ${Fe}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${Fe} ${Ve}`,`margin ${Fe}`,`color ${Fe}`].join(",")}},[`${$e}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${$e}-item-only-child`]:{[`> ${pe}, > ${$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"}}}},Gt=Te=>{const{componentCls:$e,motionDurationSlow:Fe,motionEaseInOut:me,borderRadius:Ve,menuArrowSize:vt,menuArrowOffset:pe}=Te;return{[`${$e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Fe} ${me}, opacity ${Fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:vt*.6,height:vt*.15,backgroundColor:"currentcolor",borderRadius:Ve,transition:[`background ${Fe} ${me}`,`transform ${Fe} ${me}`,`top ${Fe} ${me}`,`color ${Fe} ${me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pe})`},"&::after":{transform:`rotate(-45deg) translateY(${pe})`}}}}},nt=Te=>{const{antCls:$e,componentCls:Fe,fontSize:me,motionDurationSlow:Ve,motionDurationMid:vt,motionEaseInOut:pe,paddingXS:ue,padding:Ze,colorSplit:Ne,lineWidth:Pe,zIndexPopup:Ge,borderRadiusLG:Lt,subMenuItemBorderRadius:mt,menuArrowSize:xt,menuArrowOffset:lt,lineType:yt,menuPanelMaskInset:ot,groupTitleLineHeight:Zt,groupTitleFontSize:Rt}=Te;return[{"":{[`${Fe}`]:Object.assign(Object.assign({},(0,Ee.dF)()),{"&-hidden":{display:"none"}})},[`${Fe}-submenu-hidden`]:{display:"none"}},{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(Te)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Fe}-item`]:{flex:"none"}},[`${Fe}-item, ${Fe}-submenu, ${Fe}-submenu-title`]:{borderRadius:Te.itemBorderRadius},[`${Fe}-item-group-title`]:{padding:`${ue}px ${Ze}px`,fontSize:Rt,lineHeight:Zt,transition:`all ${Ve}`},[`&-horizontal ${Fe}-submenu`]:{transition:[`border-color ${Ve} ${pe}`,`background ${Ve} ${pe}`].join(",")},[`${Fe}-submenu, ${Fe}-submenu-inline`]:{transition:[`border-color ${Ve} ${pe}`,`background ${Ve} ${pe}`,`padding ${vt} ${pe}`].join(",")},[`${Fe}-submenu ${Fe}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${pe}`,`padding ${Ve} ${pe}`].join(",")},[`${Fe}-title-content`]:{transition:`color ${Ve}`},[`${Fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ne,borderStyle:yt,borderWidth:0,borderTopWidth:Pe,marginBlock:Pe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ct(Te)),{[`${Fe}-item-group`]:{[`${Fe}-item-group-list`]:{margin:0,padding:0,[`${Fe}-item, ${Fe}-submenu-title`]:{paddingInline:`${me*2}px ${Ze}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:Lt,boxShadow:"none",transformOrigin:"0 0",[`&${Fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ot}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ot},"\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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${Fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Lt},ct(Te)),Gt(Te)),{[`${Fe}-item, ${Fe}-submenu > ${Fe}-submenu-title`]:{borderRadius:mt},[`${Fe}-submenu-title::after`]:{transition:`transform ${Ve} ${pe}`}})}}),Gt(Te)),{[`&-inline-collapsed ${Fe}-submenu-arrow,
&-inline ${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt})`},"&::after":{transform:`rotate(45deg) translateX(-${lt})`}},[`${Fe}-submenu-open${Fe}-submenu-inline > ${Fe}-submenu-title > ${Fe}-submenu-arrow`]:{transform:`translateY(-${xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${lt})`},"&::before":{transform:`rotate(45deg) translateX(${lt})`}}})},{[`${$e}-layout-header`]:{[Fe]:{lineHeight:"inherit"}}}]};var $t=(Te,$e)=>(0,_t.Z)("Menu",me=>{if($e===!1)return[];const{colorBgElevated:Ve,colorPrimary:vt,colorTextLightSolid:pe,controlHeightLG:ue,fontSize:Ze,darkItemColor:Ne,darkDangerItemColor:Pe,darkItemBg:Ge,darkSubMenuItemBg:Lt,darkItemSelectedColor:mt,darkItemSelectedBg:xt,darkDangerItemSelectedBg:lt,darkItemHoverBg:yt,darkGroupTitleColor:ot,darkItemHoverColor:Zt,darkItemDisabledColor:Rt,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:Yt}=me,yn=Ze/7*5,rn=(0,Ce.TS)(me,{menuArrowSize:yn,menuHorizontalHeight:ue*1.15,menuArrowOffset:`${yn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),En=(0,Ce.TS)(rn,{itemColor:Ne,itemHoverColor:Zt,groupTitleColor:ot,itemSelectedColor:mt,itemBg:Ge,popupBg:Ge,subMenuItemBg:Lt,itemActiveBg:"transparent",itemSelectedBg:xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:yt,itemDisabledColor:Rt,dangerItemColor:Pe,dangerItemHoverColor:Nt,dangerItemSelectedColor:Jt,dangerItemActiveBg:Yt,dangerItemSelectedBg:lt,menuSubMenuBg:Lt,horizontalItemSelectedColor:pe,horizontalItemSelectedBg:vt});return[nt(rn),tt(rn),_e(rn),Bt(rn,"light"),Bt(En,"dark"),st(rn),(0,he.Z)(rn),(0,ft.oN)(rn,"slide-up"),(0,ft.oN)(rn,"slide-down"),(0,it._y)(rn,"zoom-big")]},me=>{const{colorPrimary:Ve,colorError:vt,colorTextDisabled:pe,colorErrorBg:ue,colorText:Ze,colorTextDescription:Ne,colorBgContainer:Pe,colorFillAlter:Ge,colorFillContent:Lt,lineWidth:mt,lineWidthBold:xt,controlItemBgActive:lt,colorBgTextHover:yt,controlHeightLG:ot,lineHeight:Zt,colorBgElevated:Rt,marginXXS:Nt,padding:Jt,fontSize:Yt,controlHeightSM:yn,fontSizeLG:rn,colorTextLightSolid:En,colorErrorHover:Kn}=me,jn=new Se.C(En).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:me.zIndexPopupBase+50,radiusItem:me.borderRadiusLG,itemBorderRadius:me.borderRadiusLG,radiusSubMenuItem:me.borderRadiusSM,subMenuItemBorderRadius:me.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:Ne,groupTitleColor:Ne,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:Pe,itemBg:Pe,colorItemBgHover:yt,itemHoverBg:yt,colorItemBgActive:Lt,itemActiveBg:lt,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:lt,itemSelectedBg:lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:xt,activeBarHeight:xt,colorActiveBarBorderSize:mt,activeBarBorderWidth:mt,colorItemTextDisabled:pe,itemDisabledColor:pe,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:ue,dangerItemActiveBg:ue,colorDangerItemBgSelected:ue,dangerItemSelectedBg:ue,itemMarginInline:me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ot,groupTitleLineHeight:Zt,collapsedWidth:ot*2,popupBg:Rt,itemMarginBlock:Nt,itemPaddingInline:Jt,horizontalLineHeight:`${ot*1.15}px`,iconSize:Yt,iconMarginInlineEnd:yn-Yt,collapsedIconSize:rn,groupTitleFontSize:Yt,darkItemDisabledColor:new Se.C(En).setAlpha(.25).toRgbString(),darkItemColor:jn,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:En,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:jn,darkItemHoverColor:En,darkDangerItemHoverColor:Kn,darkDangerItemSelectedColor:En,darkDangerItemActiveBg:vt}},{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"]]})(Te),ye=function(Te,$e){var Fe={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&$e.indexOf(me)<0&&(Fe[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,me=Object.getOwnPropertySymbols(Te);Ve<me.length;Ve++)$e.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[Ve])&&(Fe[me[Ve]]=Te[me[Ve]]);return Fe},Ht=(0,ce.forwardRef)((Te,$e)=>{var Fe,me;const Ve=ce.useContext(ge.Z),vt=Ve||{},{getPrefixCls:pe,getPopupContainer:ue,direction:Ze,menu:Ne}=ce.useContext(Be.E_),Pe=pe(),{prefixCls:Ge,className:Lt,style:mt,theme:xt="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:yt,inlineCollapsed:ot,siderCollapsed:Zt,items:Rt,children:Nt,rootClassName:Jt,mode:Yt,selectable:yn,onClick:rn,overflowedIndicatorPopupClassName:En}=Te,Kn=ye(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jn=(0,Re.Z)(Kn,["collapsedWidth"]),ht=be(Rt)||Nt;(Fe=vt.validator)===null||Fe===void 0||Fe.call(vt,{mode:Yt});const ut=(0,ee.useEvent)(function(){var Zn;rn==null||rn.apply(void 0,arguments),(Zn=vt.onClick)===null||Zn===void 0||Zn.call(vt)}),dt=vt.mode||Yt,Ct=yn!=null?yn:vt.selectable,vn=ce.useMemo(()=>Zt!==void 0?Zt:ot,[ot,Zt]),kn={horizontal:{motionName:`${Pe}-slide-up`},inline:(0,te.Z)(Pe),other:{motionName:`${Pe}-zoom-big`}},tn=pe("menu",Ge||vt.prefixCls),[Bn,Ln]=$t(tn,!Ve),Gn=we()(`${tn}-${xt}`,Ne==null?void 0:Ne.className,Lt);let da;if(typeof lt=="function")da=lt;else if(lt===null||lt===!1)da=null;else if(vt.expandIcon===null||vt.expandIcon===!1)da=null;else{const Zn=lt!=null?lt:vt.expandIcon;da=(0,Ke.Tm)(Zn,{className:we()(`${tn}-submenu-expand-icon`,(0,Ke.l$)(Zn)?(me=Zn.props)===null||me===void 0?void 0:me.className:"")})}const pa=ce.useMemo(()=>({prefixCls:tn,inlineCollapsed:vn||!1,direction:Ze,firstLevel:!0,theme:xt,mode:dt,disableMenuItemTitleTooltip:yt}),[tn,vn,Ze,yt,xt]);return Bn(ce.createElement(ge.Z.Provider,{value:null},ce.createElement(y.Provider,{value:pa},ce.createElement(ie.ZP,Object.assign({getPopupContainer:ue,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:we()(tn,`${tn}-${xt}`,En),mode:dt,selectable:Ct,onClick:ut},jn,{inlineCollapsed:vn,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),mt),className:Gn,prefixCls:tn,direction:Ze,defaultMotions:kn,expandIcon:da,ref:$e,rootClassName:we()(Jt,Ln)}),ht))))});const un=(0,ce.forwardRef)((Te,$e)=>{const Fe=(0,ce.useRef)(null),me=ce.useContext(De.D);return(0,ce.useImperativeHandle)($e,()=>({menu:Fe.current,focus:Ve=>{var vt;(vt=Fe.current)===null||vt===void 0||vt.focus(Ve)}})),ce.createElement(Ht,Object.assign({ref:Fe},Te,me))});un.Item=x,un.SubMenu=E,un.Divider=Xe,un.ItemGroup=ie.BW;var Xt=un},58421:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return vt}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(ue,Ze){return ce.createElement(we.Z,(0,ie.Z)({},ue,{ref:Ze,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=ne(49198),He=ne(33853),Re=ne(38819),et=ne(92310),Ke=ne.n(et),oe=ne(20068),y=ne(33885),a=ne(67732),x=ne(83652),b=ne(42403),E=ne(158),z=ne(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},te=ee,ge=ne(91735),de=function(pe){(0,b.Z)(Ze,pe);var ue=(0,E.Z)(Ze);function Ze(){var Ne;(0,a.Z)(this,Ze);for(var Pe=arguments.length,Ge=new Array(Pe),Lt=0;Lt<Pe;Lt++)Ge[Lt]=arguments[Lt];return Ne=ue.call.apply(ue,[this].concat(Ge)),Ne.state={goInputText:""},Ne.getValidValue=function(){var mt=Ne.state.goInputText;return!mt||Number.isNaN(mt)?void 0:Number(mt)},Ne.buildOptionText=function(mt){return"".concat(mt," ").concat(Ne.props.locale.items_per_page)},Ne.changeSize=function(mt){Ne.props.changeSize(Number(mt))},Ne.handleChange=function(mt){Ne.setState({goInputText:mt.target.value})},Ne.handleBlur=function(mt){var xt=Ne.props,lt=xt.goButton,yt=xt.quickGo,ot=xt.rootPrefixCls,Zt=Ne.state.goInputText;lt||Zt===""||(Ne.setState({goInputText:""}),!(mt.relatedTarget&&(mt.relatedTarget.className.indexOf("".concat(ot,"-item-link"))>=0||mt.relatedTarget.className.indexOf("".concat(ot,"-item"))>=0))&&yt(Ne.getValidValue()))},Ne.go=function(mt){var xt=Ne.state.goInputText;xt!==""&&(mt.keyCode===te.ENTER||mt.type==="click")&&(Ne.setState({goInputText:""}),Ne.props.quickGo(Ne.getValidValue()))},Ne}return(0,x.Z)(Ze,[{key:"getPageSizeOptions",value:function(){var Pe=this.props,Ge=Pe.pageSize,Lt=Pe.pageSizeOptions;return Lt.some(function(mt){return mt.toString()===Ge.toString()})?Lt:Lt.concat([Ge.toString()]).sort(function(mt,xt){var lt=Number.isNaN(Number(mt))?0:Number(mt),yt=Number.isNaN(Number(xt))?0:Number(xt);return lt-yt})}},{key:"render",value:function(){var Pe=this,Ge=this.props,Lt=Ge.pageSize,mt=Ge.locale,xt=Ge.rootPrefixCls,lt=Ge.changeSize,yt=Ge.quickGo,ot=Ge.goButton,Zt=Ge.selectComponentClass,Rt=Ge.buildOptionText,Nt=Ge.selectPrefixCls,Jt=Ge.disabled,Yt=this.state.goInputText,yn="".concat(xt,"-options"),rn=Zt,En=null,Kn=null,jn=null;if(!lt&&!yt)return null;var ht=this.getPageSizeOptions();if(lt&&rn){var ut=ht.map(function(dt,Ct){return ce.createElement(rn.Option,{key:Ct,value:dt.toString()},(Rt||Pe.buildOptionText)(dt))});En=ce.createElement(rn,{disabled:Jt,prefixCls:Nt,showSearch:!1,className:"".concat(yn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Lt||ht[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ct){return Ct.parentNode},"aria-label":mt.page_size,defaultOpen:!1},ut)}return yt&&(ot&&(jn=typeof ot=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Jt,className:"".concat(yn,"-quick-jumper-button")},mt.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},ot)),Kn=ce.createElement("div",{className:"".concat(yn,"-quick-jumper")},mt.jump_to,ce.createElement("input",{disabled:Jt,type:"text",value:Yt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":mt.page}),mt.page,jn)),ce.createElement("li",{className:"".concat(yn)},En,Kn)}}]),Ze}(ce.Component);de.defaultProps={pageSizeOptions:["10","20","50","100"]};var se=de,be=function(ue){var Ze,Ne=ue.rootPrefixCls,Pe=ue.page,Ge=ue.active,Lt=ue.className,mt=ue.showTitle,xt=ue.onClick,lt=ue.onKeyPress,yt=ue.itemRender,ot="".concat(Ne,"-item"),Zt=Ke()(ot,"".concat(ot,"-").concat(Pe),(Ze={},(0,oe.Z)(Ze,"".concat(ot,"-active"),Ge),(0,oe.Z)(Ze,"".concat(ot,"-disabled"),!Pe),(0,oe.Z)(Ze,ue.className,Lt),Ze)),Rt=function(){xt(Pe)},Nt=function(yn){lt(yn,xt,Pe)},Jt=yt(Pe,"page",ce.createElement("a",{rel:"nofollow"},Pe));return Jt?ce.createElement("li",{title:mt?Pe.toString():null,className:Zt,onClick:Rt,onKeyPress:Nt,tabIndex:0},Jt):null},Se=be;function Ee(){}function he(pe){var ue=Number(pe);return typeof ue=="number"&&!Number.isNaN(ue)&&isFinite(ue)&&Math.floor(ue)===ue}var ft=function(ue,Ze,Ne){return Ne};function it(pe,ue,Ze){var Ne=typeof pe=="undefined"?ue.pageSize:pe;return Math.floor((Ze.total-1)/Ne)+1}var _t=function(pe){(0,b.Z)(Ze,pe);var ue=(0,E.Z)(Ze);function Ze(Ne){var Pe;(0,a.Z)(this,Ze),Pe=ue.call(this,Ne),Pe.paginationNode=ce.createRef(),Pe.getJumpPrevPage=function(){return Math.max(1,Pe.state.current-(Pe.props.showLessItems?3:5))},Pe.getJumpNextPage=function(){return Math.min(it(void 0,Pe.state,Pe.props),Pe.state.current+(Pe.props.showLessItems?3:5))},Pe.getItemIcon=function(lt,yt){var ot=Pe.props.prefixCls,Zt=lt||ce.createElement("button",{type:"button","aria-label":yt,className:"".concat(ot,"-item-link")});return typeof lt=="function"&&(Zt=ce.createElement(lt,(0,y.Z)({},Pe.props))),Zt},Pe.isValid=function(lt){var yt=Pe.props.total;return he(lt)&&lt!==Pe.state.current&&he(yt)&&yt>0},Pe.shouldDisplayQuickJumper=function(){var lt=Pe.props,yt=lt.showQuickJumper,ot=lt.total,Zt=Pe.state.pageSize;return ot<=Zt?!1:yt},Pe.handleKeyDown=function(lt){(lt.keyCode===te.ARROW_UP||lt.keyCode===te.ARROW_DOWN)&&lt.preventDefault()},Pe.handleKeyUp=function(lt){var yt=Pe.getValidValue(lt),ot=Pe.state.currentInputValue;yt!==ot&&Pe.setState({currentInputValue:yt}),lt.keyCode===te.ENTER?Pe.handleChange(yt):lt.keyCode===te.ARROW_UP?Pe.handleChange(yt-1):lt.keyCode===te.ARROW_DOWN&&Pe.handleChange(yt+1)},Pe.handleBlur=function(lt){var yt=Pe.getValidValue(lt);Pe.handleChange(yt)},Pe.changePageSize=function(lt){var yt=Pe.state.current,ot=it(lt,Pe.state,Pe.props);yt=yt>ot?ot:yt,ot===0&&(yt=Pe.state.current),typeof lt=="number"&&("pageSize"in Pe.props||Pe.setState({pageSize:lt}),"current"in Pe.props||Pe.setState({current:yt,currentInputValue:yt})),Pe.props.onShowSizeChange(yt,lt),"onChange"in Pe.props&&Pe.props.onChange&&Pe.props.onChange(yt,lt)},Pe.handleChange=function(lt){var yt=Pe.props,ot=yt.disabled,Zt=yt.onChange,Rt=Pe.state,Nt=Rt.pageSize,Jt=Rt.current,Yt=Rt.currentInputValue;if(Pe.isValid(lt)&&!ot){var yn=it(void 0,Pe.state,Pe.props),rn=lt;return lt>yn?rn=yn:lt<1&&(rn=1),"current"in Pe.props||Pe.setState({current:rn}),rn!==Yt&&Pe.setState({currentInputValue:rn}),Zt(rn,Nt),rn}return Jt},Pe.prev=function(){Pe.hasPrev()&&Pe.handleChange(Pe.state.current-1)},Pe.next=function(){Pe.hasNext()&&Pe.handleChange(Pe.state.current+1)},Pe.jumpPrev=function(){Pe.handleChange(Pe.getJumpPrevPage())},Pe.jumpNext=function(){Pe.handleChange(Pe.getJumpNextPage())},Pe.hasPrev=function(){return Pe.state.current>1},Pe.hasNext=function(){return Pe.state.current<it(void 0,Pe.state,Pe.props)},Pe.runIfEnter=function(lt,yt){if(lt.key==="Enter"||lt.charCode===13){for(var ot=arguments.length,Zt=new Array(ot>2?ot-2:0),Rt=2;Rt<ot;Rt++)Zt[Rt-2]=arguments[Rt];yt.apply(void 0,Zt)}},Pe.runIfEnterPrev=function(lt){Pe.runIfEnter(lt,Pe.prev)},Pe.runIfEnterNext=function(lt){Pe.runIfEnter(lt,Pe.next)},Pe.runIfEnterJumpPrev=function(lt){Pe.runIfEnter(lt,Pe.jumpPrev)},Pe.runIfEnterJumpNext=function(lt){Pe.runIfEnter(lt,Pe.jumpNext)},Pe.handleGoTO=function(lt){(lt.keyCode===te.ENTER||lt.type==="click")&&Pe.handleChange(Pe.state.currentInputValue)},Pe.renderPrev=function(lt){var yt=Pe.props,ot=yt.prevIcon,Zt=yt.itemRender,Rt=Zt(lt,"prev",Pe.getItemIcon(ot,"prev page")),Nt=!Pe.hasPrev();return(0,ce.isValidElement)(Rt)?(0,ce.cloneElement)(Rt,{disabled:Nt}):Rt},Pe.renderNext=function(lt){var yt=Pe.props,ot=yt.nextIcon,Zt=yt.itemRender,Rt=Zt(lt,"next",Pe.getItemIcon(ot,"next page")),Nt=!Pe.hasNext();return(0,ce.isValidElement)(Rt)?(0,ce.cloneElement)(Rt,{disabled:Nt}):Rt};var Ge=Ne.onChange!==Ee,Lt="current"in Ne;Lt&&!Ge&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var mt=Ne.defaultCurrent;"current"in Ne&&(mt=Ne.current);var xt=Ne.defaultPageSize;return"pageSize"in Ne&&(xt=Ne.pageSize),mt=Math.min(mt,it(xt,void 0,Ne)),Pe.state={current:mt,currentInputValue:mt,pageSize:xt},Pe}return(0,x.Z)(Ze,[{key:"componentDidUpdate",value:function(Pe,Ge){var Lt=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var mt=this.paginationNode.current.querySelector(".".concat(Lt,"-item-").concat(Ge.current));if(mt&&document.activeElement===mt){var xt;mt==null||(xt=mt.blur)===null||xt===void 0||xt.call(mt)}}}},{key:"getValidValue",value:function(Pe){var Ge=Pe.target.value,Lt=it(void 0,this.state,this.props),mt=this.state.currentInputValue,xt;return Ge===""?xt=Ge:Number.isNaN(Number(Ge))?xt=mt:Ge>=Lt?xt=Lt:xt=Number(Ge),xt}},{key:"getShowSizeChanger",value:function(){var Pe=this.props,Ge=Pe.showSizeChanger,Lt=Pe.total,mt=Pe.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:Lt>mt}},{key:"render",value:function(){var Pe=this.props,Ge=Pe.prefixCls,Lt=Pe.className,mt=Pe.style,xt=Pe.disabled,lt=Pe.hideOnSinglePage,yt=Pe.total,ot=Pe.locale,Zt=Pe.showQuickJumper,Rt=Pe.showLessItems,Nt=Pe.showTitle,Jt=Pe.showTotal,Yt=Pe.simple,yn=Pe.itemRender,rn=Pe.showPrevNextJumpers,En=Pe.jumpPrevIcon,Kn=Pe.jumpNextIcon,jn=Pe.selectComponentClass,ht=Pe.selectPrefixCls,ut=Pe.pageSizeOptions,dt=this.state,Ct=dt.current,vn=dt.pageSize,kn=dt.currentInputValue;if(lt===!0&&yt<=vn)return null;var tn=it(void 0,this.state,this.props),Bn=[],Ln=null,Gn=null,da=null,pa=null,Zn=null,ba=Zt&&Zt.goButton,xa=Rt?1:2,_a=Ct-1>0?Ct-1:0,ke=Ct+1<tn?Ct+1:tn,We=(0,z.Z)(this.props,{aria:!0,data:!0}),je=Jt&&ce.createElement("li",{className:"".concat(Ge,"-total-text")},Jt(yt,[yt===0?0:(Ct-1)*vn+1,Ct*vn>yt?yt:Ct*vn]));if(Yt){ba&&(typeof ba=="boolean"?Zn=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ot.jump_to_confirm):Zn=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ba),Zn=ce.createElement("li",{title:Nt?"".concat(ot.jump_to).concat(Ct,"/").concat(tn):null,className:"".concat(Ge,"-simple-pager")},Zn));var Mt=this.renderPrev(_a);return ce.createElement("ul",(0,ie.Z)({className:Ke()(Ge,"".concat(Ge,"-simple"),(0,oe.Z)({},"".concat(Ge,"-disabled"),xt),Lt),style:mt,ref:this.paginationNode},We),je,Mt?ce.createElement("li",{title:Nt?ot.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(Ge,"-prev"),(0,oe.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Mt):null,ce.createElement("li",{title:Nt?"".concat(Ct,"/").concat(tn):null,className:"".concat(Ge,"-simple-pager")},ce.createElement("input",{type:"text",value:kn,disabled:xt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(Ge,"-slash")},"/"),tn),ce.createElement("li",{title:Nt?ot.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(Ge,"-next"),(0,oe.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ke)),Zn)}if(tn<=3+xa*2){var mn={locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Nt,itemRender:yn};tn||Bn.push(ce.createElement(Se,(0,ie.Z)({},mn,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var nn=1;nn<=tn;nn+=1){var Xn=Ct===nn;Bn.push(ce.createElement(Se,(0,ie.Z)({},mn,{key:nn,page:nn,active:Xn})))}}else{var Tn=Rt?ot.prev_3:ot.prev_5,sn=Rt?ot.next_3:ot.next_5,_n=yn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(En,"prev page")),Ba=yn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Kn,"next page"));rn&&(Ln=_n?ce.createElement("li",{title:Nt?Tn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ke()("".concat(Ge,"-jump-prev"),(0,oe.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!En))},_n):null,Gn=Ba?ce.createElement("li",{title:Nt?sn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ke()("".concat(Ge,"-jump-next"),(0,oe.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Kn))},Ba):null),pa=ce.createElement(Se,{locale:ot,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tn,page:tn,active:!1,showTitle:Nt,itemRender:yn}),da=ce.createElement(Se,{locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Nt,itemRender:yn});var Ft=Math.max(1,Ct-xa),Dn=Math.min(Ct+xa,tn);Ct-1<=xa&&(Dn=1+xa*2),tn-Ct<=xa&&(Ft=tn-xa*2);for(var va=Ft;va<=Dn;va+=1){var ea=Ct===va;Bn.push(ce.createElement(Se,{locale:ot,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:va,page:va,active:ea,showTitle:Nt,itemRender:yn}))}Ct-1>=xa*2&&Ct!==3&&(Bn[0]=(0,ce.cloneElement)(Bn[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Bn.unshift(Ln)),tn-Ct>=xa*2&&Ct!==tn-2&&(Bn[Bn.length-1]=(0,ce.cloneElement)(Bn[Bn.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Bn.push(Gn)),Ft!==1&&Bn.unshift(da),Dn!==tn&&Bn.push(pa)}var ia=!this.hasPrev()||!tn,ta=!this.hasNext()||!tn,Aa=this.renderPrev(_a),Da=this.renderNext(ke);return ce.createElement("ul",(0,ie.Z)({className:Ke()(Ge,Lt,(0,oe.Z)({},"".concat(Ge,"-disabled"),xt)),style:mt,ref:this.paginationNode},We),je,Aa?ce.createElement("li",{title:Nt?ot.prev_page:null,onClick:this.prev,tabIndex:ia?null:0,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(Ge,"-prev"),(0,oe.Z)({},"".concat(Ge,"-disabled"),ia)),"aria-disabled":ia},Aa):null,Bn,Da?ce.createElement("li",{title:Nt?ot.next_page:null,onClick:this.next,tabIndex:ta?null:0,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(Ge,"-next"),(0,oe.Z)({},"".concat(Ge,"-disabled"),ta)),"aria-disabled":ta},Da):null,ce.createElement(se,{disabled:xt,locale:ot,rootPrefixCls:Ge,selectComponentClass:jn,selectPrefixCls:ht,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ct,pageSize:vn,pageSizeOptions:ut,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ba}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Ge){var Lt={};if("current"in Pe&&(Lt.current=Pe.current,Pe.current!==Ge.current&&(Lt.currentInputValue=Lt.current)),"pageSize"in Pe&&Pe.pageSize!==Ge.pageSize){var mt=Ge.current,xt=it(Pe.pageSize,Ge,Pe);mt=mt>xt?xt:mt,"current"in Pe||(Lt.current=mt,Lt.currentInputValue=mt),Lt.pageSize=Pe.pageSize}return Lt}}]),Ze}(ce.Component);_t.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:ge.Z,style:{},itemRender:ft,totalBoundaryShowSizeChanger:50};var Ce=_t,Ae=ne(22075),tt=ne(36355),at=ne(19716),st=ne(8628),St=ne(9763),wt=ne(57809);const Bt=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"small"})),Tt=pe=>ce.createElement(wt.default,Object.assign({},pe,{showSearch:!0,size:"middle"}));Bt.Option=wt.default.Option,Tt.Option=wt.default.Option;var Oe=ne(9937),_e=ne(17313),ct=ne(83116),Gt=ne(37613);const nt=pe=>{const{componentCls:ue}=pe;return{[`${ue}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed"}}},[`&${ue}-disabled`]:{cursor:"not-allowed",[`${ue}-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}}},[`${ue}-item-link`]:{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ue}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ue}-simple-pager`]:{color:pe.colorTextDisabled},[`${ue}-jump-prev, ${ue}-jump-next`]:{[`${ue}-item-link-icon`]:{opacity:0},[`${ue}-item-ellipsis`]:{opacity:1}}},[`&${ue}-simple`]:{[`${ue}-prev, ${ue}-next`]:{[`&${ue}-disabled ${ue}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},$t=pe=>{const{componentCls:ue}=pe;return{[`&${ue}-mini ${ue}-total-text, &${ue}-mini ${ue}-simple-pager`]:{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini ${ue}-item`]:{minWidth:pe.itemSizeSM,height:pe.itemSizeSM,margin:0,lineHeight:`${pe.itemSizeSM-2}px`},[`&${ue}-mini:not(${ue}-disabled) ${ue}-item:not(${ue}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:pe.colorBgTextHover},"&:active":{backgroundColor:pe.colorBgTextActive}},[`&${ue}-mini ${ue}-prev, &${ue}-mini ${ue}-next`]:{minWidth:pe.itemSizeSM,height:pe.itemSizeSM,margin:0,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini:not(${ue}-disabled)`]:{[`${ue}-prev, ${ue}-next`]:{[`&:hover ${ue}-item-link`]:{backgroundColor:pe.colorBgTextHover},[`&:active ${ue}-item-link`]:{backgroundColor:pe.colorBgTextActive},[`&${ue}-disabled:hover ${ue}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ue}-mini ${ue}-prev ${ue}-item-link,
&${ue}-mini ${ue}-next ${ue}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`}},[`&${ue}-mini ${ue}-jump-prev, &${ue}-mini ${ue}-jump-next`]:{height:pe.itemSizeSM,marginInlineEnd:0,lineHeight:`${pe.itemSizeSM}px`},[`&${ue}-mini ${ue}-options`]:{marginInlineStart:pe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:pe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Oe.x0)(pe)),{width:pe.paginationMiniQuickJumperInputWidth,height:pe.controlHeightSM})}}}},ye=pe=>{const{componentCls:ue}=pe;return{[`
&${ue}-simple ${ue}-prev,
&${ue}-simple ${ue}-next
`]:{height:pe.itemSizeSM,lineHeight:`${pe.itemSizeSM}px`,verticalAlign:"top",[`${ue}-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`}}},[`&${ue}-simple ${ue}-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"}}}}},Et=pe=>{const{componentCls:ue}=pe;return{[`${ue}-jump-prev, ${ue}-jump-next`]:{outline:0,[`${ue}-item-container`]:{position:"relative",[`${ue}-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"}},[`${ue}-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":{[`${ue}-item-link-icon`]:{opacity:1},[`${ue}-item-ellipsis`]:{opacity:0}}},[`
${ue}-prev,
${ue}-jump-prev,
${ue}-jump-next
`]:{marginInlineEnd:pe.marginXS},[`
${ue}-prev,
${ue}-next,
${ue}-jump-prev,
${ue}-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}`},[`${ue}-prev, ${ue}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:pe.colorText,cursor:"pointer",userSelect:"none"},[`${ue}-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 ${ue}-item-link`]:{backgroundColor:pe.colorBgTextHover},[`&:active ${ue}-item-link`]:{backgroundColor:pe.colorBgTextActive},[`&${ue}-disabled:hover`]:{[`${ue}-item-link`]:{backgroundColor:"transparent"}}},[`${ue}-slash`]:{marginInlineEnd:pe.paginationSlashMarginInlineEnd,marginInlineStart:pe.paginationSlashMarginInlineStart},[`${ue}-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,Oe.ik)(pe)),{width:pe.controlHeightLG*1.25,height:pe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:pe.marginXS,marginInlineEnd:pe.marginXS})}}}},Ht=pe=>{const{componentCls:ue}=pe;return{[`${ue}-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(${ue}-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}}}}},un=pe=>{const{componentCls:ue}=pe;return{[ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(pe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ue}-total-text`]:{display:"inline-block",height:pe.itemSize,marginInlineEnd:pe.marginXS,lineHeight:`${pe.itemSize-2}px`,verticalAlign:"middle"}}),Ht(pe)),Et(pe)),ye(pe)),$t(pe)),nt(pe)),{[`@media only screen and (max-width: ${pe.screenLG}px)`]:{[`${ue}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${pe.screenSM}px)`]:{[`${ue}-options`]:{display:"none"}}}),[`&${pe.componentCls}-rtl`]:{direction:"rtl"}}},Xt=pe=>{const{componentCls:ue}=pe;return{[`${ue}${ue}-disabled:not(${ue}-mini)`]:{"&, &:hover":{[`${ue}-item-link`]:{borderColor:pe.colorBorder}},"&:focus-visible":{[`${ue}-item-link`]:{borderColor:pe.colorBorder}},[`${ue}-item, ${ue}-item-link`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,[`&:hover:not(${ue}-item-active)`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,a:{color:pe.colorTextDisabled}},[`&${ue}-item-active`]:{backgroundColor:pe.itemActiveBgDisabled}},[`${ue}-prev, ${ue}-next`]:{"&:hover button":{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,color:pe.colorTextDisabled},[`${ue}-item-link`]:{backgroundColor:pe.colorBgContainerDisabled,borderColor:pe.colorBorder}}},[`${ue}:not(${ue}-mini)`]:{[`${ue}-prev, ${ue}-next`]:{"&:hover button":{borderColor:pe.colorPrimaryHover,backgroundColor:pe.itemBg},[`${ue}-item-link`]:{backgroundColor:pe.itemLinkBg,borderColor:pe.colorBorder},[`&:hover ${ue}-item-link`]:{borderColor:pe.colorPrimary,backgroundColor:pe.itemBg,color:pe.colorPrimary},[`&${ue}-disabled`]:{[`${ue}-item-link`]:{borderColor:pe.colorBorder,color:pe.colorTextDisabled}}},[`${ue}-item`]:{backgroundColor:pe.itemBg,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,[`&:hover:not(${ue}-item-active)`]:{borderColor:pe.colorPrimary,backgroundColor:pe.itemBg,a:{color:pe.colorPrimary}},"&-active":{borderColor:pe.colorPrimary}}}}},Te=pe=>{const{componentCls:ue}=pe;return{[`${ue}:not(${ue}-disabled)`]:{[`${ue}-item`]:Object.assign({},(0,_e.Qy)(pe)),[`${ue}-jump-prev, ${ue}-jump-next`]:{"&:focus-visible":Object.assign({[`${ue}-item-link-icon`]:{opacity:1},[`${ue}-item-ellipsis`]:{opacity:0}},(0,_e.oN)(pe))},[`${ue}-prev, ${ue}-next`]:{[`&:focus-visible ${ue}-item-link`]:Object.assign({},(0,_e.oN)(pe))}}}};var $e=(0,ct.Z)("Pagination",pe=>{const ue=(0,Gt.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,Oe.e5)(pe),(0,Oe.TM)(pe));return[un(ue),Te(ue),pe.wireframe&&Xt(ue)]},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})),Fe=function(pe,ue){var Ze={};for(var Ne in pe)Object.prototype.hasOwnProperty.call(pe,Ne)&&ue.indexOf(Ne)<0&&(Ze[Ne]=pe[Ne]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ne=Object.getOwnPropertySymbols(pe);Pe<Ne.length;Pe++)ue.indexOf(Ne[Pe])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ne[Pe])&&(Ze[Ne[Pe]]=pe[Ne[Pe]]);return Ze},Ve=pe=>{const{prefixCls:ue,selectPrefixCls:Ze,className:Ne,rootClassName:Pe,style:Ge,size:Lt,locale:mt,selectComponentClass:xt,responsive:lt,showSizeChanger:yt}=pe,ot=Fe(pe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Zt}=(0,st.Z)(lt),{getPrefixCls:Rt,direction:Nt,pagination:Jt={}}=ce.useContext(tt.E_),Yt=Rt("pagination",ue),[yn,rn]=$e(Yt),En=yt!=null?yt:Jt.showSizeChanger,Kn=ce.useMemo(()=>{const tn=ce.createElement("span",{className:`${Yt}-item-ellipsis`},"\u2022\u2022\u2022"),Bn=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ce.createElement(Re.Z,null):ce.createElement(He.Z,null)),Ln=ce.createElement("button",{className:`${Yt}-item-link`,type:"button",tabIndex:-1},Nt==="rtl"?ce.createElement(He.Z,null):ce.createElement(Re.Z,null)),Gn=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},Nt==="rtl"?ce.createElement(Xe.Z,{className:`${Yt}-item-link-icon`}):ce.createElement(Je,{className:`${Yt}-item-link-icon`}),tn)),da=ce.createElement("a",{className:`${Yt}-item-link`},ce.createElement("div",{className:`${Yt}-item-container`},Nt==="rtl"?ce.createElement(Je,{className:`${Yt}-item-link-icon`}):ce.createElement(Xe.Z,{className:`${Yt}-item-link-icon`}),tn));return{prevIcon:Bn,nextIcon:Ln,jumpPrevIcon:Gn,jumpNextIcon:da}},[Nt,Yt]),[jn]=(0,St.Z)("Pagination",Ae.Z),ht=Object.assign(Object.assign({},jn),mt),ut=(0,at.Z)(Lt),dt=ut==="small"||!!(Zt&&!ut&&lt),Ct=Rt("select",Ze),vn=Ke()({[`${Yt}-mini`]:dt,[`${Yt}-rtl`]:Nt==="rtl"},Jt==null?void 0:Jt.className,Ne,Pe,rn),kn=Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Ge);return yn(ce.createElement(Ce,Object.assign({},Kn,ot,{style:kn,prefixCls:Yt,selectPrefixCls:Ct,className:vn,selectComponentClass:xt||(dt?Bt:Tt),locale:ht,showSizeChanger:En})))},vt=Ve},15969:function(qe,gt,ne){"use strict";ne.d(gt,{N:function(){return ie}});const ie=ce=>({color:ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ce.motionDurationSlow}`,"&:focus, &:hover":{color:ce.colorLinkHover},"&:active":{color:ce.colorLinkActive}})},1710:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return El}});var ie={},ce="rc-table-internal-hook",De=ne(42978),Ue=ne(6089),we=ne(34280),Be=ne(13697),ae=ne(59301),Je=ne(4676);function Xe(re){var le=ae.createContext(void 0),fe=function(xe){var Le=xe.value,ze=xe.children,Me=ae.useRef(Le);Me.current=Le;var Ie=ae.useState(function(){return{getValue:function(){return Me.current},listeners:new Set}}),Ye=(0,De.Z)(Ie,1),rt=Ye[0];return(0,we.Z)(function(){(0,Je.unstable_batchedUpdates)(function(){rt.listeners.forEach(function(Qe){Qe(Le)})})},[Le]),ae.createElement(le.Provider,{value:rt},ze)};return{Context:le,Provider:fe,defaultValue:re}}function He(re,le){var fe=(0,Ue.Z)(typeof le=="function"?le:function(Qe){if(le===void 0)return Qe;if(!Array.isArray(le))return Qe[le];var bt={};return le.forEach(function(pt){bt[pt]=Qe[pt]}),bt}),ve=ae.useContext(re==null?void 0:re.Context),xe=ve||{},Le=xe.listeners,ze=xe.getValue,Me=ae.useRef();Me.current=fe(ve?ze():re==null?void 0:re.defaultValue);var Ie=ae.useState({}),Ye=(0,De.Z)(Ie,2),rt=Ye[1];return(0,we.Z)(function(){if(!ve)return;function Qe(bt){var pt=fe(bt);(0,Be.Z)(Me.current,pt,!0)||rt({})}return Le.add(Qe),function(){Le.delete(Qe)}},[ve]),Me.current}var Re=ne(54476),et=ne(8654);function Ke(){var re=ae.createContext(null);function le(){return ae.useContext(re)}function fe(xe,Le){var ze=(0,et.Yr)(xe),Me=function(Ye,rt){var Qe=ze?{ref:rt}:{},bt=ae.useRef(0),pt=ae.useRef(Ye),Pt=le();return Pt!==null?ae.createElement(xe,(0,Re.Z)({},Ye,Qe)):((!Le||Le(pt.current,Ye))&&(bt.current+=1),pt.current=Ye,ae.createElement(re.Provider,{value:bt.current},ae.createElement(xe,(0,Re.Z)({},Ye,Qe))))};return ze?ae.forwardRef(Me):Me}function ve(xe,Le){var ze=(0,et.Yr)(xe),Me=function(Ye,rt){var Qe=ze?{ref:rt}:{};return le(),ae.createElement(xe,(0,Re.Z)({},Ye,Qe))};return ze?ae.memo(ae.forwardRef(Me),Le):ae.memo(Me,Le)}return{makeImmutable:fe,responseImmutable:ve,useImmutableMark:le}}var oe=Ke(),y=oe.makeImmutable,a=oe.responseImmutable,x=oe.useImmutableMark,b=Ke(),E=b.makeImmutable,z=b.responseImmutable,ee=b.useImmutableMark,te=Xe(),ge=te;function de(re,le){var fe=ae.useRef(0);fe.current+=1;var ve=ae.useRef(re),xe=[];Object.keys(re||{}).map(function(ze){var Me;(re==null?void 0:re[ze])!==((Me=ve.current)===null||Me===void 0?void 0:Me[ze])&&xe.push(ze)}),ve.current=re;var Le=ae.useRef([]);return xe.length&&(Le.current=xe),ae.useDebugValue(fe.current),ae.useDebugValue(Le.current.join(", ")),le&&console.log("".concat(le,":"),fe.current,Le.current),fe.current}var se=null,be=ae.memo(function(){var re=de();return ae.createElement("h1",null,"Render Times: ",re)});be.displayName="RenderBlock";var Se=ne(76190),Ee=ne(33885),he=ne(20068),ft=ne(92310),it=ne.n(ft),_t=ne(80547),Ce=ne(97938),Ae=ne(48736),tt=ae.createContext({renderWithProps:!1}),at=tt,st="RC_TABLE_KEY";function St(re){return re==null?[]:Array.isArray(re)?re:[re]}function wt(re){var le=[],fe={};return re.forEach(function(ve){for(var xe=ve||{},Le=xe.key,ze=xe.dataIndex,Me=Le||St(ze).join("-")||st;fe[Me];)Me="".concat(Me,"_next");fe[Me]=!0,le.push(Me)}),le}function Bt(re){return re!=null}function Tt(re){return re&&(0,Se.Z)(re)==="object"&&!Array.isArray(re)&&!ae.isValidElement(re)}function Oe(re,le,fe,ve,xe,Le){var ze=ae.useContext(at),Me=ee(),Ie=(0,_t.Z)(function(){if(Bt(ve))return[ve];var Ye=le==null||le===""?[]:Array.isArray(le)?le:[le],rt=(0,Ce.Z)(re,Ye),Qe=rt,bt=void 0;if(xe){var pt=xe(rt,re,fe);Tt(pt)?(Qe=pt.children,bt=pt.props,ze.renderWithProps=!0):Qe=pt}return[Qe,bt]},[Me,re,ve,le,xe,fe],function(Ye,rt){if(Le){var Qe=(0,De.Z)(Ye,2),bt=Qe[1],pt=(0,De.Z)(rt,2),Pt=pt[1];return Le(Pt,bt)}return ze.renderWithProps?!0:!(0,Be.Z)(Ye,rt,!0)});return Ie}function _e(re,le,fe,ve){var xe=re+le-1;return re<=ve&&xe>=fe}function ct(re,le){return He(ge,function(fe){var ve=_e(re,le||1,fe.hoverStartRow,fe.hoverEndRow);return[ve,fe.onHover]})}var Gt=function(le){var fe=le.ellipsis,ve=le.rowType,xe=le.children,Le,ze=fe===!0?{showTitle:!0}:fe;return ze&&(ze.showTitle||ve==="header")&&(typeof xe=="string"||typeof xe=="number"?Le=xe.toString():ae.isValidElement(xe)&&typeof xe.props.children=="string"&&(Le=xe.props.children)),Le};function nt(re){var le,fe,ve,xe,Le,ze,Me,Ie,Ye=re.component,rt=re.children,Qe=re.ellipsis,bt=re.scope,pt=re.prefixCls,Pt=re.className,At=re.align,Ot=re.record,kt=re.render,It=re.dataIndex,jt=re.renderIndex,dn=re.shouldCellUpdate,cn=re.index,qt=re.rowType,Cn=re.colSpan,Nn=re.rowSpan,Wt=re.fixLeft,en=re.fixRight,Ut=re.firstFixLeft,Kt=re.lastFixLeft,Qt=re.firstFixRight,bn=re.lastFixRight,zn=re.appendNode,Fn=re.additionalProps,hn=Fn===void 0?{}:Fn,Mn=re.isSticky,Rn="".concat(pt,"-cell"),la=He(ge,["supportSticky","allColumnsFixedLeft"]),Vn=la.supportSticky,Pa=la.allColumnsFixedLeft,ya=Oe(Ot,It,jt,rt,kt,dn),$n=(0,De.Z)(ya,2),La=$n[0],Yn=$n[1],ca={},sa=typeof Wt=="number"&&Vn,Ja=typeof en=="number"&&Vn;sa&&(ca.position="sticky",ca.left=Wt),Ja&&(ca.position="sticky",ca.right=en);var Pn=(le=(fe=(ve=Yn==null?void 0:Yn.colSpan)!==null&&ve!==void 0?ve:hn.colSpan)!==null&&fe!==void 0?fe:Cn)!==null&&le!==void 0?le:1,pn=(xe=(Le=(ze=Yn==null?void 0:Yn.rowSpan)!==null&&ze!==void 0?ze:hn.rowSpan)!==null&&Le!==void 0?Le:Nn)!==null&&xe!==void 0?xe:1,Sn=ct(cn,pn),ln=(0,De.Z)(Sn,2),Jn=ln[0],gn=ln[1],wn=function(Ea){var Qa;Ot&&gn(cn,cn+pn-1),hn==null||(Qa=hn.onMouseEnter)===null||Qa===void 0||Qa.call(hn,Ea)},Wn=function(Ea){var Qa;Ot&&gn(-1,-1),hn==null||(Qa=hn.onMouseLeave)===null||Qa===void 0||Qa.call(hn,Ea)};if(Pn===0||pn===0)return null;var Hn=(Me=hn.title)!==null&&Me!==void 0?Me:Gt({rowType:qt,ellipsis:Qe,children:La}),Za=it()(Rn,Pt,(Ie={},(0,he.Z)(Ie,"".concat(Rn,"-fix-left"),sa&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-first"),Ut&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-last"),Kt&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-left-all"),Kt&&Pa&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-right"),Ja&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-right-first"),Qt&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-fix-right-last"),bn&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-ellipsis"),Qe),(0,he.Z)(Ie,"".concat(Rn,"-with-append"),zn),(0,he.Z)(Ie,"".concat(Rn,"-fix-sticky"),(sa||Ja)&&Mn&&Vn),(0,he.Z)(Ie,"".concat(Rn,"-row-hover"),!Yn&&Jn),Ie),hn.className,Yn==null?void 0:Yn.className),Ra={};At&&(Ra.textAlign=At);var ho=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},ca),hn.style),Ra),Yn==null?void 0:Yn.style),wa=La;return(0,Se.Z)(wa)==="object"&&!Array.isArray(wa)&&!ae.isValidElement(wa)&&(wa=null),Qe&&(Kt||Qt)&&(wa=ae.createElement("span",{className:"".concat(Rn,"-content")},wa)),ae.createElement(Ye,(0,Re.Z)({},Yn,hn,{className:Za,style:ho,title:Hn,scope:bt,onMouseEnter:wn,onMouseLeave:Wn,colSpan:Pn!==1?Pn:null,rowSpan:pn!==1?pn:null}),zn,wa)}var $t=ae.memo(nt);function ye(re,le,fe,ve,xe,Le){var ze=fe[re]||{},Me=fe[le]||{},Ie,Ye;ze.fixed==="left"?Ie=ve.left[xe==="rtl"?le:re]:Me.fixed==="right"&&(Ye=ve.right[xe==="rtl"?re:le]);var rt=!1,Qe=!1,bt=!1,pt=!1,Pt=fe[le+1],At=fe[re-1],Ot=!(Le!=null&&Le.children);if(xe==="rtl"){if(Ie!==void 0){var kt=At&&At.fixed==="left";pt=!kt&&Ot}else if(Ye!==void 0){var It=Pt&&Pt.fixed==="right";bt=!It&&Ot}}else if(Ie!==void 0){var jt=Pt&&Pt.fixed==="left";rt=!jt&&Ot}else if(Ye!==void 0){var dn=At&&At.fixed==="right";Qe=!dn&&Ot}return{fixLeft:Ie,fixRight:Ye,lastFixLeft:rt,firstFixRight:Qe,lastFixRight:bt,firstFixLeft:pt,isSticky:ve.isSticky}}var Et=ae.createContext({}),Ht=Et;function un(re){var le=re.className,fe=re.index,ve=re.children,xe=re.colSpan,Le=xe===void 0?1:xe,ze=re.rowSpan,Me=re.align,Ie=He(ge,["prefixCls","direction"]),Ye=Ie.prefixCls,rt=Ie.direction,Qe=ae.useContext(Ht),bt=Qe.scrollColumnIndex,pt=Qe.stickyOffsets,Pt=Qe.flattenColumns,At=Qe.columns,Ot=fe+Le-1,kt=Ot+1===bt?Le+1:Le,It=ye(fe,fe+kt-1,Pt,pt,rt,At==null?void 0:At[fe]);return ae.createElement($t,(0,Re.Z)({className:le,index:fe,component:"td",prefixCls:Ye,record:null,dataIndex:null,align:Me,colSpan:kt,rowSpan:ze,render:function(){return ve}},It))}var Xt=ne(75931),Te=["children"];function $e(re){var le=re.children,fe=(0,Xt.Z)(re,Te);return ae.createElement("tr",fe,le)}function Fe(re){var le=re.children;return le}Fe.Row=$e,Fe.Cell=un;var me=Fe;function Ve(re){var le=re.children,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.columns,Le=He(ge,"prefixCls"),ze=ve.length-1,Me=ve[ze],Ie=ae.useMemo(function(){return{stickyOffsets:fe,flattenColumns:ve,scrollColumnIndex:Me!=null&&Me.scrollbar?ze:null,columns:xe}},[Me,ve,ze,fe,xe]);return ae.createElement(Ht.Provider,{value:Ie},ae.createElement("tfoot",{className:"".concat(Le,"-summary")},le))}var vt=z(Ve),pe=me,ue=ne(70425),Ze=ne(29301),Ne=ne(29194),Pe=ne(3465),Ge=ne(75152),Lt=ne(26112);function mt(re,le,fe,ve,xe,Le,ze){re.push({record:le,indent:fe,index:ze});var Me=Le(le),Ie=xe==null?void 0:xe.has(Me);if(le&&Array.isArray(le[ve])&&Ie)for(var Ye=0;Ye<le[ve].length;Ye+=1)mt(re,le[ve][Ye],fe+1,ve,xe,Le,Ye)}function xt(re,le,fe,ve){var xe=ae.useMemo(function(){if(fe!=null&&fe.size){for(var Le=[],ze=0;ze<(re==null?void 0:re.length);ze+=1){var Me=re[ze];mt(Le,Me,0,le,fe,ve,ze)}return Le}return re==null?void 0:re.map(function(Ie,Ye){return{record:Ie,indent:0,index:Ye}})},[re,le,fe,ve]);return xe}function lt(re){var le=re.prefixCls,fe=re.children,ve=re.component,xe=re.cellComponent,Le=re.className,ze=re.expanded,Me=re.colSpan,Ie=re.isEmpty,Ye=He(ge,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),rt=Ye.scrollbarSize,Qe=Ye.fixHeader,bt=Ye.fixColumn,pt=Ye.componentWidth,Pt=Ye.horizonScroll,At=fe;return(Ie?Pt&&pt:bt)&&(At=ae.createElement("div",{style:{width:pt-(Qe?rt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(le,"-expanded-row-fixed")},At)),ae.createElement(ve,{className:Le,style:{display:ze?null:"none"}},ae.createElement($t,{component:xe,prefixCls:le,colSpan:Me},At))}var yt=lt;function ot(re,le,fe,ve){var xe=He(ge,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Le=xe.flattenColumns,ze=xe.expandableType,Me=xe.expandedKeys,Ie=xe.childrenColumnName,Ye=xe.onTriggerExpand,rt=xe.rowExpandable,Qe=xe.onRow,bt=xe.expandRowByClick,pt=xe.rowClassName,Pt=ze==="nest",At=ze==="row"&&(!rt||rt(re)),Ot=At||Pt,kt=Me&&Me.has(le),It=Ie&&re&&re[Ie],jt=(0,ue.useEvent)(Ye),dn=Qe==null?void 0:Qe(re,fe),cn=dn==null?void 0:dn.onClick,qt=function(en){bt&&Ot&&Ye(re,en);for(var Ut=arguments.length,Kt=new Array(Ut>1?Ut-1:0),Qt=1;Qt<Ut;Qt++)Kt[Qt-1]=arguments[Qt];cn==null||cn.apply(void 0,[en].concat(Kt))},Cn;typeof pt=="string"?Cn=pt:typeof pt=="function"&&(Cn=pt(re,fe,ve));var Nn=wt(Le);return(0,Ee.Z)((0,Ee.Z)({},xe),{},{columnsKey:Nn,nestExpandable:Pt,expanded:kt,hasNestChildren:It,record:re,onTriggerExpand:jt,rowSupportExpand:At,expandable:Ot,rowProps:(0,Ee.Z)((0,Ee.Z)({},dn),{},{className:it()(Cn,dn==null?void 0:dn.className),onClick:qt})})}function Zt(re,le,fe,ve,xe){var Le=re.record,ze=re.prefixCls,Me=re.columnsKey,Ie=re.fixedInfoList,Ye=re.expandIconColumnIndex,rt=re.nestExpandable,Qe=re.indentSize,bt=re.expandIcon,pt=re.expanded,Pt=re.hasNestChildren,At=re.onTriggerExpand,Ot=Me[fe],kt=Ie[fe],It;fe===(Ye||0)&&rt&&(It=ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{paddingLeft:"".concat(Qe*ve,"px")},className:"".concat(ze,"-row-indent indent-level-").concat(ve)}),bt({prefixCls:ze,expanded:pt,expandable:Pt,record:Le,onExpand:At})));var jt;return le.onCell&&(jt=le.onCell(Le,xe)),{key:Ot,fixedInfo:kt,appendCellNode:It,additionalCellProps:jt||{}}}function Rt(re){var le=re.className,fe=re.style,ve=re.record,xe=re.index,Le=re.renderIndex,ze=re.rowKey,Me=re.indent,Ie=Me===void 0?0:Me,Ye=re.rowComponent,rt=re.cellComponent,Qe=re.scopeCellComponent,bt=ot(ve,ze,xe,Ie),pt=bt.prefixCls,Pt=bt.flattenColumns,At=bt.expandedRowClassName,Ot=bt.expandedRowRender,kt=bt.rowProps,It=bt.expanded,jt=bt.rowSupportExpand,dn=ae.useState(!1),cn=(0,De.Z)(dn,2),qt=cn[0],Cn=cn[1];ae.useEffect(function(){It&&Cn(!0)},[It]);var Nn=ae.createElement(Ye,(0,Re.Z)({},kt,{"data-row-key":ze,className:it()(le,"".concat(pt,"-row"),"".concat(pt,"-row-level-").concat(Ie),kt==null?void 0:kt.className),style:(0,Ee.Z)((0,Ee.Z)({},fe),kt==null?void 0:kt.style)}),Pt.map(function(Kt,Qt){var bn=Kt.render,zn=Kt.dataIndex,Fn=Kt.className,hn=Zt(bt,Kt,Qt,Ie,xe),Mn=hn.key,Rn=hn.fixedInfo,la=hn.appendCellNode,Vn=hn.additionalCellProps;return ae.createElement($t,(0,Re.Z)({className:Fn,ellipsis:Kt.ellipsis,align:Kt.align,scope:Kt.rowScope,component:Kt.rowScope?Qe:rt,prefixCls:pt,key:Mn,record:ve,index:xe,renderIndex:Le,dataIndex:zn,render:bn,shouldCellUpdate:Kt.shouldCellUpdate},Rn,{appendNode:la,additionalProps:Vn}))})),Wt;if(jt&&(qt||It)){var en=Ot(ve,xe,Ie+1,It),Ut=At&&At(ve,xe,Ie);Wt=ae.createElement(yt,{expanded:It,className:it()("".concat(pt,"-expanded-row"),"".concat(pt,"-expanded-row-level-").concat(Ie+1),Ut),prefixCls:pt,component:Ye,cellComponent:rt,colSpan:Pt.length,isEmpty:!1},en)}return ae.createElement(ae.Fragment,null,Nn,Wt)}Rt.displayName="BodyRow";var Nt=z(Rt);function Jt(re){var le=re.columnKey,fe=re.onColumnResize,ve=ae.useRef();return ae.useEffect(function(){ve.current&&fe(le,ve.current.offsetWidth)},[]),ae.createElement(Ze.Z,{data:le},ae.createElement("td",{ref:ve,style:{padding:0,border:0,height:0}},ae.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Yt(re){var le=re.prefixCls,fe=re.columnsKey,ve=re.onColumnResize;return ae.createElement("tr",{"aria-hidden":"true",className:"".concat(le,"-measure-row"),style:{height:0,fontSize:0}},ae.createElement(Ze.Z.Collection,{onBatchResize:function(Le){Le.forEach(function(ze){var Me=ze.data,Ie=ze.size;ve(Me,Ie.offsetWidth)})}},fe.map(function(xe){return ae.createElement(Jt,{key:xe,columnKey:xe,onColumnResize:ve})})))}function yn(re){var le=re.data,fe=re.measureColumnWidth,ve=He(ge,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),xe=ve.prefixCls,Le=ve.getComponent,ze=ve.onColumnResize,Me=ve.flattenColumns,Ie=ve.getRowKey,Ye=ve.expandedKeys,rt=ve.childrenColumnName,Qe=ve.emptyNode,bt=xt(le,rt,Ye,Ie),pt=ae.useRef({renderWithProps:!1}),Pt=Le(["body","wrapper"],"tbody"),At=Le(["body","row"],"tr"),Ot=Le(["body","cell"],"td"),kt=Le(["body","cell"],"th"),It;le.length?It=bt.map(function(dn,cn){var qt=dn.record,Cn=dn.indent,Nn=dn.index,Wt=Ie(qt,cn);return ae.createElement(Nt,{key:Wt,rowKey:Wt,record:qt,index:cn,renderIndex:Nn,rowComponent:At,cellComponent:Ot,scopeCellComponent:kt,getRowKey:Ie,indent:Cn})}):It=ae.createElement(yt,{expanded:!0,className:"".concat(xe,"-placeholder"),prefixCls:xe,component:At,cellComponent:Ot,colSpan:Me.length,isEmpty:!0},Qe);var jt=wt(Me);return ae.createElement(at.Provider,{value:pt.current},ae.createElement(Pt,{className:"".concat(xe,"-tbody")},fe&&ae.createElement(Yt,{prefixCls:xe,columnsKey:jt,onColumnResize:ze}),It))}yn.displayName="Body";var rn=z(yn),En=["expandable"],Kn="RC_TABLE_INTERNAL_COL_DEFINE";function jn(re){var le=re.expandable,fe=(0,Xt.Z)(re,En),ve;return"expandable"in re?ve=(0,Ee.Z)((0,Ee.Z)({},fe),le):ve=fe,ve.showExpandColumn===!1&&(ve.expandIconColumnIndex=-1),ve}var ht=["columnType"];function ut(re){for(var le=re.colWidths,fe=re.columns,ve=re.columCount,xe=[],Le=ve||fe.length,ze=!1,Me=Le-1;Me>=0;Me-=1){var Ie=le[Me],Ye=fe&&fe[Me],rt=Ye&&Ye[Kn];if(Ie||rt||ze){var Qe=rt||{},bt=Qe.columnType,pt=(0,Xt.Z)(Qe,ht);xe.unshift(ae.createElement("col",(0,Re.Z)({key:Me,style:{width:Ie}},pt))),ze=!0}}return ae.createElement("colgroup",null,xe)}var dt=ut,Ct=ne(94480),vn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function kn(re,le){return(0,ae.useMemo)(function(){for(var fe=[],ve=0;ve<le;ve+=1){var xe=re[ve];if(xe!==void 0)fe[ve]=xe;else return null}return fe},[re.join("_"),le])}var tn=ae.forwardRef(function(re,le){var fe=re.className,ve=re.noData,xe=re.columns,Le=re.flattenColumns,ze=re.colWidths,Me=re.columCount,Ie=re.stickyOffsets,Ye=re.direction,rt=re.fixHeader,Qe=re.stickyTopOffset,bt=re.stickyBottomOffset,pt=re.stickyClassName,Pt=re.onScroll,At=re.maxContentScroll,Ot=re.children,kt=(0,Xt.Z)(re,vn),It=He(ge,["prefixCls","scrollbarSize","isSticky"]),jt=It.prefixCls,dn=It.scrollbarSize,cn=It.isSticky,qt=cn&&!rt?0:dn,Cn=ae.useRef(null),Nn=ae.useCallback(function(Fn){(0,et.mH)(le,Fn),(0,et.mH)(Cn,Fn)},[]);ae.useEffect(function(){var Fn;function hn(Mn){var Rn=Mn,la=Rn.currentTarget,Vn=Rn.deltaX;Vn&&(Pt({currentTarget:la,scrollLeft:la.scrollLeft+Vn}),Mn.preventDefault())}return(Fn=Cn.current)===null||Fn===void 0||Fn.addEventListener("wheel",hn),function(){var Mn;(Mn=Cn.current)===null||Mn===void 0||Mn.removeEventListener("wheel",hn)}},[]);var Wt=ae.useMemo(function(){return Le.every(function(Fn){return Fn.width})},[Le]),en=Le[Le.length-1],Ut={fixed:en?en.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(jt,"-cell-scrollbar")}}},Kt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(xe),[Ut]):xe},[qt,xe]),Qt=(0,ae.useMemo)(function(){return qt?[].concat((0,Ct.Z)(Le),[Ut]):Le},[qt,Le]),bn=(0,ae.useMemo)(function(){var Fn=Ie.right,hn=Ie.left;return(0,Ee.Z)((0,Ee.Z)({},Ie),{},{left:Ye==="rtl"?[].concat((0,Ct.Z)(hn.map(function(Mn){return Mn+qt})),[0]):hn,right:Ye==="rtl"?Fn:[].concat((0,Ct.Z)(Fn.map(function(Mn){return Mn+qt})),[0]),isSticky:cn})},[qt,Ie,cn]),zn=kn(ze,Me);return ae.createElement("div",{style:(0,Ee.Z)({overflow:"hidden"},cn?{top:Qe,bottom:bt}:{}),ref:Nn,className:it()(fe,(0,he.Z)({},pt,!!pt))},ae.createElement("table",{style:{tableLayout:"fixed",visibility:ve||zn?null:"hidden"}},(!ve||!At||Wt)&&ae.createElement(dt,{colWidths:zn?[].concat((0,Ct.Z)(zn),[qt]):[],columCount:Me+1,columns:Qt}),Ot((0,Ee.Z)((0,Ee.Z)({},kt),{},{stickyOffsets:bn,columns:Kt,flattenColumns:Qt}))))});tn.displayName="FixedHolder";var Bn=ae.memo(tn);function Ln(re){var le=re.cells,fe=re.stickyOffsets,ve=re.flattenColumns,xe=re.rowComponent,Le=re.cellComponent,ze=re.tdCellComponent,Me=re.onHeaderRow,Ie=re.index,Ye=He(ge,["prefixCls","direction"]),rt=Ye.prefixCls,Qe=Ye.direction,bt;Me&&(bt=Me(le.map(function(Pt){return Pt.column}),Ie));var pt=wt(le.map(function(Pt){return Pt.column}));return ae.createElement(xe,bt,le.map(function(Pt,At){var Ot=Pt.column,kt=ye(Pt.colStart,Pt.colEnd,ve,fe,Qe,Ot),It;return Ot&&Ot.onHeaderCell&&(It=Pt.column.onHeaderCell(Ot)),ae.createElement($t,(0,Re.Z)({},Pt,{scope:Ot.title?Pt.colSpan>1?"colgroup":"col":null,ellipsis:Ot.ellipsis,align:Ot.align,component:Ot.title?Le:ze,prefixCls:rt,key:pt[At]},kt,{additionalProps:It,rowType:"header"}))}))}Ln.displayName="HeaderRow";var Gn=Ln;function da(re){var le=[];function fe(ze,Me){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;le[Ie]=le[Ie]||[];var Ye=Me,rt=ze.filter(Boolean).map(function(Qe){var bt={key:Qe.key,className:Qe.className||"",children:Qe.title,column:Qe,colStart:Ye},pt=1,Pt=Qe.children;return Pt&&Pt.length>0&&(pt=fe(Pt,Ye,Ie+1).reduce(function(At,Ot){return At+Ot},0),bt.hasSubColumns=!0),"colSpan"in Qe&&(pt=Qe.colSpan),"rowSpan"in Qe&&(bt.rowSpan=Qe.rowSpan),bt.colSpan=pt,bt.colEnd=bt.colStart+pt-1,le[Ie].push(bt),Ye+=pt,pt});return rt}fe(re,0);for(var ve=le.length,xe=function(Me){le[Me].forEach(function(Ie){!("rowSpan"in Ie)&&!Ie.hasSubColumns&&(Ie.rowSpan=ve-Me)})},Le=0;Le<ve;Le+=1)xe(Le);return le}function pa(re){var le=re.stickyOffsets,fe=re.columns,ve=re.flattenColumns,xe=re.onHeaderRow,Le=He(ge,["prefixCls","getComponent"]),ze=Le.prefixCls,Me=Le.getComponent,Ie=ae.useMemo(function(){return da(fe)},[fe]),Ye=Me(["header","wrapper"],"thead"),rt=Me(["header","row"],"tr"),Qe=Me(["header","cell"],"th"),bt=Me(["header","cell"],"td");return ae.createElement(Ye,{className:"".concat(ze,"-thead")},Ie.map(function(pt,Pt){var At=ae.createElement(Gn,{key:Pt,flattenColumns:ve,cells:pt,stickyOffsets:le,rowComponent:rt,cellComponent:Qe,tdCellComponent:bt,onHeaderRow:xe,index:Pt});return At}))}var Zn=z(pa),ba=ne(11592);function xa(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof le=="number"?le:le.endsWith("%")?re*parseFloat(le)/100:null}function _a(re,le){return ae.useMemo(function(){if(le&&le>0){var fe=0,ve=0;re.forEach(function(Ye){var rt=xa(le,Ye.width);rt?fe+=rt:ve+=1});var xe=le-fe,Le=ve,ze=xe/ve,Me=0,Ie=re.map(function(Ye){var rt=(0,Ee.Z)({},Ye),Qe=xa(le,rt.width);if(Qe)rt.width=Qe;else{var bt=Math.floor(ze);rt.width=Le===1?xe:bt,xe-=bt,Le-=1}return Me+=rt.width,rt});return[Ie,Me]}return[re,le]},[re,le])}var ke=["children"],We=["fixed"];function je(re){return(0,ba.Z)(re).filter(function(le){return ae.isValidElement(le)}).map(function(le){var fe=le.key,ve=le.props,xe=ve.children,Le=(0,Xt.Z)(ve,ke),ze=(0,Ee.Z)({key:fe},Le);return xe&&(ze.children=je(xe)),ze})}function Mt(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return re.filter(function(fe){return fe&&(0,Se.Z)(fe)==="object"}).reduce(function(fe,ve,xe){var Le=ve.fixed,ze=Le===!0?"left":Le,Me="".concat(le,"-").concat(xe),Ie=ve.children;return Ie&&Ie.length>0?[].concat((0,Ct.Z)(fe),(0,Ct.Z)(Mt(Ie,Me).map(function(Ye){return(0,Ee.Z)({fixed:ze},Ye)}))):[].concat((0,Ct.Z)(fe),[(0,Ee.Z)((0,Ee.Z)({key:Me},ve),{},{fixed:ze})])},[])}function mn(re){for(var le=!0,fe=0;fe<re.length;fe+=1){var ve=re[fe];if(le&&ve.fixed!=="left")le=!1;else if(!le&&ve.fixed==="left"){warning(!1,"Index ".concat(fe-1," of `columns` missing `fixed='left'` prop."));break}}for(var xe=!0,Le=re.length-1;Le>=0;Le-=1){var ze=re[Le];if(xe&&ze.fixed!=="right")xe=!1;else if(!xe&&ze.fixed==="right"){warning(!1,"Index ".concat(Le+1," of `columns` missing `fixed='right'` prop."));break}}}function nn(re){return re.map(function(le){var fe=le.fixed,ve=(0,Xt.Z)(le,We),xe=fe;return fe==="left"?xe="right":fe==="right"&&(xe="left"),(0,Ee.Z)({fixed:xe},ve)})}function Xn(re,le){var fe=re.prefixCls,ve=re.columns,xe=re.children,Le=re.expandable,ze=re.expandedKeys,Me=re.columnTitle,Ie=re.getRowKey,Ye=re.onTriggerExpand,rt=re.expandIcon,Qe=re.rowExpandable,bt=re.expandIconColumnIndex,pt=re.direction,Pt=re.expandRowByClick,At=re.columnWidth,Ot=re.fixed,kt=re.scrollWidth,It=ae.useMemo(function(){return ve||je(xe)},[ve,xe]),jt=ae.useMemo(function(){if(Le){var en,Ut=It.slice();if(!Ut.includes(ie)){var Kt=bt||0;Kt>=0&&Ut.splice(Kt,0,ie)}var Qt=Ut.indexOf(ie);Ut=Ut.filter(function(hn,Mn){return hn!==ie||Mn===Qt});var bn=It[Qt],zn;(Ot==="left"||Ot)&&!bt?zn="left":(Ot==="right"||Ot)&&bt===It.length?zn="right":zn=bn?bn.fixed:null;var Fn=(en={},(0,he.Z)(en,Kn,{className:"".concat(fe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,he.Z)(en,"title",Me),(0,he.Z)(en,"fixed",zn),(0,he.Z)(en,"className","".concat(fe,"-row-expand-icon-cell")),(0,he.Z)(en,"width",At),(0,he.Z)(en,"render",function(Mn,Rn,la){var Vn=Ie(Rn,la),Pa=ze.has(Vn),ya=Qe?Qe(Rn):!0,$n=rt({prefixCls:fe,expanded:Pa,expandable:ya,record:Rn,onExpand:Ye});return Pt?ae.createElement("span",{onClick:function(Yn){return Yn.stopPropagation()}},$n):$n}),en);return Ut.map(function(hn){return hn===ie?Fn:hn})}return It.filter(function(hn){return hn!==ie})},[Le,It,Ie,ze,rt,pt]),dn=ae.useMemo(function(){var en=jt;return le&&(en=le(en)),en.length||(en=[{render:function(){return null}}]),en},[le,jt,pt]),cn=ae.useMemo(function(){return pt==="rtl"?nn(Mt(dn)):Mt(dn)},[dn,pt,kt]),qt=_a(cn,kt),Cn=(0,De.Z)(qt,2),Nn=Cn[0],Wt=Cn[1];return[dn,Nn,Wt]}var Tn=Xn;function sn(re){var le,fe=re.prefixCls,ve=re.record,xe=re.onExpand,Le=re.expanded,ze=re.expandable,Me="".concat(fe,"-row-expand-icon");if(!ze)return ae.createElement("span",{className:it()(Me,"".concat(fe,"-row-spaced"))});var Ie=function(rt){xe(ve,rt),rt.stopPropagation()};return ae.createElement("span",{className:it()(Me,(le={},(0,he.Z)(le,"".concat(fe,"-row-expanded"),Le),(0,he.Z)(le,"".concat(fe,"-row-collapsed"),!Le),le)),onClick:Ie})}function _n(re,le,fe){var ve=[];function xe(Le){(Le||[]).forEach(function(ze,Me){ve.push(le(ze,Me)),xe(ze[fe])})}return xe(re),ve}function Ba(re,le,fe){var ve=jn(re),xe=ve.expandIcon,Le=ve.expandedRowKeys,ze=ve.defaultExpandedRowKeys,Me=ve.defaultExpandAllRows,Ie=ve.expandedRowRender,Ye=ve.onExpand,rt=ve.onExpandedRowsChange,Qe=ve.childrenColumnName,bt=xe||sn,pt=Qe||"children",Pt=ae.useMemo(function(){return Ie?"row":re.expandable&&re.internalHooks===ce&&re.expandable.__PARENT_RENDER_ICON__||le.some(function(cn){return cn&&(0,Se.Z)(cn)==="object"&&cn[pt]})?"nest":!1},[!!Ie,le]),At=ae.useState(function(){return ze||(Me?_n(le,fe,pt):[])}),Ot=(0,De.Z)(At,2),kt=Ot[0],It=Ot[1],jt=ae.useMemo(function(){return new Set(Le||kt||[])},[Le,kt]),dn=ae.useCallback(function(cn){var qt=fe(cn,le.indexOf(cn)),Cn,Nn=jt.has(qt);Nn?(jt.delete(qt),Cn=(0,Ct.Z)(jt)):Cn=[].concat((0,Ct.Z)(jt),[qt]),It(Cn),Ye&&Ye(!Nn,cn),rt&&rt(Cn)},[fe,jt,le,Ye,rt]);return[ve,Pt,jt,bt,pt,dn]}function Ft(re,le,fe,ve){var xe=re.map(function(Le,ze){return ye(ze,ze,re,le,fe,ve==null?void 0:ve[ze])});return(0,_t.Z)(function(){return xe},[xe],function(Le,ze){return!(0,Be.Z)(Le,ze)})}function Dn(re){var le=(0,ae.useRef)(re),fe=(0,ae.useState)({}),ve=(0,De.Z)(fe,2),xe=ve[1],Le=(0,ae.useRef)(null),ze=(0,ae.useRef)([]);function Me(Ie){ze.current.push(Ie);var Ye=Promise.resolve();Le.current=Ye,Ye.then(function(){if(Le.current===Ye){var rt=ze.current,Qe=le.current;ze.current=[],rt.forEach(function(bt){le.current=bt(le.current)}),Le.current=null,Qe!==le.current&&xe({})}})}return(0,ae.useEffect)(function(){return function(){Le.current=null}},[]),[le.current,Me]}function va(re){var le=(0,ae.useRef)(re||null),fe=(0,ae.useRef)();function ve(){window.clearTimeout(fe.current)}function xe(ze){le.current=ze,ve(),fe.current=window.setTimeout(function(){le.current=null,fe.current=void 0},100)}function Le(){return le.current}return(0,ae.useEffect)(function(){return ve},[]),[xe,Le]}function ea(){var re=ae.useState(-1),le=(0,De.Z)(re,2),fe=le[0],ve=le[1],xe=ae.useState(-1),Le=(0,De.Z)(xe,2),ze=Le[0],Me=Le[1],Ie=ae.useCallback(function(Ye,rt){ve(Ye),Me(rt)},[]);return[fe,ze,Ie]}var ia=ne(47273),ta=(0,ia.Z)()?window:null;function Aa(re,le){var fe=(0,Se.Z)(re)==="object"?re:{},ve=fe.offsetHeader,xe=ve===void 0?0:ve,Le=fe.offsetSummary,ze=Le===void 0?0:Le,Me=fe.offsetScroll,Ie=Me===void 0?0:Me,Ye=fe.getContainer,rt=Ye===void 0?function(){return ta}:Ye,Qe=rt()||ta;return ae.useMemo(function(){var bt=!!re;return{isSticky:bt,stickyClassName:bt?"".concat(le,"-sticky-holder"):"",offsetHeader:xe,offsetSummary:ze,offsetScroll:Ie,container:Qe}},[Ie,xe,ze,le,Qe])}function Da(re,le,fe){var ve=(0,ae.useMemo)(function(){for(var xe=[],Le=[],ze=0,Me=0,Ie=0;Ie<le;Ie+=1)if(fe==="rtl"){Le[Ie]=Me,Me+=re[Ie]||0;var Ye=le-Ie-1;xe[Ye]=ze,ze+=re[Ye]||0}else{xe[Ie]=ze,ze+=re[Ie]||0;var rt=le-Ie-1;Le[rt]=Me,Me+=re[rt]||0}return{left:xe,right:Le}},[re,le,fe]);return ve}var Wa=Da;function ro(re){var le=re.className,fe=re.children;return ae.createElement("div",{className:le},fe)}var Ya=ro,Ca=ne(8224),bo=ne(55468),xo=function(le,fe){var ve,xe,Le=le.scrollBodyRef,ze=le.onScroll,Me=le.offsetScroll,Ie=le.container,Ye=He(ge,"prefixCls"),rt=((ve=Le.current)===null||ve===void 0?void 0:ve.scrollWidth)||0,Qe=((xe=Le.current)===null||xe===void 0?void 0:xe.clientWidth)||0,bt=rt&&Qe*(Qe/rt),pt=ae.useRef(),Pt=Dn({scrollLeft:0,isHiddenScrollBar:!1}),At=(0,De.Z)(Pt,2),Ot=At[0],kt=At[1],It=ae.useRef({delta:0,x:0}),jt=ae.useState(!1),dn=(0,De.Z)(jt,2),cn=dn[0],qt=dn[1],Cn=function(){qt(!1)},Nn=function(Qt){Qt.persist(),It.current.delta=Qt.pageX-Ot.scrollLeft,It.current.x=0,qt(!0),Qt.preventDefault()},Wt=function(Qt){var bn,zn=Qt||((bn=window)===null||bn===void 0?void 0:bn.event),Fn=zn.buttons;if(!cn||Fn===0){cn&&qt(!1);return}var hn=It.current.x+Qt.pageX-It.current.x-It.current.delta;hn<=0&&(hn=0),hn+bt>=Qe&&(hn=Qe-bt),ze({scrollLeft:hn/Qe*(rt+2)}),It.current.x=Qt.pageX},en=function(){if(Le.current){var Qt=(0,bo.os)(Le.current).top,bn=Qt+Le.current.offsetHeight,zn=Ie===window?document.documentElement.scrollTop+window.innerHeight:(0,bo.os)(Ie).top+Ie.clientHeight;bn-(0,Ge.Z)()<=zn||Qt>=zn-Me?kt(function(Fn){return(0,Ee.Z)((0,Ee.Z)({},Fn),{},{isHiddenScrollBar:!0})}):kt(function(Fn){return(0,Ee.Z)((0,Ee.Z)({},Fn),{},{isHiddenScrollBar:!1})})}},Ut=function(Qt){kt(function(bn){return(0,Ee.Z)((0,Ee.Z)({},bn),{},{scrollLeft:Qt/rt*Qe||0})})};return ae.useImperativeHandle(fe,function(){return{setScrollLeft:Ut}}),ae.useEffect(function(){var Kt=(0,Ca.Z)(document.body,"mouseup",Cn,!1),Qt=(0,Ca.Z)(document.body,"mousemove",Wt,!1);return en(),function(){Kt.remove(),Qt.remove()}},[bt,cn]),ae.useEffect(function(){var Kt=(0,Ca.Z)(Ie,"scroll",en,!1),Qt=(0,Ca.Z)(window,"resize",en,!1);return function(){Kt.remove(),Qt.remove()}},[Ie]),ae.useEffect(function(){Ot.isHiddenScrollBar||kt(function(Kt){var Qt=Le.current;return Qt?(0,Ee.Z)((0,Ee.Z)({},Kt),{},{scrollLeft:Qt.scrollLeft/Qt.scrollWidth*Qt.clientWidth}):Kt})},[Ot.isHiddenScrollBar]),rt<=Qe||!bt||Ot.isHiddenScrollBar?null:ae.createElement("div",{style:{height:(0,Ge.Z)(),width:Qe,bottom:Me},className:"".concat(Ye,"-sticky-scroll")},ae.createElement("div",{onMouseDown:Nn,ref:pt,className:it()("".concat(Ye,"-sticky-scroll-bar"),(0,he.Z)({},"".concat(Ye,"-sticky-scroll-bar-active"),cn)),style:{width:"".concat(bt,"px"),transform:"translate3d(".concat(Ot.scrollLeft,"px, 0, 0)")}}))},Mo=ae.forwardRef(xo);function oo(re){return null}var Dt=oo;function _o(re){return null}var Io=_o,Co="rc-table",zt=[],xn={};function On(){return"No Data"}function In(re){var le,fe=(0,Ee.Z)({rowKey:"key",prefixCls:Co,emptyText:On},re),ve=fe.prefixCls,xe=fe.className,Le=fe.rowClassName,ze=fe.style,Me=fe.data,Ie=fe.rowKey,Ye=fe.scroll,rt=fe.tableLayout,Qe=fe.direction,bt=fe.title,pt=fe.footer,Pt=fe.summary,At=fe.caption,Ot=fe.id,kt=fe.showHeader,It=fe.components,jt=fe.emptyText,dn=fe.onRow,cn=fe.onHeaderRow,qt=fe.internalHooks,Cn=fe.transformColumns,Nn=fe.internalRefs,Wt=fe.tailor,en=fe.sticky,Ut=Me||zt,Kt=!!Ut.length,Qt=qt===ce,bn=ae.useCallback(function(aa,ua){return(0,Ce.Z)(It,aa)||ua},[It]),zn=ae.useMemo(function(){return typeof Ie=="function"?Ie:function(aa){var ua=aa&&aa[Ie];return ua}},[Ie]),Fn=bn(["body"]),hn=ea(),Mn=(0,De.Z)(hn,3),Rn=Mn[0],la=Mn[1],Vn=Mn[2],Pa=Ba(fe,Ut,zn),ya=(0,De.Z)(Pa,6),$n=ya[0],La=ya[1],Yn=ya[2],ca=ya[3],sa=ya[4],Ja=ya[5],Pn=Ye==null?void 0:Ye.x,pn=ae.useState(0),Sn=(0,De.Z)(pn,2),ln=Sn[0],Jn=Sn[1],gn=Tn((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},fe),$n),{},{expandable:!!$n.expandedRowRender,columnTitle:$n.columnTitle,expandedKeys:Yn,getRowKey:zn,onTriggerExpand:Ja,expandIcon:ca,expandIconColumnIndex:$n.expandIconColumnIndex,direction:Qe,scrollWidth:Qt&&Wt&&typeof Pn=="number"?Pn:null}),Qt?Cn:null),wn=(0,De.Z)(gn,3),Wn=wn[0],Hn=wn[1],Za=wn[2],Ra=Za!=null?Za:Pn,ho=ae.useMemo(function(){return{columns:Wn,flattenColumns:Hn}},[Wn,Hn]),wa=ae.useRef(),lo=ae.useRef(),Ea=ae.useRef(),Qa=ae.useRef(),Do=ae.useRef(),qn=ae.useState(!1),na=(0,De.Z)(qn,2),fa=na[0],Na=na[1],$a=ae.useState(!1),An=(0,De.Z)($a,2),Va=An[0],Ha=An[1],ao=Dn(new Map),vo=(0,De.Z)(ao,2),So=vo[0],tr=vo[1],Eo=wt(Hn),so=Eo.map(function(aa){return So.get(aa)}),qa=ae.useMemo(function(){return so},[so.join("_")]),Xa=Wa(qa,Hn.length,Qe),Oa=Ye&&Bt(Ye.y),ha=Ye&&Bt(Ra)||!!$n.fixed,Po=ha&&Hn.some(function(aa){var ua=aa.fixed;return ua}),zo=ae.useRef(),No=Aa(en,ve),yo=No.isSticky,fr=No.offsetHeader,Ar=No.offsetSummary,Un=No.offsetScroll,ga=No.stickyClassName,Ga=No.container,Sa=ae.useMemo(function(){return Pt==null?void 0:Pt(Ut)},[Pt,Ut]),ja=(Oa||yo)&&ae.isValidElement(Sa)&&Sa.type===me&&Sa.props.fixed,eo,to,Bo;Oa&&(to={overflowY:"scroll",maxHeight:Ye.y}),ha&&(eo={overflowX:"auto"},Oa||(to={overflowY:"hidden"}),Bo={width:Ra===!0?"auto":Ra,minWidth:"100%"});var mi=ae.useCallback(function(aa,ua){(0,Ne.Z)(wa.current)&&tr(function(co){if(co.get(aa)!==ua){var $o=new Map(co);return $o.set(aa,ua),$o}return co})},[]),Bl=va(null),fi=(0,De.Z)(Bl,2),Fl=fi[0],hi=fi[1];function hr(aa,ua){ua&&(typeof ua=="function"?ua(aa):ua.scrollLeft!==aa&&(ua.scrollLeft=aa,ua.scrollLeft!==aa&&setTimeout(function(){ua.scrollLeft=aa},0)))}var jo=(0,Ue.Z)(function(aa){var ua=aa.currentTarget,co=aa.scrollLeft,$o=Qe==="rtl",Oo=typeof co=="number"?co:ua.scrollLeft,$i=ua||xn;if(!hi()||hi()===$i){var Hr;Fl($i),hr(Oo,lo.current),hr(Oo,Ea.current),hr(Oo,Do.current),hr(Oo,(Hr=zo.current)===null||Hr===void 0?void 0:Hr.setScrollLeft)}var jr=ua||lo.current;if(jr){var _r=jr.scrollWidth,Wr=jr.clientWidth;if(_r===Wr){Na(!1),Ha(!1);return}$o?(Na(-Oo<_r-Wr),Ha(-Oo>0)):(Na(Oo>0),Ha(Oo<_r-Wr))}}),Si=function(){ha&&Ea.current?jo({currentTarget:Ea.current}):(Na(!1),Ha(!1))},Nl=function(ua){var co=ua.width;co!==ln&&(Si(),Jn(wa.current?wa.current.offsetWidth:co))},pi=ae.useRef(!1);ae.useEffect(function(){pi.current&&Si()},[ha,Me,Wn.length]),ae.useEffect(function(){pi.current=!0},[]);var $l=ae.useState(0),vi=(0,De.Z)($l,2),Sr=vi[0],Pi=vi[1],Ol=ae.useState(!0),yi=(0,De.Z)(Ol,2),bi=yi[0],Il=yi[1];ae.useEffect(function(){(!Wt||!Qt)&&(Ea.current instanceof Element?Pi((0,Ge.o)(Ea.current).width):Pi((0,Ge.o)(Qa.current).width)),Il((0,Pe.G)("position","sticky"))},[]),ae.useEffect(function(){Qt&&Nn&&(Nn.body.current=Ea.current)});var Tl=ae.useCallback(function(aa){return ae.createElement(ae.Fragment,null,ae.createElement(Zn,aa),ja==="top"&&ae.createElement(vt,aa,Sa))},[ja,Sa]),Dl=ae.useCallback(function(aa){return ae.createElement(vt,aa,Sa)},[Sa]),xi=bn(["table"],"table"),pr=ae.useMemo(function(){return rt||(Po?Ra==="max-content"?"auto":"fixed":Oa||yo||Hn.some(function(aa){var ua=aa.ellipsis;return ua})?"fixed":"auto")},[Oa,Po,Hn,rt,yo]),kr,Gr={colWidths:qa,columCount:Hn.length,stickyOffsets:Xa,onHeaderRow:cn,fixHeader:Oa,scroll:Ye},Ci=ae.useMemo(function(){return Kt?null:typeof jt=="function"?jt():jt},[Kt,jt]),Li=ae.createElement(rn,{data:Ut,measureColumnWidth:Oa||ha||yo}),wi=ae.createElement(dt,{colWidths:Hn.map(function(aa){var ua=aa.width;return ua}),columns:Hn}),Ei=At!=null?ae.createElement("caption",{className:"".concat(ve,"-caption")},At):void 0,zl=(0,Lt.Z)(fe,{data:!0}),Bi=(0,Lt.Z)(fe,{aria:!0});if(Oa||yo){var Kr;typeof Fn=="function"?(Kr=Fn(Ut,{scrollbarSize:Sr,ref:Ea,onScroll:jo}),Gr.colWidths=Hn.map(function(aa,ua){var co=aa.width,$o=ua===Hn.length-1?co-Sr:co;return typeof $o=="number"&&!Number.isNaN($o)?$o:0})):Kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},eo),to),onScroll:jo,ref:Ea,className:it()("".concat(ve,"-body"))},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Bo),{},{tableLayout:pr})},Bi),Ei,wi,Li,!ja&&Sa&&ae.createElement(vt,{stickyOffsets:Xa,flattenColumns:Hn,columns:Wn},Sa)));var Fi=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({noData:!Ut.length,maxContentScroll:ha&&Ra==="max-content"},Gr),ho),{},{direction:Qe,stickyClassName:ga,onScroll:jo});kr=ae.createElement(ae.Fragment,null,kt!==!1&&ae.createElement(Bn,(0,Re.Z)({},Fi,{stickyTopOffset:fr,className:"".concat(ve,"-header"),ref:lo}),Tl),Kr,ja&&ja!=="top"&&ae.createElement(Bn,(0,Re.Z)({},Fi,{stickyBottomOffset:Ar,className:"".concat(ve,"-summary"),ref:Do}),Dl),yo&&ae.createElement(Mo,{ref:zo,offsetScroll:Un,scrollBodyRef:Ea,onScroll:jo,container:Ga}))}else kr=ae.createElement("div",{style:(0,Ee.Z)((0,Ee.Z)({},eo),to),className:it()("".concat(ve,"-content")),onScroll:jo,ref:Ea},ae.createElement(xi,(0,Re.Z)({style:(0,Ee.Z)((0,Ee.Z)({},Bo),{},{tableLayout:pr})},Bi),Ei,wi,kt!==!1&&ae.createElement(Zn,(0,Re.Z)({},Gr,ho)),Li,Sa&&ae.createElement(vt,{stickyOffsets:Xa,flattenColumns:Hn,columns:Wn},Sa)));var Zr=ae.createElement("div",(0,Re.Z)({className:it()(ve,xe,(le={},(0,he.Z)(le,"".concat(ve,"-rtl"),Qe==="rtl"),(0,he.Z)(le,"".concat(ve,"-ping-left"),fa),(0,he.Z)(le,"".concat(ve,"-ping-right"),Va),(0,he.Z)(le,"".concat(ve,"-layout-fixed"),rt==="fixed"),(0,he.Z)(le,"".concat(ve,"-fixed-header"),Oa),(0,he.Z)(le,"".concat(ve,"-fixed-column"),Po),(0,he.Z)(le,"".concat(ve,"-scroll-horizontal"),ha),(0,he.Z)(le,"".concat(ve,"-has-fix-left"),Hn[0]&&Hn[0].fixed),(0,he.Z)(le,"".concat(ve,"-has-fix-right"),Hn[Hn.length-1]&&Hn[Hn.length-1].fixed==="right"),le)),style:ze,id:Ot,ref:wa},zl),bt&&ae.createElement(Ya,{className:"".concat(ve,"-title")},bt(Ut)),ae.createElement("div",{ref:Qa,className:"".concat(ve,"-container")},kr),pt&&ae.createElement(Ya,{className:"".concat(ve,"-footer")},pt(Ut)));ha&&(Zr=ae.createElement(Ze.Z,{onResize:Nl},Zr));var Ni=Ft(Hn,Xa,Qe,Wn),Ml=ae.useMemo(function(){return{scrollX:Ra,prefixCls:ve,getComponent:bn,scrollbarSize:Sr,direction:Qe,fixedInfoList:Ni,isSticky:yo,supportSticky:bi,componentWidth:ln,fixHeader:Oa,fixColumn:Po,horizonScroll:ha,tableLayout:pr,rowClassName:Le,expandedRowClassName:$n.expandedRowClassName,expandIcon:ca,expandableType:La,expandRowByClick:$n.expandRowByClick,expandedRowRender:$n.expandedRowRender,onTriggerExpand:Ja,expandIconColumnIndex:$n.expandIconColumnIndex,indentSize:$n.indentSize,allColumnsFixedLeft:Hn.every(function(aa){return aa.fixed==="left"}),emptyNode:Ci,columns:Wn,flattenColumns:Hn,onColumnResize:mi,hoverStartRow:Rn,hoverEndRow:la,onHover:Vn,rowExpandable:$n.rowExpandable,onRow:dn,getRowKey:zn,expandedKeys:Yn,childrenColumnName:sa}},[Ra,ve,bn,Sr,Qe,Ni,yo,bi,ln,Oa,Po,ha,pr,Le,$n.expandedRowClassName,ca,La,$n.expandRowByClick,$n.expandedRowRender,Ja,$n.expandIconColumnIndex,$n.indentSize,Ci,Wn,Hn,mi,Rn,la,Vn,$n.rowExpandable,dn,zn,Yn,sa]);return ae.createElement(ge.Provider,{value:Ml},Zr)}function oa(re){return E(In,re)}var ra=oa();ra.EXPAND_COLUMN=ie,ra.INTERNAL_HOOKS=ce,ra.Column=Dt,ra.ColumnGroup=Io,ra.Summary=pe;var Ta=ra,Ka=ne(48911),no=Xe(null),To=Xe(null);function Wo(re,le,fe){var ve=le||1;return fe[re+ve]-(fe[re]||0)}function Uo(re){var le=re.rowInfo,fe=re.column,ve=re.colIndex,xe=re.indent,Le=re.index,ze=re.renderIndex,Me=re.record,Ie=re.style,Ye=re.className,rt=re.inverse,Qe=re.getHeight,bt=fe.render,pt=fe.dataIndex,Pt=fe.className,At=fe.width,Ot=He(To,["columnsOffset"]),kt=Ot.columnsOffset,It=Zt(le,fe,ve,xe,Le),jt=It.key,dn=It.fixedInfo,cn=It.appendCellNode,qt=It.additionalCellProps,Cn=qt.style,Nn=qt.colSpan,Wt=Nn===void 0?1:Nn,en=qt.rowSpan,Ut=en===void 0?1:en,Kt=ve-1,Qt=Wo(Kt,Wt,kt),bn=Wt>1?At-Qt:0,zn=(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},Cn),Ie),{},{flex:"0 0 ".concat(Qt,"px"),width:"".concat(Qt,"px"),marginRight:bn,pointerEvents:"auto"}),Fn=ae.useMemo(function(){return rt?Ut<=1:Wt===0||Ut===0||Ut>1},[Ut,Wt,rt]);Fn?zn.visibility="hidden":rt&&(zn.height=Qe==null?void 0:Qe(Ut));var hn=Fn?function(){return null}:bt,Mn={};return(Ut===0||Wt===0)&&(Mn.rowSpan=1,Mn.colSpan=1),ae.createElement($t,(0,Re.Z)({className:it()(Pt,Ye),ellipsis:fe.ellipsis,align:fe.align,scope:fe.rowScope,component:"div",prefixCls:le.prefixCls,key:jt,record:Me,index:Le,renderIndex:ze,dataIndex:pt,render:hn,shouldCellUpdate:fe.shouldCellUpdate},dn,{appendNode:cn,additionalProps:(0,Ee.Z)((0,Ee.Z)({},qt),{},{style:zn},Mn)}))}var vr=Uo,Pr=["data","index","className","rowKey","style","extra","getHeight"],nr=ae.forwardRef(function(re,le){var fe=re.data,ve=re.index,xe=re.className,Le=re.rowKey,ze=re.style,Me=re.extra,Ie=re.getHeight,Ye=(0,Xt.Z)(re,Pr),rt=fe.record,Qe=fe.indent,bt=fe.index,pt=He(ge,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Pt=pt.scrollX,At=pt.flattenColumns,Ot=pt.prefixCls,kt=pt.fixColumn,It=pt.componentWidth,jt=ot(rt,Le,ve,Qe),dn=jt.rowSupportExpand,cn=jt.expanded,qt=jt.rowProps,Cn=jt.expandedRowRender,Nn=jt.expandedRowClassName,Wt;if(dn&&cn){var en=Cn(rt,ve,Qe+1,cn),Ut=Nn==null?void 0:Nn(rt,ve,Qe),Kt={};kt&&(Kt={style:(0,he.Z)({},"--virtual-width","".concat(It,"px"))});var Qt="".concat(Ot,"-expanded-row-cell");Wt=ae.createElement("div",{className:it()("".concat(Ot,"-expanded-row"),"".concat(Ot,"-expanded-row-level-").concat(Qe+1),Ut)},ae.createElement($t,{component:"div",prefixCls:Ot,className:it()(Qt,(0,he.Z)({},"".concat(Qt,"-fixed"),kt)),additionalProps:Kt},en))}var bn=(0,Ee.Z)((0,Ee.Z)({},ze),{},{width:Pt});Me&&(bn.position="absolute",bn.pointerEvents="none");var zn=ae.createElement("div",(0,Re.Z)({},qt,Ye,{ref:dn?null:le,className:it()(xe,"".concat(Ot,"-row"),qt==null?void 0:qt.className,(0,he.Z)({},"".concat(Ot,"-row-extra"),Me)),style:(0,Ee.Z)((0,Ee.Z)({},bn),qt==null?void 0:qt.style)}),At.map(function(Fn,hn){return ae.createElement(vr,{key:hn,rowInfo:jt,column:Fn,colIndex:hn,indent:Qe,index:ve,renderIndex:bt,record:rt,inverse:Me,getHeight:Ie})}));return dn?ae.createElement("div",{ref:le},zn,Wt):zn}),ar=z(nr),Vo=ar,or=ae.forwardRef(function(re,le){var fe=re.data,ve=re.onScroll,xe=He(ge,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Le=xe.flattenColumns,ze=xe.onColumnResize,Me=xe.getRowKey,Ie=xe.expandedKeys,Ye=xe.prefixCls,rt=xe.childrenColumnName,Qe=xe.emptyNode,bt=xe.scrollX,pt=He(no),Pt=pt.scrollY,At=pt.listItemHeight,Ot=ae.useRef(),kt=xt(fe,rt,Ie,Me),It=ae.useMemo(function(){var Wt=0;return Le.map(function(en){var Ut=en.width,Kt=en.key;return Wt+=Ut,[Kt,Ut,Wt]})},[Le]),jt=ae.useMemo(function(){return It.map(function(Wt){return Wt[2]})},[It]);ae.useEffect(function(){It.forEach(function(Wt){var en=(0,De.Z)(Wt,2),Ut=en[0],Kt=en[1];ze(Ut,Kt)})},[It]),ae.useImperativeHandle(le,function(){var Wt={};return Object.defineProperty(Wt,"scrollLeft",{get:function(){var Ut;return((Ut=Ot.current)===null||Ut===void 0?void 0:Ut.getScrollInfo().x)||0},set:function(Ut){var Kt;(Kt=Ot.current)===null||Kt===void 0||Kt.scrollTo({left:Ut})}}),Wt});var dn=function(en,Ut){var Kt,Qt=(Kt=kt[Ut])===null||Kt===void 0?void 0:Kt.record,bn=en.onCell;if(bn){var zn,Fn=bn(Qt,Ut);return(zn=Fn==null?void 0:Fn.rowSpan)!==null&&zn!==void 0?zn:1}return 1},cn=function(en){var Ut=en.start,Kt=en.end,Qt=en.getSize,bn=en.offsetY;if(Kt<0)return null;for(var zn=Le.filter(function(Pn){return dn(Pn,Ut)===0}),Fn=Ut,hn=function(pn){if(zn=zn.filter(function(Sn){return dn(Sn,pn)===0}),!zn.length)return Fn=pn,"break"},Mn=Ut;Mn>=0;Mn-=1){var Rn=hn(Mn);if(Rn==="break")break}for(var la=Le.filter(function(Pn){return dn(Pn,Kt)!==1}),Vn=Kt,Pa=function(pn){if(la=la.filter(function(Sn){return dn(Sn,pn)!==1}),!la.length)return Vn=Math.max(pn-1,Kt),"break"},ya=Kt;ya<kt.length;ya+=1){var $n=Pa(ya);if($n==="break")break}for(var La=[],Yn=function(pn){var Sn=kt[pn];if(!Sn)return"continue";Le.some(function(ln){return dn(ln,pn)>1})&&La.push(pn)},ca=Fn;ca<=Vn;ca+=1)var sa=Yn(ca);var Ja=La.map(function(Pn){var pn=kt[Pn],Sn=Me(pn.record,Pn),ln=function(wn){var Wn=Pn+wn-1,Hn=Me(kt[Wn].record,Wn),Za=Qt(Sn,Hn);return Za.bottom-Za.top},Jn=Qt(Sn);return ae.createElement(Vo,{key:Pn,data:pn,rowKey:Sn,index:Pn,style:{top:-bn+Jn.top},extra:!0,getHeight:ln})});return Ja},qt=ae.useMemo(function(){return{columnsOffset:jt}},[jt]),Cn="".concat(Ye,"-tbody"),Nn;return kt.length?Nn=ae.createElement(Ka.Z,{fullHeight:!1,ref:Ot,className:it()(Cn,"".concat(Cn,"-virtual")),height:Pt,itemHeight:At||24,data:kt,itemKey:function(en){return Me(en.record)},scrollWidth:bt,onVirtualScroll:function(en){var Ut=en.x;ve({scrollLeft:Ut})},extraRender:cn},function(Wt,en,Ut){var Kt=Me(Wt.record,en);return ae.createElement(Vo,(0,Re.Z)({data:Wt,rowKey:Kt,index:en},Ut))}):Nn=ae.createElement("div",{className:it()("".concat(Ye,"-placeholder"))},ae.createElement($t,{component:"div",prefixCls:Ye},Qe)),ae.createElement(To.Provider,{value:qt},Nn)}),rr=z(or),Lo=rr,Ro=function(le,fe){var ve=fe.ref,xe=fe.onScroll;return ae.createElement(Lo,{ref:ve,data:le,onScroll:xe})},Ao=100;function ko(re){var le=re.columns,fe=re.scroll,ve=re.prefixCls,xe=ve===void 0?Co:ve,Le=re.className,ze=re.listItemHeight,Me=fe||{},Ie=Me.x,Ye=Me.y;typeof Ie!="number"&&(Ie=((le||[]).length+1)*Ao),typeof Ye!="number"&&(Ye=500);var rt=ae.useMemo(function(){return{scrollY:Ye,listItemHeight:ze}},[Ye,ze]);return ae.createElement(no.Provider,{value:rt},ae.createElement(Ta,(0,Re.Z)({},re,{className:it()(Le,"".concat(xe,"-virtual")),scroll:(0,Ee.Z)((0,Ee.Z)({},fe),{},{x:Ie}),components:{body:Ro},columns:le,internalHooks:ce,tailor:!0})))}function ir(re){return E(ko,re)}var yr=ir(),Ur=null;function lr(re){return null}var uo=lr;function br(re){return null}var po=br,xr=ne(2738),Cr=ne(68031),gr=ne(36355),Vr=ne(93891),Lr=ne(19716),Xr=ne(8628),Yr=ne(31724),wr=ne(58421),Er=ne(71418),fn=ne(88088);function Vt(re){return function(fe){let{prefixCls:ve,onExpand:xe,record:Le,expanded:ze,expandable:Me}=fe;const Ie=`${ve}-row-expand-icon`;return ae.createElement("button",{type:"button",onClick:Ye=>{xe(Le,Ye),Ye.stopPropagation()},className:it()(Ie,{[`${Ie}-spaced`]:!Me,[`${Ie}-expanded`]:Me&&ze,[`${Ie}-collapsed`]:Me&&!ze}),"aria-label":ze?re.collapse:re.expand,"aria-expanded":ze})}}var an=Vt;function on(re,le){return"key"in re&&re.key!==void 0&&re.key!==null?re.key:re.dataIndex?Array.isArray(re.dataIndex)?re.dataIndex.join("."):re.dataIndex:le}function Qn(re,le){return le?`${le}-${re}`:`${re}`}function ma(re,le){return typeof re=="function"?re(le):re}function ka(re,le){const fe=ma(re,le);return Object.prototype.toString.call(fe)==="[object Object]"?"":fe}var Ia={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"},za=Ia,Ma=ne(7657),mo=function(le,fe){return ae.createElement(Ma.Z,(0,Re.Z)({},le,{ref:fe,icon:za}))},Ua=ae.forwardRef(mo),Go=Ua,Ko=ne(56762);function Zo(re){const le=ae.useRef(re),fe=(0,Ko.Z)();return[()=>le.current,ve=>{le.current=ve,fe()}]}var dr=ne(3113),fo=ne(24905),Xo=ne(38854),Fa=ne(64165),Br=ne(20834),Fr=ne(40875),Yo=ne(5112),Nr=ne(17574),Jo=ne(47472),io=ne(92832);function sr(re){let{value:le,onChange:fe,filterSearch:ve,tablePrefixCls:xe,locale:Le}=re;return ve?ae.createElement("div",{className:`${xe}-filter-dropdown-search`},ae.createElement(io.default,{prefix:ae.createElement(Jo.Z,null),placeholder:Le.filterSearchPlaceholder,onChange:fe,value:le,htmlSize:1,className:`${xe}-filter-dropdown-search-input`})):null}var Qo=sr,qo=ne(10228);const Oi=re=>{const{keyCode:le}=re;le===qo.Z.ENTER&&re.stopPropagation()};var Ii=ae.forwardRef((re,le)=>ae.createElement("div",{className:re.className,onClick:fe=>fe.stopPropagation(),onKeyDown:Oi,ref:le},re.children));function Ho(re){let le=[];return(re||[]).forEach(fe=>{let{value:ve,children:xe}=fe;le.push(ve),xe&&(le=[].concat((0,Ct.Z)(le),(0,Ct.Z)(Ho(xe))))}),le}function Ti(re){return re.some(le=>{let{children:fe}=le;return fe})}function Jr(re,le){return typeof le=="string"||typeof le=="number"?le==null?void 0:le.toString().toLowerCase().includes(re.trim().toLowerCase()):!1}function Qr(re){let{filters:le,prefixCls:fe,filteredKeys:ve,filterMultiple:xe,searchValue:Le,filterSearch:ze}=re;return le.map((Me,Ie)=>{const Ye=String(Me.value);if(Me.children)return{key:Ye||Ie,label:Me.text,popupClassName:`${fe}-dropdown-submenu`,children:Qr({filters:Me.children,prefixCls:fe,filteredKeys:ve,filterMultiple:xe,searchValue:Le,filterSearch:ze})};const rt=xe?fo.default:Yo.ZP,Qe={key:Me.value!==void 0?Ye:Ie,label:ae.createElement(ae.Fragment,null,ae.createElement(rt,{checked:ve.includes(Ye)}),ae.createElement("span",null,Me.text))};return Le.trim()?typeof ze=="function"?ze(Le,Me)?Qe:null:Jr(Le,Me.text)?Qe:null:Qe})}function Di(re){var le,fe;const{tablePrefixCls:ve,prefixCls:xe,column:Le,dropdownPrefixCls:ze,columnKey:Me,filterMultiple:Ie,filterMode:Ye="menu",filterSearch:rt=!1,filterState:Qe,triggerFilter:bt,locale:pt,children:Pt,getPopupContainer:At}=re,{filterDropdownOpen:Ot,onFilterDropdownOpenChange:kt,filterResetToDefaultFilteredValue:It,defaultFilteredValue:jt,filterDropdownVisible:dn,onFilterDropdownVisibleChange:cn}=Le,[qt,Cn]=ae.useState(!1),Nn=!!(Qe&&(!((le=Qe.filteredKeys)===null||le===void 0)&&le.length||Qe.forceFiltered)),Wt=gn=>{Cn(gn),kt==null||kt(gn),cn==null||cn(gn)},en=(fe=Ot!=null?Ot:dn)!==null&&fe!==void 0?fe:qt,Ut=Qe==null?void 0:Qe.filteredKeys,[Kt,Qt]=Zo(Ut||[]),bn=gn=>{let{selectedKeys:wn}=gn;Qt(wn)},zn=(gn,wn)=>{let{node:Wn,checked:Hn}=wn;bn(Ie?{selectedKeys:gn}:{selectedKeys:Hn&&Wn.key?[Wn.key]:[]})};ae.useEffect(()=>{qt&&bn({selectedKeys:Ut||[]})},[Ut]);const[Fn,hn]=ae.useState([]),Mn=gn=>{hn(gn)},[Rn,la]=ae.useState(""),Vn=gn=>{const{value:wn}=gn.target;la(wn)};ae.useEffect(()=>{qt||la("")},[qt]);const Pa=gn=>{const wn=gn&&gn.length?gn:null;if(wn===null&&(!Qe||!Qe.filteredKeys)||(0,Be.Z)(wn,Qe==null?void 0:Qe.filteredKeys,!0))return null;bt({column:Le,key:Me,filteredKeys:wn})},ya=()=>{Wt(!1),Pa(Kt())},$n=function(){let{confirm:gn,closeDropdown:wn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};gn&&Pa([]),wn&&Wt(!1),la(""),Qt(It?(jt||[]).map(Wn=>String(Wn)):[])},La=function(){let{closeDropdown:gn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};gn&&Wt(!1),Pa(Kt())},Yn=gn=>{gn&&Ut!==void 0&&Qt(Ut||[]),Wt(gn),!gn&&!Le.filterDropdown&&ya()},ca=it()({[`${ze}-menu-without-submenu`]:!Ti(Le.filters||[])}),sa=gn=>{if(gn.target.checked){const wn=Ho(Le==null?void 0:Le.filters).map(Wn=>String(Wn));Qt(wn)}else Qt([])},Ja=gn=>{let{filters:wn}=gn;return(wn||[]).map((Wn,Hn)=>{const Za=String(Wn.value),Ra={title:Wn.text,key:Wn.value!==void 0?Za:Hn};return Wn.children&&(Ra.children=Ja({filters:Wn.children})),Ra})},Pn=gn=>{var wn;return Object.assign(Object.assign({},gn),{text:gn.title,value:gn.key,children:((wn=gn.children)===null||wn===void 0?void 0:wn.map(Wn=>Pn(Wn)))||[]})};let pn;if(typeof Le.filterDropdown=="function")pn=Le.filterDropdown({prefixCls:`${ze}-custom`,setSelectedKeys:gn=>bn({selectedKeys:gn}),selectedKeys:Kt(),confirm:La,clearFilters:$n,filters:Le.filters,visible:en,close:()=>{Wt(!1)}});else if(Le.filterDropdown)pn=Le.filterDropdown;else{const gn=Kt()||[],wn=()=>(Le.filters||[]).length===0?ae.createElement(Fa.Z,{image:Fa.Z.PRESENTED_IMAGE_SIMPLE,description:pt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Ye==="tree"?ae.createElement(ae.Fragment,null,ae.createElement(Qo,{filterSearch:rt,value:Rn,onChange:Vn,tablePrefixCls:ve,locale:pt}),ae.createElement("div",{className:`${ve}-filter-dropdown-tree`},Ie?ae.createElement(fo.default,{checked:gn.length===Ho(Le.filters).length,indeterminate:gn.length>0&&gn.length<Ho(Le.filters).length,className:`${ve}-filter-dropdown-checkall`,onChange:sa},pt.filterCheckall):null,ae.createElement(Nr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ie,checkStrictly:!Ie,className:`${ze}-menu`,onCheck:zn,checkedKeys:gn,selectedKeys:gn,showIcon:!1,treeData:Ja({filters:Le.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Rn.trim()?Hn=>typeof rt=="function"?rt(Rn,Pn(Hn)):Jr(Rn,Hn.title):void 0}))):ae.createElement(ae.Fragment,null,ae.createElement(Qo,{filterSearch:rt,value:Rn,onChange:Vn,tablePrefixCls:ve,locale:pt}),ae.createElement(Br.default,{selectable:!0,multiple:Ie,prefixCls:`${ze}-menu`,className:ca,onSelect:bn,onDeselect:bn,selectedKeys:gn,getPopupContainer:At,openKeys:Fn,onOpenChange:Mn,items:Qr({filters:Le.filters||[],filterSearch:rt,prefixCls:xe,filteredKeys:Kt(),filterMultiple:Ie,searchValue:Rn})})),Wn=()=>It?(0,Be.Z)((jt||[]).map(Hn=>String(Hn)),gn,!0):gn.length===0;pn=ae.createElement(ae.Fragment,null,wn(),ae.createElement("div",{className:`${xe}-dropdown-btns`},ae.createElement(dr.ZP,{type:"link",size:"small",disabled:Wn(),onClick:()=>$n()},pt.filterReset),ae.createElement(dr.ZP,{type:"primary",size:"small",onClick:ya},pt.filterConfirm)))}Le.filterDropdown&&(pn=ae.createElement(Fr.J,{selectable:void 0},pn));const Sn=()=>ae.createElement(Ii,{className:`${xe}-dropdown`},pn);let ln;typeof Le.filterIcon=="function"?ln=Le.filterIcon(Nn):Le.filterIcon?ln=Le.filterIcon:ln=ae.createElement(Go,null);const{direction:Jn}=ae.useContext(gr.E_);return ae.createElement("div",{className:`${xe}-column`},ae.createElement("span",{className:`${ve}-column-title`},Pt),ae.createElement(Xo.Z,{dropdownRender:Sn,trigger:["click"],open:en,onOpenChange:Yn,getPopupContainer:At,placement:Jn==="rtl"?"bottomLeft":"bottomRight"},ae.createElement("span",{role:"button",tabIndex:-1,className:it()(`${xe}-trigger`,{active:Nn}),onClick:gn=>{gn.stopPropagation()}},ln)))}var zi=Di;function $r(re,le,fe){let ve=[];return(re||[]).forEach((xe,Le)=>{var ze;const Me=Qn(Le,fe);if(xe.filters||"filterDropdown"in xe||"onFilter"in xe)if("filteredValue"in xe){let Ie=xe.filteredValue;"filterDropdown"in xe||(Ie=(ze=Ie==null?void 0:Ie.map(String))!==null&&ze!==void 0?ze:Ie),ve.push({column:xe,key:on(xe,Me),filteredKeys:Ie,forceFiltered:xe.filtered})}else ve.push({column:xe,key:on(xe,Me),filteredKeys:le&&xe.defaultFilteredValue?xe.defaultFilteredValue:void 0,forceFiltered:xe.filtered});"children"in xe&&(ve=[].concat((0,Ct.Z)(ve),(0,Ct.Z)($r(xe.children,le,Me))))}),ve}function qr(re,le,fe,ve,xe,Le,ze,Me){return fe.map((Ie,Ye)=>{const rt=Qn(Ye,Me),{filterMultiple:Qe=!0,filterMode:bt,filterSearch:pt}=Ie;let Pt=Ie;if(Pt.filters||Pt.filterDropdown){const At=on(Pt,rt),Ot=ve.find(kt=>{let{key:It}=kt;return At===It});Pt=Object.assign(Object.assign({},Pt),{title:kt=>ae.createElement(zi,{tablePrefixCls:re,prefixCls:`${re}-filter`,dropdownPrefixCls:le,column:Pt,columnKey:At,filterState:Ot,filterMultiple:Qe,filterMode:bt,filterSearch:pt,triggerFilter:Le,locale:xe,getPopupContainer:ze},ma(Ie.title,kt))})}return"children"in Pt&&(Pt=Object.assign(Object.assign({},Pt),{children:qr(re,le,Pt.children,ve,xe,Le,ze,rt)})),Pt})}function ei(re){const le={};return re.forEach(fe=>{let{key:ve,filteredKeys:xe,column:Le}=fe;const{filters:ze,filterDropdown:Me}=Le;if(Me)le[ve]=xe||null;else if(Array.isArray(xe)){const Ie=Ho(ze);le[ve]=Ie.filter(Ye=>xe.includes(String(Ye)))}else le[ve]=null}),le}function ti(re,le){return le.reduce((fe,ve)=>{const{column:{onFilter:xe,filters:Le},filteredKeys:ze}=ve;return xe&&ze&&ze.length?fe.filter(Me=>ze.some(Ie=>{const Ye=Ho(Le),rt=Ye.findIndex(bt=>String(bt)===String(Ie)),Qe=rt!==-1?Ye[rt]:Ie;return xe(Qe,Me)})):fe},re)}const ni=re=>re.flatMap(le=>"children"in le?[le].concat((0,Ct.Z)(ni(le.children||[]))):[le]);function Mi(re){let{prefixCls:le,dropdownPrefixCls:fe,mergedColumns:ve,onFilterChange:xe,getPopupContainer:Le,locale:ze}=re;const Me=ae.useMemo(()=>ni(ve||[]),[ve]),[Ie,Ye]=ae.useState(()=>$r(Me,!0)),rt=ae.useMemo(()=>{const Pt=$r(Me,!1);if(Pt.length===0)return Pt;let At=!0,Ot=!0;if(Pt.forEach(kt=>{let{filteredKeys:It}=kt;It!==void 0?At=!1:Ot=!1}),At){const kt=(Me||[]).map((It,jt)=>on(It,Qn(jt)));return Ie.filter(It=>{let{key:jt}=It;return kt.includes(jt)}).map(It=>{const jt=Me[kt.findIndex(dn=>dn===It.key)];return Object.assign(Object.assign({},It),{column:Object.assign(Object.assign({},It.column),jt),forceFiltered:jt.filtered})})}return Pt},[Me,Ie]),Qe=ae.useMemo(()=>ei(rt),[rt]),bt=Pt=>{const At=rt.filter(Ot=>{let{key:kt}=Ot;return kt!==Pt.key});At.push(Pt),Ye(At),xe(ei(At),At)};return[Pt=>qr(le,fe,Pt,rt,ze,bt,Le),rt,Qe]}var Ri=Mi;function Ai(re,le,fe){const ve=ae.useRef({});function xe(Le){if(!ve.current||ve.current.data!==re||ve.current.childrenColumnName!==le||ve.current.getRowKey!==fe){let Me=function(Ie){Ie.forEach((Ye,rt)=>{const Qe=fe(Ye,rt);ze.set(Qe,Ye),Ye&&typeof Ye=="object"&&le in Ye&&Me(Ye[le]||[])})};const ze=new Map;Me(re),ve.current={data:re,childrenColumnName:le,kvMap:ze,getRowKey:fe}}return ve.current.kvMap.get(Le)}return[xe]}var ki=ne(50371),Gi=function(re,le){var fe={};for(var ve in re)Object.prototype.hasOwnProperty.call(re,ve)&&le.indexOf(ve)<0&&(fe[ve]=re[ve]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ve=Object.getOwnPropertySymbols(re);xe<ve.length;xe++)le.indexOf(ve[xe])<0&&Object.prototype.propertyIsEnumerable.call(re,ve[xe])&&(fe[ve[xe]]=re[ve[xe]]);return fe};const ai=10;function Ki(re,le){const fe={current:re.current,pageSize:re.pageSize};return Object.keys(le&&typeof le=="object"?le:{}).forEach(xe=>{const Le=re[xe];typeof Le!="function"&&(fe[xe]=Le)}),fe}function Zi(re,le,fe){const ve=fe&&typeof fe=="object"?fe:{},{total:xe=0}=ve,Le=Gi(ve,["total"]),[ze,Me]=(0,ae.useState)(()=>({current:"defaultCurrent"in Le?Le.defaultCurrent:1,pageSize:"defaultPageSize"in Le?Le.defaultPageSize:ai})),Ie=(0,ki.Z)(ze,Le,{total:xe>0?xe:re}),Ye=Math.ceil((xe||re)/Ie.pageSize);Ie.current>Ye&&(Ie.current=Ye||1);const rt=(bt,pt)=>{Me({current:bt!=null?bt:1,pageSize:pt||Ie.pageSize})},Qe=(bt,pt)=>{var Pt;fe&&((Pt=fe.onChange)===null||Pt===void 0||Pt.call(fe,bt,pt)),rt(bt,pt),le(bt,pt||(Ie==null?void 0:Ie.pageSize))};return fe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ie),{onChange:Qe}),rt]}var Hi=Zi,ji=ne(84105),oi=ne(35654),Or=ne(90782),_i=ne(71430),Wi=ne(18929);const Fo={},Ir="SELECT_ALL",Tr="SELECT_INVERT",Dr="SELECT_NONE",ri=[],ii=(re,le)=>{let fe=[];return(le||[]).forEach(ve=>{fe.push(ve),ve&&typeof ve=="object"&&re in ve&&(fe=[].concat((0,Ct.Z)(fe),(0,Ct.Z)(ii(re,ve[re]))))}),fe};var Ui=(re,le)=>{const{preserveSelectedRowKeys:fe,selectedRowKeys:ve,defaultSelectedRowKeys:xe,getCheckboxProps:Le,onChange:ze,onSelect:Me,onSelectAll:Ie,onSelectInvert:Ye,onSelectNone:rt,onSelectMultiple:Qe,columnWidth:bt,type:pt,selections:Pt,fixed:At,renderCell:Ot,hideSelectAll:kt,checkStrictly:It=!0}=le||{},{prefixCls:jt,data:dn,pageData:cn,getRecordByKey:qt,getRowKey:Cn,expandType:Nn,childrenColumnName:Wt,locale:en,getPopupContainer:Ut}=re,[Kt,Qt]=(0,Wi.Z)(ve||xe||ri,{value:ve}),bn=ae.useRef(new Map),zn=(0,ae.useCallback)(Pn=>{if(fe){const pn=new Map;Pn.forEach(Sn=>{let ln=qt(Sn);!ln&&bn.current.has(Sn)&&(ln=bn.current.get(Sn)),pn.set(Sn,ln)}),bn.current=pn}},[qt,fe]);ae.useEffect(()=>{zn(Kt)},[Kt]);const{keyEntities:Fn}=(0,ae.useMemo)(()=>{if(It)return{keyEntities:null};let Pn=dn;if(fe){const pn=new Set(dn.map((ln,Jn)=>Cn(ln,Jn))),Sn=Array.from(bn.current).reduce((ln,Jn)=>{let[gn,wn]=Jn;return pn.has(gn)?ln:ln.concat(wn)},[]);Pn=[].concat((0,Ct.Z)(Pn),(0,Ct.Z)(Sn))}return(0,_i.I8)(Pn,{externalGetKey:Cn,childrenPropName:Wt})},[dn,Cn,It,Wt,fe]),hn=(0,ae.useMemo)(()=>ii(Wt,cn),[Wt,cn]),Mn=(0,ae.useMemo)(()=>{const Pn=new Map;return hn.forEach((pn,Sn)=>{const ln=Cn(pn,Sn),Jn=(Le?Le(pn):null)||{};Pn.set(ln,Jn)}),Pn},[hn,Cn,Le]),Rn=(0,ae.useCallback)(Pn=>{var pn;return!!(!((pn=Mn.get(Cn(Pn)))===null||pn===void 0)&&pn.disabled)},[Mn,Cn]),[la,Vn]=(0,ae.useMemo)(()=>{if(It)return[Kt||[],[]];const{checkedKeys:Pn,halfCheckedKeys:pn}=(0,Or.S)(Kt,!0,Fn,Rn);return[Pn||[],pn]},[Kt,It,Fn,Rn]),Pa=(0,ae.useMemo)(()=>{const Pn=pt==="radio"?la.slice(0,1):la;return new Set(Pn)},[la,pt]),ya=(0,ae.useMemo)(()=>pt==="radio"?new Set:new Set(Vn),[Vn,pt]),[$n,La]=(0,ae.useState)(null);ae.useEffect(()=>{le||Qt(ri)},[!!le]);const Yn=(0,ae.useCallback)((Pn,pn)=>{let Sn,ln;zn(Pn),fe?(Sn=Pn,ln=Pn.map(Jn=>bn.current.get(Jn))):(Sn=[],ln=[],Pn.forEach(Jn=>{const gn=qt(Jn);gn!==void 0&&(Sn.push(Jn),ln.push(gn))})),Qt(Sn),ze==null||ze(Sn,ln,{type:pn})},[Qt,qt,ze,fe]),ca=(0,ae.useCallback)((Pn,pn,Sn,ln)=>{if(Me){const Jn=Sn.map(gn=>qt(gn));Me(qt(Pn),pn,Jn,ln)}Yn(Sn,"single")},[Me,qt,Yn]),sa=(0,ae.useMemo)(()=>!Pt||kt?null:(Pt===!0?[Ir,Tr,Dr]:Pt).map(pn=>pn===Ir?{key:"all",text:en.selectionAll,onSelect(){Yn(dn.map((Sn,ln)=>Cn(Sn,ln)).filter(Sn=>{const ln=Mn.get(Sn);return!(ln!=null&&ln.disabled)||Pa.has(Sn)}),"all")}}:pn===Tr?{key:"invert",text:en.selectInvert,onSelect(){const Sn=new Set(Pa);cn.forEach((Jn,gn)=>{const wn=Cn(Jn,gn),Wn=Mn.get(wn);Wn!=null&&Wn.disabled||(Sn.has(wn)?Sn.delete(wn):Sn.add(wn))});const ln=Array.from(Sn);Ye&&Ye(ln),Yn(ln,"invert")}}:pn===Dr?{key:"none",text:en.selectNone,onSelect(){rt==null||rt(),Yn(Array.from(Pa).filter(Sn=>{const ln=Mn.get(Sn);return ln==null?void 0:ln.disabled}),"none")}}:pn).map(pn=>Object.assign(Object.assign({},pn),{onSelect:function(){for(var Sn,ln,Jn=arguments.length,gn=new Array(Jn),wn=0;wn<Jn;wn++)gn[wn]=arguments[wn];(ln=pn.onSelect)===null||ln===void 0||(Sn=ln).call.apply(Sn,[pn].concat(gn)),La(null)}})),[Pt,Pa,cn,Cn,Ye,Yn]);return[(0,ae.useCallback)(Pn=>{var pn;if(!le)return Pn.filter(qn=>qn!==Fo);let Sn=(0,Ct.Z)(Pn);const ln=new Set(Pa),Jn=hn.map(Cn).filter(qn=>!Mn.get(qn).disabled),gn=Jn.every(qn=>ln.has(qn)),wn=Jn.some(qn=>ln.has(qn)),Wn=()=>{const qn=[];gn?Jn.forEach(fa=>{ln.delete(fa),qn.push(fa)}):Jn.forEach(fa=>{ln.has(fa)||(ln.add(fa),qn.push(fa))});const na=Array.from(ln);Ie==null||Ie(!gn,na.map(fa=>qt(fa)),qn.map(fa=>qt(fa))),Yn(na,"all"),La(null)};let Hn;if(pt!=="radio"){let qn;if(sa){const An={getPopupContainer:Ut,items:sa.map((Va,Ha)=>{const{key:ao,text:vo,onSelect:So}=Va;return{key:ao!=null?ao:Ha,onClick:()=>{So==null||So(Jn)},label:vo}})};qn=ae.createElement("div",{className:`${jt}-selection-extra`},ae.createElement(Xo.Z,{menu:An,getPopupContainer:Ut},ae.createElement("span",null,ae.createElement(ji.Z,null))))}const na=hn.map((An,Va)=>{const Ha=Cn(An,Va),ao=Mn.get(Ha)||{};return Object.assign({checked:ln.has(Ha)},ao)}).filter(An=>{let{disabled:Va}=An;return Va}),fa=!!na.length&&na.length===hn.length,Na=fa&&na.every(An=>{let{checked:Va}=An;return Va}),$a=fa&&na.some(An=>{let{checked:Va}=An;return Va});Hn=!kt&&ae.createElement("div",{className:`${jt}-selection`},ae.createElement(fo.default,{checked:fa?Na:!!hn.length&&gn,indeterminate:fa?!Na&&$a:!gn&&wn,onChange:Wn,disabled:hn.length===0||fa,"aria-label":qn?"Custom selection":"Select all",skipGroup:!0}),qn)}let Za;pt==="radio"?Za=(qn,na,fa)=>{const Na=Cn(na,fa),$a=ln.has(Na);return{node:ae.createElement(Yo.ZP,Object.assign({},Mn.get(Na),{checked:$a,onClick:An=>An.stopPropagation(),onChange:An=>{ln.has(Na)||ca(Na,!0,[Na],An.nativeEvent)}})),checked:$a}}:Za=(qn,na,fa)=>{var Na;const $a=Cn(na,fa),An=ln.has($a),Va=ya.has($a),Ha=Mn.get($a);let ao;return Nn==="nest"?ao=Va:ao=(Na=Ha==null?void 0:Ha.indeterminate)!==null&&Na!==void 0?Na:Va,{node:ae.createElement(fo.default,Object.assign({},Ha,{indeterminate:ao,checked:An,skipGroup:!0,onClick:vo=>vo.stopPropagation(),onChange:vo=>{let{nativeEvent:So}=vo;const{shiftKey:tr}=So;let Eo=-1,so=-1;if(tr&&It){const qa=new Set([$n,$a]);Jn.some((Xa,Oa)=>{if(qa.has(Xa))if(Eo===-1)Eo=Oa;else return so=Oa,!0;return!1})}if(so!==-1&&Eo!==so&&It){const qa=Jn.slice(Eo,so+1),Xa=[];An?qa.forEach(ha=>{ln.has(ha)&&(Xa.push(ha),ln.delete(ha))}):qa.forEach(ha=>{ln.has(ha)||(Xa.push(ha),ln.add(ha))});const Oa=Array.from(ln);Qe==null||Qe(!An,Oa.map(ha=>qt(ha)),Xa.map(ha=>qt(ha))),Yn(Oa,"multiple")}else{const qa=la;if(It){const Xa=An?(0,oi._5)(qa,$a):(0,oi.L0)(qa,$a);ca($a,!An,Xa,So)}else{const Xa=(0,Or.S)([].concat((0,Ct.Z)(qa),[$a]),!0,Fn,Rn),{checkedKeys:Oa,halfCheckedKeys:ha}=Xa;let Po=Oa;if(An){const zo=new Set(Oa);zo.delete($a),Po=(0,Or.S)(Array.from(zo),{checked:!1,halfCheckedKeys:ha},Fn,Rn).checkedKeys}ca($a,!An,Po,So)}}La(An?null:$a)}})),checked:An}};const Ra=(qn,na,fa)=>{const{node:Na,checked:$a}=Za(qn,na,fa);return Ot?Ot($a,na,fa,Na):Na};if(!Sn.includes(Fo))if(Sn.findIndex(qn=>{var na;return((na=qn[Kn])===null||na===void 0?void 0:na.columnType)==="EXPAND_COLUMN"})===0){const[qn,...na]=Sn;Sn=[qn,Fo].concat((0,Ct.Z)(na))}else Sn=[Fo].concat((0,Ct.Z)(Sn));const ho=Sn.indexOf(Fo);Sn=Sn.filter((qn,na)=>qn!==Fo||na===ho);const wa=Sn[ho-1],lo=Sn[ho+1];let Ea=At;Ea===void 0&&((lo==null?void 0:lo.fixed)!==void 0?Ea=lo.fixed:(wa==null?void 0:wa.fixed)!==void 0&&(Ea=wa.fixed)),Ea&&wa&&((pn=wa[Kn])===null||pn===void 0?void 0:pn.columnType)==="EXPAND_COLUMN"&&wa.fixed===void 0&&(wa.fixed=Ea);const Qa=it()(`${jt}-selection-col`,{[`${jt}-selection-col-with-dropdown`]:Pt&&pt==="checkbox"}),Do={fixed:Ea,width:bt,className:`${jt}-selection-column`,title:le.columnTitle||Hn,render:Ra,onCell:le.onCell,[Kn]:{className:Qa}};return Sn.map(qn=>qn===Fo?Do:qn)},[Cn,hn,le,la,Pa,ya,bt,sa,Nn,$n,Mn,Qe,ca,Rn]),Pa]},Vi=ne(89489),Xi=ne(59477),Yi=ne(6848);const cr="ascend",zr="descend";function ur(re){return typeof re.sorter=="object"&&typeof re.sorter.multiple=="number"?re.sorter.multiple:!1}function li(re){return typeof re=="function"?re:re&&typeof re=="object"&&re.compare?re.compare:!1}function Ji(re,le){return le?re[re.indexOf(le)+1]:re[0]}function Mr(re,le,fe){let ve=[];function xe(Le,ze){ve.push({column:Le,key:on(Le,ze),multiplePriority:ur(Le),sortOrder:Le.sortOrder})}return(re||[]).forEach((Le,ze)=>{const Me=Qn(ze,fe);Le.children?("sortOrder"in Le&&xe(Le,Me),ve=[].concat((0,Ct.Z)(ve),(0,Ct.Z)(Mr(Le.children,le,Me)))):Le.sorter&&("sortOrder"in Le?xe(Le,Me):le&&Le.defaultSortOrder&&ve.push({column:Le,key:on(Le,Me),multiplePriority:ur(Le),sortOrder:Le.defaultSortOrder}))}),ve}function gi(re,le,fe,ve,xe,Le,ze,Me){return(le||[]).map((Ie,Ye)=>{const rt=Qn(Ye,Me);let Qe=Ie;if(Qe.sorter){const bt=Qe.sortDirections||xe,pt=Qe.showSorterTooltip===void 0?ze:Qe.showSorterTooltip,Pt=on(Qe,rt),At=fe.find(Nn=>{let{key:Wt}=Nn;return Wt===Pt}),Ot=At?At.sortOrder:null,kt=Ji(bt,Ot);let It;if(Ie.sortIcon)It=Ie.sortIcon({sortOrder:Ot});else{const Nn=bt.includes(cr)&&ae.createElement(Xi.Z,{className:it()(`${re}-column-sorter-up`,{active:Ot===cr})}),Wt=bt.includes(zr)&&ae.createElement(Vi.Z,{className:it()(`${re}-column-sorter-down`,{active:Ot===zr})});It=ae.createElement("span",{className:it()(`${re}-column-sorter`,{[`${re}-column-sorter-full`]:!!(Nn&&Wt)})},ae.createElement("span",{className:`${re}-column-sorter-inner`,"aria-hidden":"true"},Nn,Wt))}const{cancelSort:jt,triggerAsc:dn,triggerDesc:cn}=Le||{};let qt=jt;kt===zr?qt=cn:kt===cr&&(qt=dn);const Cn=typeof pt=="object"?pt:{title:qt};Qe=Object.assign(Object.assign({},Qe),{className:it()(Qe.className,{[`${re}-column-sort`]:Ot}),title:Nn=>{const Wt=ae.createElement("div",{className:`${re}-column-sorters`},ae.createElement("span",{className:`${re}-column-title`},ma(Ie.title,Nn)),It);return pt?ae.createElement(Yi.Z,Object.assign({},Cn),Wt):Wt},onHeaderCell:Nn=>{const Wt=Ie.onHeaderCell&&Ie.onHeaderCell(Nn)||{},en=Wt.onClick,Ut=Wt.onKeyDown;Wt.onClick=bn=>{ve({column:Ie,key:Pt,sortOrder:kt,multiplePriority:ur(Ie)}),en==null||en(bn)},Wt.onKeyDown=bn=>{bn.keyCode===qo.Z.ENTER&&(ve({column:Ie,key:Pt,sortOrder:kt,multiplePriority:ur(Ie)}),Ut==null||Ut(bn))};const Kt=ka(Ie.title,{}),Qt=Kt==null?void 0:Kt.toString();return Ot?Wt["aria-sort"]=Ot==="ascend"?"ascending":"descending":Wt["aria-label"]=Qt||"",Wt.className=it()(Wt.className,`${re}-column-has-sorters`),Wt.tabIndex=0,Ie.ellipsis&&(Wt.title=(Kt!=null?Kt:"").toString()),Wt}})}return"children"in Qe&&(Qe=Object.assign(Object.assign({},Qe),{children:gi(re,Qe.children,fe,ve,xe,Le,ze,rt)})),Qe})}function di(re){const{column:le,sortOrder:fe}=re;return{column:le,order:fe,field:le.dataIndex,columnKey:le.key}}function si(re){const le=re.filter(fe=>{let{sortOrder:ve}=fe;return ve}).map(di);return le.length===0&&re.length?Object.assign(Object.assign({},di(re[re.length-1])),{column:void 0}):le.length<=1?le[0]||{}:le}function Rr(re,le,fe){const ve=le.slice().sort((ze,Me)=>Me.multiplePriority-ze.multiplePriority),xe=re.slice(),Le=ve.filter(ze=>{let{column:{sorter:Me},sortOrder:Ie}=ze;return li(Me)&&Ie});return Le.length?xe.sort((ze,Me)=>{for(let Ie=0;Ie<Le.length;Ie+=1){const Ye=Le[Ie],{column:{sorter:rt},sortOrder:Qe}=Ye,bt=li(rt);if(bt&&Qe){const pt=bt(ze,Me,Qe);if(pt!==0)return Qe===cr?pt:-pt}}return 0}).map(ze=>{const Me=ze[fe];return Me?Object.assign(Object.assign({},ze),{[fe]:Rr(Me,le,fe)}):ze}):xe}function Qi(re){let{prefixCls:le,mergedColumns:fe,onSorterChange:ve,sortDirections:xe,tableLocale:Le,showSorterTooltip:ze}=re;const[Me,Ie]=ae.useState(Mr(fe,!0)),Ye=ae.useMemo(()=>{let Pt=!0;const At=Mr(fe,!1);if(!At.length)return Me;const Ot=[];function kt(jt){Pt?Ot.push(jt):Ot.push(Object.assign(Object.assign({},jt),{sortOrder:null}))}let It=null;return At.forEach(jt=>{It===null?(kt(jt),jt.sortOrder&&(jt.multiplePriority===!1?Pt=!1:It=!0)):(It&&jt.multiplePriority!==!1||(Pt=!1),kt(jt))}),Ot},[fe,Me]),rt=ae.useMemo(()=>{const Pt=Ye.map(At=>{let{column:Ot,sortOrder:kt}=At;return{column:Ot,order:kt}});return{sortColumns:Pt,sortColumn:Pt[0]&&Pt[0].column,sortOrder:Pt[0]&&Pt[0].order}},[Ye]);function Qe(Pt){let At;Pt.multiplePriority===!1||!Ye.length||Ye[0].multiplePriority===!1?At=[Pt]:At=[].concat((0,Ct.Z)(Ye.filter(Ot=>{let{key:kt}=Ot;return kt!==Pt.key})),[Pt]),Ie(At),ve(si(At),At)}return[Pt=>gi(le,Pt,Ye,Qe,xe,Le,ze),Ye,rt,()=>si(Ye)]}function ci(re,le){return re.map(fe=>{const ve=Object.assign({},fe);return ve.title=ma(fe.title,le),"children"in ve&&(ve.children=ci(ve.children,le)),ve})}function qi(re){return[ae.useCallback(fe=>ci(fe,re),[re])]}var el=oa((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),tl=ir((re,le)=>{const{_renderTimes:fe}=re,{_renderTimes:ve}=le;return fe!==ve}),er=ne(64993),mr=ne(17313),nl=ne(83116),al=ne(37613),ol=re=>{const{componentCls:le}=re,fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,ve=(xe,Le,ze)=>({[`&${le}-${xe}`]:{[`> ${le}-container`]:{[`> ${le}-content, > ${le}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${le}-expanded-row-fixed`]:{margin:`-${Le}px -${ze+re.lineWidth}px`}}}}}});return{[`${le}-wrapper`]:{[`${le}${le}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${le}-title`]:{border:fe,borderBottom:0},[`> ${le}-container`]:{borderInlineStart:fe,borderTop:fe,[`
> ${le}-content,
> ${le}-header,
> ${le}-body,
> ${le}-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:fe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:fe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${le}-cell-fix-right-first::after`]:{borderInlineEnd:fe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${le}-expanded-row-fixed`]:{margin:`-${re.tablePaddingVertical}px -${re.tablePaddingHorizontal+re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:re.lineWidth,bottom:0,borderInlineEnd:fe,content:'""'}}}}}},[`&${le}-scroll-horizontal`]:{[`> ${le}-container > ${le}-body`]:{"> table > tbody":{[`
> tr${le}-expanded-row,
> tr${le}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ve("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle)),ve("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall)),{[`> ${le}-footer`]:{border:fe,borderTop:0}}),[`${le}-cell`]:{[`${le}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${re.lineWidth}px 0 ${re.lineWidth}px ${re.tableHeaderBg}`}},[`${le}-bordered ${le}-cell-scrollbar`]:{borderInlineEnd:fe}}}},rl=re=>{const{componentCls:le}=re;return{[`${le}-wrapper`]:{[`${le}-cell-ellipsis`]:Object.assign(Object.assign({},mr.vS),{wordBreak:"keep-all",[`
&${le}-cell-fix-left-last,
&${le}-cell-fix-right-first
`]:{overflow:"visible",[`${le}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${le}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},il=re=>{const{componentCls:le}=re;return{[`${le}-wrapper`]:{[`${le}-tbody > tr${le}-placeholder`]:{textAlign:"center",color:re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:re.colorBgContainer}}}}},ll=ne(15969),gl=re=>{const{componentCls:le,antCls:fe,controlInteractiveSize:ve,motionDurationSlow:xe,lineWidth:Le,paddingXS:ze,lineType:Me,tableBorderColor:Ie,tableExpandIconBg:Ye,tableExpandColumnWidth:rt,borderRadius:Qe,fontSize:bt,fontSizeSM:pt,lineHeight:Pt,tablePaddingVertical:At,tablePaddingHorizontal:Ot,tableExpandedRowBg:kt,paddingXXS:It}=re,jt=ve/2-Le,dn=jt*2+Le*3,cn=`${Le}px ${Me} ${Ie}`,qt=It-Le;return{[`${le}-wrapper`]:{[`${le}-expand-icon-col`]:{width:rt},[`${le}-row-expand-icon-cell`]:{textAlign:"center",[`${le}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${le}-row-indent`]:{height:1,float:"left"},[`${le}-row-expand-icon`]:Object.assign(Object.assign({},(0,ll.N)(re)),{position:"relative",float:"left",boxSizing:"border-box",width:dn,height:dn,padding:0,color:"inherit",lineHeight:`${dn}px`,background:Ye,border:cn,borderRadius:Qe,transform:`scale(${ve/dn})`,transition:`all ${xe}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${xe} ease-out`,content:'""'},"&::before":{top:jt,insetInlineEnd:qt,insetInlineStart:qt,height:Le},"&::after":{top:qt,bottom:qt,insetInlineStart:jt,width:Le,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"}}),[`${le}-row-indent + ${le}-row-expand-icon`]:{marginTop:(bt*Pt-Le*3)/2-Math.ceil((pt*1.4-Le*3)/2),marginInlineEnd:ze},[`tr${le}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:kt}},[`${fe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${le}-expanded-row-fixed`]:{position:"relative",margin:`-${At}px -${Ot}px`,padding:`${At}px ${Ot}px`}}}},dl=re=>{const{componentCls:le,antCls:fe,iconCls:ve,tableFilterDropdownWidth:xe,tableFilterDropdownSearchWidth:Le,paddingXXS:ze,paddingXS:Me,colorText:Ie,lineWidth:Ye,lineType:rt,tableBorderColor:Qe,tableHeaderIconColor:bt,fontSizeSM:pt,tablePaddingHorizontal:Pt,borderRadius:At,motionDurationSlow:Ot,colorTextDescription:kt,colorPrimary:It,tableHeaderFilterActiveBg:jt,colorTextDisabled:dn,tableFilterDropdownBg:cn,tableFilterDropdownHeight:qt,controlItemBgHover:Cn,controlItemBgActive:Nn,boxShadowSecondary:Wt,filterDropdownMenuBg:en}=re,Ut=`${fe}-dropdown`,Kt=`${le}-filter-dropdown`,Qt=`${fe}-tree`,bn=`${Ye}px ${rt} ${Qe}`;return[{[`${le}-wrapper`]:{[`${le}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${le}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ze,marginInline:`${ze}px ${-Pt/2}px`,padding:`0 ${ze}px`,color:bt,fontSize:pt,borderRadius:At,cursor:"pointer",transition:`all ${Ot}`,"&:hover":{color:kt,background:jt},"&.active":{color:It}}}},{[`${fe}-dropdown`]:{[Kt]:Object.assign(Object.assign({},(0,mr.Wf)(re)),{minWidth:xe,backgroundColor:cn,borderRadius:At,boxShadow:Wt,overflow:"hidden",[`${Ut}-menu`]:{maxHeight:qt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:en,"&:empty::after":{display:"block",padding:`${Me}px 0`,color:dn,fontSize:pt,textAlign:"center",content:'"Not Found"'}},[`${Kt}-tree`]:{paddingBlock:`${Me}px 0`,paddingInline:Me,[Qt]:{padding:0},[`${Qt}-treenode ${Qt}-node-content-wrapper:hover`]:{backgroundColor:Cn},[`${Qt}-treenode-checkbox-checked ${Qt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Nn}}},[`${Kt}-search`]:{padding:Me,borderBottom:bn,"&-input":{input:{minWidth:Le},[ve]:{color:dn}}},[`${Kt}-checkall`]:{width:"100%",marginBottom:ze,marginInlineStart:ze},[`${Kt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Me-Ye}px ${Me}px`,overflow:"hidden",borderTop:bn}})}},{[`${fe}-dropdown ${Kt}, ${Kt}-submenu`]:{[`${fe}-checkbox-wrapper + span`]:{paddingInlineStart:Me,color:Ie},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sl=re=>{const{componentCls:le,lineWidth:fe,colorSplit:ve,motionDurationSlow:xe,zIndexTableFixed:Le,tableBg:ze,zIndexTableSticky:Me}=re,Ie=ve;return{[`${le}-wrapper`]:{[`
${le}-cell-fix-left,
${le}-cell-fix-right
`]:{position:"sticky !important",zIndex:Le,background:ze},[`
${le}-cell-fix-left-first::after,
${le}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-fe,width:30,transform:"translateX(100%)",transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},[`${le}-cell-fix-left-all::after`]:{display:"none"},[`
${le}-cell-fix-right-first::after,
${le}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-fe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},[`${le}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Me+1,width:30,transition:`box-shadow ${xe}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${le}-ping-left`]:{[`&:not(${le}-has-fix-left) ${le}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ie}`}},[`
${le}-cell-fix-left-first::after,
${le}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Ie}`},[`${le}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${le}-ping-right`]:{[`&:not(${le}-has-fix-right) ${le}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ie}`}},[`
${le}-cell-fix-right-first::after,
${le}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Ie}`}}}}},cl=re=>{const{componentCls:le,antCls:fe}=re;return{[`${le}-wrapper`]:{[`${le}-pagination${fe}-pagination`]:{margin:`${re.margin}px 0`},[`${le}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ul=re=>{const{componentCls:le,tableRadius:fe}=re;return{[`${le}-wrapper`]:{[le]:{[`${le}-title, ${le}-header`]:{borderRadius:`${fe}px ${fe}px 0 0`},[`${le}-title + ${le}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${le}-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:fe,borderStartEndRadius:fe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:fe},"> *:last-child":{borderStartEndRadius:fe}}},"&-footer":{borderRadius:`0 0 ${fe}px ${fe}px`}}}}},ml=re=>{const{componentCls:le}=re;return{[`${le}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${le}-pagination-left`]:{justifyContent:"flex-end"},[`${le}-pagination-right`]:{justifyContent:"flex-start"},[`${le}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${le}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${le}-row-indent`]:{float:"right"}}}}},fl=re=>{const{componentCls:le,antCls:fe,iconCls:ve,fontSizeIcon:xe,padding:Le,paddingXS:ze,tableHeaderIconColor:Me,tableHeaderIconColorHover:Ie,tableSelectionColumnWidth:Ye}=re;return{[`${le}-wrapper`]:{[`${le}-selection-col`]:{width:Ye,[`&${le}-selection-col-with-dropdown`]:{width:Ye+xe+Le/4}},[`${le}-bordered ${le}-selection-col`]:{width:Ye+ze*2,[`&${le}-selection-col-with-dropdown`]:{width:Ye+xe+Le/4+ze*2}},[`
table tr th${le}-selection-column,
table tr td${le}-selection-column
`]:{paddingInlineEnd:re.paddingXS,paddingInlineStart:re.paddingXS,textAlign:"center",[`${fe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${le}-selection-column${le}-cell-fix-left`]:{zIndex:re.zIndexTableFixed+1},[`table tr th${le}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${le}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${le}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${re.tablePaddingHorizontal/4}px`,[ve]:{color:Me,fontSize:xe,verticalAlign:"baseline","&:hover":{color:Ie}}}}}},hl=re=>{const{componentCls:le}=re,fe=(ve,xe,Le,ze)=>({[`${le}${le}-${ve}`]:{fontSize:ze,[`
${le}-title,
${le}-footer,
${le}-cell,
${le}-thead > tr > th,
${le}-tbody > tr > th,
${le}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${xe}px ${Le}px`},[`${le}-filter-trigger`]:{marginInlineEnd:`-${Le/2}px`},[`${le}-expanded-row-fixed`]:{margin:`-${xe}px -${Le}px`},[`${le}-tbody`]:{[`${le}-wrapper:only-child ${le}`]:{marginBlock:`-${xe}px`,marginInline:`${re.tableExpandColumnWidth-Le}px -${Le}px`}},[`${le}-selection-column`]:{paddingInlineStart:`${Le/4}px`}}});return{[`${le}-wrapper`]:Object.assign(Object.assign({},fe("middle",re.tablePaddingVerticalMiddle,re.tablePaddingHorizontalMiddle,re.tableFontSizeMiddle)),fe("small",re.tablePaddingVerticalSmall,re.tablePaddingHorizontalSmall,re.tableFontSizeSmall))}},Sl=re=>{const{componentCls:le,marginXXS:fe,fontSizeIcon:ve,tableHeaderIconColor:xe,tableHeaderIconColorHover:Le}=re;return{[`${le}-wrapper`]:{[`${le}-thead th${le}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${re.motionDurationSlow}`,"&:hover":{background:re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:re.colorPrimary},[`
&${le}-cell-fix-left:hover,
&${le}-cell-fix-right:hover
`]:{background:re.tableFixedHeaderSortActiveBg}},[`${le}-thead th${le}-column-sort`]:{background:re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${le}-column-sort`]:{background:re.tableBodySortBg},[`${le}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${le}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${le}-column-sorter`]:{marginInlineStart:fe,color:xe,fontSize:0,transition:`color ${re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ve,"&.active":{color:re.colorPrimary}},[`${le}-column-sorter-up + ${le}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${le}-column-sorters:hover ${le}-column-sorter`]:{color:Le}}}},pl=re=>{const{componentCls:le,opacityLoading:fe,tableScrollThumbBg:ve,tableScrollThumbBgHover:xe,tableScrollThumbSize:Le,tableScrollBg:ze,zIndexTableSticky:Me,stickyScrollBarBorderRadius:Ie}=re,Ye=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`;return{[`${le}-wrapper`]:{[`${le}-sticky`]:{"&-holder":{position:"sticky",zIndex:Me,background:re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Le}px !important`,zIndex:Me,display:"flex",alignItems:"center",background:ze,borderTop:Ye,opacity:fe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Le,backgroundColor:ve,borderRadius:Ie,transition:`all ${re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:xe}}}}}}},ui=re=>{const{componentCls:le,lineWidth:fe,tableBorderColor:ve}=re,xe=`${fe}px ${re.lineType} ${ve}`;return{[`${le}-wrapper`]:{[`${le}-summary`]:{position:"relative",zIndex:re.zIndexTableFixed,background:re.tableBg,"> tr":{"> th, > td":{borderBottom:xe}}},[`div${le}-summary`]:{boxShadow:`0 -${fe}px 0 ${ve}`}}}},vl=re=>{const{componentCls:le}=re,fe=`${re.lineWidth}px ${re.lineType} ${re.tableBorderColor}`,ve=`${le}-expanded-row-cell`;return{[`${le}-wrapper`]:{[`${le}-tbody-virtual`]:{[`${le}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${le}-cell`]:{borderBottom:fe},[`${le}-expanded-row`]:{[`${ve}${ve}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${le}-bordered`]:{[`${le}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:fe,position:"absolute"},[`${le}-cell`]:{borderInlineEnd:fe,[`&${le}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-re.lineWidth,borderInlineStart:fe}}}}}}};const Pl=re=>{const{componentCls:le,fontWeightStrong:fe,tablePaddingVertical:ve,tablePaddingHorizontal:xe,lineWidth:Le,lineType:ze,tableBorderColor:Me,tableFontSize:Ie,tableBg:Ye,tableRadius:rt,tableHeaderTextColor:Qe,motionDurationMid:bt,tableHeaderBg:pt,tableHeaderCellSplitColor:Pt,tableRowHoverBg:At,tableSelectedRowBg:Ot,tableSelectedRowHoverBg:kt,tableFooterTextColor:It,tableFooterBg:jt,paddingContentVerticalLG:dn}=re,cn=`${Le}px ${ze} ${Me}`;return{[`${le}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,mr.dF)()),{[le]:Object.assign(Object.assign({},(0,mr.Wf)(re)),{fontSize:Ie,background:Ye,borderRadius:`${rt}px ${rt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${rt}px ${rt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${le}-cell,
${le}-thead > tr > th,
${le}-tbody > tr > th,
${le}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${dn}px ${xe}px`,overflowWrap:"break-word"},[`${le}-title`]:{padding:`${ve}px ${xe}px`},[`${le}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Qe,fontWeight:fe,textAlign:"start",background:pt,borderBottom:cn,transition:`background ${bt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${le}-selection-column):not(${le}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Pt,transform:"translateY(-50%)",transition:`background-color ${bt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${le}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${bt}, border-color ${bt}`,borderBottom:cn,[`
> ${le}-wrapper:only-child,
> ${le}-expanded-row-fixed > ${le}-wrapper:only-child
`]:{[le]:{marginBlock:`-${ve}px`,marginInline:`${re.tableExpandColumnWidth-xe}px -${xe}px`,[`${le}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Qe,fontWeight:fe,textAlign:"start",background:pt,borderBottom:cn,transition:`background ${bt} ease`},[`
&${le}-row:hover > th,
&${le}-row:hover > td,
> th${le}-cell-row-hover,
> td${le}-cell-row-hover
`]:{background:At},[`&${le}-row-selected`]:{"> th, > td":{background:Ot},"&:hover > th, &:hover > td":{background:kt}}}},[`${le}-footer`]:{padding:`${ve}px ${xe}px`,color:It,background:jt}})}};var yl=(0,nl.Z)("Table",re=>{const{colorTextHeading:le,colorSplit:fe,colorIcon:ve,colorIconHover:xe,opacityLoading:Le,colorBgContainer:ze,controlInteractiveSize:Me,headerBg:Ie,headerColor:Ye,headerSortActiveBg:rt,headerSortHoverBg:Qe,bodySortBg:bt,rowHoverBg:pt,rowSelectedBg:Pt,rowSelectedHoverBg:At,rowExpandedBg:Ot,cellPaddingBlock:kt,cellPaddingInline:It,cellPaddingBlockMD:jt,cellPaddingInlineMD:dn,cellPaddingBlockSM:cn,cellPaddingInlineSM:qt,borderColor:Cn,footerBg:Nn,footerColor:Wt,headerBorderRadius:en,cellFontSize:Ut,cellFontSizeMD:Kt,cellFontSizeSM:Qt,headerSplitColor:bn,fixedHeaderSortActiveBg:zn,headerFilterHoverBg:Fn,filterDropdownBg:hn,expandIconBg:Mn,selectionColumnWidth:Rn,stickyScrollBarBg:la}=re,Vn=new er.C(ve),Pa=new er.C(xe),ya=2,$n=(0,al.TS)(re,{tableFontSize:Ut,tableBg:ze,tableRadius:en,tablePaddingVertical:kt,tablePaddingHorizontal:It,tablePaddingVerticalMiddle:jt,tablePaddingHorizontalMiddle:dn,tablePaddingVerticalSmall:cn,tablePaddingHorizontalSmall:qt,tableBorderColor:Cn,tableHeaderTextColor:Ye,tableHeaderBg:Ie,tableFooterTextColor:Wt,tableFooterBg:Nn,tableHeaderCellSplitColor:bn,tableHeaderSortBg:rt,tableHeaderSortHoverBg:Qe,tableHeaderIconColor:Vn.clone().setAlpha(Vn.getAlpha()*Le).toRgbString(),tableHeaderIconColorHover:Pa.clone().setAlpha(Pa.getAlpha()*Le).toRgbString(),tableBodySortBg:bt,tableFixedHeaderSortActiveBg:zn,tableHeaderFilterActiveBg:Fn,tableFilterDropdownBg:hn,tableRowHoverBg:pt,tableSelectedRowBg:Pt,tableSelectedRowHoverBg:At,zIndexTableFixed:ya,zIndexTableSticky:ya+1,tableFontSizeMiddle:Kt,tableFontSizeSmall:Qt,tableSelectionColumnWidth:Rn,tableExpandIconBg:Mn,tableExpandColumnWidth:Me+2*re.padding,tableExpandedRowBg:Ot,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:la,tableScrollThumbBgHover:le,tableScrollBg:fe});return[Pl($n),cl($n),ui($n),Sl($n),dl($n),ol($n),ul($n),gl($n),ui($n),il($n),fl($n),sl($n),pl($n),rl($n),hl($n),ml($n),vl($n)]},re=>{const{colorFillAlter:le,colorBgContainer:fe,colorTextHeading:ve,colorFillSecondary:xe,colorFillContent:Le,controlItemBgActive:ze,controlItemBgActiveHover:Me,padding:Ie,paddingSM:Ye,paddingXS:rt,colorBorderSecondary:Qe,borderRadiusLG:bt,fontSize:pt,controlHeight:Pt,colorTextPlaceholder:At}=re,Ot=new er.C(xe).onBackground(fe).toHexShortString(),kt=new er.C(Le).onBackground(fe).toHexShortString(),It=new er.C(le).onBackground(fe).toHexShortString();return{headerBg:It,headerColor:ve,headerSortActiveBg:Ot,headerSortHoverBg:kt,bodySortBg:It,rowHoverBg:It,rowSelectedBg:ze,rowSelectedHoverBg:Me,rowExpandedBg:le,cellPaddingBlock:Ie,cellPaddingInline:Ie,cellPaddingBlockMD:Ye,cellPaddingInlineMD:rt,cellPaddingBlockSM:rt,cellPaddingInlineSM:rt,borderColor:Qe,headerBorderRadius:bt,footerBg:It,footerColor:ve,cellFontSize:pt,cellFontSizeMD:pt,cellFontSizeSM:pt,headerSplitColor:Qe,fixedHeaderSortActiveBg:Ot,headerFilterHoverBg:Le,filterDropdownMenuBg:fe,filterDropdownBg:fe,expandIconBg:fe,selectionColumnWidth:Pt,stickyScrollBarBg:At,stickyScrollBarBorderRadius:100}});const bl=[],xl=(re,le)=>{const{prefixCls:fe,className:ve,rootClassName:xe,style:Le,size:ze,bordered:Me,dropdownPrefixCls:Ie,dataSource:Ye,pagination:rt,rowSelection:Qe,rowKey:bt="key",rowClassName:pt,columns:Pt,children:At,childrenColumnName:Ot,onChange:kt,getPopupContainer:It,loading:jt,expandIcon:dn,expandable:cn,expandedRowRender:qt,expandIconColumnIndex:Cn,indentSize:Nn,scroll:Wt,sortDirections:en,locale:Ut,showSorterTooltip:Kt=!0,virtual:Qt}=re,bn=ae.useMemo(()=>Pt||je(At),[Pt,At]),zn=ae.useMemo(()=>bn.some(Un=>Un.responsive),[bn]),Fn=(0,Xr.Z)(zn),hn=ae.useMemo(()=>{const Un=new Set(Object.keys(Fn).filter(ga=>Fn[ga]));return bn.filter(ga=>!ga.responsive||ga.responsive.some(Ga=>Un.has(Ga)))},[bn,Fn]),Mn=(0,xr.Z)(re,["className","style","columns"]),{locale:Rn=Yr.Z,direction:la,table:Vn,renderEmpty:Pa,getPrefixCls:ya,getPopupContainer:$n}=ae.useContext(gr.E_),La=(0,Lr.Z)(ze),Yn=Object.assign(Object.assign({},Rn.Table),Ut),ca=Ye||bl,sa=ya("table",fe),Ja=ya("dropdown",Ie),Pn=Object.assign({childrenColumnName:Ot,expandIconColumnIndex:Cn},cn),{childrenColumnName:pn="children"}=Pn,Sn=ae.useMemo(()=>ca.some(Un=>Un==null?void 0:Un[pn])?"nest":qt||cn&&cn.expandedRowRender?"row":null,[ca]),ln={body:ae.useRef()},Jn=ae.useMemo(()=>typeof bt=="function"?bt:Un=>Un==null?void 0:Un[bt],[bt]),[gn]=Ai(ca,pn,Jn),wn={},Wn=function(Un,ga){let Ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Sa,ja,eo;const to=Object.assign(Object.assign({},wn),Un);Ga&&((Sa=wn.resetPagination)===null||Sa===void 0||Sa.call(wn),!((ja=to.pagination)===null||ja===void 0)&&ja.current&&(to.pagination.current=1),rt&&rt.onChange&&rt.onChange(1,(eo=to.pagination)===null||eo===void 0?void 0:eo.pageSize)),Wt&&Wt.scrollToFirstRowOnChange!==!1&&ln.body.current&&(0,Cr.Z)(0,{getContainer:()=>ln.body.current}),kt==null||kt(to.pagination,to.filters,to.sorter,{currentDataSource:ti(Rr(ca,to.sorterStates,pn),to.filterStates),action:ga})},Hn=(Un,ga)=>{Wn({sorter:Un,sorterStates:ga},"sort",!1)},[Za,Ra,ho,wa]=Qi({prefixCls:sa,mergedColumns:hn,onSorterChange:Hn,sortDirections:en||["ascend","descend"],tableLocale:Yn,showSorterTooltip:Kt}),lo=ae.useMemo(()=>Rr(ca,Ra,pn),[ca,Ra]);wn.sorter=wa(),wn.sorterStates=Ra;const Ea=(Un,ga)=>{Wn({filters:Un,filterStates:ga},"filter",!0)},[Qa,Do,qn]=Ri({prefixCls:sa,locale:Yn,dropdownPrefixCls:Ja,mergedColumns:hn,onFilterChange:Ea,getPopupContainer:It||$n}),na=ti(lo,Do);wn.filters=qn,wn.filterStates=Do;const fa=ae.useMemo(()=>{const Un={};return Object.keys(qn).forEach(ga=>{qn[ga]!==null&&(Un[ga]=qn[ga])}),Object.assign(Object.assign({},ho),{filters:Un})},[ho,qn]),[Na]=qi(fa),$a=(Un,ga)=>{Wn({pagination:Object.assign(Object.assign({},wn.pagination),{current:Un,pageSize:ga})},"paginate")},[An,Va]=Hi(na.length,$a,rt);wn.pagination=rt===!1?{}:Ki(An,rt),wn.resetPagination=Va;const Ha=ae.useMemo(()=>{if(rt===!1||!An.pageSize)return na;const{current:Un=1,total:ga,pageSize:Ga=ai}=An;return na.length<ga?na.length>Ga?na.slice((Un-1)*Ga,Un*Ga):na:na.slice((Un-1)*Ga,Un*Ga)},[!!rt,na,An&&An.current,An&&An.pageSize,An&&An.total]),[ao,vo]=Ui({prefixCls:sa,data:na,pageData:Ha,getRowKey:Jn,getRecordByKey:gn,expandType:Sn,childrenColumnName:pn,locale:Yn,getPopupContainer:It||$n},Qe),So=(Un,ga,Ga)=>{let Sa;return typeof pt=="function"?Sa=it()(pt(Un,ga,Ga)):Sa=it()(pt),it()({[`${sa}-row-selected`]:vo.has(Jn(Un,ga))},Sa)};Pn.__PARENT_RENDER_ICON__=Pn.expandIcon,Pn.expandIcon=Pn.expandIcon||dn||an(Yn),Sn==="nest"&&Pn.expandIconColumnIndex===void 0?Pn.expandIconColumnIndex=Qe?1:0:Pn.expandIconColumnIndex>0&&Qe&&(Pn.expandIconColumnIndex-=1),typeof Pn.indentSize!="number"&&(Pn.indentSize=typeof Nn=="number"?Nn:15);const tr=ae.useCallback(Un=>Na(ao(Qa(Za(Un)))),[Za,Qa,ao]);let Eo,so;if(rt!==!1&&(An!=null&&An.total)){let Un;An.size?Un=An.size:Un=La==="small"||La==="middle"?"small":void 0;const ga=ja=>ae.createElement(wr.Z,Object.assign({},An,{className:it()(`${sa}-pagination ${sa}-pagination-${ja}`,An.className),size:Un})),Ga=la==="rtl"?"left":"right",{position:Sa}=An;if(Sa!==null&&Array.isArray(Sa)){const ja=Sa.find(Bo=>Bo.includes("top")),eo=Sa.find(Bo=>Bo.includes("bottom")),to=Sa.every(Bo=>`${Bo}`=="none");!ja&&!eo&&!to&&(so=ga(Ga)),ja&&(Eo=ga(ja.toLowerCase().replace("top",""))),eo&&(so=ga(eo.toLowerCase().replace("bottom","")))}else so=ga(Ga)}let qa;typeof jt=="boolean"?qa={spinning:jt}:typeof jt=="object"&&(qa=Object.assign({spinning:!0},jt));const[Xa,Oa]=yl(sa),[,ha]=(0,fn.Z)(),Po=it()(`${sa}-wrapper`,Vn==null?void 0:Vn.className,{[`${sa}-wrapper-rtl`]:la==="rtl"},ve,xe,Oa),zo=Object.assign(Object.assign({},Vn==null?void 0:Vn.style),Le),No=Ut&&Ut.emptyText||(Pa==null?void 0:Pa("Table"))||ae.createElement(Vr.Z,{componentName:"Table"}),yo=Qt?tl:el,fr={},Ar=ae.useMemo(()=>{const{fontSize:Un,lineHeight:ga,padding:Ga,paddingXS:Sa,paddingSM:ja}=ha,eo=Math.floor(Un*ga);switch(La){case"large":return Ga*2+eo;case"small":return Sa*2+eo;default:return ja*2+eo}},[ha,La]);return Qt&&(fr.listItemHeight=Ar),Xa(ae.createElement("div",{ref:le,className:Po,style:zo},ae.createElement(Er.Z,Object.assign({spinning:!1},qa),Eo,ae.createElement(yo,Object.assign({},fr,Mn,{columns:hn,direction:la,expandable:Pn,prefixCls:sa,className:it()({[`${sa}-middle`]:La==="middle",[`${sa}-small`]:La==="small",[`${sa}-bordered`]:Me,[`${sa}-empty`]:ca.length===0}),data:Ha,rowKey:Jn,rowClassName:So,emptyText:No,internalHooks:ce,internalRefs:ln,transformColumns:tr})),so)))};var Cl=ae.forwardRef(xl);const Ll=(re,le)=>{const fe=ae.useRef(0);return fe.current+=1,ae.createElement(Cl,Object.assign({},re,{ref:le,_renderTimes:fe.current}))},wo=ae.forwardRef(Ll);wo.SELECTION_COLUMN=Fo,wo.EXPAND_COLUMN=ie,wo.SELECTION_ALL=Ir,wo.SELECTION_INVERT=Tr,wo.SELECTION_NONE=Dr,wo.Column=uo,wo.ColumnGroup=po,wo.Summary=pe;var wl=wo,El=wl},17574:function(qe,gt,ne){"use strict";ne.d(gt,{default:function(){return st}});var ie=ne(60091),ce=ne(94480),De=ne(52671),Ue=ne(8657),we=ne(54476),Be=ne(59301),ae={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"},Je=ae,Xe=ne(7657),He=function(wt,Bt){return Be.createElement(Xe.Z,(0,we.Z)({},wt,{ref:Bt,icon:Je}))},Re=Be.forwardRef(He),et=Re,Ke=ne(92310),oe=ne.n(Ke),y=ne(35654),a=ne(71430),x=ne(36355),b=ne(56082),E=ne(62892),z=ne(20648);const ee=4;function te(St){const{dropPosition:wt,dropLevelOffset:Bt,prefixCls:Tt,indent:Oe,direction:_e="ltr"}=St,ct=_e==="ltr"?"left":"right",Gt=_e==="ltr"?"right":"left",nt={[ct]:-Bt*Oe+ee,[Gt]:0};switch(wt){case-1:nt.top=-3;break;case 1:nt.bottom=-3;break;default:nt.bottom=-3,nt[ct]=Oe+ee;break}return Be.createElement("div",{style:nt,className:`${Tt}-drop-indicator`})}var ge=ne(71997),se=Be.forwardRef((St,wt)=>{const{getPrefixCls:Bt,direction:Tt,virtual:Oe,tree:_e}=Be.useContext(x.E_),{prefixCls:ct,className:Gt,showIcon:nt=!1,showLine:$t,switcherIcon:ye,blockNode:Et=!1,children:Ht,checkable:un=!1,selectable:Xt=!0,draggable:Te,motion:$e,style:Fe}=St,me=Bt("tree",ct),Ve=Bt(),vt=$e!=null?$e:Object.assign(Object.assign({},(0,E.Z)(Ve)),{motionAppear:!1}),pe=Object.assign(Object.assign({},St),{checkable:un,selectable:Xt,showIcon:nt,motion:vt,blockNode:Et,showLine:!!$t,dropIndicatorRender:te}),[ue,Ze]=(0,z.ZP)(me),Ne=Be.useMemo(()=>{if(!Te)return!1;let Ge={};switch(typeof Te){case"function":Ge.nodeDraggable=Te;break;case"object":Ge=Object.assign({},Te);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||Be.createElement(b.Z,null)),Ge},[Te]),Pe=Ge=>Be.createElement(ge.Z,{prefixCls:me,switcherIcon:ye,treeNodeProps:Ge,showLine:$t});return ue(Be.createElement(ie.Z,Object.assign({itemHeight:20,ref:wt,virtual:Oe},pe,{style:Object.assign(Object.assign({},_e==null?void 0:_e.style),Fe),prefixCls:me,className:oe()({[`${me}-icon-hide`]:!nt,[`${me}-block-node`]:Et,[`${me}-unselectable`]:!Xt,[`${me}-rtl`]:Tt==="rtl"},_e==null?void 0:_e.className,Gt,Ze),direction:Tt,checkable:un&&Be.createElement("span",{className:`${me}-checkbox-inner`}),selectable:Xt,switcherIcon:Pe,draggable:Ne}),Ht))}),be;(function(St){St[St.None=0]="None",St[St.Start=1]="Start",St[St.End=2]="End"})(be||(be={}));function Se(St,wt){function Bt(Tt){const{key:Oe,children:_e}=Tt;wt(Oe,Tt)!==!1&&Se(_e||[],wt)}St.forEach(Bt)}function Ee(St){let{treeData:wt,expandedKeys:Bt,startKey:Tt,endKey:Oe}=St;const _e=[];let ct=be.None;if(Tt&&Tt===Oe)return[Tt];if(!Tt||!Oe)return[];function Gt(nt){return nt===Tt||nt===Oe}return Se(wt,nt=>{if(ct===be.End)return!1;if(Gt(nt)){if(_e.push(nt),ct===be.None)ct=be.Start;else if(ct===be.Start)return ct=be.End,!1}else ct===be.Start&&_e.push(nt);return Bt.includes(nt)}),_e}function he(St,wt){const Bt=(0,ce.Z)(wt),Tt=[];return Se(St,(Oe,_e)=>{const ct=Bt.indexOf(Oe);return ct!==-1&&(Tt.push(_e),Bt.splice(ct,1)),!!Bt.length}),Tt}var ft=function(St,wt){var Bt={};for(var Tt in St)Object.prototype.hasOwnProperty.call(St,Tt)&&wt.indexOf(Tt)<0&&(Bt[Tt]=St[Tt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Tt=Object.getOwnPropertySymbols(St);Oe<Tt.length;Oe++)wt.indexOf(Tt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(St,Tt[Oe])&&(Bt[Tt[Oe]]=St[Tt[Oe]]);return Bt};function it(St){const{isLeaf:wt,expanded:Bt}=St;return wt?Be.createElement(De.Z,null):Bt?Be.createElement(Ue.Z,null):Be.createElement(et,null)}function _t(St){let{treeData:wt,children:Bt}=St;return wt||(0,a.zn)(Bt)}const Ce=(St,wt)=>{var{defaultExpandAll:Bt,defaultExpandParent:Tt,defaultExpandedKeys:Oe}=St,_e=ft(St,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ct=Be.useRef(),Gt=Be.useRef(),nt=()=>{const{keyEntities:Ne}=(0,a.I8)(_t(_e));let Pe;return Bt?Pe=Object.keys(Ne):Tt?Pe=(0,y.r7)(_e.expandedKeys||Oe||[],Ne):Pe=_e.expandedKeys||Oe,Pe},[$t,ye]=Be.useState(_e.selectedKeys||_e.defaultSelectedKeys||[]),[Et,Ht]=Be.useState(()=>nt());Be.useEffect(()=>{"selectedKeys"in _e&&ye(_e.selectedKeys)},[_e.selectedKeys]),Be.useEffect(()=>{"expandedKeys"in _e&&Ht(_e.expandedKeys)},[_e.expandedKeys]);const un=(Ne,Pe)=>{var Ge;return"expandedKeys"in _e||Ht(Ne),(Ge=_e.onExpand)===null||Ge===void 0?void 0:Ge.call(_e,Ne,Pe)},Xt=(Ne,Pe)=>{var Ge;const{multiple:Lt}=_e,{node:mt,nativeEvent:xt}=Pe,{key:lt=""}=mt,yt=_t(_e),ot=Object.assign(Object.assign({},Pe),{selected:!0}),Zt=(xt==null?void 0:xt.ctrlKey)||(xt==null?void 0:xt.metaKey),Rt=xt==null?void 0:xt.shiftKey;let Nt;Lt&&Zt?(Nt=Ne,ct.current=lt,Gt.current=Nt,ot.selectedNodes=he(yt,Nt)):Lt&&Rt?(Nt=Array.from(new Set([].concat((0,ce.Z)(Gt.current||[]),(0,ce.Z)(Ee({treeData:yt,expandedKeys:Et,startKey:lt,endKey:ct.current}))))),ot.selectedNodes=he(yt,Nt)):(Nt=[lt],ct.current=lt,Gt.current=Nt,ot.selectedNodes=he(yt,Nt)),(Ge=_e.onSelect)===null||Ge===void 0||Ge.call(_e,Nt,ot),"selectedKeys"in _e||ye(Nt)},{getPrefixCls:Te,direction:$e}=Be.useContext(x.E_),{prefixCls:Fe,className:me,showIcon:Ve=!0,expandAction:vt="click"}=_e,pe=ft(_e,["prefixCls","className","showIcon","expandAction"]),ue=Te("tree",Fe),Ze=oe()(`${ue}-directory`,{[`${ue}-directory-rtl`]:$e==="rtl"},me);return Be.createElement(se,Object.assign({icon:it,ref:wt,blockNode:!0},pe,{showIcon:Ve,expandAction:vt,prefixCls:ue,className:Ze,expandedKeys:Et,selectedKeys:$t,onSelect:Xt,onExpand:un}))};var tt=Be.forwardRef(Ce);const at=se;at.DirectoryTree=tt,at.TreeNode=ie.O;var st=at},20648:function(qe,gt,ne){"use strict";ne.d(gt,{TM:function(){return Ke},Yk:function(){return et}});var ie=ne(36237),ce=ne(98447),De=ne(17313),Ue=ne(8378),we=ne(37613),Be=ne(83116);const ae=new ie.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Je=(oe,y)=>({[`.${oe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),Xe=(oe,y)=>({[`.${oe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),He=(oe,y)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:b,titleHeight:E,nodeSelectedBg:z,nodeHoverBg:ee}=y,te=y.paddingXS;return{[a]:Object.assign(Object.assign({},(0,De.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,De.oN)(y)),[`${a}-list-holder-inner`]:{alignItems:"flex-start"},[`&${a}-block-node`]:{[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-node-content-wrapper`]:{flex:"auto"},[`${x}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:ae,animationDuration:y.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":{[`${a}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,De.oN)(y)),[`&:not(${x}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:E,lineHeight:`${E}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${x}:hover &`]:{opacity:.45}},[`&${x}-disabled`]:{[`${a}-draggable-icon`]:{visibility:"hidden"}}}},[`${a}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:E}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},Je(oe,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:E,margin:0,lineHeight:`${E}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.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 ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:E/2*.8,height:E/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:te},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:E,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${E}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${a}-node-selected`]:{backgroundColor:z},[`${a}-iconEle`]:{display:"inline-block",width:E,height:E,lineHeight:`${E}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${E}px`,userSelect:"none"},Xe(oe,y)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:E/2,bottom:-b,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${a}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${x}-leaf-last`]:{[`${a}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${E/2}px !important`}}}}})}},Re=oe=>{const{treeCls:y,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:b,directoryNodeSelectedColor:E}=oe;return{[`${y}${y}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${oe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:oe.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${oe.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:E,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${y}-switcher`]:{color:E},[`${y}-node-content-wrapper`]:{color:E,background:"transparent"}}}}}},et=(oe,y)=>{const a=`.${oe}`,x=`${a}-treenode`,b=y.paddingXS/2,E=(0,we.TS)(y,{treeCls:a,treeNodeCls:x,treeNodePadding:b});return[He(oe,E),Re(E)]},Ke=oe=>{const{controlHeightSM:y}=oe;return{titleHeight:y,nodeHoverBg:oe.controlItemBgHover,nodeSelectedBg:oe.controlItemBgActive}};gt.ZP=(0,Be.Z)("Tree",(oe,y)=>{let{prefixCls:a}=y;return[{[oe.componentCls]:(0,ce.C2)(`${a}-checkbox`,oe)},et(a,oe),(0,Ue.Z)(oe)]},oe=>{const{colorTextLightSolid:y,colorPrimary:a}=oe;return Object.assign(Object.assign({},Ke(oe)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:a})})},71997:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return x}});var ie=ne(54476),ce=ne(59301),De={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"},Ue=De,we=ne(7657),Be=function(E,z){return ce.createElement(we.Z,(0,ie.Z)({},E,{ref:z,icon:Ue}))},ae=ce.forwardRef(Be),Je=ae,Xe=ne(52671),He=ne(58617),Re=ne(15075),et=ne(43531),Ke=ne(92310),oe=ne.n(Ke),y=ne(92343),x=b=>{const{prefixCls:E,switcherIcon:z,treeNodeProps:ee,showLine:te}=b,{isLeaf:ge,expanded:de,loading:se}=ee;if(se)return ce.createElement(He.Z,{className:`${E}-switcher-loading-icon`});let be;if(te&&typeof te=="object"&&(be=te.showLeafIcon),ge){if(!te)return null;if(typeof be!="boolean"&&be){const he=typeof be=="function"?be(ee):be,ft=`${E}-switcher-line-custom-icon`;return(0,y.l$)(he)?(0,y.Tm)(he,{className:oe()(he.props.className||"",ft)}):he}return be?ce.createElement(Xe.Z,{className:`${E}-switcher-line-icon`}):ce.createElement("span",{className:`${E}-switcher-leaf-line`})}const Se=`${E}-switcher-icon`,Ee=typeof z=="function"?z(ee):z;return(0,y.l$)(Ee)?(0,y.Tm)(Ee,{className:oe()(Ee.props.className||"",Se)}):Ee!==void 0?Ee:te?de?ce.createElement(Re.Z,{className:`${E}-switcher-line-icon`}):ce.createElement(et.Z,{className:`${E}-switcher-line-icon`}):ce.createElement(Je,{className:Se})}},91735:function(qe,gt){"use strict";gt.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"}},39417:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return se}});var ie=ne(54476),ce=ne(20068),De=ne(75931),Ue=ne(33885),we=ne(67732),Be=ne(83652),ae=ne(31226),Je=ne(42403),Xe=ne(158),He=ne(92310),Re=ne.n(He),et=ne(26112),Ke=ne(59301),oe=ne(39378),y=function(Se){for(var Ee=Se.prefixCls,he=Se.level,ft=Se.isStart,it=Se.isEnd,_t="".concat(Ee,"-indent-unit"),Ce=[],Ae=0;Ae<he;Ae+=1){var tt;Ce.push(Ke.createElement("span",{key:Ae,className:Re()(_t,(tt={},(0,ce.Z)(tt,"".concat(_t,"-start"),ft[Ae]),(0,ce.Z)(tt,"".concat(_t,"-end"),it[Ae]),tt))}))}return Ke.createElement("span",{"aria-hidden":"true",className:"".concat(Ee,"-indent")},Ce)},a=Ke.memo(y),x=ne(67841),b=ne(71430),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",ee="close",te="---",ge=function(be){(0,Je.Z)(Ee,be);var Se=(0,Xe.Z)(Ee);function Ee(){var he;(0,we.Z)(this,Ee);for(var ft=arguments.length,it=new Array(ft),_t=0;_t<ft;_t++)it[_t]=arguments[_t];return he=Se.call.apply(Se,[this].concat(it)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(Ce){var Ae=he.props.context.onNodeClick;Ae(Ce,(0,b.F)(he.props)),he.isSelectable()?he.onSelect(Ce):he.onCheck(Ce)},he.onSelectorDoubleClick=function(Ce){var Ae=he.props.context.onNodeDoubleClick;Ae(Ce,(0,b.F)(he.props))},he.onSelect=function(Ce){if(!he.isDisabled()){var Ae=he.props.context.onNodeSelect;Ae(Ce,(0,b.F)(he.props))}},he.onCheck=function(Ce){if(!he.isDisabled()){var Ae=he.props,tt=Ae.disableCheckbox,at=Ae.checked,st=he.props.context.onNodeCheck;if(!(!he.isCheckable()||tt)){var St=!at;st(Ce,(0,b.F)(he.props),St)}}},he.onMouseEnter=function(Ce){var Ae=he.props.context.onNodeMouseEnter;Ae(Ce,(0,b.F)(he.props))},he.onMouseLeave=function(Ce){var Ae=he.props.context.onNodeMouseLeave;Ae(Ce,(0,b.F)(he.props))},he.onContextMenu=function(Ce){var Ae=he.props.context.onNodeContextMenu;Ae(Ce,(0,b.F)(he.props))},he.onDragStart=function(Ce){var Ae=he.props.context.onNodeDragStart;Ce.stopPropagation(),he.setState({dragNodeHighlight:!0}),Ae(Ce,(0,ae.Z)(he));try{Ce.dataTransfer.setData("text/plain","")}catch(tt){}},he.onDragEnter=function(Ce){var Ae=he.props.context.onNodeDragEnter;Ce.preventDefault(),Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragOver=function(Ce){var Ae=he.props.context.onNodeDragOver;Ce.preventDefault(),Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragLeave=function(Ce){var Ae=he.props.context.onNodeDragLeave;Ce.stopPropagation(),Ae(Ce,(0,ae.Z)(he))},he.onDragEnd=function(Ce){var Ae=he.props.context.onNodeDragEnd;Ce.stopPropagation(),he.setState({dragNodeHighlight:!1}),Ae(Ce,(0,ae.Z)(he))},he.onDrop=function(Ce){var Ae=he.props.context.onNodeDrop;Ce.preventDefault(),Ce.stopPropagation(),he.setState({dragNodeHighlight:!1}),Ae(Ce,(0,ae.Z)(he))},he.onExpand=function(Ce){var Ae=he.props,tt=Ae.loading,at=Ae.context.onNodeExpand;tt||at(Ce,(0,b.F)(he.props))},he.setSelectHandle=function(Ce){he.selectHandle=Ce},he.getNodeState=function(){var Ce=he.props.expanded;return he.isLeaf()?null:Ce?z:ee},he.hasChildren=function(){var Ce=he.props.eventKey,Ae=he.props.context.keyEntities,tt=(0,x.Z)(Ae,Ce)||{},at=tt.children;return!!(at||[]).length},he.isLeaf=function(){var Ce=he.props,Ae=Ce.isLeaf,tt=Ce.loaded,at=he.props.context.loadData,st=he.hasChildren();return Ae===!1?!1:Ae||!at&&!st||at&&tt&&!st},he.isDisabled=function(){var Ce=he.props.disabled,Ae=he.props.context.disabled;return!!(Ae||Ce)},he.isCheckable=function(){var Ce=he.props.checkable,Ae=he.props.context.checkable;return!Ae||Ce===!1?!1:Ae},he.syncLoadData=function(Ce){var Ae=Ce.expanded,tt=Ce.loading,at=Ce.loaded,st=he.props.context,St=st.loadData,wt=st.onNodeLoad;tt||St&&Ae&&!he.isLeaf()&&!he.hasChildren()&&!at&&wt((0,b.F)(he.props))},he.isDraggable=function(){var Ce=he.props,Ae=Ce.data,tt=Ce.context.draggable;return!!(tt&&(!tt.nodeDraggable||tt.nodeDraggable(Ae)))},he.renderDragHandler=function(){var Ce=he.props.context,Ae=Ce.draggable,tt=Ce.prefixCls;return Ae!=null&&Ae.icon?Ke.createElement("span",{className:"".concat(tt,"-draggable-icon")},Ae.icon):null},he.renderSwitcherIconDom=function(Ce){var Ae=he.props.switcherIcon,tt=he.props.context.switcherIcon,at=Ae||tt;return typeof at=="function"?at((0,Ue.Z)((0,Ue.Z)({},he.props),{},{isLeaf:Ce})):at},he.renderSwitcher=function(){var Ce=he.props.expanded,Ae=he.props.context.prefixCls;if(he.isLeaf()){var tt=he.renderSwitcherIconDom(!0);return tt!==!1?Ke.createElement("span",{className:Re()("".concat(Ae,"-switcher"),"".concat(Ae,"-switcher-noop"))},tt):null}var at=Re()("".concat(Ae,"-switcher"),"".concat(Ae,"-switcher_").concat(Ce?z:ee)),st=he.renderSwitcherIconDom(!1);return st!==!1?Ke.createElement("span",{onClick:he.onExpand,className:at},st):null},he.renderCheckbox=function(){var Ce=he.props,Ae=Ce.checked,tt=Ce.halfChecked,at=Ce.disableCheckbox,st=he.props.context.prefixCls,St=he.isDisabled(),wt=he.isCheckable();if(!wt)return null;var Bt=typeof wt!="boolean"?wt:null;return Ke.createElement("span",{className:Re()("".concat(st,"-checkbox"),Ae&&"".concat(st,"-checkbox-checked"),!Ae&&tt&&"".concat(st,"-checkbox-indeterminate"),(St||at)&&"".concat(st,"-checkbox-disabled")),onClick:he.onCheck},Bt)},he.renderIcon=function(){var Ce=he.props.loading,Ae=he.props.context.prefixCls;return Ke.createElement("span",{className:Re()("".concat(Ae,"-iconEle"),"".concat(Ae,"-icon__").concat(he.getNodeState()||"docu"),Ce&&"".concat(Ae,"-icon_loading"))})},he.renderSelector=function(){var Ce=he.state.dragNodeHighlight,Ae=he.props,tt=Ae.title,at=tt===void 0?te:tt,st=Ae.selected,St=Ae.icon,wt=Ae.loading,Bt=Ae.data,Tt=he.props.context,Oe=Tt.prefixCls,_e=Tt.showIcon,ct=Tt.icon,Gt=Tt.loadData,nt=Tt.titleRender,$t=he.isDisabled(),ye="".concat(Oe,"-node-content-wrapper"),Et;if(_e){var Ht=St||ct;Et=Ht?Ke.createElement("span",{className:Re()("".concat(Oe,"-iconEle"),"".concat(Oe,"-icon__customize"))},typeof Ht=="function"?Ht(he.props):Ht):he.renderIcon()}else Gt&&wt&&(Et=he.renderIcon());var un;typeof at=="function"?un=at(Bt):nt?un=nt(Bt):un=at;var Xt=Ke.createElement("span",{className:"".concat(Oe,"-title")},un);return Ke.createElement("span",{ref:he.setSelectHandle,title:typeof at=="string"?at:"",className:Re()("".concat(ye),"".concat(ye,"-").concat(he.getNodeState()||"normal"),!$t&&(st||Ce)&&"".concat(Oe,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},Et,Xt,he.renderDropIndicator())},he.renderDropIndicator=function(){var Ce=he.props,Ae=Ce.disabled,tt=Ce.eventKey,at=he.props.context,st=at.draggable,St=at.dropLevelOffset,wt=at.dropPosition,Bt=at.prefixCls,Tt=at.indent,Oe=at.dropIndicatorRender,_e=at.dragOverNodeKey,ct=at.direction,Gt=!!st,nt=!Ae&&Gt&&_e===tt,$t=Tt!=null?Tt:he.cacheIndent;return he.cacheIndent=Tt,nt?Oe({dropPosition:wt,dropLevelOffset:St,indent:$t,prefixCls:Bt,direction:ct}):null},he}return(0,Be.Z)(Ee,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ft=this.props.selectable,it=this.props.context.selectable;return typeof ft=="boolean"?ft:it}},{key:"render",value:function(){var ft,it=this.props,_t=it.eventKey,Ce=it.className,Ae=it.style,tt=it.dragOver,at=it.dragOverGapTop,st=it.dragOverGapBottom,St=it.isLeaf,wt=it.isStart,Bt=it.isEnd,Tt=it.expanded,Oe=it.selected,_e=it.checked,ct=it.halfChecked,Gt=it.loading,nt=it.domRef,$t=it.active,ye=it.data,Et=it.onMouseMove,Ht=it.selectable,un=(0,De.Z)(it,E),Xt=this.props.context,Te=Xt.prefixCls,$e=Xt.filterTreeNode,Fe=Xt.keyEntities,me=Xt.dropContainerKey,Ve=Xt.dropTargetKey,vt=Xt.draggingNodeKey,pe=this.isDisabled(),ue=(0,et.Z)(un,{aria:!0,data:!0}),Ze=(0,x.Z)(Fe,_t)||{},Ne=Ze.level,Pe=Bt[Bt.length-1],Ge=this.isDraggable(),Lt=!pe&&Ge,mt=vt===_t,xt=Ht!==void 0?{"aria-selected":!!Ht}:void 0;return Ke.createElement("div",(0,ie.Z)({ref:nt,className:Re()(Ce,"".concat(Te,"-treenode"),(ft={},(0,ce.Z)(ft,"".concat(Te,"-treenode-disabled"),pe),(0,ce.Z)(ft,"".concat(Te,"-treenode-switcher-").concat(Tt?"open":"close"),!St),(0,ce.Z)(ft,"".concat(Te,"-treenode-checkbox-checked"),_e),(0,ce.Z)(ft,"".concat(Te,"-treenode-checkbox-indeterminate"),ct),(0,ce.Z)(ft,"".concat(Te,"-treenode-selected"),Oe),(0,ce.Z)(ft,"".concat(Te,"-treenode-loading"),Gt),(0,ce.Z)(ft,"".concat(Te,"-treenode-active"),$t),(0,ce.Z)(ft,"".concat(Te,"-treenode-leaf-last"),Pe),(0,ce.Z)(ft,"".concat(Te,"-treenode-draggable"),Ge),(0,ce.Z)(ft,"dragging",mt),(0,ce.Z)(ft,"drop-target",Ve===_t),(0,ce.Z)(ft,"drop-container",me===_t),(0,ce.Z)(ft,"drag-over",!pe&&tt),(0,ce.Z)(ft,"drag-over-gap-top",!pe&&at),(0,ce.Z)(ft,"drag-over-gap-bottom",!pe&&st),(0,ce.Z)(ft,"filter-node",$e&&$e((0,b.F)(this.props))),ft)),style:Ae,draggable:Lt,"aria-grabbed":mt,onDragStart:Lt?this.onDragStart:void 0,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:Et},xt,ue),Ke.createElement(a,{prefixCls:Te,level:Ne,isStart:wt,isEnd:Bt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ee}(Ke.Component),de=function(Se){return Ke.createElement(oe.k.Consumer,null,function(Ee){return Ke.createElement(ge,(0,ie.Z)({},Se,{context:Ee}))})};de.displayName="TreeNode",de.isTreeNode=1;var se=de},39378:function(qe,gt,ne){"use strict";ne.d(gt,{k:function(){return ce}});var ie=ne(59301),ce=ie.createContext(null)},60091:function(qe,gt,ne){"use strict";ne.d(gt,{O:function(){return se.Z},Z:function(){return Xt}});var ie=ne(54476),ce=ne(20068),De=ne(76190),Ue=ne(33885),we=ne(94480),Be=ne(67732),ae=ne(83652),Je=ne(31226),Xe=ne(42403),He=ne(158),Re=ne(92310),et=ne.n(Re),Ke=ne(10228),oe=ne(26112),y=ne(48736),a=ne(59301),x=ne(39378);function b(Te){var $e=Te.dropPosition,Fe=Te.dropLevelOffset,me=Te.indent,Ve={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($e){case-1:Ve.top=0,Ve.left=-Fe*me;break;case 1:Ve.bottom=0,Ve.left=-Fe*me;break;case 0:Ve.bottom=0,Ve.left=me;break}return a.createElement("div",{style:Ve})}function E(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var z=ne(42978),ee=ne(75931),te=ne(34280),ge=ne(48911),de=ne(77900),se=ne(39417);function be(Te,$e){var Fe=a.useState(!1),me=(0,z.Z)(Fe,2),Ve=me[0],vt=me[1];a.useLayoutEffect(function(){if(Ve)return Te(),function(){$e()}},[Ve]),a.useLayoutEffect(function(){return vt(!0),function(){vt(!1)}},[])}var Se=ne(71430),Ee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function($e,Fe){var me=$e.className,Ve=$e.style,vt=$e.motion,pe=$e.motionNodes,ue=$e.motionType,Ze=$e.onMotionStart,Ne=$e.onMotionEnd,Pe=$e.active,Ge=$e.treeNodeRequiredProps,Lt=(0,ee.Z)($e,Ee),mt=a.useState(!0),xt=(0,z.Z)(mt,2),lt=xt[0],yt=xt[1],ot=a.useContext(x.k),Zt=ot.prefixCls,Rt=pe&&ue!=="hide";(0,te.Z)(function(){pe&&Rt!==lt&&yt(Rt)},[pe]);var Nt=function(){pe&&Ze()},Jt=a.useRef(!1),Yt=function(){pe&&!Jt.current&&(Jt.current=!0,Ne())};be(Nt,Yt);var yn=function(En){Rt===En&&Yt()};return pe?a.createElement(de.default,(0,ie.Z)({ref:Fe,visible:lt},vt,{motionAppear:ue==="show",onVisibleChanged:yn}),function(rn,En){var Kn=rn.className,jn=rn.style;return a.createElement("div",{ref:En,className:et()("".concat(Zt,"-treenode-motion"),Kn),style:jn},pe.map(function(ht){var ut=(0,ie.Z)({},(E(ht.data),ht.data)),dt=ht.title,Ct=ht.key,vn=ht.isStart,kn=ht.isEnd;delete ut.children;var tn=(0,Se.H8)(Ct,Ge);return a.createElement(se.Z,(0,ie.Z)({},ut,tn,{title:dt,active:Pe,data:ht.data,key:Ct,isStart:vn,isEnd:kn}))}))}):a.createElement(se.Z,(0,ie.Z)({domRef:Fe,className:me,style:Ve},Lt,{active:Pe}))};he.displayName="MotionTreeNode";var ft=a.forwardRef(he),it=ft;function _t(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=Te.length,me=$e.length;if(Math.abs(Fe-me)!==1)return{add:!1,key:null};function Ve(vt,pe){var ue=new Map;vt.forEach(function(Ne){ue.set(Ne,!0)});var Ze=pe.filter(function(Ne){return!ue.has(Ne)});return Ze.length===1?Ze[0]:null}return Fe<me?{add:!0,key:Ve(Te,$e)}:{add:!1,key:Ve($e,Te)}}function Ce(Te,$e,Fe){var me=Te.findIndex(function(ue){return ue.key===Fe}),Ve=Te[me+1],vt=$e.findIndex(function(ue){return ue.key===Fe});if(Ve){var pe=$e.findIndex(function(ue){return ue.key===Ve.key});return $e.slice(vt+1,pe)}return $e.slice(vt+1)}var Ae=["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"],tt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},at=function(){},st="RC_TREE_MOTION_".concat(Math.random()),St={key:st},wt={key:st,level:0,index:0,pos:"0",node:St,nodes:[St]},Bt={parent:null,children:[],pos:wt.pos,data:St,title:null,key:st,isStart:[],isEnd:[]};function Tt(Te,$e,Fe,me){return $e===!1||!Fe?Te:Te.slice(0,Math.ceil(Fe/me)+1)}function Oe(Te){var $e=Te.key,Fe=Te.pos;return(0,Se.km)($e,Fe)}function _e(Te){for(var $e=String(Te.data.key),Fe=Te;Fe.parent;)Fe=Fe.parent,$e="".concat(Fe.data.key," > ").concat($e);return $e}var ct=a.forwardRef(function(Te,$e){var Fe=Te.prefixCls,me=Te.data,Ve=Te.selectable,vt=Te.checkable,pe=Te.expandedKeys,ue=Te.selectedKeys,Ze=Te.checkedKeys,Ne=Te.loadedKeys,Pe=Te.loadingKeys,Ge=Te.halfCheckedKeys,Lt=Te.keyEntities,mt=Te.disabled,xt=Te.dragging,lt=Te.dragOverNodeKey,yt=Te.dropPosition,ot=Te.motion,Zt=Te.height,Rt=Te.itemHeight,Nt=Te.virtual,Jt=Te.focusable,Yt=Te.activeItem,yn=Te.focused,rn=Te.tabIndex,En=Te.onKeyDown,Kn=Te.onFocus,jn=Te.onBlur,ht=Te.onActiveChange,ut=Te.onListChangeStart,dt=Te.onListChangeEnd,Ct=(0,ee.Z)(Te,Ae),vn=a.useRef(null),kn=a.useRef(null);a.useImperativeHandle($e,function(){return{scrollTo:function(ia){vn.current.scrollTo(ia)},getIndentWidth:function(){return kn.current.offsetWidth}}});var tn=a.useState(pe),Bn=(0,z.Z)(tn,2),Ln=Bn[0],Gn=Bn[1],da=a.useState(me),pa=(0,z.Z)(da,2),Zn=pa[0],ba=pa[1],xa=a.useState(me),_a=(0,z.Z)(xa,2),ke=_a[0],We=_a[1],je=a.useState([]),Mt=(0,z.Z)(je,2),mn=Mt[0],nn=Mt[1],Xn=a.useState(null),Tn=(0,z.Z)(Xn,2),sn=Tn[0],_n=Tn[1],Ba=a.useRef(me);Ba.current=me;function Ft(){var ea=Ba.current;ba(ea),We(ea),nn([]),_n(null),dt()}(0,te.Z)(function(){Gn(pe);var ea=_t(Ln,pe);if(ea.key!==null)if(ea.add){var ia=Zn.findIndex(function(Ya){var Ca=Ya.key;return Ca===ea.key}),ta=Tt(Ce(Zn,me,ea.key),Nt,Zt,Rt),Aa=Zn.slice();Aa.splice(ia+1,0,Bt),We(Aa),nn(ta),_n("show")}else{var Da=me.findIndex(function(Ya){var Ca=Ya.key;return Ca===ea.key}),Wa=Tt(Ce(me,Zn,ea.key),Nt,Zt,Rt),ro=me.slice();ro.splice(Da+1,0,Bt),We(ro),nn(Wa),_n("hide")}else Zn!==me&&(ba(me),We(me))},[pe,me]),a.useEffect(function(){xt||Ft()},[xt]);var Dn=ot?ke:me,va={expandedKeys:pe,selectedKeys:ue,loadedKeys:Ne,loadingKeys:Pe,checkedKeys:Ze,halfCheckedKeys:Ge,dragOverNodeKey:lt,dropPosition:yt,keyEntities:Lt};return a.createElement(a.Fragment,null,yn&&Yt&&a.createElement("span",{style:tt,"aria-live":"assertive"},_e(Yt)),a.createElement("div",null,a.createElement("input",{style:tt,disabled:Jt===!1||mt,tabIndex:Jt!==!1?rn:null,onKeyDown:En,onFocus:Kn,onBlur:jn,value:"",onChange:at,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(Fe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(Fe,"-indent")},a.createElement("div",{ref:kn,className:"".concat(Fe,"-indent-unit")}))),a.createElement(ge.Z,(0,ie.Z)({},Ct,{data:Dn,itemKey:Oe,height:Zt,fullHeight:!1,virtual:Nt,itemHeight:Rt,prefixCls:"".concat(Fe,"-list"),ref:vn,onVisibleChange:function(ia,ta){var Aa=new Set(ia),Da=ta.filter(function(Wa){return!Aa.has(Wa)});Da.some(function(Wa){return Oe(Wa)===st})&&Ft()}}),function(ea){var ia=ea.pos,ta=(0,ie.Z)({},(E(ea.data),ea.data)),Aa=ea.title,Da=ea.key,Wa=ea.isStart,ro=ea.isEnd,Ya=(0,Se.km)(Da,ia);delete ta.key,delete ta.children;var Ca=(0,Se.H8)(Ya,va);return a.createElement(it,(0,ie.Z)({},ta,Ca,{title:Aa,active:!!Yt&&Da===Yt.key,pos:ia,data:ea.data,isStart:Wa,isEnd:ro,motion:ot,motionNodes:Da===st?mn:null,motionType:sn,onMotionStart:ut,onMotionEnd:Ft,treeNodeRequiredProps:va,onMouseMove:function(){ht(null)}}))}))});ct.displayName="NodeList";var Gt=ct,nt=ne(35654),$t=ne(90782),ye=ne(67841),Et=10,Ht=function(Te){(0,Xe.Z)(Fe,Te);var $e=(0,He.Z)(Fe);function Fe(){var me;(0,Be.Z)(this,Fe);for(var Ve=arguments.length,vt=new Array(Ve),pe=0;pe<Ve;pe++)vt[pe]=arguments[pe];return me=$e.call.apply($e,[this].concat(vt)),me.destroyed=!1,me.delayedDragEnterLogic=void 0,me.loadingRetryTimes={},me.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,Se.w$)()},me.dragStartMousePosition=null,me.dragNode=void 0,me.currentMouseOverDroppableNodeKey=null,me.listRef=a.createRef(),me.onNodeDragStart=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,Ge=Ne.keyEntities,Lt=me.props.onDragStart,mt=Ze.props.eventKey;me.dragNode=Ze,me.dragStartMousePosition={x:ue.clientX,y:ue.clientY};var xt=(0,nt._5)(Pe,mt);me.setState({draggingNodeKey:mt,dragChildrenKeys:(0,nt.wA)(mt,Ge),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(xt),window.addEventListener("dragend",me.onWindowDragEnd),Lt==null||Lt({event:ue,node:(0,Se.F)(Ze.props)})},me.onNodeDragEnter=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,Ge=Ne.keyEntities,Lt=Ne.dragChildrenKeys,mt=Ne.flattenNodes,xt=Ne.indent,lt=me.props,yt=lt.onDragEnter,ot=lt.onExpand,Zt=lt.allowDrop,Rt=lt.direction,Nt=Ze.props,Jt=Nt.pos,Yt=Nt.eventKey,yn=(0,Je.Z)(me),rn=yn.dragNode;if(me.currentMouseOverDroppableNodeKey!==Yt&&(me.currentMouseOverDroppableNodeKey=Yt),!rn){me.resetDragState();return}var En=(0,nt.OM)(ue,rn,Ze,xt,me.dragStartMousePosition,Zt,mt,Ge,Pe,Rt),Kn=En.dropPosition,jn=En.dropLevelOffset,ht=En.dropTargetKey,ut=En.dropContainerKey,dt=En.dropTargetPos,Ct=En.dropAllowed,vn=En.dragOverNodeKey;if(Lt.indexOf(ht)!==-1||!Ct){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(kn){clearTimeout(me.delayedDragEnterLogic[kn])}),rn.props.eventKey!==Ze.props.eventKey&&(ue.persist(),me.delayedDragEnterLogic[Jt]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var kn=(0,we.Z)(Pe),tn=(0,ye.Z)(Ge,Ze.props.eventKey);tn&&(tn.children||[]).length&&(kn=(0,nt.L0)(Pe,Ze.props.eventKey)),"expandedKeys"in me.props||me.setExpandedKeys(kn),ot==null||ot(kn,{node:(0,Se.F)(Ze.props),expanded:!0,nativeEvent:ue.nativeEvent})}},800)),rn.props.eventKey===ht&&jn===0){me.resetDragState();return}me.setState({dragOverNodeKey:vn,dropPosition:Kn,dropLevelOffset:jn,dropTargetKey:ht,dropContainerKey:ut,dropTargetPos:dt,dropAllowed:Ct}),yt==null||yt({event:ue,node:(0,Se.F)(Ze.props),expandedKeys:Pe})},me.onNodeDragOver=function(ue,Ze){var Ne=me.state,Pe=Ne.dragChildrenKeys,Ge=Ne.flattenNodes,Lt=Ne.keyEntities,mt=Ne.expandedKeys,xt=Ne.indent,lt=me.props,yt=lt.onDragOver,ot=lt.allowDrop,Zt=lt.direction,Rt=(0,Je.Z)(me),Nt=Rt.dragNode;if(Nt){var Jt=(0,nt.OM)(ue,Nt,Ze,xt,me.dragStartMousePosition,ot,Ge,Lt,mt,Zt),Yt=Jt.dropPosition,yn=Jt.dropLevelOffset,rn=Jt.dropTargetKey,En=Jt.dropContainerKey,Kn=Jt.dropAllowed,jn=Jt.dropTargetPos,ht=Jt.dragOverNodeKey;Pe.indexOf(rn)!==-1||!Kn||(Nt.props.eventKey===rn&&yn===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():Yt===me.state.dropPosition&&yn===me.state.dropLevelOffset&&rn===me.state.dropTargetKey&&En===me.state.dropContainerKey&&jn===me.state.dropTargetPos&&Kn===me.state.dropAllowed&&ht===me.state.dragOverNodeKey||me.setState({dropPosition:Yt,dropLevelOffset:yn,dropTargetKey:rn,dropContainerKey:En,dropTargetPos:jn,dropAllowed:Kn,dragOverNodeKey:ht}),yt==null||yt({event:ue,node:(0,Se.F)(Ze.props)}))}},me.onNodeDragLeave=function(ue,Ze){me.currentMouseOverDroppableNodeKey===Ze.props.eventKey&&!ue.currentTarget.contains(ue.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var Ne=me.props.onDragLeave;Ne==null||Ne({event:ue,node:(0,Se.F)(Ze.props)})},me.onWindowDragEnd=function(ue){me.onNodeDragEnd(ue,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDragEnd=function(ue,Ze){var Ne=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),Ne==null||Ne({event:ue,node:(0,Se.F)(Ze.props)}),me.dragNode=null,window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDrop=function(ue,Ze){var Ne,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ge=me.state,Lt=Ge.dragChildrenKeys,mt=Ge.dropPosition,xt=Ge.dropTargetKey,lt=Ge.dropTargetPos,yt=Ge.dropAllowed;if(yt){var ot=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),xt!==null){var Zt=(0,Ue.Z)((0,Ue.Z)({},(0,Se.H8)(xt,me.getTreeNodeRequiredProps())),{},{active:((Ne=me.getActiveItem())===null||Ne===void 0?void 0:Ne.key)===xt,data:(0,ye.Z)(me.state.keyEntities,xt).node}),Rt=Lt.indexOf(xt)!==-1;(0,y.ZP)(!Rt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Nt=(0,nt.yx)(lt),Jt={event:ue,node:(0,Se.F)(Zt),dragNode:me.dragNode?(0,Se.F)(me.dragNode.props):null,dragNodesKeys:[me.dragNode.props.eventKey].concat(Lt),dropToGap:mt!==0,dropPosition:mt+Number(Nt[Nt.length-1])};Pe||ot==null||ot(Jt),me.dragNode=null}}},me.cleanDragState=function(){var ue=me.state.draggingNodeKey;ue!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null},me.triggerExpandActionExpand=function(ue,Ze){var Ne=me.state,Pe=Ne.expandedKeys,Ge=Ne.flattenNodes,Lt=Ze.expanded,mt=Ze.key,xt=Ze.isLeaf;if(!(xt||ue.shiftKey||ue.metaKey||ue.ctrlKey)){var lt=Ge.filter(function(ot){return ot.key===mt})[0],yt=(0,Se.F)((0,Ue.Z)((0,Ue.Z)({},(0,Se.H8)(mt,me.getTreeNodeRequiredProps())),{},{data:lt.data}));me.setExpandedKeys(Lt?(0,nt._5)(Pe,mt):(0,nt.L0)(Pe,mt)),me.onNodeExpand(ue,yt)}},me.onNodeClick=function(ue,Ze){var Ne=me.props,Pe=Ne.onClick,Ge=Ne.expandAction;Ge==="click"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeDoubleClick=function(ue,Ze){var Ne=me.props,Pe=Ne.onDoubleClick,Ge=Ne.expandAction;Ge==="doubleClick"&&me.triggerExpandActionExpand(ue,Ze),Pe==null||Pe(ue,Ze)},me.onNodeSelect=function(ue,Ze){var Ne=me.state.selectedKeys,Pe=me.state,Ge=Pe.keyEntities,Lt=Pe.fieldNames,mt=me.props,xt=mt.onSelect,lt=mt.multiple,yt=Ze.selected,ot=Ze[Lt.key],Zt=!yt;Zt?lt?Ne=(0,nt.L0)(Ne,ot):Ne=[ot]:Ne=(0,nt._5)(Ne,ot);var Rt=Ne.map(function(Nt){var Jt=(0,ye.Z)(Ge,Nt);return Jt?Jt.node:null}).filter(function(Nt){return Nt});me.setUncontrolledState({selectedKeys:Ne}),xt==null||xt(Ne,{event:"select",selected:Zt,node:Ze,selectedNodes:Rt,nativeEvent:ue.nativeEvent})},me.onNodeCheck=function(ue,Ze,Ne){var Pe=me.state,Ge=Pe.keyEntities,Lt=Pe.checkedKeys,mt=Pe.halfCheckedKeys,xt=me.props,lt=xt.checkStrictly,yt=xt.onCheck,ot=Ze.key,Zt,Rt={event:"check",node:Ze,checked:Ne,nativeEvent:ue.nativeEvent};if(lt){var Nt=Ne?(0,nt.L0)(Lt,ot):(0,nt._5)(Lt,ot),Jt=(0,nt._5)(mt,ot);Zt={checked:Nt,halfChecked:Jt},Rt.checkedNodes=Nt.map(function(jn){return(0,ye.Z)(Ge,jn)}).filter(function(jn){return jn}).map(function(jn){return jn.node}),me.setUncontrolledState({checkedKeys:Nt})}else{var Yt=(0,$t.S)([].concat((0,we.Z)(Lt),[ot]),!0,Ge),yn=Yt.checkedKeys,rn=Yt.halfCheckedKeys;if(!Ne){var En=new Set(yn);En.delete(ot);var Kn=(0,$t.S)(Array.from(En),{checked:!1,halfCheckedKeys:rn},Ge);yn=Kn.checkedKeys,rn=Kn.halfCheckedKeys}Zt=yn,Rt.checkedNodes=[],Rt.checkedNodesPositions=[],Rt.halfCheckedKeys=rn,yn.forEach(function(jn){var ht=(0,ye.Z)(Ge,jn);if(ht){var ut=ht.node,dt=ht.pos;Rt.checkedNodes.push(ut),Rt.checkedNodesPositions.push({node:ut,pos:dt})}}),me.setUncontrolledState({checkedKeys:yn},!1,{halfCheckedKeys:rn})}yt==null||yt(Zt,Rt)},me.onNodeLoad=function(ue){var Ze=ue.key,Ne=new Promise(function(Pe,Ge){me.setState(function(Lt){var mt=Lt.loadedKeys,xt=mt===void 0?[]:mt,lt=Lt.loadingKeys,yt=lt===void 0?[]:lt,ot=me.props,Zt=ot.loadData,Rt=ot.onLoad;if(!Zt||xt.indexOf(Ze)!==-1||yt.indexOf(Ze)!==-1)return null;var Nt=Zt(ue);return Nt.then(function(){var Jt=me.state.loadedKeys,Yt=(0,nt.L0)(Jt,Ze);Rt==null||Rt(Yt,{event:"load",node:ue}),me.setUncontrolledState({loadedKeys:Yt}),me.setState(function(yn){return{loadingKeys:(0,nt._5)(yn.loadingKeys,Ze)}}),Pe()}).catch(function(Jt){if(me.setState(function(yn){return{loadingKeys:(0,nt._5)(yn.loadingKeys,Ze)}}),me.loadingRetryTimes[Ze]=(me.loadingRetryTimes[Ze]||0)+1,me.loadingRetryTimes[Ze]>=Et){var Yt=me.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,nt.L0)(Yt,Ze)}),Pe()}Ge(Jt)}),{loadingKeys:(0,nt.L0)(yt,Ze)}})});return Ne.catch(function(){}),Ne},me.onNodeMouseEnter=function(ue,Ze){var Ne=me.props.onMouseEnter;Ne==null||Ne({event:ue,node:Ze})},me.onNodeMouseLeave=function(ue,Ze){var Ne=me.props.onMouseLeave;Ne==null||Ne({event:ue,node:Ze})},me.onNodeContextMenu=function(ue,Ze){var Ne=me.props.onRightClick;Ne&&(ue.preventDefault(),Ne({event:ue,node:Ze}))},me.onFocus=function(){var ue=me.props.onFocus;me.setState({focused:!0});for(var Ze=arguments.length,Ne=new Array(Ze),Pe=0;Pe<Ze;Pe++)Ne[Pe]=arguments[Pe];ue==null||ue.apply(void 0,Ne)},me.onBlur=function(){var ue=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var Ze=arguments.length,Ne=new Array(Ze),Pe=0;Pe<Ze;Pe++)Ne[Pe]=arguments[Pe];ue==null||ue.apply(void 0,Ne)},me.getTreeNodeRequiredProps=function(){var ue=me.state,Ze=ue.expandedKeys,Ne=ue.selectedKeys,Pe=ue.loadedKeys,Ge=ue.loadingKeys,Lt=ue.checkedKeys,mt=ue.halfCheckedKeys,xt=ue.dragOverNodeKey,lt=ue.dropPosition,yt=ue.keyEntities;return{expandedKeys:Ze||[],selectedKeys:Ne||[],loadedKeys:Pe||[],loadingKeys:Ge||[],checkedKeys:Lt||[],halfCheckedKeys:mt||[],dragOverNodeKey:xt,dropPosition:lt,keyEntities:yt}},me.setExpandedKeys=function(ue){var Ze=me.state,Ne=Ze.treeData,Pe=Ze.fieldNames,Ge=(0,Se.oH)(Ne,ue,Pe);me.setUncontrolledState({expandedKeys:ue,flattenNodes:Ge},!0)},me.onNodeExpand=function(ue,Ze){var Ne=me.state.expandedKeys,Pe=me.state,Ge=Pe.listChanging,Lt=Pe.fieldNames,mt=me.props,xt=mt.onExpand,lt=mt.loadData,yt=Ze.expanded,ot=Ze[Lt.key];if(!Ge){var Zt=Ne.indexOf(ot),Rt=!yt;if((0,y.ZP)(yt&&Zt!==-1||!yt&&Zt===-1,"Expand state not sync with index check"),Rt?Ne=(0,nt.L0)(Ne,ot):Ne=(0,nt._5)(Ne,ot),me.setExpandedKeys(Ne),xt==null||xt(Ne,{node:Ze,expanded:Rt,nativeEvent:ue.nativeEvent}),Rt&&lt){var Nt=me.onNodeLoad(Ze);Nt&&Nt.then(function(){var Jt=(0,Se.oH)(me.state.treeData,Ne,Lt);me.setUncontrolledState({flattenNodes:Jt})}).catch(function(){var Jt=me.state.expandedKeys,Yt=(0,nt._5)(Jt,ot);me.setExpandedKeys(Yt)})}}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(ue){var Ze=me.state.activeKey,Ne=me.props.onActiveChange;Ze!==ue&&(me.setState({activeKey:ue}),ue!==null&&me.scrollTo({key:ue}),Ne==null||Ne(ue))},me.getActiveItem=function(){var ue=me.state,Ze=ue.activeKey,Ne=ue.flattenNodes;return Ze===null?null:Ne.find(function(Pe){var Ge=Pe.key;return Ge===Ze})||null},me.offsetActiveKey=function(ue){var Ze=me.state,Ne=Ze.flattenNodes,Pe=Ze.activeKey,Ge=Ne.findIndex(function(xt){var lt=xt.key;return lt===Pe});Ge===-1&&ue<0&&(Ge=Ne.length),Ge=(Ge+ue+Ne.length)%Ne.length;var Lt=Ne[Ge];if(Lt){var mt=Lt.key;me.onActiveChange(mt)}else me.onActiveChange(null)},me.onKeyDown=function(ue){var Ze=me.state,Ne=Ze.activeKey,Pe=Ze.expandedKeys,Ge=Ze.checkedKeys,Lt=Ze.fieldNames,mt=me.props,xt=mt.onKeyDown,lt=mt.checkable,yt=mt.selectable;switch(ue.which){case Ke.Z.UP:{me.offsetActiveKey(-1),ue.preventDefault();break}case Ke.Z.DOWN:{me.offsetActiveKey(1),ue.preventDefault();break}}var ot=me.getActiveItem();if(ot&&ot.data){var Zt=me.getTreeNodeRequiredProps(),Rt=ot.data.isLeaf===!1||!!(ot.data[Lt.children]||[]).length,Nt=(0,Se.F)((0,Ue.Z)((0,Ue.Z)({},(0,Se.H8)(Ne,Zt)),{},{data:ot.data,active:!0}));switch(ue.which){case Ke.Z.LEFT:{Rt&&Pe.includes(Ne)?me.onNodeExpand({},Nt):ot.parent&&me.onActiveChange(ot.parent.key),ue.preventDefault();break}case Ke.Z.RIGHT:{Rt&&!Pe.includes(Ne)?me.onNodeExpand({},Nt):ot.children&&ot.children.length&&me.onActiveChange(ot.children[0].key),ue.preventDefault();break}case Ke.Z.ENTER:case Ke.Z.SPACE:{lt&&!Nt.disabled&&Nt.checkable!==!1&&!Nt.disableCheckbox?me.onNodeCheck({},Nt,!Ge.includes(Ne)):!lt&&yt&&!Nt.disabled&&Nt.selectable!==!1&&me.onNodeSelect({},Nt);break}}}xt==null||xt(ue)},me.setUncontrolledState=function(ue){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var Pe=!1,Ge=!0,Lt={};Object.keys(ue).forEach(function(mt){if(mt in me.props){Ge=!1;return}Pe=!0,Lt[mt]=ue[mt]}),Pe&&(!Ze||Ge)&&me.setState((0,Ue.Z)((0,Ue.Z)({},Lt),Ne))}},me.scrollTo=function(ue){me.listRef.current.scrollTo(ue)},me}return(0,ae.Z)(Fe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ve=this.props.activeKey;Ve!==void 0&&Ve!==this.state.activeKey&&(this.setState({activeKey:Ve}),Ve!==null&&this.scrollTo({key:Ve}))}},{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 Ve,vt=this.state,pe=vt.focused,ue=vt.flattenNodes,Ze=vt.keyEntities,Ne=vt.draggingNodeKey,Pe=vt.activeKey,Ge=vt.dropLevelOffset,Lt=vt.dropContainerKey,mt=vt.dropTargetKey,xt=vt.dropPosition,lt=vt.dragOverNodeKey,yt=vt.indent,ot=this.props,Zt=ot.prefixCls,Rt=ot.className,Nt=ot.style,Jt=ot.showLine,Yt=ot.focusable,yn=ot.tabIndex,rn=yn===void 0?0:yn,En=ot.selectable,Kn=ot.showIcon,jn=ot.icon,ht=ot.switcherIcon,ut=ot.draggable,dt=ot.checkable,Ct=ot.checkStrictly,vn=ot.disabled,kn=ot.motion,tn=ot.loadData,Bn=ot.filterTreeNode,Ln=ot.height,Gn=ot.itemHeight,da=ot.virtual,pa=ot.titleRender,Zn=ot.dropIndicatorRender,ba=ot.onContextMenu,xa=ot.onScroll,_a=ot.direction,ke=ot.rootClassName,We=ot.rootStyle,je=(0,oe.Z)(this.props,{aria:!0,data:!0}),Mt;return ut&&((0,De.Z)(ut)==="object"?Mt=ut:typeof ut=="function"?Mt={nodeDraggable:ut}:Mt={}),a.createElement(x.k.Provider,{value:{prefixCls:Zt,selectable:En,showIcon:Kn,icon:jn,switcherIcon:ht,draggable:Mt,draggingNodeKey:Ne,checkable:dt,checkStrictly:Ct,disabled:vn,keyEntities:Ze,dropLevelOffset:Ge,dropContainerKey:Lt,dropTargetKey:mt,dropPosition:xt,dragOverNodeKey:lt,indent:yt,direction:_a,dropIndicatorRender:Zn,loadData:tn,filterTreeNode:Bn,titleRender:pa,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}},a.createElement("div",{role:"tree",className:et()(Zt,Rt,ke,(Ve={},(0,ce.Z)(Ve,"".concat(Zt,"-show-line"),Jt),(0,ce.Z)(Ve,"".concat(Zt,"-focused"),pe),(0,ce.Z)(Ve,"".concat(Zt,"-active-focused"),Pe!==null),Ve)),style:We},a.createElement(Gt,(0,ie.Z)({ref:this.listRef,prefixCls:Zt,style:Nt,data:ue,disabled:vn,selectable:En,checkable:!!dt,motion:kn,dragging:Ne!==null,height:Ln,itemHeight:Gn,virtual:da,focusable:Yt,focused:pe,tabIndex:rn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ba,onScroll:xa},this.getTreeNodeRequiredProps(),je))))}}],[{key:"getDerivedStateFromProps",value:function(Ve,vt){var pe=vt.prevProps,ue={prevProps:Ve};function Ze(Yt){return!pe&&Yt in Ve||pe&&pe[Yt]!==Ve[Yt]}var Ne,Pe=vt.fieldNames;if(Ze("fieldNames")&&(Pe=(0,Se.w$)(Ve.fieldNames),ue.fieldNames=Pe),Ze("treeData")?Ne=Ve.treeData:Ze("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ne=(0,Se.zn)(Ve.children)),Ne){ue.treeData=Ne;var Ge=(0,Se.I8)(Ne,{fieldNames:Pe});ue.keyEntities=(0,Ue.Z)((0,ce.Z)({},st,wt),Ge.keyEntities)}var Lt=ue.keyEntities||vt.keyEntities;if(Ze("expandedKeys")||pe&&Ze("autoExpandParent"))ue.expandedKeys=Ve.autoExpandParent||!pe&&Ve.defaultExpandParent?(0,nt.r7)(Ve.expandedKeys,Lt):Ve.expandedKeys;else if(!pe&&Ve.defaultExpandAll){var mt=(0,Ue.Z)({},Lt);delete mt[st],ue.expandedKeys=Object.keys(mt).map(function(Yt){return mt[Yt].key})}else!pe&&Ve.defaultExpandedKeys&&(ue.expandedKeys=Ve.autoExpandParent||Ve.defaultExpandParent?(0,nt.r7)(Ve.defaultExpandedKeys,Lt):Ve.defaultExpandedKeys);if(ue.expandedKeys||delete ue.expandedKeys,Ne||ue.expandedKeys){var xt=(0,Se.oH)(Ne||vt.treeData,ue.expandedKeys||vt.expandedKeys,Pe);ue.flattenNodes=xt}if(Ve.selectable&&(Ze("selectedKeys")?ue.selectedKeys=(0,nt.BT)(Ve.selectedKeys,Ve):!pe&&Ve.defaultSelectedKeys&&(ue.selectedKeys=(0,nt.BT)(Ve.defaultSelectedKeys,Ve))),Ve.checkable){var lt;if(Ze("checkedKeys")?lt=(0,nt.E6)(Ve.checkedKeys)||{}:!pe&&Ve.defaultCheckedKeys?lt=(0,nt.E6)(Ve.defaultCheckedKeys)||{}:Ne&&(lt=(0,nt.E6)(Ve.checkedKeys)||{checkedKeys:vt.checkedKeys,halfCheckedKeys:vt.halfCheckedKeys}),lt){var yt=lt,ot=yt.checkedKeys,Zt=ot===void 0?[]:ot,Rt=yt.halfCheckedKeys,Nt=Rt===void 0?[]:Rt;if(!Ve.checkStrictly){var Jt=(0,$t.S)(Zt,!0,Lt);Zt=Jt.checkedKeys,Nt=Jt.halfCheckedKeys}ue.checkedKeys=Zt,ue.halfCheckedKeys=Nt}}return Ze("loadedKeys")&&(ue.loadedKeys=Ve.loadedKeys),ue}}]),Fe}(a.Component);Ht.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:b,allowDrop:function(){return!0},expandAction:!1},Ht.TreeNode=se.Z;var un=Ht,Xt=un},35654:function(qe,gt,ne){"use strict";ne.d(gt,{BT:function(){return a},E6:function(){return E},L0:function(){return He},OM:function(){return y},_5:function(){return Xe},r7:function(){return z},wA:function(){return et},yx:function(){return Re}});var ie=ne(94480),ce=ne(76190),De=ne(48736),Ue=ne(59301),we=ne(39417),Be=ne(67841),ae=ne(71430),Je=null;function Xe(ee,te){if(!ee)return[];var ge=ee.slice(),de=ge.indexOf(te);return de>=0&&ge.splice(de,1),ge}function He(ee,te){var ge=(ee||[]).slice();return ge.indexOf(te)===-1&&ge.push(te),ge}function Re(ee){return ee.split("-")}function et(ee,te){var ge=[],de=(0,Be.Z)(te,ee);function se(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(Se){var Ee=Se.key,he=Se.children;ge.push(Ee),se(he)})}return se(de.children),ge}function Ke(ee){if(ee.parent){var te=Re(ee.pos);return Number(te[te.length-1])===ee.parent.children.length-1}return!1}function oe(ee){var te=Re(ee.pos);return Number(te[te.length-1])===0}function y(ee,te,ge,de,se,be,Se,Ee,he,ft){var it,_t=ee.clientX,Ce=ee.clientY,Ae=ee.target.getBoundingClientRect(),tt=Ae.top,at=Ae.height,st=(ft==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-_t),St=(st-12)/de,wt=(0,Be.Z)(Ee,ge.props.eventKey);if(Ce<tt+at/2){var Bt=Se.findIndex(function(Xt){return Xt.key===wt.key}),Tt=Bt<=0?0:Bt-1,Oe=Se[Tt].key;wt=(0,Be.Z)(Ee,Oe)}var _e=wt.key,ct=wt,Gt=wt.key,nt=0,$t=0;if(!he.includes(_e))for(var ye=0;ye<St&&Ke(wt);ye+=1)wt=wt.parent,$t+=1;var Et=te.props.data,Ht=wt.node,un=!0;return oe(wt)&&wt.level===0&&Ce<tt+at/2&&be({dragNode:Et,dropNode:Ht,dropPosition:-1})&&wt.key===ge.props.eventKey?nt=-1:(ct.children||[]).length&&he.includes(Gt)?be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:un=!1:$t===0?St>-1.5?be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1:be({dragNode:Et,dropNode:Ht,dropPosition:0})?nt=0:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1:be({dragNode:Et,dropNode:Ht,dropPosition:1})?nt=1:un=!1,{dropPosition:nt,dropLevelOffset:$t,dropTargetKey:wt.key,dropTargetPos:wt.pos,dragOverNodeKey:Gt,dropContainerKey:nt===0?null:((it=wt.parent)===null||it===void 0?void 0:it.key)||null,dropAllowed:un}}function a(ee,te){if(ee){var ge=te.multiple;return ge?ee.slice():ee.length?[ee[0]]:ee}}var x=function(te){return te};function b(ee,te){if(!ee)return[];var ge=te||{},de=ge.processProps,se=de===void 0?x:de,be=Array.isArray(ee)?ee:[ee];return be.map(function(Se){var Ee=Se.children,he=_objectWithoutProperties(Se,Je),ft=b(Ee,te);return React.createElement(TreeNode,_extends({key:he.key},se(he)),ft)})}function E(ee){if(!ee)return null;var te;if(Array.isArray(ee))te={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,ce.Z)(ee)==="object")te={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,De.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return te}function z(ee,te){var ge=new Set;function de(se){if(!ge.has(se)){var be=(0,Be.Z)(te,se);if(be){ge.add(se);var Se=be.parent,Ee=be.node;Ee.disabled||Se&&de(Se.key)}}}return(ee||[]).forEach(function(se){de(se)}),(0,ie.Z)(ge)}},90782:function(qe,gt,ne){"use strict";ne.d(gt,{S:function(){return ae}});var ie=ne(48736),ce=ne(67841);function De(Je,Xe){var He=new Set;return Je.forEach(function(Re){Xe.has(Re)||He.add(Re)}),He}function Ue(Je){var Xe=Je||{},He=Xe.disabled,Re=Xe.disableCheckbox,et=Xe.checkable;return!!(He||Re)||et===!1}function we(Je,Xe,He,Re){for(var et=new Set(Je),Ke=new Set,oe=0;oe<=He;oe+=1){var y=Xe.get(oe)||new Set;y.forEach(function(E){var z=E.key,ee=E.node,te=E.children,ge=te===void 0?[]:te;et.has(z)&&!Re(ee)&&ge.filter(function(de){return!Re(de.node)}).forEach(function(de){et.add(de.key)})})}for(var a=new Set,x=He;x>=0;x-=1){var b=Xe.get(x)||new Set;b.forEach(function(E){var z=E.parent,ee=E.node;if(!(Re(ee)||!E.parent||a.has(E.parent.key))){if(Re(E.parent.node)){a.add(z.key);return}var te=!0,ge=!1;(z.children||[]).filter(function(de){return!Re(de.node)}).forEach(function(de){var se=de.key,be=et.has(se);te&&!be&&(te=!1),!ge&&(be||Ke.has(se))&&(ge=!0)}),te&&et.add(z.key),ge&&Ke.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(et),halfCheckedKeys:Array.from(De(Ke,et))}}function Be(Je,Xe,He,Re,et){for(var Ke=new Set(Je),oe=new Set(Xe),y=0;y<=Re;y+=1){var a=He.get(y)||new Set;a.forEach(function(z){var ee=z.key,te=z.node,ge=z.children,de=ge===void 0?[]:ge;!Ke.has(ee)&&!oe.has(ee)&&!et(te)&&de.filter(function(se){return!et(se.node)}).forEach(function(se){Ke.delete(se.key)})})}oe=new Set;for(var x=new Set,b=Re;b>=0;b-=1){var E=He.get(b)||new Set;E.forEach(function(z){var ee=z.parent,te=z.node;if(!(et(te)||!z.parent||x.has(z.parent.key))){if(et(z.parent.node)){x.add(ee.key);return}var ge=!0,de=!1;(ee.children||[]).filter(function(se){return!et(se.node)}).forEach(function(se){var be=se.key,Se=Ke.has(be);ge&&!Se&&(ge=!1),!de&&(Se||oe.has(be))&&(de=!0)}),ge||Ke.delete(ee.key),de&&oe.add(ee.key),x.add(ee.key)}})}return{checkedKeys:Array.from(Ke),halfCheckedKeys:Array.from(De(oe,Ke))}}function ae(Je,Xe,He,Re){var et=[],Ke;Re?Ke=Re:Ke=Ue;var oe=new Set(Je.filter(function(b){var E=!!(0,ce.Z)(He,b);return E||et.push(b),E})),y=new Map,a=0;Object.keys(He).forEach(function(b){var E=He[b],z=E.level,ee=y.get(z);ee||(ee=new Set,y.set(z,ee)),ee.add(E),a=Math.max(a,z)}),(0,ie.ZP)(!et.length,"Tree missing follow keys: ".concat(et.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var x;return Xe===!0?x=we(oe,y,a,Ke):x=Be(oe,Xe.halfCheckedKeys,y,a,Ke),x}},67841:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ie}});function ie(ce,De){return ce[De]}},71430:function(qe,gt,ne){"use strict";ne.d(gt,{F:function(){return z},H8:function(){return E},I8:function(){return b},km:function(){return et},oH:function(){return a},w$:function(){return Ke},zn:function(){return y}});var ie=ne(76190),ce=ne(94480),De=ne(33885),Ue=ne(75931),we=ne(11592),Be=ne(2738),ae=ne(48736),Je=ne(67841),Xe=["children"];function He(ee,te){return"".concat(ee,"-").concat(te)}function Re(ee){return ee&&ee.type&&ee.type.isTreeNode}function et(ee,te){return ee!=null?ee:te}function Ke(ee){var te=ee||{},ge=te.title,de=te._title,se=te.key,be=te.children,Se=ge||"title";return{title:Se,_title:de||[Se],key:se||"key",children:be||"children"}}function oe(ee,te){var ge=new Map;function de(se){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(se||[]).forEach(function(Se){var Ee=Se[te.key],he=Se[te.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(be).concat(Ee,"]"));var ft=String(Ee);warning(!ge.has(ft)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(ft)),ge.set(ft,!0),de(he,"".concat(be).concat(ft," > "))})}de(ee)}function y(ee){function te(ge){var de=(0,we.Z)(ge);return de.map(function(se){if(!Re(se))return(0,ae.ZP)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var be=se.key,Se=se.props,Ee=Se.children,he=(0,Ue.Z)(Se,Xe),ft=(0,De.Z)({key:be},he),it=te(Ee);return it.length&&(ft.children=it),ft}).filter(function(se){return se})}return te(ee)}function a(ee,te,ge){var de=Ke(ge),se=de._title,be=de.key,Se=de.children,Ee=new Set(te===!0?[]:te),he=[];function ft(it){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return it.map(function(Ce,Ae){for(var tt=He(_t?_t.pos:"0",Ae),at=et(Ce[be],tt),st,St=0;St<se.length;St+=1){var wt=se[St];if(Ce[wt]!==void 0){st=Ce[wt];break}}var Bt=(0,De.Z)((0,De.Z)({},(0,Be.Z)(Ce,[].concat((0,ce.Z)(se),[be,Se]))),{},{title:st,key:at,parent:_t,pos:tt,children:null,data:Ce,isStart:[].concat((0,ce.Z)(_t?_t.isStart:[]),[Ae===0]),isEnd:[].concat((0,ce.Z)(_t?_t.isEnd:[]),[Ae===it.length-1])});return he.push(Bt),te===!0||Ee.has(at)?Bt.children=ft(Ce[Se]||[],Bt):Bt.children=[],Bt})}return ft(ee),he}function x(ee,te,ge){var de={};(0,ie.Z)(ge)==="object"?de=ge:de={externalGetKey:ge},de=de||{};var se=de,be=se.childrenPropName,Se=se.externalGetKey,Ee=se.fieldNames,he=Ke(Ee),ft=he.key,it=he.children,_t=be||it,Ce;Se?typeof Se=="string"?Ce=function(at){return at[Se]}:typeof Se=="function"&&(Ce=function(at){return Se(at)}):Ce=function(at,st){return et(at[ft],st)};function Ae(tt,at,st,St){var wt=tt?tt[_t]:ee,Bt=tt?He(st.pos,at):"0",Tt=tt?[].concat((0,ce.Z)(St),[tt]):[];if(tt){var Oe=Ce(tt,Bt),_e={node:tt,index:at,pos:Bt,key:Oe,parentPos:st.node?st.pos:null,level:st.level+1,nodes:Tt};te(_e)}wt&&wt.forEach(function(ct,Gt){Ae(ct,Gt,{node:tt,pos:Bt,level:st?st.level+1:-1},Tt)})}Ae(null)}function b(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=te.initWrapper,de=te.processEntity,se=te.onProcessFinished,be=te.externalGetKey,Se=te.childrenPropName,Ee=te.fieldNames,he=arguments.length>2?arguments[2]:void 0,ft=be||he,it={},_t={},Ce={posEntities:it,keyEntities:_t};return ge&&(Ce=ge(Ce)||Ce),x(ee,function(Ae){var tt=Ae.node,at=Ae.index,st=Ae.pos,St=Ae.key,wt=Ae.parentPos,Bt=Ae.level,Tt=Ae.nodes,Oe={node:tt,nodes:Tt,index:at,key:St,pos:st,level:Bt},_e=et(St,st);it[st]=Oe,_t[_e]=Oe,Oe.parent=it[wt],Oe.parent&&(Oe.parent.children=Oe.parent.children||[],Oe.parent.children.push(Oe)),de&&de(Oe,Ce)},{externalGetKey:ft,childrenPropName:Se,fieldNames:Ee}),se&&se(Ce),Ce}function E(ee,te){var ge=te.expandedKeys,de=te.selectedKeys,se=te.loadedKeys,be=te.loadingKeys,Se=te.checkedKeys,Ee=te.halfCheckedKeys,he=te.dragOverNodeKey,ft=te.dropPosition,it=te.keyEntities,_t=(0,Je.Z)(it,ee),Ce={eventKey:ee,expanded:ge.indexOf(ee)!==-1,selected:de.indexOf(ee)!==-1,loaded:se.indexOf(ee)!==-1,loading:be.indexOf(ee)!==-1,checked:Se.indexOf(ee)!==-1,halfChecked:Ee.indexOf(ee)!==-1,pos:String(_t?_t.pos:""),dragOver:he===ee&&ft===0,dragOverGapTop:he===ee&&ft===-1,dragOverGapBottom:he===ee&&ft===1};return Ce}function z(ee){var te=ee.data,ge=ee.expanded,de=ee.selected,se=ee.checked,be=ee.loaded,Se=ee.loading,Ee=ee.halfChecked,he=ee.dragOver,ft=ee.dragOverGapTop,it=ee.dragOverGapBottom,_t=ee.pos,Ce=ee.active,Ae=ee.eventKey,tt=(0,De.Z)((0,De.Z)({},te),{},{expanded:ge,selected:de,checked:se,loaded:be,loading:Se,halfChecked:Ee,dragOver:he,dragOverGapTop:ft,dragOverGapBottom:it,pos:_t,active:Ce,key:Ae});return"props"in tt||Object.defineProperty(tt,"props",{get:function(){return(0,ae.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),tt}},8224:function(qe,gt,ne){"use strict";ne.d(gt,{Z:function(){return ce}});var ie=ne(4676);function ce(De,Ue,we,Be){var ae=ie.unstable_batchedUpdates?function(Xe){ie.unstable_batchedUpdates(we,Xe)}:we;return De!=null&&De.addEventListener&&De.addEventListener(Ue,ae,Be),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ue,ae,Be)}}}},55468:function(qe,gt,ne){"use strict";ne.d(gt,{g1:function(){return Re},os:function(){return Ke}});var ie=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},De={cssFloat:1,styleFloat:1,float:1};function Ue(oe){return oe.nodeType===1?oe.ownerDocument.defaultView.getComputedStyle(oe,null):{}}function we(oe,y,a){if(y=y.toLowerCase(),a==="auto"){if(y==="height")return oe.offsetHeight;if(y==="width")return oe.offsetWidth}return y in ce||(ce[y]=ie.test(y)),ce[y]?parseFloat(a)||0:a}function Be(oe,y){var a=arguments.length,x=Ue(oe);return y=De[y]?"cssFloat"in oe.style?"cssFloat":"styleFloat":y,a===1?x:we(oe,y,x[y]||oe.style[y])}function ae(oe,y,a){var x=arguments.length;if(y=De[y]?"cssFloat"in oe.style?"cssFloat":"styleFloat":y,x===3)return typeof a=="number"&&ie.test(y)&&(a="".concat(a,"px")),oe.style[y]=a,a;for(var b in y)y.hasOwnProperty(b)&&ae(oe,b,y[b]);return Ue(oe)}function Je(oe){return oe===document.body?document.documentElement.clientWidth:oe.offsetWidth}function Xe(oe){return oe===document.body?window.innerHeight||document.documentElement.clientHeight:oe.offsetHeight}function He(){var oe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:oe,height:y}}function Re(){var oe=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:oe,height:y}}function et(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ke(oe){var y=oe.getBoundingClientRect(),a=document.documentElement;return{left:y.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},3465:function(qe,gt,ne){"use strict";ne.d(gt,{G:function(){return Ue}});var ie=ne(47273),ce=function(Be){if((0,ie.Z)()&&window.document.documentElement){var ae=Array.isArray(Be)?Be:[Be],Je=window.document.documentElement;return ae.some(function(Xe){return Xe in Je.style})}return!1},De=function(Be,ae){if(!ce(Be))return!1;var Je=document.createElement("div"),Xe=Je.style[Be];return Je.style[Be]=ae,Je.style[Be]!==Xe};function Ue(we,Be){return!Array.isArray(we)&&Be!==void 0?De(we,Be):ce(we)}}}]);