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__Paperlibrary__Random__Ed...

298 lines
1.2 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},59477:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},49198:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},87169:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},52671:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},8657:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},56082:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},33853:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},12893:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},15075:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},32134:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},43531:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},38819:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Te,He){return se.createElement(Ie.Z,(0,b.Z)({},Te,{ref:He,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue},93938:function(_t,Ot){"use strict";Ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11037:function(_t,Ot){"use strict";Ot.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},13021:function(_t,Ot,ae){"use strict";var b=ae(59301),se=Object.defineProperty,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Oe=(We,Te,He)=>Te in We?se(We,Te,{enumerable:!0,configurable:!0,writable:!0,value:He}):We[Te]=He,ue=(We,Te)=>{for(var He in Te||(Te={}))Ae.call(Te,He)&&Oe(We,He,Te[He]);if(be)for(var He of be(Te))Ie.call(Te,He)&&Oe(We,He,Te[He]);return We};const ke=We=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Ot.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},37404:function(){"use strict";function _t(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(_t.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(_t.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(_t.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(_t.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof _t))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[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var Ot=[];function ae(le,E){var a=Ot.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=Ot.pop();return le===void 0?new go.Point:le}function se(le){Ot.push(le)}function be(le,E,a,x,y,z,te,re,ie){ie||(ie=new go.Point);var ce=le-a,pe=y-te,ge=NaN,Ee=NaN;if(ce===0)if(pe===0)le===a&&(ge=le,Ee=E);else{var ye=(z-re)/pe,Re=z-ye*y;ge=le,Ee=ye*ge+Re}else if(pe===0){var he=(E-x)/ce,qe=E-he*le;ge=y,Ee=he*ge+qe}else{var he=(E-x)/ce,ye=(z-re)/pe,qe=E-he*le,Re=z-ye*y;ge=(Re-qe)/(he-ye),Ee=he*ge+qe}return ie.x=ge,ie.y=Ee,ie}function Ae(le,E,a,x,y,z,te,re,ie,ce,pe,ge,Ee,ye){var Re=1-ie,he=ie,qe=le*Re+a*he,je=E*Re+x*he,ot=a*Re+y*he,Le=x*Re+z*he,Je=y*Re+te*he,st=z*Re+re*he,Ke=qe*Re+ot*he,$e=je*Re+Le*he,Wt=ot*Re+Je*he,it=Le*Re+st*he,jt=Ke*Re+Wt*he,Xt=$e*Re+it*he;ce.x=qe,ce.y=je,pe.x=Ke,pe.y=$e,ge.x=jt,ge.y=Xt,Ee.x=Wt,Ee.y=it,ye.x=Je,ye.y=st}var Ie=new go.Spot(.156,.156),Oe=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _t("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*ue,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/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(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Ie,y.spot2=Oe,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,ue*E,0,E,(1-ue)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,ue*a,(1-ue)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,ue*a,ue*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ue)*E,0,0,(1-ue)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _t("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new _t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E:x>E&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("Trapezoid1",0,new _t("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new _t("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=20:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("ManualOperation",0,new _t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}});var ke=[];function We(){var le=ke.pop();return le===void 0?[]:le}function Te(le){le.length=0,ke.push(le)}function He(le){for(var E=We(),a=.5,x=.5,y=Math.PI*1.5,z=0,te=0;te<le;te++)z=2*Math.PI/le*te+y,E[te]=new go.Point(x+a*Math.cos(z),x+a*Math.sin(z));return E.push(E[0]),E}function Ze(le){var E=De(le),a=We();a[0]=E[0];for(var x=1,y=1;x<E.length;x+=2,y+=3)a[y]=E[x],a[y+1]=E[x],a[y+2]=E[x+1];return Te(E),a}function De(le){for(var E=He(le),a=We(),x=Math.floor(E.length/2),y=E.length-1,z=le%2===0?2:1,te=0;te<y;te++){var re=E[te],ie=E[te+1],ce=E[(x+te-1)%y],pe=E[(x+te+z)%y];a[te*2]=re,a[te*2+1]=be(re.x,re.y,ce.x,ce.y,ie.x,ie.y,pe.x,pe.y,new go.Point)}return a[a.length]=a[0],Te(E),a}go.Shape.defineFigureGenerator("Pentagon",function(le,E,a){var x=He(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<5;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(le,E,a){var x=He(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<6;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(le,E,a){var x=He(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<7;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(le,E,a){var x=He(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<8;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(le,E,a){var x=He(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<9;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(le,E,a){var x=He(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<10;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(le,E,a){var x=He(12),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<12;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(le,E,a){var x=De(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<10;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(le,E,a){var x=De(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<12;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(le,E,a){var x=De(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<14;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(le,E,a){var x=De(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<16;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(le,E,a){var x=De(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<18;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(le,E,a){var x=De(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<20;te++)z.add(new go.PathSegment(go.PathSegment.Line,x[te].x*E,x[te].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Te(x),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(le,E,a){var x=Ze(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(le,E,a){var x=Ze(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(le,E,a){var x=Ze(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(le,E,a){var x=Ze(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(le,E,a){var x=Ze(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(le,E,a){var x=Ze(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var te=1;te<x.length;te+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[te+2].x*E,x[te+2].y*a,x[te].x*E,x[te].y*a,x[te+1].x*E,x[te+1].y*a));return z.segments.last().close(),Te(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new _t("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new _t("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=8),isNaN(y)&&(y=8);var z=new go.Geometry,te=new go.PathFigure(0,0,!0);return z.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<E/2&&y<a/2&&(te.add(new go.PathSegment(go.PathSegment.Move,x,y)),te.add(new go.PathSegment(go.PathSegment.Line,x,a-y)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,a-y)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,y).close())),z.setSpots(0,0,1,1,x,y,-x,-y),z}),go.Shape.setFigureParameter("Ring",0,new _t("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var y=E/2,z=new go.Geometry,te=new go.PathFigure(E,E/2,!0);z.add(te),te.add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close());var re=Math.max(y-x,0);return re>0&&(te.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=Ie,z.spot2=Oe,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,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 _t("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _t("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var te=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,te,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=ue/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _t("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _t("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new _t("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,te=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ce=x-Math.min(Math.sin(re)*x/2,te),y=new go.Geometry,pe=new go.PathFigure(ie,0,!0);return y.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),pe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),pe.add(new go.PathSegment(go.PathSegment.Line,E,ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,E,a-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),pe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),pe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,a-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new _t("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new _t("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new _t("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,ue*E,0,E,(.5-ue/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+ue/2)*a,ue*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,te=.3,re=0,ie=z*ue;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-ie+re)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te+.05)*E,(.5-ie+re-.02)*a)),z=.2,te=0,re=-.3,ie=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+re)*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te)*E,(.5-ie+re)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),z=.2,te=-.3,re=0,ie=z*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+re)*a,(1-.5+z+te-.05)*E,(.5-ie+re-.02)*a,(.5+ie+te)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+re)*a,(.5-ie+te)*E,(.5-z+re)*a,(.5-z+te)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+re)*a,(.5-z+te)*E,(.5+ie+re)*a,(.5-ie+te)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+te)*E,(.5+z+re)*a,(.5+z+te)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,te=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(te+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*te,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((te+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*te,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,ie=new go.PathFigure(te*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),z=.4,y=ue*.4;var ce=b(),pe=b(),ge=b(),Ee=b();Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.42,ce,pe,ge,Ee,Ee);var ye=b(),Re=b(),he=b();Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.58,Ee,Ee,he,ye,Re);var qe=b(),je=b(),ot=b();Ae(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.42,qe,je,ot,Ee,Ee);var Le=b(),Je=b(),st=b();return Ae(te,re+z,te-y,re+z,te-z,re+y,te-z,re,.58,Ee,Ee,st,Le,Je),ie.add(new go.PathSegment(go.PathSegment.Move,st.x*E,st.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,Le.x*E,Le.y*a,Je.x*E,Je.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,ce.x*E,ce.y*a,pe.x*E,pe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,st.x*E,st.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,ot.x*E,ot.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,he.x*E,he.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,ye.x*E,ye.y*a,Re.x*E,Re.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ot.x*E,ot.y*a,qe.x*E,qe.y*a,je.x*E,je.y*a).close()),se(ce),se(pe),se(ge),se(Ee),se(ye),se(Re),se(he),se(qe),se(je),se(ot),se(Le),se(Je),se(st),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _t("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,ie=b(),ce=b(),pe=b(),ge=b(),Ee=new go.PathFigure((te-z)*E,re*a,!1);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.44,pe,ge,ce,ie,ie),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a));var ye=ae(ce.x,ce.y);Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.56,ie,ie,ce,pe,ge);var Re=ae(ce.x,ce.y);Ee.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.95*.9)*E,ye.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*E,ye.y*.1*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*E,.15*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*E,(Re.y*.1+.05*.9)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,Re.x*E,Re.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),z=.35,y=ue*.35;var he=new go.PathFigure(te*E,(re-z)*a,!1);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a));var qe=new go.PathFigure((te-z)*E,re*a,!1);return x.add(qe),se(ie),se(ce),se(pe),se(ge),se(ye),se(Re),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(le,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,re=y*ue,ie=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+re+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-re+te)*a,(.5+re+z)*E,(.5-y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+re+te)*a,(.5-re+z)*E,(.5+y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,re=y*ue;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+re+te)*a,(.5+re+z)*E,(.5+y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a,(.5-re+z)*E,(.5-y+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+re+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-re+te)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(ie),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(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,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*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _t("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _t("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,te=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ce=new go.PathFigure(0,te,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z,te)),ce.add(new go.PathSegment(go.PathSegment.Line,z,0)),ce.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,te/a);var pe=be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(pe.x,pe.y),se(pe),ie}),go.Shape.setFigureParameter("Arrow2",0,new _t("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _t("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,te=(a-y)/2,re=te+y,ie=new go.Geometry,ce=new go.PathFigure(0,te,!0);ie.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z,te)),ce.add(new go.PathSegment(go.PathSegment.Line,z,0)),ce.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,a)),ce.add(new go.PathSegment(go.PathSegment.Line,z,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,te/a);var pe=be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(pe.x,pe.y),se(pe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _t("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=be(0,.5,.3,0,0,y/a,.1,y/a,b());return te.spot1=new go.Spot(ie.x,ie.y),ie=be(.7,1,1,.5,0,z/a,1,z/a,ie),te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _t("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _t("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,ie=a):(z=0,te=a,re=0,ie=a));var ce=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var ge=be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ce.spot1=new go.Spot(ge.x,ge.y),ge=be(.7,ie/a,1,.5,0,te/a,1,te/a,ge),ce.spot2=new go.Spot(ge.x,ge.y),se(ge),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new _t("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(0,y/a);var ie=be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new _t("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _t("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,re=0,ie=a):(z=0,te=a,re=0,ie=a));var ce=new go.Geometry,pe=new go.PathFigure(E,.5*a,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ce.spot1=new go.Spot(0,z/a);var ge=be(.7,ie/a,1,.5,0,te/a,1,te/a,b());return ce.spot2=new go.Spot(ge.x,ge.y),se(ge),ce}),go.Shape.setFigureParameter("Pointer",0,new _t("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var te=be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),se(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new _t("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var te=be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),se(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new _t("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,.3);var ie=be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _t("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var te=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,y/a);var ie=be(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ie.x,ie.y),se(ie),te}),go.Shape.setFigureParameter("SquareArrow",0,new _t("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(0,.9*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(0,x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,ue*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-ue*x,(.5+z)*E,1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-ue*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-ue*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(0,a-x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,ue*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,ue*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-ue*x,(.5+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-ue*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-ue*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-ue*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-ue*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-ue*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,ue*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+ue*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+ue*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=ue*.5,te=new go.PathFigure(E-x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-ue*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-ue*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,ue*x,0)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-ue*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-ue*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,te=ue*y,re=ue*z,ie=.5,ce=.1,pe=new go.PathFigure(ie*E,(ce+z)*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ce*a,(ie-te)*E,(ce+z)*a,(ie-y)*E,(ce+re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-z)*a,(ie-y)*E,(ce-re)*a,(ie-te)*E,(ce-z)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ce*a,(ie+te)*E,(ce-z)*a,(ie+y)*E,(ce-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+z)*a,(ie+y)*E,(ce+re)*a,(ie+te)*E,(ce+z)*a));var ge=.05,Ee=ue*ge;ie=.05,ce=.25;var ye=new go.PathFigure(.5*E,.2*a,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ce=.25,ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ge)*E,ce*a,(ie+Ee)*E,(ce-ge)*a,(ie+ge)*E,(ce-Ee)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),ge=.025,Ee=ue*ge,ie=.825,ce=.35,ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-Ee)*a,(ie+Ee)*E,(ce-ge)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-Ee)*E,(ce-ge)*a,(ie-ge)*E,(ce-Ee)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),ge=.05,Ee=ue*ge,ie=.5,ce=.7,ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-Ee)*a,(ie+Ee)*E,(ce-ge)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-Ee)*E,(ce-ge)*a,(ie-ge)*E,(ce-Ee)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),ge=.025,Ee=ue*ge,ie=.175,ce=.35,ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie+ge)*E,(ce-Ee)*a,(ie+Ee)*E,(ce-ge)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ge)*E,ce*a,(ie-Ee)*E,(ce-ge)*a,(ie-ge)*E,(ce-Ee)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ge=.05,Ee=ue*ge,ie=.05,ce=.25,ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-ge)*a,(ie-ge)*E,(ce-Ee)*a,(ie-Ee)*E,(ce-ge)*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new _t("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.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(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=ue*.2,te=new go.PathFigure(0,.2*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var te=new go.PathFigure(E,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=ue*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+te)*a,(re+te)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-te)*E,a,0,(re+te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-te)*a,(re-te)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+te)*E,0,E,(re-te)*a));var ce=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ce.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(.5*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.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(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.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(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.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(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure((1-y)*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.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(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.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(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ce=new go.PathFigure((te+z)*E,re*a,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re-z)*a,(te+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=ue*.4,te=ue*.1,re=.1,ie=.9,ce=.5,pe=new go.PathFigure(.8*E,.5*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,a)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var ge=new go.PathFigure((ie+re)*E,ce*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+re)*a,(ie+re)*E,(ce+te)*a,(ie+te)*E,(ce+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ce*a,(ie-te)*E,(ce+re)*a,(ie-re)*E,(ce+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-re)*a,(ie-re)*E,(ce-te)*a,(ie-te)*E,(ce-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ce*a,(ie+te)*E,(ce-re)*a,(ie+re)*E,(ce-te)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=ue*.1,te=.9,re=.5;var ce=new go.PathFigure((te-y)*E,re*a,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(te+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ce=new go.PathFigure(.8*E,.5*a,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=ue*.1,te=.9,re=.5;var pe=new go.PathFigure((te-y)*E,re*a,!0);return x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*y,te=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ce=new go.PathFigure(.2*E,0,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(re-y)*a,.9*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=ue*.1,z=.1,te=.1,re=.5,ie=new go.PathFigure((te-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y*.5)*E,a,(te+z)*E,0,(te+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=ue*.5,z=.5,te=.5,re=.5,ie=new go.PathFigure((te-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-z)*a,(te-z)*E,(re-y)*a,(te-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re-z)*a,(te+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*E,re*a,te*E,(re-z)*a,te*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var te=ue*.8,re=.8,ie=0,ce=.5,pe=(y-E)/2,ge=(z-a)/2,Ee=new go.PathFigure(ie*E+pe,(ce+re)*a+ge,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce-re)*a+ge,(ie-re+te*.5)*E+pe,(ce-te)*a+ge)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie-re+te*.5)*E+pe,(ce+te)*a+ge,ie*E+pe,(ce+re)*a+ge).close()),te=ue*.4,re=.4,ie=.2,ce=.5;var ye=new go.PathFigure(ie*E+pe,(ce+re)*a+ge,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce-re)*a+ge,(ie-re+te*.5)*E+pe,(ce-te)*a+ge)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie-re+te*.5)*E+pe,(ce+te)*a+ge,ie*E+pe,(ce+re)*a+ge).close()),te=ue*.2,re=.2,ie=.5,ce=.5;var Re=new go.PathFigure((ie-re)*E+pe,ce*a+ge,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie-re)*E+pe,(ce-te)*a+ge,(ie-te)*E+pe,(ce-re)*a+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+pe,ce*a+ge,(ie-te)*E+pe,(ce+re)*a+ge,(ie-re)*E+pe,(ce+te)*a+ge)),te=ue*.4,re=.4,ie=.8,ce=.5;var he=new go.PathFigure(ie*E+pe,(ce-re)*a+ge,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce+re)*a+ge,(ie+re-te*.5)*E+pe,(ce+te)*a+ge)),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie+re-te*.5)*E+pe,(ce-te)*a+ge,ie*E+pe,(ce-re)*a+ge).close()),te=ue*.8,re=.8,ie=1,ce=.5;var qe=new go.PathFigure(ie*E+pe,(ce-re)*a+ge,!0);return x.add(qe),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+pe,ce*a+ge,(ie+te)*E+pe,(ce-re)*a+ge,(ie+re)*E+pe,(ce-te)*a+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce+re)*a+ge,(ie+re)*E+pe,(ce+te)*a+ge,(ie+te)*E+pe,(ce+re)*a+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-te*.5)*E+pe,ce*a+ge,ie*E+pe,(ce+re)*a+ge,(ie+re-te*.5)*E+pe,(ce+te)*a+ge)),qe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+pe,(ce-re)*a+ge,(ie+re-te*.5)*E+pe,(ce-te)*a+ge,ie*E+pe,(ce-re)*a+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var te=new go.PathFigure(.6*E,a,!0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=ue*.4,z=.4,te=.5,re=.5,ie=b(),ce=b(),pe=b(),ge=b();Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.5,ie,ie,ce,pe,ge);var Ee=ae(ce.x,ce.y),ye=new go.PathFigure(ce.x*E,ce.y*a,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te+z)*E,(re+y)*a,(te+y)*E,(re+z)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,(te-y)*E,(re+z)*a,(te-z)*E,(re+y)*a)),Ae(te-z,re,te-z,re-y,te-y,re-z,te,re-z,.5,pe,ge,ce,ie,ie),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,pe.x*E,pe.y*a,ge.x*E,ge.y*a)),y=ue*.3,z=.3,Ae(te-z,re,te-z,re-y,te-y,re-z,te,re-z,.5,pe,ge,ce,ie,ie),ye.add(new go.PathSegment(go.PathSegment.Line,ce.x*E,ce.y*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,re*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+z)*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,re*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),Ae(te,re-z,te+y,re-z,te+z,re-y,te+z,re,.5,ie,ie,ce,pe,ge),ye.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*E,ce.y*a,ge.x*E,ge.y*a,pe.x*E,pe.y*a).close());var ye=new go.PathFigure(.45*E,0,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),se(ie),se(ce),se(pe),se(ge),se(Ee),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(te,re,ie){te.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.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(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,te=0,re=y*ue,ie=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,pe=1,ge=.5,Ee=.5,ye=0,Re=new go.PathFigure(ie*E,(1-ce)*a,!1);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,ge*a,pe*E,.7*a,pe*E,ge*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+z)*E,(ye+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-re+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-re+te)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+te)*a,(.5-re+z)*E,.9*a)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),Re.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var te=.5-.285,re=.5,ie=te,ce=Math.PI/4,pe=4*(1-Math.cos(ce))/(3*Math.sin(ce)),ge=pe*.5,Ee=te,ye=te,Re=pe*Ee,he=pe*ye;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Ee)*E,ie*a,(re-(Re+Ee)/2)*E,(ie+(ye+he)/2)*a,(re-Ee)*E,(ie+he)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-ye)*a,(re-Ee)*E,(ie-he)*a,(re-Re)*E,(ie-ye)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Ee)*E,ie*a,(re+Re)*E,(ie-ye)*a,(re+Ee)*E,(ie-he)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+Ee)*E,(ie+he)*a,(re+(Re+Ee)/2)*E,(ie+(ye+he)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var qe=new go.PathFigure(.2*E,a,!1);x.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var je=new go.PathFigure(.8*E,a,!1);return x.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(.1*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var te=new go.PathFigure(.675*E,.575*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),te.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=new go.PathFigure(E,y*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var te=new go.PathFigure(0,.6*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var te=.1,re=ue*.1,ie=.2,ce=.9,pe=new go.PathFigure((ie-te)*E,ce*a,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-te)*a,(ie-te)*E,(ce-re)*a,(ie-re)*E,(ce-te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*E,ce*a,(ie+re)*E,(ce-te)*a,(ie+te)*E,(ce-re)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+te)*a,(ie+te)*E,(ce+re)*a,(ie+re)*E,(ce+te)*a)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*E,ce*a,(ie-re)*E,(ce+te)*a,(ie-te)*E,(ce+re)*a).close()),te=.1,re=ue*.1,ie=.8,ce=.9;var ge=new go.PathFigure((ie-te)*E,ce*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce-te)*a,(ie-te)*E,(ce-re)*a,(ie-re)*E,(ce-te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*E,ce*a,(ie+re)*E,(ce-te)*a,(ie+te)*E,(ce-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ce+te)*a,(ie+te)*E,(ce+re)*a,(ie+re)*E,(ce+te)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*E,ce*a,(ie-re)*E,(ce+te)*a,(ie-te)*E,(ce+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var te=new go.PathFigure(.5*E,.8*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ce=ue*.1,pe=.1,ge=.9,Ee=new go.PathFigure((pe-ie)*E,ge*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-ie)*a,(pe-ie)*E,(ge-ce)*a,(pe-ce)*E,(ge-ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*E,ge*a,(pe+ce)*E,(ge-ie)*a,(pe+ie)*E,(ge-ce)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+ie)*a,(pe+ie)*E,(ge+ce)*a,(pe+ce)*E,(ge+ie)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*E,ge*a,(pe-ce)*E,(ge+ie)*a,(pe-ie)*E,(ge+ce)*a)),ie=.1,ce=ue*.1,pe=.4,ge=.9;var ye=new go.PathFigure((pe-ie)*E,ge*a,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge-ie)*a,(pe-ie)*E,(ge-ce)*a,(pe-ce)*E,(ge-ie)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ie)*E,ge*a,(pe+ce)*E,(ge-ie)*a,(pe+ie)*E,(ge-ce)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,pe*E,(ge+ie)*a,(pe+ie)*E,(ge+ce)*a,(pe+ce)*E,(ge+ie)*a)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(pe-ie)*E,ge*a,(pe-ce)*E,(ge+ie)*a,(pe-ie)*E,(ge+ce)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var te=new go.PathFigure(.55*E,.4*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var pe=.05,ge=ue*.05,Ee=.175,ye=.95,re=new go.PathFigure((Ee-pe)*E,ye*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye-pe)*a,(Ee-pe)*E,(ye-ge)*a,(Ee-ge)*E,(ye-pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*E,ye*a,(Ee+ge)*E,(ye-pe)*a,(Ee+pe)*E,(ye-ge)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye+pe)*a,(Ee+pe)*E,(ye+ge)*a,(Ee+ge)*E,(ye+pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*E,ye*a,(Ee-ge)*E,(ye+pe)*a,(Ee-pe)*E,(ye+ge)*a));var pe=.05,ge=ue*.05,Ee=.375,ye=.95,ie=new go.PathFigure((Ee-pe)*E,ye*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye-pe)*a,(Ee-pe)*E,(ye-ge)*a,(Ee-ge)*E,(ye-pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*E,ye*a,(Ee+ge)*E,(ye-pe)*a,(Ee+pe)*E,(ye-ge)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye+pe)*a,(Ee+pe)*E,(ye+ge)*a,(Ee+ge)*E,(ye+pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*E,ye*a,(Ee-ge)*E,(ye+pe)*a,(Ee-pe)*E,(ye+ge)*a));var pe=.05,ge=ue*.05,Ee=.625,ye=.95,ce=new go.PathFigure((Ee-pe)*E,ye*a,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye-pe)*a,(Ee-pe)*E,(ye-ge)*a,(Ee-ge)*E,(ye-pe)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*E,ye*a,(Ee+ge)*E,(ye-pe)*a,(Ee+pe)*E,(ye-ge)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye+pe)*a,(Ee+pe)*E,(ye+ge)*a,(Ee+ge)*E,(ye+pe)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*E,ye*a,(Ee-ge)*E,(ye+pe)*a,(Ee-pe)*E,(ye+ge)*a));var pe=.05,ge=ue*.05,Ee=.825,ye=.95,Re=new go.PathFigure((Ee-pe)*E,ye*a,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye-pe)*a,(Ee-pe)*E,(ye-ge)*a,(Ee-ge)*E,(ye-pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+pe)*E,ye*a,(Ee+ge)*E,(ye-pe)*a,(Ee+pe)*E,(ye-ge)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(ye+pe)*a,(Ee+pe)*E,(ye+ge)*a,(Ee+ge)*E,(ye+pe)*a)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-pe)*E,ye*a,(Ee-ge)*E,(ye+pe)*a,(Ee-pe)*E,(ye+ge)*a).close());var he=new go.PathFigure(0,a,!1);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(.15*E,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=ue*.05,ce=.35,pe=.775,ge=new go.PathFigure((ce-re)*E,pe*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ce*E,(pe-re)*a,(ce-re)*E,(pe-ie)*a,(ce-ie)*E,(pe-re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*E,pe*a,(ce+ie)*E,(pe-re)*a,(ce+re)*E,(pe-ie)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ce*E,(pe+re)*a,(ce+re)*E,(pe+ie)*a,(ce+ie)*E,(pe+re)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*E,pe*a,(ce-ie)*E,(pe+re)*a,(ce-re)*E,(pe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=ue*.3,te=.5,re=.7,ie=new go.PathFigure((te-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a));var ce=new go.PathFigure(0,.7*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,ie=new go.PathFigure((te-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a));var ce=new go.PathFigure(.15*E,.5*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=ue*.5,te=.5,re=.5,ie=new go.PathFigure((te-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a).close()),y=.05,z=ue*.05,te=.5,re=.8;var ce=new go.PathFigure((te-y)*E,re*a,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re-y)*a,(te-y)*E,(re-z)*a,(te-z)*E,(re-y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,re*a,(te+z)*E,(re-y)*a,(te+y)*E,(re-z)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(re+y)*a,(te+y)*E,(re+z)*a,(te+z)*E,(re+y)*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,re*a,(te-z)*E,(re+y)*a,(te-y)*E,(re+z)*a).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var te=new go.PathFigure(.402*E,.85*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var te=new go.PathFigure(E*.408,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var te=new go.PathFigure(E*.055,.13*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),te.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var te=new go.PathFigure(E*.11,a*.1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*ue,te=new go.PathFigure(y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ce=new go.PathFigure(E*.78,a*.05,!1);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*ue,z=a*.8,te=new go.Geometry,re=new go.PathFigure(x,0,!0);return te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(te.spot1=new go.Spot(0,0,y,y),te.spot2=new go.Spot(1,.8,-y,-y)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var te=new go.PathFigure(E*.28,a*.37,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),te.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*ue,te=new go.PathFigure(E*.62,a*.475,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),te.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.4,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),te.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.5,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.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")},98598: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 _t={},Ot="5.0",ae={},b=null,se=!1,be=!1,Ae=null,Ie=!1,Oe=null,ue=null,ke=0;ke<arguments.length;ke++){var We=arguments[ke];if(We!==null)switch(typeof We){case"number":Ot=We.toFixed(1);break;case"string":We.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ot=We:Ae=We;break;case"object":typeof We.is3D!="undefined"?b=We:ae=We;break;case"boolean":se=We,be=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!be&&(se=!0)),Ae!==null&&ae.id===void 0&&(ae.id=Ae);var Te="",He="",Ze=!1,De=null,le=null,E=null,a=!1,x=null,y=null,z=null,te=null,re=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var ie=function(Qe){return parseFloat(Qe)>4?parseFloat(Qe):5};_t.setHTML5Codebase=function(Qe,ft){ue=Qe,it(Qe,ft)},_t.setJavaCodebase=_t.setJavaCodebaseVersion=_t.isCompiledInstalled=_t.setPreCompiledScriptPath=_t.setPreCompiledResourcePath=function(){},_t.setHTML5CodebaseVersion=function(Qe,ft){var Dt=parseFloat(Qe);if(Dt!==NaN&&Dt<5){console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead.");return}Oe=Qe,Wt(Qe,ft)},_t.getHTML5CodebaseVersion=function(){return le},_t.getParameters=function(){return ae},_t.setFontsCSSURL=function(Qe){te=Qe},_t.setGiacJSURL=function(Qe){},_t.setJNLPFile=function(Qe){Te=Qe},_t.setJNLPBaseDir=function(Qe){},_t.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ft="auto",Dt=ae.id,rn,Pt=!1,Jt=0;Jt<arguments.length;Jt++){var Be=arguments[Jt];typeof Be=="string"?(Be=Be.toLowerCase(),Be.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ft=Be:Dt=arguments[Jt]):typeof Be=="boolean"?Pt=Be:Be instanceof HTMLElement&&(rn=Be)}Ut();function Ut(){if(!Ie){setTimeout(Ut,200);return}ft=Ke(ft);var En=rn||document.getElementById(Dt);if(!En){console.log("possibly bug on ajax loading? ");return}if(_t.removeExistingApplet(En,!1),ae.width===void 0&&En.clientWidth&&(ae.width=En.clientWidth),ae.height===void 0&&En.clientHeight&&(ae.height=En.clientHeight),!(ae.width&&ae.height)&&ft==="html5"&&(delete ae.width,delete ae.height),De=ft,ft==="screenshot")je(En,ae);else{var Ct=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?Ct=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(Ct=(!ce()||Qe())&&pe()),Ct?(De="screenshot",Le(En,ae,Pt,ft)):qe(En,ae,Pt)}}};function ce(){try{return window.self!==window.top}catch(Qe){return!0}}function pe(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}_t.getViews=function(){return b},_t.isJavaInstalled=function(){return!1};var ge=function(Qe){var ft=function(Jt){var Be=JSON.parse(Jt),Ut=function(It){return It.type=="G"||It.type=="E"},En=Be.elements?Be.elements.filter(Ut)[0]:Be;if(!En||!En.url){Dt();return}ae.fileName=En.url,Ee(En.settings||{}),b.is3D=!0;var Ct="https://www.geogebra.org/images/";_t.setPreviewImage(x||En.previewUrl,Ct+"GeoGebra_loading.png",Ct+"applet_play.png"),Qe()},Dt=function(){ae.onError&&ae.onError(),jt("Error: Fetching material (id "+ae.material_id+") failed.",ae)},rn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Pt="/materials/"+ae.material_id+"?scope=basic";ye("https://"+rn+"/api/proxy.php?path="+encodeURIComponent(Pt),ft,Dt)};function Ee(Qe){var ft=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Dt){Qe[Dt]=!!Qe[Dt]}),ft.forEach(function(Dt){ae[Dt]===void 0&&Qe[Dt]!==void 0&&(ae[Dt]=Qe[Dt])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function ye(Qe,ft,Dt){var rn=new XMLHttpRequest;rn.open("GET",Qe),rn.onload=function(){ft(rn.responseText)},rn.onerror=Dt,rn.send()}_t.isHTML5Installed=function(){return!0},_t.getLoadedAppletType=function(){return De},_t.setPreviewImage=function(Qe,ft,Dt){x=Qe,y=ft,z=Dt},_t.removeExistingApplet=function(Qe,ft){var Dt;typeof Qe=="string"&&(Qe=document.getElementById(Qe)),De=null;var rn=null;for(Dt=0;Dt<Qe.childNodes.length;Dt++){var Pt=Qe.childNodes[Dt],Jt=Pt.className;Jt==="applet_screenshot"?ft?(Pt.style.display="block",De="screenshot"):Pt.style.display="none":Jt!=="applet_scaler prerender"&&(Qe.removeChild(Pt),rn=Jt&&Jt.indexOf("appletParameters")!=-1?Pt.id:null,Dt--)}var Be=ae.id!==void 0?ae.id:rn,Ut=window[Be];Ut&&typeof Ut.getBase64=="function"&&(Ut.remove(),window[Be]=null)},_t.refreshHitPoints=function(){if(ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Qe=_t.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},_t.startAnimation=function(){var Qe=_t.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},_t.stopAnimation=function(){var Qe=_t.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},_t.getAppletObject=function(){var Qe=ae.id!==void 0?ae.id:"ggbApplet";return window[Qe]},_t.resize=function(){};var Re=function(Qe,ft,Dt){var rn=document.createElement("param");rn.setAttribute("name",ft),rn.setAttribute("value",Dt),Qe.appendChild(rn)},he=function(Qe){return Qe&&Qe!=="false"},qe=function(Qe,ft,Dt){ie(le)<=4.2&&(Dt=!0);var rn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(rn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Pt=document.createElement("div");Pt.classList.add("appletParameters","notranslate");var Jt=ft.width,Be=ft.height;if(ft.disableAutoScale=ft.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ft.disableAutoScale,ft.width!==void 0)if(ie(le)<=4.4)he(ft.showToolBar)&&(ft.height-=7),he(ft.showAlgebraInput)&&(ft.height-=37),ft.width<605&&he(ft.showToolBar)&&(ft.width=605,Jt=605);else{var Ut=100;(he(ft.showToolBar)||he(ft.showMenuBar))&&(ft.hasOwnProperty("customToolBar")&&(ft.customToolbar=ft.customToolBar),Ut=he(ft.showMenuBar)?245:155),Jt<Ut&&(ft.width=Ut,Jt=Ut)}Pt.style.border="none",Pt.style.display="inline-block";for(var En in ft)ft.hasOwnProperty(En)&&En!=="appletOnLoad"&&Pt.setAttribute("data-param-"+En,ft[En]);te&&Pt.setAttribute("data-param-fontscssurl",te),_t.resize=function(){GGBAppletUtils.responsiveResize(Qe,ft)},window.addEventListener("resize",function(_e){_t.resize()});var Ct=typeof ft.appletOnLoad=="function"?ft.appletOnLoad:function(){};if(!Dt&&ft.width!==void 0){ft.hasOwnProperty("showSplash")||Pt.setAttribute("data-param-showSplash","false");var It=Qe.querySelector(".applet_scaler.prerender"),et=It!==null;if(et)var Ue=It.querySelector(".ggb_preview");else{var Ue=st(Jt,Be,ft.borderColor,!1);It=document.createElement("div"),It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.style.width=Jt+"px",It.style.height=Be+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(It,"66%"),ie(le)>=5?(ft.appletOnLoad=function(_e){var Et=Qe.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(It),window.GGBT_wsf_view&&$(window).trigger("resize"),Ct(_e)},et||It.appendChild(Ue)):Pt.appendChild(Ue),It.appendChild(Pt),et||Qe.appendChild(It),setTimeout(function(){_t.resize()},1)}else{var Fe=document.createElement("div");Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.appendChild(Pt),Qe.appendChild(Fe),ft.appletOnLoad=function(_e){_t.resize(),Ct(_e)}}function ve(_e,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(_e,Et.appletOnLoad):renderGGBElement(_e),jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function tt(_e,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:_e,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(cn){ve(cn.article,cn.params)}),html5AppletsToProcess=null)},ie(le)<5&&(_e.className+=" geogebraweb")):ve(_e,Et)}if(rn){scriptLoadStarted=!0;for(var At=0;At<Pt.childNodes.length;At++){var we=Pt.childNodes[At].tagName;we==="TABLE"&&(Pt.removeChild(Pt.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var Ce=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ce!=null&&Ce.parentNode.removeChild(Ce)}var vt=document.createElement("script"),Ye=function(){tt(Pt,ft)};vt.src=He+E,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=le,ggbHTML5LoadedScript=vt.src,jt("GeoGebra HTML5 codebase loaded: '"+He+"'.",ft),!ue&&(!Oe||Oe=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ye()):He.requirejs?__webpack_require__.e(7374).then(function(){var _e=[__webpack_require__(97374)];Ye.apply(null,_e)}.bind(this)).catch(__webpack_require__.oe):(vt.onload=Ye,Qe.appendChild(vt))}else tt(Pt,ft);ft.height=Be,ft.width=Jt},je=function(Qe,ft,Dt){var rn=st(ft.width,ft.height,ft.borderColor,Dt),Pt=document.createElement("div");Pt.style.position="relative",Pt.style.display="block",Pt.style.width=ft.width+"px",Pt.style.height=ft.height+"px",Pt.className="applet_screenshot applet_scaler"+(Dt?" applet_screenshot_play":""),Pt.appendChild(rn);var Jt=GGBAppletUtils.getScale(ft,Qe,Dt);Dt?(Qe.appendChild(Je()),window.GGBT_wsf_view||(Qe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),Qe.appendChild(Pt),Jt!==1&&!isNaN(Jt)&&(GGBAppletUtils.scaleElement(Pt,Jt),Pt.style.width=ft.width+"px",Pt.style.height=ft.height+"px",Pt.parentNode.style.width=ft.width*Jt+"px",Pt.parentNode.style.height=ft.height*Jt+"px"),_t.resize=function(){ot(Qe,rn,Pt,Dt)},window.addEventListener("resize",function(Be){_t.resize()}),_t.resize()};function ot(Qe,ft,Dt,rn){if(Qe.contains(ft)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Qe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Qe)}var Pt=GGBAppletUtils.getScale(ae,Qe,rn);Dt.parentNode!==null&&(!isNaN(Pt)&&Pt!==1?(GGBAppletUtils.scaleElement(Dt,Pt),Dt.parentNode.style.width=ae.width*Pt+"px",Dt.parentNode.style.height=ae.height*Pt+"px"):(GGBAppletUtils.scaleElement(Dt,1),Dt.parentNode.style.width=ae.width+"px",Dt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Qe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}_t.onExitFullscreen=function(Qe,ft){ft.appendChild(Qe)};var Le=function(Qe,ft,Dt,rn){je(Qe,ft,!0);for(var Pt=function(){var Ut=[];for(Be=0;Be<Qe.childNodes.length;Be++)Ut.push(Qe.childNodes[Be]);if(window.GGBT_wsf_view){var En=window.GGBT_wsf_view.renderFullScreen(Qe,ft.id),Ct=document.getElementById("fullscreencontainer"),It=jQuery(Qe).find(".fullscreencontent");It.length>0?(En.remove(),It.attr("id","fullscreencontent").show(),jQuery(Ct).append(It),window.dispatchEvent(new Event("resize"))):qe(En,ft,!1),window.GGBT_wsf_view.launchFullScreen(Ct)}else De=rn,qe(Qe,ft,!1);if(!window.GGBT_wsf_view)for(Be=0;Be<Ut.length;Be++)Qe.removeChild(Ut[Be])},Jt=Qe.getElementsByClassName("ggb_preview_play"),Be=0;Be<Jt.length;Be++)Jt[Be].addEventListener("click",Pt,!1),Jt[Be].addEventListener("ontouchstart",Pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Qe),pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Je=function(){var Qe=document.createElement("div");if(Qe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ft='.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");}',Dt=document.createElement("style");Dt.styleSheet?Dt.styleSheet.cssText=ft:Dt.appendChild(document.createTextNode(ft)),document.getElementsByTagName("head")[0].appendChild(Dt)}return Qe},st=function(Qe,ft,Dt,rn){var Pt=document.createElement("div");Pt.className="ggb_preview",Pt.style.position="absolute",Pt.style.zIndex="90",Pt.style.width=Qe-2+"px",Pt.style.height=ft-2+"px",Pt.style.top="0px",Pt.style.left="0px",Pt.style.overflow="hidden",Pt.style.backgroundColor="white";var Jt="lightgrey";Dt!==void 0&&(Dt==="none"?Jt="transparent":Jt=Dt),Pt.style.border="1px solid "+Jt;var Be=document.createElement("img");if(Be.style.position="relative",Be.style.zIndex="1000",Be.style.top="-1px",Be.style.left="-1px",x!==null&&Be.setAttribute("src",x),Be.style.opacity=.7,y!==null){var Ut,En,Ct;if(!rn){Ut=document.createElement("img"),Ut.style.position="absolute",Ut.style.zIndex="1001",Ut.style.opacity=1,Be.style.opacity=.3,En=360,En>Qe/4*3&&(En=Qe/4*3),Ct=En/5.8,Ut.setAttribute("src",y),Ut.setAttribute("width",En),Ut.setAttribute("height",Ct);var It=(Qe-En)/2,et=(ft-Ct)/2;Ut.style.left=It+"px",Ut.style.top=et+"px",Pt.appendChild(Ut)}}return Pt.appendChild(Be),Pt},Ke=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},$e=["web","webSimple","web3d","tablet","tablet3d","phone"],Wt=function(Qe,ft){if(le=Qe,ft){it(le,!0);return}var Dt=!se;if(Dt){var rn=ie(le);!isNaN(rn)&&rn<4.4&&(Dt=!1)}var Pt,Jt;window.location.protocol.substr(0,4)==="http"?Pt=window.location.protocol:Pt="http:";var Be=le.indexOf("//");Be>0?Jt=le:Be===0?Jt=Pt+le:Jt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ut in $e)if(le.slice($e[Ut].length*-1)===$e[Ut]||le.slice(($e[Ut].length+1)*-1)===$e[Ut]+"/"){it(Jt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Dt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!he(ae.showToolBar)&&!he(ae.showMenuBar)&&!he(ae.showAlgebraInput)&&!he(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?Jt+="webSimple/":Jt+="web3d/",it(Jt,!1)},it=function(Qe,ft){if(Qe.requirejs){He=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),He=Qe,ft===null&&(ft=Qe.indexOf("http")===-1),Ze=ft,E="web.nocache.js",a=!1;var Dt=He.split("/");Dt.length>1&&(!ft&&Dt[Dt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):$e.indexOf(Dt[Dt.length-2])>=0&&(E=Dt[Dt.length-2]+".nocache.js")),Dt=Qe.split("/"),le=Dt[Dt.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var rn=parseFloat(le);rn!==NaN&&rn<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+rn+" is deprecated. Using version latest instead."),Wt("5.0",ft))},jt=function(Qe,ft){window.console&&window.console.log&&(!ft||typeof ft.showLogging=="undefined"||ft.showLogging&&ft.showLogging!=="false")&&console.log(Qe)};ae.material_id!==void 0?ge(Xt):Xt();function Xt(){var Qe=Ot;Oe!==null?Qe=Oe:parseFloat(Qe)<5&&(Qe="5.0"),Wt(Qe,!1),ue!==null&&it(ue,Ze),Ie=!0}return _t},GGBAppletUtils=function(){"use strict";function _t(){return window.GGBT_wsf_edit!==void 0}function Ot(Ie,Oe){Oe!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+Oe+","+Oe+")",Ie.style.webkitTransform="scale("+Oe+","+Oe+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function ae(Ie,Oe,ue,ke,We,Te){var He=null;if(Te!=null&&Te!="")for(var Ze=Ie.parentNode;Ze!=null;)if((" "+Ze.className+" ").indexOf(" "+Te+" ")>-1){He=Ze;break}else Ze=Ze.parentNode;var De=0,le=0,E=0,a=0,x=0,y=0,z=0;if(He)De=He.offsetWidth,le=Math.max(ke?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=De):(De=window.innerWidth,le=window.innerHeight,E=window.innerWidth),Ie){var te=Ie.getBoundingClientRect();te.left>0&&te.left<=De&&(We===void 0||!We)&&(document.dir==="rtl"?(x=De-te.width-te.left,y=E<=480?10:30):(y=te.left,x=E<=480?10:30),a=y+x)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Ie&&((ue===void 0||!ue)&&Oe>0&&Oe+a<De?De=Oe:De-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(le-=z)),{width:De,height:le}}function b(Ie,Oe,ue,ke,We){if(Ie.isScreenshoGenerator)return 1;var Te=ke!==void 0&&ke,He=Ie.noScaleMargin!=null&&Ie.noScaleMargin,Ze=function(re){return re&&re!=="false"},De=Ze(Ie.autoHeight),le=ae(Oe,Ie.width,ue,De,Te&&window.GGBT_wsf_view||He,We),E=parseInt(le.width),a=Ie.width,x=Ie.height;if(a===void 0){var y=Oe.querySelector(".appletParameters");y&&(a=y.offsetWidth,x=y.offsetHeight)}var z=E/a,te=Te?1:le.height/x;return ue!==void 0&&!ue&&(z=Math.min(1,z),te=Math.min(1,te)),Math.min(z,te)}function se(Ie,Oe,ue){var ke=1,We,Te=!1;if(Ie.hasOwnProperty("allowUpscale")&&(Te=Ie.allowUpscale),Ie.hasOwnProperty("scale")&&(ke=parseFloat(Ie.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Te=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))We=b(Ie,Oe,Te,ue,Ie.scaleContainerClass);else return ke;return Te&&(!Ie.hasOwnProperty("scale")||ke===1)?We:Math.min(ke,We)}function be(Ie){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Ie.getBoundingClientRect(),We=(Oe-ke.width)/2,Te=(ue-ke.height)/2;Te<0&&(Te=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We<40?Ie.style.left="40px":Ie.style.left=We+"px",Ie.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?Ie.style.top="40px":Ie.style.top=Te+"px",Ie.style.left=We+"px")}function Ae(Ie,Oe){var ue=Ie.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var ke=se(Oe,Ie);_t()&&ue.setAttribute("data-param-scale",ke);for(var We=null,Te=0;Te<Ie.childNodes.length;Te++)if(Ie.childNodes[Te].className!==void 0&&Ie.childNodes[Te].className.match(/^applet_scaler/)){We=Ie.childNodes[Te];break}if(We!==null&&We.querySelector(".noscale")!==null)return;var He=Oe.id!==void 0?Oe.id:"ggbApplet",Ze=window[He];(Ze==null||!Ze.recalculateEnvironments)&&We!==null&&!We.className.match(/fullscreen/)&&(We.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(We.parentNode.style.width=Oe.width*ke+"px",We.parentNode.style.height=Oe.height*ke+"px",Ot(We,ke)):(Ot(We,1),We.parentNode.style.width=Oe.width+"px",We.parentNode.style.height=Oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(Ie),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:_t,positionCenter:be,getScale:se,scaleElement:Ot}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var _t=n.location.search;return _t.indexOf(J)!=-1||_t.indexOf(K)!=-1}function q(_t,Ot){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(_t){var Ot=s[L].bindings;s[L].bindings=function(){for(var ae=Ot?Ot():{},b=_t[webModule.__softPermutationId],se=O;se<b.length;se++){var be=b[se];ae[be[O]]=be[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var _t=o.createElement(Q);if(_t.id=L,_t.style.cssText=R+S,_t.tabIndex=-1,o.body.appendChild(_t),t=_t.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ot=document.compatMode==U?V:W;t.write(Ot+X),t.close()}}}function w(_t){function Ot(b){function se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=se();if(be){b();return}function Ae(){if(!be){if(!se())return;be=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),Ie&&clearInterval(Ie)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var Ie=setInterval(function(){Ae()},$)}function ae(b){var se=u(),be=se.body,Ae=se.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=b,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),be.appendChild(Ae)}Ot(function(){ae(_t)})}webModule.__startLoadingFragment=function(_t){return C(_t)},webModule.__installRunAsyncCode=function(_t){var Ot=u(),ae=Ot.body,b=Ot.createElement(_);b.language=ab,b.text=_t,ae.appendChild(b),ae.removeChild(b)};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(_t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_t){var Ot=c[_t];return Ot==null?null:Ot},r=d,webModule.__errFn=e}function B(){function _t(Ie){var Oe=Ie.lastIndexOf(rb);Oe==-1&&(Oe=Ie.length);var ue=Ie.indexOf(sb);ue==-1&&(ue=Ie.length);var ke=Ie.lastIndexOf(tb,Math.min(ue,Oe));return ke>=O?Ie.substring(O,ke+P):W}function Ot(Ie){if(!Ie.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=Ie+vb,Ie=_t(Oe.src)}return Ie}function ae(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function b(){for(var Ie=o.getElementsByTagName(_),Oe=O;Oe<Ie.length;++Oe)if(Ie[Oe].src.indexOf(xb)!=-1)return _t(Ie[Oe].src);return W}function se(){var Ie=o.getElementsByTagName(yb);return Ie.length>O?Ie[Ie.length-P].href:W}function be(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var Ae=ae();return Ae==W&&(Ae=b()),Ae==W&&(Ae=se()),Ae==W&&be()&&(Ae=_t(o.location.href)),Ae=Ot(Ae),Ae}function C(_t){return _t.match(/^\//)||_t.match(/^[a-zA-Z]+:\/\//)?_t:webModule.__moduleBase+_t}function D(){var _t=[],Ot=O,ae=[],b=[];function se(Ie){var Oe=b[Ie](),ue=ae[Ie];if(Oe in ue)return Oe;var ke=[];for(var We in ue)ke[ue[We]]=We;throw r&&r(Ie,ke,Oe),null}if(__gwt_isKnownPropertyValue=function(Ie,Oe){return Oe in ae[Ie]},webModule.__getPropMap=function(){var Ie={};for(var Oe in ae)ae.hasOwnProperty(Oe)&&(Ie[Oe]=se(Oe));return Ie},webModule.__computePropValue=se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var Ae=be.indexOf(Db);Ae!=-1&&(Ot=parseInt(be.substring(Ae+P),$),be=be.substring(O,Ae))}catch(Ie){}return webModule.__softPermutationId=Ot,C(be+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})()},58788:function(_t,Ot,ae){"use strict";ae.d(Ot,{Ax:function(){return Ae},Ds:function(){return Ie},KI:function(){return ue},SI:function(){return be},f1:function(){return se}});var b=ae(10148);function se(ke){let We=!0;if(ke.length>0){for(let Te=0;Te<ke.length;Te++)if(ke[Te].compile_success==0||!ke[Te].compile_success){We=!1;break}}else We=!1;return We}function be(ke,We=""){let Te=[];for(let He=0;He<ke.length;He++){let Ze=ke[He],De=We?`${We}/${Ze.name}`:`${Ze.name}`;Te.push({title:Ze.name,type:Ze.type,isLeaf:Ze.type!=="tree",key:De})}return Te}function Ae(ke,We,Te){for(let He=0;He<ke.length;He++){let Ze=ke[He];if(Ze.key===We){Ze.children=Te;break}Ze.children&&Ae(Ze.children,We,Te)}return ke}function Ie(ke,We,Te){let He;return function(){let Ze=this,De=arguments,le=function(){He=null,Te||ke.apply(Ze,De)},E=Te&&!He;clearTimeout(He),He=setTimeout(le,We),E&&ke.apply(Ze,De)}}const Oe=!0,ue=b.Z.API_SERVER},88477:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return le}});var b=ae(3113),se=ae(59301),be=Object.defineProperty,Ae=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,We=(E,a,x)=>a in E?be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,Te=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&We(E,x,a[x]);if(Oe)for(var x of Oe(a))ke.call(a,x)&&We(E,x,a[x]);return E},He=(E,a)=>Ae(E,Ie(a)),Ze=(E,a)=>{var x={};for(var y in E)ue.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Oe)for(var y of Oe(E))a.indexOf(y)<0&&ke.call(E,y)&&(x[y]=E[y]);return x},De=(E,a,x)=>new Promise((y,z)=>{var te=ce=>{try{ie(x.next(ce))}catch(pe){z(pe)}},re=ce=>{try{ie(x.throw(ce))}catch(pe){z(pe)}},ie=ce=>ce.done?y(ce.value):Promise.resolve(ce.value).then(te,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=Ze(a,["children"]);const[z,te]=(0,se.useState)(!1);return se.createElement(b.ZP,He(Te({},y),{loading:z,onClick:re=>De(void 0,null,function*(){try{te(!0),yield y.onClick(re),te(!1)}catch(ie){console.error(ie),te(!1)}})}),x)}},38333:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return De}});var b=ae(59301),se=ae(8591),be=ae(92832),Ae={codeBox:"codeBox___WpkVl"},Ie=ae(92310),Oe=ae.n(Ie),ue=Object.defineProperty,ke=(le,E,a)=>E in le?ue(le,E,{enumerable:!0,configurable:!0,writable:!0,value:a}):le[E]=a,We=(le,E,a)=>ke(le,typeof E!="symbol"?E+"":E,a),Te=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});class He extends b.Component{constructor(E){super(E),We(this,"canvas"),We(this,"randomNum",(a,x)=>Math.floor(Math.random()*(x-a)+a)),We(this,"drawPic",()=>{this.randomCode()}),We(this,"reloadPic",()=>{this.drawPic()}),We(this,"changeCode",a=>{console.log(a.target.value,222),this.setState({value:a.target.value,showError:!1})}),We(this,"onVerify",()=>{let a;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(a=!0,se.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(a=!0,se.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(a=!1),this.setState({showError:a}),a}),this.canvas=b.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(E,a){const x=this.randomNum(E,a),y=this.randomNum(E,a),z=this.randomNum(E,a);return`rgb(${x}, ${y}, ${z})`}drawText(E,a,x){E.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const y=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);E.font=y+"px SimHei";const z=10,te=(this.state.contentWidth-40)/(this.state.code.length-1);let re=z;x>0&&(re=z+x*te);let ie=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);y>40&&(ie=40);const ce=this.randomNum(-10,10);E.translate(re,ie),E.rotate(ce*Math.PI/180),E.fillText(a,0,0),E.rotate(-ce*Math.PI/180),E.translate(-re,-ie)}drawLine(E){for(let a=0;a<1;a++)E.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),E.beginPath(),E.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.stroke()}drawDot(E){for(let a=0;a<100;a++)E.fillStyle=this.randomColor(0,255),E.beginPath(),E.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),E.fill()}randomCode(){let E="";const a="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let x=0;x<this.state.codeLength;x++){const y=Math.floor(Math.random()*57);E+=a[y]}this.setState({code:E},()=>{const y=this.canvas.current.getContext("2d");y.textBaseline="bottom",y.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),y.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let z=0;z<this.state.code.length;z++)this.drawText(y,this.state.code[z],z);this.drawLine(y),this.drawDot(y)})}render(){const{className:E,width:a=300}=this.props;return b.createElement("div",{className:Oe()(Ae.codeBox,E),style:{width:a}},b.createElement("aside",null,b.createElement(be.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),b.createElement("div",null,b.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),b.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Ze=(le,E)=>{let a;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,E),React.createElement(He,{ref:x=>a=x})),onOk:()=>Te(void 0,null,function*(){if(a.onVerify())return Promise.reject();le()})})};var De=He},86377:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return We}});var b=ae(59301),se=ae(92832),be=ae(12563),Ae=ae(8591),Ie={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Oe=ae(62772);const{TextArea:ue}=se.default;class ke extends b.Component{constructor(He){super(He),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:He,onAnswerChange:Ze,addChildAnswer:De,exerciseIsPublish:le,answers:E,activeOptionErrorIndex:a,flex:x="0 0 1000px"}=this.props;console.log("----",E);let{inputVisible:y,EditInputIndex:z}=this.state;return b.createElement("div",{className:Ie.flex},b.createElement("div",{className:`${Ie.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",He+1,"):"),b.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},E==null?void 0:E.map((te,re)=>b.createElement(b.Fragment,null,z!==re?(te==null?void 0:te.length)>0?b.createElement(be.default,{className:"edit-tag",key:te,closable:!((E==null?void 0:E.length)===1&&re===0),onClose:ie=>{ie.preventDefault(),(E==null?void 0:E.length)===1&&re===0?this.props.deleteChildAnswermain(He,re):this.props.deleteChildAnswer(He,re)}},b.createElement("span",{onDoubleClick:ie=>{this.setState({EditInputIndex:re}),ie.preventDefault()}},te)):b.createElement(se.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ie=>{if(ie.target.value.replaceAll(" ","").length<=0){Ae.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ze(He,re,ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):b.createElement(se.default,{defaultValue:te,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ie=>{if(ie.target.value.replaceAll(" ","").length<=0){Ae.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ze(He,re,ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!y&&b.createElement(be.default,{className:"site-tag-plus",onClick:()=>{De(He),this.setState({inputVisible:!0})}},b.createElement(Oe.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var We=ke},49985:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return le}});var b=ae(59301),se=ae(23469),be=Object.defineProperty,Ae=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,We=(E,a,x)=>a in E?be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,Te=(E,a)=>{for(var x in a||(a={}))ue.call(a,x)&&We(E,x,a[x]);if(Oe)for(var x of Oe(a))ke.call(a,x)&&We(E,x,a[x]);return E},He=(E,a)=>Ae(E,Ie(a)),Ze=(E,a,x)=>We(E,typeof a!="symbol"?a+"":a,x);const De="\u2581";class le extends b.Component{constructor(){super(...arguments),Ze(this,"getChCountBeforeCursor",(a,x)=>{const y=x.line;let z=0;for(let re=0;re<y;re++)z+=a.getLine(re).split(De).length-1;const te=a.getLine(y).substring(0,x.ch);return z+=te.split(De).length-1,z}),Ze(this,"onCMBeforeChange",(a,x)=>{const y=a.getRange(x.from,x.to);let z=0;if(x.text.forEach(te=>{z+=te.split(De).length-1}),y&&y.indexOf(De)!=-1){const te=y.split(De).length-1,re=this.getChCountBeforeCursor(a,x.from);console.log(`\u5220\u9664${te}\u4E2A\uFF0C \u4E4B\u524D\u6709${re}\u4E2A\uFF0C\u65B0\u589E${z}\u4E2A`),this.props.deleteEmptyDisabled?x.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(re,te,z)}else if(z){const te=this.getChCountBeforeCursor(a,x.from);console.log(`\u65B0\u589E${z}\u4E2A\uFF0C\u4E4B\u524D\u6709${te}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(te,0,z)}})}render(){return b.createElement(se.Z,He(Te({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},15519:function(_t,Ot,ae){"use strict";ae.d(Ot,{d4:function(){return De},VP:function(){return We}});var b=ae(59301),se={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const be=({number:le,active:E,className:a})=>b.createElement("div",{className:`${se.digitalLabel} ${E?se.active:""} ${a}`},le);var Ae=ae(6848),Ie=ae(92832),Oe=ae(8591),ue=ae(59301),ke=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});const We=({defaultValue:le,onFinish:E})=>{const[a,x]=(0,b.useState)(!1),[y,z]=(0,b.useState)(le);return(0,b.useEffect)(()=>{z(le)},[le]),ue.createElement("div",{className:se.titleEditor},a?ue.createElement(Ie.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:y,onChange:te=>{z(te.target.value)},onBlur:()=>ke(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){Oe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)}),onPressEnter:()=>ke(void 0,null,function*(){var te;if(((te=y==null?void 0:y.replaceAll(" ",""))==null?void 0:te.length)<=0){Oe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield E(y))&&x(!1)})}):ue.createElement("div",{className:se.title,onDoubleClick:()=>x(!0)},y,ue.createElement(Ae.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},ue.createElement("i",{className:`${se.editIcon} iconfont icon-bianji_Hover`,onClick:()=>x(!0)}))))};var Te=ae(95237),He=ae(43604),Ze=(le,E,a)=>new Promise((x,y)=>{var z=ie=>{try{re(a.next(ie))}catch(ce){y(ce)}},te=ie=>{try{re(a.throw(ie))}catch(ce){y(ce)}},re=ie=>ie.done?x(ie.value):Promise.resolve(ie.value).then(z,te);re((a=a.apply(le,E)).next())});const De=({onChange:le=()=>Ze(void 0,null,function*(){}),tabs:E,activeKey:a,defaultActiveKey:x,className:y=""})=>{var z,te,re,ie,ce,pe,ge;const[Ee,ye]=(0,b.useState)(x===void 0?(z=E[0])==null?void 0:z.key:x);return(0,b.useEffect)(()=>{a!==void 0&&ye(a)},[a]),b.createElement(Te.Z,{justify:"center",align:"middle",className:`${se.paperTab} ${y}`},b.createElement(He.Z,{className:`${se.tabItem} ${Ee===((te=E[0])==null?void 0:te.key)?se.active:""}`,onClick:()=>Ze(void 0,null,function*(){var Re;yield le(E[0].key),ye((Re=E[0])==null?void 0:Re.key)})},b.createElement(be,{number:1,active:Ee===((re=E[0])==null?void 0:re.key),className:"mr10"}),b.createElement("span",null,(ie=E[0])==null?void 0:ie.label)),b.createElement(He.Z,{flex:"188px",className:`${se.dottedLine} ml30 mr30`}),b.createElement(He.Z,{className:`${se.tabItem} ${Ee===((ce=E[1])==null?void 0:ce.key)?se.active:""}`,onClick:()=>Ze(void 0,null,function*(){var Re,he;yield le((Re=E[1])==null?void 0:Re.key),ye((he=E[1])==null?void 0:he.key)})},b.createElement(be,{number:2,active:Ee===((pe=E[1])==null?void 0:pe.key),className:"mr10"}),b.createElement("span",null,(ge=E[1])==null?void 0:ge.label)))}},72194:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Oe}});var b=ae(60324),se={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},be=ae(32637),Ae=ae(59301),Oe=({type:ue,style:ke})=>{const We=Ae.createElement("div",{className:se.wrap,onClick:Te=>{Te.preventDefault(),Te.stopPropagation()}},Ae.createElement("p",null,ue==="shixun"||ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ae.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ae.createElement("div",{className:se.contact},Ae.createElement("div",{className:se.img},Ae.createElement("img",{src:be,width:"124px",height:"124px"})),Ae.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ae.createElement(b.Z,{content:We},Ae.createElement("span",{className:se.text,style:ke},"\u9AD8\u6D88\u8017"))}},12963:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return He}});var b=ae(59301),se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ae(92310),Ae=ae.n(be),Ie=ae(71418),Oe=ae(2859),ue=ae(70635),ke=ae(58130),We=(Ze,De,le)=>new Promise((E,a)=>{var x=te=>{try{z(le.next(te))}catch(re){a(re)}},y=te=>{try{z(le.throw(te))}catch(re){a(re)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((le=le.apply(Ze,De)).next())}),He=({data:Ze,className:De,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const te=(0,b.useRef)(null),re=(0,b.useRef)(null),ie=(0,b.useRef)(null),ce=(0,b.useRef)(null),[pe,ge]=(0,b.useState)(!1),[Ee,ye]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),Ze!=null&&Ze.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",Ze!=null&&Ze.src&&Re()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[Ze==null?void 0:Ze.visible]);const Re=()=>We(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,ke.ZJ)(Ze==null?void 0:Ze.src);te.current.src="",te.current.src=Le,te.current.onload=function(){ot()},ge(!1),ye("")}),he=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",a()},qe=Le=>We(void 0,null,function*(){ge(!0),ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Je=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ze.title,file:Le.dataUrl}});Je!=null&&Je.id&&!z?(yield(0,ue.ZP)(`/api/attachments/${Ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:Je==null?void 0:Je.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Je!=null&&Je.id&&x(Je),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",ge(!1),ye("")}),je=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(st=>{const Ke=document.querySelector(st.name);Ke&&Ke.setAttribute("title",st.title)})},ot=()=>{re.current=new Oe.hP(te.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",qe),re.current.addEventListener("beforeclose",he),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),Ze!=null&&Ze.snapshotData&&re.current.restoreState(Ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),je()},300)};return b.createElement(b.Fragment,null,(Ze==null?void 0:Ze.visible)&&b.createElement(Ie.Z,{spinning:pe,tip:Ee,style:{position:"absolute"}},b.createElement("div",{ref:ce,className:Ae()(se.imageDimensions,De,le?se.fullWidth:""),style:E},b.createElement("img",{className:se.img,ref:te}))))}},34571:function(_t,Ot,ae){"use strict";var b=ae(59301),se=ae(93938),be=ae(48136),Ae=ae(75890),Ie=ae(43418),Oe=ae(59301);const ue=(0,b.forwardRef)(({callback:ke,width:We,onChange:Te,disabled:He,readOnly:Ze,type:De="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,te]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ce,pe]=(0,b.useState)(!1),ge=()=>{var he=document.createElement("div");he.innerHTML=x.current.getValue();var qe=he.innerText;return ke&&ke(qe),qe};(0,b.useImperativeHandle)(a,()=>({getData:ge}));const Ee=he=>{he.preventDefault();const qe=he.clientX-z,je=he.clientY-re;document.body.onmousemove=ot=>{let Le=ot.clientX-qe,Je=ot.clientY-je;const st=document.getElementsByClassName("markdown-popup-form")[0],Ke=window.innerWidth-st.offsetWidth,$e=window.innerHeight-st.offsetHeight;Le=Math.max(0,Math.min(Le,Ke)),Je=Math.max(0,Math.min(Je,$e)),ye(ot.clientX,ot.clientY,qe,je)&&(te(Le),ie(Je))},document.body.onmouseup=function(){document.body.onmousemove=null}},ye=(he,qe,je,ot)=>{const Le=document.body.clientHeight,Je=document.body.clientWidth;return he<20&&je>he||he>Je-20&&je<he||qe<20&&ot>qe||qe>Le-20&&ot<qe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,b.useEffect)(()=>{ce&&setTimeout(()=>{const he=document.getElementsByClassName("markdown-popup-form")[0],qe=window.innerWidth/2-he.offsetWidth/2,je=window.innerHeight/2-he.offsetHeight/2;te(qe),ie(je)},0)},[ce]);const Re=()=>{He||Ze||pe(!0)};return Oe.createElement("div",{style:E},Oe.createElement("div",{style:{width:We||"100%",position:"relative"},className:`${se.Z.mathFillWrap} ${He||Ze?"cursorDefault":""}`,onClick:()=>Re()},Oe.createElement("math-field",{disabled:He,locale:"zh_cn",class:`${se.Z.mathField} ${De}`,readOnly:Ze,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Oe.createElement(Ie.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Oe.createElement("div",{style:{cursor:"move"},onMouseDown:Ee},"\u8F93\u5165\u516C\u5F0F"),open:ce,onOk:()=>{const he=y.current.getData();x.current.setValue(he),Te(he),pe(!1)},onCancel:()=>{pe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Oe.createElement(Ae.Z,{value:le,ref:y,onChange:Te,showSaveButton:!1})))});Ot.Z=ue},75890:function(_t,Ot,ae){"use strict";var b=ae(59301),se=ae(95237),be=ae(43604),Ae=ae(99313),Ie=ae(3113),Oe=ae(25711),ue=ae(93938),ke=ae(48136),We=ae(59301);const Te=(0,b.forwardRef)(({callback:He,showSaveButton:Ze,value:De=""},le)=>{const E=(0,b.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}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:We.createElement(se.Z,{className:ue.Z.lists,gutter:[10,10]},a.map((re,ie)=>We.createElement(be.Z,{flex:"110px",className:ue.Z.item},We.createElement("div",null,We.createElement(Oe.Z,{value:`$$${re.value}$$`}),re.name),We.createElement("div",{className:ue.Z.children},re.children.map((ce,pe)=>We.createElement("div",{key:pe},We.createElement("h1",null,ce.name),We.createElement(se.Z,{gutter:[10,10]},ce.data.map((ge,Ee)=>We.createElement(be.Z,{key:Ee,onClick:()=>y(ge),className:ue.Z.diamond},We.createElement(Oe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:We.createElement(se.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((re,ie)=>We.createElement(be.Z,{flex:"110px",className:ue.Z.item},We.createElement("div",null,We.createElement(Oe.Z,{value:"`$$"+re.value+"$$`"}),re.name),We.createElement("div",{className:ue.Z.children},re.children.map((ce,pe)=>We.createElement("div",{key:pe},ce.name&&We.createElement("h1",null,ce.name),We.createElement(se.Z,{gutter:[10,10]},ce.data.map((ge,Ee)=>We.createElement(be.Z,{key:Ee,onClick:()=>y(ge),className:ue.Z.diamond},We.createElement(Oe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return He&&He(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:te})),We.createElement("div",{className:ue.Z.mathWrap},We.createElement(Ae.default,{defaultActiveKey:"1",items:z}),We.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},De||""),Ze&&We.createElement("div",{className:ue.Z.button},We.createElement(Ie.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ot.Z=Te},35890:function(_t,Ot,ae){"use strict";ae.d(Ot,{t:function(){return et}});var b=ae(59301),se=ae(92832),be=ae(78241),Ae=ae(43418),Ie=ae(95237),Oe=ae(43604),ue=ae(5871),ke=ae(57809),We=ae(5112),Te=ae(64542),He=ae(42203),Ze=ae(11037),De=ae(8591),le=ae(3113),E=ae(71418),a=ae(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=ae(70635),z=ae(22267),te=ae(23469),re=ae(56102),ie=ae(38600),ce=ae(59301),pe=Object.defineProperty,ge=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,qe=(Ue,Fe,ve)=>Fe in Ue?pe(Ue,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ue[Fe]=ve,je=(Ue,Fe)=>{for(var ve in Fe||(Fe={}))Re.call(Fe,ve)&&qe(Ue,ve,Fe[ve]);if(ye)for(var ve of ye(Fe))he.call(Fe,ve)&&qe(Ue,ve,Fe[ve]);return Ue},ot=(Ue,Fe)=>ge(Ue,Ee(Fe)),Le=(Ue,Fe,ve)=>new Promise((tt,At)=>{var we=Ye=>{try{vt(ve.next(Ye))}catch(_e){At(_e)}},Ce=Ye=>{try{vt(ve.throw(Ye))}catch(_e){At(_e)}},vt=Ye=>Ye.done?tt(Ye.value):Promise.resolve(Ye.value).then(we,Ce);vt((ve=ve.apply(Ue,Fe)).next())}),st=({buttonProps:Ue,buttonText:Fe,form:ve,hackIdentifier:tt="",answerKey:At,data:we})=>{const[Ce,vt]=(0,b.useState)(!1),[Ye,_e]=(0,b.useState)(!1),[Et,cn]=(0,b.useState)(!1),[Lt,qt]=(0,b.useState)({}),[Yt,nn]=(0,b.useState)(""),[bt,on]=(0,b.useState)(""),An=(0,b.useRef)(tt),Zt=(0,b.useRef)(""),wt=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Et&&Yn()},[Et]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Nn=()=>new Date().getTime(),zn=we==null?void 0:we.code,Wn=()=>{var en,pn;let Zn=zn?we==null?void 0:we.code:(en=ve.getFieldValue("hack_codes"))==null?void 0:en.code,xn=zn?we==null?void 0:we.answer_content:ve.getFieldValue(At),La=zn?we==null?void 0:we.input:(pn=ve.getFieldValue("hack_sets"))==null?void 0:pn.input;xn==null||xn.forEach(Wa=>{const ta=Wa.value||Wa.answer_text||"";Zn=Zn.replace(/(@▁@|@▁▁@)/,ta)}),on(La),nn(Zn),qt({}),cn(!0)},Yn=()=>Le(void 0,null,function*(){var en,pn,Zn,xn;const La=Nn(),Wa=zn?we==null?void 0:we.time_limit:(en=ve.getFieldsValue())==null?void 0:en.hack.time_limit,ta=zn?(pn=we==null?void 0:we.answer_content)==null?void 0:pn.length:(xn=(Zn=ve.getFieldsValue())==null?void 0:Zn.standard_answers)==null?void 0:xn.length;vt(!0),yield(0,z.bM)(Zt.current,{test_hack_code:Yt,test_input:bt});function yn(){return Le(this,null,function*(){const{status:Oa,data:Ve}=yield(0,z.rX)(Zt.current,"submit"),Ht=Nn()-La>(Wa+3)*1e3*ta;if(wt.current){if(Ht){De.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),vt(!1);return}if(Oa===0){vt(!1),qt(ot(je({},Ve),{showText:!0}));return}setTimeout(yn,1e3)}})}yn()}),xa=()=>Le(void 0,null,function*(){var en,pn,Zn,xn,La,Wa,ta;if(!we){try{yield ve.validateFields()}catch(Ft){(Zn=(pn=(en=Ft==null?void 0:Ft.errorFields)==null?void 0:en[0])==null?void 0:pn.name)!=null&&Zn.includes("standard_answers")?De.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):De.ZP.error(Ft.errorFields[0].errors[0]),ve.scrollToField(Ft.errorFields[0].name,{behavior:"smooth",block:"center"});return}_e(!0);let Oa="";const Ve=ve.getFieldsValue();An.current?Oa=yield(0,y.ZP)(`/api/problems/${An.current}.json`,{method:"put",body:ot(je({},Ve),{hack:ot(je({},Ve==null?void 0:Ve.hack),{sub_discipline_id:(ta=(Wa=Ve==null?void 0:Ve.hack)==null?void 0:Wa.sub_discipline_id)==null?void 0:ta[1],difficult:Ve.difficulty,item_banks_group_id:Ve.item_banks_group_id}),hack_codes:ot(je({},Ve.hack_codes),{code:a.Base64.encode(Ve.hack_codes.code)}),update_hack_sets:[je({},Ve.hack_sets)],is_blank:!0})}):(Oa=yield(0,y.ZP)("/api/problems.json",{method:"post",body:ot(je({},Ve),{hack:ot(je({},Ve==null?void 0:Ve.hack),{sub_discipline_id:(La=(xn=Ve==null?void 0:Ve.hack)==null?void 0:xn.sub_discipline_id)==null?void 0:La[1],difficult:Ve.difficulty,item_banks_group_id:Ve.item_banks_group_id}),hack_codes:ot(je({},Ve.hack_codes),{code:a.Base64.encode(Ve.hack_codes.code)}),hack_sets:[je({},Ve.hack_sets)],is_blank:!0})}),An.current=Oa==null?void 0:Oa.identifier,sessionStorage.projectFill=Oa==null?void 0:Oa.identifier)}const yn=yield(0,y.ZP)(`/api/problems/${An.current}/start.json`,{method:"get"});if((yn==null?void 0:yn.status)===0){Zt.current=yn==null?void 0:yn.identifier,wt.current=!0,_e(!1),Wn();return}_e(!1)}),ln=en=>{const{status:pn,error_msg:Zn,execute_time:xn,output:La,input:Wa,expected_output:ta}=en;let yn=null;switch(pn){case ie.h.OK:yn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",xn/1e3,"\u79D2"),ce.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:yn=ce.createElement(ce.Fragment,null,ce.createElement("div",null,"\u8F93\u5165\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},Wa),ce.createElement("div",null,"\u8F93\u51FA\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},La&&a.Base64.decode(La)),ce.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ce.createElement("pre",{style:{fontFamily:"initial"}},ta&&a.Base64.decode(ta)));break;case ie.h.EXECUTEFAILURE:yn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,Wa)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},a.Base64.decode(Zn)));break;case ie.h.COMPILEFAILURE:yn=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,Wa)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},a.Base64.decode(Zn)));break;case ie.h.PODFAILURE:yn=ce.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:yn=ce.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ce.createElement(ce.Fragment,null," ",yn," ")};return ce.createElement("div",null,ce.createElement(le.ZP,ot(je({loading:Ye},Ue),{onClick:xa}),Fe),ce.createElement(Ae.default,{open:Et,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ce,cancelButtonProps:{style:{display:"none"}},onOk:()=>Yn(),onCancel:()=>{wt.current=!1,cn(!1)}},ce.createElement("div",{className:x.result},ce.createElement("div",{className:x.left},ce.createElement("div",{className:"mb20"},ce.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!we&&ce.createElement(re.CopyToClipboard,{text:Yt,onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},ce.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ce.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ce.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Yt,onChange:en=>nn(en)})),ce.createElement("div",{className:x.right},ce.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ce.createElement("div",{className:x.box},ce.createElement("div",{className:x.li},ce.createElement(se.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:bt,onChange:en=>on(en.target.value),bordered:!1,style:{height:180}}))),ce.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ce.createElement("div",{className:x.box},ce.createElement(E.Z,{spinning:Ce,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ce.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},ln(Lt))))))))},Ke=ae(87169),$e=ae(59301),Wt=Object.defineProperty,it=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Dt=(Ue,Fe,ve)=>Fe in Ue?Wt(Ue,Fe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ue[Fe]=ve,rn=(Ue,Fe)=>{for(var ve in Fe||(Fe={}))Qe.call(Fe,ve)&&Dt(Ue,ve,Fe[ve]);if(Xt)for(var ve of Xt(Fe))ft.call(Fe,ve)&&Dt(Ue,ve,Fe[ve]);return Ue},Pt=(Ue,Fe)=>it(Ue,jt(Fe)),Jt=(Ue,Fe)=>{var ve={};for(var tt in Ue)Qe.call(Ue,tt)&&Fe.indexOf(tt)<0&&(ve[tt]=Ue[tt]);if(Ue!=null&&Xt)for(var tt of Xt(Ue))Fe.indexOf(tt)<0&&ft.call(Ue,tt)&&(ve[tt]=Ue[tt]);return ve};const{TextArea:Be}=se.default,Ut=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],En=({value:Ue,onChange:Fe})=>$e.createElement(Switch,{checked:Ue,onChange:ve=>{Fe(ve)}}),Ct="@\u2581@",It="@\u2581\u2581@",et=({questionTitlePlaceholder:Ue,form:Fe,scoreByBlank:ve=!1,hackidentifier:tt,answerKey:At})=>{const[we,Ce]=(0,b.useState)(!1),[vt,Ye]=(0,b.useState)(!1),Et=(0,He.useParams)().type==="edit",cn=(Zt,wt)=>{const Nn=wt.line;let zn=0;for(let Yn=0;Yn<Nn;Yn++)zn+=Zt.getLine(Yn).split(Ct).length-1;for(let Yn=0;Yn<Nn;Yn++)zn+=Zt.getLine(Yn).split(It).length-1;const Wn=Zt.getLine(Nn).substring(0,wt.ch);return zn+=Wn.split(Ct).length-1,zn+=Wn.split(It).length-1,zn},Lt=(Zt,wt,Nn,zn)=>{const Wn=Zt.getRange(wt.from,wt.to);let Yn=0;if(wt.text.forEach(xa=>{Yn+=xa.split(Ct).length-1}),wt.text.forEach(xa=>{Yn+=xa.split(It).length-1}),wt.origin!=="setValue"){if(Wn&&(Wn.indexOf(Ct)!==-1||Wn.indexOf(It)!==-1)){const xa=Wn.split(Ct).length-1+Wn.split(It).length-1,ln=cn(Zt,wt.from);if(console.log(`\u5220\u9664${xa}\u4E2A\uFF0C \u524D\u9762\u6709${ln}\u4E2A\uFF0C\u65B0\u589E${Yn}\u4E2A`),xa>1){const en=Array.from({length:xa},(pn,Zn)=>ln+Zn);zn(en)}else zn(ln)}else if(Yn>0){const xa=cn(Zt,wt.from);console.log(`\u65B0\u589E${Yn}\u4E2A\uFF0C\u4E4B\u524D\u6709${xa}\u4E2A`),Nn(Yn,xa)}}},qt=()=>{const Zt=Fe.getFieldValue(At);Fe.setFieldsValue({[At]:Zt==null?void 0:Zt.map((wt,Nn)=>Pt(rn({},wt),{position:Nn+1}))})},Yt=(0,b.useRef)(),nn=(Zt,wt)=>{for(let Nn=0;Nn<Zt;Nn++)Yt.current({position:null,answer_text:""},wt+Nn);qt()},bt=(0,b.useRef)(),on=Zt=>{bt.current(Zt),qt()},An=be.default.useWatch(At,Fe);return $e.createElement("div",{className:Ze.Z.wrap},$e.createElement(be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},$e.createElement(Te.h,{scrollId:"name",watch:!0,height:140})),$e.createElement("div",{className:Ze.Z.questionTitleEditorWrap},$e.createElement(be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},$e.createElement(Te.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Zt,wt)=>{const Nn=Fe.getFieldValue(At);console.log("--preAnswerData",Nn,wt),Fe.setFieldsValue({[At]:Nn==null?void 0:Nn.map((zn,Wn)=>{var Yn;return Pt(rn({},zn),{position:Wn+1,multi_line:(Yn=wt==null?void 0:wt[Wn])==null?void 0:Yn.multiLine})})})},placeholder:Ue,onCMBeforeChange:(Zt,wt)=>{Lt(Zt,wt,nn,on)}}))),$e.createElement(be.default.List,{name:At,rules:[{validator(Zt,wt){if(!(wt!=null&&wt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Nn of wt){const{answer_text:zn}=Nn||{};if((zn==null?void 0:zn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Zt,{add:wt,remove:Nn},{errors:zn})=>(Yt.current=wt,bt.current=Nn,$e.createElement($e.Fragment,null,$e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},$e.createElement(be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),$e.createElement("div",{onClick:()=>{Ae.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:$e.createElement("div",null,$e.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",$e.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),$e.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},$e.createElement(Ke.Z,{style:{marginRight:3,color:"#3061D0"}}),$e.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Zt.map((Wn,Yn)=>{var xa=Wn,{key:ln,name:en}=xa,pn=Jt(xa,["key","name"]),Zn,xn;return $e.createElement(Ie.Z,{className:"mb20",key:ln,align:"middle",wrap:!1},$e.createElement(Oe.Z,{flex:"0 0 auto",className:`${Ze.Z.blankIndex}`},"\u586B\u7A7A\u9879",Yn+1),$e.createElement(Oe.Z,{flex:1},$e.createElement(Ie.Z,{align:"top",justify:"space-between",wrap:!1},$e.createElement(Oe.Z,null,$e.createElement(be.default.Item,Pt(rn({},pn),{name:[en,"answer_text"],noStyle:!0}),(Zn=An==null?void 0:An[en])!=null&&Zn.multi_line||(xn=An==null?void 0:An[en])!=null&&xn.multiLine?$e.createElement(Be,{spellCheck:!1,style:{marginLeft:10,width:550}}):$e.createElement(se.default,{style:{marginLeft:10,width:550},className:Ze.Z.blankInput,size:"large",maxLength:1e3,onBlur:La=>{}}))),ve&&$e.createElement(Oe.Z,{flex:"224px"},$e.createElement(be.default.Item,Pt(rn({},pn),{name:[en,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),$e.createElement(ue.Z,{size:"large",className:Ze.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),$e.createElement("div",{onClick:()=>Ce(!0)},$e.createElement(be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},$e.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:we}))),$e.createElement(be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},$e.createElement(ke.default,{size:"large"},Ut.map(Zt=>$e.createElement(ke.default.Option,{key:Zt.title,value:Zt.key}," ",Zt.title)))),$e.createElement(be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},$e.createElement(be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},$e.createElement(ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),$e.createElement("span",{className:"ml10 font14"},"\u79D2")),$e.createElement(be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},$e.createElement(We.ZP.Group,{style:{marginTop:-10}},$e.createElement(We.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),$e.createElement(We.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),$e.createElement(We.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),$e.createElement(be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),$e.createElement("div",{style:{background:"#F6F7F9",padding:15}},$e.createElement(be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},$e.createElement(Be,{rows:4})),$e.createElement(be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},$e.createElement(Be,{rows:4}))),$e.createElement(st,{form:Fe,answerKey:At,hackIdentifier:tt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:$e.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},74830:function(_t,Ot,ae){"use strict";ae.d(Ot,{u:function(){return ce}});var b=ae(59301),se=ae(95237),be=ae(43604),Ae=ae(6848),Ie=ae(78241),Oe=ae(11037),ue=ae(32134),ke=ae(12893),We=ae(64542),Te=ae(59301),He=Object.defineProperty,Ze=Object.defineProperties,De=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(pe,ge,Ee)=>ge in pe?He(pe,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):pe[ge]=Ee,y=(pe,ge)=>{for(var Ee in ge||(ge={}))E.call(ge,Ee)&&x(pe,Ee,ge[Ee]);if(le)for(var Ee of le(ge))a.call(ge,Ee)&&x(pe,Ee,ge[Ee]);return pe},z=(pe,ge)=>Ze(pe,De(ge)),te=(pe,ge)=>{var Ee={};for(var ye in pe)E.call(pe,ye)&&ge.indexOf(ye)<0&&(Ee[ye]=pe[ye]);if(pe!=null&&le)for(var ye of le(pe))ge.indexOf(ye)<0&&a.call(pe,ye)&&(Ee[ye]=pe[ye]);return Ee};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:pe,onChange:ge,choiceTextKey:Ee,answerKey:ye,index:Re,isEdit:he,setInputActive:qe,form:je,choiceOptionsPath:ot,allowChangeMode:Le,showAddIcon:Je,addItem:st,deleteItem:Ke})=>{console.log(pe,"value");const $e=(pe==null?void 0:pe[ye])===1,Wt=()=>{const jt=je.getFieldValue(ot);je.setFieldValue(ot,jt.map(Xt=>z(y({},Xt),{[ye]:0})))},it=()=>{$e?ge(z(y({},pe),{[ye]:0})):(Le||Wt(),ge(z(y({},pe),{[ye]:1})))};return Te.createElement(se.Z,{className:Oe.Z.choiceWrap,align:"middle",wrap:!1},Te.createElement(be.Z,{onClick:it,className:`${Oe.Z.choiceIndex} ${$e?Oe.Z.activeAnswer:""}`},re[Re]),Te.createElement(be.Z,{flex:1,className:`${Oe.Z.editorWrap} ml15`,onClick:qe},Te.createElement(We.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:he,value:pe==null?void 0:pe[Ee],onChange:jt=>{ge(z(y({},pe),{[Ee]:jt}))}})),Te.createElement(be.Z,{flex:"0 0 auto",className:"ml15"},Te.createElement("div",{onClick:it,className:`${Oe.Z.setAnswerBtn} ${$e?Oe.Z.activeAnswer:""}`},$e?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Te.createElement(be.Z,{className:Oe.Z.actionWrapper},Te.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Te.createElement(ue.Z,{className:Oe.Z.addIcon,onClick:st,style:{visibility:Je?"visible":"hidden"}})),Te.createElement(Ae.Z,{title:"\u5220\u9664"},Te.createElement(ke.Z,{className:Oe.Z.deleteIcon,onClick:Ke,style:{visibility:Re>1?"visible":"hidden"}}))))},ce=({questionTitlePlaceholder:pe,titleKey:ge,choiceKey:Ee,analysisKey:ye,choiceTextKey:Re,answerKey:he,choiceOptionsPath:qe,allowChangeMode:je=!0,form:ot,showAnalysis:Le=!0})=>{const[Je,st]=(0,b.useState)(),[Ke,$e]=(0,b.useState)(!1);return Te.createElement("div",{className:Oe.Z.wrap},Te.createElement("div",{className:Oe.Z.questionTitleEditorWrap},Te.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:ge,labelCol:{span:24},rules:[{required:!0}]},Te.createElement(We.h,{scrollId:Array.isArray(ge)?ge.join("_"):`${ge}`,watch:!0,height:140,placeholder:pe}))),Te.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Te.createElement(Ie.default.List,{name:Ee,rules:[{validator(Wt,it){const jt=it.some(Qe=>Qe[he]===1),Xt=it.findIndex(Qe=>{var ft;return((ft=Qe[Re])==null?void 0:ft.length)<=0});return Xt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Xt]}\u9009\u9879\u7684\u5185\u5BB9`)):jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Wt,{add:it,remove:jt})=>Te.createElement("div",{id:Array.isArray(qe)?qe.join("_"):`${qe}`},Wt.map((Xt,Qe)=>{var ft=Xt,{key:Dt,name:rn}=ft,Pt=te(ft,["key","name"]);const Jt=Je===Dt,Be=()=>{st(Dt)},Ut=Qe<7&&Qe===Wt.length-1,En=()=>it({[Re]:"",[he]:0}),Ct=()=>jt(rn);return Te.createElement(Ie.default.Item,z(y({},Pt),{key:Dt,name:rn,className:Oe.Z.choiceListWrap,rules:[{validator(It,et){return et!=null&&et.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Te.createElement(ie,{choiceTextKey:Re,answerKey:he,index:Qe,isEdit:Jt,setInputActive:Be,form:ot,choiceOptionsPath:qe,allowChangeMode:je,showAddIcon:Ut,addItem:En,deleteItem:Ct}))}),Wt.length<8&&Te.createElement("div",{className:`${Oe.Z.addBtn} mb30`,onClick:()=>it({[Re]:"",[he]:0})},"\u6DFB\u52A0\u9009\u9879"))),Le&&Te.createElement("div",{onClick:()=>$e(!0)},Te.createElement(Ie.default.Item,{name:ye,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Te.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ke}))))}},26778:function(_t,Ot,ae){"use strict";ae.d(Ot,{u:function(){return je}});var b=ae(59301),se=ae(43418),be=ae(95237),Ae=ae(43604),Ie=ae(92832),Oe=ae(6848),ue=ae(78673),ke=ae(78241),We=ae(5112),Te=ae(5871),He=ae(64542),Ze=ae(12893),De=ae(61485),le=ae(11037),E=ae(34571),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ce=(ot,Le,Je)=>Le in ot?x(ot,Le,{enumerable:!0,configurable:!0,writable:!0,value:Je}):ot[Le]=Je,pe=(ot,Le)=>{for(var Je in Le||(Le={}))re.call(Le,Je)&&ce(ot,Je,Le[Je]);if(te)for(var Je of te(Le))ie.call(Le,Je)&&ce(ot,Je,Le[Je]);return ot},ge=(ot,Le)=>y(ot,z(Le)),Ee=(ot,Le)=>{var Je={};for(var st in ot)re.call(ot,st)&&Le.indexOf(st)<0&&(Je[st]=ot[st]);if(ot!=null&&te)for(var st of te(ot))Le.indexOf(st)<0&&ie.call(ot,st)&&(Je[st]=ot[st]);return Je};const ye=({value:ot,onChange:Le})=>{const Je=Ke=>{se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const $e=[...ot];$e.splice(Ke,1),Le($e)}})},st=()=>{const Ke=[...ot];Ke.push(""),Le(Ke)};return a.createElement(be.Z,{className:"ml20"},a.createElement(Ae.Z,{flex:1},ot==null?void 0:ot.map((Ke,$e)=>a.createElement(be.Z,{key:`${Ke}_${$e}`,className:"mb20"},a.createElement(Ie.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ke,autoSize:{maxRows:3},maxLength:1e3,onBlur:Wt=>{const it=[...ot],jt=Wt.target.value.trim();it[$e]=jt,Le(it)}}),a.createElement(Oe.Z,{title:"\u5220\u9664"},a.createElement(Ze.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:$e>0?"visible":"hidden"},onClick:()=>Je($e)}))))),a.createElement(Ae.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{st()}},"\u65B0\u589E\u7B54\u6848")))},Re=({value:ot,onChange:Le})=>{const Je=Ke=>{se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const $e=[...ot];$e.splice(Ke,1),Le($e)}})},st=()=>{const Ke=[...ot];Ke.push(""),Le(Ke)};return a.createElement(be.Z,{className:"ml20"},a.createElement(Ae.Z,{flex:1},ot==null?void 0:ot.map((Ke,$e)=>a.createElement(be.Z,{key:`${Ke}_${$e}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:Ke,style:{flex:1},onChange:Wt=>{const it=[...ot];it[$e]=Wt,Le(it)}}),a.createElement(Oe.Z,{title:"\u5220\u9664"},a.createElement(Ze.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:$e>0?"visible":"hidden"},onClick:()=>Je($e)}))))),a.createElement(Ae.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{st()}},"\u65B0\u589E\u7B54\u6848")))},he=({value:ot=!0,onChange:Le})=>a.createElement(ue.Z,{checked:!ot,onChange:Je=>{Le(!Je)}}),qe="\u2581",je=({questionTitlePlaceholder:ot,form:Le,scoreByBlank:Je=!1,answerKey:st})=>{const[Ke,$e]=(0,b.useState)(!1),Wt=(Pt,Jt)=>{const Be=Jt.line;let Ut=0;for(let Ct=0;Ct<Be;Ct++)Ut+=Pt.getLine(Ct).split(qe).length-1;const En=Pt.getLine(Be).substring(0,Jt.ch);return Ut+=En.split(qe).length-1,Ut},it=(Pt,Jt,Be,Ut)=>{const En=Pt.getRange(Jt.from,Jt.to);let Ct=0;if(Jt.text.forEach(It=>{Ct+=It.split(qe).length-1}),Jt.origin!=="setValue"){if(En&&En.indexOf(qe)!==-1){const It=En.split(qe).length-1,et=Wt(Pt,Jt.from);if(console.log(`\u5220\u9664${It}\u4E2A\uFF0C \u524D\u9762\u6709${et}\u4E2A\uFF0C\u65B0\u589E${Ct}\u4E2A`),It>1){const Ue=Array.from({length:It},(Fe,ve)=>et+ve);Ut(Ue)}else Ut(et)}else if(Ct>0){const It=Wt(Pt,Jt.from);console.log(`\u65B0\u589E${Ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${It}\u4E2A`),Be(Ct,It)}}},jt=()=>{const Pt=Le.getFieldValue(st);Le.setFieldsValue({[st]:Pt.map((Jt,Be)=>ge(pe({},Jt),{position:Be+1}))})},Xt=(0,b.useRef)(),Qe=(Pt,Jt)=>{for(let Be=0;Be<Pt;Be++)Xt.current({position:null,answer_text:[""],model:1},Jt+Be);jt()},ft=(0,b.useRef)(),Dt=Pt=>{ft.current(Pt),jt()},rn=ke.default.useWatch(st,Le);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(He.h,{scrollId:"name",watch:!0,height:140,placeholder:ot,showNullButton:!0,onCMBeforeChange:(Pt,Jt)=>{it(Pt,Jt,Qe,Dt)}}))),a.createElement(ke.default.List,{name:st,rules:[{validator(Pt,Jt){if(!(Jt!=null&&Jt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Be of Jt){const{answer_text:Ut}=Be||{};if(Ut!=null&&Ut.some(En=>(En==null?void 0:En.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Pt,{add:Jt,remove:Be},{errors:Ut})=>(Xt.current=Jt,ft.current=Be,a.createElement(a.Fragment,null,a.createElement(ke.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Pt!=null&&Pt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Pt.map((En,Ct)=>{var It=En,{key:et,name:Ue}=It,Fe=Ee(It,["key","name"]),ve,tt;return a.createElement("div",{style:{marginBottom:10},key:et},a.createElement(be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ae.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ct+1),a.createElement(ke.default.Item,ge(pe({},Fe),{name:[Ue,"model"],noStyle:!0}),a.createElement(We.ZP.Group,{onChange:()=>{const At=Le.getFieldValue(st);Le.setFieldsValue({[st]:At.map((we,Ce)=>ge(pe({},we),{answer_text:Ue===Ce?[""]:we.answer_text}))})}},a.createElement(We.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Oe.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(De.Z,null))),a.createElement(We.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Oe.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(De.Z,null)))))),a.createElement(be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ae.Z,{flex:1},a.createElement(be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ae.Z,{flex:1},a.createElement(ke.default.Item,ge(pe({},Fe),{name:[Ue,"answer_text"],noStyle:!0}),((tt=(ve=Le.getFieldValue(st))==null?void 0:ve[Ue])==null?void 0:tt.model)===1?a.createElement(ye,null):a.createElement(Re,null))),Je&&a.createElement(Ae.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(ke.default.Item,ge(pe({},Fe),{name:[Ue,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(Te.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(ke.default.Item,ge(pe({},Fe),{name:[Ue,"position"],noStyle:!0}),a.createElement(Ie.default,{type:"hidden"})))))})))),a.createElement(be.Z,{align:"middle"},a.createElement(ke.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(ue.Z,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(be.Z,{align:"middle"},a.createElement(ke.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(ue.Z,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(rn==null?void 0:rn.length)>1&&a.createElement(be.Z,{align:"middle",className:(rn==null?void 0:rn.length)>1?"mb30":`${le.Z.hide}`},a.createElement(ke.default.Item,{name:"is_ordered"},a.createElement(he,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>$e(!0)},a.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(He.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ke}))))}},41673:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return te}});var b=ae(59301),se=ae(95237),be=ae(43604),Ae=ae(78241),Ie=ae(11037),Oe=ae(64542),ue=ae(59301),ke=Object.defineProperty,We=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,le=(re,ie,ce)=>ie in re?ke(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ce}):re[ie]=ce,E=(re,ie)=>{for(var ce in ie||(ie={}))Ze.call(ie,ce)&&le(re,ce,ie[ce]);if(He)for(var ce of He(ie))De.call(ie,ce)&&le(re,ce,ie[ce]);return re},a=(re,ie)=>We(re,Te(ie)),x=(re,ie)=>{var ce={};for(var pe in re)Ze.call(re,pe)&&ie.indexOf(pe)<0&&(ce[pe]=re[pe]);if(re!=null&&He)for(var pe of He(re))ie.indexOf(pe)<0&&De.call(re,pe)&&(ce[pe]=re[pe]);return ce};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ce})=>{const pe=(re==null?void 0:re.is_answer)===1,ge=re==null?void 0:re.choice_text,Ee=()=>{const ye=ce.getFieldsValue().choices.map(Re=>({choice_text:Re.choice_text,is_answer:0}));ce.setFieldsValue({choices:ye}),ie(a(E({},re),{is_answer:1}))};return ue.createElement(se.Z,{className:Ie.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ue.createElement(be.Z,{onClick:Ee,className:`${Ie.Z.choiceIndex} ${Ie.Z.judgementIndex} ${pe?Ie.Z.activeAnswer:""}`},y[ge]),ue.createElement(be.Z,{flex:1,className:`${Ie.Z.editorWrap} ml15`},ue.createElement("div",{className:`${Ie.Z.inputBorder} ${Ie.Z.placeholder} ${pe?Ie.Z.activeJudgementAnswer:""}`},ge)),ue.createElement(be.Z,{flex:"0 0 auto",className:"ml15"},ue.createElement("div",{onClick:Ee,className:`${Ie.Z.setAnswerBtn} ${pe?Ie.Z.activeAnswer:""}`},pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:re,choiceKey:ie,form:ce})=>{const[pe,ge]=(0,b.useState)(!1);return ue.createElement("div",{className:Ie.Z.wrap},ue.createElement("div",{className:Ie.Z.questionTitleEditorWrap},ue.createElement(Ae.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ue.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),ue.createElement(Ae.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ue.createElement(Ae.default.List,{name:"choices",rules:[{validator(Ee,ye){return ye.some(he=>(he==null?void 0:he.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ee=>ue.createElement("div",{id:"choices"},Ee.map(ye=>{var Re=ye,{key:he,name:qe}=Re,je=x(Re,["key","name"]);return ue.createElement(Ae.default.Item,a(E({},je),{key:he,name:qe,noStyle:!0}),ue.createElement(z,{form:ce}))})))),ue.createElement("div",{onClick:()=>ge(!0)},ue.createElement(Ae.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ue.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pe}))))}},64542:function(_t,Ot,ae){"use strict";ae.d(Ot,{h:function(){return E},x:function(){return a}});var b=ae(23469),se=ae(11037),be=ae(25711),Ae=ae(59301),Ie=Object.defineProperty,Oe=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,He=(x,y,z)=>y in x?Ie(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,Ze=(x,y)=>{for(var z in y||(y={}))We.call(y,z)&&He(x,z,y[z]);if(ke)for(var z of ke(y))Te.call(y,z)&&He(x,z,y[z]);return x},De=(x,y)=>Oe(x,ue(y)),le=(x,y)=>{var z={};for(var te in x)We.call(x,te)&&y.indexOf(te)<0&&(z[te]=x[te]);if(x!=null&&ke)for(var te of ke(x))y.indexOf(te)<0&&Te.call(x,te)&&(z[te]=x[te]);return z};const E=x=>{var y=x,{value:z,onChange:te,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Ae.createElement("div",{id:re||""},Ae.createElement(b.Z,De(Ze({},ie),{defaultValue:z,onChange:(ce,pe)=>{pe!=null&&pe.length?te(ce,pe):te(ce)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:re,miniToolbar:ie,watch:ce=!0})=>re?Ae.createElement(b.Z,{watch:ce,isFocus:!0,height:te||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Ae.createElement("div",{style:{cursor:"pointer"}},x?Ae.createElement(be.Z,{className:se.Z.inputBorder,value:x}):Ae.createElement("div",{className:`${se.Z.inputBorder} ${se.Z.placeholder} inputBorderError`},z))},6507:function(_t,Ot,ae){"use strict";ae.d(Ot,{W:function(){return Re}});var b=ae(59301),se=ae(8591),be=ae(12563),Ae=ae(78241),Ie=ae(78673),Oe=ae(95237),ue=ae(43604),ke=ae(6848),We=ae(92832),Te=ae(5871),He=ae(11037),Ze=ae(64542),De=ae(23469),le=ae(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,re=(he,qe,je)=>qe in he?E(he,qe,{enumerable:!0,configurable:!0,writable:!0,value:je}):he[qe]=je,ie=(he,qe)=>{for(var je in qe||(qe={}))z.call(qe,je)&&re(he,je,qe[je]);if(y)for(var je of y(qe))te.call(qe,je)&&re(he,je,qe[je]);return he},ce=(he,qe)=>a(he,x(qe)),pe=(he,qe)=>{var je={};for(var ot in he)z.call(he,ot)&&qe.indexOf(ot)<0&&(je[ot]=he[ot]);if(he!=null&&y)for(var ot of y(he))qe.indexOf(ot)<0&&te.call(he,ot)&&(je[ot]=he[ot]);return je};const ge=he=>{var qe=he,{value:je,onChange:ot}=qe,Le=pe(qe,["value","onChange"]);const Je=st=>{ot([st])};return b.createElement(De.Z,ce(ie({},Le),{defaultValue:je==null?void 0:je[0],onChange:Je}))},Ee=he=>{if(!he)return!1;if(/^s*$/.test(he)||he.trim()===""){se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let qe=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return he==="|"?(se.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ye=({value:he=[],onClose:qe})=>b.createElement(be.default,{closable:!0,onClose:qe,className:He.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},he.join(" \u6216 "))),Re=({questionTitlePlaceholder:he,form:qe,showKeywords:je,isMustKeyWords:ot=je})=>{const[Le,Je]=(0,b.useState)(!1),[st,Ke]=(0,b.useState)(""),$e=Ae.default.useWatch("use_keywords",qe),Wt=Ae.default.useWatch("question_score",qe);return b.createElement("div",{className:He.Z.wrap},b.createElement("div",{className:He.Z.questionTitleEditorWrap},b.createElement(Ae.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ze.h,{scrollId:"name",watch:!0,height:140,placeholder:he}))),b.createElement(Ae.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(ge,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),je&&!ot&&b.createElement(Ae.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Ie.Z,{defaultChecked:!0})),je&&ot&&b.createElement(Oe.Z,{align:"middle",className:"mb30"},b.createElement(Ae.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Ie.Z,null)),b.createElement(ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(ue.Z,null,b.createElement(ke.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),($e||!ot)&&b.createElement(Ae.default.List,{name:"keywords",rules:[{validator(it,jt){return ot?jt!=null&&jt.length?(jt==null?void 0:jt.reduce((Qe,ft)=>Qe+ft.score,0))>parseFloat(Wt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(it,{add:jt,remove:Xt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${He.Z.title} mb10`},ot?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Oe.Z,{align:"middle",className:"font14 mb30"},b.createElement(ue.Z,{flex:1},b.createElement(We.default,{value:st,onChange:Qe=>{Ke(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var ft,Dt,rn,Pt;const Jt=`${(ft=Qe.target)==null?void 0:ft.value}`,Be=(rn=(Dt=Jt==null?void 0:Jt.split("|"))==null?void 0:Dt.filter(Ct=>!!Ct))==null?void 0:rn.map(Ct=>Ct==null?void 0:Ct.trim()),Ut=qe.getFieldValue("keywords"),En=((Pt=Ut==null?void 0:Ut.map(Ct=>Ct==null?void 0:Ct.keyword))==null?void 0:Pt.flat())||[];for(const Ct of Be)if(En.includes(Ct)){se.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ee(Jt)&&(jt({keyword:Be,score:1}),Ke(""))},className:He.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),it.map(Qe=>{var ft=Qe,{key:Dt,name:rn}=ft,Pt=pe(ft,["key","name"]);return b.createElement(Oe.Z,{key:Dt,className:"mb20",style:{marginRight:148}},b.createElement(ue.Z,{flex:1},b.createElement(Oe.Z,{align:"middle",justify:"space-between"},b.createElement(Ae.default.Item,ce(ie({},Pt),{name:[rn,"keyword"]}),b.createElement(ye,{onClose:()=>Xt(rn)})),ot&&b.createElement(Ae.default.Item,ce(ie({},Pt),{name:[rn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:He.Z.blankInputNumberWrapper}),b.createElement(Te.Z,{className:He.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Je(!0)},b.createElement(Ae.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Le}))))}},26696:function(_t,Ot,ae){"use strict";ae.d(Ot,{tc:function(){return xa.t},uh:function(){return b.u},rL:function(){return Yn},u8:function(){return be.u},ZZ:function(){return se.Z},Wk:function(){return Ae.W}});var b=ae(74830),se=ae(41673),be=ae(26778),Ae=ae(6507),Ie=ae(59301),Oe=ae(36381),ue=ae(78241),ke=ae(95237),We=ae(43604),Te=ae(5871),He=ae(6848),Ze=ae(38854),De=ae(11037),le=ae(12893),E=ae(64542),a=ae(43418),x=ae(92832),y=ae(78673),z=ae(59301),te=Object.defineProperty,re=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Ee=(ln,en,pn)=>en in ln?te(ln,en,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[en]=pn,ye=(ln,en)=>{for(var pn in en||(en={}))pe.call(en,pn)&&Ee(ln,pn,en[pn]);if(ce)for(var pn of ce(en))ge.call(en,pn)&&Ee(ln,pn,en[pn]);return ln},Re=(ln,en)=>re(ln,ie(en)),he=(ln,en)=>{var pn={};for(var Zn in ln)pe.call(ln,Zn)&&en.indexOf(Zn)<0&&(pn[Zn]=ln[Zn]);if(ln!=null&&ce)for(var Zn of ce(ln))en.indexOf(Zn)<0&&ge.call(ln,Zn)&&(pn[Zn]=ln[Zn]);return pn};const qe=({value:ln,onChange:en})=>{const pn=xn=>{a.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:De.Z.modal,onOk:()=>{const La=[...ln];La.splice(xn,1),en(La)}})},Zn=()=>{const xn=[...ln];xn.push(""),en(xn)};return z.createElement(ke.Z,{className:"ml20"},z.createElement(We.Z,{flex:1},ln==null?void 0:ln.map((xn,La)=>z.createElement(ke.Z,{key:`${xn}_${La}`,align:"middle",className:"mb20"},z.createElement(x.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:xn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Wa=>{const ta=[...ln],yn=Wa.target.value.trim();ta[La]=yn,en(ta)}}),z.createElement(He.Z,{title:"\u5220\u9664"},z.createElement(le.Z,{className:De.Z.deleteIcon,style:{marginLeft:15,visibility:La>0?"visible":"hidden"},onClick:()=>pn(La)}))))),z.createElement(We.Z,null,z.createElement("div",{className:`${De.Z.addBtn}`,onClick:()=>{Zn()}},"\u65B0\u589E\u7B54\u6848")))},je=({value:ln=!0,onChange:en})=>z.createElement(y.Z,{checked:!ln,onChange:pn=>{en(!pn)}}),ot="\u2581",Le=({questionTitlePlaceholder:ln,form:en,name:pn,scoreByBlank:Zn=!1,answerKey:xn,titleKey:La="name",analysisKey:Wa="analysis",isOrdered:ta="is_ordered"})=>{var yn,Oa;const[Ve,Ft]=(0,Ie.useState)(!1),Ht=(Kt,vn)=>{const an=vn.line;let kn=0;for(let Bn=0;Bn<an;Bn++)kn+=Kt.getLine(Bn).split(ot).length-1;const Fn=Kt.getLine(an).substring(0,vn.ch);return kn+=Fn.split(ot).length-1,kn},Vt=(Kt,vn,an,kn)=>{const Fn=Kt.getRange(vn.from,vn.to);let Bn=0;if(vn.text.forEach(Un=>{Bn+=Un.split(ot).length-1}),vn.origin!=="setValue"){if(Fn&&Fn.indexOf(ot)!==-1){const Un=Fn.split(ot).length-1,Ra=Ht(Kt,vn.from);if(console.log(`\u5220\u9664${Un}\u4E2A\uFF0C \u524D\u9762\u6709${Ra}\u4E2A\uFF0C\u65B0\u589E${Bn}\u4E2A`),Un>1){const bn=Array.from({length:Un},(pa,$a)=>Ra+$a);kn(bn)}else kn(Ra)}else if(Bn>0){const Un=Ht(Kt,vn.from);console.log(`\u65B0\u589E${Bn}\u4E2A\uFF0C\u4E4B\u524D\u6709${Un}\u4E2A`),an(Bn,Un)}}},tn=()=>{const Kt=en.getFieldValue(["sub_item_banks",...xn]);en.setFieldValue(["sub_item_banks",...xn],Kt==null?void 0:Kt.map((vn,an)=>Re(ye({},vn),{position:an+1})))},Sn=(0,Ie.useRef)(),mn=(Kt,vn)=>{for(let an=0;an<Kt;an++)Sn.current({position:null,answer_text:[""]},vn+an);tn()},lt=(0,Ie.useRef)(),pt=Kt=>{lt.current(Kt),tn()},ct=(Oa=(yn=en.getFieldValue("sub_item_banks"))==null?void 0:yn[xn==null?void 0:xn[0]])==null?void 0:Oa[xn==null?void 0:xn[1]];return(0,Ie.useEffect)(()=>{console.log("========",en.getFieldsValue())},[en]),z.createElement("div",{className:De.Z.wrap},z.createElement("div",{className:De.Z.questionTitleEditorWrap},z.createElement(ue.default.Item,{label:"\u9898\u5E72",name:La,labelCol:{span:24},rules:[{required:!0}]},z.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:ln,showNullButton:!0,onCMBeforeChange:(Kt,vn)=>{Vt(Kt,vn,mn,pt)}}))),z.createElement(ue.default.List,{name:xn,rules:[{validator(Kt,vn){if((vn==null?void 0:vn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const an of vn){const{answer_text:kn}=an||{};if(kn!=null&&kn.some(Fn=>(Fn==null?void 0:Fn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Kt,{add:vn,remove:an},{errors:kn})=>(Sn.current=vn,lt.current=an,z.createElement(z.Fragment,null,z.createElement(ue.default.Item,{label:z.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Kt!=null&&Kt.length)&&z.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Kt.map((Fn,Bn)=>{var Un=Fn,{key:Ra,name:bn}=Un,pa=he(Un,["key","name"]);return z.createElement(ke.Z,{align:"top",key:Ra},z.createElement(We.Z,{className:`${De.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Bn+1),z.createElement(We.Z,{flex:1},z.createElement(ke.Z,{align:"top",justify:"space-between"},z.createElement(We.Z,{flex:1},z.createElement(ue.default.Item,Re(ye({},pa),{name:[bn,"answer_text"],noStyle:!0}),z.createElement(qe,null))),Zn&&z.createElement(We.Z,{flex:"224px"},z.createElement(ue.default.Item,Re(ye({},pa),{name:[bn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:De.Z.blankInputNumberWrapper}),z.createElement(Te.Z,{className:De.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),z.createElement(ue.default.Item,Re(ye({},pa),{name:[bn,"position"],noStyle:!0}),z.createElement(x.default,{type:"hidden"}))))})))),z.createElement(ke.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[pn,"downcase"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(We.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),z.createElement(ke.Z,{align:"middle"},z.createElement(ue.default.Item,{name:[pn,"no_space"],valuePropName:"checked"},z.createElement(y.Z,null)),z.createElement(We.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ct==null?void 0:ct.length)>1&&z.createElement(ke.Z,{align:"middle",className:(ct==null?void 0:ct.length)>1?"mb30":`${De.Z.hide}`},z.createElement(ue.default.Item,{name:ta},z.createElement(je,null)),z.createElement(We.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),z.createElement("div",{className:"mt30",onClick:()=>Ft(!0)},z.createElement(ue.default.Item,{name:Wa,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},z.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ve}))))};var Je=ae(59301),st=Object.defineProperty,Ke=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Xt=(ln,en,pn)=>en in ln?st(ln,en,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[en]=pn,Qe=(ln,en)=>{for(var pn in en||(en={}))it.call(en,pn)&&Xt(ln,pn,en[pn]);if(Wt)for(var pn of Wt(en))jt.call(en,pn)&&Xt(ln,pn,en[pn]);return ln},ft=(ln,en)=>Ke(ln,$e(en)),Dt=(ln,en)=>{var pn={};for(var Zn in ln)it.call(ln,Zn)&&en.indexOf(Zn)<0&&(pn[Zn]=ln[Zn]);if(ln!=null&&Wt)for(var Zn of Wt(ln))en.indexOf(Zn)<0&&jt.call(ln,Zn)&&(pn[Zn]=ln[Zn]);return pn};const rn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Pt=({value:ln,onChange:en,form:pn,choiceKey:Zn})=>{const xn=(ln==null?void 0:ln.is_answer)===1,La=ln==null?void 0:ln.choice_text,Wa=()=>{var ta;const yn=(ta=pn==null?void 0:pn.getFieldValue(["sub_item_banks",...Zn]))==null?void 0:ta.map(Oa=>({choice_text:Oa.choice_text,is_answer:0}));pn==null||pn.setFieldValue(["sub_item_banks",...Zn],yn),en(ft(Qe({},ln),{is_answer:1}))};return Je.createElement(ke.Z,{className:De.Z.choiceWrap,align:"middle",wrap:!1},Je.createElement(We.Z,{onClick:Wa,className:`${De.Z.choiceIndex} ${De.Z.judgementIndex} ${xn?De.Z.activeAnswer:""}`},rn[La]),Je.createElement(We.Z,{flex:1,className:`${De.Z.editorWrap} ml15`},Je.createElement("div",{className:`${De.Z.inputBorder} ${De.Z.placeholder} ${xn?De.Z.activeJudgementAnswer:""}`},La)),Je.createElement(We.Z,{flex:"0 0 auto",className:"ml15"},Je.createElement("div",{onClick:Wa,className:`${De.Z.setAnswerBtn} ${xn?De.Z.activeAnswer:""}`},xn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Jt=({questionTitlePlaceholder:ln,choiceKey:en="choices",form:pn,titleKey:Zn="name",analysisKey:xn="analysis"})=>{const[La,Wa]=(0,Ie.useState)(!1);return Je.createElement("div",{className:De.Z.wrap},Je.createElement("div",{className:De.Z.questionTitleEditorWrap},Je.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Zn,labelCol:{span:24},rules:[{required:!0}]},Je.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:ln}))),Je.createElement(ue.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Je.createElement(ue.default.List,{name:en,rules:[{validator(ta,yn){return yn.some(Ve=>(Ve==null?void 0:Ve.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ta=>Je.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},ta.map(yn=>{var Oa=yn,{key:Ve,name:Ft}=Oa,Ht=Dt(Oa,["key","name"]);return Je.createElement(ue.default.Item,ft(Qe({},Ht),{key:Ve,name:Ft,noStyle:!0}),Je.createElement(Pt,{form:pn,choiceKey:en}))})))),Je.createElement("div",{className:"mt30",onClick:()=>Wa(!0)},Je.createElement(ue.default.Item,{name:xn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Je.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:La}))))};var Be=ae(8591),Ut=ae(12563),En=ae(23469),Ct=ae(61485),It=Object.defineProperty,et=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,At=(ln,en,pn)=>en in ln?It(ln,en,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[en]=pn,we=(ln,en)=>{for(var pn in en||(en={}))ve.call(en,pn)&&At(ln,pn,en[pn]);if(Fe)for(var pn of Fe(en))tt.call(en,pn)&&At(ln,pn,en[pn]);return ln},Ce=(ln,en)=>et(ln,Ue(en)),vt=(ln,en)=>{var pn={};for(var Zn in ln)ve.call(ln,Zn)&&en.indexOf(Zn)<0&&(pn[Zn]=ln[Zn]);if(ln!=null&&Fe)for(var Zn of Fe(ln))en.indexOf(Zn)<0&&tt.call(ln,Zn)&&(pn[Zn]=ln[Zn]);return pn};const Ye=ln=>{var en=ln,{value:pn,onChange:Zn}=en,xn=vt(en,["value","onChange"]);const La=Wa=>{Zn([Wa])};return Ie.createElement(En.Z,Ce(we({},xn),{defaultValue:pn==null?void 0:pn[0],onChange:La}))},_e=ln=>{if(!ln)return!1;let en=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ln==="|"?(Be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Et=({value:ln=[],onClose:en})=>Ie.createElement(Ut.default,{closable:!0,onClose:en,className:De.Z.keywordTag},Ie.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ln.join(" \u6216 "))),cn=({questionTitlePlaceholder:ln,form:en,showKeywords:pn,isMustKeyWords:Zn=pn,titleKey:xn="name",analysisKey:La="analysis",answerTexts:Wa="answer_texts",keywords:ta="keywords",useKeywords:yn="use_keywords",indexs:Oa})=>{const[Ve,Ft]=(0,Ie.useState)(!1),[Ht,Vt]=(0,Ie.useState)(""),[tn,Sn]=(0,Ie.useState)(!1),mn=ue.default.useWatch("question_score",en);return Ie.createElement("div",{className:De.Z.wrap},Ie.createElement("div",{className:De.Z.questionTitleEditorWrap},Ie.createElement(ue.default.Item,{label:"\u9898\u5E72",name:xn,labelCol:{span:24},rules:[{required:!0}]},Ie.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:ln}))),Ie.createElement(ue.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Wa,labelCol:{span:24}},Ie.createElement(Ye,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),pn&&!Zn&&Ie.createElement(ue.default.Item,{hidden:!0,name:yn,valuePropName:"checked"},Ie.createElement(y.Z,{defaultChecked:!0})),pn&&Zn&&Ie.createElement(ke.Z,{align:"middle",className:"mb30"},Ie.createElement(ue.default.Item,{name:yn,valuePropName:"checked"},Ie.createElement(y.Z,{onChange:()=>{var lt,pt,ct,Kt,vn,an;console.log(en.getFieldsValue()),Sn((ct=(pt=(lt=en.getFieldsValue())==null?void 0:lt.sub_item_banks)==null?void 0:pt[Oa])==null?void 0:ct.use_keywords),console.log((an=(vn=(Kt=en.getFieldsValue())==null?void 0:Kt.sub_item_banks)==null?void 0:vn[Oa])==null?void 0:an.use_keywords),console.log(tn)}})),Ie.createElement(We.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Ie.createElement(We.Z,null,Ie.createElement(He.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Ie.createElement(Ct.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(tn||!Zn)&&Ie.createElement(ue.default.List,{name:ta,rules:[{validator(lt,pt){return Zn?pt!=null&&pt.length?(pt==null?void 0:pt.reduce((Kt,vn)=>Kt+vn.score,0))>parseFloat(mn)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(lt,{add:pt,remove:ct})=>Ie.createElement(Ie.Fragment,null,Ie.createElement("div",{className:`${De.Z.title} mb10`},Zn?"\u5173\u952E\u8BCD":Ie.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Ie.createElement(ke.Z,{align:"middle",className:"font14 mb30"},Ie.createElement(We.Z,{flex:1},Ie.createElement(x.default,{value:Ht,onChange:Kt=>{Vt(Kt.target.value)},maxLength:50,allowClear:!0,onPressEnter:Kt=>{var vn,an,kn,Fn;const Bn=`${(vn=Kt.target)==null?void 0:vn.value}`,Un=(kn=(an=Bn==null?void 0:Bn.split("|"))==null?void 0:an.filter(pa=>!!pa))==null?void 0:kn.map(pa=>pa==null?void 0:pa.trim()),Ra=en.getFieldValue(["sub_item_banks",...ta]),bn=((Fn=Ra==null?void 0:Ra.map(pa=>pa==null?void 0:pa.keyword))==null?void 0:Fn.flat())||[];for(const pa of Un)if(bn.includes(pa)){Be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}_e(Bn)&&(pt({keyword:Un,score:1}),Vt(""))},className:De.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Ie.createElement(We.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),lt.map(Kt=>{var vn=Kt,{key:an,name:kn}=vn,Fn=vt(vn,["key","name"]);return Ie.createElement(ke.Z,{key:an,className:"mb20",style:{marginRight:148}},Ie.createElement(We.Z,{flex:1},Ie.createElement(ke.Z,{align:"middle",justify:"space-between"},Ie.createElement(ue.default.Item,Ce(we({},Fn),{name:[kn,"keyword"]}),Ie.createElement(Et,{onClose:()=>ct(kn)})),Zn&&Ie.createElement(ue.default.Item,Ce(we({},Fn),{name:[kn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:De.Z.blankInputNumberWrapper}),Ie.createElement(Te.Z,{className:De.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Ie.createElement("div",{onClick:()=>Ft(!0)},Ie.createElement(ue.default.Item,{name:La,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ie.createElement(E.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ve}))))};var Lt=ae(59301),qt=Object.defineProperty,Yt=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Zt=(ln,en,pn)=>en in ln?qt(ln,en,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[en]=pn,wt=(ln,en)=>{for(var pn in en||(en={}))on.call(en,pn)&&Zt(ln,pn,en[pn]);if(bt)for(var pn of bt(en))An.call(en,pn)&&Zt(ln,pn,en[pn]);return ln},Nn=(ln,en)=>Yt(ln,nn(en)),zn=(ln,en)=>{var pn={};for(var Zn in ln)on.call(ln,Zn)&&en.indexOf(Zn)<0&&(pn[Zn]=ln[Zn]);if(ln!=null&&bt)for(var Zn of bt(ln))en.indexOf(Zn)<0&&An.call(ln,Zn)&&(pn[Zn]=ln[Zn]);return pn};const{Panel:Wn}=Oe.default,Yn=({questionTitlePlaceholder:ln,choiceKey:en,form:pn,withScore:Zn})=>{const[xn,La]=(0,Ie.useState)([]),Wa=ta=>{La(ta)};return Lt.createElement("div",{className:De.Z.wrap},Lt.createElement("div",{className:De.Z.questionTitleEditorWrap},Lt.createElement(ue.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Lt.createElement(E.h,{scrollId:"name",watch:!0,height:140,placeholder:ln}))),Lt.createElement(ue.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Lt.createElement(ue.default.List,{name:"sub_item_banks",rules:[{validator(ta,yn){return yn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ta,{add:yn,remove:Oa,move:Ve})=>{const Ft=pn.getFieldValue("sub_item_banks");return Lt.createElement(Lt.Fragment,null,Lt.createElement(Oe.default,{className:ta.length>0?De.Z.collapseWrapper:"",bordered:!1,activeKey:xn,onChange:Wa,expandIcon:({isActive:Ht})=>Lt.createElement("i",{className:`iconfont icon-weizhankai ${Ht?De.Z.open:De.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},ta.map((Ht,Vt)=>{var tn=Ht,{key:Sn,name:mn}=tn,lt=zn(tn,["key","name"]),pt,ct,Kt,vn,an,kn,Fn,Bn,Un,Ra;return Lt.createElement(Wn,{className:De.Z.panel,forceRender:!0,header:Lt.createElement("div",{className:De.Z.panelHeader},"\u7B2C",Vt+1,"\u5C0F\u9898",Lt.createElement("span",null,"\uFF08",((pt=Ft==null?void 0:Ft[mn])==null?void 0:pt.item_type)=="SINGLE"?"\u5355\u9009\u9898":((ct=Ft==null?void 0:Ft[mn])==null?void 0:ct.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Kt=Ft==null?void 0:Ft[mn])==null?void 0:Kt.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((vn=Ft==null?void 0:Ft[mn])==null?void 0:vn.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:mn,extra:Lt.createElement(ke.Z,{align:"middle",onClick:bn=>bn.stopPropagation()},Zn&&Lt.createElement(We.Z,null,Lt.createElement(ue.default.Item,Nn(wt({},lt),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[mn,"question_score"],className:De.Z.blankInputNumberWrapper}),Lt.createElement(Te.Z,{className:De.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Lt.createElement(We.Z,null,Lt.createElement(ke.Z,{align:"middle",className:"pl40",justify:"end"},Vt!==0&&Lt.createElement("div",{onClick:()=>{var bn;Ve(Vt,Vt-1);const pa=(bn=pn.getFieldValue("sub_item_banks"))==null?void 0:bn.map(($a,lr)=>(ta.map((Jn,sn)=>{lr===sn&&($a.q_position=Number(Jn.name)+1)}),$a));pn.setFieldValue("sub_item_banks",pa)}},Lt.createElement(He.Z,{title:"\u4E0A\u79FB"},Lt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Vt<ta.length-1&&Lt.createElement("div",{onClick:()=>{var bn;Ve(Vt,Vt+1);const pa=(bn=pn.getFieldValue("sub_item_banks"))==null?void 0:bn.map(($a,lr)=>(ta.map((Jn,sn)=>{lr===sn&&($a.q_position=Number(Jn.name)+1)}),$a));pn.setFieldValue("sub_item_banks",pa)},className:Vt===0?"":"ml15"},Lt.createElement(He.Z,{title:"\u4E0B\u79FB"},Lt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Lt.createElement(We.Z,null,Lt.createElement(He.Z,{title:"\u5220\u9664"},Lt.createElement(le.Z,{className:`${De.Z.deleteIcon} ml15`,onClick:()=>Oa(mn)}))))},Lt.createElement(ue.default.Item,Nn(wt({},lt),{name:mn}),(((an=Ft==null?void 0:Ft[mn])==null?void 0:an.item_type)=="SINGLE"||((kn=Ft==null?void 0:Ft[mn])==null?void 0:kn.item_type)=="MULTIPLE")&&Lt.createElement(b.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Fn=Ft==null?void 0:Ft[mn])==null?void 0:Fn.item_type)=="MULTIPLE",form:pn,choiceKey:[mn,"choices"],titleKey:[mn,"name"],analysisKey:[mn,"analysis"],choiceOptionsPath:["sub_item_banks",mn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Bn=Ft==null?void 0:Ft[mn])==null?void 0:Bn.item_type)=="COMPLETION"&&Lt.createElement(Le,{form:pn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,name:mn,titleKey:[mn,"name"],analysisKey:[mn,"analysis"],isOrdered:[mn,"is_ordered"],answerKey:[mn,"standard_answers"]}),((Un=Ft==null?void 0:Ft[mn])==null?void 0:Un.item_type)=="JUDGMENT"&&Lt.createElement(Jt,{form:pn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[mn,"name"],analysisKey:[mn,"analysis"],choiceKey:[mn,"choices"]}),((Ra=Ft==null?void 0:Ft[mn])==null?void 0:Ra.item_type)=="SUBJECTIVE"&&Lt.createElement(cn,{showKeywords:!0,isMustKeyWords:!1,form:pn,titleKey:[mn,"name"],analysisKey:[mn,"analysis"],answerTexts:[mn,"answer_texts"],useKeywords:[mn,"use_keywords"],keywords:[mn,"keywords"],indexs:mn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),ta.length<20&&Lt.createElement(Ze.Z,{menu:{items:[{label:Lt.createElement("div",{onClick:()=>{yn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),La([ta==null?void 0:ta.length,...xn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Lt.createElement("div",{onClick:()=>{yn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),La([ta==null?void 0:ta.length,...xn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Lt.createElement("div",{onClick:()=>{yn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),La([ta==null?void 0:ta.length,...xn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Lt.createElement("div",{onClick:()=>{yn({name:"",analysis:"",is_ordered:!0,standard_answers:[],item_type:"COMPLETION",downcase:!0,no_space:!0}),La([ta==null?void 0:ta.length,...xn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Lt.createElement("div",{onClick:()=>{yn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),La([ta==null?void 0:ta.length,...xn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Ht=>Ht.show).map(Ht=>({label:Ht.label,key:Ht.key}))}},Lt.createElement("div",{className:`${De.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var xa=ae(35890)},19352:function(_t,Ot,ae){"use strict";ae.d(Ot,{C:function(){return Le}});var b=ae(59301),se={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},be=ae(92310),Ae=ae.n(be),Ie=ae(24905),Oe=ae(95237),ue=ae(8591),ke=ae(6848),We=ae(3113),Te=ae(43418),He=ae(1710),Ze=ae(5871),De=ae(78241),le=ae(71418),E=ae(58130),a=ae(70635),x=ae(2119),y=ae(38333),z=ae(78258),te=Object.defineProperty,re=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Ee=(Je,st,Ke)=>st in Je?te(Je,st,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Je[st]=Ke,ye=(Je,st)=>{for(var Ke in st||(st={}))pe.call(st,Ke)&&Ee(Je,Ke,st[Ke]);if(ce)for(var Ke of ce(st))ge.call(st,Ke)&&Ee(Je,Ke,st[Ke]);return Je},Re=(Je,st)=>re(Je,ie(st)),he=(Je,st,Ke)=>new Promise(($e,Wt)=>{var it=Qe=>{try{Xt(Ke.next(Qe))}catch(ft){Wt(ft)}},jt=Qe=>{try{Xt(Ke.throw(Qe))}catch(ft){Wt(ft)}},Xt=Qe=>Qe.done?$e(Qe.value):Promise.resolve(Qe.value).then(it,jt);Xt((Ke=Ke.apply(Je,st)).next())});const qe=Ie.default.Group,je=({className:Je,title:st,items:Ke=[],value:$e,onChange:Wt})=>{const it=(Ke==null?void 0:Ke.length)===($e==null?void 0:$e.length),jt=($e==null?void 0:$e.length)>0&&($e==null?void 0:$e.length)<(Ke==null?void 0:Ke.length),Xt=Qe=>{const ft=Ke.map(Dt=>Dt.id);Wt(Qe.target.checked?ft:[])};return b.createElement(Oe.Z,{align:"middle",className:Je},!!st&&b.createElement("div",{className:"mr20",style:{color:"#5F6368"}},st),b.createElement(Ie.default,{indeterminate:jt,onChange:Xt,checked:it},"\u5168\u90E8"),b.createElement(qe,{value:$e,onChange:Wt},Ke.map(Qe=>b.createElement(Ie.default,{className:"ml30 c-black",key:Qe.id,value:Qe.id},Qe.name,b.createElement("span",null,`(${Qe.count})`)))))};var Le=({className:Je,style:st,dataSource:Ke})=>{var $e,Wt,it,jt,Xt,Qe,ft;const[Dt,rn]=(0,b.useState)({}),[Pt,Jt]=(0,b.useState)(!0),[Be,Ut]=(0,b.useState)(!1),[En,Ct]=(0,b.useState)(!1),[It,et]=(0,b.useState)(null),[Ue,Fe]=(0,b.useState)(0),[ve,tt]=(0,b.useState)({}),[At,we]=(0,b.useState)(!0),[Ce,vt]=(0,b.useState)(0),[Ye,_e]=(0,b.useState)(0),[Et,cn]=(0,b.useState)(!1),Lt=(0,b.useRef)(null),[qt,Yt]=(0,b.useState)(!1),[nn,bt]=(0,b.useState)(!0),[on,An]=(0,b.useState)([]),Zt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[wt,Nn]=(0,b.useState)(ye({},Zt));(0,b.useEffect)(()=>{Ke!=null&&Ke.question_id&&rn(Ke)},[Ke==null?void 0:Ke.question_id]),(0,b.useEffect)(()=>{var yn;if(((yn=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:yn.status)==="running"){const Oa=setInterval(()=>{Yn()},3e3);return()=>clearInterval(Oa)}},[($e=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:$e.status]),(0,b.useEffect)(()=>{var yn;En&&(En===1&&(wt.question_status=xa.map(Oa=>Oa.value),wt.review=ln.map(Oa=>Oa.value)),En===2&&(wt.exercise_question_resubmit_id=(yn=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:yn.id,It===1&&(wt.success_status=[1]),It===2&&(wt.success_status=[0])),Nn(ye({},wt)),zn(wt),_e(Dt!=null&&Dt.is_mirror?3:10),vt(Dt!=null&&Dt.is_mirror?1:5))},[En]),(0,b.useEffect)(()=>{qt&&Wn()},[qt]);const zn=yn=>he(void 0,null,function*(){Jt(!0);const Oa=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_student_list.json`,{method:"get",params:yn});(Oa==null?void 0:Oa.status)==0&&(tt(Oa||[]),Fe(Oa==null?void 0:Oa.count)),Jt(!1)}),Wn=()=>he(void 0,null,function*(){bt(!0);const yn=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_history.json`,{method:"get"});(yn==null?void 0:yn.status)==0&&An((yn==null?void 0:yn.data)||[]),bt(!1)}),Yn=()=>he(void 0,null,function*(){const yn=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit_status.json`,{method:"get"});(yn==null?void 0:yn.status)==0&&rn(Re(ye({},Dt),{show_resubmit_history:!0,exercise_question_resubmit:(yn==null?void 0:yn.data)||{}}))}),xa=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],ln=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],en=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],pn=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(yn,Oa,Ve)=>b.createElement("span",{className:"c-black"},Ve+1+(wt.page-1)*wt.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:yn=>b.createElement("span",{className:"c-black"},yn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:yn=>b.createElement("span",{className:"c-grey-666"},yn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:yn=>b.createElement("span",{className:"c-black"},yn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:yn=>{const{label:Oa,color:Ve}=xa.find(Ft=>Ft.value===yn)||{};return b.createElement("span",{style:{color:Ve}},Oa)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:yn=>b.createElement("span",{className:"c-black"},yn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:yn=>b.createElement("span",{className:"c-black"},yn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:yn=>{const{label:Oa,color:Ve}=ln.find(Ft=>Ft.value===yn)||{};return b.createElement("span",{style:{color:Ve}},Oa)}},En===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:yn=>{const{label:Oa,color:Ve}=en.find(Ft=>Ft.value===yn)||{};return b.createElement("span",{style:{color:Ve}},Oa)}}].filter(Boolean),Zn=(yn,Oa,Ve)=>{wt.page=yn==null?void 0:yn.current,wt.per_page=yn==null?void 0:yn.pageSize,Ve!=null&&Ve.order?(wt.sort_by=Ve==null?void 0:Ve.field,wt.direction=(Ve==null?void 0:Ve.order)==="ascend"?"asc":"desc"):(wt.sort_by=null,wt.direction=null),Nn(ye({},wt)),zn(wt)},xn=()=>{if(!Ce){ue.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}cn(!0)},La=()=>he(void 0,null,function*(){var yn,Oa;if((yn=Lt.current)!=null&&yn.onVerify())return;Ut(!0);const Ve=yield(0,a.ZP)(`/api/exercise_questions/${Dt==null?void 0:Dt.question_id}/resubmit.json`,{method:"post",body:{keyword:wt.keyword,question_status:wt.question_status,review:wt.review_status,success_status:wt.success_status,use_max_score:At,permits:Ce,exercise_question_resubmit_id:En===1?null:(Oa=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Oa.id}});(Ve==null?void 0:Ve.status)==0&&(yield Yn(),ue.ZP.success("\u64CD\u4F5C\u6210\u529F"),cn(!1),Ct(!1)),Ut(!1)}),Wa=(yn,Oa)=>{wt.page=1,wt[Oa]=yn,Nn(ye({},wt)),zn(wt)},ta=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return b.createElement(b.Fragment,null,b.createElement("div",{className:Ae()(se.recalculation,Je),style:st},b.createElement(ke.Z,{title:ta[(Dt==null?void 0:Dt.disable_resubmit_reason)||0]},b.createElement(We.ZP,{disabled:(Dt==null?void 0:Dt.disable_resubmit)||((Wt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Wt.status)==="running",onClick:()=>Ct(1),icon:b.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(Dt==null?void 0:Dt.show_resubmit_history)&&b.createElement(b.Fragment,null,((it=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:it.status)==="running"?b.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",b.createElement("span",{className:"c-light-primary ml3"},(jt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:jt.rate)):b.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{onClick:()=>{Ct(2),et(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Xt=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Xt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{onClick:()=>{Ct(2),et(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Qe=Dt==null?void 0:Dt.exercise_question_resubmit)==null?void 0:Qe.fail_count),"\u4EBA"),b.createElement(ke.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},b.createElement("i",{onClick:()=>Yt(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),b.createElement(Te.default,{centered:!0,open:!!En,title:`\u91CD\u65B0\u8BC4\u6D4B${En===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Ct(!1),onOk:xn,afterClose:()=>{we(!0),et(null),Nn(ye({},Zt))}},b.createElement("div",{className:se.filter},En===1&&b.createElement(b.Fragment,null,b.createElement("div",{className:se.tips},b.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},b.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),b.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),b.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),b.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),b.createElement(je,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ve==null?void 0:ve.question_status)||[],value:wt.question_status,onChange:yn=>Wa(yn,"question_status")}),b.createElement(je,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ve==null?void 0:ve.review_status)||[],value:wt.review,onChange:yn=>Wa(yn,"review")})),En===2&&b.createElement(b.Fragment,null,b.createElement(je,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ve==null?void 0:ve.success_status)||[],value:wt.success_status,onChange:yn=>Wa(yn,"success_status")})),b.createElement(z.t7,{className:se.input,style:{bottom:En===1?10:-5},value:wt.keyword,onChange:yn=>Wa(yn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),b.createElement(He.default,{className:"mt20",columns:pn,scroll:((ft=ve==null?void 0:ve.data)==null?void 0:ft.length)>7?{y:300}:{},dataSource:(ve==null?void 0:ve.data)||[],loading:Pt,onChange:Zn,pagination:{total:Ue,pageSize:wt.per_page,current:wt.page,hideOnSinglePage:!Ue,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:E.rU}}),b.createElement(Oe.Z,{justify:"space-between",align:"middle",className:"mt10"},b.createElement(Ie.default,{className:"c-black",checked:At,onChange:yn=>we(yn.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,x.Ny)()&&b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",b.createElement(Ze.Z,{className:"ml10 mr10",value:Ce,max:Ye,min:1,precision:0,onChange:yn=>vt(yn)}),"\u4EBA",b.createElement(ke.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},b.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),b.createElement(Te.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Et,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Be,destroyOnClose:!0,onOk:La,onCancel:()=>cn(!1)},b.createElement(De.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},b.createElement(y.Z,{ref:yn=>Lt.current=yn}))),b.createElement(Te.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:qt,width:710,onCancel:()=>Yt(!1),footer:null},b.createElement(le.Z,{spinning:nn},b.createElement("div",{className:se.operating},on.map((yn,Oa)=>b.createElement("div",{key:Oa,className:se.operatingItem},b.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},yn==null?void 0:yn.created_at),b.createElement("div",{className:"c-black"},yn==null?void 0:yn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(yn==null?void 0:yn.status)==="running"?b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",b.createElement("span",{className:"c-light-primary ml3"},yn==null?void 0:yn.rate)):b.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",b.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},yn==null?void 0:yn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",b.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},yn==null?void 0:yn.fail_count),"\u4EBA")))),b.createElement("div",{style:{height:20}}))))}},83476:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ke}});var b=ae(59301),se={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},be=ae(43418),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Oe=(We,Te,He)=>new Promise((Ze,De)=>{var le=x=>{try{a(He.next(x))}catch(y){De(y)}},E=x=>{try{a(He.throw(x))}catch(y){De(y)}},a=x=>x.done?Ze(x.value):Promise.resolve(x.value).then(le,E);a((He=He.apply(We,Te)).next())}),ke=({type:We,resdata:Te,onok:He,oktext:Ze,okloading:De})=>{const[le,E]=(0,b.useState)(!1),{can_copy_list:a,can_copy_num:x,challenge_type:y,course_data_list:z,no_copy_list:te,no_copy_num:re,no_use_list:ie,no_use_num:ce,repeat_shixun_num:pe,student_count:ge,total_num:Ee,use_num:ye}=Te;let Re=x>0||We==="exercise";(0,b.useEffect)(()=>{(Te==null?void 0:Te.student_count)>0&&E(!0)},[Te]),console.log("---11",De),(0,b.useEffect)(()=>{De||E(!1)},[De]);const he=()=>{if(We==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(We==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:se.orangeColor},ge)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:se.orangeColor},ye)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(We==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(We==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:se.orangeColor},ge),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:se.orangeColor},ye),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},qe=()=>{if(We==="exercise"||We==="subject"||We==="exercisepush"||We==="shixunpush")return b.createElement("div",{style:{marginTop:20}},re>0&&b.createElement("div",null,b.createElement("span",{className:se.flex},b.createElement("img",{src:Ie,style:{width:14}}),b.createElement("span",{className:se.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:se.statusbody},We==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:se.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(We==="subject"||We==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Re&&b.createElement("span",{className:se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),We==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Re&&b.createElement("span",{className:se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),b.createElement("div",null,te==null?void 0:te.map((je,ot)=>b.createElement("a",{href:`/shixuns/${je.identifier}/challenges`,target:"_blank"},"\u300A",je==null?void 0:je.name,"\u300B",ot+1!==re&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:se.flex},b.createElement("img",{src:Ae,style:{width:14}}),b.createElement("span",{className:se.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:se.statusbody},We==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(We==="subject"||We==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),We==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),b.createElement("div",null,a==null?void 0:a.map((je,ot)=>b.createElement("a",{href:`/shixuns/${je.identifier}/challenges`,target:"_blank"},"\u300A",je==null?void 0:je.name,"\u300B",ot+1!==x&&"\u3001"))))));if(We==="shixun")return b.createElement("div",{style:{marginTop:20}},x>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return b.createElement(be.default,{open:le,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Re&&"none"}},zIndex:1003,confirmLoading:De,okText:Re?Ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>Oe(void 0,null,function*(){Re?yield He([...a,...ie]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},he(),qe()))}},48498:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Oe}});var b=ae(59301),se={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},be=ae(92310),Ae=ae.n(be),Oe=({className:ue,style:ke,state:We,onClick:Te})=>{var He,Ze;return b.createElement("div",{onClick:Te,className:Ae()(We?(He=se)==null?void 0:He.redBtn:(Ze=se)==null?void 0:Ze.btn,ue),style:ke},We?b.createElement(b.Fragment,null,b.createElement("i",{className:"iconfont icon-biaoji1"}),b.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):b.createElement(b.Fragment,null,b.createElement("i",{className:"iconfont icon-biaojigaiti"}),b.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},1568:function(_t,Ot,ae){"use strict";ae.d(Ot,{h:function(){return re}});var b=ae(59301),se=ae(57809),be=ae(78241),Ae=ae(3113),Ie=ae(89780),Oe=ae.n(Ie),ue=ae(79906),ke=ae(44383),We=Object.defineProperty,Te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ce,pe)=>ce in ie?We(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:pe}):ie[ce]=pe,a=(ie,ce)=>{for(var pe in ce||(ce={}))De.call(ce,pe)&&E(ie,pe,ce[pe]);if(Ze)for(var pe of Ze(ce))le.call(ce,pe)&&E(ie,pe,ce[pe]);return ie},x=(ie,ce)=>Te(ie,He(ce));const y=se.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ot.Z=({callback:ie,onCancel:ce})=>{const[pe,ge]=(0,b.useState)("python");function Ee(Re){ge(te[Re][1])}function ye(Re){ie(Re)}return b.createElement(be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),b.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(se.default,{getPopupContainer:Re=>Re.parentNode,onChange:Ee},Object.keys(te).map(Re=>b.createElement(y,{key:Re,value:Re},te[Re][0])))),b.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:pe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ae.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function re({value:ie,onChange:ce,mode:pe,options:ge={}}){const Ee=(0,b.useRef)(),[ye,Re]=(0,b.useState)();return(0,b.useEffect)(()=>{if(ye){let he=function(qe){const je=qe.getValue();ce&&ce(je)};return ye.on("change",he),()=>{ye.off("change",he)}}},[ye,ce]),(0,b.useEffect)(()=>{ye&&ye.setOption("mode",pe)},[ye,pe]),(0,b.useEffect)(()=>{ye&&(ie!==ye.getValue()||ie==="")&&setTimeout(()=>{ye.setValue(ie||"")},300)},[ye,ie]),(0,b.useEffect)(()=>{if(Ee.current&&!ye){const he=Oe().fromTextArea(Ee.current,a({mode:pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Re(he)}},[Ee.current,ye]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ee}))}},23469:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return mn}});var b=ae(59301),se=ae(89780),be=ae.n(se),Ae=ae(76374),Ie=ae(79906),Oe=ae(6313),ue=ae(25717),ke=ae(99498),We=ae(25419),Te=ae(67549),He=ae(25711),Ze=({value:lt="",className:pt,showTextOnly:ct,showLines:Kt,style:vn={}})=>{const an=(0,b.useMemo)(()=>"",[lt]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:an}}))},De=ae(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(lt,pt,ct)=>pt in lt?le(lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):lt[pt]=ct,re=(lt,pt)=>{for(var ct in pt||(pt={}))y.call(pt,ct)&&te(lt,ct,pt[ct]);if(x)for(var ct of x(pt))z.call(pt,ct)&&te(lt,ct,pt[ct]);return lt},ie=(lt,pt)=>E(lt,a(pt));let ce=[{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 pe({onActionCallback:lt,title:pt,icon:ct,actionName:Kt,className:vn="",children:an}){function kn(){lt(Kt)}return De.createElement("a",{title:pt,className:vn,onClick:kn},De.createElement("i",{className:`${ct}`}),an)}var ge=({watch:lt,showNullButton:pt,showNullProgramButton:ct,onActionCallback:Kt,fullScreen:vn,insertTemp:an,hidetoolBar:kn,extraUse:Fn})=>{const Bn=[...ce,{title:`${lt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${lt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return De.createElement("ul",{className:"markdown-toolbar-container"},!kn&&Bn.map((Un,Ra)=>De.createElement("li",{key:Ra},Un.actionName?De.createElement(pe,ie(re({},Un),{onActionCallback:Kt})):De.createElement("span",{className:"v-line"}))),pt?De.createElement("li",null,De.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kt},De.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ct?De.createElement(De.Fragment,null,De.createElement("li",null,De.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kt},De.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),De.createElement("li",null,De.createElement(pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kt},De.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,an&&De.createElement("li",null,De.createElement(pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${an}`,onActionCallback:Kt},De.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Fn&&De.createElement("li",null,Fn),De.createElement("li",{className:"btn-full-screen"},De.createElement(pe,{icon:`${vn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kt})))},Ee=ae(50474),ye=ae(78241),Re=ae(92832),he=ae(3113),qe=Object.defineProperty,je=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Ke=(lt,pt,ct)=>pt in lt?qe(lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):lt[pt]=ct,$e=(lt,pt)=>{for(var ct in pt||(pt={}))Je.call(pt,ct)&&Ke(lt,ct,pt[ct]);if(Le)for(var ct of Le(pt))st.call(pt,ct)&&Ke(lt,ct,pt[ct]);return lt},Wt=(lt,pt)=>je(lt,ot(pt));const it={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:lt,onCancel:pt})=>{function ct(Kt){lt(Kt)}return b.createElement(ye.default,Wt($e({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ct,style:{width:500}}),b.createElement(ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(Re.default,null)),b.createElement(ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(Re.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(he.ZP,{type:"ghost",onClick:pt},"\u53D6\u6D88")))},Xt=ae(1568),Qe=ae(56701),ft=ae(43418),Dt=ae(95237),rn=ae(12963),Pt=ae(59301),Jt=({callback:lt,onCancel:pt})=>{const ct=document.createElement("canvas"),Kt=ct.getContext("2d");ct.width=1e3,ct.height=800,Kt.fillStyle="#ffffff",Kt.fillRect(0,0,ct.width,ct.height);const vn=ct.toDataURL("image/png");return Pt.createElement(ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Pt.createElement(Dt.Z,{style:{height:"100vh"}},Pt.createElement(rn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vn,visible:!0,title:String(Date.now())},onOk:an=>{lt({src:an.url})},onClose:pt})))},Be=ae(12378);function Ut(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ut,go.CommandHandler),Ut.prototype.canAlignSelection=function(){var lt=this.diagram;return!(lt===null||lt.isReadOnly||lt.isModelReadOnly||lt.selection.count<2)},Ut.prototype.alignLeft=function(){var lt=this.diagram;lt.startTransaction("aligning left");var pt=1/0;lt.selection.each(function(ct){ct instanceof go.Link||(pt=Math.min(ct.position.x,pt))}),lt.selection.each(function(ct){ct instanceof go.Link||ct.move(new go.Point(pt,ct.position.y))}),lt.commitTransaction("aligning left")},Ut.prototype.alignRight=function(){var lt=this.diagram;lt.startTransaction("aligning right");var pt=-1/0;lt.selection.each(function(ct){if(!(ct instanceof go.Link)){var Kt=ct.actualBounds.x+ct.actualBounds.width;pt=Math.max(Kt,pt)}}),lt.selection.each(function(ct){ct instanceof go.Link||ct.move(new go.Point(pt-ct.actualBounds.width,ct.position.y))}),lt.commitTransaction("aligning right")},Ut.prototype.alignTop=function(){var lt=this.diagram;lt.startTransaction("alignTop");var pt=1/0;lt.selection.each(function(ct){ct instanceof go.Link||(pt=Math.min(ct.position.y,pt))}),lt.selection.each(function(ct){ct instanceof go.Link||ct.move(new go.Point(ct.position.x,pt))}),lt.commitTransaction("alignTop")},Ut.prototype.alignBottom=function(){var lt=this.diagram;lt.startTransaction("aligning bottom");var pt=-1/0;lt.selection.each(function(ct){if(!(ct instanceof go.Link)){var Kt=ct.actualBounds.y+ct.actualBounds.height;pt=Math.max(Kt,pt)}}),lt.selection.each(function(ct){ct instanceof go.Link||ct.move(new go.Point(ct.actualBounds.x,pt-ct.actualBounds.height))}),lt.commitTransaction("aligning bottom")},Ut.prototype.alignCenterX=function(){var lt=this.diagram,pt=lt.selection.first();if(pt){lt.startTransaction("aligning Center X");var ct=pt.actualBounds.x+pt.actualBounds.width/2;lt.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(ct-Kt.actualBounds.width/2,Kt.actualBounds.y))}),lt.commitTransaction("aligning Center X")}},Ut.prototype.alignCenterY=function(){var lt=this.diagram,pt=lt.selection.first();if(pt){lt.startTransaction("aligning Center Y");var ct=pt.actualBounds.y+pt.actualBounds.height/2;lt.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.actualBounds.x,ct-Kt.actualBounds.height/2))}),lt.commitTransaction("aligning Center Y")}},Ut.prototype.alignColumn=function(lt){var pt=this.diagram;pt.startTransaction("align Column"),lt===void 0&&(lt=0),lt=parseFloat(lt);var ct=new Array;pt.selection.each(function(Fn){Fn instanceof go.Link||ct.push(Fn)});for(var Kt=0;Kt<ct.length-1;Kt++){var vn=ct[Kt],an=vn.actualBounds.y+vn.actualBounds.height+lt,kn=ct[Kt+1];kn.move(new go.Point(vn.actualBounds.x,an))}pt.commitTransaction("align Column")},Ut.prototype.alignRow=function(lt){lt===void 0&&(lt=0),lt=parseFloat(lt);var pt=this.diagram;pt.startTransaction("align Row");var ct=new Array;pt.selection.each(function(Fn){Fn instanceof go.Link||ct.push(Fn)});for(var Kt=0;Kt<ct.length-1;Kt++){var vn=ct[Kt],an=vn.actualBounds.x+vn.actualBounds.width+lt,kn=ct[Kt+1];kn.move(new go.Point(an,vn.actualBounds.y))}pt.commitTransaction("align Row")},Ut.prototype.canRotate=function(lt){var pt=this.diagram;return!(pt===null||pt.isReadOnly||pt.isModelReadOnly||pt.selection.count<1)},Ut.prototype.rotate=function(lt){lt===void 0&&(lt=90);var pt=this.diagram;pt.startTransaction("rotate "+lt.toString());var pt=this.diagram;pt.selection.each(function(ct){ct instanceof go.Link||ct instanceof go.Group||(ct.angle+=lt)}),pt.commitTransaction("rotate "+lt.toString())},Ut.prototype.pullToFront=function(){var lt=this.diagram;lt.startTransaction("pullToFront");var pt=new go.Map;lt.selection.each(function(ct){pt.set(ct.layer,0)}),pt.iteratorKeys.each(function(ct){var Kt=0;ct.parts.each(function(vn){if(!vn.isSelected){var an=vn.zOrder;isNaN(an)?vn.zOrder=0:Kt=Math.max(Kt,an)}}),pt.set(ct,Kt)}),lt.selection.each(function(ct){Ut._assignZOrder(ct,pt.get(ct.layer)+1)}),lt.commitTransaction("pullToFront")},Ut.prototype.pushToBack=function(){var lt=this.diagram;lt.startTransaction("pushToBack");var pt=new go.Map;lt.selection.each(function(ct){pt.set(ct.layer,0)}),pt.iteratorKeys.each(function(ct){var Kt=0;ct.parts.each(function(vn){if(!vn.isSelected){var an=vn.zOrder;isNaN(an)?vn.zOrder=0:Kt=Math.min(Kt,an)}}),pt.set(ct,Kt)}),lt.selection.each(function(ct){Ut._assignZOrder(ct,pt.get(ct.layer)-1-Ut._findGroupDepth(ct))}),lt.commitTransaction("pushToBack")},Ut._assignZOrder=function(lt,pt,ct){ct===void 0&&(ct=lt),lt.layer===ct.layer&&(lt.zOrder=pt),lt instanceof go.Group&&lt.memberParts.each(function(Kt){Ut._assignZOrder(Kt,pt+1,ct)})},Ut._findGroupDepth=function(lt){if(lt instanceof go.Group){var pt=0;return lt.memberParts.each(function(ct){pt=Math.max(pt,Ut._findGroupDepth(ct))}),pt+1}else return 0},Ut.prototype.doKeyDown=function(){var lt=this.diagram;if(lt!==null){var pt=lt.lastInput;if(pt.key==="Up"||pt.key==="Down"||pt.key==="Left"||pt.key==="Right"){var ct=this.arrowKeyBehavior;if(ct==="none")return;if(ct==="select"){this._arrowKeySelect();return}else if(ct==="move"){this._arrowKeyMove();return}else if(ct==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ut.prototype._getAllParts=function(){var lt=new Array;return this.diagram.nodes.each(function(pt){lt.push(pt)}),this.diagram.parts.each(function(pt){lt.push(pt)}),lt},Ut.prototype._arrowKeyMove=function(){var lt=this.diagram,pt=lt.lastInput,ct=0,Kt=0;if(pt.control||pt.meta)ct=1,Kt=1;else if(lt.grid!==null){var vn=lt.grid.gridCellSize;Kt=vn.width,ct=vn.height}lt.startTransaction("arrowKeyMove"),lt.selection.each(function(an){pt.key==="Up"?an.move(new go.Point(an.actualBounds.x,an.actualBounds.y-ct)):pt.key==="Down"?an.move(new go.Point(an.actualBounds.x,an.actualBounds.y+ct)):pt.key==="Left"?an.move(new go.Point(an.actualBounds.x-Kt,an.actualBounds.y)):pt.key==="Right"&&an.move(new go.Point(an.actualBounds.x+Kt,an.actualBounds.y))}),lt.commitTransaction("arrowKeyMove")},Ut.prototype._arrowKeySelect=function(){var lt=this.diagram,pt=lt.lastInput,ct=null;pt.key==="Up"?ct=this._findNearestPartTowards(270):pt.key==="Down"?ct=this._findNearestPartTowards(90):pt.key==="Left"?ct=this._findNearestPartTowards(180):pt.key==="Right"&&(ct=this._findNearestPartTowards(0)),ct!==null&&(pt.shift?ct.isSelected=!0:pt.control||pt.meta?ct.isSelected=!ct.isSelected:lt.select(ct))},Ut.prototype._findNearestPartTowards=function(lt){var pt=this.diagram.selection.first();if(pt===null)return null;for(var ct=pt.actualBounds.center,Kt=this._getAllParts(),vn=1/0,an=pt,kn=0;kn<Kt.length;kn++){var Fn=Kt[kn];if(Fn!==pt&&Fn.canSelect()){var Bn=Fn.actualBounds.center,Un=ct.directionPoint(Bn),Ra=this._angleCloseness(Un,lt);if(Ra<=45){var bn=ct.distanceSquaredPoint(Bn);bn*=1+Math.sin(Ra*Math.PI/180),bn<vn&&(vn=bn,an=Fn)}}}return an},Ut.prototype._angleCloseness=function(lt,pt){return Math.min(Math.abs(pt-lt),Math.min(Math.abs(pt+360-lt),Math.abs(pt-360-lt)))},Ut.prototype._arrowKeyTree=function(){var lt=this.diagram,pt=lt.selection.first();if(pt instanceof go.Node){var ct=lt.lastInput;if(ct.key==="Right"){if(!pt.isTreeLeaf)if(!pt.isTreeExpanded)lt.commandHandler.canExpandTree(pt)&&lt.commandHandler.expandTree(pt);else{var Kt=this._sortTreeChildrenByY(pt).first();Kt!==null&&lt.select(Kt)}}else if(ct.key==="Left")if(!pt.isTreeLeaf&&pt.isTreeExpanded)lt.commandHandler.canCollapseTree(pt)&&lt.commandHandler.collapseTree(pt);else{var vn=pt.findTreeParentNode();vn!==null&&lt.select(vn)}else if(ct.key==="Up"){var vn=pt.findTreeParentNode();if(vn!==null){var an=this._sortTreeChildrenByY(vn),kn=an.indexOf(pt);if(kn>0){for(var Fn=an.elt(kn-1);Fn!==null&&Fn.isTreeExpanded&&!Fn.isTreeLeaf;){var Bn=this._sortTreeChildrenByY(Fn);Fn=Bn.last()}Fn!==null&&lt.select(Fn)}else lt.select(vn)}}else if(ct.key==="Down")if(pt.isTreeExpanded&&!pt.isTreeLeaf){var Kt=this._sortTreeChildrenByY(pt).first();Kt!==null&&lt.select(Kt)}else for(;pt!==null;){var vn=pt.findTreeParentNode();if(vn===null)break;var an=this._sortTreeChildrenByY(vn),kn=an.indexOf(pt);if(kn<an.length-1){lt.select(an.elt(kn+1));break}else pt=vn}var Un=lt.selection.first();Un!==null&&lt.scrollToRect(Un.actualBounds)}},Ut.prototype._sortTreeChildrenByY=function(lt){var pt=new go.List().addAll(lt.findTreeChildrenNodes());return pt.sort(function(ct,Kt){var vn=ct.location,an=Kt.location;return vn.y<an.y?-1:vn.y>an.y?1:vn.x<an.x?-1:vn.x>an.x?1:0}),pt},Ut.prototype.copyToClipboard=function(lt){go.CommandHandler.prototype.copyToClipboard.call(this,lt),this._lastPasteOffset.set(this.pasteOffset)},Ut.prototype.pasteFromClipboard=function(){var lt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(lt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),lt},Object.defineProperty(Ut.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(lt){if(lt!=="move"&&lt!=="select"&&lt!=="scroll"&&lt!=="tree"&&lt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+lt);this._arrowKeyBehavior=lt}}),Object.defineProperty(Ut.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(lt){if(!(lt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+lt);this._pasteOffset.set(lt)}});var En=Ut,Ct=ae(37404),It=ae(43604),et=ae(70635),Ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Fe=ae(59301),ve=(lt,pt,ct)=>new Promise((Kt,vn)=>{var an=Bn=>{try{Fn(ct.next(Bn))}catch(Un){vn(Un)}},kn=Bn=>{try{Fn(ct.throw(Bn))}catch(Un){vn(Un)}},Fn=Bn=>Bn.done?Kt(Bn.value):Promise.resolve(Bn.value).then(an,kn);Fn((ct=ct.apply(lt,pt)).next())});function tt({onCancel:lt,callback:pt}){let ct=(0,b.useRef)(),Kt=(0,b.useRef)(),vn=(0,b.useRef)(),an=(0,b.useRef)(!1);const kn=(0,b.useRef)(!1),[Fn,Bn]=(0,b.useState)(0);function Un(){const bn=Be.bx.make,pa={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"};ct.current=new Be.S0(Kt.current,{padding:20,grid:bn(Be.s_,"Grid",bn(Be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bn(Be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:$n=>{var Aa=$n.diagram.commandHandler.addTopLevelParts($n.diagram.selection,!0);Aa||$n.diagram.currentTool.doCancel()},commandHandler:bn(En),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:$n=>{var Aa=$n.subject;Aa.location=Aa.location.copy().snapToGridPoint($n.diagram.grid.gridOrigin,$n.diagram.grid.gridCellSize),setTimeout(()=>{$n.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:$n=>{var Aa=$n.subject;setTimeout(()=>{$n.diagram.commandHandler.editTextBlock()})},LinkRelinked:$n=>{var Aa=$n.parameter.part;Aa.invalidateConnectedLinks();var ja=$n.subject;$n.diagram.toolManager.linkingTool.isForwards?ja.toNode.invalidateConnectedLinks():ja.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ct.current.nodeTemplate=bn(Be.NB,"Auto",{locationSpot:Be.z6.Center,locationObjectName:"SHAPE",desiredSize:new Be.$u(120,60),minSize:new Be.$u(40,40),resizable:!0,resizeCellSize:new Be.$u(10,10),rotatable:!0},new Be.KX("location","loc",Be.E9.parse).makeTwoWay(Be.E9.stringify),new Be.KX("desiredSize","size",Be.$u.parse).makeTwoWay(Be.$u.stringify),bn(Be.bn,{name:"SHAPE",fill:pa.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Be.z6.AllSides,toSpot:Be.z6.AllSides},new Be.KX("figure"),new Be.KX("fill"),new Be.KX("stroke","borderColor"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),bn(Be.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),bn(Be.al,{margin:1,textAlign:"center",overflow:Be.al.OverflowEllipsis,editable:!0},new Be.KX("text").makeTwoWay(),new Be.KX("stroke","color"))),ct.current.nodeTemplate.toolTip=bn("ToolTip",bn(Be.s_,"Vertical",{maxSize:new Be.$u(200,NaN)},bn(Be.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Be.KX("text")),bn(Be.al,{font:"10pt sans-serif",textAlign:"center"},new Be.KX("text","details"))));function $a($n,Aa){var ja=(ga,fr)=>{ga.handled=!0,ga.diagram.model.commit(Hr=>{var oo=fr.part.adornedPart,Tr=new Be.E9().setRectSpot(oo.actualBounds,$n);Tr.subtract(oo.location),Tr.scale(2,2),Tr.x+=Math.sign(Tr.x)*130,Tr.y+=Math.sign(Tr.y)*130,Tr.add(oo.location),Tr.snapToGridPoint(ga.diagram.grid.gridOrigin,ga.diagram.grid.gridCellSize);var co=Hr.copyNodeData(oo.data);Hr.setGroupKeyForNodeData(co,Hr.getGroupKeyForNodeData(oo.data)),Hr.addNodeData(co);var ni={from:oo.key,to:Hr.getKeyForNodeData(co)};Hr.addLinkData(ni);var Jo=ga.diagram.findNodeForData(co);Jo.location=Tr,ga.diagram.select(Jo),setTimeout(()=>{ga.diagram.commandHandler.editTextBlock()},20)})};return bn(Be.bn,{figure:Aa,alignment:$n,alignmentFocus:$n.opposite(),width:$n.equals(Be.z6.Top)||$n.equals(Be.z6.Bottom)?25:18,height:$n.equals(Be.z6.Top)||$n.equals(Be.z6.Bottom)?18:25,fill:"orange",stroke:pa.white,strokeWidth:4,mouseEnter:(ga,fr)=>fr.fill="dodgerblue",mouseLeave:(ga,fr)=>fr.fill="orange",isActionable:!0,click:ja,contextClick:ja})}function lr($n){return bn(Be.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Aa,ja)=>ja.fill="dodgerblue",mouseLeave:(Aa,ja)=>ja.fill="orange",click:(Aa,ja)=>{Aa.diagram.commandHandler.showContextMenu(ja.part.adornedPart)}},$n||{})}ct.current.nodeTemplate.selectionAdornmentTemplate=bn(Be.uz,"Spot",bn(Be.Vm,{padding:10}),$a(Be.z6.Top,"TriangleUp"),$a(Be.z6.Left,"TriangleLeft"),$a(Be.z6.Right,"TriangleRight"),$a(Be.z6.Bottom,"TriangleDown"),lr({alignment:new Be.z6(.75,0)}));function Jn($n,Aa){return(ja,ga)=>{ja.handled=!0,ja.diagram.model.commit(fr=>{fr.set(ga.part.adornedPart.data,$n,Aa)})}}function sn($n,Aa){return Aa||(Aa="color"),bn(Be.bn,{width:16,height:16,stroke:"lightgray",fill:$n,margin:1,background:"transparent",mouseEnter:(ja,ga)=>ga.stroke="dodgerblue",mouseLeave:(ja,ga)=>ga.stroke="lightgray",click:Jn(Aa,$n),contextClick:Jn(Aa,$n)})}function Dr(){return[bn("ContextMenuButton",bn(Be.s_,"Horizontal",sn(pa.white,"fill"),sn(pa.beige,"fill"),sn(pa.extralightblue,"fill"),sn(pa.extralightred,"fill"))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",sn(pa.lightgray,"fill"),sn(pa.lightgreen,"fill"),sn(pa.lightblue,"fill"),sn(pa.lightred,"fill")))]}function Ga(){return[bn("ContextMenuButton",bn(Be.s_,"Horizontal",sn(pa.black),sn(pa.green),sn(pa.blue),sn(pa.red))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",sn(pa.white),sn(pa.magenta),sn(pa.purple),sn(pa.orange)))]}function Er($n,Aa){return Aa||(Aa="thickness"),bn(Be.bn,"LineH",{width:16,height:16,strokeWidth:$n,margin:1,background:"transparent",mouseEnter:(ja,ga)=>ga.background="dodgerblue",mouseLeave:(ja,ga)=>ga.background="transparent",click:Jn(Aa,$n),contextClick:Jn(Aa,$n)})}function Cr($n,Aa){return Aa||(Aa="dash"),bn(Be.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:$n,margin:1,background:"transparent",mouseEnter:(ja,ga)=>ga.background="dodgerblue",mouseLeave:(ja,ga)=>ga.background="transparent",click:Jn(Aa,$n),contextClick:Jn(Aa,$n)})}function Lr(){return[bn("ContextMenuButton",bn(Be.s_,"Horizontal",Er(1),Er(2),Er(3),Er(4))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",Cr(null),Cr([2,4]),Cr([4,4])))]}function xr($n,Aa){return Aa||(Aa="figure"),bn(Be.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:$n,margin:1,background:"transparent",mouseEnter:(ja,ga)=>ga.fill="dodgerblue",mouseLeave:(ja,ga)=>ga.fill="lightgray",click:Jn(Aa,$n),contextClick:Jn(Aa,$n)})}ct.current.nodeTemplate.contextMenu=bn("ContextMenu",bn("ContextMenuButton",bn(Be.s_,"Horizontal",xr("Rectangle"),xr("RoundedRectangle"),xr("Ellipse"),xr("Diamond"))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",xr("Parallelogram2"),xr("ManualOperation"),xr("Procedure"),xr("Cylinder1"))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",xr("Terminator"),xr("CreateRequest"),xr("Document"),xr("TriangleDown"))),Dr(),Ga(),Lr()),ct.current.groupTemplate=bn(Be.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Be.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:($n,Aa)=>{var ja=Aa.addMembers(Aa.diagram.selection,!0);ja||Aa.diagram.currentTool.doCancel()},avoidable:!1},new Be.KX("location","loc",Be.E9.parse).makeTwoWay(Be.E9.stringify),bn(Be.s_,"Auto",{name:"BODY"},bn(Be.bn,{parameter1:10,fill:pa.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Be.z6.AllSides,toSpot:Be.z6.AllSides},new Be.KX("fill"),new Be.KX("stroke","color"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),bn(Be.Vm,{background:"transparent",margin:20})),bn(Be.al,{alignment:Be.z6.Top,alignmentFocus:Be.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Be.KX("text"),new Be.KX("stroke","color"))),ct.current.groupTemplate.selectionAdornmentTemplate=bn(Be.uz,"Spot",bn(Be.s_,"Auto",bn(Be.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),bn(Be.Vm,{margin:1.5})),lr({alignment:Be.z6.TopRight,alignmentFocus:Be.z6.BottomRight})),ct.current.groupTemplate.contextMenu=bn("ContextMenu",Dr(),Ga(),Lr()),ct.current.linkTemplate=bn(Be.rU,{layerName:"Foreground",routing:Be.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Be.KX("fromSpot","fromSpot",Be.z6.parse),new Be.KX("toSpot","toSpot",Be.z6.parse),new Be.KX("fromShortLength","dir",$n=>$n>=1?10:0),new Be.KX("toShortLength","dir",$n=>$n>=1?10:0),new Be.KX("points").makeTwoWay(),bn(Be.bn,{strokeWidth:2},new Be.KX("stroke","color"),new Be.KX("strokeWidth","thickness"),new Be.KX("strokeDashArray","dash")),bn(Be.bn,{segmentIndex:0,segmentOffset:new Be.E9(15,0),segmentOrientation:Be.rU.OrientAlong,alignmentFocus:Be.z6.Right,figure:"circle",width:10,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",$n=>$n===1)),bn(Be.bn,{segmentIndex:-1,segmentOffset:new Be.E9(-10,6),segmentOrientation:Be.rU.OrientPlus90,alignmentFocus:Be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",$n=>$n>=1),new Be.KX("width","thickness",$n=>7+3*$n),new Be.KX("height","thickness",$n=>7+3*$n),new Be.KX("segmentOffset","thickness",$n=>new Be.E9(-15,4+1.5*$n))),bn(Be.bn,{segmentIndex:0,segmentOffset:new Be.E9(15,-6),segmentOrientation:Be.rU.OrientMinus90,alignmentFocus:Be.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Be.KX("fill","color"),new Be.KX("visible","dir",$n=>$n===2),new Be.KX("width","thickness",$n=>7+3*$n),new Be.KX("height","thickness",$n=>7+3*$n),new Be.KX("segmentOffset","thickness",$n=>new Be.E9(-15,4+1.5*$n))),bn(Be.al,{alignmentFocus:new Be.z6(0,1,-4,0),editable:!0},new Be.KX("text").makeTwoWay(),new Be.KX("stroke","color"))),ct.current.linkTemplate.selectionAdornmentTemplate=bn(Be.uz,bn(Be.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:so(2)},new Be.KX("pathPattern","thickness",so)),lr({alignmentFocus:new Be.z6(0,0,-6,-4)}));function so($n){return bn(Be.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+($n+4).toString()+" H3"})}function qr($n){var Aa="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return $n===0?Aa="M0 0 M16 16 M0 8 L16 8":$n===2&&(Aa="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),bn(Be.bn,{geometryString:Aa,margin:2,background:"transparent",mouseEnter:(ja,ga)=>ga.background="dodgerblue",mouseLeave:(ja,ga)=>ga.background="transparent",click:Jn("dir",$n),contextClick:Jn("dir",$n)})}function _o($n){var Aa=(ja,ga)=>{ja.handled=!0,ja.diagram.model.commit(fr=>{var Hr=ga.part.adornedPart;fr.set(Hr.data,$n?"toSpot":"fromSpot",Be.z6.stringify(Be.z6.AllSides)),($n?Hr.toNode:Hr.fromNode).invalidateConnectedLinks()})};return bn(Be.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ja,ga)=>ga.background="dodgerblue",mouseLeave:(ja,ga)=>ga.background="transparent",click:Aa,contextClick:Aa})}function Mn($n,Aa){var ja=0,ga=Be.z6.RightSide;$n.equals(Be.z6.Top)?(ja=270,ga=Be.z6.TopSide):$n.equals(Be.z6.Left)?(ja=180,ga=Be.z6.LeftSide):$n.equals(Be.z6.Bottom)&&(ja=90,ga=Be.z6.BottomSide),Aa||(ja-=180);var fr=(Hr,oo)=>{Hr.handled=!0,Hr.diagram.model.commit(Tr=>{var co=oo.part.adornedPart;Tr.set(co.data,Aa?"toSpot":"fromSpot",Be.z6.stringify(ga)),(Aa?co.toNode:co.fromNode).invalidateConnectedLinks()})};return bn(Be.bn,{alignment:$n,alignmentFocus:$n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ja,background:"transparent",mouseEnter:(Hr,oo)=>oo.background="dodgerblue",mouseLeave:(Hr,oo)=>oo.background="transparent",click:fr,contextClick:fr})}ct.current.linkTemplate.contextMenu=bn("ContextMenu",Ga(),Lr(),bn("ContextMenuButton",bn(Be.s_,"Horizontal",qr(0),qr(1),qr(2))),bn("ContextMenuButton",bn(Be.s_,"Horizontal",bn(Be.s_,"Spot",_o(!1),Mn(Be.z6.Top,!1),Mn(Be.z6.Left,!1),Mn(Be.z6.Right,!1),Mn(Be.z6.Bottom,!1)),bn(Be.s_,"Spot",{margin:new Be.Zt(0,0,0,2)},_o(!0),Mn(Be.z6.Top,!0),Mn(Be.z6.Left,!0),Mn(Be.z6.Right,!0),Mn(Be.z6.Bottom,!0)))));const Mr=`{ "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 Rr=["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 Gr($n){return console.log("shapeName:",$n),Rr.indexOf($n)>=0}var za=new Be.YI(vn.current,{maxSelectionCount:1,linkTemplate:bn(Be.rU,{locationSpot:Be.z6.Center,selectionAdornmentTemplate:bn(Be.uz,"Link",{locationSpot:Be.z6.Center},bn(Be.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),bn(Be.bn,{toArrow:"Standard",stroke:null}))},{routing:Be.rU.AvoidsNodes,curve:Be.rU.JumpOver,corner:5,toShortLength:4},new Be.KX("points"),bn(Be.bn,{isPanelMain:!0,strokeWidth:2}),bn(Be.bn,{toArrow:"Standard",stroke:null})),model:new Be.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Be.bn.getFigureGenerators().toArray().map($n=>({text:"\u672A\u547D\u540D",size:"100 100",figure:$n.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ct.current.addDiagramListener("TextEdited",function($n){var Aa;const ja=$n.subject.part;var ga=(Aa=document.activeElement)==null?void 0:Aa.value;typeof ga=="string"&&ga.trim()===""&&ct.current.model.commit(function(fr){fr.set(ja.data,"text","\u672A\u547D\u540D"),ct.current.commandHandler.stopCommand()},"increment")}),za.nodeTemplate=bn(Be.NB,"Auto",{locationSpot:Be.z6.Center},new Be.KX("location","location",Be.E9.parse).makeTwoWay(Be.E9.stringify),bn(Be.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Be.KX("stroke").makeTwoWay(),new Be.KX("fill").makeTwoWay(),new Be.KX("figure")),bn(Be.al,{margin:new Be.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Be.$u(16,16),maxSize:new Be.$u(10,NaN),textAlign:"center",editable:!0},new Be.KX("key").makeTwoWay())),setTimeout(()=>{ct.current.grid=bn(Be.s_,"Grid",bn(Be.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bn(Be.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ct.current.grid.visible=!0,ct.current.grid.gridCellStroke="darkgray",ct.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ct.current,ct.current}const Ra=()=>ve(this,null,function*(){var bn=ct.current.makeImage();const pa=yield(0,et.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:bn.src}});pt({src:pa.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Un()},500),Bn(Fn+1),()=>{ct.current=null}),[]),Fe.createElement("div",{ref:kn,className:an.current?`${Ue.maxH60} body-overflow-initial`:"body-overflow-initial"},Fe.createElement(ft.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Fn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Fe.createElement(Dt.Z,null,Fe.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Fe.createElement(It.Z,{onClick:()=>{var bn,pa,$a=ct.current.selection.first();if(an.current=!an.current,document.activeElement&&$a){let lr=(pa=(bn=document.activeElement)==null?void 0:bn.value)==null?void 0:pa.trim();typeof lr=="string"&&ct.current.model.commit(function(Jn){Jn.set($a.data,"text",lr||"\u672A\u547D\u540D"),ct.current.commandHandler.stopCommand()},"increment")}Bn(Fn+1)}},Fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:lt},Fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ue.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:Ue.myPaletteDiv,ref:vn})),Fe.createElement("div",{style:{flex:1,position:"relative"}},Fe.createElement("div",{ref:Kt,style:{height:"80vh"}}))),Fe.createElement("div",{className:"tr"},Fe.createElement(he.ZP,{size:"large",onClick:Ra,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=tt,we=ae(5112),Ce=ae(5871);const vt=we.ZP.Group,Ye={margin:"0 8px"};var _e=({callback:lt,onCancel:pt})=>{function ct(Kt){lt(Kt)}return b.createElement(ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ct},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Ye},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Ye},"\u884C\u6570"),b.createElement(ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Ce.Z,null)),b.createElement("span",{style:Ye},"\u5217\u6570"),b.createElement(ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Ce.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Ye},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(ye.default.Item,{name:"align"},b.createElement(vt,null,b.createElement(we.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(we.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(we.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(we.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(he.ZP,{type:"ghost",onClick:pt},"\u53D6\u6D88")))},Et=ae(78673),cn=ae(98598),Lt=ae.n(cn),Yt=(0,b.forwardRef)(({use3d:lt,width:pt,height:ct,callback:Kt,showSaveButton:vn},an)=>{const kn=(0,b.useRef)(),Fn=(0,b.useRef)(),[Bn,Un]=(0,b.useState)(!1),Ra=(0,b.useRef)({id:kn,appName:"graphing",width:pt||1e3,height:ct||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Fn.current=new(Lt())(Ra.current,!0),window.onload=function(){Fn.current.inject("applet_container")}},[]);const bn=()=>{var pa=window.ggbApplet.getPNGBase64(1,!0,72);return Kt&&Kt(pa),pa};return(0,b.useEffect)(()=>{Ra.current.appName=Bn?"3D":"graphing",Fn.current.inject("applet_container")},[Bn]),(0,b.useEffect)(()=>{Un(lt)},[lt]),(0,b.useImperativeHandle)(an,()=>({getImgData:bn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),b.createElement(Dt.Z,{align:"middle"},b.createElement(It.Z,{flex:1},b.createElement(Et.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:pa=>Un(pa)})),b.createElement(It.Z,null,b.createElement(he.ZP,{size:"large",onClick:bn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=ae(75890),bt=ae(1012),on=ae(8591);const An="link",Zt="upload-image",wt="add-flowchart",Nn="draw-image",zn="add-flowchart",Wn="code-block",Yn="add-table",xa="------------",ln={default:xa,left:`:${xa}`,center:`:${xa}:`,right:`${xa}:`};var en=ae(91300),pn=(lt,pt,ct)=>new Promise((Kt,vn)=>{var an=Bn=>{try{Fn(ct.next(Bn))}catch(Un){vn(Un)}},kn=Bn=>{try{Fn(ct.throw(Bn))}catch(Un){vn(Un)}},Fn=Bn=>Bn.done?Kt(Bn.value):Promise.resolve(Bn.value).then(an,kn);Fn((ct=ct.apply(lt,pt)).next())});function Zn(){}let xn=0;const La=1e4,Wa="\u2581",ta="@\u2581\u2581@",yn="@\u2581@",Oa=`
**\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`,Ve=["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 Ft(lt){return/^\d+$/.test(lt)?`${lt}px`:lt}const Vt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",tn={[Vt+"-B"]:"bold",[Vt+"-I"]:"italic"},Sn={[An]:"\u6DFB\u52A0\u94FE\u63A5",[Wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Zt]:"\u6DFB\u52A0\u56FE\u7247",[Nn]:"\u6DFB\u52A0\u753B\u56FE",[wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var mn=({defaultValue:lt="",onChange:pt,width:ct="100%",height:Kt=400,miniToolbar:vn=!1,isFocus:an=!1,watch:kn,insertTemp:Fn,mode:Bn="markdown",id:Un="markdown-editor-id",showResizeBar:Ra=!1,noStorage:bn=!1,showNullButton:pa=!1,showNullProgramButton:$a=!1,hidetoolBar:lr=!1,fullScreen:Jn=!1,onBlur:sn,onCMBeforeChange:Dr,onFullScreen:Ga,className:Er="",disablePaste:Cr=!1,disabled:Lr=!1,disabledFill:xr=!1,placeholder:so="",values:qr="",extraUse:_o})=>{const[Mn,Mr]=(0,b.useState)(null),[Rr,Gr]=(0,b.useState)(lt),[za,$n]=(0,b.useState)(kn),[Aa,ja]=(0,b.useState)(Jn),[ga,fr]=(0,b.useState)(""),[Hr,oo]=(0,b.useState)(0),[Tr,co]=(0,b.useState)(Kt),[ni,Jo]=(0,b.useState)(!1),_i=(0,b.useRef)((0,bt.Z)()),So=(0,b.useRef)(!1),Ba=(0,b.useRef)(),[eo,mo]=(0,b.useState)(0),[Ro,Po]=(0,b.useState)(0),xo=(0,b.useRef)(),oi=(0,b.useRef)(),$o=(0,b.useRef)(),Ho=(0,b.useRef)(),Ci=()=>pn(void 0,null,function*(){var Ta;const na=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:_i.current}});(Ta=na==null?void 0:na.attachments)!=null&&Ta.length&&(console.log("cm:",Mn,xo),na.attachments.map(ia=>{ia.content_type.indexOf("image")>-1?Mn.replaceSelection(`![,](/api/attachments/${ia.id}?type=${ia.content_type})`):ia.content_type.indexOf("video")>-1?Mn.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ia.content_type.indexOf("pdf")>-1?Mn.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ia.id}?type=${ia.content_type}&disposition=inline" target="_blank">${ia.name}</a>`):Mn.replaceSelection(`[${ia.name}](${ENV.API_SERVER}/api/attachments/${ia.id}?type=${ia.content_type})`)}))});(0,b.useEffect)(()=>{const Ta=window.scrollY||window.pageYOffset;Gr(qr),Mn==null||Mn.setValue(qr),window.scrollTo(0,Ta)},[qr]),(0,b.useEffect)(()=>{Ga==null||Ga(Aa)},[Aa]),(0,b.useEffect)(()=>{if(xo.current){let Ta=function(ia,Pa){var hr;if(Cr){Pa.preventDefault();return}const _r=Pa.clipboardData;if(_r){const no=_r.types.toString(),fo=_r.items;if(no==="Files"||_r.types.indexOf("Files")>-1){if(Pa.preventDefault(),Bn=="stex")return;try{let wo=fo[1];((hr=fo[0])==null?void 0:hr.kind)==="file"&&(wo=fo[0]);const Bo=wo.getAsFile(),ka=Bo.name.split(".").pop();(0,Qe.I)(Bo,zo=>{var Bi,si,ki;zo.id?((Bi=Bo==null?void 0:Bo.type)==null?void 0:Bi.indexOf("image"))>-1?na.replaceSelection(`![,](/api/attachments/${zo.id}?type=${zo.content_type})`):((si=Bo==null?void 0:Bo.type)==null?void 0:si.indexOf("video"))>-1?na.replaceSelection(`<video width="100%" controls src="/api/attachments/${zo.id}"></video>`):((ki=Bo==null?void 0:Bo.type)==null?void 0:ki.indexOf("pdf"))>-1?na.replaceSelection(`<a href="/api/attachments/${zo.id}?type=${Bo.type}&disposition=inline" target="_blank">${Bo.name}</a>`):Ve.includes(ka)?na.replaceSelection(`<a href="/api/attachments/${zo.id}?type=office&disposition=inline" target="_blank">${Bo.name}</a>`):na.replaceSelection(`[${Bo.name}](/api/attachments/${zo.id}?type=${zo.content_type})`):(zo==null?void 0:zo.status)===401&&(on.ZP.warning((zo==null?void 0:zo.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(wo){on.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const na=be().fromTextArea(xo.current,{mode:Bn,lineNumbers:!vn,lineWrapping:!0,value:lt,autoCloseTags:!$a,autoCloseBrackets:!0});return na.on("keyup",function(ia,Pa){Pa.keyCode===8&&(ia.getValue()==""?na.setOption("placeholder",so):na.setOption("placeholder",null))}),na.on("keydown",function(ia,Pa){if(Pa.keyCode===8){var hr=Eo(ia);hr&&Pa.preventDefault()}}),an&&na.focus(),na.on("paste",Ta),na.on("dragleave",function(ia,Pa){oi.current.classList.remove("mouse-hover-md")}),Lr&&na.on("beforeChange",function(ia,Pa){(Pa.origin==="paste"||Pa.origin==="+input")&&Pa.cancel()}),Mr(na),()=>{na.off("paste",Ta)}}},[]);const Uo=(0,b.useCallback)(()=>{if(oi.current)try{}catch(Ta){console.log(Ta,"---- to set md editor body height")}},[Tr,oi,Aa]);(0,b.useEffect)(()=>{function Ta(){let na=new Ae.Z(ia=>{for(let Pa of ia)(Pa.target.offsetHeight>0||Pa.target.offsetWidth>0)&&(Uo(),Mn.setSize("100%","100%"),Mn.refresh())});return na.observe(xo.current.parentElement),na}if(Mn){const na=Ta();return()=>{var ia,Pa;(ia=xo.current)!=null&&ia.parentElement&&na.unobserve((Pa=xo.current)==null?void 0:Pa.parentElement)}}},[Mn,Uo]),(0,b.useEffect)(()=>{if(Mn){let Ta=[];for(const[na,ia]of Object.entries(tn)){let Pa={[na]:()=>{xi(ia)}};Ta.push(Pa),Mn.addKeyMap(Pa)}return Ba.current=setInterval(()=>{So.current&&Ci()},4e3),()=>{clearInterval(Ba.current);for(let na of Ta)Mn.removeKeyMap(na)}}},[Mn]),(0,b.useEffect)(()=>{Jn!==Aa&&ja(Jn)},[Jn]),(0,en.Z)(()=>{if(!bn&&Hr>0){let Ta=new Date().getTime(),na=window.sessionStorage.getItem(Un);Ta>=Hr+La&&(!na||na!==Rr)&&(window.sessionStorage.setItem(Un,Rr),Jo(!0))}},La),(0,b.useEffect)(()=>{$n(kn)},[Mn,kn]),(0,b.useEffect)(()=>{Mn&&an&&Mn.focus()},[Mn,an]),(0,b.useEffect)(()=>{if(za&&Mn){let Ta=function(ia){let Pa=ia.target;if(Ho.current){let hr=Pa.scrollTop/Pa.scrollHeight;Ho.current.scrollTop=Ho.current.scrollHeight*hr}};const na=Mn.getScrollerElement();return na.addEventListener("scroll",Ta),()=>{na.removeEventListener("scroll",Ta)}}},[Mn,za]),(0,b.useEffect)(()=>{if(Mn&&Dr){let Ta=function(na,ia){Dr(na,ia)};return Mn.on("beforeChange",Ta),()=>{Mn.off("beforeChange",Ta)}}},[Mn,Dr]),(0,b.useEffect)(()=>{if(Mn&&sn){let Ta=function(){sn(Mn.getValue())};return Mn.on("blur",Ta),()=>{Mn.off("blur",Ta)}}},[Mn,sn]);function Eo(Ta,na){var ia=Ta.getDoc(),Pa=ia.getCursor(),hr=ia.getLine(Pa.line),_r=hr.charAt(Pa.ch-1),no=hr.lastIndexOf("@\u2581@",Pa.ch),fo=hr.lastIndexOf("@\u2581\u2581@",Pa.ch),wo=no>fo?no:fo,Bo=no>fo?3:4;if(ta.indexOf(_r)===-1)return null;if(console.log("change1:",na,Ta,hr,Pa,wo,no,fo,_r),wo>=0&&Pa.ch-wo<5){var ka=wo+Bo;return ia.replaceRange("",{line:Pa.line,ch:wo},{line:Pa.line,ch:ka}),{line:Pa.line,ch:ka}}return null}(0,b.useEffect)(()=>{if(Mn){let Ta=function(na,ia){const Pa=na.getValue();Gr(Pa),oo(new Date().getTime()),na.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pt&&($a?pt(Pa,Ki(Pa)):pt(Pa))};return Mn.on("change",Ta),()=>{Mn.off("change",Ta)}}},[Mn,pt]),(0,b.useEffect)(()=>{if(Mn)if(lt==null)Mn.setValue(""),Gr("");else{const Ta=window.scrollY||window.pageYOffset;lt!==Mn.getValue()&&(Mn.setValue(lt),Gr(lt),Mn.setCursor(Lr?1:Mn.lineCount(),0),window.scrollTo(0,Ta))}},[Mn,lt]);const xi=(0,b.useCallback)(Ta=>{const na=Mn.getCursor(),ia=Mn.getSelection();let Pa=ia.split(`
`);switch(Ta){case"bold":return Mn.replaceSelection("**"+ia+"**"),ia===""&&Mn.setCursor(na.line,na.ch+2),Mn.focus();case"italic":return Mn.replaceSelection("*"+ia+"*"),ia===""&&Mn.setCursor(na.line,na.ch+1),Mn.focus();case"code":return Mn.replaceSelection("`"+ia+"`"),ia===""&&Mn.setCursor(na.line,na.ch+1),Mn.focus();case"inline-latex":return fr("inline-latex"),Mn.focus();case"latex":return Mn.replaceSelection("```latex\n"+ia+"\n```"),Mn.setCursor(na.line+1,ia.length+1),Mn.focus();case"line-break":return Mn.replaceSelection(`<br/>
`),Mn.focus();case"list-ul":return ia===""?Mn.replaceSelection("- "+ia):Mn.replaceSelection(Pa.map(hr=>hr===""?"":`- ${hr}`).join(`
`)),Mn.focus();case"list-ol":return ia===""?Mn.replaceSelection("1. "+ia):Mn.replaceSelection(Pa.map((hr,_r)=>hr===""?"":`${_r+1}. ${hr}`).join(`
`)),Mn.focus();case"add-null-ch":return ia===""&&Mn.setCursor(na.line,na.ch),Mn.replaceSelection(Wa),Mn.focus();case"add-signal":return ia===""&&Mn.setCursor(na.line,na.ch),Mn.replaceSelection(yn),Mn.focus();case"add-multiple":return ia===""&&Mn.setCursor(na.line,na.ch),Mn.replaceSelection(ta),Mn.focus();case"inster-template-1":return ia===""&&Mn.setCursor(na.line,na.ch),Mn.replaceSelection(Oa),Mn.focus();case"eraser":return Mn.setValue(""),Mn.focus();case"trigger-watch":return $n(!za),Mn.focus();case"trigger-full-screen":return ja(!Aa),Mn.focus();case An:fr(An);return;case Wn:fr(Wn);return;case Zt:fr(Zt);return;case Nn:fr(Nn);return;case"maths-latex":fr("maths-latex");return;case wt:fr(wt);return;case Yn:fr(Yn);return;default:throw new Error}},[Mn,za,Aa]),yo=(0,b.useCallback)((Ta,na)=>{var ia,Pa,hr,_r,no,fo;switch(fr(""),ga){case An:const{title:Bi,link:si}=Ta;return Mn.replaceSelection(`[${Bi}](${si})`),Mn.focus();case Wn:const{language:ki,content:Zi}=Ta;return Mn.replaceSelection(["```"+ki,Zi,"```"].join(`
`)),Mn.focus();case"maths-latex":for(var wo=atob(Ta),Bo=new Uint8Array(wo.length),ka=0;ka<wo.length;ka++)Bo[ka]=wo.charCodeAt(ka);var zo=new Blob([Bo],{type:"image/png"});(0,Qe.I)(zo,Mo=>{Mo.id?Mn.replaceSelection(`![,](/api/attachments/${Mo.id}?type=${Mo.content_type})`):(Mo==null?void 0:Mo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mn.replaceSelection("`$$"+Ta+"$$`");break;case Zt:case Nn:case zn:const{src:zi,alt:Wr}=Ta,Xo=na,ol=(hr=(Pa=(ia=Xo==null?void 0:Xo.name)==null?void 0:ia.split("."))==null?void 0:Pa.pop)==null?void 0:hr.call(Pa);return((_r=Xo==null?void 0:Xo.type)==null?void 0:_r.indexOf("image"))>-1||!(Xo!=null&&Xo.type)?Wr?Mn.replaceSelection(`![ ${Wr} ]( ${zi} "${Wr}" )`):Mn.replaceSelection(`![,](${zi})`):((no=Xo==null?void 0:Xo.type)==null?void 0:no.indexOf("video"))>-1?Mn.replaceSelection(`<video width="100%" controls src="${zi}"></video>`):((fo=Xo==null?void 0:Xo.type)==null?void 0:fo.indexOf("pdf"))>-1?Mn.replaceSelection(`<a href="${zi}?type=${Xo.type}&disposition=inline" target="_blank">${Xo.name}</a>`):Ve.includes(ol)?Mn.replaceSelection(`<a href="${zi}?type=office&disposition=inline" target="_blank">${Xo.name}</a>`):Mn.replaceSelection(`[${Xo.name}](${zi})`),Mn.focus();case Yn:const{row:vi,col:Ui,align:il}=Ta;let Xi=`
`;for(let Mo=0;Mo<vi;Mo++){let qi=[],el=[];for(let ll=0;ll<Ui;ll++)Mo===1&&el.push(ln[il]),qi.push(" ");Mo===1&&(Xi+=`| ${el.join(" | ")} |
`),Xi+=`| ${qi.join(Ui===1?"":" | ")} |
`}return Mn.replaceSelection(Xi+`
`),Mn.focus();default:throw new Error}},[Mn,ga]),Mi=(0,b.useMemo)(()=>{switch(ga){case An:return b.createElement(jt,{callback:yo,onCancel:ai});case Wn:return b.createElement(Xt.Z,{callback:yo,onCancel:ai});case Zt:return b.createElement(Qe.Z,{callback:yo,onCancel:ai});case wt:return b.createElement(At,{callback:yo,onCancel:ai});case Yn:return b.createElement(_e,{callback:yo,onCancel:ai});case"maths-latex":return b.createElement(Yt,{showSaveButton:!0,callback:yo});case"inline-latex":return b.createElement(nn.Z,{showSaveButton:!0,callback:yo});default:return null}},[ga]);function ai(){fr("")}(0,b.useEffect)(()=>{if($o.current){let Ta=function(no){hr=!0,_r=no.pageY},na=function(){hr=!1},ia=function(no){if(hr){let fo=no.pageY-_r;fo<0&&(fo=0),fo>300&&(fo=300);let wo=Kt+fo+"px";co(wo)}},Pa=$o.current,hr=!1,_r=0;return Pa.addEventListener("mousedown",Ta),document.addEventListener("mousemove",ia),document.addEventListener("mouseup",na),()=>{Pa.removeEventListener("mousedown",Ta),document.removeEventListener("mousemove",ia),document.removeEventListener("mouseup",na)}}},[Mn,$o]),(0,b.useEffect)(()=>{co(Kt)},[Kt]);const Wi=Ft(ct),Di=Ft(Tr),Ti={width:Wi,height:Di},Yo=(0,b.useMemo)(()=>{if(Hr){let Ta=new Date(Hr),na=Ta.getHours(),ia=Ta.getMinutes(),Pa=Ta.getSeconds();return na=na<10?"0"+na:na,ia=ia<10?"0"+ia:ia,Pa=Pa<10?"0"+Pa:Pa,`${na}:${ia}:${Pa}`}return 0},[Hr]),Ki=Ta=>{const na=[];if($a){let ia=-1;Ta=Ta.replace(/(@▁▁@|@▁@)/g,function(Pa,hr,_r){na.push({multiLine:Pa!==yn})})}return na};function pl(){window.sessionStorage.removeItem(Un),Jo(!1),oo(0)}function $i(){Jo(!1),oo(0),Mn.setValue(window.sessionStorage.getItem(Un))}(0,b.useEffect)(()=>{Sn[ga]&&ga!==Nn&&ga!==wt&&setTimeout(()=>{const Ta=document.getElementsByClassName("markdown-popup-form")[0],na=window.innerWidth/2-Ta.offsetWidth/2,ia=window.innerHeight/2-Ta.offsetHeight/2;mo(na),Po(ia)},0)},[ga]);const Yi=Ta=>{Ta.preventDefault();const na=Ta.clientX-eo,ia=Ta.clientY-Ro;document.body.onmousemove=Pa=>{let hr=Pa.clientX-na,_r=Pa.clientY-ia;const no=document.getElementsByClassName("markdown-popup-form")[0],fo=window.innerWidth-no.offsetWidth,wo=window.innerHeight-no.offsetHeight;hr=Math.max(0,Math.min(hr,fo)),_r=Math.max(0,Math.min(_r,wo)),Ur(Pa.clientX,Pa.clientY,na,ia)&&(mo(hr),Po(_r))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ur=(Ta,na,ia,Pa)=>{const hr=document.body.clientHeight,_r=document.body.clientWidth;return Ta<20&&ia>Ta||Ta>_r-20&&ia<Ta||na<20&&Pa>na||na>hr-20&&Pa<na?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:oi},b.createElement("div",{className:`markdown-editor-container ${Er} ${za?"on-preview":""} ${vn?"mini":""} ${Aa?"full-screen":""}`,style:Ti},b.createElement(ge,{insertTemp:Fn,watch:za,fullScreen:Aa,showNullButton:pa,showNullProgramButton:$a,onActionCallback:xi,hidetoolBar:lr,extraUse:_o}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:xo,placeholder:so})),za?b.createElement("div",{ref:Ho,className:"preview-container"},Bn==="stex"&&b.createElement(Ze,{value:Rr}),Bn!=="stex"&&b.createElement(He.Z,{disabledFill:xr,showProgramFill:$a,value:Rr})):null))),Ra?b.createElement("a",{ref:$o,className:"editor-resize"}):null,ga===Nn&&b.createElement(Jt,{callback:yo,onCancel:ai}),ga===wt&&b.createElement(At,{callback:yo,onCancel:ai}),b.createElement(Ee.Z,null,Sn[ga]&&ga!==Nn&&ga!==wt?b.createElement(ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:eo,top:Ro},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:Yi},Sn[ga]),open:!0,onCancel:ai,footer:null,destroyOnClose:!0,width:ga===wt?"1200px":null,height:ga===wt?"80vh":null,className:"markdown-popup-form"},Mi):null))}},56701:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return re},I:function(){return ce}});var b=ae(78241),se=ae(8591),be=ae(92832),Ae=ae(3113),Ie=ae(58788),Oe=ae(59301),ue=ae(2119),ke=ae(59301),We=Object.defineProperty,Te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(pe,ge,Ee)=>ge in pe?We(pe,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):pe[ge]=Ee,a=(pe,ge)=>{for(var Ee in ge||(ge={}))De.call(ge,Ee)&&E(pe,Ee,ge[Ee]);if(Ze)for(var Ee of Ze(ge))le.call(ge,Ee)&&E(pe,Ee,ge[Ee]);return pe},x=(pe,ge)=>Te(pe,He(ge));const{useForm:y}=b.default,z={width:280,marginRight:10},te={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:pe,onCancel:ge})=>{const[Ee]=y();let ye=(0,Oe.useRef)();function Re(je){pe(je,ye.current)}function he(je,ot){if(je.status===-1){se.ZP.error(je.message);return}Ee.setFieldsValue({src:`/api/attachments/${je.id}`,type:ot.type})}function qe(je){let ot=je.target.files[0];ye.current=ot,ce(ot,he)}return ke.createElement(b.default,x(a({form:Ee},te),{className:"upload-image-panel",onFinish:Re,style:{width:470,overflow:"hidden"}}),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(be.default,{style:z})),ke.createElement(ie,{onFileChange:qe}))),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(be.default,{style:{width:264}})),ke.createElement(b.default.Item,{style:{textAlign:"right"}},ke.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(Ae.ZP,{type:"default",onClick:ge},"\u53D6\u6D88")))};function ie({onFileChange:pe}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:pe}))}function ce(pe,ge){if(!pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ee=new FormData;Ee.append("editormd-image-file",pe),Ee.append("file_param_name","editormd-image-file"),Ee.append("byxhr","true");var ye=new window.XMLHttpRequest;ye.withCredentials=!0,ye.addEventListener("load",function(Re){ge(JSON.parse(Re.target.responseText),pe)},!1),ye.addEventListener("error",function(Re){console.error(Re)},!1),ye.open("POST",`${Ie.KI}/api/attachments.json`),ye.send(Ee)}},50474:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return be}});var b=ae(59301),se=ae(4676);class be extends b.Component{constructor(Ie){super(Ie);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,se.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},92730:function(_t,Ot,ae){"use strict";ae.d(Ot,{i:function(){return ie},Z:function(){return pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},se=ae(71418),be=ae(6848),Ae=ae(92310),Ie=ae.n(Ae),Oe=ae(58130),ue=ae(97267),ke=ae(2119),We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWAB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0qgjYNKAh2oH6vANrJ4kejl6qIReYrwtzgmT/LwknSFTisazUUITWNi5vmiDaDdydqHxIGNgGycki263pBtRjDLMbY1MhICnprTPJluBONyjvj7tAPq5cMEjq+x8ZJJ5AcRDceZL3LHhhINn/lUUySVsXSIJlbgvNCx4WHv3+VWPXvL6sZt8/v/t/ZcDiwhxFgaLp8YdFs4Dx64oxwbfTrmwDrBivpR4DVDQDF/VqYsf+ef3L5SDvAGCVcy/4GKCimrho1yv3tWdR3xgzD9ssC8H6ko8BKpqBi3q1I77sXvBef9M0HX3kxwAV1cRFu95PALhFw2OAimbgol7tB5BbNDwGqKgmLtr1nhJaFw2PASqagYt6db45jhQNMf0Xi7mnon7V4+sfxQIFJqFMNES/v3D+oyz8+Jp/jgX+AT+bS/shEzsoAAAAAElFTkSuQmCC",re=ae(59301);const ie=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:We,swimg:Te},{name:"101\u8BA1\u5212",ptimg:He,swimg:Ze},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:De,swimg:le},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:E,swimg:a},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:x,swimg:y},{name:"\u519B\u961F\u4E00\u6D41",ptimg:z,swimg:te}];var pe=({className:ge,dataSource:Ee=[],col:ye=4,right:Re,bottom:he=23,precision:qe=0,wrapWidth:je=1200,trackEventItems:ot,loading:Le,onRemove:Je=()=>{},isCurrent:st=!0,showAlias:Ke=!1})=>{const $e=Math.floor((je-(ye-1)*Re)/ye),Wt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return re.createElement(se.Z,{spinning:Le},re.createElement("div",{className:Ie()(b.list,ge)},!!(Ee!=null&&Ee.length)&&(Ee==null?void 0:Ee.map((it,jt)=>{var Xt;const{name:Qe,id:ft,identifier:Dt,featured:rn,school_name:Pt,image_url:Jt,excellent:Be,is_plan:Ut}=it;return re.createElement("div",{key:ft,className:b.wrap,style:{width:$e,marginRight:(1+jt)%ye===0?0:Re+qe,marginBottom:he}},re.createElement("a",{className:b.li,onClick:En=>{En.preventDefault(),En.stopPropagation(),ot&&(0,Oe.L9)([ot]),(0,Oe.xg)(`/paths/${Dt}`)}},re.createElement("div",{className:b.img},re.createElement("img",{className:b.cover,src:`${Jt}`}),st&&(0,ke.bg)()&&(it==null?void 0:it.studying)&&re.createElement("div",{className:`${b.movebq} user-path-items`,onClick:En=>{En.stopPropagation(),Je(it)}},re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Xt=it==null?void 0:it.subject_tags)==null?void 0:Xt.map((En,Ct)=>{var It,et;if(Ct===0){const Fe=(It=Wt.find(ve=>ve.name==En))==null?void 0:It.swimg;return re.createElement("img",{className:b.sign,src:Fe,style:{left:"-4px"}})}const Ue=(et=Wt.find(Fe=>Fe.name==En))==null?void 0:et.ptimg;return re.createElement("img",{className:b.sign,src:Ue,style:{left:`${48+52*(Ct-1)+2*Ct}px`}})}),re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(it==null?void 0:it.excellent)&&re.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),re.createElement("div",{className:b.name},re.createElement(be.Z,{title:Ke&&(it!=null&&it.excellent_alias_name)?re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qe}`,re.createElement("br",null),re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${it==null?void 0:it.excellent_alias_name}`)):Qe},re.createElement("span",{className:b.e},Ke&&(it==null?void 0:it.excellent_alias_name)||Qe))),re.createElement("div",{className:b.tags},re.createElement("div",null,re.createElement(be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),re.createElement("span",null,it.stages_count))),re.createElement(be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),re.createElement("span",null,it.members_count)))))))})),!Ee.length&&re.createElement(ue.Z,null)))}},78258:function(_t,Ot,ae){"use strict";ae.d(Ot,{jL:function(){return Ie},w9:function(){return it},QD:function(){return nn},cQ:function(){return Je.Z},op:function(){return _e},O5:function(){return Oa},_b:function(){return Nn},t7:function(){return y},Gi:function(){return rn},YG:function(){return ft},qp:function(){return He},vr:function(){return An},qE:function(){return Lt},Je:function(){return re},wb:function(){return Le},cq:function(){return Ct},tp:function(){return le}});var b=ae(59301),se={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW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fswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ie=({dataSource:Ve=[],img:Ft,imgWidth:Ht=346,title:Vt,sunTitle:tn,bannerExtraContent:Sn})=>b.createElement("div",{className:se.banner},b.createElement("div",{className:se.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Vt),b.createElement("span",null,tn)),Ve.length>0&&b.createElement("div",{className:se.btns},Ve.map((mn,lt)=>b.createElement("div",{key:lt,onClick:mn.click},mn.name,mn.sign?b.createElement("img",{src:be,width:39}):null))),Sn),Ft&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:Ft,width:Ht}))),Oe={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ue=ae(92310),ke=ae.n(ue),We=ae(89392),He=({dataSource:Ve=[],value:Ft,onChange:Ht,onTitleChange:Vt,className:tn,title:Sn,titleWidth:mn=41,style:lt={},fontColor:pt="#6A7283",showCount:ct})=>{const[Kt,vn]=(0,b.useState)(0),[an,kn]=(0,b.useState)(!1),Fn=(0,b.useRef)(null),Bn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Un;Ve.length!==0&&(((Un=Fn==null?void 0:Fn.current)==null?void 0:Un.clientHeight)>97?vn(1):vn(0)),Ve.length===0&&vn(0),kn(!1)},[Ve]),b.createElement("div",{className:ke()(Oe.row,tn),style:lt},b.createElement("div",{onClick:(0,We.throttle)(()=>Vt==null?void 0:Vt(),2e3),style:{width:mn,marginTop:an?12:4},className:`${Oe.title} ${Vt?"current":""}`},Sn),b.createElement("div",{className:an?`${Oe.tagsWrap} ${Oe.tagsBorderWrap}`:Oe.tagsWrap},b.createElement("div",{className:Oe.bar,ref:Bn,style:Kt>0?{height:Kt===1?97:"auto",overflow:Kt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Oe.tag,ref:Fn},Ve==null?void 0:Ve.map(Un=>b.createElement("span",{onClick:()=>Ht(Un.id),key:Un.id,style:{color:pt},className:Ft===Un.id?Oe.active:""},b.createElement("span",{title:Un.name,className:Oe.name},Un.name),!!ct&&b.createElement("span",{className:Oe.num},Un.count))))),!!Kt&&b.createElement(b.Fragment,null,Kt===1?b.createElement("div",{onClick:()=>{var Un;vn(2),((Un=Fn==null?void 0:Fn.current)==null?void 0:Un.clientHeight)>245?kn(!0):kn(!1)},className:Oe.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Bn.current.scrollTop=0,vn(1),kn(!1)},className:Oe.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ze={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},le=({dataSource:Ve=[],value:Ft,onChange:Ht,className:Vt,style:tn={}})=>b.createElement("div",{style:tn,className:ke()(Ze.tabs,Vt)},Ve.map(Sn=>b.createElement("span",{onClick:()=>Ht(Sn.id),className:Ft===Sn.id?Ze.active:"",key:Sn.id},Sn.name))),E={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},a=ae(92832),y=({dataSource:Ve=[],value:Ft="",onChange:Ht,onInputChange:Vt=()=>{},className:tn,style:Sn={},placeholder:mn,allowClear:lt=!1})=>{var pt;const[ct,Kt]=(0,b.useState)(""),[vn,an]=(0,b.useState)("");(0,b.useEffect)(()=>{var Bn;let Un=Ft;(Bn=JSON.stringify(Ft))!=null&&Bn.includes("{")&&(Kt(Ft.id),Un=Ft.value||"");try{an(decodeURIComponent(Un||""))}catch(Ra){an(decodeURIComponent(Un||""))}},[Ft]);const kn=()=>{Ht(encodeURIComponent(vn),ct||null)},Fn=Bn=>{Bn!==ct&&(Kt(Bn),Ht(encodeURIComponent(vn),Bn))};return b.createElement("div",{className:ke()(E.input,tn),style:Sn},!!Ve.length&&b.createElement("div",{className:E.dropdown},b.createElement("div",{className:E.text},(pt=Ve.find(Bn=>Bn.id===ct))==null?void 0:pt.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:E.b1}),b.createElement("b",{className:E.b2})),b.createElement("div",{className:E.menu},Ve.map((Bn,Un)=>b.createElement("div",{key:Un,onClick:()=>Fn(Bn.id)},Bn.name)))),b.createElement(a.default,{onPressEnter:kn,value:vn,onChange:Bn=>{an(Bn.target.value),Vt(encodeURIComponent(Bn.target.value),ct||null)},bordered:!1,placeholder:mn}),b.createElement("i",{onClick:kn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},z={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},re=({value:Ve,onChange:Ft,className:Ht,total:Vt,pageSize:tn,style:Sn={}})=>{const mn=Ve<2,lt=Ve>=Math.ceil(Vt/tn);return Vt<=tn?b.createElement(b.Fragment,null):b.createElement("div",{className:ke()(z.quickPager,Ht),style:Sn},b.createElement("div",{onClick:()=>{mn||Ft(Ve-1,"prev")},className:mn?z.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{lt||Ft(Ve+1,"next")},className:lt?z.disabled:""},"\u4E0B\u4E00\u9875"))},ie={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ce=ae(71418),pe=ae(6848),ge=ae(13570),Ee=ae(10148),ye=ae(58130),Re=ae(96908),he=ae(57177),qe=ae(81378),je=ae(97267),Le=({className:Ve,dataSource:Ft=[],col:Ht=4,right:Vt,bottom:tn=23,precision:Sn=0,wrapWidth:mn=1200,trackEventItems:lt,loading:pt})=>{const ct=Math.floor((mn-(Ht-1)*Vt)/Ht);return b.createElement(ce.Z,{spinning:pt},b.createElement("div",{className:ke()(ie.list,Ve)},!!Ft.length&&Ft.map((Kt,vn)=>{const{name:an,id:kn,identifier:Fn,power:Bn,cover_image_id:Un,pic:Ra}=Kt;return b.createElement("div",{className:ie.wrap,key:kn,style:{width:ct,marginRight:(1+vn)%Ht===0?0:Vt+Sn,marginBottom:tn}},b.createElement("a",{target:"_blank",href:`/shixuns/${Fn}/challenges`,className:ie.li,onClick:bn=>{bn.preventDefault(),lt&&(0,ye.L9)([lt]),Bn&&(0,ye.xg)(`/shixuns/${Fn}/challenges`)}},b.createElement("div",{className:ie.img},b.createElement("img",{className:ie.cover,src:`${Ra}`}),Kt.is_jupyter&&b.createElement("img",{className:ie.sign,src:Re}),Kt.is_jupyter_lab&&b.createElement("img",{className:ie.sign,src:he}),Kt.is_unity_3d&&b.createElement("img",{className:ie.sign,src:qe})),b.createElement("div",{className:ie.name},b.createElement(pe.Z,{title:an||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:ie.e},an||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:ie.tags},b.createElement(pe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Kt.challenges_count))),!!Kt.myshixuns_count&&b.createElement(pe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Kt.myshixuns_count))),b.createElement(pe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Kt.level))),b.createElement("div",{className:ie.rate},b.createElement(ge.Z,{allowHalf:!0,disabled:!0,defaultValue:Kt.score_info}),b.createElement("span",null,"\xA0",Kt.score_info?`${Kt.score_info}\u5206`:"5\u5206")))),!Bn&&b.createElement("div",{className:ie.lockWrap},b.createElement("img",{src:`${Ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ft.length&&b.createElement(je.Z,null)))},Je=ae(92730),st={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18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wrapWidth:mn=1200,trackEventItems:lt,loading:pt})=>{const ct=Math.floor((mn-(Ht-1)*Vt)/Ht);return $e.createElement(ce.Z,{spinning:pt},$e.createElement("div",{className:ke()(st.list,Ve)},!!Ft.length&&Ft.map((Kt,vn)=>{const{subject_identifier:an,id:kn,identifier:Fn,power:Bn}=Kt,Un=Kt.is_public!=0&&Kt.is_public;return $e.createElement("div",{className:st.wrap,key:kn,style:{width:ct,marginRight:(1+vn)%Ht===0?0:Vt+Sn,marginBottom:tn}},$e.createElement("a",{className:st.li,onClick:Ra=>{Ra.preventDefault(),lt&&(0,ye.L9)([lt]),(0,ye.xg)(Kt.first_category_url)}},$e.createElement("div",{className:st.top},$e.createElement(pe.Z,{title:Kt.name},$e.createElement("div",{className:st.name},Kt.name)),$e.createElement("img",{className:st.img,src:Ee.Z.IMG_SERVER+"/images/"+Kt.avatar_url}),$e.createElement("div",{className:st.text,title:Kt.creator},Kt.creator),an&&$e.createElement("div",{className:st.btns},$e.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),$e.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Un&&$e.createElement("div",{className:st.sign},"\u516C\u5F00")),$e.createElement("div",{className:st.bottom},Kt.visits>0&&$e.createElement(pe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},$e.createElement("span",null,$e.createElement("i",{className:"iconfont icon-liulanyan"}),$e.createElement("span",null,Kt.visits))),Kt.course_members_count>0&&$e.createElement(pe.Z,{title:"\u6210\u5458",placement:"bottom"},$e.createElement("span",null,$e.createElement("i",{className:"iconfont icon-chengyuan"}),Kt.course_members_count)),Kt.tasks_count>0&&$e.createElement(pe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},$e.createElement("span",null,$e.createElement("i",{className:"iconfont icon-zuoye"}),Kt.tasks_count)),Kt.is_end?$e.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):$e.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Kt.is_accessible&&$e.createElement("div",{className:st.lockWrap},$e.createElement("img",{src:`${Ee.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),$e.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ft.length&&$e.createElement(je.Z,null)))},jt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Xt=ae(42203),ft=({dataSource:Ve=[],value:Ft,onChange:Ht,className:Vt,style:tn={},tabBarExtraContent:Sn})=>b.createElement("div",{className:ke()(jt.tabs,Vt),style:tn},b.createElement("div",{className:jt.tabsWrap},Ve.map((mn,lt)=>b.createElement("aside",{className:jt.tab,onClick:()=>{Ht(mn.id),mn.link&&Xt.history.push(mn.link)},key:lt},b.createElement("div",{className:Ft===mn.id?jt.active:""},mn.name),(mn==null?void 0:mn.resetCount)==null&&(mn==null?void 0:mn.total)!==void 0&&b.createElement("span",null,"\uFF08",mn==null?void 0:mn.total,"\uFF09"),(mn==null?void 0:mn.resetCount)!==void 0&&(mn==null?void 0:mn.total)!==void 0&&b.createElement(pe.Z,{title:(mn==null?void 0:mn.tip)!=null?mn==null?void 0:mn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},mn==null?void 0:mn.resetCount),"/",b.createElement("span",null,mn==null?void 0:mn.total),"\uFF09"))))),b.createElement("div",{className:jt.tabBar},Sn)),rn=({className:Ve,style:Ft={},children:Ht})=>b.createElement("div",{className:ke()(Ve),style:Ft},Ht),Pt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Jt=ae(38854),Be=ae(20834);const Ut=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ct=({sortValue:Ve,dropValue:Ft,className:Ht,onSort:Vt,onDrop:tn,dataSource:Sn=Ut})=>{var mn;return b.createElement("div",{className:ke()(Pt.orderWrap,Ht)},b.createElement(Jt.Z,{dropdownRender:()=>b.createElement(Be.default,null,Sn.map((lt,pt)=>b.createElement(Be.default.Item,{key:pt,onClick:()=>tn(lt.id)},lt.name)))},b.createElement("span",{className:Pt.orderTextWrap},(mn=Sn.find(lt=>Ft===lt.id))==null?void 0:mn.name)),b.createElement("span",{className:Pt.orderIconWrap},b.createElement("span",{className:Pt.orderAsc},b.createElement("i",{className:Ve==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Pt.cursorPointer} ${Pt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Pt.cursorPointer}`,onClick:()=>Vt(Ve==="asc"?"desc":"asc")})),b.createElement("span",{className:Pt.orderDesc},b.createElement("i",{className:Ve==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Pt.cursorPointer} ${Pt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Pt.cursorPointer}`,onClick:()=>Vt(Ve==="asc"?"desc":"asc")}))))},It={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},et=ae(3113),Ue=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,At=(Ve,Ft,Ht)=>Ft in Ve?Ue(Ve,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ve[Ft]=Ht,we=(Ve,Ft)=>{for(var Ht in Ft||(Ft={}))ve.call(Ft,Ht)&&At(Ve,Ht,Ft[Ht]);if(Fe)for(var Ht of Fe(Ft))tt.call(Ft,Ht)&&At(Ve,Ht,Ft[Ht]);return Ve},Ce=(Ve,Ft)=>{var Ht={};for(var Vt in Ve)ve.call(Ve,Vt)&&Ft.indexOf(Vt)<0&&(Ht[Vt]=Ve[Vt]);if(Ve!=null&&Fe)for(var Vt of Fe(Ve))Ft.indexOf(Vt)<0&&tt.call(Ve,Vt)&&(Ht[Vt]=Ve[Vt]);return Ht},vt=(Ve,Ft,Ht)=>new Promise((Vt,tn)=>{var Sn=pt=>{try{lt(Ht.next(pt))}catch(ct){tn(ct)}},mn=pt=>{try{lt(Ht.throw(pt))}catch(ct){tn(ct)}},lt=pt=>pt.done?Vt(pt.value):Promise.resolve(pt.value).then(Sn,mn);lt((Ht=Ht.apply(Ve,Ft)).next())}),_e=Ve=>{var Ft=Ve,{className:Ht,style:Vt,children:tn,loading:Sn=!1,openLoading:mn,onClick:lt=()=>{},size:pt="middle",shape:ct="round"}=Ft,Kt=Ce(Ft,["className","style","children","loading","openLoading","onClick","size","shape"]);const[vn,an]=(0,b.useState)(!1);return b.createElement(et.ZP,we({onClick:(0,We.throttle)(kn=>vt(void 0,null,function*(){mn&&an(!0);try{yield lt(kn)}catch(Fn){console.log("error",Fn)}mn&&an(!1)}),2e3,{leading:!0,trailing:!1}),className:ke()(It.btn,It[`${pt}-${ct}`],Ht),style:Vt,size:pt,shape:ct,loading:vn||Sn},Kt),tn)},Et={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Lt=({className:Ve,style:Ft,children:Ht=null,onClick:Vt,title:tn})=>b.createElement("div",{className:ke()(Et.head,Ve),style:Ft},b.createElement("span",{className:"primary-hover",onClick:Vt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:tn},tn),b.createElement("div",{className:Et.node},Ht)),qt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},nn=({confirmShow:Ve=!0,confirmTitle:Ft,confirmClick:Ht,cancelShow:Vt=!0,cancelTitle:tn,cancelClick:Sn,className:mn,style:lt,confirmLoading:pt=!1})=>b.createElement("div",{className:ke()(qt.btns,mn),style:lt},Ve&&b.createElement(et.ZP,{loading:pt,onClick:Ht,type:"primary",className:qt.confirm},Ft),Vt&&b.createElement(et.ZP,{onClick:Sn,className:qt.cancel},tn)),bt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},An=({className:Ve,style:Ft={},LeftContent:Ht,children:Vt,RightContent:tn})=>b.createElement("div",{className:ke()(bt.fixedBottom,Ve),style:Ft},b.createElement("div",{className:bt.wrap},b.createElement("div",{className:bt.left},Ht),b.createElement("div",{className:bt.center},Vt),b.createElement("div",{className:bt.right},tn))),Zt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Nn=({className:Ve,style:Ft={},dataSource:Ht=[]})=>b.createElement("div",{className:ke()(Zt.crumbs,Ve),style:Ft},Ht.map((Vt,tn)=>tn<Ht.length-1?b.createElement(b.Fragment,{key:tn},Vt.path||Vt.onClick?b.createElement("span",{className:Zt.hover,onClick:Vt!=null&&Vt.onClick?Vt.onClick:()=>Xt.history.push(Vt.path)},Vt.name):b.createElement("span",null,Vt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:tn,style:{color:"#5F6368"}},Vt.name))),zn=ae(31797),Wn=Object.defineProperty,Yn=Object.defineProperties,xa=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Zn=(Ve,Ft,Ht)=>Ft in Ve?Wn(Ve,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ve[Ft]=Ht,xn=(Ve,Ft)=>{for(var Ht in Ft||(Ft={}))en.call(Ft,Ht)&&Zn(Ve,Ht,Ft[Ht]);if(ln)for(var Ht of ln(Ft))pn.call(Ft,Ht)&&Zn(Ve,Ht,Ft[Ht]);return Ve},La=(Ve,Ft)=>Yn(Ve,xa(Ft)),Wa=(Ve,Ft)=>{var Ht={};for(var Vt in Ve)en.call(Ve,Vt)&&Ft.indexOf(Vt)<0&&(Ht[Vt]=Ve[Vt]);if(Ve!=null&&ln)for(var Vt of ln(Ve))Ft.indexOf(Vt)<0&&pn.call(Ve,Vt)&&(Ht[Vt]=Ve[Vt]);return Ht};const{Countdown:ta}=zn.default;var Oa=Ve=>{var Ft=Ve,{onChange:Ht}=Ft,Vt=Wa(Ft,["onChange"]);const[tn,Sn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof tn=="number"&&tn>=0&&Ht(tn)},[tn]);const mn=lt=>{const pt=Math.floor(lt/1e3);Sn(pt)};return b.createElement(ta,La(xn({},Vt),{onChange:mn}))}},91300:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return se}});var b=ae(59301);function se(be,Ae){const Ie=(0,b.useRef)();(0,b.useEffect)(()=>{Ie.current=be}),(0,b.useEffect)(()=>{function Oe(){Ie.current()}if(Ae!==null){let ue=setInterval(Oe,Ae);return()=>clearInterval(ue)}},[Ae])}},38600:function(_t,Ot,ae){"use strict";ae.d(Ot,{h:function(){return b}});var b=(se=>(se[se.NOMATCH=-1]="NOMATCH",se[se.OK=0]="OK",se[se.TIMEOUT=2]="TIMEOUT",se[se.PODFAILURE=3]="PODFAILURE",se[se.COMPILEFAILURE=4]="COMPILEFAILURE",se[se.EXECUTEFAILURE=5]="EXECUTEFAILURE",se[se.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",se))(b||{})},22267:function(_t,Ot,ae){"use strict";ae.d(Ot,{H7:function(){return E},MK:function(){return le},MU:function(){return Te},X6:function(){return Ze},bM:function(){return We},fi:function(){return a},fu:function(){return ke},n4:function(){return x},rX:function(){return De},vl:function(){return y},zO:function(){return He}});var b=ae(70635),se=Object.defineProperty,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Oe=(z,te,re)=>te in z?se(z,te,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[te]=re,ue=(z,te)=>{for(var re in te||(te={}))Ae.call(te,re)&&Oe(z,re,te[re]);if(be)for(var re of be(te))Ie.call(te,re)&&Oe(z,re,te[re]);return z};function ke(z,te){return(0,b.U2)(`myproblems/${z}.json`,ue({hidePopLogin:!0},te||{}))}function We(z,te){return(0,b.v_)(`myproblems/${z}/code_submit.json`,te)}function Te(z,te){return(0,b.v_)(`myproblems/${z}/code_debug.json`,te)}function He(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,te)}function Ze(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function De(z,te){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:te})}function le(z,te){return(0,b.v_)(`myproblems/${z}/add_notes.json`,te)}function E(z,te){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,te)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,te){return(0,b.v_)(`myproblems/${z}/update_code.json`,te)}function y(z,te){return(0,b.v_)(`discusses/${z}/plus.json`,te)}},83783:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ji}});var b=ae(59301),se={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI"},be=ae(78241),Ae=ae(6848),Ie=ae(3113),Oe=ae(43418),ue=ae(5871),ke=ae(8591),We=ae(92832),Te=ae(28103),He=ae(24905),Ze=ae(95237),De=ae(43604),le=ae(58421),E=ae(60324),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ze,at,mt)=>at in ze?a(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,re=(ze,at)=>{for(var mt in at||(at={}))y.call(at,mt)&&te(ze,mt,at[mt]);if(x)for(var mt of x(at))z.call(at,mt)&&te(ze,mt,at[mt]);return ze};const ie=ze=>React.createElement("svg",re({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",pe=ae(25711),ge=ae(42203),Ee=ae(58130),ye=ae(70635),Re=Object.defineProperty,he=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ot=(ze,at,mt)=>at in ze?Re(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,Le=(ze,at)=>{for(var mt in at||(at={}))qe.call(at,mt)&&ot(ze,mt,at[mt]);if(he)for(var mt of he(at))je.call(at,mt)&&ot(ze,mt,at[mt]);return ze};const Je=ze=>React.createElement("svg",Le({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var st="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Ke=Object.defineProperty,$e=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,jt=(ze,at,mt)=>at in ze?Ke(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,Xt=(ze,at)=>{for(var mt in at||(at={}))Wt.call(at,mt)&&jt(ze,mt,at[mt]);if($e)for(var mt of $e(at))it.call(at,mt)&&jt(ze,mt,at[mt]);return ze};const Qe=ze=>React.createElement("svg",Xt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},ze),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",Dt=ae(13021),rn=ae(23469),Pt=ae(49985),Jt=ae(86377),Be={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},Ut=ae(59301),En=Object.defineProperty,Ct=Object.defineProperties,It=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ve=(ze,at,mt)=>at in ze?En(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,tt=(ze,at)=>{for(var mt in at||(at={}))Ue.call(at,mt)&&ve(ze,mt,at[mt]);if(et)for(var mt of et(at))Fe.call(at,mt)&&ve(ze,mt,at[mt]);return ze},At=(ze,at)=>Ct(ze,It(at)),we=(ze,at)=>{var mt={};for(var xt in ze)Ue.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&et)for(var xt of et(ze))at.indexOf(xt)<0&&Fe.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Ce=null,vt=(ze,at)=>{var mt=ze,{globalSetting:xt,loading:fn,dispatch:On,isEdit:Xn,editData:Hn}=mt,Tn=we(mt,["globalSetting","loading","dispatch","isEdit","editData"]);const[un,Gn]=(0,b.useState)(""),[da,qa]=(0,b.useState)(""),[Ya,Qn]=(0,b.useState)([]),[Vn,Ln]=(0,b.useState)(""),[jn,Fa]=(0,b.useState)(),[rr,ba]=(0,b.useState)(!1),[aa,fa]=(0,b.useState)({}),[ra,va]=(0,b.useState)([]);(0,b.useEffect)(()=>{!Hn||!Xn||(Gn(Hn==null?void 0:Hn.name),qa(Hn==null?void 0:Hn.analysis),Fa(Hn==null?void 0:Hn.is_ordered),fa(Hn),ba(!0))},[Hn]),(0,b.useEffect)(()=>{if(!rr)return;const Nr=Hn==null?void 0:Hn.standard_answer.map(po=>po==null?void 0:po.answer_text);Qn(Nr);const Co=Hn==null?void 0:Hn.standard_answer.map(po=>po==null?void 0:po.score);va(Co),ba(!1)},[rr]),(0,b.useImperativeHandle)(at,()=>({onSave:Ir,Clear:lo}));const Ir=()=>{let Nr=[],Co=!1;return un?(Ya.forEach((po,Do)=>{Nr.push({position:Do+1,answer_text:[],score:ra[Do]}),po==null||po.forEach((ui,gl)=>{Nr[Do].answer_text.push(ui),(!ui||!(0,Ee.eR)(ui,1e4))&&(Ln(`${Do}-${gl}`),ke.ZP.info(ui?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Co=!0)})}),Co?!1:(Nr==null?void 0:Nr.length)>20?(ke.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:un,analysis:da,standard_answers:Nr,is_ordered:jn,downcase:aa==null?void 0:aa.downcase,no_space:aa==null?void 0:aa.no_space,use_blank_score:aa==null?void 0:aa.use_blank_score}):(ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},lo=()=>{Gn(""),qa(""),Qn([]),Fa(!1)},Fo=(Nr,Co,po)=>{const Do=Ya.slice();if(Co&&Do.splice(Nr,Co),po)for(let ui=0;ui<po;ui++)Do.splice(Nr+ui,0,[""]);Qn(Do)},qo=(Nr,Co,po)=>{Ln("");let Do=Ya.slice();Do[Nr][Co]=po,Qn(Do)},er=Nr=>{let Co=Ya.slice();Co[Nr]=[...Co[Nr],""],Qn(Co)},mi=(Nr,Co)=>{let po=Ya.slice();if(!po[Nr][Co]){po[Nr]=po[Nr].filter((Do,ui)=>ui!==Co),Qn(po);return}Oe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.modal,onOk:()=>{po[Nr]=po[Nr].filter((Do,ui)=>ui!==Co),Qn(po)}})},fi=Nr=>{Oe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.modal,onOk:()=>{let Co=Ya.slice();Co=Ya.filter((po,Do)=>Nr!==Do),Qn(Co)}})};return Ut.createElement("section",{className:Be.wrap},Ut.createElement("p",{className:Be.titleWrap},Ut.createElement("span",{className:Be.required},"*"),Ut.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),Ut.createElement("div",null,Ut.createElement(Pt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:un,onChange:Nr=>Gn(Nr),showNullButton:!0,onPlaceholderChange:Fo})),Ut.createElement("div",{className:"mt20"},Ya.map((Nr,Co)=>Ut.createElement("div",{style:{display:"flex"}},Ut.createElement("div",{style:{flex:1}},Ut.createElement(Jt.Z,{key:Co,answers:Nr,index:Co,flex:1,is_md:!0,activeOptionErrorIndex:Vn,onAnswerChange:qo,addChildAnswer:er,deleteChildAnswer:mi,deleteChildAnswermain:fi})),aa.use_blank_score&&Ut.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},Ut.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",Ut.createElement(ue.Z,{style:{width:"100px"},size:"large",defaultValue:ra[Co],onBlur:po=>{ra[Co]=po.target.value,va([...ra])}}))))),Ut.createElement("div",null,Ut.createElement(He.default,{className:`${Be.color333} font14 mt20`,checked:aa.use_blank_score,onChange:Nr=>fa(At(tt({},aa),{use_blank_score:Nr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),Ut.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),Ut.createElement("div",null,Ut.createElement(He.default,{className:`${Be.color333} font14 mt20`,checked:aa.downcase,onChange:Nr=>fa(At(tt({},aa),{downcase:Nr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ut.createElement("div",null,Ut.createElement(He.default,{className:`${Be.color333} font14 mt20`,checked:aa.no_space,onChange:Nr=>fa(At(tt({},aa),{no_space:Nr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),Ut.createElement("div",{className:"mt20"},(Ya==null?void 0:Ya.length)>1&&Ut.createElement("span",null,Ut.createElement(He.default,{checked:jn,onChange:Nr=>Fa(Nr.target.checked),className:`${Be.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),Ut.createElement("span",{className:`${Be.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),Ut.createElement("p",{className:Be.titleWrap},Ut.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Ut.createElement(rn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:da,onChange:Nr=>qa(Nr)}))};var Ye=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(vt)),_e=ae(5112),Et=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,qt=(ze,at)=>{var mt={};for(var xt in ze)cn.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Et)for(var xt of Et(ze))at.indexOf(xt)<0&&Lt.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Yt=null,nn=(ze,at)=>{var mt=ze,{globalSetting:xt,loading:fn,editData:On,dispatch:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=qt(mt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Gn,da]=(0,b.useState)(),[qa,Ya]=(0,b.useState)(""),[Qn,Vn]=(0,b.useState)("");(0,b.useEffect)(()=>{if(!On||!Tn)return;Ya(On==null?void 0:On.name),Vn(On==null?void 0:On.analysis);const Fa=On==null?void 0:On.choices.find(rr=>rr.is_answer);da(Fa.choice_text==="\u6B63\u786E"?"0":"1")},[On]),(0,b.useImperativeHandle)(at,()=>({onSave:Ln,Clear:jn}));const Ln=()=>qa?Gn?{name:qa,choices:[{choice_text:"\u6B63\u786E",is_answer:Gn==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Gn==="1"?1:0}],analysis:Qn}:(ke.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),jn=()=>{Ya(""),Vn(""),da("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(rn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qa,onChange:Fa=>Ya(Fa)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),b.createElement(_e.ZP.Group,{buttonStyle:"solid",value:Gn,onChange:Fa=>da(Fa.target.value)},b.createElement(_e.ZP.Button,{value:"0",className:`${Be.radio} mr40`},"\u6B63\u786E"),b.createElement(_e.ZP.Button,{value:"1",className:Be.radio},"\u9519\u8BEF")),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(rn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Qn,onChange:Fa=>Vn(Fa)}))};var bt=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(nn)),on=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,wt=(ze,at)=>{var mt={};for(var xt in ze)An.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&on)for(var xt of on(ze))at.indexOf(xt)<0&&Zt.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Nn=null,zn=(ze,at)=>{var mt=ze,{globalSetting:xt,loading:fn,editData:On,dispatch:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=wt(mt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Gn,da]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Vn;if(!On||!Tn)return;const Ln=(Vn=On==null?void 0:On.shixun)==null?void 0:Vn.challenges.map(jn=>({id:jn==null?void 0:jn.id,score:jn.score}));da(Ln)},[On]),(0,b.useImperativeHandle)(at,()=>({onSave:qa,Clear:Ya}));const qa=()=>({challenges:[...Gn]}),Ya=()=>{da([])};console.log("editData--",On);const Qn=Vn=>{var Ln,jn;return b.createElement("div",null,(jn=(Ln=Vn==null?void 0:Vn.shixun)==null?void 0:Ln.challenges)==null?void 0:jn.map((Fa,rr)=>{var ba;return b.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},b.createElement("div",null,b.createElement("span",{className:"mr5"},"\u7B2C",rr+1,"\u5173"),b.createElement(Ae.Z,{key:rr,title:Fa==null?void 0:Fa.challenge_name},b.createElement("span",null,(0,Ee.Pq)(Fa==null?void 0:Fa.challenge_name,44)))),b.createElement("p",{style:{marginBottom:0}},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u5206\u503C\uFF1A"),b.createElement(ue.Z,{precision:1,min:1,max:100,className:Be.baseFormItem,style:{width:176},value:(ba=Gn.find(aa=>aa.id===Fa.id))==null?void 0:ba.score,onChange:aa=>{Gn.find(fa=>fa.id===Fa.id).score=aa,da([...Gn])}})))}),b.createElement("div",{style:{clear:"both"}}))};return b.createElement("section",{className:Be.wrap},b.createElement(pe.Z,{style:{paddingRight:10},className:Be.titleHtml,value:`${On==null?void 0:On.position}\u3001${On==null?void 0:On.name}`}),b.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u5173\u5361")),Qn(On))};var Wn=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(zn)),Yn=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,en=(ze,at)=>{var mt={};for(var xt in ze)xa.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Yn)for(var xt of Yn(ze))at.indexOf(xt)<0&&ln.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const pn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Zn=(ze,at)=>{var mt=ze,{editData:xt,globalSetting:fn,loading:On,dispatch:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=en(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Gn,da]=(0,b.useState)([]),[qa,Ya]=(0,b.useState)(),[Qn,Vn]=(0,b.useState)([]),[Ln,jn]=(0,b.useState)(""),[Fa,rr]=(0,b.useState)("");(0,b.useEffect)(()=>{da(["","","",""])},[]),(0,b.useEffect)(()=>{if(!xt||!Tn)return;jn(xt==null?void 0:xt.name),rr(xt==null?void 0:xt.analysis),da(xt==null?void 0:xt.choices.map(ra=>ra.choice_text));const fa=[];xt==null||xt.choices.map((ra,va)=>{ra.is_answer&&fa.push(va)}),Vn(fa)},[xt]),(0,b.useImperativeHandle)(at,()=>({onSave:ba,Clear:aa}));const ba=()=>{if(!Ln)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const fa=Gn.findIndex(va=>!va);if(fa>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${pn[fa]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Qn.length)return ke.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Qn.length<2)return ke.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const ra=Gn.map((va,Ir)=>({choice_text:va,is_answer:Qn.includes(Ir)?1:0}));return{name:Ln,choices:ra,analysis:Fa}},aa=()=>{da(["","","",""]),jn(""),rr(""),Vn("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(rn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ln,onChange:fa=>jn(fa)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Gn.map((fa,ra)=>b.createElement("div",{className:Be.choiceWrap,key:ra},b.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Be.answer} ${Qn.includes(ra)?Be.activeAnswer:""}`,onClick:()=>{Qn.includes(ra)?Vn(Qn.filter(va=>va!==ra)):Vn([...Qn,ra])}},pn[ra])),b.createElement("div",{className:Be.editorWrap},qa===ra?b.createElement(rn.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:fa,onChange:va=>{Gn[ra]=va,da(Gn)}}):b.createElement("div",{className:Be.htmlWrap,onClick:()=>Ya(ra)},b.createElement(pe.Z,{value:fa}))),ra>1&&b.createElement(Ae.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Be.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{da(Gn.filter((va,Ir)=>Ir!==ra)),Qn.includes(ra)?Vn(Qn.filter(va=>va!==ra)):Vn([...Qn,ra])}})),ra<7&&ra===Gn.length-1&&b.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Be.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>da([...Gn,""])})))),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(rn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:fa=>rr(fa)}))};var xn=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Zn)),La=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,yn=(ze,at)=>{var mt={};for(var xt in ze)Wa.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&La)for(var xt of La(ze))at.indexOf(xt)<0&&ta.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Oa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ve=(ze,at)=>{var mt=ze,{editData:xt,globalSetting:fn,loading:On,dispatch:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=yn(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Gn,da]=(0,b.useState)([]),[qa,Ya]=(0,b.useState)(),[Qn,Vn]=(0,b.useState)(),[Ln,jn]=(0,b.useState)(""),[Fa,rr]=(0,b.useState)("");(0,b.useEffect)(()=>{da(["","","",""])},[]),(0,b.useEffect)(()=>{if(!xt||!Tn)return;const fa=[],ra=[];xt==null||xt.choices.forEach((va,Ir)=>{fa.push(va.choice_text),va.is_answer&&ra.push(Ir)}),jn(xt==null?void 0:xt.name),rr(xt==null?void 0:xt.analysis),da(fa),Vn(ra)},[xt]),(0,b.useImperativeHandle)(at,()=>({onSave:ba,Clear:aa}));const ba=()=>{if(!Ln)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const fa=Gn.findIndex(va=>!va);if(fa>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Oa[fa]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Qn))return ke.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const ra=Gn.map((va,Ir)=>({choice_text:va,is_answer:Qn.includes(Ir)?1:0}));return{name:Ln,choices:ra,analysis:Fa}},aa=()=>{da(["","","",""]),jn(""),rr(""),Vn("")};return b.createElement("section",{className:Be.wrap},b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),b.createElement(rn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Ln,onChange:fa=>jn(fa)}),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.required},"*"),b.createElement("span",{className:Be.title},"\u7B54\u6848\u9009\u9879\uFF1A",b.createElement("span",{className:Be.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Gn.map((fa,ra)=>b.createElement("div",{className:Be.choiceWrap,key:ra},b.createElement(Ae.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},b.createElement("div",{className:`${Be.answer} ${Qn!=null&&Qn.includes(ra)?Be.activeAnswer:""}`,onClick:()=>Vn([ra])},Oa[ra])),b.createElement("div",{className:Be.editorWrap},qa===ra?b.createElement(rn.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:fa,onChange:va=>{Gn[ra]=va,da(Gn)}}):b.createElement("div",{className:Be.htmlWrap,onClick:()=>Ya(ra)},b.createElement(pe.Z,{value:fa}))),ra>1&&b.createElement(Ae.Z,{title:"\u5220\u9664"},b.createElement("i",{className:`${Be.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{da(Gn.filter((va,Ir)=>Ir!==ra)),ra===Qn&&Vn(null)}})),ra<7&&ra===Gn.length-1&&b.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement("i",{className:`${Be.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>da([...Gn,""])})))),b.createElement("p",{className:Be.titleWrap},b.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),b.createElement(rn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Fa,onChange:fa=>rr(fa)}))};var Ft=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(Ve)),Ht=ae(12563),Vt=ae(78673),tn=ae(61485),Sn=ae(59301),mn=Object.defineProperty,lt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,an=(ze,at,mt)=>at in ze?mn(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,kn=(ze,at)=>{for(var mt in at||(at={}))Kt.call(at,mt)&&an(ze,mt,at[mt]);if(ct)for(var mt of ct(at))vn.call(at,mt)&&an(ze,mt,at[mt]);return ze},Fn=(ze,at)=>lt(ze,pt(at)),Bn=(ze,at)=>{var mt={};for(var xt in ze)Kt.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&ct)for(var xt of ct(ze))at.indexOf(xt)<0&&vn.call(ze,xt)&&(mt[xt]=ze[xt]);return mt},Un=(ze,at,mt)=>new Promise((xt,fn)=>{var On=Tn=>{try{Hn(mt.next(Tn))}catch(un){fn(un)}},Xn=Tn=>{try{Hn(mt.throw(Tn))}catch(un){fn(un)}},Hn=Tn=>Tn.done?xt(Tn.value):Promise.resolve(Tn.value).then(On,Xn);Hn((mt=mt.apply(ze,at)).next())});const Ra=ze=>{if(!ze)return!1;if(/^s*$/.test(ze)||ze.trim()===""){ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let at=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ze==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},bn=({value:ze=[],onClose:at})=>Sn.createElement(Ht.default,{closable:!0,onClose:at,className:Be.keywordTag},Sn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ze.join(" \u6216 "))),pa=(ze,at)=>{var mt=ze,{editData:xt,globalSetting:fn,loading:On,dispatch:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=Bn(mt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Gn,da]=(0,b.useState)(""),[qa,Ya]=(0,b.useState)(""),[Qn,Vn]=(0,b.useState)(""),[Ln,jn]=(0,b.useState)(""),[Fa]=be.default.useForm(),rr=be.default.useWatch("use_keywords",Fa);(0,b.useEffect)(()=>{var ra;!xt||!Tn||(da(xt==null?void 0:xt.name),Ya(xt==null?void 0:xt.analysis),Vn((ra=xt==null?void 0:xt.answer_texts)==null?void 0:ra[0]),Fa.setFieldsValue(kn({},xt)))},[xt]),(0,b.useImperativeHandle)(at,()=>({onSave:ba,Clear:aa}));const ba=()=>Un(void 0,null,function*(){if(!Gn)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Fa.validateFields()}catch(va){ke.ZP.error(va.errorFields[0].errors[0]);return}const ra=Fa.getFieldsValue();return console.log(ra,"values"),kn({name:Gn,answer_texts:[Qn],analysis:qa},ra)}),aa=()=>{da(""),Ya(""),Vn(""),Fa.resetFields()},fa=xt==null?void 0:xt.score;return Sn.createElement("section",{className:Be.wrap},Sn.createElement("p",{className:Be.titleWrap},Sn.createElement("span",{className:Be.required},"*"),Sn.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),Sn.createElement(rn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Gn,onChange:ra=>da(ra)}),Sn.createElement("p",{className:Be.titleWrap},Sn.createElement("span",{className:Be.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Sn.createElement(rn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Qn,onChange:ra=>Vn(ra)}),Sn.createElement("p",{className:Be.titleWrap},Sn.createElement("span",{className:Be.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Sn.createElement(rn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:qa,onChange:ra=>Ya(ra)}),Sn.createElement(be.default,{form:Fa,size:"large",onFinishFailed:ra=>Un(void 0,null,function*(){var va,Ir;ke.ZP.error(ra.errorFields[0].errors[0]),Fa.scrollToField((Ir=(va=ra==null?void 0:ra.errorFields)==null?void 0:va[0])==null?void 0:Ir.name,{behavior:"smooth",block:"center"})})},Sn.createElement(Ze.Z,{align:"middle",className:"mb30 mt20"},Sn.createElement(be.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Sn.createElement(Vt.Z,null)),Sn.createElement(De.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Sn.createElement(De.Z,null,Sn.createElement(Ae.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},Sn.createElement(tn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),rr&&Sn.createElement(be.default.List,{name:"keywords",rules:[{validator(ra,va){return va!=null&&va.length?(va==null?void 0:va.reduce((lo,Fo)=>lo+Fo.score,0))>parseFloat(fa)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD"))}}]},(ra,{add:va,remove:Ir})=>Sn.createElement(Sn.Fragment,null,Sn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Sn.createElement(Ze.Z,{align:"middle",className:"font14 mb30"},Sn.createElement(De.Z,{flex:1},Sn.createElement(We.default,{value:Ln,onChange:lo=>{jn(lo.target.value)},maxLength:50,allowClear:!0,onPressEnter:lo=>{var Fo,qo,er,mi;const fi=`${(Fo=lo.target)==null?void 0:Fo.value}`,Nr=(er=(qo=fi==null?void 0:fi.split("|"))==null?void 0:qo.filter(Do=>!!Do))==null?void 0:er.map(Do=>Do==null?void 0:Do.trim()),Co=Fa.getFieldValue("keywords"),po=((mi=Co==null?void 0:Co.map(Do=>Do==null?void 0:Do.keyword))==null?void 0:mi.flat())||[];for(const Do of Nr)if(po.includes(Do)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ra(fi)&&(va({keyword:Nr,score:1}),jn(""))},className:Be.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),Sn.createElement(De.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ra.map(lo=>{var Fo=lo,{key:qo,name:er}=Fo,mi=Bn(Fo,["key","name"]);return Sn.createElement(Ze.Z,{key:qo,style:{marginRight:148}},Sn.createElement(De.Z,{flex:1},Sn.createElement(Ze.Z,{align:"middle",justify:"space-between"},Sn.createElement(be.default.Item,Fn(kn({},mi),{name:[er,"keyword"]}),Sn.createElement(bn,{onClose:()=>Ir(er)})),Sn.createElement(be.default.Item,Fn(kn({},mi),{name:[er,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Sn.createElement(ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var $a=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(pa)),lr=ae(36381),Jn={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},sn=ae(32134),Dr=ae(12893),Ga=Object.defineProperty,Er=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,qr=(ze,at,mt)=>at in ze?Ga(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,_o=(ze,at)=>{for(var mt in at||(at={}))xr.call(at,mt)&&qr(ze,mt,at[mt]);if(Lr)for(var mt of Lr(at))so.call(at,mt)&&qr(ze,mt,at[mt]);return ze},Mn=(ze,at)=>Er(ze,Cr(at)),Mr=(ze,at)=>{var mt={};for(var xt in ze)xr.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Lr)for(var xt of Lr(ze))at.indexOf(xt)<0&&so.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Rr=ze=>{var at=ze,{value:mt,onChange:xt,scrollId:fn}=at,On=Mr(at,["value","onChange","scrollId"]);return b.createElement("div",{id:fn||""},b.createElement(rn.Z,Mn(_o({},On),{defaultValue:mt,onChange:(Xn,Hn)=>{Hn!=null&&Hn.length?xt(Xn,Hn):xt(Xn)}})))},Gr=({value:ze,onChange:at,placeholder:mt,height:xt=140,isEdit:fn})=>fn?b.createElement(rn.Z,{watch:!0,isFocus:!0,height:xt,placeholder:mt,defaultValue:ze,onChange:at}):b.createElement("div",{style:{cursor:"pointer"}},ze?b.createElement(pe.Z,{className:Jn.inputBorder,value:ze}):b.createElement("div",{className:`${Jn.inputBorder} ${Jn.placeholder}`},mt));var za=ae(59301),$n=Object.defineProperty,Aa=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,oo=(ze,at,mt)=>at in ze?$n(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,Tr=(ze,at)=>{for(var mt in at||(at={}))fr.call(at,mt)&&oo(ze,mt,at[mt]);if(ga)for(var mt of ga(at))Hr.call(at,mt)&&oo(ze,mt,at[mt]);return ze},co=(ze,at)=>Aa(ze,ja(at)),ni=(ze,at)=>{var mt={};for(var xt in ze)fr.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&ga)for(var xt of ga(ze))at.indexOf(xt)<0&&Hr.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Jo=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_i=({value:ze,onChange:at,choiceTextKey:mt,answerKey:xt,index:fn,isEdit:On,setInputActive:Xn,form:Hn,choiceOptionsPath:Tn,allowChangeMode:un,showAddIcon:Gn,addItem:da,deleteItem:qa})=>{const Ya=(ze==null?void 0:ze[xt])===!0,Qn=()=>{const Ln=Hn.getFieldValue(Tn);Hn.setFieldValue(Tn,Ln.map(jn=>co(Tr({},jn),{[xt]:!1})))},Vn=()=>{Ya?at(co(Tr({},ze),{[xt]:!1})):(un||Qn(),at(co(Tr({},ze),{[xt]:!0})))};return za.createElement(Ze.Z,{className:Jn.choiceWrap,align:"middle",wrap:!1},za.createElement(De.Z,{onClick:Vn,className:`${Jn.choiceIndex} ${Ya?Jn.activeAnswer:""}`},Jo[fn]),za.createElement(De.Z,{flex:1,className:`${Jn.editorWrap} ml15`,onClick:Xn},za.createElement(Gr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:On,value:ze==null?void 0:ze[mt],onChange:Ln=>{at(co(Tr({},ze),{[mt]:Ln}))}})),za.createElement(De.Z,{flex:"0 0 auto",className:"ml15"},za.createElement("div",{onClick:Vn,className:`${Jn.setAnswerBtn} ${Ya?Jn.activeAnswer:""}`},Ya?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),za.createElement(De.Z,{className:Jn.actionWrapper},za.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},za.createElement(sn.Z,{className:Jn.addIcon,onClick:da,style:{visibility:Gn?"visible":"hidden"}})),za.createElement(Ae.Z,{title:"\u5220\u9664"},za.createElement(Dr.Z,{className:Jn.deleteIcon,onClick:qa,style:{visibility:fn>1?"visible":"hidden"}}))))},So=({questionTitlePlaceholder:ze,titleKey:at,choiceKey:mt,analysisKey:xt,choiceTextKey:fn,answerKey:On,choiceOptionsPath:Xn,allowChangeMode:Hn=!0,form:Tn,showAnalysis:un=!0})=>{const[Gn,da]=(0,b.useState)(),[qa,Ya]=(0,b.useState)(!1);return za.createElement("div",{className:Jn.wrap},za.createElement("div",{className:Jn.questionTitleEditorWrap},za.createElement(be.default.Item,{label:"\u9898\u5E72",name:at,labelCol:{span:24},rules:[{required:!0}]},za.createElement(Rr,{scrollId:Array.isArray(at)?at.join("_"):`${at}`,watch:!0,height:140,placeholder:ze}))),za.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),za.createElement(be.default.List,{name:mt,rules:[{validator(Qn,Vn){const Ln=Vn.some(Fa=>Fa[On]),jn=Vn.findIndex(Fa=>{var rr;return((rr=Fa[fn])==null?void 0:rr.length)<=0});return jn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Jo[jn]}\u9009\u9879\u7684\u5185\u5BB9`)):Ln?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Qn,{add:Vn,remove:Ln})=>za.createElement("div",{id:Array.isArray(Xn)?Xn.join("_"):`${Xn}`},Qn.map((jn,Fa)=>{var rr=jn,{key:ba,name:aa}=rr,fa=ni(rr,["key","name"]);const ra=Gn===ba,va=()=>{da(ba)},Ir=Fa<7&&Fa===Qn.length-1,lo=()=>Vn({[fn]:"",[On]:0}),Fo=()=>Ln(aa);return za.createElement(be.default.Item,co(Tr({},fa),{key:ba,name:aa,noStyle:!0}),za.createElement(_i,{choiceTextKey:fn,answerKey:On,index:Fa,isEdit:ra,setInputActive:va,form:Tn,choiceOptionsPath:Xn,allowChangeMode:Hn,showAddIcon:Ir,addItem:lo,deleteItem:Fo}))}),Qn.length<8&&za.createElement("div",{className:`${Jn.addBtn} mb30`,onClick:()=>Vn({[fn]:"",[On]:0})},"\u6DFB\u52A0\u9009\u9879"))),un&&za.createElement("div",{onClick:()=>Ya(!0)},za.createElement(be.default.Item,{name:xt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},za.createElement(Gr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:qa}))))};var Ba=ae(59301),eo=Object.defineProperty,mo=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,Po=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,$o=(ze,at,mt)=>at in ze?eo(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,Ho=(ze,at)=>{for(var mt in at||(at={}))xo.call(at,mt)&&$o(ze,mt,at[mt]);if(Po)for(var mt of Po(at))oi.call(at,mt)&&$o(ze,mt,at[mt]);return ze},Ci=(ze,at)=>mo(ze,Ro(at)),Uo=(ze,at)=>{var mt={};for(var xt in ze)xo.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Po)for(var xt of Po(ze))at.indexOf(xt)<0&&oi.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Eo=({value:ze,onChange:at})=>{const mt=fn=>{Oe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Jn.modal,onOk:()=>{const On=[...ze];On.splice(fn,1),at(On)}})},xt=()=>{const fn=[...ze];fn.push(""),at(fn)};return Ba.createElement(Ze.Z,{align:"middle",className:"ml20",gutter:[40,20]},ze==null?void 0:ze.map((fn,On)=>Ba.createElement(De.Z,{key:`${fn}_${On}`,className:Jn.blankWrapper},Ba.createElement(We.default,{className:Jn.blankInput,defaultValue:fn,maxLength:1e3,onBlur:Xn=>{const Hn=[...ze],Tn=Xn.target.value.trim();Hn[On]=Tn,at(Hn)}}),Ba.createElement(Ae.Z,{title:"\u5220\u9664"},Ba.createElement(Dr.Z,{className:Jn.deleteIcon,style:{marginLeft:15,visibility:On>0?"visible":"hidden"},onClick:()=>mt(On)})))),Ba.createElement(De.Z,null,Ba.createElement("div",{className:`${Jn.addBtn}`,onClick:()=>{xt()}},"\u65B0\u589E\u7B54\u6848")))},xi=({value:ze=!0,onChange:at})=>Ba.createElement(Vt.Z,{checked:!ze,onChange:mt=>{at(!mt)}}),yo="\u2581",Mi=({questionTitlePlaceholder:ze,form:at,name:mt,scoreByBlank:xt="use_blank_score",answerKey:fn,titleKey:On="name",analysisKey:Xn="analysis",isOrdered:Hn="is_ordered"})=>{var Tn,un;const[Gn,da]=(0,b.useState)(!1),qa=(ba,aa)=>{const fa=aa.line;let ra=0;for(let Ir=0;Ir<fa;Ir++)ra+=ba.getLine(Ir).split(yo).length-1;const va=ba.getLine(fa).substring(0,aa.ch);return ra+=va.split(yo).length-1,ra},Ya=(ba,aa,fa,ra)=>{const va=ba.getRange(aa.from,aa.to);let Ir=0;if(aa.text.forEach(lo=>{Ir+=lo.split(yo).length-1}),aa.origin!=="setValue"){if(va&&va.indexOf(yo)!==-1){const lo=va.split(yo).length-1,Fo=qa(ba,aa.from);if(console.log(`\u5220\u9664${lo}\u4E2A\uFF0C \u524D\u9762\u6709${Fo}\u4E2A\uFF0C\u65B0\u589E${Ir}\u4E2A`),lo>1){const qo=Array.from({length:lo},(er,mi)=>Fo+mi);ra(qo)}else ra(Fo)}else if(Ir>0){const lo=qa(ba,aa.from);console.log(`\u65B0\u589E${Ir}\u4E2A\uFF0C\u4E4B\u524D\u6709${lo}\u4E2A`),fa(Ir,lo)}}},Qn=()=>{const ba=at.getFieldValue(["sub_item_banks",...fn]);at.setFieldValue(["sub_item_banks",...fn],ba==null?void 0:ba.map((aa,fa)=>Ci(Ho({},aa),{position:fa+1})))},Vn=(0,b.useRef)(),Ln=(ba,aa)=>{for(let fa=0;fa<ba;fa++)Vn.current({position:null,answer_text:[""]},aa+fa);Qn()},jn=(0,b.useRef)(),Fa=ba=>{jn.current(ba),Qn()},rr=(un=(Tn=at.getFieldValue("sub_item_banks"))==null?void 0:Tn[fn==null?void 0:fn[0]])==null?void 0:un[fn==null?void 0:fn[1]];return Ba.createElement("div",{className:Jn.wrap},Ba.createElement("div",{className:Jn.questionTitleEditorWrap},Ba.createElement(be.default.Item,{label:"\u9898\u5E72",name:On,labelCol:{span:24},rules:[{required:!0}]},Ba.createElement(Rr,{scrollId:"name",watch:!0,height:140,placeholder:ze,showNullButton:!0,onCMBeforeChange:(ba,aa)=>{Ya(ba,aa,Ln,Fa)}}))),Ba.createElement(be.default.List,{name:fn,rules:[{validator(ba,aa){if((aa==null?void 0:aa.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const fa of aa){const{answer_text:ra}=fa||{};if(ra!=null&&ra.some(va=>(va==null?void 0:va.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(ba,{add:aa,remove:fa},{errors:ra})=>(Vn.current=aa,jn.current=fa,Ba.createElement(Ba.Fragment,null,Ba.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ba.map((va,Ir)=>{var lo=va,{key:Fo,name:qo}=lo,er=Uo(lo,["key","name"]);return Ba.createElement(Ze.Z,{className:"mb20",key:Fo,align:"middle",wrap:!1},Ba.createElement(De.Z,{flex:"0 0 auto",className:`${Jn.blankIndex}`},"\u586B\u7A7A\u9879",Ir+1),Ba.createElement(De.Z,{flex:1},Ba.createElement(Ze.Z,{align:"top",justify:"space-between",wrap:!1},Ba.createElement(De.Z,null,Ba.createElement(be.default.Item,Ci(Ho({},er),{name:[qo,"answer_text"],noStyle:!0}),Ba.createElement(Eo,null))),(at==null?void 0:at.getFieldValue(["sub_item_banks",...xt]))&&Ba.createElement(De.Z,{flex:"224px"},Ba.createElement(be.default.Item,Ci(Ho({},er),{name:[qo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jn.blankInputNumberWrapper}),Ba.createElement(ue.Z,{className:Jn.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Ba.createElement(be.default.Item,Ci(Ho({},er),{name:[qo,"position"],noStyle:!0}),Ba.createElement(We.default,{type:"hidden"}))))})))),Ba.createElement(Ze.Z,{align:"middle"},Ba.createElement(be.default.Item,{name:[mt,"downcase"],valuePropName:"checked"},Ba.createElement(Vt.Z,null)),Ba.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ba.createElement(Ze.Z,{align:"middle"},Ba.createElement(be.default.Item,{name:[mt,"no_space"],valuePropName:"checked"},Ba.createElement(Vt.Z,null)),Ba.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(rr==null?void 0:rr.length)>1&&Ba.createElement(Ze.Z,{align:"middle",className:(rr==null?void 0:rr.length)>1?"mb30":`${Jn.hide}`},Ba.createElement(be.default.Item,{name:Hn},Ba.createElement(xi,null)),Ba.createElement(De.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Ba.createElement("div",{onClick:()=>da(!0)},Ba.createElement(be.default.Item,{name:Xn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ba.createElement(Gr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Gn}))))};var ai=Object.defineProperty,Wi=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,pl=(ze,at,mt)=>at in ze?ai(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,$i=(ze,at)=>{for(var mt in at||(at={}))Yo.call(at,mt)&&pl(ze,mt,at[mt]);if(Ti)for(var mt of Ti(at))Ki.call(at,mt)&&pl(ze,mt,at[mt]);return ze},Yi=(ze,at)=>Wi(ze,Di(at)),Ur=(ze,at)=>{var mt={};for(var xt in ze)Yo.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Ti)for(var xt of Ti(ze))at.indexOf(xt)<0&&Ki.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const Ta={\u6B63\u786E:"T",\u9519\u8BEF:"F"},na=({value:ze,onChange:at,form:mt,choiceKey:xt})=>{const fn=(ze==null?void 0:ze.is_answer)===!0,On=ze==null?void 0:ze.choice_text,Xn=()=>{var Hn;const Tn=(Hn=mt==null?void 0:mt.getFieldValue(["sub_item_banks",...xt]))==null?void 0:Hn.map(un=>({choice_text:un==null?void 0:un.choice_text,is_answer:!1}));mt==null||mt.setFieldValue(["sub_item_banks",...xt],Tn),at(Yi($i({},ze),{is_answer:!0}))};return b.createElement(Ze.Z,{className:Jn.choiceWrap,align:"middle",wrap:!1},b.createElement(De.Z,{onClick:Xn,className:`${Jn.choiceIndex} ${Jn.judgementIndex} ${fn?Jn.activeAnswer:""}`},Ta[On]),b.createElement(De.Z,{flex:1,className:`${Jn.editorWrap} ml15`},b.createElement("div",{className:`${Jn.inputBorder} ${Jn.placeholder} ${fn?Jn.activeJudgementAnswer:""}`},On)),b.createElement(De.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Xn,className:`${Jn.setAnswerBtn} ${fn?Jn.activeAnswer:""}`},fn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ia=({questionTitlePlaceholder:ze,choiceKey:at="choices",form:mt,titleKey:xt="name",analysisKey:fn="analysis"})=>{const[On,Xn]=(0,b.useState)(!1);return b.createElement("div",{className:Jn.wrap},b.createElement("div",{className:Jn.questionTitleEditorWrap},b.createElement(be.default.Item,{label:"\u9898\u5E72",name:xt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Rr,{scrollId:"name",watch:!0,height:140,placeholder:ze}))),b.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(be.default.List,{name:at,rules:[{validator(Hn,Tn){return Tn.some(Gn=>(Gn==null?void 0:Gn.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Hn=>b.createElement("div",{id:"choices"},Hn.map(Tn=>{var un=Tn,{key:Gn,name:da}=un,qa=Ur(un,["key","name"]);return b.createElement(be.default.Item,Yi($i({},qa),{key:Gn,name:da,noStyle:!0}),b.createElement(na,{form:mt,choiceKey:at}))})))),b.createElement("div",{onClick:()=>Xn(!0)},b.createElement(be.default.Item,{name:fn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Gr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))))};var Pa=Object.defineProperty,hr=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,Bo=(ze,at,mt)=>at in ze?Pa(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,ka=(ze,at)=>{for(var mt in at||(at={}))fo.call(at,mt)&&Bo(ze,mt,at[mt]);if(no)for(var mt of no(at))wo.call(at,mt)&&Bo(ze,mt,at[mt]);return ze},zo=(ze,at)=>hr(ze,_r(at)),Bi=(ze,at)=>{var mt={};for(var xt in ze)fo.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&no)for(var xt of no(ze))at.indexOf(xt)<0&&wo.call(ze,xt)&&(mt[xt]=ze[xt]);return mt};const si=ze=>{var at=ze,{value:mt,onChange:xt}=at,fn=Bi(at,["value","onChange"]);const On=Xn=>{xt([Xn])};return b.createElement(rn.Z,zo(ka({},fn),{defaultValue:mt==null?void 0:mt[0],onChange:On}))},ki=ze=>{if(!ze)return!1;let at=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ze==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Zi=({value:ze=[],onClose:at})=>b.createElement(Ht.default,{closable:!0,onClose:at,className:Jn.keywordTag},ze==null?void 0:ze.join(" \u6216 ")),zi=({questionTitlePlaceholder:ze,form:at,showKeywords:mt,isMustKeyWords:xt=mt,titleKey:fn="name",analysisKey:On="analysis",answerTexts:Xn="answer_texts",keywords:Hn="keywords",useKeywords:Tn="use_keywords",indexs:un})=>{const[Gn,da]=(0,b.useState)(!1),[qa,Ya]=(0,b.useState)(""),Qn=be.default.useWatch("sub_item_banks",at),{use_keywords:Vn,score:Ln}=(Qn==null?void 0:Qn[un])||{};return console.log(Vn,Ln,"itemValues"),b.createElement("div",{className:Jn.wrap},b.createElement("div",{className:Jn.questionTitleEditorWrap},b.createElement(be.default.Item,{label:"\u9898\u5E72",name:fn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Rr,{scrollId:"name",watch:!0,height:140,placeholder:ze}))),b.createElement(be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Xn,labelCol:{span:24}},b.createElement(si,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),mt&&!xt&&b.createElement(be.default.Item,{hidden:!0,name:Tn,valuePropName:"checked"},b.createElement(Vt.Z,{defaultChecked:!0})),mt&&xt&&b.createElement(Ze.Z,{align:"middle",className:"mb30"},b.createElement(be.default.Item,{name:Tn,valuePropName:"checked"},b.createElement(Vt.Z,null)),b.createElement(De.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(De.Z,null,b.createElement(Ae.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(tn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Vn||!xt)&&b.createElement(be.default.List,{name:Hn,rules:[{validator(jn,Fa){return xt?Fa!=null&&Fa.length?(Fa==null?void 0:Fa.reduce((ba,aa)=>ba+aa.score,0))>parseFloat(Ln)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(jn,{add:Fa,remove:rr})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Jn.title} mb10`},xt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ze.Z,{align:"middle",className:"font14 mb30"},b.createElement(De.Z,{flex:1},b.createElement(We.default,{value:qa,onChange:ba=>{Ya(ba.target.value)},maxLength:50,allowClear:!0,onPressEnter:ba=>{var aa,fa,ra,va;const Ir=`${(aa=ba.target)==null?void 0:aa.value}`,lo=(ra=(fa=Ir==null?void 0:Ir.split("|"))==null?void 0:fa.filter(er=>!!er))==null?void 0:ra.map(er=>er==null?void 0:er.trim()),Fo=at.getFieldValue(["sub_item_banks",...Hn]),qo=((va=Fo==null?void 0:Fo.map(er=>er==null?void 0:er.keyword))==null?void 0:va.flat())||[];for(const er of lo)if(qo.includes(er)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ki(Ir)&&(Fa({keyword:lo,score:1}),Ya(""))},className:Jn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(De.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),jn.map(ba=>{var aa=ba,{key:fa,name:ra}=aa,va=Bi(aa,["key","name"]);return b.createElement(Ze.Z,{key:fa,className:"mb20",style:{marginRight:148}},b.createElement(De.Z,{flex:1},b.createElement(Ze.Z,{align:"middle",justify:"space-between"},b.createElement(be.default.Item,zo(ka({},va),{name:[ra,"keyword"]}),b.createElement(Zi,{onClose:()=>rr(ra)})),xt&&b.createElement(be.default.Item,zo(ka({},va),{name:[ra,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jn.blankInputNumberWrapper}),b.createElement(ue.Z,{className:Jn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>da(!0)},b.createElement(be.default.Item,{name:On,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Gr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Gn}))))};var Wr=ae(59301),Xo=Object.defineProperty,ol=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable,Mo=(ze,at,mt)=>at in ze?Xo(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,qi=(ze,at)=>{for(var mt in at||(at={}))il.call(at,mt)&&Mo(ze,mt,at[mt]);if(Ui)for(var mt of Ui(at))Xi.call(at,mt)&&Mo(ze,mt,at[mt]);return ze},el=(ze,at)=>ol(ze,vi(at)),ll=(ze,at)=>{var mt={};for(var xt in ze)il.call(ze,xt)&&at.indexOf(xt)<0&&(mt[xt]=ze[xt]);if(ze!=null&&Ui)for(var xt of Ui(ze))at.indexOf(xt)<0&&Xi.call(ze,xt)&&(mt[xt]=ze[xt]);return mt},ul=(ze,at,mt)=>new Promise((xt,fn)=>{var On=Tn=>{try{Hn(mt.next(Tn))}catch(un){fn(un)}},Xn=Tn=>{try{Hn(mt.throw(Tn))}catch(un){fn(un)}},Hn=Tn=>Tn.done?xt(Tn.value):Promise.resolve(Tn.value).then(On,Xn);Hn((mt=mt.apply(ze,at)).next())});const{Panel:Rl}=lr.default,ql=null,_l=(ze,at)=>{var mt=ze,{globalSetting:xt,loading:fn,dispatch:On,editData:Xn,onRef:Hn=()=>{},isEdit:Tn}=mt,un=ll(mt,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Gn,da]=(0,b.useState)(""),[qa,Ya]=(0,b.useState)([]),[Qn]=be.default.useForm();(0,b.useEffect)(()=>{!Xn||!Tn||(da(Xn==null?void 0:Xn.name),Ya(Xn==null?void 0:Xn.sub_item_banks),Qn.setFieldsValue(qi({},Xn)))},[Xn]),(0,b.useEffect)(()=>{Ya(Qn.getFieldValue("sub_item_banks"))},[be.default.useWatch("sub_item_banks",Qn)]),(0,b.useImperativeHandle)(at,()=>({onSave:Vn,Clear:Ln}));const Vn=()=>ul(void 0,null,function*(){if(!Gn)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Qn.validateFields()}catch(fa){return console.log(fa,"errInfo"),ke.ZP.error(fa.errorFields[0].errors[0]),!1}const aa=qa.map(fa=>qi({id:fa.id>1?fa.id:null},fa));return{name:Gn,sub_item_banks:aa}}),Ln=()=>{da(""),Ya([])},jn={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Fa=({value:aa})=>Wr.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},aa),[rr,ba]=(0,b.useState)();return Wr.createElement("section",{className:Be.wrap},Wr.createElement("p",{className:Be.titleWrap},Wr.createElement("span",{className:Be.required},"*"),Wr.createElement("span",{className:Be.title},"\u9898\u5E72\uFF1A")),Wr.createElement(rn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Gn,onChange:aa=>da(aa)}),Wr.createElement(be.default,{form:Qn,autoComplete:"off"},Wr.createElement(be.default.List,{name:"sub_item_banks",rules:[{validator(aa,fa){return fa?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(aa,{add:fa,remove:ra})=>{const va=Qn.getFieldValue("sub_item_banks");return Wr.createElement(Wr.Fragment,null,Wr.createElement(lr.default,{className:aa.length>0?Be.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Ir})=>Wr.createElement("i",{className:`iconfont icon-weizhankai ${Ir?Be.open:Be.close}`,style:{fontSize:14,transition:"all .2s"}})},aa.map((Ir,lo)=>{var Fo=Ir,{key:qo,name:er}=Fo,mi=ll(Fo,["key","name"]),fi,Nr,Co,po,Do,ui,gl,Ml,wl,Hl,Tl,Wl;return Wr.createElement(Rl,{className:Be.panel,forceRender:!0,header:Wr.createElement("div",{className:Be.panelHeader},"\u7B2C",lo+1,"\u5C0F\u9898",Wr.createElement("span",null,"\uFF08",jn[(fi=va==null?void 0:va[er])==null?void 0:fi.item_type],"\uFF09")),extra:Wr.createElement(Ze.Z,{align:"middle",onClick:vl=>vl.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Nr=va==null?void 0:va[er])==null?void 0:Nr.item_type)=="completion"&&Wr.createElement(be.default.Item,el(qi({},mi),{name:[er,"score"],className:Be.blankInputNumberWrapper,style:{marginBottom:0}}),((Co=va==null?void 0:va[er])==null?void 0:Co.item_type)=="completion"&&Wr.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",Wr.createElement(Fa,{value:(po=va==null?void 0:va[er])==null?void 0:po.score}),"\u5206")),((Do=va==null?void 0:va[er])==null?void 0:Do.item_type)=="completion"&&Wr.createElement(Wr.Fragment,null,Wr.createElement(_e.ZP.Group,{defaultValue:(ui=va==null?void 0:va[er])==null?void 0:ui.use_blank_score,className:Be.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:vl=>{var Dl;console.log(Qn.getFieldsValue()),Qn==null||Qn.setFieldValue(["sub_item_banks",er,"use_blank_score"],(Dl=vl==null?void 0:vl.target)==null?void 0:Dl.value),ba(new Date)}}),Wr.createElement(Ae.Z,{overlayInnerStyle:{width:460},title:Wr.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Wr.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Wr.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:qo},Wr.createElement(be.default.Item,el(qi({},mi),{name:er}),(((gl=va==null?void 0:va[er])==null?void 0:gl.item_type)=="single"||((Ml=va==null?void 0:va[er])==null?void 0:Ml.item_type)=="multiple")&&Wr.createElement(So,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((wl=va==null?void 0:va[er])==null?void 0:wl.item_type)!="single",form:Qn,choiceKey:[er,"choices"],titleKey:[er,"name"],analysisKey:[er,"analysis"],choiceOptionsPath:["sub_item_banks",er,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Hl=va==null?void 0:va[er])==null?void 0:Hl.item_type)=="completion"&&Wr.createElement(Mi,{form:Qn,name:er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[er,"use_blank_score"],titleKey:[er,"name"],analysisKey:[er,"analysis"],isOrdered:[er,"is_ordered"],answerKey:[er,"standard_answer"],key:rr}),((Tl=va==null?void 0:va[er])==null?void 0:Tl.item_type)=="judgement"&&Wr.createElement(ia,{form:Qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[er,"name"],analysisKey:[er,"analysis"],choiceKey:[er,"choices"]}),((Wl=va==null?void 0:va[er])==null?void 0:Wl.item_type)=="subjective"&&Wr.createElement(zi,{showKeywords:!0,form:Qn,titleKey:[er,"name"],analysisKey:[er,"analysis"],answerTexts:[er,"answer_texts"],useKeywords:[er,"use_keywords"],keywords:[er,"keywords"],indexs:er,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ri=(0,ge.connect)(({loading:ze,globalSetting:at})=>({globalSetting:at,loading:ze.effects}),null,null,{forwardRef:!0})((0,b.forwardRef)(_l)),Fl=ae(88477),tl=ae(19842),Al=ae(57809),Gl=ae(1710),gt={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},ht=ae(78258),zt=ae(38644),wn=ae(16597),Dn=ae(35427),Pn=ae(97267),hn=ae(72194),dn=({open:ze,onCancel:at,onOk:mt})=>{const xt=(0,zt.g)(),[fn,On,Xn,Hn]=(0,Dn.U)(wn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Tn,un]=(0,b.useState)(!1);(0,b.useEffect)(()=>{ze&&Xn({page:1,limit:10,type:0},!0).then(Qn=>{(Qn==null?void 0:Qn.shixuns_count)===0&&un(!0)})},[ze]);const[Gn,da]=(0,b.useState)([]),[qa,Ya]=(0,b.useState)([]);return b.createElement(Oe.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:ze,width:948,centered:!0,closable:!0,onCancel:at,onOk:()=>mt(qa),destroyOnClose:!0},b.createElement(Ze.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(De.Z,null,b.createElement(tl.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:xt,onChange:Qn=>{Xn({page:1,discipline_id:Qn==null?void 0:Qn[0],sub_discipline_id:Qn==null?void 0:Qn[1]})}}),b.createElement(Al.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Qn=>Xn({page:1,diff:Qn})}),b.createElement(Al.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Qn=>Xn({page:1,shixun_publish_status:Qn})})),b.createElement(ht.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Qn=>{Xn({keyword:Qn,page:1})}})),Tn?b.createElement("div",null,b.createElement(Pn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Ee.xg)("/shixuns")})):b.createElement(Gl.default,{loading:On,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Qn,Vn)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:Vn!=null&&Vn.high_resources_consume?gt.title:"",title:Qn||"--"},b.createElement(pe.Z,{key:1,showLines:1,showTextOnly:!0,value:Qn||"--"})),(Vn==null?void 0:Vn.high_resources_consume)&&b.createElement(hn.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Qn,Vn,Ln)=>b.createElement("span",null,Qn||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:b.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",b.createElement(Ae.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},b.createElement(tn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Qn,Vn,Ln)=>b.createElement("span",null,Qn||"- -")},{title:"\u64CD\u4F5C",render(Qn,Vn){const{title:Ln,challenge_names:jn,author_name:Fa,identifier:rr,author_school_name:ba,study_count:aa}=Vn||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Oe.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(pe.Z,{value:Ln,style:{marginBottom:18}}),b.createElement("div",{className:gt.challengeNameWrapper},jn.map((fa,ra)=>b.createElement("div",{className:gt.challengeName,key:ra},"\u7B2C",(0,Ee.EM)(ra+1),"\u9898\xA0",fa))),b.createElement(Ze.Z,{className:gt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(De.Z,{className:gt.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:gt.shixunInfo},Fa.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:gt.shixunInfo},ba),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:gt.shixunInfo},aa)),b.createElement(Ie.ZP,{type:"primary",className:gt.btnToDetail,onClick:()=>(0,Ee.xg)(`/shixuns/${rr}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Vn==null?void 0:Vn.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${Vn==null?void 0:Vn.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Hn==null?void 0:Hn.items,rowSelection:{type:"radio",selectedRowKeys:Gn,preserveSelectedRowKeys:!0,getCheckboxProps:Qn=>({disabled:Qn.shixun_tag_num===1}),onChange(Qn,Vn){var Ln,jn,Fa;console.log(Qn),da(Qn);const rr=[];for(const aa of qa)Qn.includes(aa.id)&&rr.push(aa);const ba=rr.map(aa=>aa.id);for(const aa of Vn)aa&&Qn.includes(aa.id)&&!ba.includes(aa.id)&&rr.push({id:aa.id,difficulty:aa.level,identifier:aa.identifier,name:aa.name,real_name:(Ln=aa==null?void 0:aa.author_name)==null?void 0:Ln.split("\u3001")[0],school_name:aa.author_school_name,challenge_names:aa.challenge_names,challenges:(jn=aa.challenge_names)==null?void 0:jn.map((fa,ra)=>({subject:fa,id:ra,score:5})),score:((Fa=aa.challenge_names)==null?void 0:Fa.length)*5,study_count:aa.study_count,challenges_count:aa.challenges_count});Ya(rr)}},pagination:{current:fn.page,pageSize:fn.limit,total:Hn==null?void 0:Hn.items_count,showTotal:Qn=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},Qn),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Qn,Vn){Xn({page:Qn,limit:Vn})},size:"default"},scroll:{y:400}}))},_n=ae(83476),la=ae(20387),or=(ze,at,mt)=>new Promise((xt,fn)=>{var On=Tn=>{try{Hn(mt.next(Tn))}catch(un){fn(un)}},Xn=Tn=>{try{Hn(mt.throw(Tn))}catch(un){fn(un)}},Hn=Tn=>Tn.done?xt(Tn.value):Promise.resolve(Tn.value).then(On,Xn);Hn((mt=mt.apply(ze,at)).next())}),ao=({visible:ze,getdata:at,onCancel:mt,onRandomExchange:xt,selectFromProblemSet:fn,questionParams:On})=>{const[Xn,Hn]=(0,b.useState)(!1),[Tn,un]=(0,b.useState)(!1),[Gn,da]=(0,b.useState)({}),qa=(0,ge.useParams)(),[Ya,Qn]=(0,b.useState)(),Vn=(Ln,jn)=>or(void 0,null,function*(){un(!0);const Fa=yield(0,ye.ZP)(`/api/exercises/${qa.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:On.id,item_bank_id:Ln,shixuns_info:[{id:Ln,is_copy:jn!=1,is_use:jn!=1}]}});un(!1),Fa!=null&&Fa.status||(ke.ZP.info("\u6362\u9898\u6210\u529F"),mt(),at())});return b.createElement(Oe.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:ze,onCancel:mt,centered:!0,maskClosable:!0,footer:null},b.createElement(Ze.Z,{justify:"center",className:"pb20"},b.createElement(Fl.Z,{onClick:xt},"\u968F\u673A\u66F4\u6362"),(On==null?void 0:On.type)!=="PRACTICAL"&&b.createElement(Ie.ZP,{style:{marginLeft:24},onClick:fn},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(On==null?void 0:On.type)==="PRACTICAL"&&b.createElement(Ie.ZP,{style:{marginLeft:24},onClick:()=>{Hn(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),b.createElement(dn,{open:Xn,onCancel:()=>Hn(!1),onOk:Ln=>or(void 0,null,function*(){if(console.log("----selectedRows",Ln,qa),(Ln==null?void 0:Ln.length)<=0){ke.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let jn=Ln==null?void 0:Ln.map(rr=>rr==null?void 0:rr.id),Fa=yield(0,la.Tr)({id:[...jn],course_id:qa.coursesId,type:"shixun"});(Fa==null?void 0:Fa.student_count)===0?Vn(jn==null?void 0:jn[0],1):(Qn(jn),da(Fa)),Hn(!1)})}),b.createElement(_n.Z,{resdata:Gn,type:"shixun",okloading:Tn,oktext:(Gn==null?void 0:Gn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ln=>or(void 0,null,function*(){Vn(Ya==null?void 0:Ya[0],2)})}))},Fr=ae(26696),Ia=ae(24334),ca=ae(48498),Kn=ae(19352),sr=ae(79506),mr=Object.defineProperty,Br=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,ya=(ze,at,mt)=>at in ze?mr(ze,at,{enumerable:!0,configurable:!0,writable:!0,value:mt}):ze[at]=mt,yr=(ze,at)=>{for(var mt in at||(at={}))kr.call(at,mt)&&ya(ze,mt,at[mt]);if(dr)for(var mt of dr(at))cr.call(at,mt)&&ya(ze,mt,at[mt]);return ze},Vr=(ze,at)=>Br(ze,Jr(at)),bo=(ze,at,mt)=>new Promise((xt,fn)=>{var On=Tn=>{try{Hn(mt.next(Tn))}catch(un){fn(un)}},Xn=Tn=>{try{Hn(mt.throw(Tn))}catch(un){fn(un)}},Hn=Tn=>Tn.done?xt(Tn.value):Promise.resolve(Tn.value).then(On,Xn);Hn((mt=mt.apply(ze,at)).next())}),ji=({data:ze,submit:at,goBack:mt,loading:xt,onTypeScore:fn,editPreview:On=!1,onSkipExamination:Xn,selectValue:Hn,onExchange:Tn,getdata:un,handleMarkWrongQuestion:Gn})=>{var da,qa,Ya,Qn,Vn,Ln,jn,Fa,rr,ba,aa;const fa=(0,b.useRef)(),[ra,va]=(0,b.useState)(null),[Ir,lo]=(0,b.useState)(!1),[Fo,qo]=(0,b.useState)(!1),er=(0,b.useRef)(),[mi]=be.default.useForm(),fi=(0,ge.useParams)(),[Nr,Co]=(0,b.useState)(!1);(0,b.useEffect)(()=>{lo(!0)},[]),(0,b.useEffect)(()=>{On||(0,Ee.Dk)("\u8BD5\u5377\u9884\u89C8")},[On]);const po=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Do={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},ui={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},gl=Gt=>{var Ea;const br=[];return b.createElement(b.Fragment,null,b.createElement("aside",{className:se.single},(Ea=Gt==null?void 0:Gt.choices)==null?void 0:Ea.map((fe,me)=>(fe.is_answer&&br.push(sr.k4[me]),b.createElement("ul",{key:me},b.createElement("li",null,sr.k4[me],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:fe.choice_text})))))),b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",br.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",po[Gt.difficulty])),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Gt.analysis?Gt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gt==null?void 0:Gt.tag_discipline_name)))))},Ml=(Gt,Ea)=>{var br;const fe=(br=Gt==null?void 0:Gt.standard_answer)==null?void 0:br.map((me,Me)=>{var Ge;return b.createElement("div",{key:Me},`\u7B54\u6848\uFF08\u586B\u7A7A${me==null?void 0:me.position}\uFF09\uFF1A${(Ge=me==null?void 0:me.answer_text)==null?void 0:Ge.join("\u3001")}`)});return b.createElement(b.Fragment,null,b.createElement("div",{className:se.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,fe)),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Gt.analysis?Gt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ea?`${(Ea==null?void 0:Ea.discipline_name)||"--"}/${Ea==null?void 0:Ea.sub_discipline_name}`:`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Ea?Ea==null?void 0:Ea.tag_discipline_name:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ea?Ea==null?void 0:Ea.tag_discipline_name:Gt==null?void 0:Gt.tag_discipline_name)))))},wl=Gt=>{var Ea;const br=(Ea=Gt==null?void 0:Gt.standard_answer)==null?void 0:Ea.map((fe,me)=>b.createElement("div",{key:me},`\u7B54\u6848\uFF08\u586B\u7A7A${(fe==null?void 0:fe.position)||(fe==null?void 0:fe.exercise_choice_id)}\uFF09\uFF1A${fe==null?void 0:fe.answer_text}`));return b.createElement(b.Fragment,null,b.createElement("div",{className:se.analysis},b.createElement("div",{style:{display:"flex"}},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),b.createElement("div",null,br)),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Gt.analysis?Gt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gt==null?void 0:Gt.tag_discipline_name)))))},Hl=(Gt,Ea)=>{var br;return b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(br=Gt==null?void 0:Gt.answer_texts)==null?void 0:br[0]),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Gt.analysis?Gt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),Ea?`${(Ea==null?void 0:Ea.discipline_name)||"--"}/${Ea==null?void 0:Ea.sub_discipline_name}`:`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Ea?Ea==null?void 0:Ea.tag_discipline_name:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Ea?Ea==null?void 0:Ea.tag_discipline_name:Gt==null?void 0:Gt.tag_discipline_name))))},Tl=Gt=>{var Ea,br;return b.createElement("div",{className:se.analysis},b.createElement("aside",null,b.createElement("span",{className:se.text},"\u9884\u671F\u8F93\u51FA:"),b.createElement(pe.Z,{value:(Ea=Gt==null?void 0:Gt.program_attr)==null?void 0:Ea.description})),b.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((br=Gt==null?void 0:Gt.program_attr)==null?void 0:br.answer_text)||"--"),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:Gt.analysis?Gt.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gt==null?void 0:Gt.tag_discipline_name))))},Wl=(Gt,Ea)=>{var br;return b.createElement("div",null,(br=Gt==null?void 0:Gt.sub_item_banks)==null?void 0:br.map((fe,me)=>{var Me,Ge;const nt=[];return b.createElement(b.Fragment,null,b.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Ea+1+"."+(me+1),"\uFF08",Do[fe.item_type]||ui[fe.item_type],"\uFF09",fe.name),(fe.item_type=="SINGLE"||fe.item_type=="MULTIPLE"||fe.item_type=="JUDGMENT"||fe.item_type=="single"||fe.item_type=="multiple"||fe.item_type=="judgement")&&b.createElement(b.Fragment,null,b.createElement("aside",{className:se.single},(Me=fe==null?void 0:fe.choices)==null?void 0:Me.map((Xe,Rt)=>(Xe.is_answer&&nt.push(sr.k4[Rt]),b.createElement("ul",{key:Rt},b.createElement("li",null,sr.k4[Rt],"\u3001"),b.createElement("li",null,b.createElement(pe.Z,{value:Xe.choice_text})))))),b.createElement("div",{className:se.analysis},b.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",nt.join(""),b.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",po[fe.difficulty])),b.createElement("aside",null,b.createElement("span",{className:se.text},"\u89E3\u6790:"),b.createElement(pe.Z,{value:fe.analysis?fe.analysis:"\u6682\u65E0\u89E3\u6790"})),b.createElement("ul",null,b.createElement("li",null,b.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(Gt==null?void 0:Gt.discipline_name)||"--"}/${Gt==null?void 0:Gt.sub_discipline_name}`),b.createElement(Ae.Z,{title:Gt==null?void 0:Gt.tag_discipline_name},b.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Gt==null?void 0:Gt.tag_discipline_name))))),(fe.item_type=="COMPLETION"||fe.item_type=="completion")&&Ml(fe,Gt),(fe.item_type=="SUBJECTIVE"||fe.item_type=="subjective")&&Hl(fe,Gt),((Ge=ze==null?void 0:ze.exam)==null?void 0:Ge.exercise_status)===3&&b.createElement("div",{className:"flex gap-20px mt20"},b.createElement(ca.Z,{state:fe==null?void 0:fe.is_wrong,onClick:()=>{Gn==null||Gn({value:Vr(yr({},fe),{question_id:fe==null?void 0:fe.id,question_score:fe==null?void 0:fe.score})})}}),fe.item_type=="single"&&b.createElement(Ie.ZP,{style:{color:"#3061D0"},onClick:()=>{nu({value:fe})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},vl=Gt=>{var Ea,br,fe;return b.createElement("div",{style:{marginTop:"12px"}},(br=(Ea=Gt==null?void 0:Gt.shixun)==null?void 0:Ea.challenges)==null?void 0:br.map((me,Me)=>b.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},b.createElement("div",null,b.createElement("span",{className:"mr5"},"\u7B2C",Me+1,"\u5173"),b.createElement(Ae.Z,{key:Me,title:me==null?void 0:me.challenge_name},b.createElement("span",null,(0,Ee.Pq)(me==null?void 0:me.challenge_name,44)))),On&&b.createElement("div",null,"\u5206\u503C\uFF1A",me.score,"\u5206"))),b.createElement(ge.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(fe=Gt==null?void 0:Gt.shixun)==null?void 0:fe.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),b.createElement("div",{style:{clear:"both"}}))},Dl=Gt=>{let Ea=Gt.questions_score/Gt.questions_count;Oe.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:b.createElement("div",{className:se.modalColumn},b.createElement("div",{className:se.modalRow,style:{justifyContent:"flex-start"}},b.createElement("sup",{className:se.sup},"*"),b.createElement("span",null,Gt==null?void 0:Gt.name,"\uFF1A"),b.createElement(ue.Z,{min:0,precision:1,defaultValue:Ea,onChange:br=>{Ea=br}}),b.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){var br;if(!Ea)return ke.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const fe={type:Gt==null?void 0:Gt.type,score:Ea,scoreTotal:Number((br=Ea*Gt.questions_count)==null?void 0:br.toFixed(1))};fn(fe)})})},Il=()=>{let Gt="";Oe.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:b.createElement("div",{className:se.modalColumn},b.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},b.createElement("img",{style:{marginRight:5},src:Dt.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),b.createElement("div",{className:se.modalRow,style:{marginTop:20}},b.createElement("sup",{className:se.sup},"*"),b.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),b.createElement(We.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Gt,onChange:Ea=>{Gt=Ea.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){var Ea;if(!Gt)return ke.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const br=[],fe=[],me=[],Me=[];(Ea=ze==null?void 0:ze.questionList)==null||Ea.forEach(nt=>{var Xe;(Xe=nt.questions)==null||Xe.forEach(Rt=>{let Bt=nt.questions_score/nt.questions_count;Bt=Bt&&Bt.toFixed(1),nt.type==="COMBINATION"&&me.push({id:Rt.id,sub_item_bank_ids:Rt.sub_item_banks.map(Mt=>Mt.id)}),nt.type==="PRACTICAL"?Me.push(Rt.id):(br.push(Rt.id),fe.push(Bt))})}),console.log("-----",me),yield at({item_bank_ids:br,item_bank_scores:fe,name:Gt,combination_item_banks:me,shixun_ids:Me})})})},eu=(Gt,Ea,br,fe)=>{var me;const Me=`${location.pathname}${location.search}`,Ge=(me=fe.questions)==null?void 0:me.map(nt=>nt==null?void 0:nt.id);if(Me.includes("exercise"))er.current={id:Gt,ids:Ge,type:Ea,index:br},qo(!0);else{let nt=Oe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){nt.update({cancelButtonProps:{disabled:!0}}),yield Tn({single_question_id:Gt,seleted_item_bank_ids:Ge},{type:Ea,index:br}),nt.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},sl=Gt=>{var Ea;const br=(Ea=Gt.questions)==null?void 0:Ea.map(Me=>Me==null?void 0:Me.id),fe=Gt.name;let me=Oe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${fe}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){me.update({cancelButtonProps:{disabled:!0}}),yield Tn({seleted_item_bank_ids:br},{type:Gt.type}),me.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${fe}\u8BD5\u9898`)})})},kl=()=>{let Gt=Oe.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>bo(void 0,null,function*(){Gt.update({cancelButtonProps:{disabled:!0}}),yield Tn(),Gt.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Nl=Gt=>{console.log(Gt,"key"),Xn(Gt-1)},Kl=(Gt,Ea)=>{var br,fe;if(Ea==="SINGLE")return b.createElement(b.Fragment,null,b.createElement(Ft,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="MULTIPLE")return b.createElement(b.Fragment,null,b.createElement(xn,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="JUDGMENT")return b.createElement(b.Fragment,null,b.createElement(bt,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="COMPLETION")return b.createElement(b.Fragment,null,b.createElement(Ye,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="SUBJECTIVE")return b.createElement(b.Fragment,null,b.createElement($a,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="COMBINATION")return b.createElement(b.Fragment,null,b.createElement(Ri,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null));if(Ea==="BPROGRAM")return b.createElement(b.Fragment,null,b.createElement(be.default,{form:mi,style:{marginTop:20},onFinishFailed:me=>{var Me,Ge;me.errorFields[0].name.includes("standard_answers")?ke.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ke.ZP.error(me.errorFields[0].errors[0]),mi.scrollToField((Ge=(Me=me==null?void 0:me.errorFields)==null?void 0:Me[0])==null?void 0:Ge.name,{behavior:"smooth",block:"center"})},onFinish:me=>bo(void 0,null,function*(){var Me;let Ge=Vr(yr({question_score:Gt.score},me),{question_type:8,hack:Vr(yr({},me.hack),{difficult:Gt.program_attr.difficult}),hack_codes:Vr(yr({},me.hack_codes),{code:Ia.Base64.encode((Me=me.hack_codes)==null?void 0:Me.code)})});Nr&&(Ge.is_cover=1);const nt=yield(0,ye.ZP)(`/api/exercise_questions/${Gt.id}.json`,{method:"put",body:Ge});(nt==null?void 0:nt.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Nl(Hn+1)),va(null)})},b.createElement(Fr.tc,{form:mi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(br=Gt==null?void 0:Gt.program_attr)==null?void 0:br.identifier,answerKey:"standard_answers"}),b.createElement(Te.Z,null)));if(Ea==="PROGRAM"&&ge.history.push(`/problems/${(fe=Gt==null?void 0:Gt.program_attr)==null?void 0:fe.identifier}/edit?type=exercises&express_id=${fi.categoryId}&question_id=${Gt==null?void 0:Gt.id}&score=${Gt==null?void 0:Gt.score}&callback_url=${location.pathname}&select=${Hn}&exercise=true`),Ea==="PRACTICAL")return b.createElement(b.Fragment,null,b.createElement(Wn,{ref:fa,editData:Gt,isEdit:!0}),b.createElement(Te.Z,null))},Ul=(Gt,Ea)=>bo(void 0,null,function*(){var br,fe,me,Me,Ge,nt;const Xe=yield(br=fa.current)==null?void 0:br.onSave();if(!Xe)return;const Rt=Tt=>{const Qt=Tt.map(Cn=>Cn.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(Qt).size!==Qt.length},Bt={question_score:Ea.score,analysis:Xe.analysis};if(Gt==="SINGLE"||Gt==="MULTIPLE"||Gt==="JUDGMENT"){if(Gt!=="JUDGMENT"&&Rt(Xe==null?void 0:Xe.choices)){ke.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const Tt=[],Qt=[];Bt.question_type=Gt==="JUDGMENT"?2:1,Bt.question_title=Xe==null?void 0:Xe.name,(fe=Xe==null?void 0:Xe.choices)==null||fe.forEach((In,Cn)=>{Tt.push(In.choice_text),In!=null&&In.is_answer&&Qt.push(Cn+1)}),Bt.question_choices=Tt,Bt.standard_answers=Qt}if(Gt==="COMPLETION"){let Tt=(me=Xe==null?void 0:Xe.standard_answers)==null?void 0:me.map((Cn,Rn)=>(Cn==null?void 0:Cn.score)<=0?Rn+1:null).filter(Cn=>Cn!==null);if((Tt==null?void 0:Tt.length)>0)return ke.ZP.warning(`\u7B2C${Tt.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let Qt=(Me=Xe==null?void 0:Xe.standard_answers)==null?void 0:Me.reduce((Cn,Rn)=>Cn+(Number(Rn==null?void 0:Rn.score)||0),0);if(parseFloat(Qt.toFixed(2))!=(Bt==null?void 0:Bt.question_score))return ke.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Bt.is_ordered=Xe.is_ordered,Bt.question_title=Xe==null?void 0:Xe.name,Bt.use_blank_score=Xe==null?void 0:Xe.use_blank_score,Bt.question_type=3;const In=[];(Ge=Xe==null?void 0:Xe.standard_answers)==null||Ge.forEach((Cn,Rn)=>{In.push({choice_id:Cn.position,answer_text:Cn.answer_text,score:Cn.score})}),Bt.standard_answers=In,Bt.downcase=Xe==null?void 0:Xe.downcase,Bt.no_space=Xe==null?void 0:Xe.no_space}if(Gt==="SUBJECTIVE"&&(console.log("editorData"),console.log(Xe),Bt.question_title=Xe==null?void 0:Xe.name,Bt.question_type=4,Bt.answer_texts=Xe==null?void 0:Xe.answer_texts,Bt.use_keywords=Xe==null?void 0:Xe.use_keywords,Bt.keywords=Xe==null?void 0:Xe.keywords),Gt==="COMBINATION"){Bt.question_title=Xe==null?void 0:Xe.name,Bt.question_type=7;try{Bt.sub_questions=(nt=Xe==null?void 0:Xe.sub_item_banks)==null?void 0:nt.map((Tt,Qt)=>{var In,Cn,Rn;if((Tt==null?void 0:Tt.item_type)=="single"||(Tt==null?void 0:Tt.item_type)=="multiple"){if(Rt(Tt==null?void 0:Tt.choices))throw new Error(`\u7B2C${Qt+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const sa=[],qn=[];return(In=Tt==null?void 0:Tt.choices)==null||In.forEach((oa,ea)=>{sa.push(oa.choice_text),oa!=null&&oa.is_answer&&qn.push(ea+1)}),{id:Tt.id,question_id:Tt.id,question_title:Tt.name,difficulty:Tt.difficulty,question_type:(Tt==null?void 0:Tt.item_type)=="single"?0:(Tt==null?void 0:Tt.item_type)=="multiple"?1:2,question_choices:sa,standard_answers:qn,analysis:Tt.analysis,question_score:Tt==null?void 0:Tt.score}}else if((Tt==null?void 0:Tt.item_type)=="completion"){let sa=(Cn=Tt==null?void 0:Tt.standard_answer)==null?void 0:Cn.reduce((oa,ea)=>oa+(Number(ea==null?void 0:ea.score)||0),0);if(parseFloat(sa.toFixed(2))!=(Tt==null?void 0:Tt.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const qn=[];return(Rn=Tt==null?void 0:Tt.standard_answer)==null||Rn.forEach((oa,ea)=>{qn.push({choice_id:oa.position,answer_text:oa.answer_text,score:oa.score})}),{id:Tt.id,question_id:Tt.id,is_ordered:Tt.is_ordered,question_title:Tt.name,difficulty:Tt.difficulty,question_type:3,standard_answers:qn,use_blank_score:Tt.use_blank_score,analysis:Tt.analysis,downcase:Tt==null?void 0:Tt.downcase,no_space:Tt==null?void 0:Tt.no_space,question_score:Tt==null?void 0:Tt.score}}else if((Tt==null?void 0:Tt.item_type)=="subjective")return{id:Tt.id,question_id:Tt.id,question_title:Tt.name,question_type:4,difficulty:Tt.difficulty,answer_texts:Tt==null?void 0:Tt.answer_texts,analysis:Tt.analysis,question_score:Tt==null?void 0:Tt.score,use_keywords:Tt.use_keywords,keywords:Tt==null?void 0:Tt.keywords}})}catch(Tt){ke.ZP.warning(Tt.message);return}delete Bt.analysis}let Mt=!1;(Ea==null?void 0:Ea.is_my)===1&&(Mt=yield new Promise((Qt,In)=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{Qt(!0)},onCancel:()=>{Qt(!1)}})})),Mt&&(Bt.is_cover=1);const $t=Gt!=="PRACTICAL"?yield(0,ye.ZP)(`/api/exercise_questions/${Ea.id}.json`,{method:"put",body:Bt}):yield(0,ye.ZP)(`/api/exercise_questions/${Ea.id}/update_shixun_score.json`,{method:"post",body:yr({},Xe)});($t==null?void 0:$t.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Nl(Hn+1),va(null))}),tu=()=>bo(void 0,null,function*(){(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,ye.ZP)(`/api/exercises/${fi.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Xn(Hn),ke.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),nu=({value:Gt}={})=>{var Ea;const br=[];let fe=[];const me=(Ea=Gt==null?void 0:Gt.choices)==null?void 0:Ea.map((Ge,nt)=>{var Xe;const Rt=nt+1;return Ge!=null&&Ge.is_answer&&(br.push(Rt),fe.push(Rt)),{value:Rt,label:b.createElement(pe.Z,{className:"c-black font14",value:`${(Xe=sr.k4)==null?void 0:Xe[nt]}. ${Ge==null?void 0:Ge.choice_text}`}),disabled:Ge==null?void 0:Ge.origin_standard_answer}}),Me=Oe.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:b.createElement(b.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",br==null?void 0:br.map(Ge=>{var nt;return(nt=sr.k4)==null?void 0:nt[Ge-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",b.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",b.createElement("br",null),b.createElement(He.default.Group,{className:"flex-col mt20",options:me,defaultValue:fe,onChange:Ge=>{fe=Ge}})),onOk:()=>bo(void 0,null,function*(){const Ge=yield(0,ye.ZP)(`/api/exercises/${fi.categoryId}/questions/${Gt==null?void 0:Gt.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:fe}});(Ge==null?void 0:Ge.status)===0&&(ke.ZP.success("\u4FEE\u6539\u6210\u529F"),Nl(Hn+1))})})},Vl=(da=ze==null?void 0:ze.questionList)==null?void 0:da.reduce((Gt,Ea)=>Gt+Number(Ea.questions_score),0),au=On&&((qa=ze==null?void 0:ze.exam)==null?void 0:qa.exercise_status)!==1;return b.createElement("section",{className:se.wrap},b.createElement("div",{id:"id_left_preview",className:se.left,onMouseEnter:Gt=>{const Ea=document.getElementById("id_left_preview");Ea.style.overflowY="auto"},onMouseLeave:Gt=>{const Ea=document.getElementById("id_left_preview");Ea.style.overflowY="hidden"}},b.createElement("div",{className:se.title},b.createElement("div",{className:"body-overflow-initial"},b.createElement("b",null),b.createElement("span",null,"\u7B54\u9898\u5361"))),b.createElement("div",{className:se.total},b.createElement("div",null,b.createElement("img",{src:st}),b.createElement("span",null,"\u9898\u6570(\u9053)"),b.createElement("aside",null,ze==null?void 0:ze.all_questions_count)),b.createElement("div",{className:"mr30 ml30"},b.createElement("img",{src:ft}),b.createElement("span",null,"\u603B\u5206(\u5206)"),b.createElement("aside",null,Vl&&Vl.toFixed(1))),b.createElement("div",null,b.createElement("img",{src:ce}),b.createElement("span",null,"\u65F6\u957F(\u5206)"),b.createElement("aside",null,((Ya=ze==null?void 0:ze.exam)==null?void 0:Ya.time)===-1||((Qn=ze==null?void 0:ze.exam)==null?void 0:Qn.time)===null?"\u4E0D\u9650":(Vn=ze==null?void 0:ze.exam)==null?void 0:Vn.time))),(Ln=ze==null?void 0:ze.questionList)==null?void 0:Ln.map((Gt,Ea)=>{var br;return b.createElement("div",{className:se.list,key:Ea},b.createElement("div",{className:se.name},b.createElement("b",null),b.createElement("span",null,Gt.name)),b.createElement("aside",null,b.createElement("div",null,"\u5171",b.createElement("span",{className:se.b},Gt.questions_count),"\u9898 ",b.createElement("span",{className:se.l},"|"),"\u5171",b.createElement("span",{className:se.r},Gt.questions_score),"\u5206"),b.createElement("div",{className:se.answerSheet},(br=Gt==null?void 0:Gt.questions)==null?void 0:br.map((fe,me)=>b.createElement("div",{onClick:()=>{const Me=`Anchor_${fe==null?void 0:fe.id}`;let Ge=document.getElementById(Me);Ge&&setTimeout(()=>Ge.scrollIntoView({block:"center",behavior:"smooth"}))},key:fe==null?void 0:fe.id,className:se.tag},me+1)))))})),b.createElement("div",{className:se.right},b.createElement("div",{className:se.examName,id:"examName"},b.createElement("div",{className:se.name},b.createElement(Ae.Z,{title:(jn=ze==null?void 0:ze.exam)==null?void 0:jn.name,getPopupContainer:Gt=>Gt.parentNode},b.createElement("span",{className:se.t},(Fa=ze==null?void 0:ze.exam)==null?void 0:Fa.name))),On&&((rr=ze==null?void 0:ze.exam)==null?void 0:rr.exercise_status)===1&&b.createElement(ht.op,{openLoading:!0,shape:"default",onClick:()=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{tu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!On&&b.createElement(Ie.ZP,{onClick:kl,type:"primary"},"\u968F\u673A\u66F4\u6362")),b.createElement("div",{className:se.topWarp},(ba=ze==null?void 0:ze.questionList)==null?void 0:ba.map((Gt,Ea)=>{var br,fe;return b.createElement(b.Fragment,{key:Ea},b.createElement("div",{className:se.head,style:Ea===0?{border:0,marginTop:-16}:{}},b.createElement("div",{className:se.name},b.createElement("b",null),b.createElement("span",null,Gt.name)),b.createElement("div",{className:se.so},"\u5171",b.createElement("span",{className:se.b},Gt.questions_count," "),"\u9898 ",Gt.type==="COMBINATION"&&`\uFF08\u5305\u542B${(br=Gt==null?void 0:Gt.questions)==null?void 0:br.map(me=>{var Me;return(Me=me==null?void 0:me.sub_item_banks)==null?void 0:Me.length}).reduce((me,Me)=>me+Me)}\u5C0F\u9898\uFF09`,b.createElement("span",{className:se.l},"|"),"\u5171",b.createElement("span",{className:se.r},Gt.questions_score),"\u5206"),!On&&b.createElement("div",{className:se.btn},b.createElement(Ie.ZP,{onClick:()=>{Dl(Gt)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),b.createElement(Ie.ZP,{onClick:()=>sl(Gt),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(fe=Gt==null?void 0:Gt.questions)==null?void 0:fe.map((me,Me)=>{var Ge,nt,Xe,Rt;return ra===(me==null?void 0:me.id)?b.createElement("div",{id:`Anchor_${me==null?void 0:me.id}`,className:se.content,style:{padding:0,marginTop:24},key:me==null?void 0:me.id},b.createElement("div",{style:{float:"right",marginTop:`${(Gt==null?void 0:Gt.type)==="PRACTICAL"?"-2px":"-6px"}`}},b.createElement(Ie.ZP,{onClick:()=>va(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),b.createElement(Ie.ZP,{onClick:()=>{Ul(Gt==null?void 0:Gt.type,me)},type:"primary"},"\u4FDD\u5B58")),Kl(me,Gt.type)):b.createElement("div",{id:`Anchor_${me==null?void 0:me.id}`,className:se.content,key:me==null?void 0:me.id},b.createElement("div",{className:se.titleWrap},(me==null?void 0:me.item_type)==="bprogram"?b.createElement(pe.Z,{style:{paddingRight:10},value:Me+1+"\u3001"+((Ge=me==null?void 0:me.program_attr)==null?void 0:Ge.description)}):b.createElement(pe.Z,{style:{paddingRight:10},className:se.titleHtml,value:Me+1+`\u3001${(me==null?void 0:me.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(me==null?void 0:me.name)}),On&&b.createElement(Ie.ZP,{onClick:()=>{var Bt,Mt,$t;if(ra){ke.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}mi.setFieldsValue({standard_answers:me==null?void 0:me.standard_answer,hack:yr(yr({},me),me==null?void 0:me.program_attr),hack_codes:Vr(yr({},me==null?void 0:me.program_attr),{code:Ia.Base64.decode(((Bt=me==null?void 0:me.program_attr)==null?void 0:Bt.code)||"")}),hack_sets:yr({},(Mt=me==null?void 0:me.hack_sets)==null?void 0:Mt[0])}),(me==null?void 0:me.item_type)=="program"?ge.history.push(`/problems/newedit/${($t=me==null?void 0:me.program_attr)==null?void 0:$t.identifier}?type=exercises&express_id=${fi.categoryId}&question_id=${me==null?void 0:me.id}&score=${me==null?void 0:me.score}&exercise=true&callback_url=/classrooms/${fi.coursesId}/exercise/${fi.categoryId}/detail?random=true`):va(me==null?void 0:me.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!au&&b.createElement(Ie.ZP,{disabled:au,className:"ml20",onClick:()=>eu(me==null?void 0:me.id,Gt.type,Me,Gt),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(me==null?void 0:me.item_type)==="bprogram"&&b.createElement(pe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:se.titleHtml,value:Ia.Base64.decode(((nt=me==null?void 0:me.program_attr)==null?void 0:nt.code)||"")}),(Gt.type==="SINGLE"||Gt.type==="JUDGMENT"||Gt.type==="MULTIPLE")&&gl(me),Gt.type==="COMPLETION"&&Ml(me),Gt.type==="SUBJECTIVE"&&Hl(me),Gt.type==="PROGRAM"&&Tl(me),Gt.type==="BPROGRAM"&&wl(me),Gt.type==="COMBINATION"&&Wl(me,Me),Gt.type==="PRACTICAL"&&vl(me),b.createElement(Ze.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((Xe=ze==null?void 0:ze.exam)==null?void 0:Xe.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Gt.type)&&b.createElement(De.Z,null,b.createElement(ca.Z,{state:me==null?void 0:me.is_wrong,onClick:()=>{Gn==null||Gn({value:Vr(yr({},me),{question_id:me==null?void 0:me.id,question_score:me==null?void 0:me.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Gt.type)&&(me==null?void 0:me.show_resubmit)&&b.createElement(De.Z,null,b.createElement(Kn.C,{dataSource:Vr(yr({},me),{question_id:me==null?void 0:me.id})})),((Rt=ze==null?void 0:ze.exam)==null?void 0:Rt.exercise_status)===3&&["SINGLE"].includes(Gt.type)&&b.createElement(De.Z,null,b.createElement(Ie.ZP,{style:{color:"#3061D0"},onClick:()=>{nu({value:me})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),On?b.createElement(ht.vr,null,b.createElement(le.Z,{showTotal:Ee.rU,total:(aa=ze==null?void 0:ze.exam)==null?void 0:aa.total_num,pageSize:1,current:Hn+1,showSizeChanger:!1,onChange:Nl,showQuickJumper:!1,hideOnSinglePage:!1})):b.createElement(ht.vr,{LeftContent:b.createElement(ht.op,{onClick:mt,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:b.createElement(Ze.Z,{align:"middle"},b.createElement(E.Z,{color:"#55575D",overlayClassName:se.popover,open:Ir,getPopupContainer:Gt=>Gt==null?void 0:Gt.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},b.createElement(ht.op,{onMouseEnter:()=>lo(!0),onMouseLeave:()=>lo(!1),onClick:()=>Il(),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),b.createElement(ht.op,{shape:"default",type:"primary",onClick:()=>at(),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),b.createElement(ao,{visible:Fo,questionParams:er.current,getdata:un,onRandomExchange:()=>bo(void 0,null,function*(){const Gt=er.current;yield Tn({single_question_id:Gt.id,seleted_item_bank_ids:Gt.ids},{type:Gt.type,index:Gt.index}),qo(!1)}),selectFromProblemSet:()=>{const Gt=er.current,Ea=`${location.pathname}${location.search}`;Ea.includes("exercise")&&ge.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Gt.id}&qtype=${Gt.type}&exerciseid=${fi.categoryId}&from=${Ea}`)},onCancel:()=>{qo(!1)}}))}},4926:function(_t,Ot,ae){"use strict";ae.r(Ot),ae.d(Ot,{default:function(){return Gl}});var b=ae(59301),se={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},be=ae(8591),Ae=ae(78241),Ie=ae(66104),Oe=ae(42203),ue=ae(15519),ke=ae(71418),We=ae(92832),Te=ae(19842),He=ae(5112),Ze=ae(95237),De=ae(5871),le=ae(3113),E=ae(70635),a=Object.defineProperty,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(gt,ht,zt)=>ht in gt?a(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,re=(gt,ht)=>{for(var zt in ht||(ht={}))y.call(ht,zt)&&te(gt,zt,ht[zt]);if(x)for(var zt of x(ht))z.call(ht,zt)&&te(gt,zt,ht[zt]);return gt},ie=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())});function ce(gt){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${gt}/edit_random_exam_new.json`,{method:"get"})})}function pe(gt,ht){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${gt}/update_random_exam.json`,{method:"post",body:ht})})}function ge(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:gt})})}function Ee(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/disciplines.json",{method:"get",params:gt})})}function ye(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:gt})})}function Re(gt,ht){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${gt}/set_item_type_score.json`,{method:"post",body:ht})})}function he(gt,ht){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${gt}/set_item_type_score.json`,{method:"post",body:ht})})}function qe(gt,ht){return ie(this,null,function*(){return(0,E.ZP)(`/api/examination_banks/${gt}/delete_item_type.json`,{method:"post",body:ht})})}function je(gt,ht){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${gt}/delete_item_type.json`,{method:"post",body:ht})})}function ot(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:gt})})}function Le(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:gt})})}function Je(gt){return ie(this,null,function*(){return(0,E.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:gt})})}function st(gt){return ie(this,null,function*(){return(0,E.ZP)(`/api/exercises/${gt.categoryId}/edit.json`,{method:"get",params:re({},gt)})})}var Ke=(gt=>(gt.OnlyFileFolder="1",gt.OnlyKnowledge="2",gt.OnlyDifficulty="3",gt.FileFolderAndDiff="4",gt.FileFolderAndKnowledge="5",gt.KnowledgeAndDiff="6",gt.All="7",gt.Shixun="8",gt))(Ke||{}),$e=ae(89392),Wt=Object.defineProperty,it=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Dt=(gt,ht,zt)=>ht in gt?Wt(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,rn=(gt,ht)=>{for(var zt in ht||(ht={}))Qe.call(ht,zt)&&Dt(gt,zt,ht[zt]);if(Xt)for(var zt of Xt(ht))ft.call(ht,zt)&&Dt(gt,zt,ht[zt]);return gt},Pt=(gt,ht)=>it(gt,jt(ht)),Jt=(gt=>(gt[gt.FileFolder=1]="FileFolder",gt[gt.Difficulty=2]="Difficulty",gt[gt.Knowledge=3]="Knowledge",gt))(Jt||{});const Be=(0,b.createContext)(null),Ut={[Ke.OnlyFileFolder]:[1],[Ke.OnlyKnowledge]:[3],[Ke.OnlyDifficulty]:[2],[Ke.FileFolderAndDiff]:[1,2],[Ke.FileFolderAndKnowledge]:[1,3],[Ke.KnowledgeAndDiff]:[3,2],[Ke.All]:[3,2,1]},En=(gt,ht)=>{if(gt.length!==ht.length)return!1;for(const zt of ht)if(!gt.includes(zt))return!1;return!0},Ct=gt=>{for(const[ht,zt]of Object.entries(Ut))if(En(gt,zt))return ht},It={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},et={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},Ue=gt=>gt&&parseFloat(gt.toFixed(1)),Fe=(gt,ht)=>{var zt,wn,Dn;switch(ht.type){case"init":return ht.payload;case"updateBaseInfo":return Pt(rn({},gt),{examination_bank:ht.payload});case"deleteQuestionType":{const{item_types:Pn}=gt,hn=Pn.filter(kt=>kt.item_type!==ht.payload);return gt.examination_bank.question_count=Ue(hn.reduce((kt,dn)=>kt+dn.item_bank_count,0)),gt.examination_bank.total_score=Ue(hn.reduce((kt,dn)=>kt+dn.total_score,0)),Pt(rn({},gt),{item_types:hn})}case"setQuestionType":{const{item_types:Pn=[]}=gt,hn=Pn.map(dn=>dn.item_type),kt=Pn.filter(dn=>ht.payload.includes(dn.item_type));for(const dn of ht.payload)hn.includes(dn)||(dn==="PRACTICAL"?kt.push({item_type:dn,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:It[dn],random_rule_type:Ke.Shixun,score:0,total_score:0}):kt.push({item_type:dn,contents:[],item_bank_count:0,item_type_text:It[dn],score:0,total_score:0}));return Pt(rn({},gt),{item_types:kt})}case"updateItemTypes":return Pt(rn({},gt),{item_types:ht.payload});case"deleteRule":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(dn=>dn.item_type===ht.payload.itemType),kt=hn.contents.find(dn=>dn.id===ht.payload.id&&dn.is_share==ht.payload.is_share);return hn.contents=hn.contents.filter(dn=>dn!==kt),((zt=hn.contents)==null?void 0:zt.length)===0&&(hn.random_rule_type=[]),hn.item_bank_count-=kt==null?void 0:kt.quanlity,Pn.examination_bank.question_count-=kt==null?void 0:kt.quanlity,hn.total_score-=(kt==null?void 0:kt.quanlity)*hn.score,Pn.examination_bank.total_score-=(kt==null?void 0:kt.quanlity)*hn.score,hn.total_score=Ue(hn.total_score),Pn.examination_bank.total_score=Ue(Pn.examination_bank.total_score),Pn.contents=hn.contents,Pn}case"changeQuestionNum":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(or=>or.item_type===ht.payload.itemType),kt=(wn=hn==null?void 0:hn.contents)==null?void 0:wn.find(or=>or.id===ht.payload.id);if(ht.payload.itemType==="PRACTICAL")return ht.payload.num&&(Pn.examination_bank.question_count=Pn.examination_bank.question_count-hn.item_bank_count+ht.payload.num,Pn.examination_bank.total_score=Ue(Pn.examination_bank.total_score-hn.total_score+ht.payload.num*hn.score)),ht.payload.score&&(Pn.examination_bank.total_score=Ue(Pn.examination_bank.total_score-hn.total_score+ht.payload.num*hn.score)),hn.item_bank_count=ht.payload.num,hn.total_score=Ue(hn.item_bank_count*hn.score),Pn;Pn.examination_bank.question_count=Pn.examination_bank.question_count-(kt==null?void 0:kt.quanlity)+ht.payload.num;const dn=hn.contents.find(or=>or.id===ht.payload.id&&or.teacher_group_id===ht.payload.teacher_group_id);dn.quanlity=ht.payload.num;let _n=0,la=0;for(const or of hn.contents)_n+=or==null?void 0:or.quanlity,la+=(or==null?void 0:or.quanlity)*hn.score;return Pn.examination_bank.total_score=Ue(Pn.examination_bank.total_score-hn.total_score+la),hn.item_bank_count=_n,hn.total_score=Ue(la),Pn}case"changeQuestionScore":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(kt=>kt.item_type===ht.payload.itemType);return hn.score=ht.payload.score,hn.total_score=Ue(hn.item_bank_count*hn.score),Pn.examination_bank.total_score=Ue(Pn.item_types.reduce((kt,dn)=>kt+dn.total_score,0)),Pn}case"editRule":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(kt=>kt.item_type===ht.payload.itemType);return hn.contents=ht.payload.tableData.map(kt=>Pt(rn({},kt),{item_type:ht.payload.itemType,random_rule_type:ht.payload.randomRuleType})),hn.random_rule_type=ht.payload.randomRuleType,hn.item_bank_count=hn.contents.reduce((kt,dn)=>kt+(dn==null?void 0:dn.quanlity),0),hn.score=hn.score||1,hn.total_score=Ue(hn.item_bank_count*hn.score),Pn.examination_bank.question_count=Pn.item_types.reduce((kt,dn)=>kt+dn.item_bank_count,0),Pn.examination_bank.total_score=Ue(Pn.item_types.reduce((kt,dn)=>kt+dn.total_score,0)),Pn}case"addShixun":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(kt=>kt.item_type==="PRACTICAL");return hn.item_banks=ht.payload.shixunList,Pn.examination_bank.question_count=Pn.examination_bank.question_count+1,hn.item_bank_num=hn.item_banks.length,hn.item_bank_count=hn.item_bank_count||1,hn.score=hn.score||1,hn.total_score=hn.total_score||hn.score*hn.item_bank_count,Pn.examination_bank.total_score=(Dn=Pn==null?void 0:Pn.item_types)==null?void 0:Dn.map(kt=>kt.total_score).reduce((kt,dn)=>kt+dn),Pn}case"deleteShixunQuestion":{const Pn=(0,$e.cloneDeep)(gt),hn=Pn.item_types.find(kt=>kt.item_type==="PRACTICAL");return hn.item_banks=hn.item_banks.filter(kt=>kt.id!==ht.payload.shixunId),hn.item_bank_num-=1,hn.item_bank_count>hn.item_bank_num&&(hn.item_bank_count-=1,hn.total_score-=hn.score,hn.total_score=Ue(hn.total_score)),Pn}}};var ve=ae(14670),tt=Object.defineProperty,At=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,_e=(gt,ht,zt)=>ht in gt?tt(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,Et=(gt,ht)=>{for(var zt in ht||(ht={}))vt.call(ht,zt)&&_e(gt,zt,ht[zt]);if(Ce)for(var zt of Ce(ht))Ye.call(ht,zt)&&_e(gt,zt,ht[zt]);return gt},cn=(gt,ht)=>At(gt,we(ht)),Lt=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())}),Yt=({courseOptions:gt,setCurrentKey:ht,loading:zt,form:wn})=>{const{data:Dn,disabled:Pn,dispatch:hn}=(0,b.useContext)(Be),kt=(0,Oe.useParams)(),dn=(0,b.useRef)(!0),[_n,la]=(0,b.useState)(!1),or=(0,b.useMemo)(()=>{var Qa,ao,Fr,Ia,ca;if(!gt.length||!Dn)return;const Kn=(Qa=Dn==null?void 0:Dn.examination_bank)==null?void 0:Qa.sub_discipline_id,sr=((ao=Dn==null?void 0:Dn.examination_bank)==null?void 0:ao.time)===-1?void 0:dn.current?kt.id?(Fr=Dn==null?void 0:Dn.examination_bank)==null?void 0:Fr.time:((Ia=Dn==null?void 0:Dn.examination_bank)==null?void 0:Ia.time)||60:(ca=Dn==null?void 0:Dn.examination_bank)==null?void 0:ca.time;dn.current=!1;let mr=[];for(const Br of gt)for(const Jr of Br.children)Jr.value===Kn&&(mr=[Br.value,Jr.value]);return cn(Et({},Dn.examination_bank),{time:sr,course:mr})},[Dn,gt]);return(0,b.useEffect)(()=>{wn.setFieldsValue(Et({},or))},[or]),b.createElement(ke.Z,{spinning:zt,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},b.createElement("div",{className:se.formWrap},b.createElement(Ae.default,{form:wn,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:or||{difficulty:2,time:60},onValuesChange:(Qa,ao)=>{const{course:Fr=[]}=ao,Ia=cn(Et({},ao),{sub_discipline_id:Fr[1]||0});hn({type:"updateBaseInfo",payload:Ia})}},b.createElement(Ae.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:se.baseLineHeight,rules:[{required:!0,validator:(Qa,ao)=>{var Fr;return((Fr=ao==null?void 0:ao.replaceAll(" ",""))==null?void 0:Fr.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},b.createElement(We.default,{maxLength:60,className:se.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),b.createElement(Ae.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"course",className:se.baseLineHeight},b.createElement(Te.Z,{className:se.baseFormItem,disabled:Pn,size:"large",allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:gt,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),b.createElement("div",{className:se.concat},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",b.createElement("span",{onClick:()=>la(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406")),b.createElement(Ae.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:se.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},b.createElement(He.ZP.Group,{disabled:Pn,className:se.radiogroup},b.createElement(He.ZP.Button,{className:se.easy,value:1},"\u7B80\u5355"),b.createElement(He.ZP.Button,{className:se.medium,value:2},"\u9002\u4E2D"),b.createElement(He.ZP.Button,{className:se.hard,value:3},"\u56F0\u96BE"))),b.createElement(Ae.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:se.baseLineHeight},b.createElement(Ze.Z,{align:"middle"},b.createElement(Ae.default.Item,{name:"time",noStyle:!0},b.createElement(De.Z,{className:se.baseFormItem,min:1,disabled:Pn,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),b.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),b.createElement(Ae.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},b.createElement(We.default.TextArea,{rows:6,disabled:Pn,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),b.createElement("div",{className:se.fixedBottom},b.createElement(le.ZP,{className:`${se.cancelBtn} mr5`,onClick:()=>{kt.id||window.location.href.indexOf("randompaper")>-1?Oe.history.push("/paperlibrary"):Oe.history.push(`/classrooms/${kt.coursesId}/exercise`)}},"\u53D6\u6D88"),b.createElement(le.ZP,{className:`${se.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Lt(void 0,null,function*(){if(yield wn.validateFields(),!kt.id&&!kt.coursesId){const Qa=yield ge(Dn);Qa.status===0&&(Oe.history.replace(`/randompaper/edit/${Qa==null?void 0:Qa.examination_bank_id}?type=settings`),ht("settings"))}else ht("settings")})},"\u4E0B\u4E00\u6B65")),b.createElement(ve.Z,{open:_n,onCancel:()=>{la(!1)}}))},nn=ae(43418),bt=ae(43604),on={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},An=ae(97267),Zt=ae(78258),wt=ae(24905);const Nn=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var Wn=({open:gt,onCancel:ht,onOk:zt})=>{const{data:wn,dispatch:Dn}=(0,b.useContext)(Be);(0,b.useEffect)(()=>{if(gt){const{item_types:kt}=wn||{};hn(kt==null?void 0:kt.map(dn=>dn.item_type))}},[gt,wn]);const[Pn,hn]=(0,b.useState)([]);return b.createElement(nn.default,{title:b.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",b.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:gt,onCancel:ht,onOk:()=>zt(Pn)},b.createElement(wt.default.Group,{value:Pn,onChange:kt=>hn(kt)},b.createElement(Ze.Z,{gutter:[0,20]},Nn.map(kt=>b.createElement(bt.Z,{key:kt.value,span:6},b.createElement(wt.default,{value:kt.value},kt.label))))))},Yn=ae(1710),xa=Object.defineProperty,ln=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Zn=(gt,ht,zt)=>ht in gt?xa(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,xn=(gt,ht)=>{for(var zt in ht||(ht={}))en.call(ht,zt)&&Zn(gt,zt,ht[zt]);if(ln)for(var zt of ln(ht))pn.call(ht,zt)&&Zn(gt,zt,ht[zt]);return gt},Wa=({open:gt,onCancel:ht,onOk:zt})=>{const{data:wn}=(0,b.useContext)(Be),[Dn,Pn]=(0,b.useState)();console.log("--xxx-",Dn),(0,b.useEffect)(()=>{gt&&Pn((0,$e.cloneDeep)(wn))},[gt,wn]);const hn=(0,b.useMemo)(()=>{var kt;let dn;return dn=(kt=Dn==null?void 0:Dn.item_types)==null?void 0:kt.map(_n=>_n.total_score).reduce((_n,la)=>parseFloat(_n)+parseFloat(la)),dn==null?void 0:dn.toFixed(1)},[Dn]);return gt?b.createElement(nn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:gt,width:640,centered:!0,closable:!0,onCancel:ht,onOk:()=>{zt(Dn)}},b.createElement("div",{className:"c-black mb20"},"\u603B\u5206",b.createElement("span",{className:"ml10 c-light-primary"},hn)),b.createElement(Yn.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(kt,dn){const{score:_n,item_type:la}=dn;return b.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((dn==null?void 0:dn.item_type)==="PRACTICAL","\u9898"),b.createElement(De.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(dn==null?void 0:dn.item_bank_count)===0,max:100,onChange:or=>{const Qa=Dn,ao=Qa.item_types.find(Ia=>Ia.item_type===la);ao.score=Number(or);const Fr=or*ao.item_bank_count;ao.total_score=Fr&&Number(Fr.toFixed(1)),Qa.examination_bank.total_score=Qa.item_types.reduce((Ia,ca)=>Number(Ia)+Number(ca.total_score),0),Pn(xn({},Qa))}}),"\u5206")}}],className:on.setScoreModalTable,dataSource:Dn==null?void 0:Dn.item_types,rowKey:"item_type",pagination:!1})):null},ta=ae(99313),yn=ae(57809),Oa=ae(17574),Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UEFJ5cugjbQChIqokWKClVrFDGIg2B8yZX3Xl/z/O5LzvfyKhTJXV7g/jrfOfc797sx1toCNnAzQ4A51RkymJNA/CcMvpoYhf0xDWtPwqICWEKM+QSYGgojt3Hw3mweFjmD9YlR+N8WAJSdjYwBrAWCb1oL+jzvMbzSFKoPBgLKAc6dugPbuRDtHzAXgGEMxmjjsXEAYr4MMOw2DcA8wcjWG6g+XOEAZ8c+wNpKtCXZMI+WMn6DJrbsOMQBPtrr9ySM4ZX9LEApkOfd5QBntvvhuhqFswKOz2/wDQWSZ9o0FADLfji5fBTYPwmUduYVMmV+IrLWF2DpFtCcizDTu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pEmVJjzOm8aqwLpNM69vqx9ck337G8AML8BTsQQKHNL7CX50KavNqljbfnaYDfuiHnptr03jfX6O9qSAe2DNCjm8s034hocrbLEIa2jRVp22iRupxXpY7kBK1HG7wcY4a1EHerMqmXFz6aZW9bHWTBCbmHaTLGHATrq5YbarSJai2usbMt86+EJ7aW6bHNJZq61qU5JrplNPnp8OlPNfryHL8xS1/QFRsPsBg5eMH3WyzRYcJ5S0ZWy5grqho/cjG+WjdU51+/adsG3x8fb9AbX1TlEZMmx8D0zP1ld9A4TioeyTcvYoOWxfcJCrEcB0T3Edhqm5clvtg4TRLjGX4c/jblH6h8ztCawRwFjI1tBI0PyKoW4nzvPWZ03zE7tgGhRMf1tx2xPHt6wlNI2a0b/g/k/BV9hgiUXOq8HS5ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",tn={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},Sn=ae(2908),mn=Object.defineProperty,lt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,an=(gt,ht,zt)=>ht in gt?mn(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,kn=(gt,ht)=>{for(var zt in ht||(ht={}))Kt.call(ht,zt)&&an(gt,zt,ht[zt]);if(ct)for(var zt of ct(ht))vn.call(ht,zt)&&an(gt,zt,ht[zt]);return gt},Fn=(gt,ht)=>lt(gt,pt(ht)),Bn=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())});const Un=(gt,ht,zt)=>gt.map(wn=>wn.key===ht?kn(kn({},wn),zt):wn.children?Fn(kn({},wn),{children:Un(wn.children,ht,zt)}):wn),Ra={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},bn=(gt,ht,zt)=>gt.map(wn=>{var Dn;const Pn=wn==null?void 0:wn.tag_disciplines.map(kt=>{const dn=kt==null?void 0:kt.difficulty_count.map(_n=>({label:_n==null?void 0:_n.name,value:Ra[_n.name]}));return{title:Ct(ht)===Ke.All&&dn.length>0?b.createElement(Ze.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${kt.name}\uFF08${kt.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:dn})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"diffNum"],initialValue:kt==null?void 0:kt.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"extra"],initialValue:Fn(kn({},wn),{type:zt})},b.createElement("input",{type:"hidden"})))):`${kt.name}\uFF08${kt.child_count}\uFF09`,key:`${wn.id}_${kt.id}`,name:kt.name,parentName:wn.name,item_banks_count:kt.child_count,icon:null,isLeaf:!0,checkable:Ct(ht)===Ke.FileFolderAndKnowledge,disableCheckbox:kt.child_count===0}}),hn=wn==null?void 0:wn.difficulty_count.map(kt=>({label:kt==null?void 0:kt.name,value:Ra[kt.name]}));return{title:Ct(ht)===Ke.FileFolderAndDiff&&hn.length>0?b.createElement(Ze.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${wn.name}\uFF08${wn.item_banks_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:hn})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"diffNum"],initialValue:wn==null?void 0:wn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"extra"],initialValue:Fn(kn({},wn),{type:zt})},b.createElement("input",{type:"hidden"})))):`${wn.name}\uFF08${wn.item_banks_count}\uFF09`,key:`${wn.id}`,name:wn.name,item_banks_count:wn.item_banks_count,icon:kt=>kt.expanded?zt==="0"?b.createElement("img",{src:Ft,className:tn.folderIcon}):b.createElement("img",{src:Ht,className:tn.shareFolderIcon}):zt==="0"?b.createElement("img",{src:Ve,className:tn.folderIcon}):b.createElement("img",{src:Vt,className:tn.shareFolderIcon}),isLeaf:!wn.have_child&&!((Dn=wn.tag_disciplines)!=null&&Dn.length),checkable:Ct(ht)===Ke.OnlyFileFolder,disableCheckbox:wn.item_banks_count===0,children:wn.children.length?Ct(ht)===Ke.All||Ct(ht)===Ke.FileFolderAndKnowledge?[...bn(wn.children,ht,zt),...Pn]:bn(wn.children,ht,zt):[]}}),pa=(gt,ht,zt)=>gt.map(wn=>{var Dn;const Pn=wn==null?void 0:wn.tag_disciplines.map(kt=>{console.log("tagItem:",kt);const dn=kt==null?void 0:kt.difficulty_count.map(_n=>({label:_n==null?void 0:_n.name,value:Ra[_n.name]}));return{title:Ct(ht)===Ke.All&&dn.length>0?b.createElement(Ze.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${kt.name}\uFF08${kt.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:dn})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"diffNum"],initialValue:kt==null?void 0:kt.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}_${kt.id}`,"extra"],initialValue:Fn(kn({},wn),{type:zt})},b.createElement("input",{type:"hidden"})))):`${kt.name}\uFF08${kt.child_count}\uFF09`,key:`${wn.id}_${kt.id}`,name:kt.name,parentName:wn.name,item_banks_count:kt.child_count,icon:null,isLeaf:!0,checkable:Ct(ht)===Ke.FileFolderAndKnowledge,disableCheckbox:kt.child_count===0}}),hn=wn==null?void 0:wn.difficulty_count.map(kt=>({label:kt==null?void 0:kt.name,value:Ra[kt.name]}));return{title:Ct(ht)===Ke.FileFolderAndDiff&&hn.length>0?b.createElement(Ze.Z,{justify:"space-between"},b.createElement(bt.Z,null,`${wn.name}\uFF08${wn.item_banks_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:hn})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"diffNum"],initialValue:wn==null?void 0:wn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`${wn.id}`,"extra"],initialValue:Fn(kn({},wn),{type:zt})},b.createElement("input",{type:"hidden"})))):`${wn.name}\uFF08${wn.item_banks_count}\uFF09`,key:`${wn.id}`,name:wn.name,item_banks_count:wn.item_banks_count,icon:kt=>kt.expanded?zt==="0"?b.createElement("img",{src:Ft,className:tn.folderIcon}):b.createElement("img",{src:Ht,className:tn.shareFolderIcon}):zt==="0"?b.createElement("img",{src:Ve,className:tn.folderIcon}):b.createElement("img",{src:Vt,className:tn.shareFolderIcon}),isLeaf:!wn.have_child&&!((Dn=wn.tag_disciplines)!=null&&Dn.length),checkable:Ct(ht)===Ke.OnlyFileFolder,disableCheckbox:wn.item_banks_count===0,children:[...pa(wn.children,ht,zt),...Pn]}});var lr=({ruleValue:gt,defaultData:ht,setSelectData:zt,currentItemType:wn,selectData:Dn})=>{const[Pn,hn]=(0,b.useState)("1"),[kt,dn]=(0,b.useState)(!0),[_n]=Ae.default.useForm(),[la,or]=(0,b.useState)([]),[Qa,ao]=(0,b.useState)("all"),Fr=(fn,On,Xn)=>{const{checkedNodes:Hn}=On;console.log("type:",Xn,Hn,Dn),Xn==="0"?(ca(fn),Ct(gt)===Ke.OnlyFileFolder?(zt(Tn=>Fn(kn({},Tn),{my:Hn.map(un=>({id:un.key,group_id:un.key,group_name:un.name,item_bank_num:un.item_banks_count,folderType:"0",quanlity:1}))})),xt(Hn.reduce((Tn,un)=>Tn+un.item_banks_count,0))):(console.log(Hn),zt(Tn=>Fn(kn({},Tn),{my:Hn.map(un=>{const[Gn,da]=un.key.split("_");return{id:un.key,tag_discipline_name:un.name,group_id:Gn,tag_discipline_id:da,folderType:"0",group_name:un.parentName,item_bank_num:un.item_banks_count,quanlity:1}})})),xt(Hn.reduce((Tn,un)=>Tn+un.item_banks_count,0)))):(sr(fn),Ct(gt)===Ke.OnlyFileFolder?zt(Tn=>(console.log("pre:",Tn),Fn(kn({},Tn),{public:Hn.map(un=>({id:un.key==="0"?"00":un.key,teacher_group_name:un.name,teacher_group_id:un.key,folderType:"3",item_bank_num:un.item_banks_count,quanlity:1}))}))):zt(Tn=>Fn(kn({},Tn),{public:Hn.map(un=>{const[Gn,da]=un.key.split("_");return{id:un.key==="0"?"00":un.key,tag_discipline_name:un.name,teacher_group_id:Gn,tag_discipline_id:da,folderType:"3",teacher_group_name:un.parentName,item_bank_num:un.item_banks_count,quanlity:1}})})),xt(Hn.reduce((Tn,un)=>Tn+un.item_banks_count,0)))},[Ia,ca]=(0,b.useState)([]),[Kn,sr]=(0,b.useState)([]),[mr,Br]=(0,b.useState)([]),[Jr,dr]=(0,b.useState)([]),[kr,cr]=(0,b.useState)([]),[ya,yr]=(0,b.useState)([]),[Vr,bo]=(0,b.useState)(!1),[ri,ji]=(0,b.useState)(!1);function ze(){return Bn(this,null,function*(){let fn=yield(0,E.ZP)("/api/teach_group_shares.json",{method:"get"});fn&&or(fn==null?void 0:fn.groups)})}(0,b.useEffect)(()=>{ze()},[]);const at=fn=>Bn(void 0,null,function*(){var On,Xn,Hn,Tn,un,Gn,da,qa,Ya,Qn,Vn,Ln;fn.type==="0"?bo(!0):ji(!0);const jn=yield(0,Sn.ex)(fn);fn.type==="0"?bo(!1):ji(!1),fn.type==="0"?cr(jn):yr(jn);const Fa=(On=jn.navigation[0])==null?void 0:On.difficulty_count.map(ba=>({label:ba==null?void 0:ba.name,value:Ra[ba.name]})),rr=(Xn=jn.navigation[0])==null?void 0:Xn.tag_disciplines.map(ba=>{const aa=ba==null?void 0:ba.difficulty_count.map(fa=>({label:fa==null?void 0:fa.name,value:Ra[fa.name]}));return{title:Ct(gt)===Ke.All&&aa.length>0?b.createElement(Ze.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(bt.Z,null,`${ba.name}\uFF08${ba.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:[`0_${ba.id}`,"diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:aa})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`0_${ba.id}`,"diffNum"],initialValue:ba==null?void 0:ba.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:[`0_${ba.id}`,"extra"],initialValue:{tag_discipline_name:ba.name,name:"\u6839\u76EE\u5F55",type:fn.type}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},ba.name,"\uFF08",ba.child_count,"\uFF09"),key:`0_${ba.id}`,name:ba.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:ba.child_count,icon:null,isLeaf:!0,checkable:Ct(gt)===Ke.FileFolderAndKnowledge,disableCheckbox:ba.child_count===0}});if(fn.type==="0"){const ba=bn(jn.data,gt,"0"),aa=pa(jn.data,gt,"0");console.log("normalChildren2:",aa),Br([{title:Ct(gt)===Ke.FileFolderAndDiff?b.createElement(Ze.Z,{justify:"space-between",style:{color:"#232B40"}},b.createElement(bt.Z,null,`\u6839\u76EE\u5F55\uFF08${(Hn=jn.navigation[0])==null?void 0:Hn.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},b.createElement(wt.default.Group,{style:{columnGap:12},options:Fa})),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Tn=jn.navigation[0])==null?void 0:Tn.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(un=jn.navigation[0])==null?void 0:un.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Gn=jn.navigation[0])==null?void 0:Gn.child_count,disabled:!(((da=jn.navigation[0])==null?void 0:da.child_count)>0),checkable:Ct(gt)===Ke.OnlyFileFolder,icon:fa=>fa.expanded?b.createElement("img",{src:Ft,className:tn.folderIcon}):b.createElement("img",{src:Ve,className:tn.folderIcon}),isLeaf:!1,children:Ct(gt)===Ke.OnlyFileFolder||Ct(gt)===Ke.FileFolderAndDiff?ba:[...aa,...rr]}])}else{const ba=bn(jn.data,gt,"3");dr([{title:Ct(gt)===Ke.FileFolderAndDiff?b.createElement(Ze.Z,{justify:"space-between"},b.createElement(bt.Z,null,`\u6839\u76EE\u5F55\uFF08${(qa=jn.navigation[0])==null?void 0:qa.child_count}\uFF09`),b.createElement(bt.Z,null,b.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","diffValue"]},b.createElement(wt.default.Group,{style:{columnGap:12},options:Fa})),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Ya=jn.navigation[0])==null?void 0:Ya.difficulty_count},b.createElement("input",{type:"hidden"})),b.createElement(Ae.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},b.createElement("input",{type:"hidden"})))):b.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(Qn=jn.navigation[0])==null?void 0:Qn.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(Vn=jn.navigation[0])==null?void 0:Vn.child_count,checkable:Ct(gt)===Ke.OnlyFileFolder,icon:aa=>aa.expanded?b.createElement("img",{src:Ht,className:tn.shareFolderIcon}):b.createElement("img",{src:Vt,className:tn.shareFolderIcon}),isLeaf:!1,disabled:!(((Ln=jn.navigation[0])==null?void 0:Ln.child_count)>0),children:Ct(gt)===Ke.OnlyFileFolder||Ct(gt)===Ke.FileFolderAndDiff?ba:[...ba,...rr]}])}});(0,b.useEffect)(()=>{Pn==="1"?at({type:"0",group_id:0,item_type:wn,show_children:!0}):Pn==="2"&&at({type:"3",except_mine:!0,item_type:wn,show_children:!0,teach_group_id:Qa==="all"?"":Qa})},[gt,Pn,Qa]),(0,b.useEffect)(()=>{var fn,On,Xn,Hn,Tn,un,Gn,da,qa,Ya,Qn,Vn;console.log("selectData-active:",Dn,ht,Pn),Pn==="1"?(ca((fn=Dn==null?void 0:Dn.my)==null?void 0:fn.map(Ln=>Ln.id)),xt(((Xn=(On=Dn==null?void 0:Dn.my)==null?void 0:On.reduce)==null?void 0:Xn.call(On,(Ln,jn)=>Ln+jn.item_bank_num,0))||0)):Pn==="2"&&(sr((Hn=Dn==null?void 0:Dn.public)==null?void 0:Hn.map(Ln=>Ln.id)),xt(((un=(Tn=Dn==null?void 0:Dn.public)==null?void 0:Tn.reduce)==null?void 0:un.call(Tn,(Ln,jn)=>Ln+jn.item_bank_num,0))||0)),Ct(gt)===Ke.All&&(Pn==="1"?(ca((Gn=Dn==null?void 0:Dn.my)==null?void 0:Gn.map(Ln=>Ln.id)),xt((Dn==null?void 0:Dn.filter(Ln=>!Ln.is_share).reduce((Ln,jn)=>Ln+jn.item_bank_num,0))||0),(da=Dn==null?void 0:Dn.filter(Ln=>!Ln.is_share))==null||da.forEach(Ln=>{const jn=_n.getFieldValue([`${Ln.group_id||0}_${Ln.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",jn),jn!=null&&jn.includes[Ln.difficulty]||_n.setFieldValue([`${Ln.group_id||0}_${Ln.tag_discipline_id}`,"diffValue"],Array.from(new Set([...jn,Ln.difficulty])))})):Pn==="2"&&(sr((qa=Dn==null?void 0:Dn.public)==null?void 0:qa.map(Ln=>Ln.id)),xt((Dn==null?void 0:Dn.filter(Ln=>!!Ln.is_share).reduce((Ln,jn)=>Ln+jn.item_bank_num,0))||0),(Ya=Dn==null?void 0:Dn.filter(Ln=>!!Ln.is_share))==null||Ya.forEach(Ln=>{const jn=_n.getFieldValue([`${Ln.teacher_group_id||0}_${Ln.tag_discipline_id}`,"diffValue"])||[];jn!=null&&jn.includes[Ln.difficulty]||_n.setFieldValue([`${Ln.teacher_group_id||0}_${Ln.tag_discipline_id}`,"diffValue"],Array.from(new Set([...jn,Ln.difficulty])))}))),Ct(gt)===Ke.FileFolderAndDiff&&(_n.resetFields(),setTimeout(()=>{zt(Dn)},300),Pn==="1"?(xt((Dn==null?void 0:Dn.filter(Ln=>!Ln.is_share).reduce((Ln,jn)=>Ln+jn.item_bank_num,0))||0),(Qn=Dn==null?void 0:Dn.filter(Ln=>!Ln.is_share))==null||Qn.forEach(Ln=>{const jn=_n.getFieldValue([`${Ln.group_id}`,"diffValue"])||[];console.log("prev:",jn),jn!=null&&jn.includes[Ln.difficulty]||_n.setFieldValue([`${Ln.group_id}`,"diffValue"],Array.from(new Set([...jn,Ln.difficulty])))})):(xt((Dn==null?void 0:Dn.filter(Ln=>!!Ln.is_share).reduce((Ln,jn)=>Ln+jn.item_bank_num,0))||0),(Vn=Dn==null?void 0:Dn.filter(Ln=>!!Ln.is_share))==null||Vn.forEach(Ln=>{const jn=_n.getFieldValue([`${Ln.teacher_group_id}`,"diffValue"])||[];jn!=null&&jn.includes[Ln.difficulty]||_n.setFieldValue([`${Ln.teacher_group_id}`,"diffValue"],Array.from(new Set([...jn,Ln.difficulty])))})))},[Pn]),console.log("1111111111:",Ia,Kn),(0,b.useEffect)(()=>{setTimeout(()=>{var fn,On,Xn,Hn,Tn;switch(Ct(gt)){case Ke.OnlyFileFolder:{const un=[],Gn=[];for(const da of Dn.my||[])un.push(da);for(const da of Dn.public||[])Gn.push(da);ca(un.map(da=>`${da.group_id}`)),sr(Gn.map(da=>`${da.teacher_group_id}`)),xt(Pn==="1"?un.reduce((da,qa)=>da+qa.item_bank_num,0):Gn.reduce((da,qa)=>da+qa.item_bank_num,0));break}case Ke.FileFolderAndKnowledge:{const un=[],Gn=[];for(const da of(Dn==null?void 0:Dn.my)||[])un.push(da);for(const da of(Dn==null?void 0:Dn.public)||[])Gn.push(da);xt((fn=Pn==="1"?un:Gn)==null?void 0:fn.reduce((da,qa)=>da+qa.item_bank_num,0)),ca(un.map(da=>`${da.group_id}_${da.tag_discipline_id}`)),sr(Gn.map(da=>`${da.teacher_group_id}_${da.tag_discipline_id}`));break}case Ke.All:{Pn==="1"?(xt((Dn==null?void 0:Dn.filter(un=>!un.is_share).reduce((un,Gn)=>un+Gn.item_bank_num,0))||0),(On=Dn==null?void 0:Dn.filter(un=>!un.is_share))==null||On.forEach(un=>{const Gn=_n.getFieldValue([`${un.group_id||0}_${un.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Gn,un.difficulty,un),Gn!=null&&Gn.includes[un.difficulty]||_n.setFieldValue([`${un.group_id||0}_${un.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Gn,un.difficulty])))})):(xt((Dn==null?void 0:Dn.filter(un=>!!un.is_share).reduce((un,Gn)=>un+Gn.item_bank_num,0))||0),(Xn=Dn==null?void 0:Dn.filter(un=>!!un.is_share))==null||Xn.forEach(un=>{const Gn=_n.getFieldValue([`${un.group_id||0}_${un.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Gn,un.difficulty,un),Gn!=null&&Gn.includes[un.difficulty]||_n.setFieldValue([`${un.group_id||0}_${un.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Gn,un.difficulty])))}));break}case Ke.FileFolderAndDiff:{Pn==="1"?(xt((Dn==null?void 0:Dn.filter(un=>!un.is_share).reduce((un,Gn)=>un+Gn.item_bank_num,0))||0),(Hn=Dn==null?void 0:Dn.filter(un=>!un.is_share))==null||Hn.forEach(un=>{const Gn=_n.getFieldValue([`${un.group_id}`,"diffValue"])||[];console.log("prev:",Gn,un.difficulty),Gn!=null&&Gn.includes[un.difficulty]||_n.setFieldValue([`${un.group_id}`,"diffValue"],Array.from(new Set([...Gn,un.difficulty])))})):(xt((Dn==null?void 0:Dn.filter(un=>!!un.is_share).reduce((un,Gn)=>un+Gn.item_bank_num,0))||0),(Tn=Dn==null?void 0:Dn.filter(un=>!!un.is_share))==null||Tn.forEach(un=>{const Gn=_n.getFieldValue([`${un.group_id}`,"diffValue"])||[];Gn!=null&&Gn.includes[un.difficulty]||_n.setFieldValue([`${un.group_id}`,"diffValue"],Array.from(new Set([...Gn,un.difficulty])))}));break}}},800)},[ht,gt,mr,Jr]);const[mt,xt]=(0,b.useState)(0);return b.createElement(Ae.default,{form:_n,onValuesChange:(fn,On)=>Bn(void 0,null,function*(){var Xn,Hn,Tn,un;console.log("onValuesChange:",On,fn);let Gn=0;if(Ct(gt)===Ke.FileFolderAndDiff){const da=yield _n.getFieldValue(),qa=[],Ya=[];for(const Vn of Object.keys(da))if((Hn=(Xn=da[Vn])==null?void 0:Xn.diffValue)!=null&&Hn.length&&Vn!=="null"&&Vn!==null){const Ln=da[Vn];qa.push(kn({id:Vn},Ln))}const Qn={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};qa.map(Vn=>{var Ln,jn,Fa,rr,ba;Vn.id==0&&(Vn.diffNum=Pn==="1"?(jn=(Ln=kr==null?void 0:kr.navigation)==null?void 0:Ln[0])==null?void 0:jn.difficulty_count:(rr=(Fa=ya==null?void 0:ya.navigation)==null?void 0:Fa[0])==null?void 0:rr.difficulty_count),(ba=Vn==null?void 0:Vn.diffValue)==null||ba.map(aa=>{var fa,ra,va,Ir,lo;const Fo={group_name:((fa=Vn.extra)==null?void 0:fa.name)||"",teacher_group_name:"",id:`${Vn.id}_${aa}`,group_id:Vn.id,difficulty:aa,item_bank_num:(Ir=(va=(ra=Vn.diffNum)==null?void 0:ra.filter(qo=>qo.name===Qn[aa]))==null?void 0:va[0])==null?void 0:Ir.value};Pn==="2"&&(Fo.is_share=!0,Fo.teacher_group_id=Vn.id,Fo.teacher_group_name=(lo=Vn.extra)==null?void 0:lo.name),Ya.push(Fo)})}),Gn=Ya.reduce((Vn,Ln)=>Vn+Ln.item_bank_num,0),zt([...Ya,...Dn==null?void 0:Dn.filter(Vn=>Pn==="1"?Vn.is_share:!Vn.is_share)])}else if(Ct(gt)===Ke.All){const da=[];for(const qa of Object.keys(On)){const{diffNum:Ya=[],diffValue:Qn=[],extra:Vn={}}=On[qa];console.log("---",Vn);const[Ln,jn]=qa.split("_");let Fa=(un=(Tn=Vn.tag_disciplines)==null?void 0:Tn.filter(rr=>parseInt(rr.id)===parseInt(jn)))==null?void 0:un[0];Qn.forEach(rr=>{var ba;const aa={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},fa=(ba=Ya==null?void 0:Ya.find(va=>va.name===aa[rr]))==null?void 0:ba.value,ra={group_name:"",teacher_group_name:"",tag_discipline_name:(Fa==null?void 0:Fa.name)||Vn.tag_discipline_name,id:`${qa}_${rr}`,group_id:Ln,is_share:!!(Fa!=null&&Fa.is_share||(Vn==null?void 0:Vn.type)==="3"),tag_discipline_id:jn,difficulty:rr,item_bank_num:fa};Gn+=fa,Vn.type==="0"?ra.group_name=Vn.name:ra.teacher_group_name=Vn.name,Pn==="2"&&(ra.is_share=!0,ra.teacher_group_id=Vn.id||0,ra.teacher_group_name=Vn.name),fa>0&&da.push(ra)})}zt([...da,...Dn==null?void 0:Dn.filter(qa=>Pn==="1"?qa.is_share:!qa.is_share)])}xt(Gn)})},b.createElement(ta.default,{destroyInactiveTabPane:!0,activeKey:Pn,onChange:fn=>hn(fn),style:{minHeight:260},tabBarExtraContent:{right:Pn==="2"&&(la==null?void 0:la.length)>0&&b.createElement(yn.default,{onChange:fn=>{ao(fn)},value:Qa,style:{width:120}},b.createElement(yn.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),la==null?void 0:la.map(fn=>b.createElement(yn.default.Option,{key:fn==null?void 0:fn.group_id,value:fn==null?void 0:fn.group_id},fn==null?void 0:fn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(mr==null?void 0:mr.length)===0?b.createElement(ke.Z,{spinning:Vr},b.createElement(An.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:tn.folderAreaWrapper},b.createElement(Ze.Z,{justify:"space-between",align:"middle",className:tn.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",mt," "),"\u9898")),b.createElement(ke.Z,{spinning:Vr},b.createElement("div",{style:{minHeight:200}},mr.length>0&&b.createElement(Oa.default,{checkable:!0,className:tn.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(fn,On)=>Fr(fn,On,"0"),checkedKeys:Ia,checkStrictly:!0,treeData:mr,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(Jr==null?void 0:Jr.length)===0?b.createElement(ke.Z,{spinning:ri},b.createElement(An.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):b.createElement("div",{className:tn.folderAreaWrapper},b.createElement(Ze.Z,{justify:"space-between",align:"middle",className:tn.folderAreaHeader},b.createElement("span",null,"\u6587\u4EF6\u5939"),b.createElement("span",{className:"mr20"},"\u5DF2\u9009",b.createElement("span",{style:{color:"#3061D0"}}," ",mt||0," "),"\u9898")),b.createElement(ke.Z,{spinning:ri},b.createElement("div",{style:{minHeight:200}},(Jr==null?void 0:Jr.length)>0&&b.createElement(Oa.default,{checkable:!0,className:tn.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(fn,On)=>Fr(fn,On,"3"),checkedKeys:Kn,checkStrictly:!0,treeData:Jr,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},Jn=ae(69831),sn=ae(35427),Dr=Object.defineProperty,Ga=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,so=(gt,ht,zt)=>ht in gt?Dr(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,qr=(gt,ht)=>{for(var zt in ht||(ht={}))Lr.call(ht,zt)&&so(gt,zt,ht[zt]);if(Cr)for(var zt of Cr(ht))xr.call(ht,zt)&&so(gt,zt,ht[zt]);return gt},_o=(gt,ht)=>Ga(gt,Er(ht)),Mn=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())});const Mr={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Gr=({ruleValue:gt,setSelectData:ht,currentItemType:zt,defaultData:wn,isFirst:Dn})=>{const[Pn,hn]=(0,b.useState)([]),[kt,dn,_n,la]=(0,sn.U)(Ee,{source:"question",page:1,per_page:10,group_id:0,keyword:"",group_type:0,clazz:"ItemBanksGroup",sub_discipline_id:void 0,item_type:zt,show_children:!0});(0,b.useEffect)(()=>{Mn(void 0,null,function*(){const Kn=yield _n({},!0);hn((0,Jn.L)(Kn.disciplines))})},[]),console.log(wn),(0,b.useEffect)(()=>{if(Dn)switch(Ct(gt)){case Ke.OnlyKnowledge:{Ia(wn.map(Kn=>Kn.tag_discipline_id));break}case Ke.KnowledgeAndDiff:{const Kn=new Map;wn.forEach(sr=>{sr&&(Kn.has(sr.tag_discipline_id)?Kn.set(sr.tag_discipline_id,[...Kn.get(sr.tag_discipline_id),sr.difficulty]):Kn.set(sr.tag_discipline_id,[sr.difficulty]))});for(const[sr,mr]of Kn.entries())or.setFieldValue([sr,"diff"],mr);break}}},[wn,gt,Dn]);const[or]=Ae.default.useForm(),Qa=(0,b.useMemo)(()=>{const Kn=[];let sr="",mr="";const Br={};for(const Jr of(la==null?void 0:la.disciplines)||[]){sr=Jr.name;for(const dr of Jr.sub_disciplines){mr=dr.name;for(const kr of dr.tag_disciplines){const cr={sub_discipline_name:`${sr}&${mr}`,sub_discipline_id:dr.id,tag_discipline_name:kr.name,id:kr.id,item_bank_num:kr.total_count,difficulty_count:kr.difficulty_count,tag_discipline_id:kr.id};Kn.push(cr)}}}return Kn},[la,wn]),ao=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Kn,sr)=>{const{item_bank_num:mr}=sr;return b.createElement("div",null,Kn,`(${mr})`)}},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:gt.includes(Jt.Difficulty),render:(Kn,sr)=>{const{id:mr,difficulty_count:Br,total_count:Jr,sub_discipline_name:dr,tag_discipline_name:kr}=sr;return b.createElement(b.Fragment,null,b.createElement(Ae.default.Item,{name:[mr,"diff"],noStyle:!0},b.createElement(wt.default.Group,{style:{columnGap:12},options:Br.map(cr=>({label:cr.name,value:Mr[cr.name]}))})),b.createElement(Ae.default.Item,{name:[mr,"extra"],initialValue:{difficulty_count:Br,total_count:Jr,sub_discipline_name:dr,tag_discipline_name:kr},noStyle:!0},b.createElement("input",{type:"hidden"})))}}].filter(Kn=>Kn.show),[Fr,Ia]=(0,b.useState)([]),ca=(0,b.useRef)(new Map);return b.createElement("div",{style:{marginTop:12}},b.createElement(Ze.Z,{className:"mb20",align:"middle",gutter:20},b.createElement(bt.Z,null,b.createElement(Te.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",size:"large",style:{width:240},options:Pn,onChange:Kn=>{_n({sub_discipline_id:Kn==null?void 0:Kn[1]})}})),b.createElement(bt.Z,null,b.createElement(Zt.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:kt.keyword,onChange:Kn=>_n({keyword:Kn})}))),b.createElement(Ae.default,{form:or,onValuesChange:(Kn,sr)=>{var mr;console.log(sr),ca.current.clear();for(const Br of Object.keys(sr)){const Jr={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},dr=sr[Br],{difficulty_count:kr,total_count:cr}=dr.extra||{};(mr=dr==null?void 0:dr.diff)==null||mr.forEach(ya=>{var yr;const Vr=(yr=kr==null?void 0:kr.find(ri=>ri.name===Jr[ya]))==null?void 0:yr.value,bo=_o(qr({},dr.extra),{id:`${Br}_${ya}`,difficulty:ya,item_bank_num:Vr,tag_discipline_id:Br});Vr>0&&ca.current.set(`${Br}_${ya}`,bo)})}ht([...ca.current.values()])}},(Qa==null?void 0:Qa.length)===0?b.createElement(An.Z,{ButtonTwo:b.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):b.createElement(Yn.default,{rowSelection:Ct(gt)===Ke.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Kn,sr){console.log("table-selectedRowKeys:",Kn,sr),Ia(Kn),ht(sr)},getCheckboxProps:Kn=>({disabled:Kn.item_bank_num===0}),selectedRowKeys:Fr}:void 0,columns:ao,dataSource:Qa,loading:dn,scroll:{y:480},rowKey:"id",pagination:!1})))},za=Object.defineProperty,$n=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,ga=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,Hr=(gt,ht,zt)=>ht in gt?za(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,oo=(gt,ht)=>{for(var zt in ht||(ht={}))ga.call(ht,zt)&&Hr(gt,zt,ht[zt]);if(ja)for(var zt of ja(ht))fr.call(ht,zt)&&Hr(gt,zt,ht[zt]);return gt},Tr=(gt,ht)=>$n(gt,Aa(ht)),co=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())});const ni={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var _i=({open:gt,onCancel:ht,setVisibleModalType:zt,currentItemType:wn})=>{var Dn;const{data:Pn,dispatch:hn}=(0,b.useContext)(Be),[kt,dn]=(0,b.useState)([]),[_n,la]=(0,b.useState)(),or=(Dn=Pn==null?void 0:Pn.item_types)==null?void 0:Dn.find(mr=>mr.item_type===wn);(0,b.useEffect)(()=>{var mr,Br,Jr;if(gt){const dr=(mr=Pn==null?void 0:Pn.item_types)==null?void 0:mr.find(kr=>kr.item_type===wn);if((dr==null?void 0:dr.random_rule_type)!==Ke.Shixun){const kr=Ut[dr==null?void 0:dr.random_rule_type]||[];dn(kr);const cr=(Jr=(Br=Pn==null?void 0:Pn.item_types)==null?void 0:Br.find(ya=>ya.item_type===wn))==null?void 0:Jr.contents;switch(console.log("----xxx",Ct(kr)),Ct(kr)){case Ke.OnlyDifficulty:{Ia(cr.map(ya=>ya.difficulty));break}case Ke.OnlyFileFolder:{Ia({my:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)>=0)}),la({my:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)>=0)});break}case Ke.FileFolderAndKnowledge:{Ia({my:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)>=0)}),la({my:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:cr==null?void 0:cr.filter(ya=>parseInt(ya.teacher_group_id)>=0)});break}case Ke.FileFolderAndDiff:{Ia(cr),la(cr);break}case Ke.All:{Ia(cr),la(cr);break}default:Ia(cr)}}}},[gt]);const[Qa,ao]=(0,b.useState)([]);(0,b.useEffect)(()=>{gt&&ye({item_type:wn}).then(mr=>{mr.status===0&&ao(mr.data)})},[gt]),(0,b.useEffect)(()=>{console.log("selectData",_n)},[_n]);const[Fr,Ia]=(0,b.useState)(),[ca,Kn]=(0,b.useState)(!0);console.log("isFirst:",ca);const sr=mr=>{dn(mr),la([]),Ia([]),Kn(!1)};return b.createElement(nn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:gt,onCancel:ht,destroyOnClose:!0,onOk:()=>co(void 0,null,function*(){var mr,Br,Jr,dr,kr,cr,ya;if(_n===void 0){zt("");return}if(Object.prototype.toString.call(_n)==="[object Object]"&&!((mr=_n.my)!=null&&mr.length)&&!((Br=_n.public)!=null&&Br.length)){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(_n).length&&!(_n!=null&&_n.length)){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const yr=Ct(kt);switch(yr){case Ke.OnlyFileFolder:{hn({type:"editRule",payload:{itemType:wn,tableData:[..._n.my||[],..._n.public||[]],randomRuleType:yr}});break}case Ke.OnlyDifficulty:{const Vr=(dr=(Jr=Pn==null?void 0:Pn.item_types)==null?void 0:Jr.find(ri=>ri.item_type===wn))==null?void 0:dr.contents;let bo=[{},{value:(kr=Qa.find(ri=>ri.name==="\u7B80\u5355"))==null?void 0:kr.value},{value:(cr=Qa.find(ri=>ri.name==="\u9002\u4E2D"))==null?void 0:cr.value},{value:(ya=Qa.find(ri=>ri.name==="\u56F0\u96BE"))==null?void 0:ya.value}];hn({type:"editRule",payload:{itemType:wn,tableData:_n.map((ri,ji)=>{var ze,at,mt,xt;return{difficulty:ri,id:ji,quanlity:((at=(ze=Vr==null?void 0:Vr.filter(fn=>fn.id===ji))==null?void 0:ze[0])==null?void 0:at.quanlity)||1,item_bank_num:(Qa==null?void 0:Qa.length)===1?(mt=Qa[0])==null?void 0:mt.value:(xt=bo==null?void 0:bo[ri])==null?void 0:xt.value}}),randomRuleType:yr}});break}case Ke.OnlyKnowledge:{hn({type:"editRule",payload:{itemType:wn,tableData:_n.map(Vr=>Tr(oo({},Vr),{quanlity:Vr.quanlity||1})),randomRuleType:yr}});break}case Ke.KnowledgeAndDiff:{hn({type:"editRule",payload:{itemType:wn,tableData:_n.map(Vr=>Tr(oo({},Vr),{quanlity:Vr.quanlity||1})),randomRuleType:yr}});break}case Ke.FileFolderAndDiff:{hn({type:"editRule",payload:{itemType:wn,tableData:_n.map(Vr=>Tr(oo({},Vr),{quanlity:Vr.quanlity||1})),randomRuleType:yr}});break}case Ke.FileFolderAndKnowledge:{hn({type:"editRule",payload:{itemType:wn,tableData:[..._n.my||[],..._n.public||[]],randomRuleType:yr}});break}case Ke.All:{hn({type:"editRule",payload:{itemType:wn,tableData:_n.map(Vr=>Tr(oo({},Vr),{quanlity:Vr.quanlity||1})),randomRuleType:yr}});break}}zt("")})},b.createElement(wt.default.Group,{className:`${tn.ruleCheckBox}`,style:{marginBottom:8},value:kt,onChange:mr=>{var Br;kt!=null&&kt.length&&((Br=or==null?void 0:or.contents)==null?void 0:Br.length)>0?nn.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>sr(mr)}):sr(mr)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:Jt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Jt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Jt.Knowledge}]}),kt.includes(Jt.FileFolder)?b.createElement(lr,{defaultData:Fr,selectData:_n,ruleValue:kt,setSelectData:la,currentItemType:wn}):kt.includes(Jt.Knowledge)?b.createElement(Gr,{defaultData:Fr,isFirst:ca,ruleValue:kt,setSelectData:la,currentItemType:wn}):kt.includes(Jt.Difficulty)?b.createElement("div",{style:{marginTop:12}},b.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),b.createElement(wt.default.Group,{style:{columnGap:12},options:Qa.map(mr=>({label:mr.name,value:ni[mr.name]})),value:_n||Fr,onChange:mr=>la(mr)})):null)},Ba=({open:gt,onCancel:ht,setVisibleModalType:zt,currentItemType:wn})=>gt?b.createElement(_i,{open:gt,onCancel:ht,setVisibleModalType:zt,currentItemType:wn}):null,eo=ae(6848),mo=ae(38644),Ro=ae(16597),Po=ae(25711),xo=ae(58130),oi=ae(61485),$o=ae(72194),Ci=({open:gt,onCancel:ht,onOk:zt})=>{const{data:wn}=(0,b.useContext)(Be),Dn=(0,mo.g)(),[Pn,hn,kt,dn]=(0,sn.U)(Ro.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[_n,la]=(0,b.useState)(!1);(0,b.useEffect)(()=>{if(gt){kt({page:1,limit:10,type:0},!0).then(ca=>{(ca==null?void 0:ca.shixuns_count)===0&&la(!0)});const Ia=wn.item_types.find(ca=>ca.item_type==="PRACTICAL");Qa(Ia.item_banks.map(ca=>ca.id)),Fr(Ia.item_banks)}},[gt,wn]);const[or,Qa]=(0,b.useState)([]),[ao,Fr]=(0,b.useState)([]);return b.createElement(nn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:gt,width:948,centered:!0,closable:!0,onCancel:ht,onOk:()=>zt(ao),destroyOnClose:!0},b.createElement(Ze.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},b.createElement(bt.Z,null,b.createElement(Te.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Dn,onChange:Ia=>{kt({page:1,discipline_id:Ia==null?void 0:Ia[0],sub_discipline_id:Ia==null?void 0:Ia[1]})}}),b.createElement(yn.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Ia=>kt({page:1,diff:Ia})}),b.createElement(yn.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Ia=>kt({page:1,shixun_publish_status:Ia})})),b.createElement(Zt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ia=>{kt({keyword:Ia,page:1})}})),_n?b.createElement("div",null,b.createElement(An.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,xo.xg)("/shixuns")})):b.createElement(Yn.default,{loading:hn,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Ia,ca)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:ca!=null&&ca.high_resources_consume?on.title:"",title:Ia||"--"},b.createElement(Po.Z,{key:1,showLines:1,showTextOnly:!0,value:Ia||"--"})),(ca==null?void 0:ca.high_resources_consume)&&b.createElement($o.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Ia,ca,Kn)=>b.createElement("span",null,Ia||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:b.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",b.createElement(eo.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},b.createElement(oi.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Ia,ca,Kn)=>b.createElement("span",null,Ia||"- -")},{title:"\u64CD\u4F5C",render(Ia,ca){const{title:Kn,challenge_names:sr,author_name:mr,identifier:Br,author_school_name:Jr,study_count:dr}=ca||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{nn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(Po.Z,{value:Kn,style:{marginBottom:18}}),b.createElement("div",{className:on.challengeNameWrapper},sr.map((kr,cr)=>b.createElement("div",{className:on.challengeName,key:cr},"\u7B2C",(0,xo.EM)(cr+1),"\u9898\xA0",kr))),b.createElement(Ze.Z,{className:on.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(bt.Z,{className:on.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:on.shixunInfo},mr.split("\u3001")[0]),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:on.shixunInfo},Jr),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:on.shixunInfo},dr)),b.createElement(le.ZP,{type:"primary",className:on.btnToDetail,onClick:()=>(0,xo.xg)(`/shixuns/${Br}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(ca==null?void 0:ca.shixun_tag_num)===1&&b.createElement("a",{target:"_blank",href:`/shixuns/${ca==null?void 0:ca.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:dn==null?void 0:dn.items,rowSelection:{selectedRowKeys:or,preserveSelectedRowKeys:!0,getCheckboxProps:Ia=>({disabled:Ia.shixun_tag_num===1}),onChange(Ia,ca){var Kn,sr,mr;console.log(Ia),Qa(Ia);const Br=[];for(const dr of ao)Ia.includes(dr.id)&&Br.push(dr);const Jr=Br.map(dr=>dr.id);for(const dr of ca)dr&&Ia.includes(dr.id)&&!Jr.includes(dr.id)&&Br.push({id:dr.id,difficulty:dr.level,identifier:dr.identifier,name:dr.name,real_name:(Kn=dr==null?void 0:dr.author_name)==null?void 0:Kn.split("\u3001")[0],school_name:dr.author_school_name,challenge_names:dr.challenge_names,challenges:(sr=dr.challenge_names)==null?void 0:sr.map((kr,cr)=>({subject:kr,id:cr,score:5})),score:((mr=dr.challenge_names)==null?void 0:mr.length)*5,study_count:dr.study_count,challenges_count:dr.challenges_count});Fr(Br)}},pagination:{current:Pn.page,pageSize:Pn.limit,total:dn==null?void 0:dn.items_count,showTotal:Ia=>b.createElement("span",null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},Ia),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Ia,ca){kt({page:Ia,limit:ca})},size:"default"},scroll:{y:400}}))},Uo=ae(95947),Eo=ae(59301),xi=Object.defineProperty,yo=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Ti=(gt,ht,zt)=>ht in gt?xi(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,Yo=(gt,ht)=>{for(var zt in ht||(ht={}))Wi.call(ht,zt)&&Ti(gt,zt,ht[zt]);if(ai)for(var zt of ai(ht))Di.call(ht,zt)&&Ti(gt,zt,ht[zt]);return gt},Ki=(gt,ht)=>yo(gt,Mi(ht)),$i=({onDelete:gt,list:ht,onSelect:zt})=>{const[wn,Dn]=(0,b.useState)(!1),{dispatch:Pn,disabled:hn}=(0,b.useContext)(Be),kt=(Qa,ao,Fr)=>{const Ia=Array.from(Qa),[ca]=Ia.splice(ao,1);return Ia.splice(Fr,0,ca),Ia},[dn,_n]=(0,b.useState)(null),[la,or]=(0,b.useState)(!1);return Eo.createElement(Uo.Z5,{onDragStart:()=>{or(!0)},onDragEnd:Qa=>{if(or(!1),!Qa.destination)return;const ao=kt(ht,Qa.source.index,Qa.destination.index);Pn({type:"updateItemTypes",payload:ao})}},Eo.createElement(Uo.bK,{droppableId:"droppable"},(Qa,ao)=>Eo.createElement("div",Ki(Yo({},Qa.droppableProps),{ref:Qa.innerRef}),Eo.createElement(ke.Z,{spinning:wn},ht.map((Fr,Ia)=>Eo.createElement(Uo._l,{key:Ia,draggableId:Ia.toString(),index:Ia,isDragDisabled:dn!==Fr.item_type},(ca,Kn)=>Eo.createElement(Ze.Z,Ki(Yo(Yo({align:"middle",wrap:!1,ref:ca.innerRef},ca.draggableProps),ca.dragHandleProps),{className:`${on.dragItem} ${la?on.dragging:""}`}),Eo.createElement(bt.Z,{className:on.contentArea,onClick:()=>{zt(Fr.item_type),(0,xo.k3)()}},Eo.createElement("span",{className:on.blackText},(0,xo.EM)(Ia+1),"\u3001\u3010",Fr.item_type_text,"\u3011"),Eo.createElement(eo.Z,{title:`\uFF08${Fr.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Fr.total_score).toFixed(1)}\u5206\uFF09`},Eo.createElement("span",{className:on.greyText},`\uFF08${Fr.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(Fr.total_score).toFixed(1)}\u5206\uFF09`))),!hn&&Eo.createElement(Eo.Fragment,null,Eo.createElement(eo.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:dn===Fr.item_type&&!la},Eo.createElement("div",{style:{cursor:"grab"},className:`${on.iconWrapper} ${la?on.hidden:""}`,onMouseEnter:()=>{_n(Fr.item_type)},onMouseLeave:()=>_n(null)},Eo.createElement("i",{className:`iconfont icon-tuodong1 ${on.dragIcon}`}))),Eo.createElement(eo.Z,{title:"\u5220\u9664"},Eo.createElement("div",{className:`${on.iconWrapper} ${la?on.hidden:""}`,style:{cursor:"pointer"},onClick:()=>gt(Fr.item_type)},Eo.createElement("i",{className:`iconfont icon-shanchu12 ${on.deleteIcon}`})))))))),Qa.placeholder)))},Yi=ae(10777),Ur={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},Ta=ae(73631),na=ae(31328);const ia=(gt,ht,zt,wn)=>{const Dn={[Ke.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(Pn,hn){const{difficulty:kt}=hn;return b.createElement("span",{style:{color:et[kt].color}},et[kt].label)}}],[Ke.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"sub_discipline_name",width:180,ellipsis:{showTitle:!0},render(Pn,hn){return`${Pn}`}}],[Ke.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(Pn,hn,kt){const{group_name:dn,teacher_group_name:_n}=hn,la=dn||_n,or=_n?na:Ta;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:or,className:Ur.folderIcon})," ",b.createElement(eo.Z,{title:la},b.createElement("span",{className:Ur.titles},la)))}},{title:"\u7C7B\u578B",render(Pn,hn){const{teacher_group_name:kt}=hn;return b.createElement("span",null,kt?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ke.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u65B9\u5411&\u8BFE\u7A0B",width:180,dataIndex:"sub_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(Pn,hn){const{difficulty:kt}=hn;return b.createElement("span",{style:{color:et[kt].color}},et[kt].label)}}],[Ke.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(Pn,hn){const{group_name:kt,teacher_group_name:dn}=hn,_n=kt||dn,la=dn?na:Ta;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:la,className:Ur.folderIcon})," ",b.createElement(eo.Z,{title:_n},b.createElement("span",{className:Ur.titles},_n)))}},{title:"\u7C7B\u578B",render(Pn,hn){const{teacher_group_name:kt}=hn;return b.createElement("span",null,kt?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[Ke.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(Pn,hn){const{group_name:kt,teacher_group_name:dn}=hn,_n=kt||dn,la=dn?na:Ta;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:la,className:Ur.folderIcon})," ",b.createElement(eo.Z,{title:_n},b.createElement("span",{className:Ur.titles},_n)))}},{title:"\u7C7B\u578B",render(Pn,hn){const{teacher_group_name:kt}=hn;return b.createElement("span",null,kt?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(Pn,hn){const{difficulty:kt}=hn;return b.createElement("span",{style:{color:et[kt].color}},et[kt].label)}}],[Ke.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(Pn,hn){const{group_name:kt,teacher_group_name:dn,teacher_group_id:_n}=hn,la=kt||dn,or=_n||_n===0?na:Ta;return b.createElement("div",{style:{display:"flex"}},b.createElement("img",{src:or,className:Ur.folderIcon})," ",b.createElement(eo.Z,{title:la},b.createElement("span",{className:Ur.titles},la)))}},{title:"\u7C7B\u578B",render(Pn,hn){const{teacher_group_id:kt}=hn;return b.createElement("span",null,kt||kt===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(Pn,hn){const{difficulty:kt}=hn;return b.createElement("span",{style:{color:et[kt].color}},et[kt].label)}}],[Ke.Shixun]:[]};for(const Pn of Object.values(Dn))Pn.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(hn,kt){const{item_bank_num:dn,quanlity:_n,id:la,teacher_group_id:or}=kt||{};return b.createElement(Ze.Z,{align:"middle"},b.createElement(De.Z,{disabled:wn,min:1,max:dn,size:"large",precision:0,value:_n,onChange:Qa=>{ht({type:"changeQuestionNum",payload:{itemType:zt,id:la,num:Qa,teacher_group_id:or}})}}),b.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",dn))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(hn,kt){const{id:dn,is_share:_n}=kt;return wn?b.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):b.createElement("span",{className:Ur.deleteBtn,onClick:()=>{ht({type:"deleteRule",payload:{itemType:zt,id:dn,is_share:_n}})}},"\u5220\u9664")}});return Dn[gt]},Pa=({setVisibleModalType:gt})=>{var ht,zt,wn,Dn;const{data:Pn,dispatch:hn,disabled:kt}=(0,b.useContext)(Be),dn=(ht=Pn==null?void 0:Pn.item_types)==null?void 0:ht.find(_n=>_n.item_type==="PRACTICAL");return b.createElement(Yi.Z,{className:Ur.timelineWrapper,items:[{children:b.createElement("div",{style:{transform:"translateY(-4px)"}},b.createElement(Ze.Z,{className:"mb20",align:"middle",justify:"space-between"},b.createElement(bt.Z,null,b.createElement("span",{className:Ur.title},"\u9898\u5E93\u9009\u9898"),b.createElement("span",{className:Ur.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!kt&&b.createElement(Zt.op,{style:{width:102},onClick:()=>gt("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((zt=dn==null?void 0:dn.item_banks)==null?void 0:zt.length)===0?b.createElement(An.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):b.createElement(Yn.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(_n,la,or){return b.createElement("span",null,or+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(_n,la)=>b.createElement("div",{style:{display:"flex",alignItems:"center"}},b.createElement("div",{className:la!=null&&la.high_resources_consume?Ur.q_title:"",title:_n||"--"},b.createElement(Po.Z,{key:1,showLines:1,showTextOnly:!0,value:_n})),(la==null?void 0:la.high_resources_consume)&&b.createElement($o.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(_n,la,or)=>b.createElement("span",null,_n||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(_n,la,or){const{id:Qa,identifier:ao,name:Fr,challenge_names:Ia=[],real_name:ca,school_name:Kn,study_count:sr,challenges:mr=[]}=la||{};return b.createElement("div",null,b.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{nn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:b.createElement("div",null,b.createElement(Po.Z,{value:Fr,style:{marginBottom:18}}),b.createElement("div",{className:Ur.challengeNameWrapper},mr==null?void 0:mr.map((Br,Jr)=>b.createElement("div",{className:Ur.challengeName,key:Jr},"\u7B2C",(0,xo.EM)(Jr+1),"\u9898\xA0",Br==null?void 0:Br.subject))),b.createElement(Ze.Z,{className:Ur.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},b.createElement(bt.Z,{className:Ur.shixunInfoWrapper},b.createElement("span",null,"\u521B\u5EFA\u8005"),b.createElement("span",{className:Ur.shixunInfo},ca),b.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{className:Ur.shixunInfo},Kn),b.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Ur.shixunInfo},sr)),b.createElement(le.ZP,{type:"primary",className:Ur.btnToDetail,onClick:()=>(0,xo.xg)(`/shixuns/${ao}/challenges?exercise=true`)},b.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!kt&&b.createElement("span",{onClick:()=>{hn({type:"deleteShixunQuestion",payload:{shixunId:Qa}})},className:`ml20 ${Ur.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(dn==null?void 0:dn.item_banks)||[],pagination:!1}))},{children:b.createElement(Ze.Z,{style:{transform:(wn=dn==null?void 0:dn.item_banks)!=null&&wn.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},b.createElement("span",{className:Ur.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((Dn=dn==null?void 0:dn.item_banks)!=null&&Dn.length)&&b.createElement(bt.Z,null,b.createElement(Ze.Z,{align:"middle"},b.createElement("span",{className:Ur.normalText},"\u62BD\u9898\u6570\u91CF"),b.createElement(De.Z,{min:0,disabled:kt,max:dn==null?void 0:dn.item_bank_num,size:"large",precision:0,className:"ml10 mr10",value:(dn==null?void 0:dn.item_bank_count)||1,onChange:_n=>hn({type:"changeQuestionNum",payload:{num:_n||1,itemType:"PRACTICAL"}})}),b.createElement("span",{className:`${Ur.normalText} mr30`},"/",dn==null?void 0:dn.item_bank_num),b.createElement("span",{className:Ur.normalText},"\u6BCF\u9898\u5206\u503C"),b.createElement(De.Z,{disabled:kt,min:0,max:100,precision:1,size:"large",precision:1,className:"ml10 mr10",value:dn==null?void 0:dn.score,onChange:_n=>hn({type:"changeQuestionScore",payload:{score:_n,itemType:"PRACTICAL"}})}),b.createElement("span",{className:Ur.normalText},"\u5206"))))}]})};var _r=({setVisibleModalType:gt,currentItemType:ht,onDelete:zt})=>{var wn,Dn;const Pn=(0,Oe.useParams)(),{data:hn,dispatch:kt,disabled:dn}=(0,b.useContext)(Be),_n=((wn=hn==null?void 0:hn.item_types)==null?void 0:wn.findIndex(or=>or.item_type===ht))+1,la=(Dn=hn==null?void 0:hn.item_types)==null?void 0:Dn.find(or=>or.item_type===ht);return b.createElement("div",{className:Ur.questionDetailWrapper},b.createElement(Ze.Z,{justify:"space-between",align:"middle",className:"mb30"},b.createElement(bt.Z,null,b.createElement("span",{className:Ur.questionTitle},`${(0,xo.EM)(_n)}\u3001${la==null?void 0:la.item_type_text}`),b.createElement("span",{className:Ur.questionScoreInfo},"\uFF08",b.createElement("span",{style:{color:"#3061D0"}},la==null?void 0:la.item_bank_count),"\u5C0F\u9898 ",b.createElement("span",null,"\uFF0C\u5171",b.createElement("span",{style:{color:"#3061D0"}},la==null?void 0:la.total_score),"\u5206"),"\uFF09")),!dn&&b.createElement("i",{className:`iconfont icon-shanchutimu ${Ur.deleteIcon}`,onClick:()=>zt(ht)})),ht==="PRACTICAL"?b.createElement(Pa,{setVisibleModalType:gt}):b.createElement(b.Fragment,null,(la==null?void 0:la.contents.length)===0?b.createElement(An.Z,{styles:{margin:"70px auto 100px auto"},customText:b.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",b.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(Pn==null?void 0:Pn.id)&&b.createElement(Ze.Z,{justify:"center",className:"mt30"},b.createElement(Zt.op,{style:{width:136,marginTop:-10},onClick:()=>gt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):b.createElement(b.Fragment,null,b.createElement(Ze.Z,{justify:"space-between",align:"middle",className:"mb20"},b.createElement(bt.Z,null,b.createElement(Ze.Z,{align:"middle"},b.createElement("span",{className:`${Ur.normalText}`},"\u6BCF\u9898\u5206\u503C"),b.createElement(De.Z,{disabled:dn,size:"large",className:"ml10 mr10",min:.1,max:100,value:la==null?void 0:la.score,precision:1,onChange:or=>kt({type:"changeQuestionScore",payload:{score:or,itemType:ht}})}),b.createElement("span",{className:Ur.normalText},"\u5206"))),(Pn==null?void 0:Pn.id)&&b.createElement(Zt.op,{onClick:()=>gt("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),b.createElement(Yn.default,{columns:ia(la==null?void 0:la.random_rule_type,kt,ht,dn),dataSource:la==null?void 0:la.contents,pagination:!1,rowKey:"id"}))))},no=ae(88477),fo=ae(79124),wo=ae(2119),Bo=ae(32637),ka=ae(59301),zo=Object.defineProperty,Bi=Object.defineProperties,si=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Wr=(gt,ht,zt)=>ht in gt?zo(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,Xo=(gt,ht)=>{for(var zt in ht||(ht={}))Zi.call(ht,zt)&&Wr(gt,zt,ht[zt]);if(ki)for(var zt of ki(ht))zi.call(ht,zt)&&Wr(gt,zt,ht[zt]);return gt},ol=(gt,ht)=>Bi(gt,si(ht)),vi=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())}),il=({})=>{var gt,ht,zt,wn,Dn,Pn,hn,kt,dn,_n,la,or,Qa,ao,Fr;const[Ia]=(0,Oe.useSearchParams)(),ca=(0,Oe.useParams)(),{data:Kn,dispatch:sr,setPreview:mr,getData:Br,handlePreview:Jr,disabled:dr}=(0,b.useContext)(Be),[kr,cr]=(0,b.useState)(""),[ya,yr]=(0,b.useState)((ht=(gt=Kn==null?void 0:Kn.item_types)==null?void 0:gt[0])==null?void 0:ht.item_type),[Vr,bo]=(0,b.useState)(!0),[ri,ji]=(0,b.useState)(!1),ze=(fn,On)=>vi(void 0,null,function*(){var Xn,Hn,Tn,un,Gn,da;const qa=Kn.item_types.map(jn=>jn.item_type_text),Ya=(Xn=Kn==null?void 0:Kn.item_types)==null?void 0:Xn.filter(jn=>{var Fa,rr;return((Fa=jn.contents)==null?void 0:Fa.length)>0||((rr=jn==null?void 0:jn.item_banks)==null?void 0:rr.length)>0});if(Kn.sort_by_item_type=qa,!((Hn=Kn.item_types)!=null&&Hn.length)){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Ya==null?void 0:Ya.length)===0){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}let Qn=()=>vi(void 0,null,function*(){const jn=(0,$e.cloneDeep)(Kn),{item_types:Fa}=jn||{};jn.item_types=Fa.filter(ba=>ba.item_type===ya),(yield pe(ca.id||ca.categoryId,jn)).status===0&&(yr(On),be.ZP.success("\u4FDD\u5B58\u6210\u529F"),fn||Oe.history.push("/paperlibrary"))}),Vn=(un=(Tn=Kn==null?void 0:Kn.item_types)==null?void 0:Tn.filter(jn=>jn.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:un.item_banks,Ln=0;Vn==null||Vn.map(jn=>{jn.high_resources_consume&&(Ln=Ln+1)}),console.log(Ln),Ln>0?nn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:ka.createElement("div",null,ka.createElement("div",{className:on.tipcontent},ka.createElement("div",null,ka.createElement("div",{className:on.name},"\u60A8\u597D\uFF01",(Gn=(0,wo.eY)())==null?void 0:Gn.username,"\uFF08",(da=(0,wo.eY)())==null?void 0:da.login,"\uFF09\uFF1A"),ka.createElement("div",{className:on.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ka.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ka.createElement("div",{className:on.info},ka.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),ka.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),ka.createElement("span",{style:{color:"#232B40"}},`${Ln}\u4E2A`))),ka.createElement("div",null,ka.createElement("div",{className:on.img},ka.createElement("img",{src:Bo,width:"124px",height:"124px"})),ka.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{Qn()}}):Qn()}),at=(fn,On,Xn,Hn=!1)=>vi(void 0,null,function*(){console.log(Kn);const Tn=ol(Xo(Xo({},Kn.exercise),ca),{exerciseId:ca.categoryId,sort_by_item_type:Kn.sort_by_item_type,difficulty:Kn.examination_bank.difficulty,exam_notes:Kn.examination_bank.exam_notes,exercise_name:Kn.examination_bank.name,time:Kn.examination_bank.time,changed_item_type:ya,item_types:Kn.item_types,changed_item_type:ya,sub_discipline_id:Kn.examination_bank.sub_discipline_id});(!fn||On===1)&&(Tn.is_reset=1);const un=yield(0,fo.wy)(Tn);return un.status===0&&(Hn||be.ZP.success("\u4FEE\u6539\u6210\u529F "),yr(Xn),fn||Oe.history.push(`/classrooms/${ca.coursesId}/exercise/${ca.categoryId}/detail?random=true`)),un}),mt=fn=>{nn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:ka.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>vi(void 0,null,function*(){var On,Xn,Hn,Tn;if(ca.id){if((yield qe(ca.id,{item_type:[fn]})).status!==0)return}else{const un=yield je(ca.categoryId,{item_type:[fn]});if(Br(),un.status!==0)return}if(sr({type:"deleteQuestionType",payload:fn}),fn===ya){const un=Fe(Kn,{type:"deleteQuestionType",payload:fn});yr(un.item_types.length?un.item_types[0].item_type:(Xn=(On=Kn==null?void 0:Kn.item_types)==null?void 0:On[0])==null?void 0:Xn.item_type)}else yr((Tn=(Hn=Kn==null?void 0:Kn.item_types)==null?void 0:Hn[0])==null?void 0:Tn.item_type)})})};(0,b.useEffect)(()=>{var fn;(fn=Kn==null?void 0:Kn.examination_bank)!=null&&fn.name&&bo(!1),(0,xo.Dk)("\u968F\u673A\u7EC4\u5377")},[(zt=Kn==null?void 0:Kn.examination_bank)==null?void 0:zt.name]);const xt=()=>vi(void 0,null,function*(){var fn;let On=yield at(!0,1,ya,!0);if((On==null?void 0:On.status)===0){const Xn=yield(0,E.ZP)(`/api/exercises/${ca==null?void 0:ca.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:ca==null?void 0:ca.coursesId,categoryId:ca==null?void 0:ca.categoryId}});(Xn==null?void 0:Xn.status)!=-1&&window.open(`/classrooms/${ca.coursesId}/exercise/${ca.categoryId}/${(fn=(0,wo.eY)())==null?void 0:fn.login}/initate_answer`)}});return ka.createElement("div",{className:on.questionInfo},ka.createElement("div",{className:"tc mb20"},ka.createElement(ue.VP,{defaultValue:(wn=Kn==null?void 0:Kn.examination_bank)==null?void 0:wn.name,onFinish:fn=>vi(void 0,null,function*(){return sr({type:"updateBaseInfo",payload:ol(Xo({},Kn.examination_bank),{name:fn})}),(0,fo.wy)({exercise_name:fn,exerciseId:ca==null?void 0:ca.categoryId}),!0})})),ka.createElement(Ze.Z,{justify:"center",className:"mb20"},ka.createElement(bt.Z,{className:"mr30"},ka.createElement("span",{className:on.label},"\u7B54\u9898\u65F6\u957F"),ka.createElement("span",null,((Dn=Kn==null?void 0:Kn.examination_bank)==null?void 0:Dn.time)===-1?"\u4E0D\u9650":((Pn=Kn==null?void 0:Kn.examination_bank)==null?void 0:Pn.time)||"\u4E0D\u9650")),ka.createElement(bt.Z,{className:"mr30"},ka.createElement("span",{className:on.label},"\u96BE\u5EA6"),ka.createElement("span",null,(kt=et[`${(hn=Kn==null?void 0:Kn.examination_bank)==null?void 0:hn.difficulty}`])==null?void 0:kt.label)),ka.createElement(bt.Z,{className:"mr30"},ka.createElement("span",{className:on.label},"\u8BD5\u9898\u603B\u6570"),ka.createElement("span",null,((dn=Kn==null?void 0:Kn.examination_bank)==null?void 0:dn.question_count)||0)),ka.createElement(bt.Z,null,ka.createElement("span",{className:on.label},"\u603B\u5206"),ka.createElement("span",null,((la=(_n=Kn==null?void 0:Kn.examination_bank)==null?void 0:_n.total_score)==null?void 0:la.toFixed(1))||0))),ka.createElement("div",{className:on.content,style:{border:((or=Kn==null?void 0:Kn.item_types)==null?void 0:or.length)<=0&&"none"}},((Qa=Kn==null?void 0:Kn.item_types)==null?void 0:Qa.length)>0?ka.createElement(Ze.Z,{wrap:!1},ka.createElement(bt.Z,{flex:"260px",className:on.leftPart},!dr&&ka.createElement(Ze.Z,{className:"mb20"},ka.createElement(Zt.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>cr("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(ca==null?void 0:ca.id)&&ka.createElement(Zt.op,{shape:"default",onClick:()=>cr("questionType")},"\u6DFB\u52A0\u9898\u578B")),ka.createElement($i,{list:Kn.item_types,onSelect:fn=>vi(void 0,null,function*(){if(fn===ya)return;bo(!0);const On=Kn.item_types.find(Xn=>Xn.item_type===ya);if(ya!=="PRACTICAL"&&On.contents.length>0&&(ca!=null&&ca.id)){const Xn=(0,$e.cloneDeep)(Kn),{item_types:Hn}=Xn||{};Xn.item_types=Hn.filter(Tn=>Tn.item_type===ya);try{(yield pe(ca.id||ca.categoryId,Xn)).status===0&&yr(fn)}catch(Tn){}}else ca.categoryId?at(!0,2,fn):ze(!0,fn);bo(!1)}),onDelete:mt})),ka.createElement(bt.Z,{flex:1,className:on.rightPart},ka.createElement(ke.Z,{spinning:Vr},ka.createElement(_r,{setVisibleModalType:cr,currentItemType:ya,onDelete:mt})))):ka.createElement(An.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:ka.createElement(Ze.Z,{justify:"center",className:"mt20"},(ca==null?void 0:ca.id)&&ka.createElement(Zt.op,{style:{width:88},onClick:()=>cr("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(ca!=null&&ca.id)&&ka.createElement("div",{className:on.fixedBottom},ka.createElement(no.Z,{className:`${on.previewBtn} mr20`,onClick:()=>vi(void 0,null,function*(){var fn,On;const Xn=(fn=Kn==null?void 0:Kn.item_types)==null?void 0:fn.filter(Hn=>{var Tn,un;return((Tn=Hn.contents)==null?void 0:Tn.length)>0||((un=Hn==null?void 0:Hn.item_banks)==null?void 0:un.length)>0});if(!((On=Kn.item_types)!=null&&On.length)){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Xn==null?void 0:Xn.length)===0){be.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield ze(!0,ya),Jr()})},"\u8BD5\u5377\u9884\u89C8"),ka.createElement(no.Z,{type:"primary",className:on.confirmBtn,onClick:()=>ze()},ka.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(ca!=null&&ca.categoryId)&&ka.createElement("div",{className:on.fixedBottom,style:{justifyContent:((ao=Kn==null?void 0:Kn.exercise)==null?void 0:ao.exercise_status)!==1?"end":"center"}},ka.createElement(no.Z,{className:`${on.previewBtn} mr20`,onClick:()=>vi(void 0,null,function*(){var fn,On;document.body.scrollIntoView(),Oe.history.push(`/classrooms/${ca.coursesId}/exercise/${(fn=Kn==null?void 0:Kn.exercise)==null?void 0:fn.id}/detail?random=${(On=Kn==null?void 0:Kn.exercise)==null?void 0:On.is_random}`)})},"\u8FD4\u56DE"),((Fr=Kn==null?void 0:Kn.exercise)==null?void 0:Fr.exercise_status)===1&&ka.createElement(no.Z,{className:`${on.previewBtn} mr20`,onClick:xt},"\u6A21\u62DF\u8003\u8BD5"),(Kn==null?void 0:Kn.exercise.exercise_status)===1&&ka.createElement(no.Z,{type:"primary",className:on.confirmBtn,onClick:()=>at()},"\u63D0\u4EA4")),ka.createElement(Wn,{open:kr==="questionType",onCancel:()=>cr(""),onOk:fn=>vi(void 0,null,function*(){var On,Xn;const Hn=[],Tn=Fe(Kn,{type:"setQuestionType",payload:fn}),un=((On=Tn==null?void 0:Tn.item_types)==null?void 0:On.map(Gn=>Gn.item_type))||[];for(const Gn of((Xn=Kn==null?void 0:Kn.item_types)==null?void 0:Xn.map(da=>da.item_type))||[])un.includes(Gn)||Hn.push(Gn);ca.id&&Hn.length>0&&(yield qe(ca.id,{item_type:Hn})).status!==0||(sr({type:"setQuestionType",payload:fn}),yr(ya||Tn.item_types[0].item_type),cr(""))})}),ka.createElement(Wa,{open:kr==="setScore",onCancel:()=>{cr("")},onOk:fn=>vi(void 0,null,function*(){console.log("---newData",fn);const On=fn.item_types.map(Xn=>({item_type:Xn.item_type,score:Xn.score}));ca.id?(yield Re(ca.id,{score_settings:On})).status===0&&sr({type:"init",payload:fn}):(yield he(ca.categoryId,{score_settings:On})).status===0&&sr({type:"init",payload:fn}),cr("")})}),ka.createElement(Ba,{open:kr==="rule",onCancel:()=>cr(""),currentItemType:ya,setVisibleModalType:cr}),Ia.get("type")==="settings"&&ka.createElement(Ci,{open:kr==="selectShixun",onCancel:()=>cr(""),onOk:fn=>{if(console.log(fn),(fn==null?void 0:fn.length)<=0){be.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}sr({type:"addShixun",payload:{shixunList:[...fn]}}),cr("")}}))},Xi=ae(83783),Mo=ae(59301),qi=Object.defineProperty,el=Object.defineProperties,ll=Object.getOwnPropertyDescriptors,ul=Object.getOwnPropertySymbols,Rl=Object.prototype.hasOwnProperty,ql=Object.prototype.propertyIsEnumerable,_l=(gt,ht,zt)=>ht in gt?qi(gt,ht,{enumerable:!0,configurable:!0,writable:!0,value:zt}):gt[ht]=zt,Ri=(gt,ht)=>{for(var zt in ht||(ht={}))Rl.call(ht,zt)&&_l(gt,zt,ht[zt]);if(ul)for(var zt of ul(ht))ql.call(ht,zt)&&_l(gt,zt,ht[zt]);return gt},Fl=(gt,ht)=>el(gt,ll(ht)),tl=(gt,ht,zt)=>new Promise((wn,Dn)=>{var Pn=dn=>{try{kt(zt.next(dn))}catch(_n){Dn(_n)}},hn=dn=>{try{kt(zt.throw(dn))}catch(_n){Dn(_n)}},kt=dn=>dn.done?wn(dn.value):Promise.resolve(dn.value).then(Pn,hn);kt((zt=zt.apply(gt,ht)).next())}),Gl=()=>{var gt,ht,zt,wn;const[Dn,Pn]=(0,b.useState)("baseInfo"),hn=(0,Oe.useDispatch)();(0,b.useEffect)(()=>{hn({type:"globalSetting/footerToggle",payload:!1})},[]);const kt=(0,Oe.useParams)(),dn=!!(kt.id||kt.categoryId),[_n]=(0,Oe.useSearchParams)();(0,b.useEffect)(()=>{_n.get("type")==="settings"&&Pn("settings")},[]);const[la,or]=(0,b.useReducer)(Fe,null),[Qa,ao]=(0,b.useState)(!1),Fr=()=>tl(void 0,null,function*(){ao(!0);let ya;kt.categoryId?ya=yield st(kt):ya=yield ce(kt.id),ao(!1),ya.status===0&&or({type:"init",payload:ya})});(0,b.useEffect)(()=>{dn?Fr():or({type:"init",payload:{examination_bank:{difficulty:2}}})},[kt]);const[Ia,ca]=(0,b.useState)(""),Kn=(ya,yr)=>tl(void 0,null,function*(){var Vr,bo,ri,ji;const ze=(Vr=la==null?void 0:la.item_types)==null?void 0:Vr.filter(xt=>{var fn;return((fn=xt==null?void 0:xt.item_type)==null?void 0:fn.toUpperCase())===(yr==null?void 0:yr.type)}),at={sort_by_item_type:la.sort_by_item_type,difficulty:la.examination_bank.difficulty,exam_notes:la.examination_bank.exam_notes,name:la.examination_bank.name,time:la.examination_bank.time,item_types:la.item_types};if(ya!==void 0&&!(ya!=null&&ya.single_question_id)){at.seleted_item_bank_ids=ya==null?void 0:ya.seleted_item_bank_ids,at.item_types=ze;const xt=yield Le(at);if((xt==null?void 0:xt.status)===0){let fn=(0,$e.cloneDeep)(dr.data);fn.questionList=(bo=fn==null?void 0:fn.questionList)==null?void 0:bo.map(On=>{var Xn;return On.type===yr.type?Fl(Ri({},On),{questions:((Xn=xt==null?void 0:xt.questions)==null?void 0:Xn.questions)||[]}):On}),kr({show:!0,data:fn})}return}if(ya!==void 0&&(ya!=null&&ya.single_question_id)){at.seleted_item_bank_ids=ya==null?void 0:ya.seleted_item_bank_ids,at.single_question_id=ya==null?void 0:ya.single_question_id,at.item_types=ze;const xt=yield Le(at);if((xt==null?void 0:xt.status)===0){let fn=(0,$e.cloneDeep)(dr.data);fn.questionList=(ri=fn==null?void 0:fn.questionList)==null?void 0:ri.map(On=>{var Xn,Hn;if(On.type===yr.type){const Tn=(0,$e.cloneDeep)(On==null?void 0:On.questions);return Tn.splice(yr.index,1,(Hn=(Xn=xt==null?void 0:xt.questions)==null?void 0:Xn.questions)==null?void 0:Hn[0]),console.log(On==null?void 0:On.questions,Tn,yr.index,"new_questions"),Fl(Ri({},On),{questions:Tn})}return On}),kr({show:!0,data:fn})}return}const mt=yield ot(at);if((mt==null?void 0:mt.status)===0){const xt=(0,xo.ad)(mt);let fn=[];(ji=la==null?void 0:la.item_types)==null||ji.forEach(On=>{var Xn;const Hn=(Xn=xt==null?void 0:xt.questionList)==null?void 0:Xn.find(Tn=>On.item_type===Tn.type);fn.push(Hn)}),console.log(la,"sortList"),fn=(0,$e.compact)(fn),xt.questionList=fn,kr({show:!0,data:xt}),ca(new Date)}}),sr=ya=>{var yr;let Vr=(0,$e.cloneDeep)(dr.data);Vr.questionList=(yr=Vr==null?void 0:Vr.questionList)==null?void 0:yr.map(bo=>bo.type===ya.type?Fl(Ri({},bo),{questions_score:ya.scoreTotal}):bo),or({type:"changeQuestionScore",payload:{score:ya.score,itemType:ya.type}}),kr({show:!0,data:Vr})},mr=ya=>tl(void 0,null,function*(){const yr={sort_by_item_type:la.sort_by_item_type,difficulty:la.examination_bank.difficulty,exam_notes:la.examination_bank.exam_notes,name:la.examination_bank.name,time:la.examination_bank.time,item_types:la.item_types,sub_discipline_id:la.examination_bank.sub_discipline_id};if(ya){(yield Je(Ri(Ri({},yr),ya))).status===0&&be.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield pe(kt.id,yr)).status===0&&(be.ZP.success("\u63D0\u4EA4\u6210\u529F"),Oe.history.push("/paperlibrary?defaultActiveKey=0"))}),Br=(0,mo.g)(),[Jr]=Ae.default.useForm(),[dr,kr]=(0,b.useState)({show:!1,data:{}}),cr=!!((gt=la==null?void 0:la.exercise)!=null&&gt.exercise_status)&&((ht=la==null?void 0:la.exercise)==null?void 0:ht.exercise_status)!==1;return Mo.createElement(Be.Provider,{value:{data:la,disabled:cr,dispatch:or,setPreview:kr,getData:Fr,handlePreview:Kn}},dr.show?Mo.createElement(Xi.Z,{key:Ia,data:dr.data,onExchange:Kn,onTypeScore:sr,submit:mr,goBack:()=>kr({show:!1,data:{}})}):Mo.createElement("div",{className:se.wrapper},Mo.createElement("div",{className:"edu-container"},Mo.createElement(Ie.Z,{className:se.breadCrumbWrapper,separator:">",items:kt!=null&&kt.categoryId?[{title:Mo.createElement(Oe.Link,{to:`/classrooms/${kt.coursesId}/exercise`},(wn=(zt=(0,wo.eY)())==null?void 0:zt.course)==null?void 0:wn.course_name)},{title:Mo.createElement(Oe.Link,{to:`/classrooms/${kt.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:Mo.createElement(Oe.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),Mo.createElement(ue.d4,{activeKey:Dn,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:ya=>tl(void 0,null,function*(){if(ya==="settings"&&(yield Jr.validateFields(),!dn)){const yr=yield ge(la);yr.status===0&&Oe.history.replace(`/randompaper/edit/${yr==null?void 0:yr.examination_bank_id}?type=settings`)}Pn(ya)})}),Dn==="baseInfo"&&Mo.createElement(Yt,{courseOptions:Br,setCurrentKey:Pn,loading:Qa,form:Jr}),Mo.createElement("div",{style:{display:Dn==="settings"?"block":"none"}},la&&Mo.createElement(il,null)))))}},14670:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Te}});var b=ae(43418),se={ul:"ul___TdfYY"},be=ae(32637),Ae=ae(59301),Ie=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ke=(He,Ze)=>{var De={};for(var le in He)Oe.call(He,le)&&Ze.indexOf(le)<0&&(De[le]=He[le]);if(He!=null&&Ie)for(var le of Ie(He))Ze.indexOf(le)<0&&ue.call(He,le)&&(De[le]=He[le]);return De},Te=He=>{var Ze=He,{open:De,onCancel:le}=Ze,E=ke(Ze,["open","onCancel"]);return Ae.createElement(b.default,{centered:!0,open:De,title:Ae.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Ae.createElement("div",null,Ae.createElement("div",{className:"tc"},Ae.createElement("img",{className:"mt10",src:be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ae.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ae.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ae.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ae.createElement("ul",{className:se.ul},Ae.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ae.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ae.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},38644:function(_t,Ot,ae){"use strict";ae.d(Ot,{g:function(){return Ie}});var b=ae(59301),se=ae(81349),be=ae(69831),Ae=(Oe,ue,ke)=>new Promise((We,Te)=>{var He=le=>{try{De(ke.next(le))}catch(E){Te(E)}},Ze=le=>{try{De(ke.throw(le))}catch(E){Te(E)}},De=le=>le.done?We(le.value):Promise.resolve(le.value).then(He,Ze);De((ke=ke.apply(Oe,ue)).next())});const Ie=()=>{const[Oe,ue]=(0,b.useState)([]);return(0,b.useEffect)(()=>{Ae(void 0,null,function*(){const We=yield(0,se.d1)({source:"question"});We!=null&&We.disciplines&&ue((0,be.L)(We==null?void 0:We.disciplines))})},[]),Oe}},35427:function(_t,Ot,ae){"use strict";ae.d(Ot,{U:function(){return We}});var b=ae(59301),se=Object.defineProperty,be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Oe=(Te,He,Ze)=>He in Te?se(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Te[He]=Ze,ue=(Te,He)=>{for(var Ze in He||(He={}))Ae.call(He,Ze)&&Oe(Te,Ze,He[Ze]);if(be)for(var Ze of be(He))Ie.call(He,Ze)&&Oe(Te,Ze,He[Ze]);return Te},ke=(Te,He,Ze)=>new Promise((De,le)=>{var E=y=>{try{x(Ze.next(y))}catch(z){le(z)}},a=y=>{try{x(Ze.throw(y))}catch(z){le(z)}},x=y=>y.done?De(y.value):Promise.resolve(y.value).then(E,a);x((Ze=Ze.apply(Te,He)).next())});function We(Te,He){const[Ze,De]=(0,b.useState)(He),[le,E]=(0,b.useState)(!1),[a,x]=(0,b.useState)();return[Ze,le,(z,te=!1)=>ke(this,null,function*(){const re=te?He:ue(ue({},Ze),z);E(!0),De(re);const ie=yield Te(re);return E(!1),x(ie),ie}),a]}},50371:function(_t,Ot){"use strict";function ae(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let se=1;se<arguments.length;se++){const be=se<0||arguments.length<=se?void 0:arguments[se];be&&Object.keys(be).forEach(Ae=>{const Ie=be[Ae];Ie!==void 0&&(b[Ae]=Ie)})}return b}Ot.Z=ae},77578:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return b}});const b=se=>se?typeof se=="function"?se():se:null},13845:function(_t,Ot,ae){"use strict";ae.d(Ot,{F:function(){return b},Z:function(){return se}});function b(be){return be!=null&&be===be.window}function se(be,Ae){var Ie,Oe;if(typeof window=="undefined")return 0;const ue=Ae?"scrollTop":"scrollLeft";let ke=0;return b(be)?ke=be[Ae?"pageYOffset":"pageXOffset"]:be instanceof Document?ke=be.documentElement[ue]:(be instanceof HTMLElement||be)&&(ke=be[ue]),be&&!b(be)&&typeof ke!="number"&&(ke=(Oe=((Ie=be.ownerDocument)!==null&&Ie!==void 0?Ie:be).documentElement)===null||Oe===void 0?void 0:Oe[ue]),ke}},56762:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return se}});var b=ae(59301);function se(){const[,be]=b.useReducer(Ae=>Ae+1,0);return be}},68031:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Ae}});var b=ae(16089);function se(Ie,Oe,ue,ke){const We=ue-Oe;return Ie/=ke/2,Ie<1?We/2*Ie*Ie*Ie+Oe:We/2*((Ie-=2)*Ie*Ie+2)+Oe}var be=ae(13845);function Ae(Ie){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:ke,duration:We=450}=Oe,Te=ue(),He=(0,be.Z)(Te,!0),Ze=Date.now(),De=()=>{const E=Date.now()-Ze,a=se(E>We?We:E,He,Ie,We);(0,be.F)(Te)?Te.scrollTo(window.pageXOffset,a):Te instanceof Document||Te.constructor.name==="HTMLDocument"?Te.documentElement.scrollTop=a:Te.scrollTop=a,E<We?(0,b.Z)(De):typeof ke=="function"&&ke()};(0,b.Z)(De)}},66104:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ot}});var b=ae(92310),se=ae.n(b),be=ae(11592),Ae=ae(26112),Ie=ae(59301),Oe=ae(92343),ue=ae(36355),ke=ae(84105),We=ae(91857);const Te=Le=>{let{children:Je}=Le;const{getPrefixCls:st}=Ie.useContext(ue.E_),Ke=st("breadcrumb");return Ie.createElement("li",{className:`${Ke}-separator`,"aria-hidden":"true"},Je===""?Je:Je||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var He=Te,Ze=function(Le,Je){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Je.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ke=Object.getOwnPropertySymbols(Le);$e<Ke.length;$e++)Je.indexOf(Ke[$e])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[$e])&&(st[Ke[$e]]=Le[Ke[$e]]);return st};function De(Le,Je){if(Le.title===void 0||Le.title===null)return null;const st=Object.keys(Je).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${st})`,"g"),(Ke,$e)=>Je[$e]||Ke)}function le(Le,Je,st,Ke){if(st==null)return null;const{className:$e,onClick:Wt}=Je,it=Ze(Je,["className","onClick"]),jt=Object.assign(Object.assign({},(0,Ae.Z)(it,{data:!0,aria:!0})),{onClick:Wt});return Ke!==void 0?Ie.createElement("a",Object.assign({},jt,{className:se()(`${Le}-link`,$e),href:Ke}),st):Ie.createElement("span",Object.assign({},jt,{className:se()(`${Le}-link`,$e)}),st)}function E(Le,Je){return(Ke,$e,Wt,it,jt)=>{if(Je)return Je(Ke,$e,Wt,it);const Xt=De(Ke,$e);return le(Le,Ke,Xt,jt)}}var a=function(Le,Je){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Je.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ke=Object.getOwnPropertySymbols(Le);$e<Ke.length;$e++)Je.indexOf(Ke[$e])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[$e])&&(st[Ke[$e]]=Le[Ke[$e]]);return st};const x=Le=>{const{prefixCls:Je,separator:st="/",children:Ke,menu:$e,overlay:Wt,dropdownProps:it,href:jt}=Le,Qe=(ft=>{if($e||Wt){const Dt=Object.assign({},it);if($e){const rn=$e||{},{items:Pt}=rn,Jt=a(rn,["items"]);Dt.menu=Object.assign(Object.assign({},Jt),{items:Pt==null?void 0:Pt.map((Be,Ut)=>{var{key:En,title:Ct,label:It,path:et}=Be,Ue=a(Be,["key","title","label","path"]);let Fe=It!=null?It:Ct;return et&&(Fe=Ie.createElement("a",{href:`${jt}${et}`},Fe)),Object.assign(Object.assign({},Ue),{key:En!=null?En:Ut,label:Fe})})})}else Wt&&(Dt.overlay=Wt);return Ie.createElement(We.Z,Object.assign({placement:"bottom"},Dt),Ie.createElement("span",{className:`${Je}-overlay-link`},ft,Ie.createElement(ke.Z,null)))}return ft})(Ke);return Qe!=null?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Qe),st&&Ie.createElement(He,null,st)):null},y=Le=>{const{prefixCls:Je,children:st,href:Ke}=Le,$e=a(Le,["prefixCls","children","href"]),{getPrefixCls:Wt}=Ie.useContext(ue.E_),it=Wt("breadcrumb",Je);return Ie.createElement(x,Object.assign({},$e,{prefixCls:it}),le(it,$e,st,Ke))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),re=ae(83116),ie=ae(37613);const ce=Le=>{const{componentCls:Je,iconCls:st}=Le;return{[Je]:Object.assign(Object.assign({},(0,te.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[st]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,te.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Je}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Je}-link`]:{[`
> ${st} + span,
> ${st} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Je}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${st}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var pe=(0,re.Z)("Breadcrumb",Le=>{const Je=(0,ie.TS)(Le,{});return[ce(Je)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ge=function(Le,Je){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Je.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ke=Object.getOwnPropertySymbols(Le);$e<Ke.length;$e++)Je.indexOf(Ke[$e])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[$e])&&(st[Ke[$e]]=Le[Ke[$e]]);return st};function Ee(Le){const{breadcrumbName:Je,children:st}=Le,Ke=ge(Le,["breadcrumbName","children"]),$e=Object.assign({title:Je},Ke);return st&&($e.menu={items:st.map(Wt=>{var{breadcrumbName:it}=Wt,jt=ge(Wt,["breadcrumbName"]);return Object.assign(Object.assign({},jt),{title:it})})}),$e}function ye(Le,Je){return(0,Ie.useMemo)(()=>Le||(Je?Je.map(Ee):null),[Le,Je])}var Re=function(Le,Je){var st={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Je.indexOf(Ke)<0&&(st[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ke=Object.getOwnPropertySymbols(Le);$e<Ke.length;$e++)Je.indexOf(Ke[$e])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ke[$e])&&(st[Ke[$e]]=Le[Ke[$e]]);return st};const he=(Le,Je)=>{if(Je===void 0)return Je;let st=(Je||"").replace(/^\//,"");return Object.keys(Le).forEach(Ke=>{st=st.replace(`:${Ke}`,Le[Ke])}),st},qe=Le=>{const{prefixCls:Je,separator:st="/",style:Ke,className:$e,rootClassName:Wt,routes:it,items:jt,children:Xt,itemRender:Qe,params:ft={}}=Le,Dt=Re(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:rn,direction:Pt,breadcrumb:Jt}=Ie.useContext(ue.E_);let Be;const Ut=rn("breadcrumb",Je),[En,Ct]=pe(Ut),It=ye(jt,it),et=E(Ut,Qe);if(It&&It.length>0){const ve=[],tt=jt||it;Be=It.map((At,we)=>{const{path:Ce,key:vt,type:Ye,menu:_e,overlay:Et,onClick:cn,className:Lt,separator:qt,dropdownProps:Yt}=At,nn=he(ft,Ce);nn!==void 0&&ve.push(nn);const bt=vt!=null?vt:we;if(Ye==="separator")return Ie.createElement(He,{key:bt},qt);const on={},An=we===It.length-1;_e?on.menu=_e:Et&&(on.overlay=Et);let{href:Zt}=At;return ve.length&&nn!==void 0&&(Zt=`#/${ve.join("/")}`),Ie.createElement(x,Object.assign({key:bt},on,(0,Ae.Z)(At,{data:!0,aria:!0}),{className:Lt,dropdownProps:Yt,href:Zt,separator:An?"":st,onClick:cn,prefixCls:Ut}),et(At,ft,tt,ve,Zt))})}else if(Xt){const ve=(0,be.Z)(Xt).length;Be=(0,be.Z)(Xt).map((tt,At)=>{if(!tt)return tt;const we=At===ve-1;return(0,Oe.Tm)(tt,{separator:we?"":st,key:At})})}const Ue=se()(Ut,Jt==null?void 0:Jt.className,{[`${Ut}-rtl`]:Pt==="rtl"},$e,Wt,Ct),Fe=Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Ke);return En(Ie.createElement("nav",Object.assign({className:Ue,style:Fe},Dt),Ie.createElement("ol",null,Be)))};qe.Item=z,qe.Separator=He;var je=qe,ot=je},19842:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Oa}});var b=ae(65093),se=ae(59301),be=ae(33853),Ae=ae(58617),Ie=ae(38819),Oe=ae(92310),ue=ae.n(Oe),ke=ae(16378),We=ae(10859),Te=ae(61206),He=ae(77861),Ze=ae(17115),De=ae(90782),le=ae(6089),E=ae(18929),a=se.createContext(null),x=a,y=ae(42066),z=ae(78772),te=ae(35227),re="__rc_cascader_search_mark__",ie=function(Ft,Ht,Vt){var tn=Vt.label;return Ht.some(function(Sn){return String(Sn[tn]).toLowerCase().includes(Ft.toLowerCase())})},ce=function(Ft,Ht,Vt,tn){return Ht.map(function(Sn){return Sn[tn.label]}).join(" / ")},pe=function(Ve,Ft,Ht,Vt,tn,Sn){var mn=tn.filter,lt=mn===void 0?ie:mn,pt=tn.render,ct=pt===void 0?ce:pt,Kt=tn.limit,vn=Kt===void 0?50:Kt,an=tn.sort;return se.useMemo(function(){var kn=[];if(!Ve)return[];function Fn(Bn,Un){var Ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Bn.forEach(function(bn){if(!(!an&&vn!==!1&&vn>0&&kn.length>=vn)){var pa=[].concat((0,b.Z)(Un),[bn]),$a=bn[Ht.children],lr=Ra||bn.disabled;if((!$a||$a.length===0||Sn)&&lt(Ve,pa,{label:Ht.label})){var Jn;kn.push((0,te.Z)((0,te.Z)({},bn),{},(Jn={disabled:lr},(0,z.Z)(Jn,Ht.label,ct(Ve,pa,Vt,Ht)),(0,z.Z)(Jn,re,pa),(0,z.Z)(Jn,Ht.children,void 0),Jn)))}$a&&Fn(bn[Ht.children],pa,lr)}})}return Fn(Ft,[]),an&&kn.sort(function(Bn,Un){return an(Bn[re],Un[re],Ve,Ht)}),vn!==!1&&vn>0?kn.slice(0,vn):kn},[Ve,Ft,Ht,Vt,ct,Sn,lt,an,vn])},ge="__RC_CASCADER_SPLIT__",Ee="SHOW_PARENT",ye="SHOW_CHILD";function Re(Ve){return Ve.join(ge)}function he(Ve){return Ve.map(Re)}function qe(Ve){return Ve.split(ge)}function je(Ve){var Ft=Ve||{},Ht=Ft.label,Vt=Ft.value,tn=Ft.children,Sn=Vt||"value";return{label:Ht||"label",value:Sn,key:Sn,children:tn||"children"}}function ot(Ve,Ft){var Ht,Vt;return(Ht=Ve.isLeaf)!==null&&Ht!==void 0?Ht:!((Vt=Ve[Ft.children])!==null&&Vt!==void 0&&Vt.length)}function Le(Ve){var Ft=Ve.parentElement;if(Ft){var Ht=Ve.offsetTop-Ft.offsetTop;Ht-Ft.scrollTop<0?Ft.scrollTo({top:Ht}):Ht+Ve.offsetHeight-Ft.scrollTop>Ft.offsetHeight&&Ft.scrollTo({top:Ht+Ve.offsetHeight-Ft.offsetHeight})}}function Je(Ve,Ft){return Ve.map(function(Ht){var Vt;return(Vt=Ht[re])===null||Vt===void 0?void 0:Vt.map(function(tn){return tn[Ft.value]})})}function st(Ve,Ft,Ht){var Vt=new Set(Ve),tn=Ft();return Ve.filter(function(Sn){var mn=tn[Sn],lt=mn?mn.parent:null,pt=mn?mn.children:null;return mn&&mn.node.disabled?!0:Ht===ye?!(pt&&pt.some(function(ct){return ct.key&&Vt.has(ct.key)})):!(lt&&!lt.node.disabled&&Vt.has(lt.key))})}function Ke(Ve,Ft,Ht){for(var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,tn=Ft,Sn=[],mn=function(){var ct,Kt,vn,an=Ve[lt],kn=(ct=tn)===null||ct===void 0?void 0:ct.findIndex(function(Bn){var Un=Bn[Ht.value];return Vt?String(Un)===String(an):Un===an}),Fn=kn!==-1?(Kt=tn)===null||Kt===void 0?void 0:Kt[kn]:null;Sn.push({value:(vn=Fn==null?void 0:Fn[Ht.value])!==null&&vn!==void 0?vn:an,index:kn,option:Fn}),tn=Fn==null?void 0:Fn[Ht.children]},lt=0;lt<Ve.length;lt+=1)mn();return Sn}var $e=function(Ve,Ft,Ht,Vt,tn){return se.useMemo(function(){var Sn=tn||function(mn){var lt=Vt?mn.slice(-1):mn,pt=" / ";return lt.every(function(ct){return["string","number"].includes((0,y.Z)(ct))})?lt.join(pt):lt.reduce(function(ct,Kt,vn){var an=se.isValidElement(Kt)?se.cloneElement(Kt,{key:vn}):Kt;return vn===0?[an]:[].concat((0,b.Z)(ct),[pt,an])},[])};return Ve.map(function(mn){var lt,pt,ct=Ke(mn,Ft,Ht),Kt=Sn(ct.map(function(an){var kn,Fn=an.option,Bn=an.value;return(kn=Fn==null?void 0:Fn[Ht.label])!==null&&kn!==void 0?kn:Bn}),ct.map(function(an){var kn=an.option;return kn})),vn=Re(mn);return{label:Kt,value:vn,key:vn,valueCells:mn,disabled:(lt=ct[ct.length-1])===null||lt===void 0||(pt=lt.option)===null||pt===void 0?void 0:pt.disabled}})},[Ve,Ft,Ht,tn,Vt])},Wt=ae(71430),it=function(Ve,Ft){var Ht=se.useRef({options:null,info:null}),Vt=se.useCallback(function(){return Ht.current.options!==Ve&&(Ht.current.options=Ve,Ht.current.info=(0,Wt.I8)(Ve,{fieldNames:Ft,initWrapper:function(Sn){return(0,te.Z)((0,te.Z)({},Sn),{},{pathKeyEntities:{}})},processEntity:function(Sn,mn){var lt=Sn.nodes.map(function(pt){return pt[Ft.value]}).join(ge);mn.pathKeyEntities[lt]=Sn,Sn.key=lt}})),Ht.current.info.pathKeyEntities},[Ft,Ve]);return Vt},jt=function(Ve,Ft){return se.useCallback(function(Ht){var Vt=[],tn=[];return Ht.forEach(function(Sn){var mn=Ke(Sn,Ve,Ft);mn.every(function(lt){return lt.option})?tn.push(Sn):Vt.push(Sn)}),[tn,Vt]},[Ve,Ft])},Xt=ae(48736);function Qe(Ve){return se.useMemo(function(){if(!Ve)return[!1,{}];var Ft={matchInputWidth:!0,limit:50};return Ve&&(0,y.Z)(Ve)==="object"&&(Ft=(0,te.Z)((0,te.Z)({},Ft),Ve)),Ft.limit<=0&&delete Ft.limit,[!0,Ft]},[Ve])}var ft=se.memo(function(Ve){var Ft=Ve.children;return Ft},function(Ve,Ft){return!Ft.open}),Dt=ft;function rn(Ve){var Ft,Ht=Ve.prefixCls,Vt=Ve.checked,tn=Ve.halfChecked,Sn=Ve.disabled,mn=Ve.onClick,lt=Ve.disableCheckbox,pt=se.useContext(x),ct=pt.checkable,Kt=typeof ct!="boolean"?ct:null;return se.createElement("span",{className:ue()("".concat(Ht),(Ft={},(0,z.Z)(Ft,"".concat(Ht,"-checked"),Vt),(0,z.Z)(Ft,"".concat(Ht,"-indeterminate"),!Vt&&tn),(0,z.Z)(Ft,"".concat(Ht,"-disabled"),Sn||lt),Ft)),onClick:mn},Kt)}var Pt="__cascader_fix_label__";function Jt(Ve){var Ft=Ve.prefixCls,Ht=Ve.multiple,Vt=Ve.options,tn=Ve.activeValue,Sn=Ve.prevValuePath,mn=Ve.onToggleOpen,lt=Ve.onSelect,pt=Ve.onActive,ct=Ve.checkedSet,Kt=Ve.halfCheckedSet,vn=Ve.loadingKeys,an=Ve.isSelectable,kn=Ve.searchValue,Fn="".concat(Ft,"-menu"),Bn="".concat(Ft,"-menu-item"),Un=se.useContext(x),Ra=Un.fieldNames,bn=Un.changeOnSelect,pa=Un.expandTrigger,$a=Un.expandIcon,lr=Un.loadingIcon,Jn=Un.dropdownMenuColumnStyle,sn=pa==="hover",Dr=se.useMemo(function(){return Vt.map(function(Ga){var Er,Cr=Ga.disabled,Lr=Ga.disableCheckbox,xr=Ga[re],so=(Er=Ga[Pt])!==null&&Er!==void 0?Er:Ga[Ra.label],qr=Ga[Ra.value],_o=ot(Ga,Ra),Mn=xr?xr.map(function($n){return $n[Ra.value]}):[].concat((0,b.Z)(Sn),[qr]),Mr=Re(Mn),Rr=vn.includes(Mr),Gr=ct.has(Mr),za=Kt.has(Mr);return{disabled:Cr,label:so,value:qr,isLeaf:_o,isLoading:Rr,checked:Gr,halfChecked:za,option:Ga,disableCheckbox:Lr,fullPath:Mn,fullPathKey:Mr}})},[Vt,ct,Ra,Kt,vn,Sn]);return se.createElement("ul",{className:Fn,role:"menu"},Dr.map(function(Ga){var Er,Cr=Ga.disabled,Lr=Ga.label,xr=Ga.value,so=Ga.isLeaf,qr=Ga.isLoading,_o=Ga.checked,Mn=Ga.halfChecked,Mr=Ga.option,Rr=Ga.fullPath,Gr=Ga.fullPathKey,za=Ga.disableCheckbox,$n=function(){if(!(Cr||kn)){var fr=(0,b.Z)(Rr);sn&&so&&fr.pop(),pt(fr)}},Aa=function(){an(Mr)&&lt(Rr,so)},ja;return typeof Mr.title=="string"?ja=Mr.title:typeof Lr=="string"&&(ja=Lr),se.createElement("li",{key:Gr,className:ue()(Bn,(Er={},(0,z.Z)(Er,"".concat(Bn,"-expand"),!so),(0,z.Z)(Er,"".concat(Bn,"-active"),tn===xr||tn===Gr),(0,z.Z)(Er,"".concat(Bn,"-disabled"),Cr),(0,z.Z)(Er,"".concat(Bn,"-loading"),qr),Er)),style:Jn,role:"menuitemcheckbox",title:ja,"aria-checked":_o,"data-path-key":Gr,onClick:function(){$n(),!za&&(!Ht||so)&&Aa()},onDoubleClick:function(){bn&&mn(!1)},onMouseEnter:function(){sn&&$n()},onMouseDown:function(fr){fr.preventDefault()}},Ht&&se.createElement(rn,{prefixCls:"".concat(Ft,"-checkbox"),checked:_o,halfChecked:Mn,disabled:Cr||za,disableCheckbox:za,onClick:function(fr){za||(fr.stopPropagation(),Aa())}}),se.createElement("div",{className:"".concat(Bn,"-content")},Lr),!qr&&$a&&!so&&se.createElement("div",{className:"".concat(Bn,"-expand-icon")},$a),qr&&lr&&se.createElement("div",{className:"".concat(Bn,"-loading-icon")},lr))}))}var Be=function(){var Ve=(0,He.lk)(),Ft=Ve.multiple,Ht=Ve.open,Vt=se.useContext(x),tn=Vt.values,Sn=se.useState([]),mn=(0,We.Z)(Sn,2),lt=mn[0],pt=mn[1];return se.useEffect(function(){if(Ht&&!Ft){var ct=tn[0];pt(ct||[])}},[Ht]),[lt,pt]},Ut=ae(10228),En=function(Ve,Ft,Ht,Vt,tn,Sn){var mn=(0,He.lk)(),lt=mn.direction,pt=mn.searchValue,ct=mn.toggleOpen,Kt=mn.open,vn=lt==="rtl",an=se.useMemo(function(){for(var Jn=-1,sn=Ft,Dr=[],Ga=[],Er=Vt.length,Cr=Je(Ft,Ht),Lr=function(Mr){var Rr=sn.findIndex(function(Gr,za){return(Cr[za]?Re(Cr[za]):Gr[Ht.value])===Vt[Mr]});if(Rr===-1)return"break";Jn=Rr,Dr.push(Jn),Ga.push(Vt[Mr]),sn=sn[Jn][Ht.children]},xr=0;xr<Er&&sn;xr+=1){var so=Lr(xr);if(so==="break")break}for(var qr=Ft,_o=0;_o<Dr.length-1;_o+=1)qr=qr[Dr[_o]][Ht.children];return[Ga,Jn,qr,Cr]},[Vt,Ht,Ft]),kn=(0,We.Z)(an,4),Fn=kn[0],Bn=kn[1],Un=kn[2],Ra=kn[3],bn=function(sn){tn(sn)},pa=function(sn){var Dr=Un.length,Ga=Bn;Ga===-1&&sn<0&&(Ga=Dr);for(var Er=0;Er<Dr;Er+=1){Ga=(Ga+sn+Dr)%Dr;var Cr=Un[Ga];if(Cr&&!Cr.disabled){var Lr=Fn.slice(0,-1).concat(Ra[Ga]?Re(Ra[Ga]):Cr[Ht.value]);bn(Lr);return}}},$a=function(){if(Fn.length>1){var sn=Fn.slice(0,-1);bn(sn)}else ct(!1)},lr=function(){var sn,Dr=((sn=Un[Bn])===null||sn===void 0?void 0:sn[Ht.children])||[],Ga=Dr.find(function(Cr){return!Cr.disabled});if(Ga){var Er=[].concat((0,b.Z)(Fn),[Ga[Ht.value]]);bn(Er)}};se.useImperativeHandle(Ve,function(){return{onKeyDown:function(sn){var Dr=sn.which;switch(Dr){case Ut.Z.UP:case Ut.Z.DOWN:{var Ga=0;Dr===Ut.Z.UP?Ga=-1:Dr===Ut.Z.DOWN&&(Ga=1),Ga!==0&&pa(Ga);break}case Ut.Z.LEFT:{if(pt)break;vn?lr():$a();break}case Ut.Z.RIGHT:{if(pt)break;vn?$a():lr();break}case Ut.Z.BACKSPACE:{pt||$a();break}case Ut.Z.ENTER:{if(Fn.length){var Er=Un[Bn],Cr=(Er==null?void 0:Er[re])||[];Cr.length?Sn(Cr.map(function(Lr){return Lr[Ht.value]}),Cr[Cr.length-1]):Sn(Fn,Un[Bn])}break}case Ut.Z.ESC:ct(!1),Kt&&sn.stopPropagation()}},onKeyUp:function(){}}})},Ct=se.forwardRef(function(Ve,Ft){var Ht,Vt,tn,Sn,mn=(0,He.lk)(),lt=mn.prefixCls,pt=mn.multiple,ct=mn.searchValue,Kt=mn.toggleOpen,vn=mn.notFoundContent,an=mn.direction,kn=mn.open,Fn=se.useRef(),Bn=an==="rtl",Un=se.useContext(x),Ra=Un.options,bn=Un.values,pa=Un.halfValues,$a=Un.fieldNames,lr=Un.changeOnSelect,Jn=Un.onSelect,sn=Un.searchOptions,Dr=Un.dropdownPrefixCls,Ga=Un.loadData,Er=Un.expandTrigger,Cr=Dr||lt,Lr=se.useState([]),xr=(0,We.Z)(Lr,2),so=xr[0],qr=xr[1],_o=function(Ba){if(!(!Ga||ct)){var eo=Ke(Ba,Ra,$a),mo=eo.map(function(xo){var oi=xo.option;return oi}),Ro=mo[mo.length-1];if(Ro&&!ot(Ro,$a)){var Po=Re(Ba);qr(function(xo){return[].concat((0,b.Z)(xo),[Po])}),Ga(mo)}}};se.useEffect(function(){so.length&&so.forEach(function(So){var Ba=qe(So),eo=Ke(Ba,Ra,$a,!0).map(function(Ro){var Po=Ro.option;return Po}),mo=eo[eo.length-1];(!mo||mo[$a.children]||ot(mo,$a))&&qr(function(Ro){return Ro.filter(function(Po){return Po!==So})})})},[Ra,so,$a]);var Mn=se.useMemo(function(){return new Set(he(bn))},[bn]),Mr=se.useMemo(function(){return new Set(he(pa))},[pa]),Rr=Be(),Gr=(0,We.Z)(Rr,2),za=Gr[0],$n=Gr[1],Aa=function(Ba){$n(Ba),_o(Ba)},ja=function(Ba){var eo=Ba.disabled,mo=ot(Ba,$a);return!eo&&(mo||lr||pt)},ga=function(Ba,eo){var mo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jn(Ba),!pt&&(eo||lr&&(Er==="hover"||mo))&&Kt(!1)},fr=se.useMemo(function(){return ct?sn:Ra},[ct,sn,Ra]),Hr=se.useMemo(function(){for(var So=[{options:fr}],Ba=fr,eo=Je(Ba,$a),mo=function(){var oi=za[Ro],$o=Ba.find(function(Ci,Uo){return(eo[Uo]?Re(eo[Uo]):Ci[$a.value])===oi}),Ho=$o==null?void 0:$o[$a.children];if(!(Ho!=null&&Ho.length))return"break";Ba=Ho,So.push({options:Ho})},Ro=0;Ro<za.length;Ro+=1){var Po=mo();if(Po==="break")break}return So},[fr,za,$a]),oo=function(Ba,eo){ja(eo)&&ga(Ba,ot(eo,$a),!0)};En(Ft,fr,$a,za,Aa,oo),se.useEffect(function(){for(var So=0;So<za.length;So+=1){var Ba,eo=za.slice(0,So+1),mo=Re(eo),Ro=(Ba=Fn.current)===null||Ba===void 0?void 0:Ba.querySelector('li[data-path-key="'.concat(mo.replace(/\\{0,2}"/g,'\\"'),'"]'));Ro&&Le(Ro)}},[za]);var Tr=!((Ht=Hr[0])!==null&&Ht!==void 0&&(Vt=Ht.options)!==null&&Vt!==void 0&&Vt.length),co=[(tn={},(0,z.Z)(tn,$a.value,"__EMPTY__"),(0,z.Z)(tn,Pt,vn),(0,z.Z)(tn,"disabled",!0),tn)],ni=(0,te.Z)((0,te.Z)({},Ve),{},{multiple:!Tr&&pt,onSelect:ga,onActive:Aa,onToggleOpen:Kt,checkedSet:Mn,halfCheckedSet:Mr,loadingKeys:so,isSelectable:ja}),Jo=Tr?[{options:co}]:Hr,_i=Jo.map(function(So,Ba){var eo=za.slice(0,Ba),mo=za[Ba];return se.createElement(Jt,(0,ke.Z)({key:Ba},ni,{searchValue:ct,prefixCls:Cr,options:So.options,prevValuePath:eo,activeValue:mo}))});return se.createElement(Dt,{open:kn},se.createElement("div",{className:ue()("".concat(Cr,"-menus"),(Sn={},(0,z.Z)(Sn,"".concat(Cr,"-menu-empty"),Tr),(0,z.Z)(Sn,"".concat(Cr,"-rtl"),Bn),Sn)),ref:Fn},_i))}),It=Ct;function et(Ve){var Ft=Ve.onPopupVisibleChange,Ht=Ve.popupVisible,Vt=Ve.popupClassName,tn=Ve.popupPlacement;warning(!Ft,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ht===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Vt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(tn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ue(Ve,Ft){if(Ve){var Ht=function Vt(tn){for(var Sn=0;Sn<tn.length;Sn++){var mn=tn[Sn];if(mn[Ft==null?void 0:Ft.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(mn[Ft==null?void 0:Ft.children])&&Vt(mn[Ft==null?void 0:Ft.children]))return!0}};Ht(Ve)}}var Fe=null,ve=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function tt(Ve){return Array.isArray(Ve)&&Array.isArray(Ve[0])}function At(Ve){return Ve?tt(Ve)?Ve:(Ve.length===0?[]:[Ve]).map(function(Ft){return Array.isArray(Ft)?Ft:[Ft]}):[]}var we=se.forwardRef(function(Ve,Ft){var Ht=Ve.id,Vt=Ve.prefixCls,tn=Vt===void 0?"rc-cascader":Vt,Sn=Ve.fieldNames,mn=Ve.defaultValue,lt=Ve.value,pt=Ve.changeOnSelect,ct=Ve.onChange,Kt=Ve.displayRender,vn=Ve.checkable,an=Ve.autoClearSearchValue,kn=an===void 0?!0:an,Fn=Ve.searchValue,Bn=Ve.onSearch,Un=Ve.showSearch,Ra=Ve.expandTrigger,bn=Ve.options,pa=Ve.dropdownPrefixCls,$a=Ve.loadData,lr=Ve.popupVisible,Jn=Ve.open,sn=Ve.popupClassName,Dr=Ve.dropdownClassName,Ga=Ve.dropdownMenuColumnStyle,Er=Ve.popupPlacement,Cr=Ve.placement,Lr=Ve.onDropdownVisibleChange,xr=Ve.onPopupVisibleChange,so=Ve.expandIcon,qr=so===void 0?">":so,_o=Ve.loadingIcon,Mn=Ve.children,Mr=Ve.dropdownMatchSelectWidth,Rr=Mr===void 0?!1:Mr,Gr=Ve.showCheckedStrategy,za=Gr===void 0?Ee:Gr,$n=(0,Te.Z)(Ve,ve),Aa=(0,Ze.ZP)(Ht),ja=!!vn,ga=(0,E.Z)(mn,{value:lt,postState:At}),fr=(0,We.Z)(ga,2),Hr=fr[0],oo=fr[1],Tr=se.useMemo(function(){return je(Sn)},[JSON.stringify(Sn)]),co=se.useMemo(function(){return bn||[]},[bn]),ni=it(co,Tr),Jo=se.useCallback(function(na){var ia=ni();return na.map(function(Pa){var hr=ia[Pa].nodes;return hr.map(function(_r){return _r[Tr.value]})})},[ni,Tr]),_i=(0,E.Z)("",{value:Fn,postState:function(ia){return ia||""}}),So=(0,We.Z)(_i,2),Ba=So[0],eo=So[1],mo=function(ia,Pa){eo(ia),Pa.source!=="blur"&&Bn&&Bn(ia)},Ro=Qe(Un),Po=(0,We.Z)(Ro,2),xo=Po[0],oi=Po[1],$o=pe(Ba,co,Tr,pa||tn,oi,pt),Ho=jt(co,Tr),Ci=se.useMemo(function(){var na=Ho(Hr),ia=(0,We.Z)(na,2),Pa=ia[0],hr=ia[1];if(!ja||!Hr.length)return[Pa,[],hr];var _r=he(Pa),no=ni(),fo=(0,De.S)(_r,!0,no),wo=fo.checkedKeys,Bo=fo.halfCheckedKeys;return[Jo(wo),Jo(Bo),hr]},[ja,Hr,ni,Jo,Ho]),Uo=(0,We.Z)(Ci,3),Eo=Uo[0],xi=Uo[1],yo=Uo[2],Mi=se.useMemo(function(){var na=he(Eo),ia=st(na,ni,za);return[].concat((0,b.Z)(yo),(0,b.Z)(Jo(ia)))},[Eo,ni,Jo,yo,za]),ai=$e(Mi,co,Tr,ja,Kt),Wi=(0,le.Z)(function(na){if(oo(na),ct){var ia=At(na),Pa=ia.map(function(no){return Ke(no,co,Tr).map(function(fo){return fo.option})}),hr=ja?ia:ia[0],_r=ja?Pa:Pa[0];ct(hr,_r)}}),Di=(0,le.Z)(function(na){if((!ja||kn)&&eo(""),!ja)Wi(na);else{var ia=Re(na),Pa=he(Eo),hr=he(xi),_r=Pa.includes(ia),no=yo.some(function(Zi){return Re(Zi)===ia}),fo=Eo,wo=yo;if(no&&!_r)wo=yo.filter(function(Zi){return Re(Zi)!==ia});else{var Bo=_r?Pa.filter(function(Zi){return Zi!==ia}):[].concat((0,b.Z)(Pa),[ia]),ka=ni(),zo;if(_r){var Bi=(0,De.S)(Bo,{checked:!1,halfCheckedKeys:hr},ka);zo=Bi.checkedKeys}else{var si=(0,De.S)(Bo,!0,ka);zo=si.checkedKeys}var ki=st(zo,ni,za);fo=Jo(ki)}Wi([].concat((0,b.Z)(wo),(0,b.Z)(fo)))}}),Ti=function(ia,Pa){if(Pa.type==="clear"){Wi([]);return}var hr=Pa.values[0],_r=hr.valueCells;Di(_r)},Yo=Jn!==void 0?Jn:lr,Ki=Dr||sn,pl=Cr||Er,$i=function(ia){Lr==null||Lr(ia),xr==null||xr(ia)},Yi=se.useMemo(function(){return{options:co,fieldNames:Tr,values:Eo,halfValues:xi,changeOnSelect:pt,onSelect:Di,checkable:vn,searchOptions:$o,dropdownPrefixCls:pa,loadData:$a,expandTrigger:Ra,expandIcon:qr,loadingIcon:_o,dropdownMenuColumnStyle:Ga}},[co,Tr,Eo,xi,pt,Di,vn,$o,pa,$a,Ra,qr,_o,Ga]),Ur=!(Ba?$o:co).length,Ta=Ba&&oi.matchInputWidth||Ur?{}:{minWidth:"auto"};return se.createElement(x.Provider,{value:Yi},se.createElement(He.Ac,(0,ke.Z)({},$n,{ref:Ft,id:Aa,prefixCls:tn,autoClearSearchValue:kn,dropdownMatchSelectWidth:Rr,dropdownStyle:Ta,displayValues:ai,onDisplayValuesChange:Ti,mode:ja?"multiple":void 0,searchValue:Ba,onSearch:mo,showSearch:xo,OptionList:It,emptyOptions:Ur,open:Yo,dropdownClassName:Ki,placement:pl,onDropdownVisibleChange:$i,getRawInputElement:function(){return Mn}})))});we.SHOW_PARENT=Ee,we.SHOW_CHILD=ye;var Ce=we,vt=Ce,Ye=ae(2738),_e=ae(62892),Et=ae(53487),cn=ae(19080),Lt=ae(36355),qt=ae(93891),Yt=ae(1684),nn=ae(19716),bt=ae(32441),on=ae(14154),An=ae(58582),Zt=ae(84443),wt=ae(66339),Nn=ae(33234),zn=ae(98447),Wn=ae(17313),Yn=ae(74207),xa=ae(83116);const ln=Ve=>{const{prefixCls:Ft,componentCls:Ht,antCls:Vt}=Ve,tn=`${Ht}-menu-item`,Sn=`
&${tn}-expand ${tn}-expand-icon,
${tn}-loading-icon
`;return[{[Ht]:{width:Ve.controlWidth}},{[`${Ht}-dropdown`]:[(0,zn.C2)(`${Ft}-checkbox`,Ve),{[`&${Vt}-select-dropdown`]:{padding:0}},{[Ht]:{"&-checkbox":{top:0,marginInlineEnd:Ve.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ht}-menu-empty`]:{[`${Ht}-menu`]:{width:"100%",height:"auto",[tn]:{color:Ve.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ve.controlItemWidth,height:Ve.dropdownHeight,margin:0,padding:Ve.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorSplit}`},"&-item":Object.assign(Object.assign({},Wn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ve.optionPadding,lineHeight:Ve.lineHeight,cursor:"pointer",transition:`all ${Ve.motionDurationMid}`,borderRadius:Ve.borderRadiusSM,"&:hover":{background:Ve.controlItemBgHover},"&-disabled":{color:Ve.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Sn]:{color:Ve.colorTextDisabled}},[`&-active:not(${tn}-disabled)`]:{"&, &:hover":{fontWeight:Ve.optionSelectedFontWeight,backgroundColor:Ve.optionSelectedBg}},"&-content":{flex:"auto"},[Sn]:{marginInlineStart:Ve.paddingXXS,color:Ve.colorTextDescription,fontSize:Ve.fontSizeIcon},"&-keyword":{color:Ve.colorHighlight}})}}}]},{[`${Ht}-dropdown-rtl`]:{direction:"rtl"}},(0,Yn.c)(Ve)]};var en=(0,xa.Z)("Cascader",Ve=>[ln(Ve)],Ve=>{const Ft=Math.round((Ve.controlHeight-Ve.fontSize*Ve.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ve.controlItemBgActive,optionSelectedFontWeight:Ve.fontWeightStrong,optionPadding:`${Ft}px ${Ve.paddingSM}px`,menuPadding:Ve.paddingXXS}}),pn=function(Ve,Ft){var Ht={};for(var Vt in Ve)Object.prototype.hasOwnProperty.call(Ve,Vt)&&Ft.indexOf(Vt)<0&&(Ht[Vt]=Ve[Vt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Vt=Object.getOwnPropertySymbols(Ve);tn<Vt.length;tn++)Ft.indexOf(Vt[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Vt[tn])&&(Ht[Vt[tn]]=Ve[Vt[tn]]);return Ht};const{SHOW_CHILD:Zn,SHOW_PARENT:xn}=vt;function La(Ve,Ft,Ht){const Vt=Ve.toLowerCase().split(Ft).reduce((mn,lt,pt)=>pt===0?[lt]:[].concat((0,b.Z)(mn),[Ft,lt]),[]),tn=[];let Sn=0;return Vt.forEach((mn,lt)=>{const pt=Sn+mn.length;let ct=Ve.slice(Sn,pt);Sn=pt,lt%2===1&&(ct=se.createElement("span",{className:`${Ht}-menu-item-keyword`,key:`separator-${lt}`},ct)),tn.push(ct)}),tn}const Wa=(Ve,Ft,Ht,Vt)=>{const tn=[],Sn=Ve.toLowerCase();return Ft.forEach((mn,lt)=>{lt!==0&&tn.push(" / ");let pt=mn[Vt.label];const ct=typeof pt;(ct==="string"||ct==="number")&&(pt=La(String(pt),Sn,Ht)),tn.push(pt)}),tn},ta=se.forwardRef((Ve,Ft)=>{const{prefixCls:Ht,size:Vt,disabled:tn,className:Sn,rootClassName:mn,multiple:lt,bordered:pt=!0,transitionName:ct,choiceTransitionName:Kt="",popupClassName:vn,dropdownClassName:an,expandIcon:kn,placement:Fn,showSearch:Bn,allowClear:Un=!0,notFoundContent:Ra,direction:bn,getPopupContainer:pa,status:$a,showArrow:lr,builtinPlacements:Jn,style:sn}=Ve,Dr=pn(Ve,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ga=(0,Ye.Z)(Dr,["suffixIcon"]),{getPopupContainer:Er,getPrefixCls:Cr,renderEmpty:Lr,direction:xr,popupOverflow:so,cascader:qr}=se.useContext(Lt.E_),_o=bn||xr,Mn=_o==="rtl",{status:Mr,hasFeedback:Rr,isFormItemInput:Gr,feedbackIcon:za}=se.useContext(bt.aM),$n=(0,cn.F)(Mr,$a),Aa=Ra||(Lr==null?void 0:Lr("Cascader"))||se.createElement(qt.Z,{componentName:"Cascader"}),ja=Cr(),ga=Cr("select",Ht),fr=Cr("cascader",Ht),[Hr,oo]=(0,on.Z)(ga),[Tr]=en(fr),{compactSize:co,compactItemClassnames:ni}=(0,Nn.ri)(ga,bn),Jo=ue()(vn||an,`${fr}-dropdown`,{[`${fr}-dropdown-rtl`]:_o==="rtl"},mn,oo),_i=se.useMemo(()=>{if(!Bn)return Bn;let yo={render:Wa};return typeof Bn=="object"&&(yo=Object.assign(Object.assign({},yo),Bn)),yo},[Bn]),So=(0,nn.Z)(yo=>{var Mi;return(Mi=Vt!=null?Vt:co)!==null&&Mi!==void 0?Mi:yo}),Ba=se.useContext(Yt.Z),eo=tn!=null?tn:Ba;let mo=kn;kn||(mo=Mn?se.createElement(be.Z,null):se.createElement(Ie.Z,null));const Ro=se.createElement("span",{className:`${ga}-menu-item-loading-icon`},se.createElement(Ae.Z,{spin:!0})),Po=se.useMemo(()=>lt?se.createElement("span",{className:`${fr}-checkbox-inner`}):!1,[lt]),xo=(0,Zt.Z)(Ve.suffixIcon,lr),{suffixIcon:oi,removeIcon:$o,clearIcon:Ho}=(0,wt.Z)(Object.assign(Object.assign({},Ve),{hasFeedback:Rr,feedbackIcon:za,showSuffixIcon:xo,multiple:lt,prefixCls:ga,componentName:"Cascader"})),Ci=se.useMemo(()=>Fn!==void 0?Fn:Mn?"bottomRight":"bottomLeft",[Fn,Mn]),Uo=(0,An.Z)(Jn,so),Eo=Un===!0?{clearIcon:Ho}:Un,xi=se.createElement(vt,Object.assign({prefixCls:ga,className:ue()(!Ht&&fr,{[`${ga}-lg`]:So==="large",[`${ga}-sm`]:So==="small",[`${ga}-rtl`]:Mn,[`${ga}-borderless`]:!pt,[`${ga}-in-form-item`]:Gr},(0,cn.Z)(ga,$n,Rr),ni,qr==null?void 0:qr.className,Sn,mn,oo),disabled:eo,style:Object.assign(Object.assign({},qr==null?void 0:qr.style),sn)},Ga,{builtinPlacements:Uo,direction:_o,placement:Ci,notFoundContent:Aa,allowClear:Eo,showSearch:_i,expandIcon:mo,suffixIcon:oi,removeIcon:$o,loadingIcon:Ro,checkable:Po,dropdownClassName:Jo,dropdownPrefixCls:Ht||fr,choiceTransitionName:(0,_e.m)(ja,"",Kt),transitionName:(0,_e.m)(ja,"slide-up",ct),getPopupContainer:pa||Er,ref:Ft}));return Tr(Hr(xi))}),yn=(0,Et.Z)(ta);ta.SHOW_PARENT=xn,ta.SHOW_CHILD=Zn,ta._InternalPanelDoNotUseOrYouWillBeFired=yn;var Oa=ta},24905:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return pe}});var b=ae(92310),se=ae.n(b),be=ae(5630),Ae=ae(59301),Ie=ae(36355),Oe=ae(1684),ue=ae(32441),We=Ae.createContext(null),Te=ae(98447),He=ae(14088),Ze=ae(4572),De=function(ge,Ee){var ye={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&Ee.indexOf(Re)<0&&(ye[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Re=Object.getOwnPropertySymbols(ge);he<Re.length;he++)Ee.indexOf(Re[he])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[he])&&(ye[Re[he]]=ge[Re[he]]);return ye};const le=(ge,Ee)=>{var ye;const{prefixCls:Re,className:he,rootClassName:qe,children:je,indeterminate:ot=!1,style:Le,onMouseEnter:Je,onMouseLeave:st,skipGroup:Ke=!1,disabled:$e}=ge,Wt=De(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:it,direction:jt,checkbox:Xt}=Ae.useContext(Ie.E_),Qe=Ae.useContext(We),{isFormItemInput:ft}=Ae.useContext(ue.aM),Dt=Ae.useContext(Oe.Z),rn=(ye=(Qe==null?void 0:Qe.disabled)||$e)!==null&&ye!==void 0?ye:Dt,Pt=Ae.useRef(Wt.value);Ae.useEffect(()=>{Qe==null||Qe.registerValue(Wt.value)},[]),Ae.useEffect(()=>{if(!Ke)return Wt.value!==Pt.current&&(Qe==null||Qe.cancelValue(Pt.current),Qe==null||Qe.registerValue(Wt.value),Pt.current=Wt.value),()=>Qe==null?void 0:Qe.cancelValue(Wt.value)},[Wt.value]);const Jt=it("checkbox",Re),[Be,Ut]=(0,Te.ZP)(Jt),En=Object.assign({},Wt);Qe&&!Ke&&(En.onChange=function(){Wt.onChange&&Wt.onChange.apply(Wt,arguments),Qe.toggleOption&&Qe.toggleOption({label:je,value:Wt.value})},En.name=Qe.name,En.checked=Qe.value.includes(Wt.value));const Ct=se()(`${Jt}-wrapper`,{[`${Jt}-rtl`]:jt==="rtl",[`${Jt}-wrapper-checked`]:En.checked,[`${Jt}-wrapper-disabled`]:rn,[`${Jt}-wrapper-in-form-item`]:ft},Xt==null?void 0:Xt.className,he,qe,Ut),It=se()({[`${Jt}-indeterminate`]:ot},Ze.A,Ut),et=ot?"mixed":void 0;return Be(Ae.createElement(He.Z,{component:"Checkbox",disabled:rn},Ae.createElement("label",{className:Ct,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Le),onMouseEnter:Je,onMouseLeave:st},Ae.createElement(be.Z,Object.assign({"aria-checked":et},En,{prefixCls:Jt,className:It,disabled:rn,ref:Ee})),je!==void 0&&Ae.createElement("span",null,je))))};var a=Ae.forwardRef(le),x=ae(65093),y=ae(2738),z=function(ge,Ee){var ye={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&Ee.indexOf(Re)<0&&(ye[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Re=Object.getOwnPropertySymbols(ge);he<Re.length;he++)Ee.indexOf(Re[he])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[he])&&(ye[Re[he]]=ge[Re[he]]);return ye};const te=(ge,Ee)=>{const{defaultValue:ye,children:Re,options:he=[],prefixCls:qe,className:je,rootClassName:ot,style:Le,onChange:Je}=ge,st=z(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:$e}=Ae.useContext(Ie.E_),[Wt,it]=Ae.useState(st.value||ye||[]),[jt,Xt]=Ae.useState([]);Ae.useEffect(()=>{"value"in st&&it(st.value||[])},[st.value]);const Qe=Ae.useMemo(()=>he.map(Ue=>typeof Ue=="string"||typeof Ue=="number"?{label:Ue,value:Ue}:Ue),[he]),ft=Ue=>{Xt(Fe=>Fe.filter(ve=>ve!==Ue))},Dt=Ue=>{Xt(Fe=>[].concat((0,x.Z)(Fe),[Ue]))},rn=Ue=>{const Fe=Wt.indexOf(Ue.value),ve=(0,x.Z)(Wt);Fe===-1?ve.push(Ue.value):ve.splice(Fe,1),"value"in st||it(ve),Je==null||Je(ve.filter(tt=>jt.includes(tt)).sort((tt,At)=>{const we=Qe.findIndex(vt=>vt.value===tt),Ce=Qe.findIndex(vt=>vt.value===At);return we-Ce}))},Pt=Ke("checkbox",qe),Jt=`${Pt}-group`,[Be,Ut]=(0,Te.ZP)(Pt),En=(0,y.Z)(st,["value","disabled"]),Ct=he.length?Qe.map(Ue=>Ae.createElement(a,{prefixCls:Pt,key:Ue.value.toString(),disabled:"disabled"in Ue?Ue.disabled:st.disabled,value:Ue.value,checked:Wt.includes(Ue.value),onChange:Ue.onChange,className:`${Jt}-item`,style:Ue.style,title:Ue.title},Ue.label)):Re,It={toggleOption:rn,value:Wt,disabled:st.disabled,name:st.name,registerValue:Dt,cancelValue:ft},et=se()(Jt,{[`${Jt}-rtl`]:$e==="rtl"},je,ot,Ut);return Be(Ae.createElement("div",Object.assign({className:et,style:Le},En,{ref:Ee}),Ae.createElement(We.Provider,{value:It},Ct)))},re=Ae.forwardRef(te);var ie=Ae.memo(re);const ce=a;ce.Group=ie,ce.__ANT_CHECKBOX=!0;var pe=ce},98447:function(_t,Ot,ae){"use strict";ae.d(Ot,{C2:function(){return Ie}});var b=ae(17313),se=ae(37613),be=ae(83116);const Ae=Oe=>{const{checkboxCls:ue}=Oe,ke=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,b.Wf)(Oe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Oe.marginXS,[`> ${Oe.antCls}-row`]:{flex:1}}),[ke]:Object.assign(Object.assign({},(0,b.Wf)(Oe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ke}`]:{marginInlineStart:0},[`&${ke}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,b.Wf)(Oe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Oe.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,b.oN)(Oe))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Oe.checkboxSize,height:Oe.checkboxSize,direction:"ltr",backgroundColor:Oe.colorBgContainer,border:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Oe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Oe.checkboxSize/14*5,height:Oe.checkboxSize/14*8,border:`${Oe.lineWidthBold}px solid ${Oe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Oe.motionDurationFast} ${Oe.motionEaseInBack}, opacity ${Oe.motionDurationFast}`}},"& + span":{paddingInlineStart:Oe.paddingXS,paddingInlineEnd:Oe.paddingXS}})},{[`
${ke}:not(${ke}-disabled),
${ue}:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{borderColor:Oe.colorPrimary}},[`${ke}:not(${ke}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Oe.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Oe.colorPrimary,borderColor:Oe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Oe.motionDurationMid} ${Oe.motionEaseOutBack} ${Oe.motionDurationFast}`}}},[`
${ke}-checked:not(${ke}-disabled),
${ue}-checked:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Oe.colorBgContainer,borderColor:Oe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Oe.fontSizeLG/2,height:Oe.fontSizeLG/2,backgroundColor:Oe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ke}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,"&:after":{borderColor:Oe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Oe.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Oe.colorTextDisabled}}}]};function Ie(Oe,ue){const ke=(0,se.TS)(ue,{checkboxCls:`.${Oe}`,checkboxSize:ue.controlInteractiveSize});return[Ae(ke)]}Ot.ZP=(0,be.Z)("Checkbox",(Oe,ue)=>{let{prefixCls:ke}=ue;return[Ie(ke,Oe)]})},36381:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return En}});var b=ae(38819),se=ae(92310),be=ae.n(se),Ae=ae(16378),Ie=ae(65093),Oe=ae(10859),ue=ae(42066),ke=ae(18929),We=ae(48736),Te=ae(59301),He=ae(61206),Ze=ae(11592),De=ae(78772),le=ae(77900),E=ae(10228),a=Te.forwardRef(function(Ct,It){var et=Ct.prefixCls,Ue=Ct.forceRender,Fe=Ct.className,ve=Ct.style,tt=Ct.children,At=Ct.isActive,we=Ct.role,Ce=Te.useState(At||Ue),vt=(0,Oe.Z)(Ce,2),Ye=vt[0],_e=vt[1];return Te.useEffect(function(){(Ue||At)&&_e(!0)},[Ue,At]),Ye?Te.createElement("div",{ref:It,className:be()("".concat(et,"-content"),(0,De.Z)((0,De.Z)({},"".concat(et,"-content-active"),At),"".concat(et,"-content-inactive"),!At),Fe),style:ve,role:we},Te.createElement("div",{className:"".concat(et,"-content-box")},tt)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=Te.forwardRef(function(Ct,It){var et=Ct.showArrow,Ue=et===void 0?!0:et,Fe=Ct.headerClass,ve=Ct.isActive,tt=Ct.onItemClick,At=Ct.forceRender,we=Ct.className,Ce=Ct.prefixCls,vt=Ct.collapsible,Ye=Ct.accordion,_e=Ct.panelKey,Et=Ct.extra,cn=Ct.header,Lt=Ct.expandIcon,qt=Ct.openMotion,Yt=Ct.destroyInactivePanel,nn=Ct.children,bt=(0,He.Z)(Ct,y),on=vt==="disabled",An=vt==="header",Zt=vt==="icon",wt=Et!=null&&typeof Et!="boolean",Nn=function(){tt==null||tt(_e)},zn=function(pn){(pn.key==="Enter"||pn.keyCode===E.Z.ENTER||pn.which===E.Z.ENTER)&&Nn()},Wn=typeof Lt=="function"?Lt(Ct):Te.createElement("i",{className:"arrow"});Wn&&(Wn=Te.createElement("div",{className:"".concat(Ce,"-expand-icon"),onClick:["header","icon"].includes(vt)?Nn:void 0},Wn));var Yn=be()((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Ce,"-item"),!0),"".concat(Ce,"-item-active"),ve),"".concat(Ce,"-item-disabled"),on),we),xa=be()(Fe,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Ce,"-header"),!0),"".concat(Ce,"-header-collapsible-only"),An),"".concat(Ce,"-icon-collapsible-only"),Zt)),ln={className:xa,"aria-expanded":ve,"aria-disabled":on,onKeyDown:zn};return!An&&!Zt&&(ln.onClick=Nn,ln.role=Ye?"tab":"button",ln.tabIndex=on?-1:0),Te.createElement("div",(0,Ae.Z)({},bt,{ref:It,className:Yn}),Te.createElement("div",ln,Ue&&Wn,Te.createElement("span",{className:"".concat(Ce,"-header-text"),onClick:vt==="header"?Nn:void 0},cn),wt&&Te.createElement("div",{className:"".concat(Ce,"-extra")},Et)),Te.createElement(le.default,(0,Ae.Z)({visible:ve,leavedClassName:"".concat(Ce,"-content-hidden")},qt,{forceRender:At,removeOnLeave:Yt}),function(en,pn){var Zn=en.className,xn=en.style;return Te.createElement(x,{ref:pn,prefixCls:Ce,className:Zn,style:xn,isActive:ve,forceRender:At,role:Ye?"tabpanel":void 0},nn)}))}),te=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(It,et){var Ue=et.prefixCls,Fe=et.accordion,ve=et.collapsible,tt=et.destroyInactivePanel,At=et.onItemClick,we=et.activeKey,Ce=et.openMotion,vt=et.expandIcon;return It.map(function(Ye,_e){var Et=Ye.children,cn=Ye.label,Lt=Ye.key,qt=Ye.collapsible,Yt=Ye.onItemClick,nn=Ye.destroyInactivePanel,bt=(0,He.Z)(Ye,re),on=String(Lt!=null?Lt:_e),An=qt!=null?qt:ve,Zt=nn!=null?nn:tt,wt=function(Wn){An!=="disabled"&&(At(Wn),Yt==null||Yt(Wn))},Nn=!1;return Fe?Nn=we[0]===on:Nn=we.indexOf(on)>-1,Te.createElement(te,(0,Ae.Z)({},bt,{prefixCls:Ue,key:on,panelKey:on,isActive:Nn,accordion:Fe,openMotion:Ce,expandIcon:vt,header:cn,collapsible:An,onItemClick:wt,destroyInactivePanel:Zt}),Et)})},ce=function(It,et,Ue){if(!It)return null;var Fe=Ue.prefixCls,ve=Ue.accordion,tt=Ue.collapsible,At=Ue.destroyInactivePanel,we=Ue.onItemClick,Ce=Ue.activeKey,vt=Ue.openMotion,Ye=Ue.expandIcon,_e=It.key||String(et),Et=It.props,cn=Et.header,Lt=Et.headerClass,qt=Et.destroyInactivePanel,Yt=Et.collapsible,nn=Et.onItemClick,bt=!1;ve?bt=Ce[0]===_e:bt=Ce.indexOf(_e)>-1;var on=Yt!=null?Yt:tt,An=function(Nn){on!=="disabled"&&(we(Nn),nn==null||nn(Nn))},Zt={key:_e,panelKey:_e,header:cn,headerClass:Lt,isActive:bt,prefixCls:Fe,destroyInactivePanel:qt!=null?qt:At,openMotion:vt,accordion:ve,children:It.props.children,onItemClick:An,expandIcon:Ye,collapsible:on};return typeof It.type=="string"?It:(Object.keys(Zt).forEach(function(wt){typeof Zt[wt]=="undefined"&&delete Zt[wt]}),Te.cloneElement(It,Zt))};function pe(Ct,It,et){return Array.isArray(Ct)?ie(Ct,et):(0,Ze.Z)(It).map(function(Ue,Fe){return ce(Ue,Fe,et)})}var ge=pe,Ee=ae(26112);function ye(Ct){var It=Ct;if(!Array.isArray(It)){var et=(0,ue.Z)(It);It=et==="number"||et==="string"?[It]:[]}return It.map(function(Ue){return String(Ue)})}var Re=Te.forwardRef(function(Ct,It){var et=Ct.prefixCls,Ue=et===void 0?"rc-collapse":et,Fe=Ct.destroyInactivePanel,ve=Fe===void 0?!1:Fe,tt=Ct.style,At=Ct.accordion,we=Ct.className,Ce=Ct.children,vt=Ct.collapsible,Ye=Ct.openMotion,_e=Ct.expandIcon,Et=Ct.activeKey,cn=Ct.defaultActiveKey,Lt=Ct.onChange,qt=Ct.items,Yt=be()(Ue,we),nn=(0,ke.Z)([],{value:Et,onChange:function(zn){return Lt==null?void 0:Lt(zn)},defaultValue:cn,postState:ye}),bt=(0,Oe.Z)(nn,2),on=bt[0],An=bt[1],Zt=function(zn){return An(function(){if(At)return on[0]===zn?[]:[zn];var Wn=on.indexOf(zn),Yn=Wn>-1;return Yn?on.filter(function(xa){return xa!==zn}):[].concat((0,Ie.Z)(on),[zn])})};(0,We.ZP)(!Ce,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var wt=ge(qt,Ce,{prefixCls:Ue,accordion:At,openMotion:Ye,expandIcon:_e,collapsible:vt,destroyInactivePanel:ve,onItemClick:Zt,activeKey:on});return Te.createElement("div",(0,Ae.Z)({ref:It,className:Yt,style:tt,role:At?"tablist":void 0},(0,Ee.Z)(Ct,{aria:!0,data:!0})),wt)}),he=Object.assign(Re,{Panel:te}),qe=he,je=he.Panel,ot=ae(2738),Le=ae(62892),Je=ae(92343),st=ae(36355),Ke=ae(19716),Wt=Te.forwardRef((Ct,It)=>{const{getPrefixCls:et}=Te.useContext(st.E_),{prefixCls:Ue,className:Fe,showArrow:ve=!0}=Ct,tt=et("collapse",Ue),At=be()({[`${tt}-no-arrow`]:!ve},Fe);return Te.createElement(qe.Panel,Object.assign({ref:It},Ct,{prefixCls:tt,className:At}))}),it=ae(17313),jt=ae(8378),Xt=ae(83116),Qe=ae(37613);const ft=Ct=>{const{componentCls:It,contentBg:et,padding:Ue,headerBg:Fe,headerPadding:ve,collapseHeaderPaddingSM:tt,collapseHeaderPaddingLG:At,collapsePanelBorderRadius:we,lineWidth:Ce,lineType:vt,colorBorder:Ye,colorText:_e,colorTextHeading:Et,colorTextDisabled:cn,fontSize:Lt,fontSizeLG:qt,lineHeight:Yt,marginSM:nn,paddingSM:bt,paddingLG:on,paddingXS:An,motionDurationSlow:Zt,fontSizeIcon:wt,contentPadding:Nn}=Ct,zn=`${Ce}px ${vt} ${Ye}`;return{[It]:Object.assign(Object.assign({},(0,it.Wf)(Ct)),{backgroundColor:Fe,border:zn,borderBottom:0,borderRadius:`${we}px`,"&-rtl":{direction:"rtl"},[`& > ${It}-item`]:{borderBottom:zn,"&:last-child":{[`
&,
& > ${It}-header`]:{borderRadius:`0 0 ${we}px ${we}px`}},[`> ${It}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:ve,color:Et,lineHeight:Yt,cursor:"pointer",transition:`all ${Zt}, visibility 0s`,[`> ${It}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${It}-expand-icon`]:{height:Lt*Yt,display:"flex",alignItems:"center",paddingInlineEnd:nn},[`${It}-arrow`]:Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:wt,svg:{transition:`transform ${Zt}`}}),[`${It}-header-text`]:{marginInlineEnd:"auto"}},[`${It}-header-collapsible-only`]:{cursor:"default",[`${It}-header-text`]:{flex:"none",cursor:"pointer"}},[`${It}-icon-collapsible-only`]:{cursor:"default",[`${It}-expand-icon`]:{cursor:"pointer"}}},[`${It}-content`]:{color:_e,backgroundColor:et,borderTop:zn,[`& > ${It}-content-box`]:{padding:Nn},"&-hidden":{display:"none"}},"&-small":{[`> ${It}-item`]:{[`> ${It}-header`]:{padding:tt,paddingInlineStart:An,[`> ${It}-expand-icon`]:{marginInlineStart:bt-An}},[`> ${It}-content > ${It}-content-box`]:{padding:bt}}},"&-large":{[`> ${It}-item`]:{fontSize:qt,[`> ${It}-header`]:{padding:At,paddingInlineStart:Ue,[`> ${It}-expand-icon`]:{height:qt*Yt,marginInlineStart:on-Ue}},[`> ${It}-content > ${It}-content-box`]:{padding:on}}},[`${It}-item:last-child`]:{[`> ${It}-content`]:{borderRadius:`0 0 ${we}px ${we}px`}},[`& ${It}-item-disabled > ${It}-header`]:{"\n &,\n & > .arrow\n ":{color:cn,cursor:"not-allowed"}},[`&${It}-icon-position-end`]:{[`& > ${It}-item`]:{[`> ${It}-header`]:{[`${It}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:nn}}}}})}},Dt=Ct=>{const{componentCls:It}=Ct,et=`> ${It}-item > ${It}-header ${It}-arrow svg`;return{[`${It}-rtl`]:{[et]:{transform:"rotate(180deg)"}}}},rn=Ct=>{const{componentCls:It,headerBg:et,paddingXXS:Ue,colorBorder:Fe}=Ct;return{[`${It}-borderless`]:{backgroundColor:et,border:0,[`> ${It}-item`]:{borderBottom:`1px solid ${Fe}`},[`
> ${It}-item:last-child,
> ${It}-item:last-child ${It}-header
`]:{borderRadius:0},[`> ${It}-item:last-child`]:{borderBottom:0},[`> ${It}-item > ${It}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${It}-item > ${It}-content > ${It}-content-box`]:{paddingTop:Ue}}}},Pt=Ct=>{const{componentCls:It,paddingSM:et}=Ct;return{[`${It}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${It}-item`]:{borderBottom:0,[`> ${It}-content`]:{backgroundColor:"transparent",border:0,[`> ${It}-content-box`]:{paddingBlock:et}}}}}};var Jt=(0,Xt.Z)("Collapse",Ct=>{const It=(0,Qe.TS)(Ct,{collapseHeaderPaddingSM:`${Ct.paddingXS}px ${Ct.paddingSM}px`,collapseHeaderPaddingLG:`${Ct.padding}px ${Ct.paddingLG}px`,collapsePanelBorderRadius:Ct.borderRadiusLG});return[ft(It),rn(It),Pt(It),Dt(It),(0,jt.Z)(It)]},Ct=>({headerPadding:`${Ct.paddingSM}px ${Ct.padding}px`,headerBg:Ct.colorFillAlter,contentPadding:`${Ct.padding}px 16px`,contentBg:Ct.colorBgContainer})),Ut=Object.assign(Te.forwardRef((Ct,It)=>{const{getPrefixCls:et,direction:Ue,collapse:Fe}=Te.useContext(st.E_),{prefixCls:ve,className:tt,rootClassName:At,style:we,bordered:Ce=!0,ghost:vt,size:Ye,expandIconPosition:_e="start",children:Et,expandIcon:cn}=Ct,Lt=(0,Ke.Z)(zn=>{var Wn;return(Wn=Ye!=null?Ye:zn)!==null&&Wn!==void 0?Wn:"middle"}),qt=et("collapse",ve),Yt=et(),[nn,bt]=Jt(qt),on=Te.useMemo(()=>_e==="left"?"start":_e==="right"?"end":_e,[_e]),An=function(){let zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Wn=cn?cn(zn):Te.createElement(b.Z,{rotate:zn.isActive?90:void 0});return(0,Je.Tm)(Wn,()=>({className:be()(Wn.props.className,`${qt}-arrow`)}))},Zt=be()(`${qt}-icon-position-${on}`,{[`${qt}-borderless`]:!Ce,[`${qt}-rtl`]:Ue==="rtl",[`${qt}-ghost`]:!!vt,[`${qt}-${Lt}`]:Lt!=="middle"},Fe==null?void 0:Fe.className,tt,At,bt),wt=Object.assign(Object.assign({},(0,Le.Z)(Yt)),{motionAppear:!1,leavedClassName:`${qt}-content-hidden`}),Nn=Te.useMemo(()=>Et?(0,Ze.Z)(Et).map((zn,Wn)=>{var Yn,xa;if(!((Yn=zn.props)===null||Yn===void 0)&&Yn.disabled){const ln=(xa=zn.key)!==null&&xa!==void 0?xa:String(Wn),{disabled:en,collapsible:pn}=zn.props,Zn=Object.assign(Object.assign({},(0,ot.Z)(zn.props,["disabled"])),{key:ln,collapsible:pn!=null?pn:en?"disabled":void 0});return(0,Je.Tm)(zn,Zn)}return zn}):null,[Et]);return nn(Te.createElement(qe,Object.assign({ref:It,openMotion:wt},(0,ot.Z)(Ct,["rootClassName"]),{expandIcon:An,prefixCls:qt,className:Zt,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),we)}),Nn))}),{Panel:Wt}),En=Ut},28103:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Ze}});var b=ae(92310),se=ae.n(b),be=ae(59301),Ae=ae(36355),Ie=ae(17313),Oe=ae(83116),ue=ae(37613);const ke=De=>{const{componentCls:le,sizePaddingEdgeHorizontal:E,colorSplit:a,lineWidth:x,textPaddingInline:y,orientationMargin:z,verticalMarginInline:te}=De;return{[le]:Object.assign(Object.assign({},(0,Ie.Wf)(De)),{borderBlockStart:`${x}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:te,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${De.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${le}-with-text`]:{display:"flex",alignItems:"center",margin:`${De.dividerHorizontalWithTextGutterMargin}px 0`,color:De.colorTextHeading,fontWeight:500,fontSize:De.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${le}-with-text-left`]:{"&::before":{width:`${z*100}%`},"&::after":{width:`${100-z*100}%`}},[`&-horizontal${le}-with-text-right`]:{"&::before":{width:`${100-z*100}%`},"&::after":{width:`${z*100}%`}},[`${le}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${le}-with-text${le}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${le}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${le}-with-text`]:{color:De.colorText,fontWeight:"normal",fontSize:De.fontSize},[`&-horizontal${le}-with-text-left${le}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${le}-inner-text`]:{paddingInlineStart:E}},[`&-horizontal${le}-with-text-right${le}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${le}-inner-text`]:{paddingInlineEnd:E}}})}};var We=(0,Oe.Z)("Divider",De=>{const le=(0,ue.TS)(De,{dividerHorizontalWithTextGutterMargin:De.margin,dividerHorizontalGutterMargin:De.marginLG,sizePaddingEdgeHorizontal:0});return[ke(le)]},De=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:De.marginXS})),Te=function(De,le){var E={};for(var a in De)Object.prototype.hasOwnProperty.call(De,a)&&le.indexOf(a)<0&&(E[a]=De[a]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(De);x<a.length;x++)le.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(De,a[x])&&(E[a[x]]=De[a[x]]);return E},Ze=De=>{const{getPrefixCls:le,direction:E,divider:a}=be.useContext(Ae.E_),{prefixCls:x,type:y="horizontal",orientation:z="center",orientationMargin:te,className:re,rootClassName:ie,children:ce,dashed:pe,plain:ge,style:Ee}=De,ye=Te(De,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Re=le("divider",x),[he,qe]=We(Re),je=z.length>0?`-${z}`:z,ot=!!ce,Le=z==="left"&&te!=null,Je=z==="right"&&te!=null,st=se()(Re,a==null?void 0:a.className,qe,`${Re}-${y}`,{[`${Re}-with-text`]:ot,[`${Re}-with-text${je}`]:ot,[`${Re}-dashed`]:!!pe,[`${Re}-plain`]:!!ge,[`${Re}-rtl`]:E==="rtl",[`${Re}-no-default-orientation-margin-left`]:Le,[`${Re}-no-default-orientation-margin-right`]:Je},re,ie),Ke=be.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),$e=Object.assign(Object.assign({},Le&&{marginLeft:Ke}),Je&&{marginRight:Ke});return he(be.createElement("div",Object.assign({className:st,style:Object.assign(Object.assign({},a==null?void 0:a.style),Ee)},ye,{role:"separator"}),ce&&y!=="vertical"&&be.createElement("span",{className:`${Re}-inner-text`,style:$e},ce)))}},91857:function(_t,Ot,ae){"use strict";var b=ae(59301),se=ae(38819),be=ae(92310),Ae=ae.n(be),Ie=ae(31561),Oe=ae(70425),ue=ae(18929),ke=ae(2738),We=ae(79676),Te=ae(53487),He=ae(92343),Ze=ae(36355),De=ae(20834),le=ae(40875),E=ae(88088),a=ae(47211);const x=null,y=ie=>{const{menu:ce,arrow:pe,prefixCls:ge,children:Ee,trigger:ye,disabled:Re,dropdownRender:he,getPopupContainer:qe,overlayClassName:je,rootClassName:ot,open:Le,onOpenChange:Je,visible:st,onVisibleChange:Ke,mouseEnterDelay:$e=.15,mouseLeaveDelay:Wt=.1,autoAdjustOverflow:it=!0,placement:jt="",overlay:Xt,transitionName:Qe}=ie,{getPopupContainer:ft,getPrefixCls:Dt,direction:rn}=b.useContext(Ze.E_),Pt=b.useMemo(()=>{const _e=Dt();return Qe!==void 0?Qe:jt.includes("top")?`${_e}-slide-down`:`${_e}-slide-up`},[Dt,jt,Qe]),Jt=b.useMemo(()=>jt?jt.includes("Center")?jt.slice(0,jt.indexOf("Center")):jt:rn==="rtl"?"bottomRight":"bottomLeft",[jt,rn]),Be=Dt("dropdown",ge),[Ut,En]=(0,a.Z)(Be),[,Ct]=(0,E.Z)(),It=b.Children.only(Ee),et=(0,He.Tm)(It,{className:Ae()(`${Be}-trigger`,{[`${Be}-rtl`]:rn==="rtl"},It.props.className),disabled:Re}),Ue=Re?[]:ye;let Fe;Ue&&Ue.includes("contextMenu")&&(Fe=!0);const[ve,tt]=(0,ue.Z)(!1,{value:Le!=null?Le:st}),At=(0,Oe.useEvent)(_e=>{Je==null||Je(_e),Ke==null||Ke(_e),tt(_e)}),we=Ae()(je,ot,En,{[`${Be}-rtl`]:rn==="rtl"}),Ce=(0,We.Z)({arrowPointAtCenter:typeof pe=="object"&&pe.pointAtCenter,autoAdjustOverflow:it,offset:Ct.marginXXS,arrowWidth:pe?Ct.sizePopupArrow:0,borderRadius:Ct.borderRadius}),vt=b.useCallback(()=>{tt(!1)},[]),Ye=()=>{let _e;return ce!=null&&ce.items?_e=b.createElement(De.default,Object.assign({},ce)):typeof Xt=="function"?_e=Xt():_e=Xt,he&&(_e=he(_e)),_e=b.Children.only(typeof _e=="string"?b.createElement("span",null,_e):_e),b.createElement(le.J,{prefixCls:`${Be}-menu`,expandIcon:b.createElement("span",{className:`${Be}-menu-submenu-arrow`},b.createElement(se.Z,{className:`${Be}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:vt,validator:Et=>{let{mode:cn}=Et}},_e)};return Ut(b.createElement(Ie.Z,Object.assign({alignPoint:Fe},(0,ke.Z)(ie,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:Wt,visible:ve,builtinPlacements:Ce,arrow:!!pe,overlayClassName:we,prefixCls:Be,getPopupContainer:qe||ft,transitionName:Pt,trigger:Ue,overlay:Ye,placement:Jt,onVisibleChange:At}),et))};function z(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,Te.Z)(y,"dropdown",ie=>ie,z),re=ie=>b.createElement(te,Object.assign({},ie),b.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=re,Ot.Z=y},38854:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return E}});var b=ae(91857),se=ae(92310),be=ae.n(se),Ae=ae(59301),Ie=ae(18785),Oe=ae(3113),ue=ae(36355),ke=ae(81327),We=ae(33234),Te=ae(47211),He=function(a,x){var y={};for(var z in a)Object.prototype.hasOwnProperty.call(a,z)&&x.indexOf(z)<0&&(y[z]=a[z]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,z=Object.getOwnPropertySymbols(a);te<z.length;te++)x.indexOf(z[te])<0&&Object.prototype.propertyIsEnumerable.call(a,z[te])&&(y[z[te]]=a[z[te]]);return y};const Ze=a=>{const{getPopupContainer:x,getPrefixCls:y,direction:z}=Ae.useContext(ue.E_),{prefixCls:te,type:re="default",danger:ie,disabled:ce,loading:pe,onClick:ge,htmlType:Ee,children:ye,className:Re,menu:he,arrow:qe,autoFocus:je,overlay:ot,trigger:Le,align:Je,open:st,onOpenChange:Ke,placement:$e,getPopupContainer:Wt,href:it,icon:jt=Ae.createElement(Ie.Z,null),title:Xt,buttonsRender:Qe=Ye=>Ye,mouseEnterDelay:ft,mouseLeaveDelay:Dt,overlayClassName:rn,overlayStyle:Pt,destroyPopupOnHide:Jt,dropdownRender:Be}=a,Ut=He(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"]),En=y("dropdown",te),Ct=`${En}-button`,[It,et]=(0,Te.Z)(En),Ue={menu:he,arrow:qe,autoFocus:je,align:Je,disabled:ce,trigger:ce?[]:Le,onOpenChange:Ke,getPopupContainer:Wt||x,mouseEnterDelay:ft,mouseLeaveDelay:Dt,overlayClassName:rn,overlayStyle:Pt,destroyPopupOnHide:Jt,dropdownRender:Be},{compactSize:Fe,compactItemClassnames:ve}=(0,We.ri)(En,z),tt=be()(Ct,ve,Re,et);"overlay"in a&&(Ue.overlay=ot),"open"in a&&(Ue.open=st),"placement"in a?Ue.placement=$e:Ue.placement=z==="rtl"?"bottomLeft":"bottomRight";const At=Ae.createElement(Oe.ZP,{type:re,danger:ie,disabled:ce,loading:pe,onClick:ge,htmlType:Ee,href:it,title:Xt},ye),we=Ae.createElement(Oe.ZP,{type:re,danger:ie,icon:jt}),[Ce,vt]=Qe([At,we]);return It(Ae.createElement(ke.Z.Compact,Object.assign({className:tt,size:Fe,block:!0},Ut),Ce,Ae.createElement(b.Z,Object.assign({},Ue),vt)))};Ze.__ANT_BUTTON=!0;var De=Ze;const le=b.Z;le.Button=De;var E=le},47211:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return He}});var b=ae(17313),se=ae(13826),be=ae(92899),Ae=ae(29878),Ie=ae(19447),Oe=ae(83116),ue=ae(37613),We=Ze=>{const{componentCls:De,menuCls:le,colorError:E,colorTextLightSolid:a}=Ze,x=`${le}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${le} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:E,"&:hover":{color:a,backgroundColor:E}}}}}};const Te=Ze=>{const{componentCls:De,menuCls:le,zIndexPopup:E,dropdownArrowDistance:a,sizePopupArrow:x,antCls:y,iconCls:z,motionDurationMid:te,dropdownPaddingVertical:re,fontSize:ie,dropdownEdgeChildPadding:ce,colorTextDisabled:pe,fontSizeIcon:ge,controlPaddingHorizontal:Ee,colorBgElevated:ye}=Ze;return[{[De]:Object.assign(Object.assign({},(0,b.Wf)(Ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${z}-down, & > ${y}-btn-icon > ${z}-down`]:{fontSize:ge}},[`${De}-wrap`]:{position:"relative",[`${y}-btn > ${z}-down`]:{fontSize:ge},[`${z}-down::before`]:{transition:`transform ${te}`}},[`${De}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${De}-placement-bottomLeft,
&${y}-slide-down-appear${y}-slide-down-appear-active${De}-placement-bottomLeft,
&${y}-slide-down-enter${y}-slide-down-enter-active${De}-placement-bottom,
&${y}-slide-down-appear${y}-slide-down-appear-active${De}-placement-bottom,
&${y}-slide-down-enter${y}-slide-down-enter-active${De}-placement-bottomRight,
&${y}-slide-down-appear${y}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:se.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${De}-placement-topLeft,
&${y}-slide-up-appear${y}-slide-up-appear-active${De}-placement-topLeft,
&${y}-slide-up-enter${y}-slide-up-enter-active${De}-placement-top,
&${y}-slide-up-appear${y}-slide-up-appear-active${De}-placement-top,
&${y}-slide-up-enter${y}-slide-up-enter-active${De}-placement-topRight,
&${y}-slide-up-appear${y}-slide-up-appear-active${De}-placement-topRight`]:{animationName:se.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${De}-placement-bottomLeft,
&${y}-slide-down-leave${y}-slide-down-leave-active${De}-placement-bottom,
&${y}-slide-down-leave${y}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:se.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${De}-placement-topLeft,
&${y}-slide-up-leave${y}-slide-up-leave-active${De}-placement-top,
&${y}-slide-up-leave${y}-slide-up-leave-active${De}-placement-topRight`]:{animationName:se.ly}})},(0,Ie.ZP)(Ze,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${le}`]:{position:"relative",margin:0},[`${le}-submenu-popup`]:{position:"absolute",zIndex:E,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${De}, ${De}-menu-submenu`]:{[le]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:Ze.borderRadiusLG,outline:"none",boxShadow:Ze.boxShadowSecondary},(0,b.Qy)(Ze)),{[`${le}-item-group-title`]:{padding:`${re}px ${Ee}px`,color:Ze.colorTextDescription,transition:`all ${te}`},[`${le}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${le}-item-icon`]:{minWidth:ie,marginInlineEnd:Ze.marginXS,fontSize:Ze.fontSizeSM},[`${le}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${le}-item, ${le}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${Ee}px`,color:Ze.colorText,fontWeight:"normal",fontSize:ie,lineHeight:Ze.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:Ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ze.controlItemBgHover}},(0,b.Qy)(Ze)),{"&-selected":{color:Ze.colorPrimary,backgroundColor:Ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ze.controlItemBgActiveHover}},"&-disabled":{color:pe,cursor:"not-allowed","&:hover":{color:pe,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ze.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ze.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ze.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${le}-item-group-list`]:{margin:`0 ${Ze.marginXS}px`,padding:0,listStyle:"none"},[`${le}-submenu-title`]:{paddingInlineEnd:Ee+Ze.fontSizeSM},[`${le}-submenu-vertical`]:{position:"relative"},[`${le}-submenu${le}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:pe,backgroundColor:ye,cursor:"not-allowed"}},[`${le}-submenu-selected ${De}-menu-submenu-title`]:{color:Ze.colorPrimary}})}},[(0,se.oN)(Ze,"slide-up"),(0,se.oN)(Ze,"slide-down"),(0,be.Fm)(Ze,"move-up"),(0,be.Fm)(Ze,"move-down"),(0,Ae._y)(Ze,"zoom-big")]]};var He=(0,Oe.Z)("Dropdown",(Ze,De)=>{let{rootPrefixCls:le}=De;const{marginXXS:E,sizePopupArrow:a,controlHeight:x,fontSize:y,lineHeight:z,paddingXXS:te,componentCls:re,borderRadiusLG:ie}=Ze,ce=(x-y*z)/2,{dropdownArrowOffset:pe}=(0,Ie.fS)({contentRadius:ie}),ge=(0,ue.TS)(Ze,{menuCls:`${re}-menu`,rootPrefixCls:le,dropdownArrowDistance:a/2+E,dropdownArrowOffset:pe,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:te});return[Te(ge),We(ge)]},Ze=>({zIndexPopup:Ze.zIndexPopupBase+50}))},8628:function(_t,Ot,ae){"use strict";var b=ae(59301),se=ae(34280),be=ae(56762),Ae=ae(69507);function Ie(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,b.useRef)({}),ke=(0,be.Z)(),We=(0,Ae.ZP)();return(0,se.Z)(()=>{const Te=We.subscribe(He=>{ue.current=He,Oe&&ke()});return()=>We.unsubscribe(Te)},[]),ue.current}Ot.Z=Ie},45818:function(_t,Ot,ae){"use strict";ae.d(Ot,{D:function(){return te},Z:function(){return ce}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(ge,Ee){return se.createElement(Ie.Z,(0,b.Z)({},ge,{ref:Ee,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue,We=ae(33853),Te=ae(38819),He=ae(92310),Ze=ae.n(He),De=ae(2738),E=pe=>!isNaN(parseFloat(pe))&&isFinite(pe),a=ae(36355),x=ae(84966),y=function(pe,ge){var Ee={};for(var ye in pe)Object.prototype.hasOwnProperty.call(pe,ye)&&ge.indexOf(ye)<0&&(Ee[ye]=pe[ye]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(pe);Re<ye.length;Re++)ge.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(pe,ye[Re])&&(Ee[ye[Re]]=pe[ye[Re]]);return Ee};const z={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},te=se.createContext({}),re=(()=>{let pe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pe+=1,`${ge}${pe}`}})();var ce=se.forwardRef((pe,ge)=>{const{prefixCls:Ee,className:ye,trigger:Re,children:he,defaultCollapsed:qe=!1,theme:je="dark",style:ot={},collapsible:Le=!1,reverseArrow:Je=!1,width:st=200,collapsedWidth:Ke=80,zeroWidthTriggerStyle:$e,breakpoint:Wt,onCollapse:it,onBreakpoint:jt}=pe,Xt=y(pe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,se.useContext)(x.Gs),[ft,Dt]=(0,se.useState)("collapsed"in pe?pe.collapsed:qe),[rn,Pt]=(0,se.useState)(!1);(0,se.useEffect)(()=>{"collapsed"in pe&&Dt(pe.collapsed)},[pe.collapsed]);const Jt=(et,Ue)=>{"collapsed"in pe||Dt(et),it==null||it(et,Ue)},Be=(0,se.useRef)();Be.current=et=>{Pt(et.matches),jt==null||jt(et.matches),ft!==et.matches&&Jt(et.matches,"responsive")},(0,se.useEffect)(()=>{function et(Fe){return Be.current(Fe)}let Ue;if(typeof window!="undefined"){const{matchMedia:Fe}=window;if(Fe&&Wt&&Wt in z){Ue=Fe(`(max-width: ${z[Wt]})`);try{Ue.addEventListener("change",et)}catch(ve){Ue.addListener(et)}et(Ue)}}return()=>{try{Ue==null||Ue.removeEventListener("change",et)}catch(Fe){Ue==null||Ue.removeListener(et)}}},[Wt]),(0,se.useEffect)(()=>{const et=re("ant-sider-");return Qe.addSider(et),()=>Qe.removeSider(et)},[]);const Ut=()=>{Jt(!ft,"clickTrigger")},{getPrefixCls:En}=(0,se.useContext)(a.E_),Ct=()=>{const et=En("layout-sider",Ee),Ue=(0,De.Z)(Xt,["collapsed"]),Fe=ft?Ke:st,ve=E(Fe)?`${Fe}px`:String(Fe),tt=parseFloat(String(Ke||0))===0?se.createElement("span",{onClick:Ut,className:Ze()(`${et}-zero-width-trigger`,`${et}-zero-width-trigger-${Je?"right":"left"}`),style:$e},Re||se.createElement(ke,null)):null,Ce={expanded:Je?se.createElement(Te.Z,null):se.createElement(We.Z,null),collapsed:Je?se.createElement(We.Z,null):se.createElement(Te.Z,null)}[ft?"collapsed":"expanded"],vt=Re!==null?tt||se.createElement("div",{className:`${et}-trigger`,onClick:Ut,style:{width:ve}},Re||Ce):null,Ye=Object.assign(Object.assign({},ot),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),_e=Ze()(et,`${et}-${je}`,{[`${et}-collapsed`]:!!ft,[`${et}-has-trigger`]:Le&&Re!==null&&!tt,[`${et}-below`]:!!rn,[`${et}-zero-width`]:parseFloat(ve)===0},ye);return se.createElement("aside",Object.assign({className:_e},Ue,{style:Ye,ref:ge}),se.createElement("div",{className:`${et}-children`},he),Le||rn&&tt?vt:null)},It=se.useMemo(()=>({siderCollapsed:ft}),[ft]);return se.createElement(te.Provider,{value:It},Ct())})},84966:function(_t,Ot,ae){"use strict";ae.d(Ot,{VY:function(){return te},$_:function(){return z},h4:function(){return y},Gs:function(){return De},ZP:function(){return re}});var b=ae(65093),se=ae(92310),be=ae.n(se),Ae=ae(2738),Ie=ae(59301),Oe=ae(36355),ue=ae(83116),We=ie=>{const{componentCls:ce,bodyBg:pe,lightSiderBg:ge,lightTriggerBg:Ee,lightTriggerColor:ye}=ie;return{[`${ce}-sider-light`]:{background:ge,[`${ce}-sider-trigger`]:{color:ye,background:Ee},[`${ce}-sider-zero-width-trigger`]:{color:ye,background:Ee,border:`1px solid ${pe}`,borderInlineStart:0}}}};const Te=ie=>{const{antCls:ce,componentCls:pe,colorText:ge,triggerColor:Ee,footerBg:ye,triggerBg:Re,headerHeight:he,headerPadding:qe,headerColor:je,footerPadding:ot,triggerHeight:Le,zeroTriggerHeight:Je,zeroTriggerWidth:st,motionDurationMid:Ke,motionDurationSlow:$e,fontSize:Wt,borderRadius:it,bodyBg:jt,headerBg:Xt,siderBg:Qe}=ie;return{[pe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:jt,"&, *":{boxSizing:"border-box"},[`&${pe}-has-sider`]:{flexDirection:"row",[`> ${pe}, > ${pe}-content`]:{width:0}},[`${pe}-header, &${pe}-footer`]:{flex:"0 0 auto"},[`${pe}-sider`]:{position:"relative",minWidth:0,background:Qe,transition:`all ${Ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Ee,lineHeight:`${Le}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${Ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-st,zIndex:1,width:st,height:Je,color:Ee,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderStartStartRadius:0,borderStartEndRadius:it,borderEndEndRadius:it,borderEndStartRadius:0,cursor:"pointer",transition:`background ${$e} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${$e}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-st,borderStartStartRadius:it,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:it}}}}},We(ie)),{"&-rtl":{direction:"rtl"}}),[`${pe}-header`]:{height:he,padding:qe,color:je,lineHeight:`${he}px`,background:Xt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${pe}-footer`]:{padding:ot,color:ge,fontSize:Wt,background:ye},[`${pe}-content`]:{flex:"auto",minHeight:0}}};var He=(0,ue.Z)("Layout",ie=>[Te(ie)],ie=>{const{colorBgLayout:ce,controlHeight:pe,controlHeightLG:ge,colorText:Ee,controlHeightSM:ye,marginXXS:Re,colorTextLightSolid:he,colorBgContainer:qe}=ie,je=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:pe*2,headerPadding:`0 ${je}px`,headerColor:Ee,footerPadding:`${ye}px ${je}px`,footerBg:ce,siderBg:"#001529",triggerHeight:ge+Re*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:Ee}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ze=function(ie,ce){var pe={};for(var ge in ie)Object.prototype.hasOwnProperty.call(ie,ge)&&ce.indexOf(ge)<0&&(pe[ge]=ie[ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ge=Object.getOwnPropertySymbols(ie);Ee<ge.length;Ee++)ce.indexOf(ge[Ee])<0&&Object.prototype.propertyIsEnumerable.call(ie,ge[Ee])&&(pe[ge[Ee]]=ie[ge[Ee]]);return pe};const De=Ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function le(ie){let{suffixCls:ce,tagName:pe,displayName:ge}=ie;return Ee=>Ie.forwardRef((Re,he)=>Ie.createElement(Ee,Object.assign({ref:he,suffixCls:ce,tagName:pe},Re)))}const E=Ie.forwardRef((ie,ce)=>{const{prefixCls:pe,suffixCls:ge,className:Ee,tagName:ye}=ie,Re=Ze(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=Ie.useContext(Oe.E_),qe=he("layout",pe),[je,ot]=He(qe),Le=ge?`${qe}-${ge}`:qe;return je(Ie.createElement(ye,Object.assign({className:be()(pe||Le,Ee,ot),ref:ce},Re)))}),a=Ie.forwardRef((ie,ce)=>{const{direction:pe}=Ie.useContext(Oe.E_),[ge,Ee]=Ie.useState([]),{prefixCls:ye,className:Re,rootClassName:he,children:qe,hasSider:je,tagName:ot,style:Le}=ie,Je=Ze(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),st=(0,Ae.Z)(Je,["suffixCls"]),{getPrefixCls:Ke,layout:$e}=Ie.useContext(Oe.E_),Wt=Ke("layout",ye),[it,jt]=He(Wt),Xt=be()(Wt,{[`${Wt}-has-sider`]:typeof je=="boolean"?je:ge.length>0,[`${Wt}-rtl`]:pe==="rtl"},$e==null?void 0:$e.className,Re,he,jt),Qe=Ie.useMemo(()=>({siderHook:{addSider:ft=>{Ee(Dt=>[].concat((0,b.Z)(Dt),[ft]))},removeSider:ft=>{Ee(Dt=>Dt.filter(rn=>rn!==ft))}}}),[]);return it(Ie.createElement(De.Provider,{value:Qe},Ie.createElement(ot,Object.assign({ref:ce,className:Xt,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Le)},st),qe)))}),x=le({tagName:"div",displayName:"Layout"})(a),y=le({suffixCls:"header",tagName:"header",displayName:"Header"})(E),z=le({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E),te=le({suffixCls:"content",tagName:"main",displayName:"Content"})(E);var re=x},40875:function(_t,Ot,ae){"use strict";ae.d(Ot,{J:function(){return Oe}});var b=ae(59301),se=ae(33234),be=ae(70425),Ae=function(ue,ke){var We={};for(var Te in ue)Object.prototype.hasOwnProperty.call(ue,Te)&&ke.indexOf(Te)<0&&(We[Te]=ue[Te]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Te=Object.getOwnPropertySymbols(ue);He<Te.length;He++)ke.indexOf(Te[He])<0&&Object.prototype.propertyIsEnumerable.call(ue,Te[He])&&(We[Te[He]]=ue[Te[He]]);return We};const Ie=b.createContext(null),Oe=b.forwardRef((ue,ke)=>{const{children:We}=ue,Te=Ae(ue,["children"]),He=b.useContext(Ie),Ze=b.useMemo(()=>Object.assign(Object.assign({},He),Te),[He,Te.prefixCls,Te.mode,Te.selectable]);return b.createElement(Ie.Provider,{value:Ze},b.createElement(se.BR,null,(0,be.supportNodeRef)(We)?b.cloneElement(We,{ref:ke}):We))});Ot.Z=Ie},20834:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return It}});var b=ae(15285),se=ae(59301),be=ae(45818),Ae=ae(92310),Ie=ae.n(Ae),Oe=ae(36355),ue=function(et,Ue){var Fe={};for(var ve in et)Object.prototype.hasOwnProperty.call(et,ve)&&Ue.indexOf(ve)<0&&(Fe[ve]=et[ve]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ve=Object.getOwnPropertySymbols(et);tt<ve.length;tt++)Ue.indexOf(ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(et,ve[tt])&&(Fe[ve[tt]]=et[ve[tt]]);return Fe},We=et=>{const{prefixCls:Ue,className:Fe,dashed:ve}=et,tt=ue(et,["prefixCls","className","dashed"]),{getPrefixCls:At}=se.useContext(Oe.E_),we=At("menu",Ue),Ce=Ie()({[`${we}-item-divider-dashed`]:!!ve},Fe);return se.createElement(b.iz,Object.assign({className:Ce},tt))},Te=ae(11592),He=ae(2738),Ze=ae(6848),De=ae(92343),E=(0,se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=et=>{var Ue;const{className:Fe,children:ve,icon:tt,title:At,danger:we}=et,{prefixCls:Ce,firstLevel:vt,direction:Ye,disableMenuItemTitleTooltip:_e,inlineCollapsed:Et}=se.useContext(E),cn=on=>{const An=se.createElement("span",{className:`${Ce}-title-content`},ve);return(!tt||(0,De.l$)(ve)&&ve.type==="span")&&ve&&on&&vt&&typeof ve=="string"?se.createElement("div",{className:`${Ce}-inline-collapsed-noicon`},ve.charAt(0)):An},{siderCollapsed:Lt}=se.useContext(be.D);let qt=At;typeof At=="undefined"?qt=vt?ve:"":At===!1&&(qt="");const Yt={title:qt};!Lt&&!Et&&(Yt.title=null,Yt.open=!1);const nn=(0,Te.Z)(ve).length;let bt=se.createElement(b.ck,Object.assign({},(0,He.Z)(et,["title","icon","danger"]),{className:Ie()({[`${Ce}-item-danger`]:we,[`${Ce}-item-only-child`]:(tt?nn+1:nn)===1},Fe),title:typeof At=="string"?At:void 0}),(0,De.Tm)(tt,{className:Ie()((0,De.l$)(tt)?(Ue=tt.props)===null||Ue===void 0?void 0:Ue.className:"",`${Ce}-item-icon`)}),cn(Et));return _e||(bt=se.createElement(Ze.Z,Object.assign({},Yt,{placement:Ye==="rtl"?"left":"right",overlayClassName:`${Ce}-inline-collapsed-tooltip`}),bt)),bt},z=et=>{var Ue;const{popupClassName:Fe,icon:ve,title:tt,theme:At}=et,we=se.useContext(E),{prefixCls:Ce,inlineCollapsed:vt,theme:Ye}=we,_e=(0,b.Xl)();let Et;if(!ve)Et=vt&&!_e.length&&tt&&typeof tt=="string"?se.createElement("div",{className:`${Ce}-inline-collapsed-noicon`},tt.charAt(0)):se.createElement("span",{className:`${Ce}-title-content`},tt);else{const Lt=(0,De.l$)(tt)&&tt.type==="span";Et=se.createElement(se.Fragment,null,(0,De.Tm)(ve,{className:Ie()((0,De.l$)(ve)?(Ue=ve.props)===null||Ue===void 0?void 0:Ue.className:"",`${Ce}-item-icon`)}),Lt?tt:se.createElement("span",{className:`${Ce}-title-content`},tt))}const cn=se.useMemo(()=>Object.assign(Object.assign({},we),{firstLevel:!1}),[we]);return se.createElement(E.Provider,{value:cn},se.createElement(b.Wd,Object.assign({},(0,He.Z)(et,["icon"]),{title:Et,popupClassName:Ie()(Ce,Fe,`${Ce}-${At||Ye}`)})))},te=ae(18785),re=ae(70425),ie=ae(62892),ce=ae(40875),pe=function(et,Ue){var Fe={};for(var ve in et)Object.prototype.hasOwnProperty.call(et,ve)&&Ue.indexOf(ve)<0&&(Fe[ve]=et[ve]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ve=Object.getOwnPropertySymbols(et);tt<ve.length;tt++)Ue.indexOf(ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(et,ve[tt])&&(Fe[ve[tt]]=et[ve[tt]]);return Fe};function ge(et){return(et||[]).map((Ue,Fe)=>{if(Ue&&typeof Ue=="object"){const ve=Ue,{label:tt,children:At,key:we,type:Ce}=ve,vt=pe(ve,["label","children","key","type"]),Ye=we!=null?we:`tmp-${Fe}`;return At||Ce==="group"?Ce==="group"?se.createElement(b.BW,Object.assign({key:Ye},vt,{title:tt}),ge(At)):se.createElement(z,Object.assign({key:Ye},vt,{title:tt}),ge(At)):Ce==="divider"?se.createElement(We,Object.assign({key:Ye},vt)):se.createElement(x,Object.assign({key:Ye},vt),tt)}return null}).filter(Ue=>Ue)}function Ee(et){return se.useMemo(()=>et&&ge(et),[et])}var ye=ae(64993),Re=ae(17313),he=ae(8378),qe=ae(13826),je=ae(29878),ot=ae(83116),Le=ae(37613),st=et=>{const{componentCls:Ue,motionDurationSlow:Fe,horizontalLineHeight:ve,colorSplit:tt,lineWidth:At,lineType:we,itemPaddingInline:Ce}=et;return{[`${Ue}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${At}px ${we} ${tt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ue}-item, ${Ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ce},[`> ${Ue}-item:hover,
> ${Ue}-item-active,
> ${Ue}-submenu ${Ue}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ue}-item, ${Ue}-submenu-title`]:{transition:[`border-color ${Fe}`,`background ${Fe}`].join(",")},[`${Ue}-submenu-arrow`]:{display:"none"}}}},$e=et=>{let{componentCls:Ue,menuArrowOffset:Fe}=et;return{[`${Ue}-rtl`]:{direction:"rtl"},[`${Ue}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ue}-rtl${Ue}-vertical,
${Ue}-submenu-rtl ${Ue}-vertical`]:{[`${Ue}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Fe})`},"&::after":{transform:`rotate(45deg) translateY(${Fe})`}}}}};const Wt=et=>Object.assign({},(0,Re.oN)(et));var jt=(et,Ue)=>{const{componentCls:Fe,itemColor:ve,itemSelectedColor:tt,groupTitleColor:At,itemBg:we,subMenuItemBg:Ce,itemSelectedBg:vt,activeBarHeight:Ye,activeBarWidth:_e,activeBarBorderWidth:Et,motionDurationSlow:cn,motionEaseInOut:Lt,motionEaseOut:qt,itemPaddingInline:Yt,motionDurationMid:nn,itemHoverColor:bt,lineType:on,colorSplit:An,itemDisabledColor:Zt,dangerItemColor:wt,dangerItemHoverColor:Nn,dangerItemSelectedColor:zn,dangerItemActiveBg:Wn,dangerItemSelectedBg:Yn,itemHoverBg:xa,itemActiveBg:ln,menuSubMenuBg:en,horizontalItemSelectedColor:pn,horizontalItemSelectedBg:Zn,horizontalItemBorderRadius:xn,horizontalItemHoverBg:La,popupBg:Wa}=et;return{[`${Fe}-${Ue}, ${Fe}-${Ue} > ${Fe}`]:{color:ve,background:we,[`&${Fe}-root:focus-visible`]:Object.assign({},Wt(et)),[`${Fe}-item-group-title`]:{color:At},[`${Fe}-submenu-selected`]:{[`> ${Fe}-submenu-title`]:{color:tt}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{color:`${Zt} !important`},[`${Fe}-item:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{[`&:hover, > ${Fe}-submenu-title:hover`]:{color:bt}},[`&:not(${Fe}-horizontal)`]:{[`${Fe}-item:not(${Fe}-item-selected)`]:{"&:hover":{backgroundColor:xa},"&:active":{backgroundColor:ln}},[`${Fe}-submenu-title`]:{"&:hover":{backgroundColor:xa},"&:active":{backgroundColor:ln}}},[`${Fe}-item-danger`]:{color:wt,[`&${Fe}-item:hover`]:{[`&:not(${Fe}-item-selected):not(${Fe}-submenu-selected)`]:{color:Nn}},[`&${Fe}-item:active`]:{background:Wn}},[`${Fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Fe}-item-selected`]:{color:tt,[`&${Fe}-item-danger`]:{color:zn},"a, a:hover":{color:"inherit"}},[`& ${Fe}-item-selected`]:{backgroundColor:vt,[`&${Fe}-item-danger`]:{backgroundColor:Yn}},[`${Fe}-item, ${Fe}-submenu-title`]:{[`&:not(${Fe}-item-disabled):focus-visible`]:Object.assign({},Wt(et))},[`&${Fe}-submenu > ${Fe}`]:{backgroundColor:en},[`&${Fe}-popup > ${Fe}`]:{backgroundColor:Wa},[`&${Fe}-horizontal`]:Object.assign(Object.assign({},Ue==="dark"?{borderBottom:0}:{}),{[`> ${Fe}-item, > ${Fe}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:xn,"&::after":{position:"absolute",insetInline:Yt,bottom:0,borderBottom:`${Ye}px solid transparent`,transition:`border-color ${cn} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:La,"&::after":{borderBottomWidth:Ye,borderBottomColor:pn}},"&-selected":{color:pn,backgroundColor:Zn,"&:hover":{backgroundColor:Zn},"&::after":{borderBottomWidth:Ye,borderBottomColor:pn}}}}),[`&${Fe}-root`]:{[`&${Fe}-inline, &${Fe}-vertical`]:{borderInlineEnd:`${Et}px ${on} ${An}`}},[`&${Fe}-inline`]:{[`${Fe}-sub${Fe}-inline`]:{background:Ce},[`${Fe}-item, ${Fe}-submenu-title`]:Et&&_e?{width:`calc(100% + ${Et}px)`}:{},[`${Fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_e}px solid ${tt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${nn} ${qt}`,`opacity ${nn} ${qt}`].join(","),content:'""'},[`&${Fe}-item-danger`]:{"&::after":{borderInlineEndColor:zn}}},[`${Fe}-selected, ${Fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${nn} ${Lt}`,`opacity ${nn} ${Lt}`].join(",")}}}}}};const Xt=et=>{const{componentCls:Ue,itemHeight:Fe,itemMarginInline:ve,padding:tt,menuArrowSize:At,marginXS:we,itemMarginBlock:Ce}=et,vt=tt+At+we;return{[`${Ue}-item`]:{position:"relative",overflow:"hidden"},[`${Ue}-item, ${Ue}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`,paddingInline:tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:Ce,width:`calc(100% - ${ve*2}px)`},[`> ${Ue}-item,
> ${Ue}-submenu > ${Ue}-submenu-title`]:{height:Fe,lineHeight:`${Fe}px`},[`${Ue}-item-group-list ${Ue}-submenu-title,
${Ue}-submenu-title`]:{paddingInlineEnd:vt}}};var ft=et=>{const{componentCls:Ue,iconCls:Fe,itemHeight:ve,colorTextLightSolid:tt,dropdownWidth:At,controlHeightLG:we,motionDurationMid:Ce,motionEaseOut:vt,paddingXL:Ye,itemMarginInline:_e,fontSizeLG:Et,motionDurationSlow:cn,paddingXS:Lt,boxShadowSecondary:qt,collapsedWidth:Yt,collapsedIconSize:nn}=et,bt={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ue]:{"&-inline, &-vertical":Object.assign({[`&${Ue}-root`]:{boxShadow:"none"}},Xt(et))},[`${Ue}-submenu-popup`]:{[`${Ue}-vertical`]:Object.assign(Object.assign({},Xt(et)),{boxShadow:qt})}},{[`${Ue}-submenu-popup ${Ue}-vertical${Ue}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${we*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ue}-inline`]:{width:"100%",[`&${Ue}-root`]:{[`${Ue}-item, ${Ue}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${cn}`,`background ${cn}`,`padding ${Ce} ${vt}`].join(","),[`> ${Ue}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ue}-sub${Ue}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ue}-submenu > ${Ue}-submenu-title`]:bt,[`& ${Ue}-item-group-title`]:{paddingInlineStart:Ye}},[`${Ue}-item`]:bt}},{[`${Ue}-inline-collapsed`]:{width:Yt,[`&${Ue}-root`]:{[`${Ue}-item, ${Ue}-submenu ${Ue}-submenu-title`]:{[`> ${Ue}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${Ue}-item,
> ${Ue}-item-group > ${Ue}-item-group-list > ${Ue}-item,
> ${Ue}-item-group > ${Ue}-item-group-list > ${Ue}-submenu > ${Ue}-submenu-title,
> ${Ue}-submenu > ${Ue}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${_e}px)`,textOverflow:"clip",[`
${Ue}-submenu-arrow,
${Ue}-submenu-expand-icon
`]:{opacity:0},[`${Ue}-item-icon, ${Fe}`]:{margin:0,fontSize:nn,lineHeight:`${ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ue}-item-icon, ${Fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ue}-item-icon, ${Fe}`]:{display:"none"},"a, a:hover":{color:tt}},[`${Ue}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:Lt})}}]};const Dt=et=>{const{componentCls:Ue,motionDurationSlow:Fe,motionDurationMid:ve,motionEaseInOut:tt,motionEaseOut:At,iconCls:we,iconSize:Ce,iconMarginInlineEnd:vt}=et;return{[`${Ue}-item, ${Ue}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Fe}`,`background ${Fe}`,`padding ${Fe} ${tt}`].join(","),[`${Ue}-item-icon, ${we}`]:{minWidth:Ce,fontSize:Ce,transition:[`font-size ${ve} ${At}`,`margin ${Fe} ${tt}`,`color ${Fe}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${Fe} ${tt}`,`margin ${Fe}`,`color ${Fe}`].join(",")}},[`${Ue}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Ue}-item-only-child`]:{[`> ${we}, > ${Ue}-item-icon`]:{marginInlineEnd:0}}},[`${Ue}-item-disabled, ${Ue}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ue}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},rn=et=>{const{componentCls:Ue,motionDurationSlow:Fe,motionEaseInOut:ve,borderRadius:tt,menuArrowSize:At,menuArrowOffset:we}=et;return{[`${Ue}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:et.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Fe} ${ve}, opacity ${Fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:tt,transition:[`background ${Fe} ${ve}`,`transform ${Fe} ${ve}`,`top ${Fe} ${ve}`,`color ${Fe} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${we})`},"&::after":{transform:`rotate(-45deg) translateY(${we})`}}}}},Pt=et=>{const{antCls:Ue,componentCls:Fe,fontSize:ve,motionDurationSlow:tt,motionDurationMid:At,motionEaseInOut:we,paddingXS:Ce,padding:vt,colorSplit:Ye,lineWidth:_e,zIndexPopup:Et,borderRadiusLG:cn,subMenuItemBorderRadius:Lt,menuArrowSize:qt,menuArrowOffset:Yt,lineType:nn,menuPanelMaskInset:bt,groupTitleLineHeight:on,groupTitleFontSize:An}=et;return[{"":{[`${Fe}`]:Object.assign(Object.assign({},(0,Re.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,Re.Wf)(et)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${tt} 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:et.itemBorderRadius},[`${Fe}-item-group-title`]:{padding:`${Ce}px ${vt}px`,fontSize:An,lineHeight:on,transition:`all ${tt}`},[`&-horizontal ${Fe}-submenu`]:{transition:[`border-color ${tt} ${we}`,`background ${tt} ${we}`].join(",")},[`${Fe}-submenu, ${Fe}-submenu-inline`]:{transition:[`border-color ${tt} ${we}`,`background ${tt} ${we}`,`padding ${At} ${we}`].join(",")},[`${Fe}-submenu ${Fe}-sub`]:{cursor:"initial",transition:[`background ${tt} ${we}`,`padding ${tt} ${we}`].join(",")},[`${Fe}-title-content`]:{transition:`color ${tt}`},[`${Fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ye,borderStyle:nn,borderWidth:0,borderTopWidth:_e,marginBlock:_e,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(et)),{[`${Fe}-item-group`]:{[`${Fe}-item-group-list`]:{margin:0,padding:0,[`${Fe}-item, ${Fe}-submenu-title`]:{paddingInline:`${ve*2}px ${vt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:cn,boxShadow:"none",transformOrigin:"0 0",[`&${Fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:et.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:et.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:et.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:et.paddingXS},[`> ${Fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:cn},Dt(et)),rn(et)),{[`${Fe}-item, ${Fe}-submenu > ${Fe}-submenu-title`]:{borderRadius:Lt},[`${Fe}-submenu-title::after`]:{transition:`transform ${tt} ${we}`}})}}),rn(et)),{[`&-inline-collapsed ${Fe}-submenu-arrow,
&-inline ${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Yt})`},"&::after":{transform:`rotate(45deg) translateX(-${Yt})`}},[`${Fe}-submenu-open${Fe}-submenu-inline > ${Fe}-submenu-title > ${Fe}-submenu-arrow`]:{transform:`translateY(-${qt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Yt})`},"&::before":{transform:`rotate(45deg) translateX(${Yt})`}}})},{[`${Ue}-layout-header`]:{[Fe]:{lineHeight:"inherit"}}}]};var Jt=(et,Ue)=>(0,ot.Z)("Menu",ve=>{if(Ue===!1)return[];const{colorBgElevated:tt,colorPrimary:At,colorTextLightSolid:we,controlHeightLG:Ce,fontSize:vt,darkItemColor:Ye,darkDangerItemColor:_e,darkItemBg:Et,darkSubMenuItemBg:cn,darkItemSelectedColor:Lt,darkItemSelectedBg:qt,darkDangerItemSelectedBg:Yt,darkItemHoverBg:nn,darkGroupTitleColor:bt,darkItemHoverColor:on,darkItemDisabledColor:An,darkDangerItemHoverColor:Zt,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:Nn}=ve,zn=vt/7*5,Wn=(0,Le.TS)(ve,{menuArrowSize:zn,menuHorizontalHeight:Ce*1.15,menuArrowOffset:`${zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:tt}),Yn=(0,Le.TS)(Wn,{itemColor:Ye,itemHoverColor:on,groupTitleColor:bt,itemSelectedColor:Lt,itemBg:Et,popupBg:Et,subMenuItemBg:cn,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:nn,itemDisabledColor:An,dangerItemColor:_e,dangerItemHoverColor:Zt,dangerItemSelectedColor:wt,dangerItemActiveBg:Nn,dangerItemSelectedBg:Yt,menuSubMenuBg:cn,horizontalItemSelectedColor:we,horizontalItemSelectedBg:At});return[Pt(Wn),st(Wn),ft(Wn),jt(Wn,"light"),jt(Yn,"dark"),$e(Wn),(0,he.Z)(Wn),(0,qe.oN)(Wn,"slide-up"),(0,qe.oN)(Wn,"slide-down"),(0,je._y)(Wn,"zoom-big")]},ve=>{const{colorPrimary:tt,colorError:At,colorTextDisabled:we,colorErrorBg:Ce,colorText:vt,colorTextDescription:Ye,colorBgContainer:_e,colorFillAlter:Et,colorFillContent:cn,lineWidth:Lt,lineWidthBold:qt,controlItemBgActive:Yt,colorBgTextHover:nn,controlHeightLG:bt,lineHeight:on,colorBgElevated:An,marginXXS:Zt,padding:wt,fontSize:Nn,controlHeightSM:zn,fontSizeLG:Wn,colorTextLightSolid:Yn,colorErrorHover:xa}=ve,ln=new ye.C(Yn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:tt,horizontalItemHoverColor:tt,colorGroupTitle:Ye,groupTitleColor:Ye,colorItemTextSelected:tt,itemSelectedColor:tt,colorItemTextSelectedHorizontal:tt,horizontalItemSelectedColor:tt,colorItemBg:_e,itemBg:_e,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:cn,itemActiveBg:Yt,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:Yt,itemSelectedBg:Yt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:qt,activeBarHeight:qt,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:we,itemDisabledColor:we,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:Ce,dangerItemActiveBg:Ce,colorDangerItemBgSelected:Ce,dangerItemSelectedBg:Ce,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:on,collapsedWidth:bt*2,popupBg:An,itemMarginBlock:Zt,itemPaddingInline:wt,horizontalLineHeight:`${bt*1.15}px`,iconSize:Nn,iconMarginInlineEnd:zn-Nn,collapsedIconSize:Wn,groupTitleFontSize:Nn,darkItemDisabledColor:new ye.C(Yn).setAlpha(.25).toRgbString(),darkItemColor:ln,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Yn,darkItemSelectedBg:tt,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:ln,darkItemHoverColor:Yn,darkDangerItemHoverColor:xa,darkDangerItemSelectedColor:Yn,darkDangerItemActiveBg:At}},{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"]]})(et),Be=function(et,Ue){var Fe={};for(var ve in et)Object.prototype.hasOwnProperty.call(et,ve)&&Ue.indexOf(ve)<0&&(Fe[ve]=et[ve]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ve=Object.getOwnPropertySymbols(et);tt<ve.length;tt++)Ue.indexOf(ve[tt])<0&&Object.prototype.propertyIsEnumerable.call(et,ve[tt])&&(Fe[ve[tt]]=et[ve[tt]]);return Fe},En=(0,se.forwardRef)((et,Ue)=>{var Fe,ve;const tt=se.useContext(ce.Z),At=tt||{},{getPrefixCls:we,getPopupContainer:Ce,direction:vt,menu:Ye}=se.useContext(Oe.E_),_e=we(),{prefixCls:Et,className:cn,style:Lt,theme:qt="light",expandIcon:Yt,_internalDisableMenuItemTitleTooltip:nn,inlineCollapsed:bt,siderCollapsed:on,items:An,children:Zt,rootClassName:wt,mode:Nn,selectable:zn,onClick:Wn,overflowedIndicatorPopupClassName:Yn}=et,xa=Be(et,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ln=(0,He.Z)(xa,["collapsedWidth"]),en=Ee(An)||Zt;(Fe=At.validator)===null||Fe===void 0||Fe.call(At,{mode:Nn});const pn=(0,re.useEvent)(function(){var Vt;Wn==null||Wn.apply(void 0,arguments),(Vt=At.onClick)===null||Vt===void 0||Vt.call(At)}),Zn=At.mode||Nn,xn=zn!=null?zn:At.selectable,La=se.useMemo(()=>on!==void 0?on:bt,[bt,on]),Wa={horizontal:{motionName:`${_e}-slide-up`},inline:(0,ie.Z)(_e),other:{motionName:`${_e}-zoom-big`}},ta=we("menu",Et||At.prefixCls),[yn,Oa]=Jt(ta,!tt),Ve=Ie()(`${ta}-${qt}`,Ye==null?void 0:Ye.className,cn);let Ft;if(typeof Yt=="function")Ft=Yt;else if(Yt===null||Yt===!1)Ft=null;else if(At.expandIcon===null||At.expandIcon===!1)Ft=null;else{const Vt=Yt!=null?Yt:At.expandIcon;Ft=(0,De.Tm)(Vt,{className:Ie()(`${ta}-submenu-expand-icon`,(0,De.l$)(Vt)?(ve=Vt.props)===null||ve===void 0?void 0:ve.className:"")})}const Ht=se.useMemo(()=>({prefixCls:ta,inlineCollapsed:La||!1,direction:vt,firstLevel:!0,theme:qt,mode:Zn,disableMenuItemTitleTooltip:nn}),[ta,La,vt,nn,qt]);return yn(se.createElement(ce.Z.Provider,{value:null},se.createElement(E.Provider,{value:Ht},se.createElement(b.ZP,Object.assign({getPopupContainer:Ce,overflowedIndicator:se.createElement(te.Z,null),overflowedIndicatorPopupClassName:Ie()(ta,`${ta}-${qt}`,Yn),mode:Zn,selectable:xn,onClick:pn},ln,{inlineCollapsed:La,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Lt),className:Ve,prefixCls:ta,direction:vt,defaultMotions:Wa,expandIcon:Ft,ref:Ue,rootClassName:Ie()(wt,Oa)}),en))))});const Ct=(0,se.forwardRef)((et,Ue)=>{const Fe=(0,se.useRef)(null),ve=se.useContext(be.D);return(0,se.useImperativeHandle)(Ue,()=>({menu:Fe.current,focus:tt=>{var At;(At=Fe.current)===null||At===void 0||At.focus(tt)}})),se.createElement(En,Object.assign({ref:Fe},et,ve))});Ct.Item=x,Ct.SubMenu=z,Ct.Divider=We,Ct.ItemGroup=b.BW;var It=Ct},58421:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return At}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(Ce,vt){return se.createElement(Ie.Z,(0,b.Z)({},Ce,{ref:vt,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue,We=ae(49198),Te=ae(33853),He=ae(38819),Ze=ae(92310),De=ae.n(Ze),le=ae(78772),E=ae(35227),a=ae(44202),x=ae(86773),y=ae(82412),z=ae(60845),te=ae(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ie=re,ce=ae(91735),pe=function(we){(0,y.Z)(vt,we);var Ce=(0,z.Z)(vt);function vt(){var Ye;(0,a.Z)(this,vt);for(var _e=arguments.length,Et=new Array(_e),cn=0;cn<_e;cn++)Et[cn]=arguments[cn];return Ye=Ce.call.apply(Ce,[this].concat(Et)),Ye.state={goInputText:""},Ye.getValidValue=function(){var Lt=Ye.state.goInputText;return!Lt||Number.isNaN(Lt)?void 0:Number(Lt)},Ye.buildOptionText=function(Lt){return"".concat(Lt," ").concat(Ye.props.locale.items_per_page)},Ye.changeSize=function(Lt){Ye.props.changeSize(Number(Lt))},Ye.handleChange=function(Lt){Ye.setState({goInputText:Lt.target.value})},Ye.handleBlur=function(Lt){var qt=Ye.props,Yt=qt.goButton,nn=qt.quickGo,bt=qt.rootPrefixCls,on=Ye.state.goInputText;Yt||on===""||(Ye.setState({goInputText:""}),!(Lt.relatedTarget&&(Lt.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Lt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&nn(Ye.getValidValue()))},Ye.go=function(Lt){var qt=Ye.state.goInputText;qt!==""&&(Lt.keyCode===ie.ENTER||Lt.type==="click")&&(Ye.setState({goInputText:""}),Ye.props.quickGo(Ye.getValidValue()))},Ye}return(0,x.Z)(vt,[{key:"getPageSizeOptions",value:function(){var _e=this.props,Et=_e.pageSize,cn=_e.pageSizeOptions;return cn.some(function(Lt){return Lt.toString()===Et.toString()})?cn:cn.concat([Et.toString()]).sort(function(Lt,qt){var Yt=Number.isNaN(Number(Lt))?0:Number(Lt),nn=Number.isNaN(Number(qt))?0:Number(qt);return Yt-nn})}},{key:"render",value:function(){var _e=this,Et=this.props,cn=Et.pageSize,Lt=Et.locale,qt=Et.rootPrefixCls,Yt=Et.changeSize,nn=Et.quickGo,bt=Et.goButton,on=Et.selectComponentClass,An=Et.buildOptionText,Zt=Et.selectPrefixCls,wt=Et.disabled,Nn=this.state.goInputText,zn="".concat(qt,"-options"),Wn=on,Yn=null,xa=null,ln=null;if(!Yt&&!nn)return null;var en=this.getPageSizeOptions();if(Yt&&Wn){var pn=en.map(function(Zn,xn){return se.createElement(Wn.Option,{key:xn,value:Zn.toString()},(An||_e.buildOptionText)(Zn))});Yn=se.createElement(Wn,{disabled:wt,prefixCls:Zt,showSearch:!1,className:"".concat(zn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(cn||en[0]).toString(),onChange:this.changeSize,getPopupContainer:function(xn){return xn.parentNode},"aria-label":Lt.page_size,defaultOpen:!1},pn)}return nn&&(bt&&(ln=typeof bt=="boolean"?se.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:wt,className:"".concat(zn,"-quick-jumper-button")},Lt.jump_to_confirm):se.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),xa=se.createElement("div",{className:"".concat(zn,"-quick-jumper")},Lt.jump_to,se.createElement("input",{disabled:wt,type:"text",value:Nn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Lt.page}),Lt.page,ln)),se.createElement("li",{className:"".concat(zn)},Yn,xa)}}]),vt}(se.Component);pe.defaultProps={pageSizeOptions:["10","20","50","100"]};var ge=pe,Ee=function(Ce){var vt,Ye=Ce.rootPrefixCls,_e=Ce.page,Et=Ce.active,cn=Ce.className,Lt=Ce.showTitle,qt=Ce.onClick,Yt=Ce.onKeyPress,nn=Ce.itemRender,bt="".concat(Ye,"-item"),on=De()(bt,"".concat(bt,"-").concat(_e),(vt={},(0,le.Z)(vt,"".concat(bt,"-active"),Et),(0,le.Z)(vt,"".concat(bt,"-disabled"),!_e),(0,le.Z)(vt,Ce.className,cn),vt)),An=function(){qt(_e)},Zt=function(zn){Yt(zn,qt,_e)},wt=nn(_e,"page",se.createElement("a",{rel:"nofollow"},_e));return wt?se.createElement("li",{title:Lt?_e.toString():null,className:on,onClick:An,onKeyPress:Zt,tabIndex:0},wt):null},ye=Ee;function Re(){}function he(we){var Ce=Number(we);return typeof Ce=="number"&&!Number.isNaN(Ce)&&isFinite(Ce)&&Math.floor(Ce)===Ce}var qe=function(Ce,vt,Ye){return Ye};function je(we,Ce,vt){var Ye=typeof we=="undefined"?Ce.pageSize:we;return Math.floor((vt.total-1)/Ye)+1}var ot=function(we){(0,y.Z)(vt,we);var Ce=(0,z.Z)(vt);function vt(Ye){var _e;(0,a.Z)(this,vt),_e=Ce.call(this,Ye),_e.paginationNode=se.createRef(),_e.getJumpPrevPage=function(){return Math.max(1,_e.state.current-(_e.props.showLessItems?3:5))},_e.getJumpNextPage=function(){return Math.min(je(void 0,_e.state,_e.props),_e.state.current+(_e.props.showLessItems?3:5))},_e.getItemIcon=function(Yt,nn){var bt=_e.props.prefixCls,on=Yt||se.createElement("button",{type:"button","aria-label":nn,className:"".concat(bt,"-item-link")});return typeof Yt=="function"&&(on=se.createElement(Yt,(0,E.Z)({},_e.props))),on},_e.isValid=function(Yt){var nn=_e.props.total;return he(Yt)&&Yt!==_e.state.current&&he(nn)&&nn>0},_e.shouldDisplayQuickJumper=function(){var Yt=_e.props,nn=Yt.showQuickJumper,bt=Yt.total,on=_e.state.pageSize;return bt<=on?!1:nn},_e.handleKeyDown=function(Yt){(Yt.keyCode===ie.ARROW_UP||Yt.keyCode===ie.ARROW_DOWN)&&Yt.preventDefault()},_e.handleKeyUp=function(Yt){var nn=_e.getValidValue(Yt),bt=_e.state.currentInputValue;nn!==bt&&_e.setState({currentInputValue:nn}),Yt.keyCode===ie.ENTER?_e.handleChange(nn):Yt.keyCode===ie.ARROW_UP?_e.handleChange(nn-1):Yt.keyCode===ie.ARROW_DOWN&&_e.handleChange(nn+1)},_e.handleBlur=function(Yt){var nn=_e.getValidValue(Yt);_e.handleChange(nn)},_e.changePageSize=function(Yt){var nn=_e.state.current,bt=je(Yt,_e.state,_e.props);nn=nn>bt?bt:nn,bt===0&&(nn=_e.state.current),typeof Yt=="number"&&("pageSize"in _e.props||_e.setState({pageSize:Yt}),"current"in _e.props||_e.setState({current:nn,currentInputValue:nn})),_e.props.onShowSizeChange(nn,Yt),"onChange"in _e.props&&_e.props.onChange&&_e.props.onChange(nn,Yt)},_e.handleChange=function(Yt){var nn=_e.props,bt=nn.disabled,on=nn.onChange,An=_e.state,Zt=An.pageSize,wt=An.current,Nn=An.currentInputValue;if(_e.isValid(Yt)&&!bt){var zn=je(void 0,_e.state,_e.props),Wn=Yt;return Yt>zn?Wn=zn:Yt<1&&(Wn=1),"current"in _e.props||_e.setState({current:Wn}),Wn!==Nn&&_e.setState({currentInputValue:Wn}),on(Wn,Zt),Wn}return wt},_e.prev=function(){_e.hasPrev()&&_e.handleChange(_e.state.current-1)},_e.next=function(){_e.hasNext()&&_e.handleChange(_e.state.current+1)},_e.jumpPrev=function(){_e.handleChange(_e.getJumpPrevPage())},_e.jumpNext=function(){_e.handleChange(_e.getJumpNextPage())},_e.hasPrev=function(){return _e.state.current>1},_e.hasNext=function(){return _e.state.current<je(void 0,_e.state,_e.props)},_e.runIfEnter=function(Yt,nn){if(Yt.key==="Enter"||Yt.charCode===13){for(var bt=arguments.length,on=new Array(bt>2?bt-2:0),An=2;An<bt;An++)on[An-2]=arguments[An];nn.apply(void 0,on)}},_e.runIfEnterPrev=function(Yt){_e.runIfEnter(Yt,_e.prev)},_e.runIfEnterNext=function(Yt){_e.runIfEnter(Yt,_e.next)},_e.runIfEnterJumpPrev=function(Yt){_e.runIfEnter(Yt,_e.jumpPrev)},_e.runIfEnterJumpNext=function(Yt){_e.runIfEnter(Yt,_e.jumpNext)},_e.handleGoTO=function(Yt){(Yt.keyCode===ie.ENTER||Yt.type==="click")&&_e.handleChange(_e.state.currentInputValue)},_e.renderPrev=function(Yt){var nn=_e.props,bt=nn.prevIcon,on=nn.itemRender,An=on(Yt,"prev",_e.getItemIcon(bt,"prev page")),Zt=!_e.hasPrev();return(0,se.isValidElement)(An)?(0,se.cloneElement)(An,{disabled:Zt}):An},_e.renderNext=function(Yt){var nn=_e.props,bt=nn.nextIcon,on=nn.itemRender,An=on(Yt,"next",_e.getItemIcon(bt,"next page")),Zt=!_e.hasNext();return(0,se.isValidElement)(An)?(0,se.cloneElement)(An,{disabled:Zt}):An};var Et=Ye.onChange!==Re,cn="current"in Ye;cn&&!Et&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Lt=Ye.defaultCurrent;"current"in Ye&&(Lt=Ye.current);var qt=Ye.defaultPageSize;return"pageSize"in Ye&&(qt=Ye.pageSize),Lt=Math.min(Lt,je(qt,void 0,Ye)),_e.state={current:Lt,currentInputValue:Lt,pageSize:qt},_e}return(0,x.Z)(vt,[{key:"componentDidUpdate",value:function(_e,Et){var cn=this.props.prefixCls;if(Et.current!==this.state.current&&this.paginationNode.current){var Lt=this.paginationNode.current.querySelector(".".concat(cn,"-item-").concat(Et.current));if(Lt&&document.activeElement===Lt){var qt;Lt==null||(qt=Lt.blur)===null||qt===void 0||qt.call(Lt)}}}},{key:"getValidValue",value:function(_e){var Et=_e.target.value,cn=je(void 0,this.state,this.props),Lt=this.state.currentInputValue,qt;return Et===""?qt=Et:Number.isNaN(Number(Et))?qt=Lt:Et>=cn?qt=cn:qt=Number(Et),qt}},{key:"getShowSizeChanger",value:function(){var _e=this.props,Et=_e.showSizeChanger,cn=_e.total,Lt=_e.totalBoundaryShowSizeChanger;return typeof Et!="undefined"?Et:cn>Lt}},{key:"render",value:function(){var _e=this.props,Et=_e.prefixCls,cn=_e.className,Lt=_e.style,qt=_e.disabled,Yt=_e.hideOnSinglePage,nn=_e.total,bt=_e.locale,on=_e.showQuickJumper,An=_e.showLessItems,Zt=_e.showTitle,wt=_e.showTotal,Nn=_e.simple,zn=_e.itemRender,Wn=_e.showPrevNextJumpers,Yn=_e.jumpPrevIcon,xa=_e.jumpNextIcon,ln=_e.selectComponentClass,en=_e.selectPrefixCls,pn=_e.pageSizeOptions,Zn=this.state,xn=Zn.current,La=Zn.pageSize,Wa=Zn.currentInputValue;if(Yt===!0&&nn<=La)return null;var ta=je(void 0,this.state,this.props),yn=[],Oa=null,Ve=null,Ft=null,Ht=null,Vt=null,tn=on&&on.goButton,Sn=An?1:2,mn=xn-1>0?xn-1:0,lt=xn+1<ta?xn+1:ta,pt=(0,te.Z)(this.props,{aria:!0,data:!0}),ct=wt&&se.createElement("li",{className:"".concat(Et,"-total-text")},wt(nn,[nn===0?0:(xn-1)*La+1,xn*La>nn?nn:xn*La]));if(Nn){tn&&(typeof tn=="boolean"?Vt=se.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):Vt=se.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),Vt=se.createElement("li",{title:Zt?"".concat(bt.jump_to).concat(xn,"/").concat(ta):null,className:"".concat(Et,"-simple-pager")},Vt));var Kt=this.renderPrev(mn);return se.createElement("ul",(0,b.Z)({className:De()(Et,"".concat(Et,"-simple"),(0,le.Z)({},"".concat(Et,"-disabled"),qt),cn),style:Lt,ref:this.paginationNode},pt),ct,Kt?se.createElement("li",{title:Zt?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:De()("".concat(Et,"-prev"),(0,le.Z)({},"".concat(Et,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Kt):null,se.createElement("li",{title:Zt?"".concat(xn,"/").concat(ta):null,className:"".concat(Et,"-simple-pager")},se.createElement("input",{type:"text",value:Wa,disabled:qt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),se.createElement("span",{className:"".concat(Et,"-slash")},"/"),ta),se.createElement("li",{title:Zt?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:De()("".concat(Et,"-next"),(0,le.Z)({},"".concat(Et,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(lt)),Vt)}if(ta<=3+Sn*2){var vn={locale:bt,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Zt,itemRender:zn};ta||yn.push(se.createElement(ye,(0,b.Z)({},vn,{key:"noPager",page:1,className:"".concat(Et,"-item-disabled")})));for(var an=1;an<=ta;an+=1){var kn=xn===an;yn.push(se.createElement(ye,(0,b.Z)({},vn,{key:an,page:an,active:kn})))}}else{var Fn=An?bt.prev_3:bt.prev_5,Bn=An?bt.next_3:bt.next_5,Un=zn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Yn,"prev page")),Ra=zn(this.getJumpNextPage(),"jump-next",this.getItemIcon(xa,"next page"));Wn&&(Oa=Un?se.createElement("li",{title:Zt?Fn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:De()("".concat(Et,"-jump-prev"),(0,le.Z)({},"".concat(Et,"-jump-prev-custom-icon"),!!Yn))},Un):null,Ve=Ra?se.createElement("li",{title:Zt?Bn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:De()("".concat(Et,"-jump-next"),(0,le.Z)({},"".concat(Et,"-jump-next-custom-icon"),!!xa))},Ra):null),Ht=se.createElement(ye,{locale:bt,last:!0,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ta,page:ta,active:!1,showTitle:Zt,itemRender:zn}),Ft=se.createElement(ye,{locale:bt,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Zt,itemRender:zn});var bn=Math.max(1,xn-Sn),pa=Math.min(xn+Sn,ta);xn-1<=Sn&&(pa=1+Sn*2),ta-xn<=Sn&&(bn=ta-Sn*2);for(var $a=bn;$a<=pa;$a+=1){var lr=xn===$a;yn.push(se.createElement(ye,{locale:bt,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$a,page:$a,active:lr,showTitle:Zt,itemRender:zn}))}xn-1>=Sn*2&&xn!==3&&(yn[0]=(0,se.cloneElement)(yn[0],{className:"".concat(Et,"-item-after-jump-prev")}),yn.unshift(Oa)),ta-xn>=Sn*2&&xn!==ta-2&&(yn[yn.length-1]=(0,se.cloneElement)(yn[yn.length-1],{className:"".concat(Et,"-item-before-jump-next")}),yn.push(Ve)),bn!==1&&yn.unshift(Ft),pa!==ta&&yn.push(Ht)}var Jn=!this.hasPrev()||!ta,sn=!this.hasNext()||!ta,Dr=this.renderPrev(mn),Ga=this.renderNext(lt);return se.createElement("ul",(0,b.Z)({className:De()(Et,cn,(0,le.Z)({},"".concat(Et,"-disabled"),qt)),style:Lt,ref:this.paginationNode},pt),ct,Dr?se.createElement("li",{title:Zt?bt.prev_page:null,onClick:this.prev,tabIndex:Jn?null:0,onKeyPress:this.runIfEnterPrev,className:De()("".concat(Et,"-prev"),(0,le.Z)({},"".concat(Et,"-disabled"),Jn)),"aria-disabled":Jn},Dr):null,yn,Ga?se.createElement("li",{title:Zt?bt.next_page:null,onClick:this.next,tabIndex:sn?null:0,onKeyPress:this.runIfEnterNext,className:De()("".concat(Et,"-next"),(0,le.Z)({},"".concat(Et,"-disabled"),sn)),"aria-disabled":sn},Ga):null,se.createElement(ge,{disabled:qt,locale:bt,rootPrefixCls:Et,selectComponentClass:ln,selectPrefixCls:en,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:xn,pageSize:La,pageSizeOptions:pn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(_e,Et){var cn={};if("current"in _e&&(cn.current=_e.current,_e.current!==Et.current&&(cn.currentInputValue=cn.current)),"pageSize"in _e&&_e.pageSize!==Et.pageSize){var Lt=Et.current,qt=je(_e.pageSize,Et,_e);Lt=Lt>qt?qt:Lt,"current"in _e||(cn.current=Lt,cn.currentInputValue=Lt),cn.pageSize=_e.pageSize}return cn}}]),vt}(se.Component);ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Re,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Re,locale:ce.Z,style:{},itemRender:qe,totalBoundaryShowSizeChanger:50};var Le=ot,Je=ae(22075),st=ae(36355),Ke=ae(19716),$e=ae(8628),Wt=ae(9763),it=ae(57809);const jt=we=>se.createElement(it.default,Object.assign({},we,{showSearch:!0,size:"small"})),Xt=we=>se.createElement(it.default,Object.assign({},we,{showSearch:!0,size:"middle"}));jt.Option=it.default.Option,Xt.Option=it.default.Option;var Qe=ae(9937),ft=ae(17313),Dt=ae(83116),rn=ae(37613);const Pt=we=>{const{componentCls:Ce}=we;return{[`${Ce}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ce}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ce}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ce}-disabled`]:{cursor:"not-allowed",[`${Ce}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:we.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:we.colorBorder,backgroundColor:we.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:we.itemActiveBgDisabled},a:{color:we.itemActiveColorDisabled}}},[`${Ce}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ce}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ce}-simple-pager`]:{color:we.colorTextDisabled},[`${Ce}-jump-prev, ${Ce}-jump-next`]:{[`${Ce}-item-link-icon`]:{opacity:0},[`${Ce}-item-ellipsis`]:{opacity:1}}},[`&${Ce}-simple`]:{[`${Ce}-prev, ${Ce}-next`]:{[`&${Ce}-disabled ${Ce}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Jt=we=>{const{componentCls:Ce}=we;return{[`&${Ce}-mini ${Ce}-total-text, &${Ce}-mini ${Ce}-simple-pager`]:{height:we.itemSizeSM,lineHeight:`${we.itemSizeSM}px`},[`&${Ce}-mini ${Ce}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:`${we.itemSizeSM-2}px`},[`&${Ce}-mini:not(${Ce}-disabled) ${Ce}-item:not(${Ce}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},[`&${Ce}-mini ${Ce}-prev, &${Ce}-mini ${Ce}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:`${we.itemSizeSM}px`},[`&${Ce}-mini:not(${Ce}-disabled)`]:{[`${Ce}-prev, ${Ce}-next`]:{[`&:hover ${Ce}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Ce}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Ce}-disabled:hover ${Ce}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Ce}-mini ${Ce}-prev ${Ce}-item-link,
&${Ce}-mini ${Ce}-next ${Ce}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:`${we.itemSizeSM}px`}},[`&${Ce}-mini ${Ce}-jump-prev, &${Ce}-mini ${Ce}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:`${we.itemSizeSM}px`},[`&${Ce}-mini ${Ce}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:`${we.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Qe.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},Be=we=>{const{componentCls:Ce}=we;return{[`
&${Ce}-simple ${Ce}-prev,
&${Ce}-simple ${Ce}-next
`]:{height:we.itemSizeSM,lineHeight:`${we.itemSizeSM}px`,verticalAlign:"top",[`${Ce}-item-link`]:{height:we.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive},"&::after":{height:we.itemSizeSM,lineHeight:`${we.itemSizeSM}px`}}},[`&${Ce}-simple ${Ce}-simple-pager`]:{display:"inline-block",height:we.itemSizeSM,marginInlineEnd:we.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:we.marginXS,padding:`0 ${we.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,outline:"none",transition:`border-color ${we.motionDurationMid}`,color:"inherit","&:hover":{borderColor:we.colorPrimary},"&:focus":{borderColor:we.colorPrimaryHover,boxShadow:`${we.inputOutlineOffset}px 0 ${we.controlOutlineWidth}px ${we.controlOutline}`},"&[disabled]":{color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,cursor:"not-allowed"}}}}},Ut=we=>{const{componentCls:Ce}=we;return{[`${Ce}-jump-prev, ${Ce}-jump-next`]:{outline:0,[`${Ce}-item-container`]:{position:"relative",[`${Ce}-item-link-icon`]:{color:we.colorPrimary,fontSize:we.fontSizeSM,opacity:0,transition:`all ${we.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ce}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:we.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:we.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:we.paginationEllipsisTextIndent,opacity:1,transition:`all ${we.motionDurationMid}`}},"&:hover":{[`${Ce}-item-link-icon`]:{opacity:1},[`${Ce}-item-ellipsis`]:{opacity:0}}},[`
${Ce}-prev,
${Ce}-jump-prev,
${Ce}-jump-next
`]:{marginInlineEnd:we.marginXS},[`
${Ce}-prev,
${Ce}-next,
${Ce}-jump-prev,
${Ce}-jump-next
`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,color:we.colorText,fontFamily:we.fontFamily,lineHeight:`${we.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}`},[`${Ce}-prev, ${Ce}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${Ce}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:we.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${we.lineWidth}px ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:"none",transition:`all ${we.motionDurationMid}`},[`&:hover ${Ce}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Ce}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Ce}-disabled:hover`]:{[`${Ce}-item-link`]:{backgroundColor:"transparent"}}},[`${Ce}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${Ce}-options`]:{display:"inline-block",marginInlineStart:we.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:we.controlHeight,marginInlineStart:we.marginXS,lineHeight:`${we.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Qe.ik)(we)),{width:we.controlHeightLG*1.25,height:we.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:we.marginXS,marginInlineEnd:we.marginXS})}}}},En=we=>{const{componentCls:Ce}=we;return{[`${Ce}-item`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,marginInlineEnd:we.marginXS,fontFamily:we.fontFamily,lineHeight:`${we.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${we.lineWidth}px ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${we.paginationItemPaddingInline}px`,color:we.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ce}-item-active)`]:{"&:hover":{transition:`all ${we.motionDurationMid}`,backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},"&-active":{fontWeight:we.fontWeightStrong,backgroundColor:we.itemActiveBg,borderColor:we.colorPrimary,a:{color:we.colorPrimary},"&:hover":{borderColor:we.colorPrimaryHover},"&:hover a":{color:we.colorPrimaryHover}}}}},Ct=we=>{const{componentCls:Ce}=we;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(we)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ce}-total-text`]:{display:"inline-block",height:we.itemSize,marginInlineEnd:we.marginXS,lineHeight:`${we.itemSize-2}px`,verticalAlign:"middle"}}),En(we)),Ut(we)),Be(we)),Jt(we)),Pt(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${Ce}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${Ce}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},It=we=>{const{componentCls:Ce}=we;return{[`${Ce}${Ce}-disabled:not(${Ce}-mini)`]:{"&, &:hover":{[`${Ce}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${Ce}-item-link`]:{borderColor:we.colorBorder}},[`${Ce}-item, ${Ce}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${Ce}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${Ce}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${Ce}-prev, ${Ce}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${Ce}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${Ce}:not(${Ce}-mini)`]:{[`${Ce}-prev, ${Ce}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${Ce}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${Ce}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${Ce}-disabled`]:{[`${Ce}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${Ce}-item`]:{backgroundColor:we.itemBg,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${Ce}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}},et=we=>{const{componentCls:Ce}=we;return{[`${Ce}:not(${Ce}-disabled)`]:{[`${Ce}-item`]:Object.assign({},(0,ft.Qy)(we)),[`${Ce}-jump-prev, ${Ce}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ce}-item-link-icon`]:{opacity:1},[`${Ce}-item-ellipsis`]:{opacity:0}},(0,ft.oN)(we))},[`${Ce}-prev, ${Ce}-next`]:{[`&:focus-visible ${Ce}-item-link`]:Object.assign({},(0,ft.oN)(we))}}}};var Ue=(0,Dt.Z)("Pagination",we=>{const Ce=(0,rn.TS)(we,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:we.marginXXS/2,paginationMiniQuickJumperInputWidth:we.controlHeightLG*1.1,paginationItemPaddingInline:we.marginXXS*1.5,paginationEllipsisLetterSpacing:we.marginXXS/2,paginationSlashMarginInlineStart:we.marginXXS,paginationSlashMarginInlineEnd:we.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Qe.e5)(we),(0,Qe.TM)(we));return[Ct(Ce),et(Ce),we.wireframe&&It(Ce)]},we=>({itemBg:we.colorBgContainer,itemSize:we.controlHeight,itemSizeSM:we.controlHeightSM,itemActiveBg:we.colorBgContainer,itemLinkBg:we.colorBgContainer,itemActiveColorDisabled:we.colorTextDisabled,itemActiveBgDisabled:we.controlItemBgActiveDisabled,itemInputBg:we.colorBgContainer,miniOptionsSizeChangerTop:0})),Fe=function(we,Ce){var vt={};for(var Ye in we)Object.prototype.hasOwnProperty.call(we,Ye)&&Ce.indexOf(Ye)<0&&(vt[Ye]=we[Ye]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ye=Object.getOwnPropertySymbols(we);_e<Ye.length;_e++)Ce.indexOf(Ye[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,Ye[_e])&&(vt[Ye[_e]]=we[Ye[_e]]);return vt},tt=we=>{const{prefixCls:Ce,selectPrefixCls:vt,className:Ye,rootClassName:_e,style:Et,size:cn,locale:Lt,selectComponentClass:qt,responsive:Yt,showSizeChanger:nn}=we,bt=Fe(we,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:on}=(0,$e.Z)(Yt),{getPrefixCls:An,direction:Zt,pagination:wt={}}=se.useContext(st.E_),Nn=An("pagination",Ce),[zn,Wn]=Ue(Nn),Yn=nn!=null?nn:wt.showSizeChanger,xa=se.useMemo(()=>{const ta=se.createElement("span",{className:`${Nn}-item-ellipsis`},"\u2022\u2022\u2022"),yn=se.createElement("button",{className:`${Nn}-item-link`,type:"button",tabIndex:-1},Zt==="rtl"?se.createElement(He.Z,null):se.createElement(Te.Z,null)),Oa=se.createElement("button",{className:`${Nn}-item-link`,type:"button",tabIndex:-1},Zt==="rtl"?se.createElement(Te.Z,null):se.createElement(He.Z,null)),Ve=se.createElement("a",{className:`${Nn}-item-link`},se.createElement("div",{className:`${Nn}-item-container`},Zt==="rtl"?se.createElement(We.Z,{className:`${Nn}-item-link-icon`}):se.createElement(ke,{className:`${Nn}-item-link-icon`}),ta)),Ft=se.createElement("a",{className:`${Nn}-item-link`},se.createElement("div",{className:`${Nn}-item-container`},Zt==="rtl"?se.createElement(ke,{className:`${Nn}-item-link-icon`}):se.createElement(We.Z,{className:`${Nn}-item-link-icon`}),ta));return{prevIcon:yn,nextIcon:Oa,jumpPrevIcon:Ve,jumpNextIcon:Ft}},[Zt,Nn]),[ln]=(0,Wt.Z)("Pagination",Je.Z),en=Object.assign(Object.assign({},ln),Lt),pn=(0,Ke.Z)(cn),Zn=pn==="small"||!!(on&&!pn&&Yt),xn=An("select",vt),La=De()({[`${Nn}-mini`]:Zn,[`${Nn}-rtl`]:Zt==="rtl"},wt==null?void 0:wt.className,Ye,_e,Wn),Wa=Object.assign(Object.assign({},wt==null?void 0:wt.style),Et);return zn(se.createElement(Le,Object.assign({},xa,bt,{style:Wa,prefixCls:Nn,selectPrefixCls:xn,className:La,selectComponentClass:qt||(Zn?jt:Xt),locale:en,showSizeChanger:Yn})))},At=tt},39722:function(_t,Ot,ae){"use strict";ae.d(Ot,{t5:function(){return Te}});var b=ae(92310),se=ae.n(b),be=ae(55477),Ae=ae(59301),Ie=ae(36355),Oe=ae(77578),ue=ae(17356),ke=function(Ze,De){var le={};for(var E in Ze)Object.prototype.hasOwnProperty.call(Ze,E)&&De.indexOf(E)<0&&(le[E]=Ze[E]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(Ze);a<E.length;a++)De.indexOf(E[a])<0&&Object.prototype.propertyIsEnumerable.call(Ze,E[a])&&(le[E[a]]=Ze[E[a]]);return le};const We=(Ze,De,le)=>{if(!(!De&&!le))return Ae.createElement(Ae.Fragment,null,De&&Ae.createElement("div",{className:`${Ze}-title`},(0,Oe.Z)(De)),Ae.createElement("div",{className:`${Ze}-inner-content`},(0,Oe.Z)(le)))},Te=Ze=>{const{hashId:De,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:te}=Ze;return Ae.createElement("div",{className:se()(De,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Ae.createElement("div",{className:`${le}-arrow`}),Ae.createElement(be.G,Object.assign({},Ze,{className:De,prefixCls:le}),te||We(le,y,z)))},He=Ze=>{const{prefixCls:De}=Ze,le=ke(Ze,["prefixCls"]),{getPrefixCls:E}=Ae.useContext(Ie.E_),a=E("popover",De),[x,y]=(0,ue.Z)(a);return x(Ae.createElement(Te,Object.assign({},le,{prefixCls:a,hashId:y})))};Ot.ZP=He},60324:function(_t,Ot,ae){"use strict";var b=ae(92310),se=ae.n(b),be=ae(59301),Ae=ae(77578),Ie=ae(62892),Oe=ae(36355),ue=ae(6848),ke=ae(39722),We=ae(17356),Te=function(De,le){var E={};for(var a in De)Object.prototype.hasOwnProperty.call(De,a)&&le.indexOf(a)<0&&(E[a]=De[a]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(De);x<a.length;x++)le.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(De,a[x])&&(E[a[x]]=De[a[x]]);return E};const He=De=>{let{title:le,content:E,prefixCls:a}=De;return be.createElement(be.Fragment,null,le&&be.createElement("div",{className:`${a}-title`},(0,Ae.Z)(le)),be.createElement("div",{className:`${a}-inner-content`},(0,Ae.Z)(E)))},Ze=be.forwardRef((De,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:te="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ce={}}=De,pe=Te(De,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:ge}=be.useContext(Oe.E_),Ee=ge("popover",E),[ye,Re]=(0,We.Z)(Ee),he=ge(),qe=se()(y,Re);return ye(be.createElement(ue.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ce},pe,{prefixCls:Ee,overlayClassName:qe,ref:le,overlay:a||x?be.createElement(He,{prefixCls:Ee,title:a,content:x}):null,transitionName:(0,Ie.m)(he,"zoom-big",pe.transitionName),"data-popover-inject":!0})))});Ze._InternalPanelDoNotUseOrYouWillBeFired=ke.ZP,Ot.Z=Ze},17356:function(_t,Ot,ae){"use strict";var b=ae(17313),se=ae(29878),be=ae(19447),Ae=ae(33166),Ie=ae(83116),Oe=ae(37613);const ue=Te=>{const{componentCls:He,popoverColor:Ze,minWidth:De,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:te,colorBgElevated:re,popoverBg:ie}=Te;return[{[He]:Object.assign(Object.assign({},(0,b.Wf)(Te)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${He}-content`]:{position:"relative"},[`${He}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${He}-title`]:{minWidth:De,marginBottom:te,color:x,fontWeight:le},[`${He}-inner-content`]:{color:Ze}})},(0,be.ZP)(Te,{colorBg:"var(--antd-arrow-background-color)"}),{[`${He}-pure`]:{position:"relative",maxWidth:"none",margin:Te.sizePopupArrow,display:"inline-block",[`${He}-content`]:{display:"inline-block"}}}]},ke=Te=>{const{componentCls:He}=Te;return{[He]:Ae.i.map(Ze=>{const De=Te[`${Ze}6`];return{[`&${He}-${Ze}`]:{"--antd-arrow-background-color":De,[`${He}-inner`]:{backgroundColor:De},[`${He}-arrow`]:{background:"transparent"}}}})}},We=Te=>{const{componentCls:He,lineWidth:Ze,lineType:De,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=Te,te=a-Math.round(x*y),re=te/2,ie=te/2-Ze,ce=z;return{[He]:{[`${He}-inner`]:{padding:0},[`${He}-title`]:{margin:0,padding:`${re}px ${ce}px ${ie}px`,borderBottom:`${Ze}px ${De} ${le}`},[`${He}-inner-content`]:{padding:`${E}px ${ce}px`}}}};Ot.Z=(0,Ie.Z)("Popover",Te=>{const{colorBgElevated:He,colorText:Ze,wireframe:De}=Te,le=(0,Oe.TS)(Te,{popoverPadding:12,popoverBg:He,popoverColor:Ze});return[ue(le),ke(le),De&&We(le),(0,se._y)(le,"zoom-big")]},Te=>({width:177,minWidth:177,zIndexPopup:Te.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Wt}});var b=ae(16378),se=ae(59301),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ae=be,Ie=ae(7657),Oe=function(jt,Xt){return se.createElement(Ie.Z,(0,b.Z)({},jt,{ref:Xt,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue,We=ae(92310),Te=ae.n(We),He=ae(78772),Ze=ae(10859),De=ae(61206),le=ae(18929),E=ae(10228),a=ae(26112);function x(it,jt){var Xt=it.disabled,Qe=it.prefixCls,ft=it.character,Dt=it.characterRender,rn=it.index,Pt=it.count,Jt=it.value,Be=it.allowHalf,Ut=it.focused,En=it.onHover,Ct=it.onClick,It=function(Ce){En(Ce,rn)},et=function(Ce){Ct(Ce,rn)},Ue=function(Ce){Ce.keyCode===E.Z.ENTER&&Ct(Ce,rn)},Fe=rn+1,ve=new Set([Qe]);Jt===0&&rn===0&&Ut?ve.add("".concat(Qe,"-focused")):Be&&Jt+.5>=Fe&&Jt<Fe?(ve.add("".concat(Qe,"-half")),ve.add("".concat(Qe,"-active")),Ut&&ve.add("".concat(Qe,"-focused"))):(Fe<=Jt?ve.add("".concat(Qe,"-full")):ve.add("".concat(Qe,"-zero")),Fe===Jt&&Ut&&ve.add("".concat(Qe,"-focused")));var tt=typeof ft=="function"?ft(it):ft,At=se.createElement("li",{className:Te()(Array.from(ve)),ref:jt},se.createElement("div",{onClick:Xt?null:et,onKeyDown:Xt?null:Ue,onMouseMove:Xt?null:It,role:"radio","aria-checked":Jt>rn?"true":"false","aria-posinset":rn+1,"aria-setsize":Pt,tabIndex:Xt?-1:0},se.createElement("div",{className:"".concat(Qe,"-first")},tt),se.createElement("div",{className:"".concat(Qe,"-second")},tt)));return Dt&&(At=Dt(At,it)),At}var y=se.forwardRef(x);function z(){var it=se.useRef({});function jt(Qe){return it.current[Qe]}function Xt(Qe){return function(ft){it.current[Qe]=ft}}return[jt,Xt]}function te(it){var jt=it.pageXOffset,Xt="scrollLeft";if(typeof jt!="number"){var Qe=it.document;jt=Qe.documentElement[Xt],typeof jt!="number"&&(jt=Qe.body[Xt])}return jt}function re(it){var jt,Xt,Qe=it.ownerDocument,ft=Qe.body,Dt=Qe&&Qe.documentElement,rn=it.getBoundingClientRect();return jt=rn.left,Xt=rn.top,jt-=Dt.clientLeft||ft.clientLeft||0,Xt-=Dt.clientTop||ft.clientTop||0,{left:jt,top:Xt}}function ie(it){var jt=re(it),Xt=it.ownerDocument,Qe=Xt.defaultView||Xt.parentWindow;return jt.left+=te(Qe),jt.left}var ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function pe(it,jt){var Xt,Qe=it.prefixCls,ft=Qe===void 0?"rc-rate":Qe,Dt=it.className,rn=it.defaultValue,Pt=it.value,Jt=it.count,Be=Jt===void 0?5:Jt,Ut=it.allowHalf,En=Ut===void 0?!1:Ut,Ct=it.allowClear,It=Ct===void 0?!0:Ct,et=it.character,Ue=et===void 0?"\u2605":et,Fe=it.characterRender,ve=it.disabled,tt=it.direction,At=tt===void 0?"ltr":tt,we=it.tabIndex,Ce=we===void 0?0:we,vt=it.autoFocus,Ye=it.onHoverChange,_e=it.onChange,Et=it.onFocus,cn=it.onBlur,Lt=it.onKeyDown,qt=it.onMouseLeave,Yt=(0,De.Z)(it,ce),nn=z(),bt=(0,Ze.Z)(nn,2),on=bt[0],An=bt[1],Zt=se.useRef(null),wt=function(){if(!ve){var an;(an=Zt.current)===null||an===void 0||an.focus()}};se.useImperativeHandle(jt,function(){return{focus:wt,blur:function(){if(!ve){var an;(an=Zt.current)===null||an===void 0||an.blur()}}}});var Nn=(0,le.Z)(rn||0,{value:Pt}),zn=(0,Ze.Z)(Nn,2),Wn=zn[0],Yn=zn[1],xa=(0,le.Z)(null),ln=(0,Ze.Z)(xa,2),en=ln[0],pn=ln[1],Zn=function(an,kn){var Fn=At==="rtl",Bn=an+1;if(En){var Un=on(an),Ra=ie(Un),bn=Un.clientWidth;(Fn&&kn-Ra>bn/2||!Fn&&kn-Ra<bn/2)&&(Bn-=.5)}return Bn},xn=function(an){Yn(an),_e==null||_e(an)},La=se.useState(!1),Wa=(0,Ze.Z)(La,2),ta=Wa[0],yn=Wa[1],Oa=function(){yn(!0),Et==null||Et()},Ve=function(){yn(!1),cn==null||cn()},Ft=se.useState(null),Ht=(0,Ze.Z)(Ft,2),Vt=Ht[0],tn=Ht[1],Sn=function(an,kn){var Fn=Zn(kn,an.pageX);Fn!==en&&(tn(Fn),pn(null)),Ye==null||Ye(Fn)},mn=function(an){ve||(tn(null),pn(null),Ye==null||Ye(void 0)),an&&(qt==null||qt(an))},lt=function(an,kn){var Fn=Zn(kn,an.pageX),Bn=!1;It&&(Bn=Fn===Wn),mn(),xn(Bn?0:Fn),pn(Bn?Fn:null)},pt=function(an){var kn=an.keyCode,Fn=At==="rtl",Bn=Wn;kn===E.Z.RIGHT&&Bn<Be&&!Fn?(En?Bn+=.5:Bn+=1,xn(Bn),an.preventDefault()):kn===E.Z.LEFT&&Bn>0&&!Fn||kn===E.Z.RIGHT&&Bn>0&&Fn?(En?Bn-=.5:Bn-=1,xn(Bn),an.preventDefault()):kn===E.Z.LEFT&&Bn<Be&&Fn&&(En?Bn+=.5:Bn+=1,xn(Bn),an.preventDefault()),Lt==null||Lt(an)};se.useEffect(function(){vt&&!ve&&wt()},[]);var ct=new Array(Be).fill(0).map(function(vn,an){return se.createElement(y,{ref:An(an),index:an,count:Be,disabled:ve,prefixCls:"".concat(ft,"-star"),allowHalf:En,value:Vt===null?Wn:Vt,onClick:lt,onHover:Sn,key:vn||an,character:Ue,characterRender:Fe,focused:ta})}),Kt=Te()(ft,Dt,(Xt={},(0,He.Z)(Xt,"".concat(ft,"-disabled"),ve),(0,He.Z)(Xt,"".concat(ft,"-rtl"),At==="rtl"),Xt));return se.createElement("ul",(0,b.Z)({className:Kt,onMouseLeave:mn,tabIndex:ve?-1:Ce,onFocus:ve?null:Oa,onBlur:ve?null:Ve,onKeyDown:ve?null:pt,ref:Zt,role:"radiogroup"},(0,a.Z)(Yt,{aria:!0,data:!0,attr:!0})),ct)}var ge=se.forwardRef(pe),Ee=ge,ye=ae(36355),Re=ae(6848),he=ae(17313),qe=ae(83116),je=ae(37613);const ot=it=>{const{componentCls:jt}=it;return{[`${jt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:it.marginXS},"> div":{transition:`all ${it.motionDurationMid}, outline 0s`,"&:hover":{transform:it.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${it.lineWidth}px dashed ${it.starColor}`,transform:it.starHoverScale}},"&-first, &-second":{color:it.starBg,transition:`all ${it.motionDurationMid}`,userSelect:"none",[it.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${jt}-star-first, &-half ${jt}-star-second`]:{opacity:1},[`&-half ${jt}-star-first, &-full ${jt}-star-second`]:{color:"inherit"}}}},Le=it=>({[`&-rtl${it.componentCls}`]:{direction:"rtl"}}),Je=it=>{const{componentCls:jt}=it;return{[jt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(it)),{display:"inline-block",margin:0,padding:0,color:it.starColor,fontSize:it.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${jt} ${jt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ot(it)),{[`+ ${jt}-text`]:{display:"inline-block",marginInlineStart:it.marginXS,fontSize:it.fontSize}}),Le(it))}};var st=(0,qe.Z)("Rate",it=>{const jt=(0,je.TS)(it,{});return[Je(jt)]},it=>({starColor:it.yellow6,starSize:it.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:it.colorFillContent})),Ke=function(it,jt){var Xt={};for(var Qe in it)Object.prototype.hasOwnProperty.call(it,Qe)&&jt.indexOf(Qe)<0&&(Xt[Qe]=it[Qe]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Qe=Object.getOwnPropertySymbols(it);ft<Qe.length;ft++)jt.indexOf(Qe[ft])<0&&Object.prototype.propertyIsEnumerable.call(it,Qe[ft])&&(Xt[Qe[ft]]=it[Qe[ft]]);return Xt},Wt=se.forwardRef((it,jt)=>{const{prefixCls:Xt,className:Qe,rootClassName:ft,style:Dt,tooltips:rn,character:Pt=se.createElement(ke,null)}=it,Jt=Ke(it,["prefixCls","className","rootClassName","style","tooltips","character"]),Be=(ve,tt)=>{let{index:At}=tt;return rn?se.createElement(Re.Z,{title:rn[At]},ve):ve},{getPrefixCls:Ut,direction:En,rate:Ct}=se.useContext(ye.E_),It=Ut("rate",Xt),[et,Ue]=st(It),Fe=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Dt);return et(se.createElement(Ee,Object.assign({ref:jt,character:Pt,characterRender:Be},Jt,{className:Te()(Qe,ft,Ue,Ct==null?void 0:Ct.className),style:Fe,prefixCls:It,direction:En})))})},61621:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return Ue}});var b=ae(92310),se=ae.n(b),be=ae(59301),Ae=ae(36355),Ie=ae(2738),ue=Fe=>{const{prefixCls:ve,className:tt,style:At,size:we,shape:Ce}=Fe,vt=se()({[`${ve}-lg`]:we==="large",[`${ve}-sm`]:we==="small"}),Ye=se()({[`${ve}-circle`]:Ce==="circle",[`${ve}-square`]:Ce==="square",[`${ve}-round`]:Ce==="round"}),_e=be.useMemo(()=>typeof we=="number"?{width:we,height:we,lineHeight:`${we}px`}:{},[we]);return be.createElement("span",{className:se()(ve,vt,Ye,tt),style:Object.assign(Object.assign({},_e),At)})},ke=ae(93083),We=ae(83116),Te=ae(37613);const He=new ke.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ze=Fe=>({height:Fe,lineHeight:`${Fe}px`}),De=Fe=>Object.assign({width:Fe},Ze(Fe)),le=Fe=>({background:Fe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:He,animationDuration:Fe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=Fe=>Object.assign({width:Fe*5,minWidth:Fe*5},Ze(Fe)),a=Fe=>{const{skeletonAvatarCls:ve,gradientFromColor:tt,controlHeight:At,controlHeightLG:we,controlHeightSM:Ce}=Fe;return{[`${ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:tt},De(At)),[`${ve}${ve}-circle`]:{borderRadius:"50%"},[`${ve}${ve}-lg`]:Object.assign({},De(we)),[`${ve}${ve}-sm`]:Object.assign({},De(Ce))}},x=Fe=>{const{controlHeight:ve,borderRadiusSM:tt,skeletonInputCls:At,controlHeightLG:we,controlHeightSM:Ce,gradientFromColor:vt}=Fe;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:tt},E(ve)),[`${At}-lg`]:Object.assign({},E(we)),[`${At}-sm`]:Object.assign({},E(Ce))}},y=Fe=>Object.assign({width:Fe},Ze(Fe)),z=Fe=>{const{skeletonImageCls:ve,imageSizeBase:tt,gradientFromColor:At,borderRadiusSM:we}=Fe;return{[`${ve}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:At,borderRadius:we},y(tt*2)),{[`${ve}-path`]:{fill:"#bfbfbf"},[`${ve}-svg`]:Object.assign(Object.assign({},y(tt)),{maxWidth:tt*4,maxHeight:tt*4}),[`${ve}-svg${ve}-svg-circle`]:{borderRadius:"50%"}}),[`${ve}${ve}-circle`]:{borderRadius:"50%"}}},te=(Fe,ve,tt)=>{const{skeletonButtonCls:At}=Fe;return{[`${tt}${At}-circle`]:{width:ve,minWidth:ve,borderRadius:"50%"},[`${tt}${At}-round`]:{borderRadius:ve}}},re=Fe=>Object.assign({width:Fe*2,minWidth:Fe*2},Ze(Fe)),ie=Fe=>{const{borderRadiusSM:ve,skeletonButtonCls:tt,controlHeight:At,controlHeightLG:we,controlHeightSM:Ce,gradientFromColor:vt}=Fe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${tt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:ve,width:At*2,minWidth:At*2},re(At))},te(Fe,At,tt)),{[`${tt}-lg`]:Object.assign({},re(we))}),te(Fe,we,`${tt}-lg`)),{[`${tt}-sm`]:Object.assign({},re(Ce))}),te(Fe,Ce,`${tt}-sm`))},ce=Fe=>{const{componentCls:ve,skeletonAvatarCls:tt,skeletonTitleCls:At,skeletonParagraphCls:we,skeletonButtonCls:Ce,skeletonInputCls:vt,skeletonImageCls:Ye,controlHeight:_e,controlHeightLG:Et,controlHeightSM:cn,gradientFromColor:Lt,padding:qt,marginSM:Yt,borderRadius:nn,titleHeight:bt,blockRadius:on,paragraphLiHeight:An,controlHeightXS:Zt,paragraphMarginTop:wt}=Fe;return{[`${ve}`]:{display:"table",width:"100%",[`${ve}-header`]:{display:"table-cell",paddingInlineEnd:qt,verticalAlign:"top",[`${tt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt},De(_e)),[`${tt}-circle`]:{borderRadius:"50%"},[`${tt}-lg`]:Object.assign({},De(Et)),[`${tt}-sm`]:Object.assign({},De(cn))},[`${ve}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${At}`]:{width:"100%",height:bt,background:Lt,borderRadius:on,[`+ ${we}`]:{marginBlockStart:cn}},[`${we}`]:{padding:0,"> li":{width:"100%",height:An,listStyle:"none",background:Lt,borderRadius:on,"+ li":{marginBlockStart:Zt}}},[`${we}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ve}-content`]:{[`${At}, ${we} > li`]:{borderRadius:nn}}},[`${ve}-with-avatar ${ve}-content`]:{[`${At}`]:{marginBlockStart:Yt,[`+ ${we}`]:{marginBlockStart:wt}}},[`${ve}${ve}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(Fe)),a(Fe)),x(Fe)),z(Fe)),[`${ve}${ve}-block`]:{width:"100%",[`${Ce}`]:{width:"100%"},[`${vt}`]:{width:"100%"}},[`${ve}${ve}-active`]:{[`
${At},
${we} > li,
${tt},
${Ce},
${vt},
${Ye}
`]:Object.assign({},le(Fe))}}};var pe=(0,We.Z)("Skeleton",Fe=>{const{componentCls:ve}=Fe,tt=(0,Te.TS)(Fe,{skeletonAvatarCls:`${ve}-avatar`,skeletonTitleCls:`${ve}-title`,skeletonParagraphCls:`${ve}-paragraph`,skeletonButtonCls:`${ve}-button`,skeletonInputCls:`${ve}-input`,skeletonImageCls:`${ve}-image`,imageSizeBase:Fe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Fe.gradientFromColor} 25%, ${Fe.gradientToColor} 37%, ${Fe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(tt)]},Fe=>{const{colorFillContent:ve,colorFill:tt}=Fe,At=ve,we=tt;return{color:At,colorGradientEnd:we,gradientFromColor:At,gradientToColor:we,titleHeight:Fe.controlHeight/2,blockRadius:Fe.borderRadiusSM,paragraphMarginTop:Fe.marginLG+Fe.marginXXS,paragraphLiHeight:Fe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ee=Fe=>{const{prefixCls:ve,className:tt,rootClassName:At,active:we,shape:Ce="circle",size:vt="default"}=Fe,{getPrefixCls:Ye}=be.useContext(Ae.E_),_e=Ye("skeleton",ve),[Et,cn]=pe(_e),Lt=(0,Ie.Z)(Fe,["prefixCls","className"]),qt=se()(_e,`${_e}-element`,{[`${_e}-active`]:we},tt,At,cn);return Et(be.createElement("div",{className:qt},be.createElement(ue,Object.assign({prefixCls:`${_e}-avatar`,shape:Ce,size:vt},Lt))))},Re=Fe=>{const{prefixCls:ve,className:tt,rootClassName:At,active:we,block:Ce=!1,size:vt="default"}=Fe,{getPrefixCls:Ye}=be.useContext(Ae.E_),_e=Ye("skeleton",ve),[Et,cn]=pe(_e),Lt=(0,Ie.Z)(Fe,["prefixCls"]),qt=se()(_e,`${_e}-element`,{[`${_e}-active`]:we,[`${_e}-block`]:Ce},tt,At,cn);return Et(be.createElement("div",{className:qt},be.createElement(ue,Object.assign({prefixCls:`${_e}-button`,size:vt},Lt))))};const he="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var je=Fe=>{const{prefixCls:ve,className:tt,rootClassName:At,style:we,active:Ce}=Fe,{getPrefixCls:vt}=be.useContext(Ae.E_),Ye=vt("skeleton",ve),[_e,Et]=pe(Ye),cn=se()(Ye,`${Ye}-element`,{[`${Ye}-active`]:Ce},tt,At,Et);return _e(be.createElement("div",{className:cn},be.createElement("div",{className:se()(`${Ye}-image`,tt),style:we},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ye}-image-svg`},be.createElement("path",{d:he,className:`${Ye}-image-path`})))))},Le=Fe=>{const{prefixCls:ve,className:tt,rootClassName:At,active:we,block:Ce,size:vt="default"}=Fe,{getPrefixCls:Ye}=be.useContext(Ae.E_),_e=Ye("skeleton",ve),[Et,cn]=pe(_e),Lt=(0,Ie.Z)(Fe,["prefixCls"]),qt=se()(_e,`${_e}-element`,{[`${_e}-active`]:we,[`${_e}-block`]:Ce},tt,At,cn);return Et(be.createElement("div",{className:qt},be.createElement(ue,Object.assign({prefixCls:`${_e}-input`,size:vt},Lt))))},Je=ae(16378),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ke=st,$e=ae(7657),Wt=function(ve,tt){return be.createElement($e.Z,(0,Je.Z)({},ve,{ref:tt,icon:Ke}))},it=be.forwardRef(Wt),jt=it,Qe=Fe=>{const{prefixCls:ve,className:tt,rootClassName:At,style:we,active:Ce,children:vt}=Fe,{getPrefixCls:Ye}=be.useContext(Ae.E_),_e=Ye("skeleton",ve),[Et,cn]=pe(_e),Lt=se()(_e,`${_e}-element`,{[`${_e}-active`]:Ce},cn,tt,At),qt=vt!=null?vt:be.createElement(jt,null);return Et(be.createElement("div",{className:Lt},be.createElement("div",{className:se()(`${_e}-image`,tt),style:we},qt)))},ft=ae(65093),rn=Fe=>{const ve=Ye=>{const{width:_e,rows:Et=2}=Fe;if(Array.isArray(_e))return _e[Ye];if(Et-1===Ye)return _e},{prefixCls:tt,className:At,style:we,rows:Ce}=Fe,vt=(0,ft.Z)(Array(Ce)).map((Ye,_e)=>be.createElement("li",{key:_e,style:{width:ve(_e)}}));return be.createElement("ul",{className:se()(tt,At),style:we},vt)},Jt=Fe=>{let{prefixCls:ve,className:tt,width:At,style:we}=Fe;return be.createElement("h3",{className:se()(ve,tt),style:Object.assign({width:At},we)})};function Be(Fe){return Fe&&typeof Fe=="object"?Fe:{}}function Ut(Fe,ve){return Fe&&!ve?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function En(Fe,ve){return!Fe&&ve?{width:"38%"}:Fe&&ve?{width:"50%"}:{}}function Ct(Fe,ve){const tt={};return(!Fe||!ve)&&(tt.width="61%"),!Fe&&ve?tt.rows=3:tt.rows=2,tt}const It=Fe=>{const{prefixCls:ve,loading:tt,className:At,rootClassName:we,style:Ce,children:vt,avatar:Ye=!1,title:_e=!0,paragraph:Et=!0,active:cn,round:Lt}=Fe,{getPrefixCls:qt,direction:Yt,skeleton:nn}=be.useContext(Ae.E_),bt=qt("skeleton",ve),[on,An]=pe(bt);if(tt||!("loading"in Fe)){const Zt=!!Ye,wt=!!_e,Nn=!!Et;let zn;if(Zt){const xa=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},Ut(wt,Nn)),Be(Ye));zn=be.createElement("div",{className:`${bt}-header`},be.createElement(ue,Object.assign({},xa)))}let Wn;if(wt||Nn){let xa;if(wt){const en=Object.assign(Object.assign({prefixCls:`${bt}-title`},En(Zt,Nn)),Be(_e));xa=be.createElement(Jt,Object.assign({},en))}let ln;if(Nn){const en=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},Ct(Zt,wt)),Be(Et));ln=be.createElement(rn,Object.assign({},en))}Wn=be.createElement("div",{className:`${bt}-content`},xa,ln)}const Yn=se()(bt,{[`${bt}-with-avatar`]:Zt,[`${bt}-active`]:cn,[`${bt}-rtl`]:Yt==="rtl",[`${bt}-round`]:Lt},nn==null?void 0:nn.className,At,we,An);return on(be.createElement("div",{className:Yn,style:Object.assign(Object.assign({},nn==null?void 0:nn.style),Ce)},zn,Wn))}return typeof vt!="undefined"?vt:null};It.Button=Re,It.Avatar=Ee,It.Input=Le,It.Image=je,It.Node=Qe;var et=It,Ue=et},81327:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return x}});var b=ae(59301),se=ae(92310),be=ae.n(se),Ae=ae(11592),Ie=ae(36355),Oe=ae(33234);const ue=b.createContext({latestIndex:0}),ke=ue.Provider;var Te=y=>{let{className:z,index:te,children:re,split:ie,style:ce}=y;const{latestIndex:pe}=b.useContext(ue);return re==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:z,style:ce},re),te<pe&&ie&&b.createElement("span",{className:`${z}-split`},ie))},He=ae(2856);function Ze(y){return["small","middle","large"].includes(y)}function De(y){return y?typeof y=="number"&&!Number.isNaN(y):!1}var le=function(y,z){var te={};for(var re in y)Object.prototype.hasOwnProperty.call(y,re)&&z.indexOf(re)<0&&(te[re]=y[re]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,re=Object.getOwnPropertySymbols(y);ie<re.length;ie++)z.indexOf(re[ie])<0&&Object.prototype.propertyIsEnumerable.call(y,re[ie])&&(te[re[ie]]=y[re[ie]]);return te};const a=b.forwardRef((y,z)=>{var te,re;const{getPrefixCls:ie,space:ce,direction:pe}=b.useContext(Ie.E_),{size:ge=(ce==null?void 0:ce.size)||"small",align:Ee,className:ye,rootClassName:Re,children:he,direction:qe="horizontal",prefixCls:je,split:ot,style:Le,wrap:Je=!1,classNames:st,styles:Ke}=y,$e=le(y,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Wt,it]=Array.isArray(ge)?ge:[ge,ge],jt=Ze(it),Xt=Ze(Wt),Qe=De(it),ft=De(Wt),Dt=(0,Ae.Z)(he,{keepEmpty:!0}),rn=Ee===void 0&&qe==="horizontal"?"center":Ee,Pt=ie("space",je),[Jt,Be]=(0,He.Z)(Pt),Ut=be()(Pt,ce==null?void 0:ce.className,Be,`${Pt}-${qe}`,{[`${Pt}-rtl`]:pe==="rtl",[`${Pt}-align-${rn}`]:rn,[`${Pt}-gap-row-${it}`]:jt,[`${Pt}-gap-col-${Wt}`]:Xt},ye,Re),En=be()(`${Pt}-item`,(te=st==null?void 0:st.item)!==null&&te!==void 0?te:(re=ce==null?void 0:ce.classNames)===null||re===void 0?void 0:re.item);let Ct=0;const It=Dt.map((Fe,ve)=>{var tt,At;Fe!=null&&(Ct=ve);const we=Fe&&Fe.key||`${En}-${ve}`;return b.createElement(Te,{className:En,key:we,index:ve,split:ot,style:(tt=Ke==null?void 0:Ke.item)!==null&&tt!==void 0?tt:(At=ce==null?void 0:ce.styles)===null||At===void 0?void 0:At.item},Fe)}),et=b.useMemo(()=>({latestIndex:Ct}),[Ct]);if(Dt.length===0)return null;const Ue={};return Je&&(Ue.flexWrap="wrap"),!Xt&&ft&&(Ue.columnGap=Wt),!jt&&Qe&&(Ue.rowGap=it),Jt(b.createElement("div",Object.assign({ref:z,className:Ut,style:Object.assign(Object.assign(Object.assign({},Ue),ce==null?void 0:ce.style),Le)},$e),b.createElement(ke,{value:et},It)))});a.Compact=Oe.ZP;var x=a},31797:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return pe}});var b=ae(59301),se=ae(56762),be=ae(92343),Ae=ae(92310),Ie=ae.n(Ae),Oe=ae(36355),ue=ae(61621),We=ge=>{const{value:Ee,formatter:ye,precision:Re,decimalSeparator:he,groupSeparator:qe="",prefixCls:je}=ge;let ot;if(typeof ye=="function")ot=ye(Ee);else{const Le=String(Ee),Je=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Je||Le==="-")ot=Le;else{const st=Je[1];let Ke=Je[2]||"0",$e=Je[4]||"";Ke=Ke.replace(/\B(?=(\d{3})+(?!\d))/g,qe),typeof Re=="number"&&($e=$e.padEnd(Re,"0").slice(0,Re>0?Re:0)),$e&&($e=`${he}${$e}`),ot=[b.createElement("span",{key:"int",className:`${je}-content-value-int`},st,Ke),$e&&b.createElement("span",{key:"decimal",className:`${je}-content-value-decimal`},$e)]}}return b.createElement("span",{className:`${je}-content-value`},ot)},Te=ae(17313),He=ae(83116),Ze=ae(37613);const De=ge=>{const{componentCls:Ee,marginXXS:ye,padding:Re,colorTextDescription:he,titleFontSize:qe,colorTextHeading:je,contentFontSize:ot,fontFamily:Le}=ge;return{[`${Ee}`]:Object.assign(Object.assign({},(0,Te.Wf)(ge)),{[`${Ee}-title`]:{marginBottom:ye,color:he,fontSize:qe},[`${Ee}-skeleton`]:{paddingTop:Re},[`${Ee}-content`]:{color:je,fontSize:ot,fontFamily:Le,[`${Ee}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ee}-content-prefix, ${Ee}-content-suffix`]:{display:"inline-block"},[`${Ee}-content-prefix`]:{marginInlineEnd:ye},[`${Ee}-content-suffix`]:{marginInlineStart:ye}}})}};var le=(0,He.Z)("Statistic",ge=>{const Ee=(0,Ze.TS)(ge,{});return[De(Ee)]},ge=>{const{fontSizeHeading3:Ee,fontSize:ye}=ge;return{titleFontSize:ye,contentFontSize:Ee}}),a=ge=>{const{prefixCls:Ee,className:ye,rootClassName:Re,style:he,valueStyle:qe,value:je=0,title:ot,valueRender:Le,prefix:Je,suffix:st,loading:Ke=!1,onMouseEnter:$e,onMouseLeave:Wt,decimalSeparator:it=".",groupSeparator:jt=","}=ge,{getPrefixCls:Xt,direction:Qe,statistic:ft}=b.useContext(Oe.E_),Dt=Xt("statistic",Ee),[rn,Pt]=le(Dt),Jt=b.createElement(We,Object.assign({decimalSeparator:it,groupSeparator:jt,prefixCls:Dt},ge,{value:je})),Be=Ie()(Dt,{[`${Dt}-rtl`]:Qe==="rtl"},ft==null?void 0:ft.className,ye,Re,Pt);return rn(b.createElement("div",{className:Be,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),he),onMouseEnter:$e,onMouseLeave:Wt},ot&&b.createElement("div",{className:`${Dt}-title`},ot),b.createElement(ue.Z,{paragraph:!1,loading:Ke,className:`${Dt}-skeleton`},b.createElement("div",{style:qe,className:`${Dt}-content`},Je&&b.createElement("span",{className:`${Dt}-content-prefix`},Je),Le?Le(Jt):Jt,st&&b.createElement("span",{className:`${Dt}-content-suffix`},st)))))};const x=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function y(ge,Ee){let ye=ge;const Re=/\[[^\]]*]/g,he=(Ee.match(Re)||[]).map(Le=>Le.slice(1,-1)),qe=Ee.replace(Re,"[]"),je=x.reduce((Le,Je)=>{let[st,Ke]=Je;if(Le.includes(st)){const $e=Math.floor(ye/Ke);return ye-=$e*Ke,Le.replace(new RegExp(`${st}+`,"g"),Wt=>{const it=Wt.length;return $e.toString().padStart(it,"0")})}return Le},qe);let ot=0;return je.replace(Re,()=>{const Le=he[ot];return ot+=1,Le})}function z(ge,Ee){const{format:ye=""}=Ee,Re=new Date(ge).getTime(),he=Date.now(),qe=Math.max(Re-he,0);return y(qe,ye)}const te=1e3/30;function re(ge){return new Date(ge).getTime()}const ie=ge=>{const{value:Ee,format:ye="HH:mm:ss",onChange:Re,onFinish:he}=ge,qe=(0,se.Z)(),je=b.useRef(null),ot=()=>{he==null||he(),je.current&&(clearInterval(je.current),je.current=null)},Le=()=>{const Ke=re(Ee);Ke>=Date.now()&&(je.current=setInterval(()=>{qe(),Re==null||Re(Ke-Date.now()),Ke<Date.now()&&ot()},te))};b.useEffect(()=>(Le(),()=>{je.current&&(clearInterval(je.current),je.current=null)}),[Ee]);const Je=(Ke,$e)=>z(Ke,Object.assign(Object.assign({},$e),{format:ye})),st=Ke=>(0,be.Tm)(Ke,{title:void 0});return b.createElement(a,Object.assign({},ge,{valueRender:st,formatter:Je}))};var ce=b.memo(ie);a.Countdown=ce;var pe=a},15969:function(_t,Ot,ae){"use strict";ae.d(Ot,{N:function(){return b}});const b=se=>({color:se.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${se.motionDurationSlow}`,"&:focus, &:hover":{color:se.colorLinkHover},"&:active":{color:se.colorLinkActive}})},1710:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return br}});var b={},se="rc-table-internal-hook",be=ae(10859),Ae=ae(6089),Ie=ae(34280),Oe=ae(13697),ue=ae(59301),ke=ae(4676);function We(fe){var me=ue.createContext(void 0),Me=function(nt){var Xe=nt.value,Rt=nt.children,Bt=ue.useRef(Xe);Bt.current=Xe;var Mt=ue.useState(function(){return{getValue:function(){return Bt.current},listeners:new Set}}),$t=(0,be.Z)(Mt,1),Tt=$t[0];return(0,Ie.Z)(function(){(0,ke.unstable_batchedUpdates)(function(){Tt.listeners.forEach(function(Qt){Qt(Xe)})})},[Xe]),ue.createElement(me.Provider,{value:Tt},Rt)};return{Context:me,Provider:Me,defaultValue:fe}}function Te(fe,me){var Me=(0,Ae.Z)(typeof me=="function"?me:function(Qt){if(me===void 0)return Qt;if(!Array.isArray(me))return Qt[me];var In={};return me.forEach(function(Cn){In[Cn]=Qt[Cn]}),In}),Ge=ue.useContext(fe==null?void 0:fe.Context),nt=Ge||{},Xe=nt.listeners,Rt=nt.getValue,Bt=ue.useRef();Bt.current=Me(Ge?Rt():fe==null?void 0:fe.defaultValue);var Mt=ue.useState({}),$t=(0,be.Z)(Mt,2),Tt=$t[1];return(0,Ie.Z)(function(){if(!Ge)return;function Qt(In){var Cn=Me(In);(0,Oe.Z)(Bt.current,Cn,!0)||Tt({})}return Xe.add(Qt),function(){Xe.delete(Qt)}},[Ge]),Bt.current}var He=ae(16378),Ze=ae(8654);function De(){var fe=ue.createContext(null);function me(){return ue.useContext(fe)}function Me(nt,Xe){var Rt=(0,Ze.Yr)(nt),Bt=function($t,Tt){var Qt=Rt?{ref:Tt}:{},In=ue.useRef(0),Cn=ue.useRef($t),Rn=me();return Rn!==null?ue.createElement(nt,(0,He.Z)({},$t,Qt)):((!Xe||Xe(Cn.current,$t))&&(In.current+=1),Cn.current=$t,ue.createElement(fe.Provider,{value:In.current},ue.createElement(nt,(0,He.Z)({},$t,Qt))))};return Rt?ue.forwardRef(Bt):Bt}function Ge(nt,Xe){var Rt=(0,Ze.Yr)(nt),Bt=function($t,Tt){var Qt=Rt?{ref:Tt}:{};return me(),ue.createElement(nt,(0,He.Z)({},$t,Qt))};return Rt?ue.memo(ue.forwardRef(Bt),Xe):ue.memo(Bt,Xe)}return{makeImmutable:Me,responseImmutable:Ge,useImmutableMark:me}}var le=De(),E=le.makeImmutable,a=le.responseImmutable,x=le.useImmutableMark,y=De(),z=y.makeImmutable,te=y.responseImmutable,re=y.useImmutableMark,ie=We(),ce=ie;function pe(fe,me){var Me=ue.useRef(0);Me.current+=1;var Ge=ue.useRef(fe),nt=[];Object.keys(fe||{}).map(function(Rt){var Bt;(fe==null?void 0:fe[Rt])!==((Bt=Ge.current)===null||Bt===void 0?void 0:Bt[Rt])&&nt.push(Rt)}),Ge.current=fe;var Xe=ue.useRef([]);return nt.length&&(Xe.current=nt),ue.useDebugValue(Me.current),ue.useDebugValue(Xe.current.join(", ")),me&&console.log("".concat(me,":"),Me.current,Xe.current),Me.current}var ge=null,Ee=ue.memo(function(){var fe=pe();return ue.createElement("h1",null,"Render Times: ",fe)});Ee.displayName="RenderBlock";var ye=ae(42066),Re=ae(35227),he=ae(78772),qe=ae(92310),je=ae.n(qe),ot=ae(80547),Le=ae(97938),Je=ae(48736),st=ue.createContext({renderWithProps:!1}),Ke=st,$e="RC_TABLE_KEY";function Wt(fe){return fe==null?[]:Array.isArray(fe)?fe:[fe]}function it(fe){var me=[],Me={};return fe.forEach(function(Ge){for(var nt=Ge||{},Xe=nt.key,Rt=nt.dataIndex,Bt=Xe||Wt(Rt).join("-")||$e;Me[Bt];)Bt="".concat(Bt,"_next");Me[Bt]=!0,me.push(Bt)}),me}function jt(fe){return fe!=null}function Xt(fe){return fe&&(0,ye.Z)(fe)==="object"&&!Array.isArray(fe)&&!ue.isValidElement(fe)}function Qe(fe,me,Me,Ge,nt,Xe){var Rt=ue.useContext(Ke),Bt=re(),Mt=(0,ot.Z)(function(){if(jt(Ge))return[Ge];var $t=me==null||me===""?[]:Array.isArray(me)?me:[me],Tt=(0,Le.Z)(fe,$t),Qt=Tt,In=void 0;if(nt){var Cn=nt(Tt,fe,Me);Xt(Cn)?(Qt=Cn.children,In=Cn.props,Rt.renderWithProps=!0):Qt=Cn}return[Qt,In]},[Bt,fe,Ge,me,nt,Me],function($t,Tt){if(Xe){var Qt=(0,be.Z)($t,2),In=Qt[1],Cn=(0,be.Z)(Tt,2),Rn=Cn[1];return Xe(Rn,In)}return Rt.renderWithProps?!0:!(0,Oe.Z)($t,Tt,!0)});return Mt}function ft(fe,me,Me,Ge){var nt=fe+me-1;return fe<=Ge&&nt>=Me}function Dt(fe,me){return Te(ce,function(Me){var Ge=ft(fe,me||1,Me.hoverStartRow,Me.hoverEndRow);return[Ge,Me.onHover]})}var rn=function(me){var Me=me.ellipsis,Ge=me.rowType,nt=me.children,Xe,Rt=Me===!0?{showTitle:!0}:Me;return Rt&&(Rt.showTitle||Ge==="header")&&(typeof nt=="string"||typeof nt=="number"?Xe=nt.toString():ue.isValidElement(nt)&&typeof nt.props.children=="string"&&(Xe=nt.props.children)),Xe};function Pt(fe){var me,Me,Ge,nt,Xe,Rt,Bt,Mt,$t=fe.component,Tt=fe.children,Qt=fe.ellipsis,In=fe.scope,Cn=fe.prefixCls,Rn=fe.className,sa=fe.align,qn=fe.record,oa=fe.render,ea=fe.dataIndex,Ca=fe.renderIndex,Ua=fe.shouldCellUpdate,Ja=fe.index,Ma=fe.rowType,gr=fe.colSpan,Sr=fe.rowSpan,wa=fe.fixLeft,Za=fe.fixRight,Da=fe.firstFixLeft,ha=fe.lastFixLeft,Na=fe.firstFixRight,ur=fe.lastFixRight,Ar=fe.appendNode,pr=fe.additionalProps,tr=pr===void 0?{}:pr,wr=fe.isSticky,Zr="".concat(Cn,"-cell"),Io=Te(ce,["supportSticky","allColumnsFixedLeft"]),to=Io.supportSticky,Wo=Io.allColumnsFixedLeft,Ao=Qe(qn,ea,Ca,Tt,oa,Ua),Pr=(0,be.Z)(Ao,2),Vo=Pr[0],$r=Pr[1],To={},Oo=typeof wa=="number"&&to,Fi=typeof Za=="number"&&to;Oo&&(To.position="sticky",To.left=wa),Fi&&(To.position="sticky",To.right=Za);var ir=(me=(Me=(Ge=$r==null?void 0:$r.colSpan)!==null&&Ge!==void 0?Ge:tr.colSpan)!==null&&Me!==void 0?Me:gr)!==null&&me!==void 0?me:1,nr=(nt=(Xe=(Rt=$r==null?void 0:$r.rowSpan)!==null&&Rt!==void 0?Rt:tr.rowSpan)!==null&&Xe!==void 0?Xe:Sr)!==null&&nt!==void 0?nt:1,Xa=Dt(Ja,nr),Ka=(0,be.Z)(Xa,2),ro=Ka[0],Ha=Ka[1],vr=function(ti){var Ai;qn&&Ha(Ja,Ja+nr-1),tr==null||(Ai=tr.onMouseEnter)===null||Ai===void 0||Ai.call(tr,ti)},Qr=function(ti){var Ai;qn&&Ha(-1,-1),tr==null||(Ai=tr.onMouseLeave)===null||Ai===void 0||Ai.call(tr,ti)};if(ir===0||nr===0)return null;var Kr=(Bt=tr.title)!==null&&Bt!==void 0?Bt:rn({rowType:Ma,ellipsis:Qt,children:Vo}),di=je()(Zr,Rn,(Mt={},(0,he.Z)(Mt,"".concat(Zr,"-fix-left"),Oo&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-left-first"),Da&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-left-last"),ha&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-left-all"),ha&&Wo&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-right"),Fi&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-right-first"),Na&&to),(0,he.Z)(Mt,"".concat(Zr,"-fix-right-last"),ur&&to),(0,he.Z)(Mt,"".concat(Zr,"-ellipsis"),Qt),(0,he.Z)(Mt,"".concat(Zr,"-with-append"),Ar),(0,he.Z)(Mt,"".concat(Zr,"-fix-sticky"),(Oo||Fi)&&wr&&to),(0,he.Z)(Mt,"".concat(Zr,"-row-hover"),!$r&&ro),Mt),tr.className,$r==null?void 0:$r.className),ci={};sa&&(ci.textAlign=sa);var Gi=(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},To),tr.style),ci),$r==null?void 0:$r.style),ei=Vo;return(0,ye.Z)(ei)==="object"&&!Array.isArray(ei)&&!ue.isValidElement(ei)&&(ei=null),Qt&&(ha||Na)&&(ei=ue.createElement("span",{className:"".concat(Zr,"-content")},ei)),ue.createElement($t,(0,He.Z)({},$r,tr,{className:di,style:Gi,title:Kr,scope:In,onMouseEnter:vr,onMouseLeave:Qr,colSpan:ir!==1?ir:null,rowSpan:nr!==1?nr:null}),Ar,ei)}var Jt=ue.memo(Pt);function Be(fe,me,Me,Ge,nt,Xe){var Rt=Me[fe]||{},Bt=Me[me]||{},Mt,$t;Rt.fixed==="left"?Mt=Ge.left[nt==="rtl"?me:fe]:Bt.fixed==="right"&&($t=Ge.right[nt==="rtl"?fe:me]);var Tt=!1,Qt=!1,In=!1,Cn=!1,Rn=Me[me+1],sa=Me[fe-1],qn=!(Xe!=null&&Xe.children);if(nt==="rtl"){if(Mt!==void 0){var oa=sa&&sa.fixed==="left";Cn=!oa&&qn}else if($t!==void 0){var ea=Rn&&Rn.fixed==="right";In=!ea&&qn}}else if(Mt!==void 0){var Ca=Rn&&Rn.fixed==="left";Tt=!Ca&&qn}else if($t!==void 0){var Ua=sa&&sa.fixed==="right";Qt=!Ua&&qn}return{fixLeft:Mt,fixRight:$t,lastFixLeft:Tt,firstFixRight:Qt,lastFixRight:In,firstFixLeft:Cn,isSticky:Ge.isSticky}}var Ut=ue.createContext({}),En=Ut;function Ct(fe){var me=fe.className,Me=fe.index,Ge=fe.children,nt=fe.colSpan,Xe=nt===void 0?1:nt,Rt=fe.rowSpan,Bt=fe.align,Mt=Te(ce,["prefixCls","direction"]),$t=Mt.prefixCls,Tt=Mt.direction,Qt=ue.useContext(En),In=Qt.scrollColumnIndex,Cn=Qt.stickyOffsets,Rn=Qt.flattenColumns,sa=Qt.columns,qn=Me+Xe-1,oa=qn+1===In?Xe+1:Xe,ea=Be(Me,Me+oa-1,Rn,Cn,Tt,sa==null?void 0:sa[Me]);return ue.createElement(Jt,(0,He.Z)({className:me,index:Me,component:"td",prefixCls:$t,record:null,dataIndex:null,align:Bt,colSpan:oa,rowSpan:Rt,render:function(){return Ge}},ea))}var It=ae(61206),et=["children"];function Ue(fe){var me=fe.children,Me=(0,It.Z)(fe,et);return ue.createElement("tr",Me,me)}function Fe(fe){var me=fe.children;return me}Fe.Row=Ue,Fe.Cell=Ct;var ve=Fe;function tt(fe){var me=fe.children,Me=fe.stickyOffsets,Ge=fe.flattenColumns,nt=fe.columns,Xe=Te(ce,"prefixCls"),Rt=Ge.length-1,Bt=Ge[Rt],Mt=ue.useMemo(function(){return{stickyOffsets:Me,flattenColumns:Ge,scrollColumnIndex:Bt!=null&&Bt.scrollbar?Rt:null,columns:nt}},[Bt,Ge,Rt,Me,nt]);return ue.createElement(En.Provider,{value:Mt},ue.createElement("tfoot",{className:"".concat(Xe,"-summary")},me))}var At=te(tt),we=ve,Ce=ae(70425),vt=ae(29301),Ye=ae(29194),_e=ae(24514),Et=ae(75152),cn=ae(26112);function Lt(fe,me,Me,Ge,nt,Xe,Rt){fe.push({record:me,indent:Me,index:Rt});var Bt=Xe(me),Mt=nt==null?void 0:nt.has(Bt);if(me&&Array.isArray(me[Ge])&&Mt)for(var $t=0;$t<me[Ge].length;$t+=1)Lt(fe,me[Ge][$t],Me+1,Ge,nt,Xe,$t)}function qt(fe,me,Me,Ge){var nt=ue.useMemo(function(){if(Me!=null&&Me.size){for(var Xe=[],Rt=0;Rt<(fe==null?void 0:fe.length);Rt+=1){var Bt=fe[Rt];Lt(Xe,Bt,0,me,Me,Ge,Rt)}return Xe}return fe==null?void 0:fe.map(function(Mt,$t){return{record:Mt,indent:0,index:$t}})},[fe,me,Me,Ge]);return nt}function Yt(fe){var me=fe.prefixCls,Me=fe.children,Ge=fe.component,nt=fe.cellComponent,Xe=fe.className,Rt=fe.expanded,Bt=fe.colSpan,Mt=fe.isEmpty,$t=Te(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Tt=$t.scrollbarSize,Qt=$t.fixHeader,In=$t.fixColumn,Cn=$t.componentWidth,Rn=$t.horizonScroll,sa=Me;return(Mt?Rn&&Cn:In)&&(sa=ue.createElement("div",{style:{width:Cn-(Qt?Tt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},sa)),ue.createElement(Ge,{className:Xe,style:{display:Rt?null:"none"}},ue.createElement(Jt,{component:nt,prefixCls:me,colSpan:Bt},sa))}var nn=Yt;function bt(fe,me,Me,Ge){var nt=Te(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Xe=nt.flattenColumns,Rt=nt.expandableType,Bt=nt.expandedKeys,Mt=nt.childrenColumnName,$t=nt.onTriggerExpand,Tt=nt.rowExpandable,Qt=nt.onRow,In=nt.expandRowByClick,Cn=nt.rowClassName,Rn=Rt==="nest",sa=Rt==="row"&&(!Tt||Tt(fe)),qn=sa||Rn,oa=Bt&&Bt.has(me),ea=Mt&&fe&&fe[Mt],Ca=(0,Ce.useEvent)($t),Ua=Qt==null?void 0:Qt(fe,Me),Ja=Ua==null?void 0:Ua.onClick,Ma=function(Za){In&&qn&&$t(fe,Za);for(var Da=arguments.length,ha=new Array(Da>1?Da-1:0),Na=1;Na<Da;Na++)ha[Na-1]=arguments[Na];Ja==null||Ja.apply(void 0,[Za].concat(ha))},gr;typeof Cn=="string"?gr=Cn:typeof Cn=="function"&&(gr=Cn(fe,Me,Ge));var Sr=it(Xe);return(0,Re.Z)((0,Re.Z)({},nt),{},{columnsKey:Sr,nestExpandable:Rn,expanded:oa,hasNestChildren:ea,record:fe,onTriggerExpand:Ca,rowSupportExpand:sa,expandable:qn,rowProps:(0,Re.Z)((0,Re.Z)({},Ua),{},{className:je()(gr,Ua==null?void 0:Ua.className),onClick:Ma})})}function on(fe,me,Me,Ge,nt){var Xe=fe.record,Rt=fe.prefixCls,Bt=fe.columnsKey,Mt=fe.fixedInfoList,$t=fe.expandIconColumnIndex,Tt=fe.nestExpandable,Qt=fe.indentSize,In=fe.expandIcon,Cn=fe.expanded,Rn=fe.hasNestChildren,sa=fe.onTriggerExpand,qn=Bt[Me],oa=Mt[Me],ea;Me===($t||0)&&Tt&&(ea=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(Qt*Ge,"px")},className:"".concat(Rt,"-row-indent indent-level-").concat(Ge)}),In({prefixCls:Rt,expanded:Cn,expandable:Rn,record:Xe,onExpand:sa})));var Ca;return me.onCell&&(Ca=me.onCell(Xe,nt)),{key:qn,fixedInfo:oa,appendCellNode:ea,additionalCellProps:Ca||{}}}function An(fe){var me=fe.className,Me=fe.style,Ge=fe.record,nt=fe.index,Xe=fe.renderIndex,Rt=fe.rowKey,Bt=fe.indent,Mt=Bt===void 0?0:Bt,$t=fe.rowComponent,Tt=fe.cellComponent,Qt=fe.scopeCellComponent,In=bt(Ge,Rt,nt,Mt),Cn=In.prefixCls,Rn=In.flattenColumns,sa=In.expandedRowClassName,qn=In.expandedRowRender,oa=In.rowProps,ea=In.expanded,Ca=In.rowSupportExpand,Ua=ue.useState(!1),Ja=(0,be.Z)(Ua,2),Ma=Ja[0],gr=Ja[1];ue.useEffect(function(){ea&&gr(!0)},[ea]);var Sr=ue.createElement($t,(0,He.Z)({},oa,{"data-row-key":Rt,className:je()(me,"".concat(Cn,"-row"),"".concat(Cn,"-row-level-").concat(Mt),oa==null?void 0:oa.className),style:(0,Re.Z)((0,Re.Z)({},Me),oa==null?void 0:oa.style)}),Rn.map(function(ha,Na){var ur=ha.render,Ar=ha.dataIndex,pr=ha.className,tr=on(In,ha,Na,Mt,nt),wr=tr.key,Zr=tr.fixedInfo,Io=tr.appendCellNode,to=tr.additionalCellProps;return ue.createElement(Jt,(0,He.Z)({className:pr,ellipsis:ha.ellipsis,align:ha.align,scope:ha.rowScope,component:ha.rowScope?Qt:Tt,prefixCls:Cn,key:wr,record:Ge,index:nt,renderIndex:Xe,dataIndex:Ar,render:ur,shouldCellUpdate:ha.shouldCellUpdate},Zr,{appendNode:Io,additionalProps:to}))})),wa;if(Ca&&(Ma||ea)){var Za=qn(Ge,nt,Mt+1,ea),Da=sa&&sa(Ge,nt,Mt);wa=ue.createElement(nn,{expanded:ea,className:je()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(Mt+1),Da),prefixCls:Cn,component:$t,cellComponent:Tt,colSpan:Rn.length,isEmpty:!1},Za)}return ue.createElement(ue.Fragment,null,Sr,wa)}An.displayName="BodyRow";var Zt=te(An);function wt(fe){var me=fe.columnKey,Me=fe.onColumnResize,Ge=ue.useRef();return ue.useEffect(function(){Ge.current&&Me(me,Ge.current.offsetWidth)},[]),ue.createElement(vt.Z,{data:me},ue.createElement("td",{ref:Ge,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Nn(fe){var me=fe.prefixCls,Me=fe.columnsKey,Ge=fe.onColumnResize;return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0}},ue.createElement(vt.Z.Collection,{onBatchResize:function(Xe){Xe.forEach(function(Rt){var Bt=Rt.data,Mt=Rt.size;Ge(Bt,Mt.offsetWidth)})}},Me.map(function(nt){return ue.createElement(wt,{key:nt,columnKey:nt,onColumnResize:Ge})})))}function zn(fe){var me=fe.data,Me=fe.measureColumnWidth,Ge=Te(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),nt=Ge.prefixCls,Xe=Ge.getComponent,Rt=Ge.onColumnResize,Bt=Ge.flattenColumns,Mt=Ge.getRowKey,$t=Ge.expandedKeys,Tt=Ge.childrenColumnName,Qt=Ge.emptyNode,In=qt(me,Tt,$t,Mt),Cn=ue.useRef({renderWithProps:!1}),Rn=Xe(["body","wrapper"],"tbody"),sa=Xe(["body","row"],"tr"),qn=Xe(["body","cell"],"td"),oa=Xe(["body","cell"],"th"),ea;me.length?ea=In.map(function(Ua,Ja){var Ma=Ua.record,gr=Ua.indent,Sr=Ua.index,wa=Mt(Ma,Ja);return ue.createElement(Zt,{key:wa,rowKey:wa,record:Ma,index:Ja,renderIndex:Sr,rowComponent:sa,cellComponent:qn,scopeCellComponent:oa,getRowKey:Mt,indent:gr})}):ea=ue.createElement(nn,{expanded:!0,className:"".concat(nt,"-placeholder"),prefixCls:nt,component:sa,cellComponent:qn,colSpan:Bt.length,isEmpty:!0},Qt);var Ca=it(Bt);return ue.createElement(Ke.Provider,{value:Cn.current},ue.createElement(Rn,{className:"".concat(nt,"-tbody")},Me&&ue.createElement(Nn,{prefixCls:nt,columnsKey:Ca,onColumnResize:Rt}),ea))}zn.displayName="Body";var Wn=te(zn),Yn=["expandable"],xa="RC_TABLE_INTERNAL_COL_DEFINE";function ln(fe){var me=fe.expandable,Me=(0,It.Z)(fe,Yn),Ge;return"expandable"in fe?Ge=(0,Re.Z)((0,Re.Z)({},Me),me):Ge=Me,Ge.showExpandColumn===!1&&(Ge.expandIconColumnIndex=-1),Ge}var en=["columnType"];function pn(fe){for(var me=fe.colWidths,Me=fe.columns,Ge=fe.columCount,nt=[],Xe=Ge||Me.length,Rt=!1,Bt=Xe-1;Bt>=0;Bt-=1){var Mt=me[Bt],$t=Me&&Me[Bt],Tt=$t&&$t[xa];if(Mt||Tt||Rt){var Qt=Tt||{},In=Qt.columnType,Cn=(0,It.Z)(Qt,en);nt.unshift(ue.createElement("col",(0,He.Z)({key:Bt,style:{width:Mt}},Cn))),Rt=!0}}return ue.createElement("colgroup",null,nt)}var Zn=pn,xn=ae(65093),La=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Wa(fe,me){return(0,ue.useMemo)(function(){for(var Me=[],Ge=0;Ge<me;Ge+=1){var nt=fe[Ge];if(nt!==void 0)Me[Ge]=nt;else return null}return Me},[fe.join("_"),me])}var ta=ue.forwardRef(function(fe,me){var Me=fe.className,Ge=fe.noData,nt=fe.columns,Xe=fe.flattenColumns,Rt=fe.colWidths,Bt=fe.columCount,Mt=fe.stickyOffsets,$t=fe.direction,Tt=fe.fixHeader,Qt=fe.stickyTopOffset,In=fe.stickyBottomOffset,Cn=fe.stickyClassName,Rn=fe.onScroll,sa=fe.maxContentScroll,qn=fe.children,oa=(0,It.Z)(fe,La),ea=Te(ce,["prefixCls","scrollbarSize","isSticky"]),Ca=ea.prefixCls,Ua=ea.scrollbarSize,Ja=ea.isSticky,Ma=Ja&&!Tt?0:Ua,gr=ue.useRef(null),Sr=ue.useCallback(function(pr){(0,Ze.mH)(me,pr),(0,Ze.mH)(gr,pr)},[]);ue.useEffect(function(){var pr;function tr(wr){var Zr=wr,Io=Zr.currentTarget,to=Zr.deltaX;to&&(Rn({currentTarget:Io,scrollLeft:Io.scrollLeft+to}),wr.preventDefault())}return(pr=gr.current)===null||pr===void 0||pr.addEventListener("wheel",tr),function(){var wr;(wr=gr.current)===null||wr===void 0||wr.removeEventListener("wheel",tr)}},[]);var wa=ue.useMemo(function(){return Xe.every(function(pr){return pr.width})},[Xe]),Za=Xe[Xe.length-1],Da={fixed:Za?Za.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ca,"-cell-scrollbar")}}},ha=(0,ue.useMemo)(function(){return Ma?[].concat((0,xn.Z)(nt),[Da]):nt},[Ma,nt]),Na=(0,ue.useMemo)(function(){return Ma?[].concat((0,xn.Z)(Xe),[Da]):Xe},[Ma,Xe]),ur=(0,ue.useMemo)(function(){var pr=Mt.right,tr=Mt.left;return(0,Re.Z)((0,Re.Z)({},Mt),{},{left:$t==="rtl"?[].concat((0,xn.Z)(tr.map(function(wr){return wr+Ma})),[0]):tr,right:$t==="rtl"?pr:[].concat((0,xn.Z)(pr.map(function(wr){return wr+Ma})),[0]),isSticky:Ja})},[Ma,Mt,Ja]),Ar=Wa(Rt,Bt);return ue.createElement("div",{style:(0,Re.Z)({overflow:"hidden"},Ja?{top:Qt,bottom:In}:{}),ref:Sr,className:je()(Me,(0,he.Z)({},Cn,!!Cn))},ue.createElement("table",{style:{tableLayout:"fixed",visibility:Ge||Ar?null:"hidden"}},(!Ge||!sa||wa)&&ue.createElement(Zn,{colWidths:Ar?[].concat((0,xn.Z)(Ar),[Ma]):[],columCount:Bt+1,columns:Na}),qn((0,Re.Z)((0,Re.Z)({},oa),{},{stickyOffsets:ur,columns:ha,flattenColumns:Na}))))});ta.displayName="FixedHolder";var yn=ue.memo(ta);function Oa(fe){var me=fe.cells,Me=fe.stickyOffsets,Ge=fe.flattenColumns,nt=fe.rowComponent,Xe=fe.cellComponent,Rt=fe.tdCellComponent,Bt=fe.onHeaderRow,Mt=fe.index,$t=Te(ce,["prefixCls","direction"]),Tt=$t.prefixCls,Qt=$t.direction,In;Bt&&(In=Bt(me.map(function(Rn){return Rn.column}),Mt));var Cn=it(me.map(function(Rn){return Rn.column}));return ue.createElement(nt,In,me.map(function(Rn,sa){var qn=Rn.column,oa=Be(Rn.colStart,Rn.colEnd,Ge,Me,Qt,qn),ea;return qn&&qn.onHeaderCell&&(ea=Rn.column.onHeaderCell(qn)),ue.createElement(Jt,(0,He.Z)({},Rn,{scope:qn.title?Rn.colSpan>1?"colgroup":"col":null,ellipsis:qn.ellipsis,align:qn.align,component:qn.title?Xe:Rt,prefixCls:Tt,key:Cn[sa]},oa,{additionalProps:ea,rowType:"header"}))}))}Oa.displayName="HeaderRow";var Ve=Oa;function Ft(fe){var me=[];function Me(Rt,Bt){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[Mt]=me[Mt]||[];var $t=Bt,Tt=Rt.filter(Boolean).map(function(Qt){var In={key:Qt.key,className:Qt.className||"",children:Qt.title,column:Qt,colStart:$t},Cn=1,Rn=Qt.children;return Rn&&Rn.length>0&&(Cn=Me(Rn,$t,Mt+1).reduce(function(sa,qn){return sa+qn},0),In.hasSubColumns=!0),"colSpan"in Qt&&(Cn=Qt.colSpan),"rowSpan"in Qt&&(In.rowSpan=Qt.rowSpan),In.colSpan=Cn,In.colEnd=In.colStart+Cn-1,me[Mt].push(In),$t+=Cn,Cn});return Tt}Me(fe,0);for(var Ge=me.length,nt=function(Bt){me[Bt].forEach(function(Mt){!("rowSpan"in Mt)&&!Mt.hasSubColumns&&(Mt.rowSpan=Ge-Bt)})},Xe=0;Xe<Ge;Xe+=1)nt(Xe);return me}function Ht(fe){var me=fe.stickyOffsets,Me=fe.columns,Ge=fe.flattenColumns,nt=fe.onHeaderRow,Xe=Te(ce,["prefixCls","getComponent"]),Rt=Xe.prefixCls,Bt=Xe.getComponent,Mt=ue.useMemo(function(){return Ft(Me)},[Me]),$t=Bt(["header","wrapper"],"thead"),Tt=Bt(["header","row"],"tr"),Qt=Bt(["header","cell"],"th"),In=Bt(["header","cell"],"td");return ue.createElement($t,{className:"".concat(Rt,"-thead")},Mt.map(function(Cn,Rn){var sa=ue.createElement(Ve,{key:Rn,flattenColumns:Ge,cells:Cn,stickyOffsets:me,rowComponent:Tt,cellComponent:Qt,tdCellComponent:In,onHeaderRow:nt,index:Rn});return sa}))}var Vt=te(Ht),tn=ae(11592);function Sn(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?fe*parseFloat(me)/100:null}function mn(fe,me){return ue.useMemo(function(){if(me&&me>0){var Me=0,Ge=0;fe.forEach(function($t){var Tt=Sn(me,$t.width);Tt?Me+=Tt:Ge+=1});var nt=me-Me,Xe=Ge,Rt=nt/Ge,Bt=0,Mt=fe.map(function($t){var Tt=(0,Re.Z)({},$t),Qt=Sn(me,Tt.width);if(Qt)Tt.width=Qt;else{var In=Math.floor(Rt);Tt.width=Xe===1?nt:In,nt-=In,Xe-=1}return Bt+=Tt.width,Tt});return[Mt,Bt]}return[fe,me]},[fe,me])}var lt=["children"],pt=["fixed"];function ct(fe){return(0,tn.Z)(fe).filter(function(me){return ue.isValidElement(me)}).map(function(me){var Me=me.key,Ge=me.props,nt=Ge.children,Xe=(0,It.Z)(Ge,lt),Rt=(0,Re.Z)({key:Me},Xe);return nt&&(Rt.children=ct(nt)),Rt})}function Kt(fe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return fe.filter(function(Me){return Me&&(0,ye.Z)(Me)==="object"}).reduce(function(Me,Ge,nt){var Xe=Ge.fixed,Rt=Xe===!0?"left":Xe,Bt="".concat(me,"-").concat(nt),Mt=Ge.children;return Mt&&Mt.length>0?[].concat((0,xn.Z)(Me),(0,xn.Z)(Kt(Mt,Bt).map(function($t){return(0,Re.Z)({fixed:Rt},$t)}))):[].concat((0,xn.Z)(Me),[(0,Re.Z)((0,Re.Z)({key:Bt},Ge),{},{fixed:Rt})])},[])}function vn(fe){for(var me=!0,Me=0;Me<fe.length;Me+=1){var Ge=fe[Me];if(me&&Ge.fixed!=="left")me=!1;else if(!me&&Ge.fixed==="left"){warning(!1,"Index ".concat(Me-1," of `columns` missing `fixed='left'` prop."));break}}for(var nt=!0,Xe=fe.length-1;Xe>=0;Xe-=1){var Rt=fe[Xe];if(nt&&Rt.fixed!=="right")nt=!1;else if(!nt&&Rt.fixed==="right"){warning(!1,"Index ".concat(Xe+1," of `columns` missing `fixed='right'` prop."));break}}}function an(fe){return fe.map(function(me){var Me=me.fixed,Ge=(0,It.Z)(me,pt),nt=Me;return Me==="left"?nt="right":Me==="right"&&(nt="left"),(0,Re.Z)({fixed:nt},Ge)})}function kn(fe,me){var Me=fe.prefixCls,Ge=fe.columns,nt=fe.children,Xe=fe.expandable,Rt=fe.expandedKeys,Bt=fe.columnTitle,Mt=fe.getRowKey,$t=fe.onTriggerExpand,Tt=fe.expandIcon,Qt=fe.rowExpandable,In=fe.expandIconColumnIndex,Cn=fe.direction,Rn=fe.expandRowByClick,sa=fe.columnWidth,qn=fe.fixed,oa=fe.scrollWidth,ea=ue.useMemo(function(){return Ge||ct(nt)},[Ge,nt]),Ca=ue.useMemo(function(){if(Xe){var Za,Da=ea.slice();if(!Da.includes(b)){var ha=In||0;ha>=0&&Da.splice(ha,0,b)}var Na=Da.indexOf(b);Da=Da.filter(function(tr,wr){return tr!==b||wr===Na});var ur=ea[Na],Ar;(qn==="left"||qn)&&!In?Ar="left":(qn==="right"||qn)&&In===ea.length?Ar="right":Ar=ur?ur.fixed:null;var pr=(Za={},(0,he.Z)(Za,xa,{className:"".concat(Me,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,he.Z)(Za,"title",Bt),(0,he.Z)(Za,"fixed",Ar),(0,he.Z)(Za,"className","".concat(Me,"-row-expand-icon-cell")),(0,he.Z)(Za,"width",sa),(0,he.Z)(Za,"render",function(wr,Zr,Io){var to=Mt(Zr,Io),Wo=Rt.has(to),Ao=Qt?Qt(Zr):!0,Pr=Tt({prefixCls:Me,expanded:Wo,expandable:Ao,record:Zr,onExpand:$t});return Rn?ue.createElement("span",{onClick:function($r){return $r.stopPropagation()}},Pr):Pr}),Za);return Da.map(function(tr){return tr===b?pr:tr})}return ea.filter(function(tr){return tr!==b})},[Xe,ea,Mt,Rt,Tt,Cn]),Ua=ue.useMemo(function(){var Za=Ca;return me&&(Za=me(Za)),Za.length||(Za=[{render:function(){return null}}]),Za},[me,Ca,Cn]),Ja=ue.useMemo(function(){return Cn==="rtl"?an(Kt(Ua)):Kt(Ua)},[Ua,Cn,oa]),Ma=mn(Ja,oa),gr=(0,be.Z)(Ma,2),Sr=gr[0],wa=gr[1];return[Ua,Sr,wa]}var Fn=kn;function Bn(fe){var me,Me=fe.prefixCls,Ge=fe.record,nt=fe.onExpand,Xe=fe.expanded,Rt=fe.expandable,Bt="".concat(Me,"-row-expand-icon");if(!Rt)return ue.createElement("span",{className:je()(Bt,"".concat(Me,"-row-spaced"))});var Mt=function(Tt){nt(Ge,Tt),Tt.stopPropagation()};return ue.createElement("span",{className:je()(Bt,(me={},(0,he.Z)(me,"".concat(Me,"-row-expanded"),Xe),(0,he.Z)(me,"".concat(Me,"-row-collapsed"),!Xe),me)),onClick:Mt})}function Un(fe,me,Me){var Ge=[];function nt(Xe){(Xe||[]).forEach(function(Rt,Bt){Ge.push(me(Rt,Bt)),nt(Rt[Me])})}return nt(fe),Ge}function Ra(fe,me,Me){var Ge=ln(fe),nt=Ge.expandIcon,Xe=Ge.expandedRowKeys,Rt=Ge.defaultExpandedRowKeys,Bt=Ge.defaultExpandAllRows,Mt=Ge.expandedRowRender,$t=Ge.onExpand,Tt=Ge.onExpandedRowsChange,Qt=Ge.childrenColumnName,In=nt||Bn,Cn=Qt||"children",Rn=ue.useMemo(function(){return Mt?"row":fe.expandable&&fe.internalHooks===se&&fe.expandable.__PARENT_RENDER_ICON__||me.some(function(Ja){return Ja&&(0,ye.Z)(Ja)==="object"&&Ja[Cn]})?"nest":!1},[!!Mt,me]),sa=ue.useState(function(){return Rt||(Bt?Un(me,Me,Cn):[])}),qn=(0,be.Z)(sa,2),oa=qn[0],ea=qn[1],Ca=ue.useMemo(function(){return new Set(Xe||oa||[])},[Xe,oa]),Ua=ue.useCallback(function(Ja){var Ma=Me(Ja,me.indexOf(Ja)),gr,Sr=Ca.has(Ma);Sr?(Ca.delete(Ma),gr=(0,xn.Z)(Ca)):gr=[].concat((0,xn.Z)(Ca),[Ma]),ea(gr),$t&&$t(!Sr,Ja),Tt&&Tt(gr)},[Me,Ca,me,$t,Tt]);return[Ge,Rn,Ca,In,Cn,Ua]}function bn(fe,me,Me,Ge){var nt=fe.map(function(Xe,Rt){return Be(Rt,Rt,fe,me,Me,Ge==null?void 0:Ge[Rt])});return(0,ot.Z)(function(){return nt},[nt],function(Xe,Rt){return!(0,Oe.Z)(Xe,Rt)})}function pa(fe){var me=(0,ue.useRef)(fe),Me=(0,ue.useState)({}),Ge=(0,be.Z)(Me,2),nt=Ge[1],Xe=(0,ue.useRef)(null),Rt=(0,ue.useRef)([]);function Bt(Mt){Rt.current.push(Mt);var $t=Promise.resolve();Xe.current=$t,$t.then(function(){if(Xe.current===$t){var Tt=Rt.current,Qt=me.current;Rt.current=[],Tt.forEach(function(In){me.current=In(me.current)}),Xe.current=null,Qt!==me.current&&nt({})}})}return(0,ue.useEffect)(function(){return function(){Xe.current=null}},[]),[me.current,Bt]}function $a(fe){var me=(0,ue.useRef)(fe||null),Me=(0,ue.useRef)();function Ge(){window.clearTimeout(Me.current)}function nt(Rt){me.current=Rt,Ge(),Me.current=window.setTimeout(function(){me.current=null,Me.current=void 0},100)}function Xe(){return me.current}return(0,ue.useEffect)(function(){return Ge},[]),[nt,Xe]}function lr(){var fe=ue.useState(-1),me=(0,be.Z)(fe,2),Me=me[0],Ge=me[1],nt=ue.useState(-1),Xe=(0,be.Z)(nt,2),Rt=Xe[0],Bt=Xe[1],Mt=ue.useCallback(function($t,Tt){Ge($t),Bt(Tt)},[]);return[Me,Rt,Mt]}var Jn=ae(47273),sn=(0,Jn.Z)()?window:null;function Dr(fe,me){var Me=(0,ye.Z)(fe)==="object"?fe:{},Ge=Me.offsetHeader,nt=Ge===void 0?0:Ge,Xe=Me.offsetSummary,Rt=Xe===void 0?0:Xe,Bt=Me.offsetScroll,Mt=Bt===void 0?0:Bt,$t=Me.getContainer,Tt=$t===void 0?function(){return sn}:$t,Qt=Tt()||sn;return ue.useMemo(function(){var In=!!fe;return{isSticky:In,stickyClassName:In?"".concat(me,"-sticky-holder"):"",offsetHeader:nt,offsetSummary:Rt,offsetScroll:Mt,container:Qt}},[Mt,nt,Rt,me,Qt])}function Ga(fe,me,Me){var Ge=(0,ue.useMemo)(function(){for(var nt=[],Xe=[],Rt=0,Bt=0,Mt=0;Mt<me;Mt+=1)if(Me==="rtl"){Xe[Mt]=Bt,Bt+=fe[Mt]||0;var $t=me-Mt-1;nt[$t]=Rt,Rt+=fe[$t]||0}else{nt[Mt]=Rt,Rt+=fe[Mt]||0;var Tt=me-Mt-1;Xe[Tt]=Bt,Bt+=fe[Tt]||0}return{left:nt,right:Xe}},[fe,me,Me]);return Ge}var Er=Ga;function Cr(fe){var me=fe.className,Me=fe.children;return ue.createElement("div",{className:me},Me)}var Lr=Cr,xr=ae(8224),so=ae(55468),qr=function(me,Me){var Ge,nt,Xe=me.scrollBodyRef,Rt=me.onScroll,Bt=me.offsetScroll,Mt=me.container,$t=Te(ce,"prefixCls"),Tt=((Ge=Xe.current)===null||Ge===void 0?void 0:Ge.scrollWidth)||0,Qt=((nt=Xe.current)===null||nt===void 0?void 0:nt.clientWidth)||0,In=Tt&&Qt*(Qt/Tt),Cn=ue.useRef(),Rn=pa({scrollLeft:0,isHiddenScrollBar:!1}),sa=(0,be.Z)(Rn,2),qn=sa[0],oa=sa[1],ea=ue.useRef({delta:0,x:0}),Ca=ue.useState(!1),Ua=(0,be.Z)(Ca,2),Ja=Ua[0],Ma=Ua[1],gr=function(){Ma(!1)},Sr=function(Na){Na.persist(),ea.current.delta=Na.pageX-qn.scrollLeft,ea.current.x=0,Ma(!0),Na.preventDefault()},wa=function(Na){var ur,Ar=Na||((ur=window)===null||ur===void 0?void 0:ur.event),pr=Ar.buttons;if(!Ja||pr===0){Ja&&Ma(!1);return}var tr=ea.current.x+Na.pageX-ea.current.x-ea.current.delta;tr<=0&&(tr=0),tr+In>=Qt&&(tr=Qt-In),Rt({scrollLeft:tr/Qt*(Tt+2)}),ea.current.x=Na.pageX},Za=function(){if(Xe.current){var Na=(0,so.os)(Xe.current).top,ur=Na+Xe.current.offsetHeight,Ar=Mt===window?document.documentElement.scrollTop+window.innerHeight:(0,so.os)(Mt).top+Mt.clientHeight;ur-(0,Et.Z)()<=Ar||Na>=Ar-Bt?oa(function(pr){return(0,Re.Z)((0,Re.Z)({},pr),{},{isHiddenScrollBar:!0})}):oa(function(pr){return(0,Re.Z)((0,Re.Z)({},pr),{},{isHiddenScrollBar:!1})})}},Da=function(Na){oa(function(ur){return(0,Re.Z)((0,Re.Z)({},ur),{},{scrollLeft:Na/Tt*Qt||0})})};return ue.useImperativeHandle(Me,function(){return{setScrollLeft:Da}}),ue.useEffect(function(){var ha=(0,xr.Z)(document.body,"mouseup",gr,!1),Na=(0,xr.Z)(document.body,"mousemove",wa,!1);return Za(),function(){ha.remove(),Na.remove()}},[In,Ja]),ue.useEffect(function(){var ha=(0,xr.Z)(Mt,"scroll",Za,!1),Na=(0,xr.Z)(window,"resize",Za,!1);return function(){ha.remove(),Na.remove()}},[Mt]),ue.useEffect(function(){qn.isHiddenScrollBar||oa(function(ha){var Na=Xe.current;return Na?(0,Re.Z)((0,Re.Z)({},ha),{},{scrollLeft:Na.scrollLeft/Na.scrollWidth*Na.clientWidth}):ha})},[qn.isHiddenScrollBar]),Tt<=Qt||!In||qn.isHiddenScrollBar?null:ue.createElement("div",{style:{height:(0,Et.Z)(),width:Qt,bottom:Bt},className:"".concat($t,"-sticky-scroll")},ue.createElement("div",{onMouseDown:Sr,ref:Cn,className:je()("".concat($t,"-sticky-scroll-bar"),(0,he.Z)({},"".concat($t,"-sticky-scroll-bar-active"),Ja)),style:{width:"".concat(In,"px"),transform:"translate3d(".concat(qn.scrollLeft,"px, 0, 0)")}}))},_o=ue.forwardRef(qr);function Mn(fe){return null}var Mr=Mn;function Rr(fe){return null}var Gr=Rr,za="rc-table",$n=[],Aa={};function ja(){return"No Data"}function ga(fe){var me,Me=(0,Re.Z)({rowKey:"key",prefixCls:za,emptyText:ja},fe),Ge=Me.prefixCls,nt=Me.className,Xe=Me.rowClassName,Rt=Me.style,Bt=Me.data,Mt=Me.rowKey,$t=Me.scroll,Tt=Me.tableLayout,Qt=Me.direction,In=Me.title,Cn=Me.footer,Rn=Me.summary,sa=Me.caption,qn=Me.id,oa=Me.showHeader,ea=Me.components,Ca=Me.emptyText,Ua=Me.onRow,Ja=Me.onHeaderRow,Ma=Me.internalHooks,gr=Me.transformColumns,Sr=Me.internalRefs,wa=Me.tailor,Za=Me.sticky,Da=Bt||$n,ha=!!Da.length,Na=Ma===se,ur=ue.useCallback(function(Xr,Zo){return(0,Le.Z)(ea,Xr)||Zo},[ea]),Ar=ue.useMemo(function(){return typeof Mt=="function"?Mt:function(Xr){var Zo=Xr&&Xr[Mt];return Zo}},[Mt]),pr=ur(["body"]),tr=lr(),wr=(0,be.Z)(tr,3),Zr=wr[0],Io=wr[1],to=wr[2],Wo=Ra(Me,Da,Ar),Ao=(0,be.Z)(Wo,6),Pr=Ao[0],Vo=Ao[1],$r=Ao[2],To=Ao[3],Oo=Ao[4],Fi=Ao[5],ir=$t==null?void 0:$t.x,nr=ue.useState(0),Xa=(0,be.Z)(nr,2),Ka=Xa[0],ro=Xa[1],Ha=Fn((0,Re.Z)((0,Re.Z)((0,Re.Z)({},Me),Pr),{},{expandable:!!Pr.expandedRowRender,columnTitle:Pr.columnTitle,expandedKeys:$r,getRowKey:Ar,onTriggerExpand:Fi,expandIcon:To,expandIconColumnIndex:Pr.expandIconColumnIndex,direction:Qt,scrollWidth:Na&&wa&&typeof ir=="number"?ir:null}),Na?gr:null),vr=(0,be.Z)(Ha,3),Qr=vr[0],Kr=vr[1],di=vr[2],ci=di!=null?di:ir,Gi=ue.useMemo(function(){return{columns:Qr,flattenColumns:Kr}},[Qr,Kr]),ei=ue.useRef(),Vi=ue.useRef(),ti=ue.useRef(),Ai=ue.useRef(),Ol=ue.useRef(),uo=ue.useState(!1),vo=(0,be.Z)(uo,2),No=vo[0],jo=vo[1],Qo=ue.useState(!1),zr=(0,be.Z)(Qo,2),hi=zr[0],Si=zr[1],pi=pa(new Map),dl=(0,be.Z)(pi,2),nl=dl[0],Pi=dl[1],al=it(Kr),Hi=al.map(function(Xr){return nl.get(Xr)}),Ii=ue.useMemo(function(){return Hi},[Hi.join("_")]),Ei=Er(Ii,Kr.length,Qt),Ko=$t&&jt($t.y),ko=$t&&jt(ci)||!!Pr.fixed,cl=ko&&Kr.some(function(Xr){var Zo=Xr.fixed;return Zo}),Ll=ue.useRef(),hl=Dr(Za,Ge),Qi=hl.isSticky,Sl=hl.offsetHeader,fu=hl.offsetSummary,Yr=hl.offsetScroll,Lo=hl.stickyClassName,gi=hl.container,Go=ue.useMemo(function(){return Rn==null?void 0:Rn(Da)},[Rn,Da]),yi=(Ko||Qi)&&ue.isValidElement(Go)&&Go.type===ve&&Go.props.fixed,bi,Ni,ml;Ko&&(Ni={overflowY:"scroll",maxHeight:$t.y}),ko&&(bi={overflowX:"auto"},Ko||(Ni={overflowY:"hidden"}),ml={width:ci===!0?"auto":ci,minWidth:"100%"});var Ql=ue.useCallback(function(Xr,Zo){(0,Ye.Z)(ei.current)&&Pi(function(Ji){if(Ji.get(Xr)!==Zo){var Pl=new Map(Ji);return Pl.set(Xr,Zo),Pl}return Ji})},[]),Vu=$a(null),wu=(0,be.Z)(Vu,2),Du=wu[0],Iu=wu[1];function ru(Xr,Zo){Zo&&(typeof Zo=="function"?Zo(Xr):Zo.scrollLeft!==Xr&&(Zo.scrollLeft=Xr,Zo.scrollLeft!==Xr&&setTimeout(function(){Zo.scrollLeft=Xr},0)))}var Jl=(0,Ae.Z)(function(Xr){var Zo=Xr.currentTarget,Ji=Xr.scrollLeft,Pl=Qt==="rtl",El=typeof Ji=="number"?Ji:Zo.scrollLeft,gu=Zo||Aa;if(!Iu()||Iu()===gu){var Eu;Du(gu),ru(El,Vi.current),ru(El,ti.current),ru(El,Ol.current),ru(El,(Eu=Ll.current)===null||Eu===void 0?void 0:Eu.setScrollLeft)}var yu=Zo||Vi.current;if(yu){var bu=yu.scrollWidth,Cu=yu.clientWidth;if(bu===Cu){jo(!1),Si(!1);return}Pl?(jo(-El<bu-Cu),Si(-El>0)):(jo(El>0),Si(El<bu-Cu))}}),Nu=function(){ko&&ti.current?Jl({currentTarget:ti.current}):(jo(!1),Si(!1))},cs=function(Zo){var Ji=Zo.width;Ji!==Ka&&(Nu(),ro(ei.current?ei.current.offsetWidth:Ji))},Zl=ue.useRef(!1);ue.useEffect(function(){Zl.current&&Nu()},[ko,Bt,Qr.length]),ue.useEffect(function(){Zl.current=!0},[]);var Qu=ue.useState(0),ou=(0,be.Z)(Qu,2),iu=ou[0],Ou=ou[1],Ju=ue.useState(!0),lu=(0,be.Z)(Ju,2),pu=lu[0],$u=lu[1];ue.useEffect(function(){(!wa||!Na)&&(ti.current instanceof Element?Ou((0,Et.o)(ti.current).width):Ou((0,Et.o)(Ai.current).width)),$u((0,_e.G)("position","sticky"))},[]),ue.useEffect(function(){Na&&Sr&&(Sr.body.current=ti.current)});var Yu=ue.useCallback(function(Xr){return ue.createElement(ue.Fragment,null,ue.createElement(Vt,Xr),yi==="top"&&ue.createElement(At,Xr,Go))},[yi,Go]),Xu=ue.useCallback(function(Xr){return ue.createElement(At,Xr,Go)},[Go]),Lu=ur(["table"],"table"),uu=ue.useMemo(function(){return Tt||(cl?ci==="max-content"?"auto":"fixed":Ko||Qi||Kr.some(function(Xr){var Zo=Xr.ellipsis;return Zo})?"fixed":"auto")},[Ko,cl,Kr,Tt,Qi]),vu,hu={colWidths:Ii,columCount:Kr.length,stickyOffsets:Ei,onHeaderRow:Ja,fixHeader:Ko,scroll:$t},Ru=ue.useMemo(function(){return ha?null:typeof Ca=="function"?Ca():Ca},[ha,Ca]),$l=ue.createElement(Wn,{data:Da,measureColumnWidth:Ko||ko||Qi}),_u=ue.createElement(Zn,{colWidths:Kr.map(function(Xr){var Zo=Xr.width;return Zo}),columns:Kr}),Su=sa!=null?ue.createElement("caption",{className:"".concat(Ge,"-caption")},sa):void 0,su=(0,cn.Z)(Me,{data:!0}),Pu=(0,cn.Z)(Me,{aria:!0});if(Ko||Qi){var du;typeof pr=="function"?(du=pr(Da,{scrollbarSize:iu,ref:ti,onScroll:Jl}),hu.colWidths=Kr.map(function(Xr,Zo){var Ji=Xr.width,Pl=Zo===Kr.length-1?Ji-iu:Ji;return typeof Pl=="number"&&!Number.isNaN(Pl)?Pl:0})):du=ue.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},bi),Ni),onScroll:Jl,ref:ti,className:je()("".concat(Ge,"-body"))},ue.createElement(Lu,(0,He.Z)({style:(0,Re.Z)((0,Re.Z)({},ml),{},{tableLayout:uu})},Pu),Su,_u,$l,!yi&&Go&&ue.createElement(At,{stickyOffsets:Ei,flattenColumns:Kr,columns:Qr},Go)));var Mu=(0,Re.Z)((0,Re.Z)((0,Re.Z)({noData:!Da.length,maxContentScroll:ko&&ci==="max-content"},hu),Gi),{},{direction:Qt,stickyClassName:Lo,onScroll:Jl});vu=ue.createElement(ue.Fragment,null,oa!==!1&&ue.createElement(yn,(0,He.Z)({},Mu,{stickyTopOffset:Sl,className:"".concat(Ge,"-header"),ref:Vi}),Yu),du,yi&&yi!=="top"&&ue.createElement(yn,(0,He.Z)({},Mu,{stickyBottomOffset:fu,className:"".concat(Ge,"-summary"),ref:Ol}),Xu),Qi&&ue.createElement(_o,{ref:Ll,offsetScroll:Yr,scrollBodyRef:ti,onScroll:Jl,container:gi}))}else vu=ue.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},bi),Ni),className:je()("".concat(Ge,"-content")),onScroll:Jl,ref:ti},ue.createElement(Lu,(0,He.Z)({style:(0,Re.Z)((0,Re.Z)({},ml),{},{tableLayout:uu})},Pu),Su,_u,oa!==!1&&ue.createElement(Vt,(0,He.Z)({},hu,Gi)),$l,Go&&ue.createElement(At,{stickyOffsets:Ei,flattenColumns:Kr,columns:Qr},Go)));var cu=ue.createElement("div",(0,He.Z)({className:je()(Ge,nt,(me={},(0,he.Z)(me,"".concat(Ge,"-rtl"),Qt==="rtl"),(0,he.Z)(me,"".concat(Ge,"-ping-left"),No),(0,he.Z)(me,"".concat(Ge,"-ping-right"),hi),(0,he.Z)(me,"".concat(Ge,"-layout-fixed"),Tt==="fixed"),(0,he.Z)(me,"".concat(Ge,"-fixed-header"),Ko),(0,he.Z)(me,"".concat(Ge,"-fixed-column"),cl),(0,he.Z)(me,"".concat(Ge,"-scroll-horizontal"),ko),(0,he.Z)(me,"".concat(Ge,"-has-fix-left"),Kr[0]&&Kr[0].fixed),(0,he.Z)(me,"".concat(Ge,"-has-fix-right"),Kr[Kr.length-1]&&Kr[Kr.length-1].fixed==="right"),me)),style:Rt,id:qn,ref:ei},su),In&&ue.createElement(Lr,{className:"".concat(Ge,"-title")},In(Da)),ue.createElement("div",{ref:Ai,className:"".concat(Ge,"-container")},vu),Cn&&ue.createElement(Lr,{className:"".concat(Ge,"-footer")},Cn(Da)));ko&&(cu=ue.createElement(vt.Z,{onResize:cs},cu));var Tu=bn(Kr,Ei,Qt,Qr),qu=ue.useMemo(function(){return{scrollX:ci,prefixCls:Ge,getComponent:ur,scrollbarSize:iu,direction:Qt,fixedInfoList:Tu,isSticky:Qi,supportSticky:pu,componentWidth:Ka,fixHeader:Ko,fixColumn:cl,horizonScroll:ko,tableLayout:uu,rowClassName:Xe,expandedRowClassName:Pr.expandedRowClassName,expandIcon:To,expandableType:Vo,expandRowByClick:Pr.expandRowByClick,expandedRowRender:Pr.expandedRowRender,onTriggerExpand:Fi,expandIconColumnIndex:Pr.expandIconColumnIndex,indentSize:Pr.indentSize,allColumnsFixedLeft:Kr.every(function(Xr){return Xr.fixed==="left"}),emptyNode:Ru,columns:Qr,flattenColumns:Kr,onColumnResize:Ql,hoverStartRow:Zr,hoverEndRow:Io,onHover:to,rowExpandable:Pr.rowExpandable,onRow:Ua,getRowKey:Ar,expandedKeys:$r,childrenColumnName:Oo}},[ci,Ge,ur,iu,Qt,Tu,Qi,pu,Ka,Ko,cl,ko,uu,Xe,Pr.expandedRowClassName,To,Vo,Pr.expandRowByClick,Pr.expandedRowRender,Fi,Pr.expandIconColumnIndex,Pr.indentSize,Ru,Qr,Kr,Ql,Zr,Io,to,Pr.rowExpandable,Ua,Ar,$r,Oo]);return ue.createElement(ce.Provider,{value:qu},cu)}function fr(fe){return z(ga,fe)}var Hr=fr();Hr.EXPAND_COLUMN=b,Hr.INTERNAL_HOOKS=se,Hr.Column=Mr,Hr.ColumnGroup=Gr,Hr.Summary=we;var oo=Hr,Tr=ae(50030),co=We(null),ni=We(null);function Jo(fe,me,Me){var Ge=me||1;return Me[fe+Ge]-(Me[fe]||0)}function _i(fe){var me=fe.rowInfo,Me=fe.column,Ge=fe.colIndex,nt=fe.indent,Xe=fe.index,Rt=fe.renderIndex,Bt=fe.record,Mt=fe.style,$t=fe.className,Tt=fe.inverse,Qt=fe.getHeight,In=Me.render,Cn=Me.dataIndex,Rn=Me.className,sa=Me.width,qn=Te(ni,["columnsOffset"]),oa=qn.columnsOffset,ea=on(me,Me,Ge,nt,Xe),Ca=ea.key,Ua=ea.fixedInfo,Ja=ea.appendCellNode,Ma=ea.additionalCellProps,gr=Ma.style,Sr=Ma.colSpan,wa=Sr===void 0?1:Sr,Za=Ma.rowSpan,Da=Za===void 0?1:Za,ha=Ge-1,Na=Jo(ha,wa,oa),ur=wa>1?sa-Na:0,Ar=(0,Re.Z)((0,Re.Z)((0,Re.Z)({},gr),Mt),{},{flex:"0 0 ".concat(Na,"px"),width:"".concat(Na,"px"),marginRight:ur,pointerEvents:"auto"}),pr=ue.useMemo(function(){return Tt?Da<=1:wa===0||Da===0||Da>1},[Da,wa,Tt]);pr?Ar.visibility="hidden":Tt&&(Ar.height=Qt==null?void 0:Qt(Da));var tr=pr?function(){return null}:In,wr={};return(Da===0||wa===0)&&(wr.rowSpan=1,wr.colSpan=1),ue.createElement(Jt,(0,He.Z)({className:je()(Rn,$t),ellipsis:Me.ellipsis,align:Me.align,scope:Me.rowScope,component:"div",prefixCls:me.prefixCls,key:Ca,record:Bt,index:Xe,renderIndex:Rt,dataIndex:Cn,render:tr,shouldCellUpdate:Me.shouldCellUpdate},Ua,{appendNode:Ja,additionalProps:(0,Re.Z)((0,Re.Z)({},Ma),{},{style:Ar},wr)}))}var So=_i,Ba=["data","index","className","rowKey","style","extra","getHeight"],eo=ue.forwardRef(function(fe,me){var Me=fe.data,Ge=fe.index,nt=fe.className,Xe=fe.rowKey,Rt=fe.style,Bt=fe.extra,Mt=fe.getHeight,$t=(0,It.Z)(fe,Ba),Tt=Me.record,Qt=Me.indent,In=Me.index,Cn=Te(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Rn=Cn.scrollX,sa=Cn.flattenColumns,qn=Cn.prefixCls,oa=Cn.fixColumn,ea=Cn.componentWidth,Ca=bt(Tt,Xe,Ge,Qt),Ua=Ca.rowSupportExpand,Ja=Ca.expanded,Ma=Ca.rowProps,gr=Ca.expandedRowRender,Sr=Ca.expandedRowClassName,wa;if(Ua&&Ja){var Za=gr(Tt,Ge,Qt+1,Ja),Da=Sr==null?void 0:Sr(Tt,Ge,Qt),ha={};oa&&(ha={style:(0,he.Z)({},"--virtual-width","".concat(ea,"px"))});var Na="".concat(qn,"-expanded-row-cell");wa=ue.createElement("div",{className:je()("".concat(qn,"-expanded-row"),"".concat(qn,"-expanded-row-level-").concat(Qt+1),Da)},ue.createElement(Jt,{component:"div",prefixCls:qn,className:je()(Na,(0,he.Z)({},"".concat(Na,"-fixed"),oa)),additionalProps:ha},Za))}var ur=(0,Re.Z)((0,Re.Z)({},Rt),{},{width:Rn});Bt&&(ur.position="absolute",ur.pointerEvents="none");var Ar=ue.createElement("div",(0,He.Z)({},Ma,$t,{ref:Ua?null:me,className:je()(nt,"".concat(qn,"-row"),Ma==null?void 0:Ma.className,(0,he.Z)({},"".concat(qn,"-row-extra"),Bt)),style:(0,Re.Z)((0,Re.Z)({},ur),Ma==null?void 0:Ma.style)}),sa.map(function(pr,tr){return ue.createElement(So,{key:tr,rowInfo:Ca,column:pr,colIndex:tr,indent:Qt,index:Ge,renderIndex:In,record:Tt,inverse:Bt,getHeight:Mt})}));return Ua?ue.createElement("div",{ref:me},Ar,wa):Ar}),mo=te(eo),Ro=mo,Po=ue.forwardRef(function(fe,me){var Me=fe.data,Ge=fe.onScroll,nt=Te(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Xe=nt.flattenColumns,Rt=nt.onColumnResize,Bt=nt.getRowKey,Mt=nt.expandedKeys,$t=nt.prefixCls,Tt=nt.childrenColumnName,Qt=nt.emptyNode,In=nt.scrollX,Cn=Te(co),Rn=Cn.scrollY,sa=Cn.listItemHeight,qn=ue.useRef(),oa=qt(Me,Tt,Mt,Bt),ea=ue.useMemo(function(){var wa=0;return Xe.map(function(Za){var Da=Za.width,ha=Za.key;return wa+=Da,[ha,Da,wa]})},[Xe]),Ca=ue.useMemo(function(){return ea.map(function(wa){return wa[2]})},[ea]);ue.useEffect(function(){ea.forEach(function(wa){var Za=(0,be.Z)(wa,2),Da=Za[0],ha=Za[1];Rt(Da,ha)})},[ea]),ue.useImperativeHandle(me,function(){var wa={};return Object.defineProperty(wa,"scrollLeft",{get:function(){var Da;return((Da=qn.current)===null||Da===void 0?void 0:Da.getScrollInfo().x)||0},set:function(Da){var ha;(ha=qn.current)===null||ha===void 0||ha.scrollTo({left:Da})}}),wa});var Ua=function(Za,Da){var ha,Na=(ha=oa[Da])===null||ha===void 0?void 0:ha.record,ur=Za.onCell;if(ur){var Ar,pr=ur(Na,Da);return(Ar=pr==null?void 0:pr.rowSpan)!==null&&Ar!==void 0?Ar:1}return 1},Ja=function(Za){var Da=Za.start,ha=Za.end,Na=Za.getSize,ur=Za.offsetY;if(ha<0)return null;for(var Ar=Xe.filter(function(ir){return Ua(ir,Da)===0}),pr=Da,tr=function(nr){if(Ar=Ar.filter(function(Xa){return Ua(Xa,nr)===0}),!Ar.length)return pr=nr,"break"},wr=Da;wr>=0;wr-=1){var Zr=tr(wr);if(Zr==="break")break}for(var Io=Xe.filter(function(ir){return Ua(ir,ha)!==1}),to=ha,Wo=function(nr){if(Io=Io.filter(function(Xa){return Ua(Xa,nr)!==1}),!Io.length)return to=Math.max(nr-1,ha),"break"},Ao=ha;Ao<oa.length;Ao+=1){var Pr=Wo(Ao);if(Pr==="break")break}for(var Vo=[],$r=function(nr){var Xa=oa[nr];if(!Xa)return"continue";Xe.some(function(Ka){return Ua(Ka,nr)>1})&&Vo.push(nr)},To=pr;To<=to;To+=1)var Oo=$r(To);var Fi=Vo.map(function(ir){var nr=oa[ir],Xa=Bt(nr.record,ir),Ka=function(vr){var Qr=ir+vr-1,Kr=Bt(oa[Qr].record,Qr),di=Na(Xa,Kr);return di.bottom-di.top},ro=Na(Xa);return ue.createElement(Ro,{key:ir,data:nr,rowKey:Xa,index:ir,style:{top:-ur+ro.top},extra:!0,getHeight:Ka})});return Fi},Ma=ue.useMemo(function(){return{columnsOffset:Ca}},[Ca]),gr="".concat($t,"-tbody"),Sr;return oa.length?Sr=ue.createElement(Tr.Z,{fullHeight:!1,ref:qn,className:je()(gr,"".concat(gr,"-virtual")),height:Rn,itemHeight:sa||24,data:oa,itemKey:function(Za){return Bt(Za.record)},scrollWidth:In,onVirtualScroll:function(Za){var Da=Za.x;Ge({scrollLeft:Da})},extraRender:Ja},function(wa,Za,Da){var ha=Bt(wa.record,Za);return ue.createElement(Ro,(0,He.Z)({data:wa,rowKey:ha,index:Za},Da))}):Sr=ue.createElement("div",{className:je()("".concat($t,"-placeholder"))},ue.createElement(Jt,{component:"div",prefixCls:$t},Qt)),ue.createElement(ni.Provider,{value:Ma},Sr)}),xo=te(Po),oi=xo,$o=function(me,Me){var Ge=Me.ref,nt=Me.onScroll;return ue.createElement(oi,{ref:Ge,data:me,onScroll:nt})},Ho=100;function Ci(fe){var me=fe.columns,Me=fe.scroll,Ge=fe.prefixCls,nt=Ge===void 0?za:Ge,Xe=fe.className,Rt=fe.listItemHeight,Bt=Me||{},Mt=Bt.x,$t=Bt.y;typeof Mt!="number"&&(Mt=((me||[]).length+1)*Ho),typeof $t!="number"&&($t=500);var Tt=ue.useMemo(function(){return{scrollY:$t,listItemHeight:Rt}},[$t,Rt]);return ue.createElement(co.Provider,{value:Tt},ue.createElement(oo,(0,He.Z)({},fe,{className:je()(Xe,"".concat(nt,"-virtual")),scroll:(0,Re.Z)((0,Re.Z)({},Me),{},{x:Mt}),components:{body:$o},columns:me,internalHooks:se,tailor:!0})))}function Uo(fe){return z(Ci,fe)}var Eo=Uo(),xi=null;function yo(fe){return null}var Mi=yo;function ai(fe){return null}var Wi=ai,Di=ae(2738),Ti=ae(68031),Yo=ae(36355),Ki=ae(93891),pl=ae(19716),$i=ae(8628),Yi=ae(31724),Ur=ae(58421),Ta=ae(71418),na=ae(88088);function ia(fe){return function(Me){let{prefixCls:Ge,onExpand:nt,record:Xe,expanded:Rt,expandable:Bt}=Me;const Mt=`${Ge}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:$t=>{nt(Xe,$t),$t.stopPropagation()},className:je()(Mt,{[`${Mt}-spaced`]:!Bt,[`${Mt}-expanded`]:Bt&&Rt,[`${Mt}-collapsed`]:Bt&&!Rt}),"aria-label":Rt?fe.collapse:fe.expand,"aria-expanded":Rt})}}var Pa=ia;function hr(fe,me){return"key"in fe&&fe.key!==void 0&&fe.key!==null?fe.key:fe.dataIndex?Array.isArray(fe.dataIndex)?fe.dataIndex.join("."):fe.dataIndex:me}function _r(fe,me){return me?`${me}-${fe}`:`${fe}`}function no(fe,me){return typeof fe=="function"?fe(me):fe}function fo(fe,me){const Me=no(fe,me);return Object.prototype.toString.call(Me)==="[object Object]"?"":Me}var wo={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"},Bo=wo,ka=ae(7657),zo=function(me,Me){return ue.createElement(ka.Z,(0,He.Z)({},me,{ref:Me,icon:Bo}))},Bi=ue.forwardRef(zo),si=Bi,ki=ae(56762);function Zi(fe){const me=ue.useRef(fe),Me=(0,ki.Z)();return[()=>me.current,Ge=>{me.current=Ge,Me()}]}var zi=ae(3113),Wr=ae(24905),Xo=ae(38854),ol=ae(64165),vi=ae(20834),Ui=ae(40875),il=ae(5112),Xi=ae(17574),Mo=ae(47472),qi=ae(92832);function el(fe){let{value:me,onChange:Me,filterSearch:Ge,tablePrefixCls:nt,locale:Xe}=fe;return Ge?ue.createElement("div",{className:`${nt}-filter-dropdown-search`},ue.createElement(qi.default,{prefix:ue.createElement(Mo.Z,null),placeholder:Xe.filterSearchPlaceholder,onChange:Me,value:me,htmlSize:1,className:`${nt}-filter-dropdown-search-input`})):null}var ll=el,ul=ae(10228);const Rl=fe=>{const{keyCode:me}=fe;me===ul.Z.ENTER&&fe.stopPropagation()};var _l=ue.forwardRef((fe,me)=>ue.createElement("div",{className:fe.className,onClick:Me=>Me.stopPropagation(),onKeyDown:Rl,ref:me},fe.children));function Ri(fe){let me=[];return(fe||[]).forEach(Me=>{let{value:Ge,children:nt}=Me;me.push(Ge),nt&&(me=[].concat((0,xn.Z)(me),(0,xn.Z)(Ri(nt))))}),me}function Fl(fe){return fe.some(me=>{let{children:Me}=me;return Me})}function tl(fe,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(fe.trim().toLowerCase()):!1}function Al(fe){let{filters:me,prefixCls:Me,filteredKeys:Ge,filterMultiple:nt,searchValue:Xe,filterSearch:Rt}=fe;return me.map((Bt,Mt)=>{const $t=String(Bt.value);if(Bt.children)return{key:$t||Mt,label:Bt.text,popupClassName:`${Me}-dropdown-submenu`,children:Al({filters:Bt.children,prefixCls:Me,filteredKeys:Ge,filterMultiple:nt,searchValue:Xe,filterSearch:Rt})};const Tt=nt?Wr.default:il.ZP,Qt={key:Bt.value!==void 0?$t:Mt,label:ue.createElement(ue.Fragment,null,ue.createElement(Tt,{checked:Ge.includes($t)}),ue.createElement("span",null,Bt.text))};return Xe.trim()?typeof Rt=="function"?Rt(Xe,Bt)?Qt:null:tl(Xe,Bt.text)?Qt:null:Qt})}function Gl(fe){var me,Me;const{tablePrefixCls:Ge,prefixCls:nt,column:Xe,dropdownPrefixCls:Rt,columnKey:Bt,filterMultiple:Mt,filterMode:$t="menu",filterSearch:Tt=!1,filterState:Qt,triggerFilter:In,locale:Cn,children:Rn,getPopupContainer:sa}=fe,{filterDropdownOpen:qn,onFilterDropdownOpenChange:oa,filterResetToDefaultFilteredValue:ea,defaultFilteredValue:Ca,filterDropdownVisible:Ua,onFilterDropdownVisibleChange:Ja}=Xe,[Ma,gr]=ue.useState(!1),Sr=!!(Qt&&(!((me=Qt.filteredKeys)===null||me===void 0)&&me.length||Qt.forceFiltered)),wa=Ha=>{gr(Ha),oa==null||oa(Ha),Ja==null||Ja(Ha)},Za=(Me=qn!=null?qn:Ua)!==null&&Me!==void 0?Me:Ma,Da=Qt==null?void 0:Qt.filteredKeys,[ha,Na]=Zi(Da||[]),ur=Ha=>{let{selectedKeys:vr}=Ha;Na(vr)},Ar=(Ha,vr)=>{let{node:Qr,checked:Kr}=vr;ur(Mt?{selectedKeys:Ha}:{selectedKeys:Kr&&Qr.key?[Qr.key]:[]})};ue.useEffect(()=>{Ma&&ur({selectedKeys:Da||[]})},[Da]);const[pr,tr]=ue.useState([]),wr=Ha=>{tr(Ha)},[Zr,Io]=ue.useState(""),to=Ha=>{const{value:vr}=Ha.target;Io(vr)};ue.useEffect(()=>{Ma||Io("")},[Ma]);const Wo=Ha=>{const vr=Ha&&Ha.length?Ha:null;if(vr===null&&(!Qt||!Qt.filteredKeys)||(0,Oe.Z)(vr,Qt==null?void 0:Qt.filteredKeys,!0))return null;In({column:Xe,key:Bt,filteredKeys:vr})},Ao=()=>{wa(!1),Wo(ha())},Pr=function(){let{confirm:Ha,closeDropdown:vr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ha&&Wo([]),vr&&wa(!1),Io(""),Na(ea?(Ca||[]).map(Qr=>String(Qr)):[])},Vo=function(){let{closeDropdown:Ha}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ha&&wa(!1),Wo(ha())},$r=Ha=>{Ha&&Da!==void 0&&Na(Da||[]),wa(Ha),!Ha&&!Xe.filterDropdown&&Ao()},To=je()({[`${Rt}-menu-without-submenu`]:!Fl(Xe.filters||[])}),Oo=Ha=>{if(Ha.target.checked){const vr=Ri(Xe==null?void 0:Xe.filters).map(Qr=>String(Qr));Na(vr)}else Na([])},Fi=Ha=>{let{filters:vr}=Ha;return(vr||[]).map((Qr,Kr)=>{const di=String(Qr.value),ci={title:Qr.text,key:Qr.value!==void 0?di:Kr};return Qr.children&&(ci.children=Fi({filters:Qr.children})),ci})},ir=Ha=>{var vr;return Object.assign(Object.assign({},Ha),{text:Ha.title,value:Ha.key,children:((vr=Ha.children)===null||vr===void 0?void 0:vr.map(Qr=>ir(Qr)))||[]})};let nr;if(typeof Xe.filterDropdown=="function")nr=Xe.filterDropdown({prefixCls:`${Rt}-custom`,setSelectedKeys:Ha=>ur({selectedKeys:Ha}),selectedKeys:ha(),confirm:Vo,clearFilters:Pr,filters:Xe.filters,visible:Za,close:()=>{wa(!1)}});else if(Xe.filterDropdown)nr=Xe.filterDropdown;else{const Ha=ha()||[],vr=()=>(Xe.filters||[]).length===0?ue.createElement(ol.Z,{image:ol.Z.PRESENTED_IMAGE_SIMPLE,description:Cn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):$t==="tree"?ue.createElement(ue.Fragment,null,ue.createElement(ll,{filterSearch:Tt,value:Zr,onChange:to,tablePrefixCls:Ge,locale:Cn}),ue.createElement("div",{className:`${Ge}-filter-dropdown-tree`},Mt?ue.createElement(Wr.default,{checked:Ha.length===Ri(Xe.filters).length,indeterminate:Ha.length>0&&Ha.length<Ri(Xe.filters).length,className:`${Ge}-filter-dropdown-checkall`,onChange:Oo},Cn.filterCheckall):null,ue.createElement(Xi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Mt,checkStrictly:!Mt,className:`${Rt}-menu`,onCheck:Ar,checkedKeys:Ha,selectedKeys:Ha,showIcon:!1,treeData:Fi({filters:Xe.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Zr.trim()?Kr=>typeof Tt=="function"?Tt(Zr,ir(Kr)):tl(Zr,Kr.title):void 0}))):ue.createElement(ue.Fragment,null,ue.createElement(ll,{filterSearch:Tt,value:Zr,onChange:to,tablePrefixCls:Ge,locale:Cn}),ue.createElement(vi.default,{selectable:!0,multiple:Mt,prefixCls:`${Rt}-menu`,className:To,onSelect:ur,onDeselect:ur,selectedKeys:Ha,getPopupContainer:sa,openKeys:pr,onOpenChange:wr,items:Al({filters:Xe.filters||[],filterSearch:Tt,prefixCls:nt,filteredKeys:ha(),filterMultiple:Mt,searchValue:Zr})})),Qr=()=>ea?(0,Oe.Z)((Ca||[]).map(Kr=>String(Kr)),Ha,!0):Ha.length===0;nr=ue.createElement(ue.Fragment,null,vr(),ue.createElement("div",{className:`${nt}-dropdown-btns`},ue.createElement(zi.ZP,{type:"link",size:"small",disabled:Qr(),onClick:()=>Pr()},Cn.filterReset),ue.createElement(zi.ZP,{type:"primary",size:"small",onClick:Ao},Cn.filterConfirm)))}Xe.filterDropdown&&(nr=ue.createElement(Ui.J,{selectable:void 0},nr));const Xa=()=>ue.createElement(_l,{className:`${nt}-dropdown`},nr);let Ka;typeof Xe.filterIcon=="function"?Ka=Xe.filterIcon(Sr):Xe.filterIcon?Ka=Xe.filterIcon:Ka=ue.createElement(si,null);const{direction:ro}=ue.useContext(Yo.E_);return ue.createElement("div",{className:`${nt}-column`},ue.createElement("span",{className:`${Ge}-column-title`},Rn),ue.createElement(Xo.Z,{dropdownRender:Xa,trigger:["click"],open:Za,onOpenChange:$r,getPopupContainer:sa,placement:ro==="rtl"?"bottomLeft":"bottomRight"},ue.createElement("span",{role:"button",tabIndex:-1,className:je()(`${nt}-trigger`,{active:Sr}),onClick:Ha=>{Ha.stopPropagation()}},Ka)))}var gt=Gl;function ht(fe,me,Me){let Ge=[];return(fe||[]).forEach((nt,Xe)=>{var Rt;const Bt=_r(Xe,Me);if(nt.filters||"filterDropdown"in nt||"onFilter"in nt)if("filteredValue"in nt){let Mt=nt.filteredValue;"filterDropdown"in nt||(Mt=(Rt=Mt==null?void 0:Mt.map(String))!==null&&Rt!==void 0?Rt:Mt),Ge.push({column:nt,key:hr(nt,Bt),filteredKeys:Mt,forceFiltered:nt.filtered})}else Ge.push({column:nt,key:hr(nt,Bt),filteredKeys:me&&nt.defaultFilteredValue?nt.defaultFilteredValue:void 0,forceFiltered:nt.filtered});"children"in nt&&(Ge=[].concat((0,xn.Z)(Ge),(0,xn.Z)(ht(nt.children,me,Bt))))}),Ge}function zt(fe,me,Me,Ge,nt,Xe,Rt,Bt){return Me.map((Mt,$t)=>{const Tt=_r($t,Bt),{filterMultiple:Qt=!0,filterMode:In,filterSearch:Cn}=Mt;let Rn=Mt;if(Rn.filters||Rn.filterDropdown){const sa=hr(Rn,Tt),qn=Ge.find(oa=>{let{key:ea}=oa;return sa===ea});Rn=Object.assign(Object.assign({},Rn),{title:oa=>ue.createElement(gt,{tablePrefixCls:fe,prefixCls:`${fe}-filter`,dropdownPrefixCls:me,column:Rn,columnKey:sa,filterState:qn,filterMultiple:Qt,filterMode:In,filterSearch:Cn,triggerFilter:Xe,locale:nt,getPopupContainer:Rt},no(Mt.title,oa))})}return"children"in Rn&&(Rn=Object.assign(Object.assign({},Rn),{children:zt(fe,me,Rn.children,Ge,nt,Xe,Rt,Tt)})),Rn})}function wn(fe){const me={};return fe.forEach(Me=>{let{key:Ge,filteredKeys:nt,column:Xe}=Me;const{filters:Rt,filterDropdown:Bt}=Xe;if(Bt)me[Ge]=nt||null;else if(Array.isArray(nt)){const Mt=Ri(Rt);me[Ge]=Mt.filter($t=>nt.includes(String($t)))}else me[Ge]=null}),me}function Dn(fe,me){return me.reduce((Me,Ge)=>{const{column:{onFilter:nt,filters:Xe},filteredKeys:Rt}=Ge;return nt&&Rt&&Rt.length?Me.filter(Bt=>Rt.some(Mt=>{const $t=Ri(Xe),Tt=$t.findIndex(In=>String(In)===String(Mt)),Qt=Tt!==-1?$t[Tt]:Mt;return nt(Qt,Bt)})):Me},fe)}const Pn=fe=>fe.flatMap(me=>"children"in me?[me].concat((0,xn.Z)(Pn(me.children||[]))):[me]);function hn(fe){let{prefixCls:me,dropdownPrefixCls:Me,mergedColumns:Ge,onFilterChange:nt,getPopupContainer:Xe,locale:Rt}=fe;const Bt=ue.useMemo(()=>Pn(Ge||[]),[Ge]),[Mt,$t]=ue.useState(()=>ht(Bt,!0)),Tt=ue.useMemo(()=>{const Rn=ht(Bt,!1);if(Rn.length===0)return Rn;let sa=!0,qn=!0;if(Rn.forEach(oa=>{let{filteredKeys:ea}=oa;ea!==void 0?sa=!1:qn=!1}),sa){const oa=(Bt||[]).map((ea,Ca)=>hr(ea,_r(Ca)));return Mt.filter(ea=>{let{key:Ca}=ea;return oa.includes(Ca)}).map(ea=>{const Ca=Bt[oa.findIndex(Ua=>Ua===ea.key)];return Object.assign(Object.assign({},ea),{column:Object.assign(Object.assign({},ea.column),Ca),forceFiltered:Ca.filtered})})}return Rn},[Bt,Mt]),Qt=ue.useMemo(()=>wn(Tt),[Tt]),In=Rn=>{const sa=Tt.filter(qn=>{let{key:oa}=qn;return oa!==Rn.key});sa.push(Rn),$t(sa),nt(wn(sa),sa)};return[Rn=>zt(me,Me,Rn,Tt,Rt,In,Xe),Tt,Qt]}var kt=hn;function dn(fe,me,Me){const Ge=ue.useRef({});function nt(Xe){if(!Ge.current||Ge.current.data!==fe||Ge.current.childrenColumnName!==me||Ge.current.getRowKey!==Me){let Bt=function(Mt){Mt.forEach(($t,Tt)=>{const Qt=Me($t,Tt);Rt.set(Qt,$t),$t&&typeof $t=="object"&&me in $t&&Bt($t[me]||[])})};const Rt=new Map;Bt(fe),Ge.current={data:fe,childrenColumnName:me,kvMap:Rt,getRowKey:Me}}return Ge.current.kvMap.get(Xe)}return[nt]}var _n=ae(50371),la=function(fe,me){var Me={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&me.indexOf(Ge)<0&&(Me[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ge=Object.getOwnPropertySymbols(fe);nt<Ge.length;nt++)me.indexOf(Ge[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[nt])&&(Me[Ge[nt]]=fe[Ge[nt]]);return Me};const or=10;function Qa(fe,me){const Me={current:fe.current,pageSize:fe.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(nt=>{const Xe=fe[nt];typeof Xe!="function"&&(Me[nt]=Xe)}),Me}function ao(fe,me,Me){const Ge=Me&&typeof Me=="object"?Me:{},{total:nt=0}=Ge,Xe=la(Ge,["total"]),[Rt,Bt]=(0,ue.useState)(()=>({current:"defaultCurrent"in Xe?Xe.defaultCurrent:1,pageSize:"defaultPageSize"in Xe?Xe.defaultPageSize:or})),Mt=(0,_n.Z)(Rt,Xe,{total:nt>0?nt:fe}),$t=Math.ceil((nt||fe)/Mt.pageSize);Mt.current>$t&&(Mt.current=$t||1);const Tt=(In,Cn)=>{Bt({current:In!=null?In:1,pageSize:Cn||Mt.pageSize})},Qt=(In,Cn)=>{var Rn;Me&&((Rn=Me.onChange)===null||Rn===void 0||Rn.call(Me,In,Cn)),Tt(In,Cn),me(In,Cn||(Mt==null?void 0:Mt.pageSize))};return Me===!1?[{},()=>{}]:[Object.assign(Object.assign({},Mt),{onChange:Qt}),Tt]}var Fr=ao,Ia=ae(84105),ca=ae(35654),Kn=ae(90782),sr=ae(71430),mr=ae(18929);const Br={},Jr="SELECT_ALL",dr="SELECT_INVERT",kr="SELECT_NONE",cr=[],ya=(fe,me)=>{let Me=[];return(me||[]).forEach(Ge=>{Me.push(Ge),Ge&&typeof Ge=="object"&&fe in Ge&&(Me=[].concat((0,xn.Z)(Me),(0,xn.Z)(ya(fe,Ge[fe]))))}),Me};var Vr=(fe,me)=>{const{preserveSelectedRowKeys:Me,selectedRowKeys:Ge,defaultSelectedRowKeys:nt,getCheckboxProps:Xe,onChange:Rt,onSelect:Bt,onSelectAll:Mt,onSelectInvert:$t,onSelectNone:Tt,onSelectMultiple:Qt,columnWidth:In,type:Cn,selections:Rn,fixed:sa,renderCell:qn,hideSelectAll:oa,checkStrictly:ea=!0}=me||{},{prefixCls:Ca,data:Ua,pageData:Ja,getRecordByKey:Ma,getRowKey:gr,expandType:Sr,childrenColumnName:wa,locale:Za,getPopupContainer:Da}=fe,[ha,Na]=(0,mr.Z)(Ge||nt||cr,{value:Ge}),ur=ue.useRef(new Map),Ar=(0,ue.useCallback)(ir=>{if(Me){const nr=new Map;ir.forEach(Xa=>{let Ka=Ma(Xa);!Ka&&ur.current.has(Xa)&&(Ka=ur.current.get(Xa)),nr.set(Xa,Ka)}),ur.current=nr}},[Ma,Me]);ue.useEffect(()=>{Ar(ha)},[ha]);const{keyEntities:pr}=(0,ue.useMemo)(()=>{if(ea)return{keyEntities:null};let ir=Ua;if(Me){const nr=new Set(Ua.map((Ka,ro)=>gr(Ka,ro))),Xa=Array.from(ur.current).reduce((Ka,ro)=>{let[Ha,vr]=ro;return nr.has(Ha)?Ka:Ka.concat(vr)},[]);ir=[].concat((0,xn.Z)(ir),(0,xn.Z)(Xa))}return(0,sr.I8)(ir,{externalGetKey:gr,childrenPropName:wa})},[Ua,gr,ea,wa,Me]),tr=(0,ue.useMemo)(()=>ya(wa,Ja),[wa,Ja]),wr=(0,ue.useMemo)(()=>{const ir=new Map;return tr.forEach((nr,Xa)=>{const Ka=gr(nr,Xa),ro=(Xe?Xe(nr):null)||{};ir.set(Ka,ro)}),ir},[tr,gr,Xe]),Zr=(0,ue.useCallback)(ir=>{var nr;return!!(!((nr=wr.get(gr(ir)))===null||nr===void 0)&&nr.disabled)},[wr,gr]),[Io,to]=(0,ue.useMemo)(()=>{if(ea)return[ha||[],[]];const{checkedKeys:ir,halfCheckedKeys:nr}=(0,Kn.S)(ha,!0,pr,Zr);return[ir||[],nr]},[ha,ea,pr,Zr]),Wo=(0,ue.useMemo)(()=>{const ir=Cn==="radio"?Io.slice(0,1):Io;return new Set(ir)},[Io,Cn]),Ao=(0,ue.useMemo)(()=>Cn==="radio"?new Set:new Set(to),[to,Cn]),[Pr,Vo]=(0,ue.useState)(null);ue.useEffect(()=>{me||Na(cr)},[!!me]);const $r=(0,ue.useCallback)((ir,nr)=>{let Xa,Ka;Ar(ir),Me?(Xa=ir,Ka=ir.map(ro=>ur.current.get(ro))):(Xa=[],Ka=[],ir.forEach(ro=>{const Ha=Ma(ro);Ha!==void 0&&(Xa.push(ro),Ka.push(Ha))})),Na(Xa),Rt==null||Rt(Xa,Ka,{type:nr})},[Na,Ma,Rt,Me]),To=(0,ue.useCallback)((ir,nr,Xa,Ka)=>{if(Bt){const ro=Xa.map(Ha=>Ma(Ha));Bt(Ma(ir),nr,ro,Ka)}$r(Xa,"single")},[Bt,Ma,$r]),Oo=(0,ue.useMemo)(()=>!Rn||oa?null:(Rn===!0?[Jr,dr,kr]:Rn).map(nr=>nr===Jr?{key:"all",text:Za.selectionAll,onSelect(){$r(Ua.map((Xa,Ka)=>gr(Xa,Ka)).filter(Xa=>{const Ka=wr.get(Xa);return!(Ka!=null&&Ka.disabled)||Wo.has(Xa)}),"all")}}:nr===dr?{key:"invert",text:Za.selectInvert,onSelect(){const Xa=new Set(Wo);Ja.forEach((ro,Ha)=>{const vr=gr(ro,Ha),Qr=wr.get(vr);Qr!=null&&Qr.disabled||(Xa.has(vr)?Xa.delete(vr):Xa.add(vr))});const Ka=Array.from(Xa);$t&&$t(Ka),$r(Ka,"invert")}}:nr===kr?{key:"none",text:Za.selectNone,onSelect(){Tt==null||Tt(),$r(Array.from(Wo).filter(Xa=>{const Ka=wr.get(Xa);return Ka==null?void 0:Ka.disabled}),"none")}}:nr).map(nr=>Object.assign(Object.assign({},nr),{onSelect:function(){for(var Xa,Ka,ro=arguments.length,Ha=new Array(ro),vr=0;vr<ro;vr++)Ha[vr]=arguments[vr];(Ka=nr.onSelect)===null||Ka===void 0||(Xa=Ka).call.apply(Xa,[nr].concat(Ha)),Vo(null)}})),[Rn,Wo,Ja,gr,$t,$r]);return[(0,ue.useCallback)(ir=>{var nr;if(!me)return ir.filter(uo=>uo!==Br);let Xa=(0,xn.Z)(ir);const Ka=new Set(Wo),ro=tr.map(gr).filter(uo=>!wr.get(uo).disabled),Ha=ro.every(uo=>Ka.has(uo)),vr=ro.some(uo=>Ka.has(uo)),Qr=()=>{const uo=[];Ha?ro.forEach(No=>{Ka.delete(No),uo.push(No)}):ro.forEach(No=>{Ka.has(No)||(Ka.add(No),uo.push(No))});const vo=Array.from(Ka);Mt==null||Mt(!Ha,vo.map(No=>Ma(No)),uo.map(No=>Ma(No))),$r(vo,"all"),Vo(null)};let Kr;if(Cn!=="radio"){let uo;if(Oo){const zr={getPopupContainer:Da,items:Oo.map((hi,Si)=>{const{key:pi,text:dl,onSelect:nl}=hi;return{key:pi!=null?pi:Si,onClick:()=>{nl==null||nl(ro)},label:dl}})};uo=ue.createElement("div",{className:`${Ca}-selection-extra`},ue.createElement(Xo.Z,{menu:zr,getPopupContainer:Da},ue.createElement("span",null,ue.createElement(Ia.Z,null))))}const vo=tr.map((zr,hi)=>{const Si=gr(zr,hi),pi=wr.get(Si)||{};return Object.assign({checked:Ka.has(Si)},pi)}).filter(zr=>{let{disabled:hi}=zr;return hi}),No=!!vo.length&&vo.length===tr.length,jo=No&&vo.every(zr=>{let{checked:hi}=zr;return hi}),Qo=No&&vo.some(zr=>{let{checked:hi}=zr;return hi});Kr=!oa&&ue.createElement("div",{className:`${Ca}-selection`},ue.createElement(Wr.default,{checked:No?jo:!!tr.length&&Ha,indeterminate:No?!jo&&Qo:!Ha&&vr,onChange:Qr,disabled:tr.length===0||No,"aria-label":uo?"Custom selection":"Select all",skipGroup:!0}),uo)}let di;Cn==="radio"?di=(uo,vo,No)=>{const jo=gr(vo,No),Qo=Ka.has(jo);return{node:ue.createElement(il.ZP,Object.assign({},wr.get(jo),{checked:Qo,onClick:zr=>zr.stopPropagation(),onChange:zr=>{Ka.has(jo)||To(jo,!0,[jo],zr.nativeEvent)}})),checked:Qo}}:di=(uo,vo,No)=>{var jo;const Qo=gr(vo,No),zr=Ka.has(Qo),hi=Ao.has(Qo),Si=wr.get(Qo);let pi;return Sr==="nest"?pi=hi:pi=(jo=Si==null?void 0:Si.indeterminate)!==null&&jo!==void 0?jo:hi,{node:ue.createElement(Wr.default,Object.assign({},Si,{indeterminate:pi,checked:zr,skipGroup:!0,onClick:dl=>dl.stopPropagation(),onChange:dl=>{let{nativeEvent:nl}=dl;const{shiftKey:Pi}=nl;let al=-1,Hi=-1;if(Pi&&ea){const Ii=new Set([Pr,Qo]);ro.some((Ei,Ko)=>{if(Ii.has(Ei))if(al===-1)al=Ko;else return Hi=Ko,!0;return!1})}if(Hi!==-1&&al!==Hi&&ea){const Ii=ro.slice(al,Hi+1),Ei=[];zr?Ii.forEach(ko=>{Ka.has(ko)&&(Ei.push(ko),Ka.delete(ko))}):Ii.forEach(ko=>{Ka.has(ko)||(Ei.push(ko),Ka.add(ko))});const Ko=Array.from(Ka);Qt==null||Qt(!zr,Ko.map(ko=>Ma(ko)),Ei.map(ko=>Ma(ko))),$r(Ko,"multiple")}else{const Ii=Io;if(ea){const Ei=zr?(0,ca._5)(Ii,Qo):(0,ca.L0)(Ii,Qo);To(Qo,!zr,Ei,nl)}else{const Ei=(0,Kn.S)([].concat((0,xn.Z)(Ii),[Qo]),!0,pr,Zr),{checkedKeys:Ko,halfCheckedKeys:ko}=Ei;let cl=Ko;if(zr){const Ll=new Set(Ko);Ll.delete(Qo),cl=(0,Kn.S)(Array.from(Ll),{checked:!1,halfCheckedKeys:ko},pr,Zr).checkedKeys}To(Qo,!zr,cl,nl)}}Vo(zr?null:Qo)}})),checked:zr}};const ci=(uo,vo,No)=>{const{node:jo,checked:Qo}=di(uo,vo,No);return qn?qn(Qo,vo,No,jo):jo};if(!Xa.includes(Br))if(Xa.findIndex(uo=>{var vo;return((vo=uo[xa])===null||vo===void 0?void 0:vo.columnType)==="EXPAND_COLUMN"})===0){const[uo,...vo]=Xa;Xa=[uo,Br].concat((0,xn.Z)(vo))}else Xa=[Br].concat((0,xn.Z)(Xa));const Gi=Xa.indexOf(Br);Xa=Xa.filter((uo,vo)=>uo!==Br||vo===Gi);const ei=Xa[Gi-1],Vi=Xa[Gi+1];let ti=sa;ti===void 0&&((Vi==null?void 0:Vi.fixed)!==void 0?ti=Vi.fixed:(ei==null?void 0:ei.fixed)!==void 0&&(ti=ei.fixed)),ti&&ei&&((nr=ei[xa])===null||nr===void 0?void 0:nr.columnType)==="EXPAND_COLUMN"&&ei.fixed===void 0&&(ei.fixed=ti);const Ai=je()(`${Ca}-selection-col`,{[`${Ca}-selection-col-with-dropdown`]:Rn&&Cn==="checkbox"}),Ol={fixed:ti,width:In,className:`${Ca}-selection-column`,title:me.columnTitle||Kr,render:ci,onCell:me.onCell,[xa]:{className:Ai}};return Xa.map(uo=>uo===Br?Ol:uo)},[gr,tr,me,Io,Wo,Ao,In,Oo,Sr,Pr,wr,Qt,To,Zr]),Wo]},bo=ae(89489),ri=ae(59477),ji=ae(6848);const ze="ascend",at="descend";function mt(fe){return typeof fe.sorter=="object"&&typeof fe.sorter.multiple=="number"?fe.sorter.multiple:!1}function xt(fe){return typeof fe=="function"?fe:fe&&typeof fe=="object"&&fe.compare?fe.compare:!1}function fn(fe,me){return me?fe[fe.indexOf(me)+1]:fe[0]}function On(fe,me,Me){let Ge=[];function nt(Xe,Rt){Ge.push({column:Xe,key:hr(Xe,Rt),multiplePriority:mt(Xe),sortOrder:Xe.sortOrder})}return(fe||[]).forEach((Xe,Rt)=>{const Bt=_r(Rt,Me);Xe.children?("sortOrder"in Xe&&nt(Xe,Bt),Ge=[].concat((0,xn.Z)(Ge),(0,xn.Z)(On(Xe.children,me,Bt)))):Xe.sorter&&("sortOrder"in Xe?nt(Xe,Bt):me&&Xe.defaultSortOrder&&Ge.push({column:Xe,key:hr(Xe,Bt),multiplePriority:mt(Xe),sortOrder:Xe.defaultSortOrder}))}),Ge}function Xn(fe,me,Me,Ge,nt,Xe,Rt,Bt){return(me||[]).map((Mt,$t)=>{const Tt=_r($t,Bt);let Qt=Mt;if(Qt.sorter){const In=Qt.sortDirections||nt,Cn=Qt.showSorterTooltip===void 0?Rt:Qt.showSorterTooltip,Rn=hr(Qt,Tt),sa=Me.find(Sr=>{let{key:wa}=Sr;return wa===Rn}),qn=sa?sa.sortOrder:null,oa=fn(In,qn);let ea;if(Mt.sortIcon)ea=Mt.sortIcon({sortOrder:qn});else{const Sr=In.includes(ze)&&ue.createElement(ri.Z,{className:je()(`${fe}-column-sorter-up`,{active:qn===ze})}),wa=In.includes(at)&&ue.createElement(bo.Z,{className:je()(`${fe}-column-sorter-down`,{active:qn===at})});ea=ue.createElement("span",{className:je()(`${fe}-column-sorter`,{[`${fe}-column-sorter-full`]:!!(Sr&&wa)})},ue.createElement("span",{className:`${fe}-column-sorter-inner`,"aria-hidden":"true"},Sr,wa))}const{cancelSort:Ca,triggerAsc:Ua,triggerDesc:Ja}=Xe||{};let Ma=Ca;oa===at?Ma=Ja:oa===ze&&(Ma=Ua);const gr=typeof Cn=="object"?Cn:{title:Ma};Qt=Object.assign(Object.assign({},Qt),{className:je()(Qt.className,{[`${fe}-column-sort`]:qn}),title:Sr=>{const wa=ue.createElement("div",{className:`${fe}-column-sorters`},ue.createElement("span",{className:`${fe}-column-title`},no(Mt.title,Sr)),ea);return Cn?ue.createElement(ji.Z,Object.assign({},gr),wa):wa},onHeaderCell:Sr=>{const wa=Mt.onHeaderCell&&Mt.onHeaderCell(Sr)||{},Za=wa.onClick,Da=wa.onKeyDown;wa.onClick=ur=>{Ge({column:Mt,key:Rn,sortOrder:oa,multiplePriority:mt(Mt)}),Za==null||Za(ur)},wa.onKeyDown=ur=>{ur.keyCode===ul.Z.ENTER&&(Ge({column:Mt,key:Rn,sortOrder:oa,multiplePriority:mt(Mt)}),Da==null||Da(ur))};const ha=fo(Mt.title,{}),Na=ha==null?void 0:ha.toString();return qn?wa["aria-sort"]=qn==="ascend"?"ascending":"descending":wa["aria-label"]=Na||"",wa.className=je()(wa.className,`${fe}-column-has-sorters`),wa.tabIndex=0,Mt.ellipsis&&(wa.title=(ha!=null?ha:"").toString()),wa}})}return"children"in Qt&&(Qt=Object.assign(Object.assign({},Qt),{children:Xn(fe,Qt.children,Me,Ge,nt,Xe,Rt,Tt)})),Qt})}function Hn(fe){const{column:me,sortOrder:Me}=fe;return{column:me,order:Me,field:me.dataIndex,columnKey:me.key}}function Tn(fe){const me=fe.filter(Me=>{let{sortOrder:Ge}=Me;return Ge}).map(Hn);return me.length===0&&fe.length?Object.assign(Object.assign({},Hn(fe[fe.length-1])),{column:void 0}):me.length<=1?me[0]||{}:me}function un(fe,me,Me){const Ge=me.slice().sort((Rt,Bt)=>Bt.multiplePriority-Rt.multiplePriority),nt=fe.slice(),Xe=Ge.filter(Rt=>{let{column:{sorter:Bt},sortOrder:Mt}=Rt;return xt(Bt)&&Mt});return Xe.length?nt.sort((Rt,Bt)=>{for(let Mt=0;Mt<Xe.length;Mt+=1){const $t=Xe[Mt],{column:{sorter:Tt},sortOrder:Qt}=$t,In=xt(Tt);if(In&&Qt){const Cn=In(Rt,Bt,Qt);if(Cn!==0)return Qt===ze?Cn:-Cn}}return 0}).map(Rt=>{const Bt=Rt[Me];return Bt?Object.assign(Object.assign({},Rt),{[Me]:un(Bt,me,Me)}):Rt}):nt}function Gn(fe){let{prefixCls:me,mergedColumns:Me,onSorterChange:Ge,sortDirections:nt,tableLocale:Xe,showSorterTooltip:Rt}=fe;const[Bt,Mt]=ue.useState(On(Me,!0)),$t=ue.useMemo(()=>{let Rn=!0;const sa=On(Me,!1);if(!sa.length)return Bt;const qn=[];function oa(Ca){Rn?qn.push(Ca):qn.push(Object.assign(Object.assign({},Ca),{sortOrder:null}))}let ea=null;return sa.forEach(Ca=>{ea===null?(oa(Ca),Ca.sortOrder&&(Ca.multiplePriority===!1?Rn=!1:ea=!0)):(ea&&Ca.multiplePriority!==!1||(Rn=!1),oa(Ca))}),qn},[Me,Bt]),Tt=ue.useMemo(()=>{const Rn=$t.map(sa=>{let{column:qn,sortOrder:oa}=sa;return{column:qn,order:oa}});return{sortColumns:Rn,sortColumn:Rn[0]&&Rn[0].column,sortOrder:Rn[0]&&Rn[0].order}},[$t]);function Qt(Rn){let sa;Rn.multiplePriority===!1||!$t.length||$t[0].multiplePriority===!1?sa=[Rn]:sa=[].concat((0,xn.Z)($t.filter(qn=>{let{key:oa}=qn;return oa!==Rn.key})),[Rn]),Mt(sa),Ge(Tn(sa),sa)}return[Rn=>Xn(me,Rn,$t,Qt,nt,Xe,Rt),$t,Tt,()=>Tn($t)]}function da(fe,me){return fe.map(Me=>{const Ge=Object.assign({},Me);return Ge.title=no(Me.title,me),"children"in Ge&&(Ge.children=da(Ge.children,me)),Ge})}function qa(fe){return[ue.useCallback(Me=>da(Me,fe),[fe])]}var Ya=fr((fe,me)=>{const{_renderTimes:Me}=fe,{_renderTimes:Ge}=me;return Me!==Ge}),Qn=Uo((fe,me)=>{const{_renderTimes:Me}=fe,{_renderTimes:Ge}=me;return Me!==Ge}),Vn=ae(64993),Ln=ae(17313),jn=ae(83116),Fa=ae(37613),ba=fe=>{const{componentCls:me}=fe,Me=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,Ge=(nt,Xe,Rt)=>({[`&${me}-${nt}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${Xe}px -${Rt+fe.lineWidth}px`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:Me,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:Me,borderTop:Me,[`
> ${me}-content,
> ${me}-header,
> ${me}-body,
> ${me}-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:Me},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Me},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:Me}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${fe.tablePaddingVertical}px -${fe.tablePaddingHorizontal+fe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:fe.lineWidth,bottom:0,borderInlineEnd:Me,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
> tr${me}-expanded-row,
> tr${me}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ge("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle)),Ge("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:Me,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${fe.lineWidth}px 0 ${fe.lineWidth}px ${fe.tableHeaderBg}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:Me}}}},fa=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},Ln.vS),{wordBreak:"keep-all",[`
&${me}-cell-fix-left-last,
&${me}-cell-fix-right-first
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},va=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:fe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:fe.colorBgContainer}}}}},Ir=ae(15969),Fo=fe=>{const{componentCls:me,antCls:Me,controlInteractiveSize:Ge,motionDurationSlow:nt,lineWidth:Xe,paddingXS:Rt,lineType:Bt,tableBorderColor:Mt,tableExpandIconBg:$t,tableExpandColumnWidth:Tt,borderRadius:Qt,fontSize:In,fontSizeSM:Cn,lineHeight:Rn,tablePaddingVertical:sa,tablePaddingHorizontal:qn,tableExpandedRowBg:oa,paddingXXS:ea}=fe,Ca=Ge/2-Xe,Ua=Ca*2+Xe*3,Ja=`${Xe}px ${Bt} ${Mt}`,Ma=ea-Xe;return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:Tt},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ir.N)(fe)),{position:"relative",float:"left",boxSizing:"border-box",width:Ua,height:Ua,padding:0,color:"inherit",lineHeight:`${Ua}px`,background:$t,border:Ja,borderRadius:Qt,transform:`scale(${Ge/Ua})`,transition:`all ${nt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${nt} ease-out`,content:'""'},"&::before":{top:Ca,insetInlineEnd:Ma,insetInlineStart:Ma,height:Xe},"&::after":{top:Ma,bottom:Ma,insetInlineStart:Ca,width:Xe,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"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:(In*Rn-Xe*3)/2-Math.ceil((Cn*1.4-Xe*3)/2),marginInlineEnd:Rt},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:oa}},[`${Me}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`-${sa}px -${qn}px`,padding:`${sa}px ${qn}px`}}}},er=fe=>{const{componentCls:me,antCls:Me,iconCls:Ge,tableFilterDropdownWidth:nt,tableFilterDropdownSearchWidth:Xe,paddingXXS:Rt,paddingXS:Bt,colorText:Mt,lineWidth:$t,lineType:Tt,tableBorderColor:Qt,tableHeaderIconColor:In,fontSizeSM:Cn,tablePaddingHorizontal:Rn,borderRadius:sa,motionDurationSlow:qn,colorTextDescription:oa,colorPrimary:ea,tableHeaderFilterActiveBg:Ca,colorTextDisabled:Ua,tableFilterDropdownBg:Ja,tableFilterDropdownHeight:Ma,controlItemBgHover:gr,controlItemBgActive:Sr,boxShadowSecondary:wa,filterDropdownMenuBg:Za}=fe,Da=`${Me}-dropdown`,ha=`${me}-filter-dropdown`,Na=`${Me}-tree`,ur=`${$t}px ${Tt} ${Qt}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Rt,marginInline:`${Rt}px ${-Rn/2}px`,padding:`0 ${Rt}px`,color:In,fontSize:Cn,borderRadius:sa,cursor:"pointer",transition:`all ${qn}`,"&:hover":{color:oa,background:Ca},"&.active":{color:ea}}}},{[`${Me}-dropdown`]:{[ha]:Object.assign(Object.assign({},(0,Ln.Wf)(fe)),{minWidth:nt,backgroundColor:Ja,borderRadius:sa,boxShadow:wa,overflow:"hidden",[`${Da}-menu`]:{maxHeight:Ma,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Za,"&:empty::after":{display:"block",padding:`${Bt}px 0`,color:Ua,fontSize:Cn,textAlign:"center",content:'"Not Found"'}},[`${ha}-tree`]:{paddingBlock:`${Bt}px 0`,paddingInline:Bt,[Na]:{padding:0},[`${Na}-treenode ${Na}-node-content-wrapper:hover`]:{backgroundColor:gr},[`${Na}-treenode-checkbox-checked ${Na}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Sr}}},[`${ha}-search`]:{padding:Bt,borderBottom:ur,"&-input":{input:{minWidth:Xe},[Ge]:{color:Ua}}},[`${ha}-checkall`]:{width:"100%",marginBottom:Rt,marginInlineStart:Rt},[`${ha}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Bt-$t}px ${Bt}px`,overflow:"hidden",borderTop:ur}})}},{[`${Me}-dropdown ${ha}, ${ha}-submenu`]:{[`${Me}-checkbox-wrapper + span`]:{paddingInlineStart:Bt,color:Mt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fi=fe=>{const{componentCls:me,lineWidth:Me,colorSplit:Ge,motionDurationSlow:nt,zIndexTableFixed:Xe,tableBg:Rt,zIndexTableSticky:Bt}=fe,Mt=Ge;return{[`${me}-wrapper`]:{[`
${me}-cell-fix-left,
${me}-cell-fix-right
`]:{position:"sticky !important",zIndex:Xe,background:Rt},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Me,width:30,transform:"translateX(100%)",transition:`box-shadow ${nt}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Me,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${nt}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Bt+1,width:30,transition:`box-shadow ${nt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Mt}`}},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Mt}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Mt}`}},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Mt}`}}}}},Co=fe=>{const{componentCls:me,antCls:Me}=fe;return{[`${me}-wrapper`]:{[`${me}-pagination${Me}-pagination`]:{margin:`${fe.margin}px 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:fe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Do=fe=>{const{componentCls:me,tableRadius:Me}=fe;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${Me}px ${Me}px 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-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:Me,borderStartEndRadius:Me,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Me},"> *:last-child":{borderStartEndRadius:Me}}},"&-footer":{borderRadius:`0 0 ${Me}px ${Me}px`}}}}},gl=fe=>{const{componentCls:me}=fe;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},wl=fe=>{const{componentCls:me,antCls:Me,iconCls:Ge,fontSizeIcon:nt,padding:Xe,paddingXS:Rt,tableHeaderIconColor:Bt,tableHeaderIconColorHover:Mt,tableSelectionColumnWidth:$t}=fe;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:$t,[`&${me}-selection-col-with-dropdown`]:{width:$t+nt+Xe/4}},[`${me}-bordered ${me}-selection-col`]:{width:$t+Rt*2,[`&${me}-selection-col-with-dropdown`]:{width:$t+nt+Xe/4+Rt*2}},[`
table tr th${me}-selection-column,
table tr td${me}-selection-column
`]:{paddingInlineEnd:fe.paddingXS,paddingInlineStart:fe.paddingXS,textAlign:"center",[`${Me}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:fe.zIndexTableFixed+1},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${fe.tablePaddingHorizontal/4}px`,[Ge]:{color:Bt,fontSize:nt,verticalAlign:"baseline","&:hover":{color:Mt}}}}}},Tl=fe=>{const{componentCls:me}=fe,Me=(Ge,nt,Xe,Rt)=>({[`${me}${me}-${Ge}`]:{fontSize:Rt,[`
${me}-title,
${me}-footer,
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${nt}px ${Xe}px`},[`${me}-filter-trigger`]:{marginInlineEnd:`-${Xe/2}px`},[`${me}-expanded-row-fixed`]:{margin:`-${nt}px -${Xe}px`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:`-${nt}px`,marginInline:`${fe.tableExpandColumnWidth-Xe}px -${Xe}px`}},[`${me}-selection-column`]:{paddingInlineStart:`${Xe/4}px`}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Me("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle,fe.tableFontSizeMiddle)),Me("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall,fe.tableFontSizeSmall))}},vl=fe=>{const{componentCls:me,marginXXS:Me,fontSizeIcon:Ge,tableHeaderIconColor:nt,tableHeaderIconColorHover:Xe}=fe;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,"&:hover":{background:fe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:fe.colorPrimary},[`
&${me}-cell-fix-left:hover,
&${me}-cell-fix-right:hover
`]:{background:fe.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:fe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:fe.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorter`]:{marginInlineStart:Me,color:nt,fontSize:0,transition:`color ${fe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ge,"&.active":{color:fe.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:Xe}}}},Il=fe=>{const{componentCls:me,opacityLoading:Me,tableScrollThumbBg:Ge,tableScrollThumbBgHover:nt,tableScrollThumbSize:Xe,tableScrollBg:Rt,zIndexTableSticky:Bt,stickyScrollBarBorderRadius:Mt}=fe,$t=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:Bt,background:fe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xe}px !important`,zIndex:Bt,display:"flex",alignItems:"center",background:Rt,borderTop:$t,opacity:Me,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Xe,backgroundColor:Ge,borderRadius:Mt,transition:`all ${fe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:nt}}}}}}},sl=fe=>{const{componentCls:me,lineWidth:Me,tableBorderColor:Ge}=fe,nt=`${Me}px ${fe.lineType} ${Ge}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:fe.zIndexTableFixed,background:fe.tableBg,"> tr":{"> th, > td":{borderBottom:nt}}},[`div${me}-summary`]:{boxShadow:`0 -${Me}px 0 ${Ge}`}}}},Nl=fe=>{const{componentCls:me}=fe,Me=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,Ge=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${me}-cell`]:{borderBottom:Me},[`${me}-expanded-row`]:{[`${Ge}${Ge}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${fe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Me,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:Me,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-fe.lineWidth,borderInlineStart:Me}}}}}}};const Kl=fe=>{const{componentCls:me,fontWeightStrong:Me,tablePaddingVertical:Ge,tablePaddingHorizontal:nt,lineWidth:Xe,lineType:Rt,tableBorderColor:Bt,tableFontSize:Mt,tableBg:$t,tableRadius:Tt,tableHeaderTextColor:Qt,motionDurationMid:In,tableHeaderBg:Cn,tableHeaderCellSplitColor:Rn,tableRowHoverBg:sa,tableSelectedRowBg:qn,tableSelectedRowHoverBg:oa,tableFooterTextColor:ea,tableFooterBg:Ca,paddingContentVerticalLG:Ua}=fe,Ja=`${Xe}px ${Rt} ${Bt}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ln.dF)()),{[me]:Object.assign(Object.assign({},(0,Ln.Wf)(fe)),{fontSize:Mt,background:$t,borderRadius:`${Tt}px ${Tt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Tt}px ${Tt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ua}px ${nt}px`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${Ge}px ${nt}px`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Qt,fontWeight:Me,textAlign:"start",background:Cn,borderBottom:Ja,transition:`background ${In} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Rn,transform:"translateY(-50%)",transition:`background-color ${In}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${In}, border-color ${In}`,borderBottom:Ja,[`
> ${me}-wrapper:only-child,
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
`]:{[me]:{marginBlock:`-${Ge}px`,marginInline:`${fe.tableExpandColumnWidth-nt}px -${nt}px`,[`${me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Qt,fontWeight:Me,textAlign:"start",background:Cn,borderBottom:Ja,transition:`background ${In} ease`},[`
&${me}-row:hover > th,
&${me}-row:hover > td,
> th${me}-cell-row-hover,
> td${me}-cell-row-hover
`]:{background:sa},[`&${me}-row-selected`]:{"> th, > td":{background:qn},"&:hover > th, &:hover > td":{background:oa}}}},[`${me}-footer`]:{padding:`${Ge}px ${nt}px`,color:ea,background:Ca}})}};var Ul=(0,jn.Z)("Table",fe=>{const{colorTextHeading:me,colorSplit:Me,colorIcon:Ge,colorIconHover:nt,opacityLoading:Xe,colorBgContainer:Rt,controlInteractiveSize:Bt,headerBg:Mt,headerColor:$t,headerSortActiveBg:Tt,headerSortHoverBg:Qt,bodySortBg:In,rowHoverBg:Cn,rowSelectedBg:Rn,rowSelectedHoverBg:sa,rowExpandedBg:qn,cellPaddingBlock:oa,cellPaddingInline:ea,cellPaddingBlockMD:Ca,cellPaddingInlineMD:Ua,cellPaddingBlockSM:Ja,cellPaddingInlineSM:Ma,borderColor:gr,footerBg:Sr,footerColor:wa,headerBorderRadius:Za,cellFontSize:Da,cellFontSizeMD:ha,cellFontSizeSM:Na,headerSplitColor:ur,fixedHeaderSortActiveBg:Ar,headerFilterHoverBg:pr,filterDropdownBg:tr,expandIconBg:wr,selectionColumnWidth:Zr,stickyScrollBarBg:Io}=fe,to=new Vn.C(Ge),Wo=new Vn.C(nt),Ao=2,Pr=(0,Fa.TS)(fe,{tableFontSize:Da,tableBg:Rt,tableRadius:Za,tablePaddingVertical:oa,tablePaddingHorizontal:ea,tablePaddingVerticalMiddle:Ca,tablePaddingHorizontalMiddle:Ua,tablePaddingVerticalSmall:Ja,tablePaddingHorizontalSmall:Ma,tableBorderColor:gr,tableHeaderTextColor:$t,tableHeaderBg:Mt,tableFooterTextColor:wa,tableFooterBg:Sr,tableHeaderCellSplitColor:ur,tableHeaderSortBg:Tt,tableHeaderSortHoverBg:Qt,tableHeaderIconColor:to.clone().setAlpha(to.getAlpha()*Xe).toRgbString(),tableHeaderIconColorHover:Wo.clone().setAlpha(Wo.getAlpha()*Xe).toRgbString(),tableBodySortBg:In,tableFixedHeaderSortActiveBg:Ar,tableHeaderFilterActiveBg:pr,tableFilterDropdownBg:tr,tableRowHoverBg:Cn,tableSelectedRowBg:Rn,tableSelectedRowHoverBg:sa,zIndexTableFixed:Ao,zIndexTableSticky:Ao+1,tableFontSizeMiddle:ha,tableFontSizeSmall:Na,tableSelectionColumnWidth:Zr,tableExpandIconBg:wr,tableExpandColumnWidth:Bt+2*fe.padding,tableExpandedRowBg:qn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Io,tableScrollThumbBgHover:me,tableScrollBg:Me});return[Kl(Pr),Co(Pr),sl(Pr),vl(Pr),er(Pr),ba(Pr),Do(Pr),Fo(Pr),sl(Pr),va(Pr),wl(Pr),fi(Pr),Il(Pr),fa(Pr),Tl(Pr),gl(Pr),Nl(Pr)]},fe=>{const{colorFillAlter:me,colorBgContainer:Me,colorTextHeading:Ge,colorFillSecondary:nt,colorFillContent:Xe,controlItemBgActive:Rt,controlItemBgActiveHover:Bt,padding:Mt,paddingSM:$t,paddingXS:Tt,colorBorderSecondary:Qt,borderRadiusLG:In,fontSize:Cn,controlHeight:Rn,colorTextPlaceholder:sa}=fe,qn=new Vn.C(nt).onBackground(Me).toHexShortString(),oa=new Vn.C(Xe).onBackground(Me).toHexShortString(),ea=new Vn.C(me).onBackground(Me).toHexShortString();return{headerBg:ea,headerColor:Ge,headerSortActiveBg:qn,headerSortHoverBg:oa,bodySortBg:ea,rowHoverBg:ea,rowSelectedBg:Rt,rowSelectedHoverBg:Bt,rowExpandedBg:me,cellPaddingBlock:Mt,cellPaddingInline:Mt,cellPaddingBlockMD:$t,cellPaddingInlineMD:Tt,cellPaddingBlockSM:Tt,cellPaddingInlineSM:Tt,borderColor:Qt,headerBorderRadius:In,footerBg:ea,footerColor:Ge,cellFontSize:Cn,cellFontSizeMD:Cn,cellFontSizeSM:Cn,headerSplitColor:Qt,fixedHeaderSortActiveBg:qn,headerFilterHoverBg:Xe,filterDropdownMenuBg:Me,filterDropdownBg:Me,expandIconBg:Me,selectionColumnWidth:Rn,stickyScrollBarBg:sa,stickyScrollBarBorderRadius:100}});const tu=[],nu=(fe,me)=>{const{prefixCls:Me,className:Ge,rootClassName:nt,style:Xe,size:Rt,bordered:Bt,dropdownPrefixCls:Mt,dataSource:$t,pagination:Tt,rowSelection:Qt,rowKey:In="key",rowClassName:Cn,columns:Rn,children:sa,childrenColumnName:qn,onChange:oa,getPopupContainer:ea,loading:Ca,expandIcon:Ua,expandable:Ja,expandedRowRender:Ma,expandIconColumnIndex:gr,indentSize:Sr,scroll:wa,sortDirections:Za,locale:Da,showSorterTooltip:ha=!0,virtual:Na}=fe,ur=ue.useMemo(()=>Rn||ct(sa),[Rn,sa]),Ar=ue.useMemo(()=>ur.some(Yr=>Yr.responsive),[ur]),pr=(0,$i.Z)(Ar),tr=ue.useMemo(()=>{const Yr=new Set(Object.keys(pr).filter(Lo=>pr[Lo]));return ur.filter(Lo=>!Lo.responsive||Lo.responsive.some(gi=>Yr.has(gi)))},[ur,pr]),wr=(0,Di.Z)(fe,["className","style","columns"]),{locale:Zr=Yi.Z,direction:Io,table:to,renderEmpty:Wo,getPrefixCls:Ao,getPopupContainer:Pr}=ue.useContext(Yo.E_),Vo=(0,pl.Z)(Rt),$r=Object.assign(Object.assign({},Zr.Table),Da),To=$t||tu,Oo=Ao("table",Me),Fi=Ao("dropdown",Mt),ir=Object.assign({childrenColumnName:qn,expandIconColumnIndex:gr},Ja),{childrenColumnName:nr="children"}=ir,Xa=ue.useMemo(()=>To.some(Yr=>Yr==null?void 0:Yr[nr])?"nest":Ma||Ja&&Ja.expandedRowRender?"row":null,[To]),Ka={body:ue.useRef()},ro=ue.useMemo(()=>typeof In=="function"?In:Yr=>Yr==null?void 0:Yr[In],[In]),[Ha]=dn(To,nr,ro),vr={},Qr=function(Yr,Lo){let gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Go,yi,bi;const Ni=Object.assign(Object.assign({},vr),Yr);gi&&((Go=vr.resetPagination)===null||Go===void 0||Go.call(vr),!((yi=Ni.pagination)===null||yi===void 0)&&yi.current&&(Ni.pagination.current=1),Tt&&Tt.onChange&&Tt.onChange(1,(bi=Ni.pagination)===null||bi===void 0?void 0:bi.pageSize)),wa&&wa.scrollToFirstRowOnChange!==!1&&Ka.body.current&&(0,Ti.Z)(0,{getContainer:()=>Ka.body.current}),oa==null||oa(Ni.pagination,Ni.filters,Ni.sorter,{currentDataSource:Dn(un(To,Ni.sorterStates,nr),Ni.filterStates),action:Lo})},Kr=(Yr,Lo)=>{Qr({sorter:Yr,sorterStates:Lo},"sort",!1)},[di,ci,Gi,ei]=Gn({prefixCls:Oo,mergedColumns:tr,onSorterChange:Kr,sortDirections:Za||["ascend","descend"],tableLocale:$r,showSorterTooltip:ha}),Vi=ue.useMemo(()=>un(To,ci,nr),[To,ci]);vr.sorter=ei(),vr.sorterStates=ci;const ti=(Yr,Lo)=>{Qr({filters:Yr,filterStates:Lo},"filter",!0)},[Ai,Ol,uo]=kt({prefixCls:Oo,locale:$r,dropdownPrefixCls:Fi,mergedColumns:tr,onFilterChange:ti,getPopupContainer:ea||Pr}),vo=Dn(Vi,Ol);vr.filters=uo,vr.filterStates=Ol;const No=ue.useMemo(()=>{const Yr={};return Object.keys(uo).forEach(Lo=>{uo[Lo]!==null&&(Yr[Lo]=uo[Lo])}),Object.assign(Object.assign({},Gi),{filters:Yr})},[Gi,uo]),[jo]=qa(No),Qo=(Yr,Lo)=>{Qr({pagination:Object.assign(Object.assign({},vr.pagination),{current:Yr,pageSize:Lo})},"paginate")},[zr,hi]=Fr(vo.length,Qo,Tt);vr.pagination=Tt===!1?{}:Qa(zr,Tt),vr.resetPagination=hi;const Si=ue.useMemo(()=>{if(Tt===!1||!zr.pageSize)return vo;const{current:Yr=1,total:Lo,pageSize:gi=or}=zr;return vo.length<Lo?vo.length>gi?vo.slice((Yr-1)*gi,Yr*gi):vo:vo.slice((Yr-1)*gi,Yr*gi)},[!!Tt,vo,zr&&zr.current,zr&&zr.pageSize,zr&&zr.total]),[pi,dl]=Vr({prefixCls:Oo,data:vo,pageData:Si,getRowKey:ro,getRecordByKey:Ha,expandType:Xa,childrenColumnName:nr,locale:$r,getPopupContainer:ea||Pr},Qt),nl=(Yr,Lo,gi)=>{let Go;return typeof Cn=="function"?Go=je()(Cn(Yr,Lo,gi)):Go=je()(Cn),je()({[`${Oo}-row-selected`]:dl.has(ro(Yr,Lo))},Go)};ir.__PARENT_RENDER_ICON__=ir.expandIcon,ir.expandIcon=ir.expandIcon||Ua||Pa($r),Xa==="nest"&&ir.expandIconColumnIndex===void 0?ir.expandIconColumnIndex=Qt?1:0:ir.expandIconColumnIndex>0&&Qt&&(ir.expandIconColumnIndex-=1),typeof ir.indentSize!="number"&&(ir.indentSize=typeof Sr=="number"?Sr:15);const Pi=ue.useCallback(Yr=>jo(pi(Ai(di(Yr)))),[di,Ai,pi]);let al,Hi;if(Tt!==!1&&(zr!=null&&zr.total)){let Yr;zr.size?Yr=zr.size:Yr=Vo==="small"||Vo==="middle"?"small":void 0;const Lo=yi=>ue.createElement(Ur.Z,Object.assign({},zr,{className:je()(`${Oo}-pagination ${Oo}-pagination-${yi}`,zr.className),size:Yr})),gi=Io==="rtl"?"left":"right",{position:Go}=zr;if(Go!==null&&Array.isArray(Go)){const yi=Go.find(ml=>ml.includes("top")),bi=Go.find(ml=>ml.includes("bottom")),Ni=Go.every(ml=>`${ml}`=="none");!yi&&!bi&&!Ni&&(Hi=Lo(gi)),yi&&(al=Lo(yi.toLowerCase().replace("top",""))),bi&&(Hi=Lo(bi.toLowerCase().replace("bottom","")))}else Hi=Lo(gi)}let Ii;typeof Ca=="boolean"?Ii={spinning:Ca}:typeof Ca=="object"&&(Ii=Object.assign({spinning:!0},Ca));const[Ei,Ko]=Ul(Oo),[,ko]=(0,na.Z)(),cl=je()(`${Oo}-wrapper`,to==null?void 0:to.className,{[`${Oo}-wrapper-rtl`]:Io==="rtl"},Ge,nt,Ko),Ll=Object.assign(Object.assign({},to==null?void 0:to.style),Xe),hl=Da&&Da.emptyText||(Wo==null?void 0:Wo("Table"))||ue.createElement(Ki.Z,{componentName:"Table"}),Qi=Na?Qn:Ya,Sl={},fu=ue.useMemo(()=>{const{fontSize:Yr,lineHeight:Lo,padding:gi,paddingXS:Go,paddingSM:yi}=ko,bi=Math.floor(Yr*Lo);switch(Vo){case"large":return gi*2+bi;case"small":return Go*2+bi;default:return yi*2+bi}},[ko,Vo]);return Na&&(Sl.listItemHeight=fu),Ei(ue.createElement("div",{ref:me,className:cl,style:Ll},ue.createElement(Ta.Z,Object.assign({spinning:!1},Ii),al,ue.createElement(Qi,Object.assign({},Sl,wr,{columns:tr,direction:Io,expandable:ir,prefixCls:Oo,className:je()({[`${Oo}-middle`]:Vo==="middle",[`${Oo}-small`]:Vo==="small",[`${Oo}-bordered`]:Bt,[`${Oo}-empty`]:To.length===0}),data:Si,rowKey:ro,rowClassName:nl,emptyText:hl,internalHooks:se,internalRefs:Ka,transformColumns:Pi})),Hi)))};var Vl=ue.forwardRef(nu);const au=(fe,me)=>{const Me=ue.useRef(0);return Me.current+=1,ue.createElement(Vl,Object.assign({},fe,{ref:me,_renderTimes:Me.current}))},Gt=ue.forwardRef(au);Gt.SELECTION_COLUMN=Br,Gt.EXPAND_COLUMN=b,Gt.SELECTION_ALL=Jr,Gt.SELECTION_INVERT=dr,Gt.SELECTION_NONE=kr,Gt.Column=Mi,Gt.ColumnGroup=Wi,Gt.Summary=we;var Ea=Gt,br=Ea},12563:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return Re}});var b=ae(59301),se=ae(99267),be=ae(92310),Ae=ae.n(be),Ie=ae(36785),Oe=ae(47729),ue=ae(14088),ke=ae(36355),We=ae(17313),Te=ae(37613),He=ae(83116);const Ze=he=>{const{paddingXXS:qe,lineWidth:je,tagPaddingHorizontal:ot,componentCls:Le}=he,Je=ot-je,st=qe-je;return{[Le]:Object.assign(Object.assign({},(0,We.Wf)(he)),{display:"inline-block",height:"auto",marginInlineEnd:he.marginXS,paddingInline:Je,fontSize:he.tagFontSize,lineHeight:he.tagLineHeight,whiteSpace:"nowrap",background:he.defaultBg,border:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`,borderRadius:he.borderRadiusSM,opacity:1,transition:`all ${he.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Le}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:he.defaultColor},[`${Le}-close-icon`]:{marginInlineStart:st,color:he.colorTextDescription,fontSize:he.tagIconSize,cursor:"pointer",transition:`all ${he.motionDurationMid}`,"&:hover":{color:he.colorTextHeading}},[`&${Le}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${he.iconCls}-close, ${he.iconCls}-close:hover`]:{color:he.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Le}-checkable-checked):hover`]:{color:he.colorPrimary,backgroundColor:he.colorFillSecondary},"&:active, &-checked":{color:he.colorTextLightSolid},"&-checked":{backgroundColor:he.colorPrimary,"&:hover":{backgroundColor:he.colorPrimaryHover}},"&:active":{backgroundColor:he.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${he.iconCls} + span, > span + ${he.iconCls}`]:{marginInlineStart:Je}}),[`${Le}-borderless`]:{borderColor:"transparent",background:he.tagBorderlessBg}}},De=he=>{const{lineWidth:qe,fontSizeIcon:je}=he,ot=he.fontSizeSM,Le=`${he.lineHeightSM*ot}px`;return(0,Te.TS)(he,{tagFontSize:ot,tagLineHeight:Le,tagIconSize:je-2*qe,tagPaddingHorizontal:8,tagBorderlessBg:he.colorFillTertiary})},le=he=>({defaultBg:he.colorFillQuaternary,defaultColor:he.colorText});var E=(0,He.Z)("Tag",he=>{const qe=De(he);return Ze(qe)},le),a=function(he,qe){var je={};for(var ot in he)Object.prototype.hasOwnProperty.call(he,ot)&&qe.indexOf(ot)<0&&(je[ot]=he[ot]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ot=Object.getOwnPropertySymbols(he);Le<ot.length;Le++)qe.indexOf(ot[Le])<0&&Object.prototype.propertyIsEnumerable.call(he,ot[Le])&&(je[ot[Le]]=he[ot[Le]]);return je},y=he=>{const{prefixCls:qe,style:je,className:ot,checked:Le,onChange:Je,onClick:st}=he,Ke=a(he,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$e,tag:Wt}=b.useContext(ke.E_),it=Dt=>{Je==null||Je(!Le),st==null||st(Dt)},jt=$e("tag",qe),[Xt,Qe]=E(jt),ft=Ae()(jt,`${jt}-checkable`,{[`${jt}-checkable-checked`]:Le},Wt==null?void 0:Wt.className,ot,Qe);return Xt(b.createElement("span",Object.assign({},Ke,{style:Object.assign(Object.assign({},je),Wt==null?void 0:Wt.style),className:ft,onClick:it})))},z=ae(45157);const te=he=>(0,z.Z)(he,(qe,je)=>{let{textColor:ot,lightBorderColor:Le,lightColor:Je,darkColor:st}=je;return{[`${he.componentCls}-${qe}`]:{color:ot,background:Je,borderColor:Le,"&-inverse":{color:he.colorTextLightSolid,background:st,borderColor:st},[`&${he.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,He.b)(["Tag","preset"],he=>{const qe=De(he);return te(qe)},le);function ie(he){return typeof he!="string"?he:he.charAt(0).toUpperCase()+he.slice(1)}const ce=(he,qe,je)=>{const ot=ie(je);return{[`${he.componentCls}-${qe}`]:{color:he[`color${je}`],background:he[`color${ot}Bg`],borderColor:he[`color${ot}Border`],[`&${he.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pe=(0,He.b)(["Tag","status"],he=>{const qe=De(he);return[ce(qe,"success","Success"),ce(qe,"processing","Info"),ce(qe,"error","Error"),ce(qe,"warning","Warning")]},le),ge=function(he,qe){var je={};for(var ot in he)Object.prototype.hasOwnProperty.call(he,ot)&&qe.indexOf(ot)<0&&(je[ot]=he[ot]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ot=Object.getOwnPropertySymbols(he);Le<ot.length;Le++)qe.indexOf(ot[Le])<0&&Object.prototype.propertyIsEnumerable.call(he,ot[Le])&&(je[ot[Le]]=he[ot[Le]]);return je};const Ee=(he,qe)=>{const{prefixCls:je,className:ot,rootClassName:Le,style:Je,children:st,icon:Ke,color:$e,onClose:Wt,closeIcon:it,closable:jt,bordered:Xt=!0}=he,Qe=ge(he,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ft,direction:Dt,tag:rn}=b.useContext(ke.E_),[Pt,Jt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&Jt(Qe.visible)},[Qe.visible]);const Be=(0,Ie.o2)($e),Ut=(0,Ie.yT)($e),En=Be||Ut,Ct=Object.assign(Object.assign({backgroundColor:$e&&!En?$e:void 0},rn==null?void 0:rn.style),Je),It=ft("tag",je),[et,Ue]=E(It),Fe=Ae()(It,rn==null?void 0:rn.className,{[`${It}-${$e}`]:En,[`${It}-has-color`]:$e&&!En,[`${It}-hidden`]:!Pt,[`${It}-rtl`]:Dt==="rtl",[`${It}-borderless`]:!Xt},ot,Le,Ue),ve=Ye=>{Ye.stopPropagation(),Wt==null||Wt(Ye),!Ye.defaultPrevented&&Jt(!1)},[,tt]=(0,Oe.Z)(jt,it,Ye=>Ye===null?b.createElement(se.Z,{className:`${It}-close-icon`,onClick:ve}):b.createElement("span",{className:`${It}-close-icon`,onClick:ve},Ye),null,!1),At=typeof Qe.onClick=="function"||st&&st.type==="a",we=Ke||null,Ce=we?b.createElement(b.Fragment,null,we,st&&b.createElement("span",null,st)):st,vt=b.createElement("span",Object.assign({},Qe,{ref:qe,className:Fe,style:Ct}),Ce,tt,Be&&b.createElement(re,{key:"preset",prefixCls:It}),Ut&&b.createElement(pe,{key:"status",prefixCls:It}));return et(At?b.createElement(ue.Z,{component:"Tag"},vt):vt)},ye=b.forwardRef(Ee);ye.CheckableTag=y;var Re=ye},10777:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return pe}});var b=ae(92310),se=ae.n(b),be=ae(59301),Ae=ae(36355),Ie=function(ge,Ee){var ye={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&Ee.indexOf(Re)<0&&(ye[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Re=Object.getOwnPropertySymbols(ge);he<Re.length;he++)Ee.indexOf(Re[he])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[he])&&(ye[Re[he]]=ge[Re[he]]);return ye},ue=ge=>{var{prefixCls:Ee,className:ye,color:Re="blue",dot:he,pending:qe=!1,position:je,label:ot,children:Le}=ge,Je=Ie(ge,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:st}=be.useContext(Ae.E_),Ke=st("timeline",Ee),$e=se()(`${Ke}-item`,{[`${Ke}-item-pending`]:qe},ye),Wt=/blue|red|green|gray/.test(Re||"")?void 0:Re,it=se()(`${Ke}-item-head`,{[`${Ke}-item-head-custom`]:!!he,[`${Ke}-item-head-${Re}`]:!Wt});return be.createElement("li",Object.assign({},Je,{className:$e}),ot&&be.createElement("div",{className:`${Ke}-item-label`},ot),be.createElement("div",{className:`${Ke}-item-tail`}),be.createElement("div",{className:it,style:{borderColor:Wt,color:Wt}},he),be.createElement("div",{className:`${Ke}-item-content`},Le))},ke=ae(65093),We=ae(58617),Te=function(ge,Ee){var ye={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&Ee.indexOf(Re)<0&&(ye[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Re=Object.getOwnPropertySymbols(ge);he<Re.length;he++)Ee.indexOf(Re[he])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[he])&&(ye[Re[he]]=ge[Re[he]]);return ye},Ze=ge=>{var{prefixCls:Ee,className:ye,pending:Re=!1,children:he,items:qe,rootClassName:je,reverse:ot=!1,direction:Le,hashId:Je,pendingDot:st,mode:Ke=""}=ge,$e=Te(ge,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Wt=(Pt,Jt)=>Ke==="alternate"?Pt==="right"?`${Ee}-item-right`:Pt==="left"?`${Ee}-item-left`:Jt%2===0?`${Ee}-item-left`:`${Ee}-item-right`:Ke==="left"?`${Ee}-item-left`:Ke==="right"?`${Ee}-item-right`:Pt==="right"?`${Ee}-item-right`:"",it=(0,ke.Z)(qe||[]),jt=typeof Re=="boolean"?null:Re;Re&&it.push({pending:!!Re,dot:st||be.createElement(We.Z,null),children:jt}),ot&&it.reverse();const Xt=it.length,Qe=`${Ee}-item-last`,ft=it.filter(Pt=>!!Pt).map((Pt,Jt)=>{var Be;const Ut=Jt===Xt-2?Qe:"",En=Jt===Xt-1?Qe:"",{className:Ct}=Pt,It=Te(Pt,["className"]);return be.createElement(ue,Object.assign({},It,{className:se()([Ct,!ot&&Re?Ut:En,Wt((Be=Pt==null?void 0:Pt.position)!==null&&Be!==void 0?Be:"",Jt)]),key:(Pt==null?void 0:Pt.key)||Jt}))}),Dt=it.some(Pt=>!!(Pt!=null&&Pt.label)),rn=se()(Ee,{[`${Ee}-pending`]:!!Re,[`${Ee}-reverse`]:!!ot,[`${Ee}-${Ke}`]:!!Ke&&!Dt,[`${Ee}-label`]:Dt,[`${Ee}-rtl`]:Le==="rtl"},ye,je,Je);return be.createElement("ul",Object.assign({},$e,{className:rn}),ft)},De=ae(11592);function le(ge,Ee){return ge&&Array.isArray(ge)?ge:(0,De.Z)(Ee).map(ye=>{var Re,he;return Object.assign({children:(he=(Re=ye==null?void 0:ye.props)===null||Re===void 0?void 0:Re.children)!==null&&he!==void 0?he:""},ye.props)})}var E=le,a=ae(17313),x=ae(83116),y=ae(37613);const z=ge=>{const{componentCls:Ee}=ge;return{[Ee]:Object.assign(Object.assign({},(0,a.Wf)(ge)),{margin:0,padding:0,listStyle:"none",[`${Ee}-item`]:{position:"relative",margin:0,paddingBottom:ge.itemPaddingBottom,fontSize:ge.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:ge.itemHeadSize,insetInlineStart:(ge.itemHeadSize-ge.tailWidth)/2,height:`calc(100% - ${ge.itemHeadSize}px)`,borderInlineStart:`${ge.tailWidth}px ${ge.lineType} ${ge.tailColor}`},"&-pending":{[`${Ee}-item-head`]:{fontSize:ge.fontSizeSM,backgroundColor:"transparent"},[`${Ee}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:ge.itemHeadSize,height:ge.itemHeadSize,backgroundColor:ge.dotBg,border:`${ge.dotBorderWidth}px ${ge.lineType} transparent`,borderRadius:"50%","&-blue":{color:ge.colorPrimary,borderColor:ge.colorPrimary},"&-red":{color:ge.colorError,borderColor:ge.colorError},"&-green":{color:ge.colorSuccess,borderColor:ge.colorSuccess},"&-gray":{color:ge.colorTextDisabled,borderColor:ge.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:ge.itemHeadSize/2,insetInlineStart:ge.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:ge.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(ge.fontSize*ge.lineHeight-ge.fontSize)+ge.lineWidth,marginInlineStart:ge.margin+ge.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${Ee}-item-tail`]:{display:"none"},[`> ${Ee}-item-content`]:{minHeight:ge.controlHeightLG*1.2}}},[`&${Ee}-alternate,
&${Ee}-right,
&${Ee}-label`]:{[`${Ee}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${ge.marginXXS}px`,"&-custom":{marginInlineStart:ge.tailWidth/2}},"&-left":{[`${Ee}-item-content`]:{insetInlineStart:`calc(50% - ${ge.marginXXS}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}},"&-right":{[`${Ee}-item-content`]:{width:`calc(50% - ${ge.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${Ee}-right`]:{[`${Ee}-item-right`]:{[`${Ee}-item-tail,
${Ee}-item-head,
${Ee}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(ge.itemHeadSize+ge.tailWidth)/2}px)`},[`${Ee}-item-content`]:{width:`calc(100% - ${ge.itemHeadSize+ge.marginXS}px)`}}},[`&${Ee}-pending
${Ee}-item-last
${Ee}-item-tail`]:{display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`&${Ee}-reverse
${Ee}-item-last
${Ee}-item-tail`]:{display:"none"},[`&${Ee}-reverse ${Ee}-item-pending`]:{[`${Ee}-item-tail`]:{insetBlockStart:ge.margin,display:"block",height:`calc(100% - ${ge.margin}px)`,borderInlineStart:`${ge.tailWidth}px dotted ${ge.tailColor}`},[`${Ee}-item-content`]:{minHeight:ge.controlHeightLG*1.2}},[`&${Ee}-label`]:{[`${Ee}-item-label`]:{position:"absolute",insetBlockStart:-(ge.fontSize*ge.lineHeight-ge.fontSize)+ge.tailWidth,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"end"},[`${Ee}-item-right`]:{[`${Ee}-item-label`]:{insetInlineStart:`calc(50% + ${ge.marginSM}px)`,width:`calc(50% - ${ge.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${Ee}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var te=(0,x.Z)("Timeline",ge=>{const Ee=(0,y.TS)(ge,{itemHeadSize:10,customHeadPaddingVertical:ge.paddingXXS,paddingInlineEnd:2});return[z(Ee)]},ge=>({tailColor:ge.colorSplit,tailWidth:ge.lineWidthBold,dotBorderWidth:ge.wireframe?ge.lineWidthBold:ge.lineWidth*3,dotBg:ge.colorBgContainer,itemPaddingBottom:ge.padding*1.25})),re=function(ge,Ee){var ye={};for(var Re in ge)Object.prototype.hasOwnProperty.call(ge,Re)&&Ee.indexOf(Re)<0&&(ye[Re]=ge[Re]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Re=Object.getOwnPropertySymbols(ge);he<Re.length;he++)Ee.indexOf(Re[he])<0&&Object.prototype.propertyIsEnumerable.call(ge,Re[he])&&(ye[Re[he]]=ge[Re[he]]);return ye};const ie=ge=>{const{getPrefixCls:Ee,direction:ye,timeline:Re}=be.useContext(Ae.E_),{prefixCls:he,children:qe,items:je,className:ot,style:Le}=ge,Je=re(ge,["prefixCls","children","items","className","style"]),st=Ee("timeline",he),[Ke,$e]=te(st),Wt=E(je,qe);return Ke(be.createElement(Ze,Object.assign({},Je,{className:se()(Re==null?void 0:Re.className,ot),style:Object.assign(Object.assign({},Re==null?void 0:Re.style),Le),prefixCls:st,direction:ye,items:Wt,hashId:$e})))};ie.Item=ue;var ce=ie,pe=ce},17574:function(_t,Ot,ae){"use strict";ae.d(Ot,{default:function(){return $e}});var b=ae(48039),se=ae(65093),be=ae(52671),Ae=ae(8657),Ie=ae(16378),Oe=ae(59301),ue={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"},ke=ue,We=ae(7657),Te=function(it,jt){return Oe.createElement(We.Z,(0,Ie.Z)({},it,{ref:jt,icon:ke}))},He=Oe.forwardRef(Te),Ze=He,De=ae(92310),le=ae.n(De),E=ae(35654),a=ae(71430),x=ae(36355),y=ae(56082),z=ae(62892),te=ae(20648);const re=4;function ie(Wt){const{dropPosition:it,dropLevelOffset:jt,prefixCls:Xt,indent:Qe,direction:ft="ltr"}=Wt,Dt=ft==="ltr"?"left":"right",rn=ft==="ltr"?"right":"left",Pt={[Dt]:-jt*Qe+re,[rn]:0};switch(it){case-1:Pt.top=-3;break;case 1:Pt.bottom=-3;break;default:Pt.bottom=-3,Pt[Dt]=Qe+re;break}return Oe.createElement("div",{style:Pt,className:`${Xt}-drop-indicator`})}var ce=ae(71997),ge=Oe.forwardRef((Wt,it)=>{const{getPrefixCls:jt,direction:Xt,virtual:Qe,tree:ft}=Oe.useContext(x.E_),{prefixCls:Dt,className:rn,showIcon:Pt=!1,showLine:Jt,switcherIcon:Be,blockNode:Ut=!1,children:En,checkable:Ct=!1,selectable:It=!0,draggable:et,motion:Ue,style:Fe}=Wt,ve=jt("tree",Dt),tt=jt(),At=Ue!=null?Ue:Object.assign(Object.assign({},(0,z.Z)(tt)),{motionAppear:!1}),we=Object.assign(Object.assign({},Wt),{checkable:Ct,selectable:It,showIcon:Pt,motion:At,blockNode:Ut,showLine:!!Jt,dropIndicatorRender:ie}),[Ce,vt]=(0,te.ZP)(ve),Ye=Oe.useMemo(()=>{if(!et)return!1;let Et={};switch(typeof et){case"function":Et.nodeDraggable=et;break;case"object":Et=Object.assign({},et);break;default:break}return Et.icon!==!1&&(Et.icon=Et.icon||Oe.createElement(y.Z,null)),Et},[et]),_e=Et=>Oe.createElement(ce.Z,{prefixCls:ve,switcherIcon:Be,treeNodeProps:Et,showLine:Jt});return Ce(Oe.createElement(b.Z,Object.assign({itemHeight:20,ref:it,virtual:Qe},we,{style:Object.assign(Object.assign({},ft==null?void 0:ft.style),Fe),prefixCls:ve,className:le()({[`${ve}-icon-hide`]:!Pt,[`${ve}-block-node`]:Ut,[`${ve}-unselectable`]:!It,[`${ve}-rtl`]:Xt==="rtl"},ft==null?void 0:ft.className,rn,vt),direction:Xt,checkable:Ct&&Oe.createElement("span",{className:`${ve}-checkbox-inner`}),selectable:It,switcherIcon:_e,draggable:Ye}),En))}),Ee;(function(Wt){Wt[Wt.None=0]="None",Wt[Wt.Start=1]="Start",Wt[Wt.End=2]="End"})(Ee||(Ee={}));function ye(Wt,it){function jt(Xt){const{key:Qe,children:ft}=Xt;it(Qe,Xt)!==!1&&ye(ft||[],it)}Wt.forEach(jt)}function Re(Wt){let{treeData:it,expandedKeys:jt,startKey:Xt,endKey:Qe}=Wt;const ft=[];let Dt=Ee.None;if(Xt&&Xt===Qe)return[Xt];if(!Xt||!Qe)return[];function rn(Pt){return Pt===Xt||Pt===Qe}return ye(it,Pt=>{if(Dt===Ee.End)return!1;if(rn(Pt)){if(ft.push(Pt),Dt===Ee.None)Dt=Ee.Start;else if(Dt===Ee.Start)return Dt=Ee.End,!1}else Dt===Ee.Start&&ft.push(Pt);return jt.includes(Pt)}),ft}function he(Wt,it){const jt=(0,se.Z)(it),Xt=[];return ye(Wt,(Qe,ft)=>{const Dt=jt.indexOf(Qe);return Dt!==-1&&(Xt.push(ft),jt.splice(Dt,1)),!!jt.length}),Xt}var qe=function(Wt,it){var jt={};for(var Xt in Wt)Object.prototype.hasOwnProperty.call(Wt,Xt)&&it.indexOf(Xt)<0&&(jt[Xt]=Wt[Xt]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Xt=Object.getOwnPropertySymbols(Wt);Qe<Xt.length;Qe++)it.indexOf(Xt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Xt[Qe])&&(jt[Xt[Qe]]=Wt[Xt[Qe]]);return jt};function je(Wt){const{isLeaf:it,expanded:jt}=Wt;return it?Oe.createElement(be.Z,null):jt?Oe.createElement(Ae.Z,null):Oe.createElement(Ze,null)}function ot(Wt){let{treeData:it,children:jt}=Wt;return it||(0,a.zn)(jt)}const Le=(Wt,it)=>{var{defaultExpandAll:jt,defaultExpandParent:Xt,defaultExpandedKeys:Qe}=Wt,ft=qe(Wt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=Oe.useRef(),rn=Oe.useRef(),Pt=()=>{const{keyEntities:Ye}=(0,a.I8)(ot(ft));let _e;return jt?_e=Object.keys(Ye):Xt?_e=(0,E.r7)(ft.expandedKeys||Qe||[],Ye):_e=ft.expandedKeys||Qe,_e},[Jt,Be]=Oe.useState(ft.selectedKeys||ft.defaultSelectedKeys||[]),[Ut,En]=Oe.useState(()=>Pt());Oe.useEffect(()=>{"selectedKeys"in ft&&Be(ft.selectedKeys)},[ft.selectedKeys]),Oe.useEffect(()=>{"expandedKeys"in ft&&En(ft.expandedKeys)},[ft.expandedKeys]);const Ct=(Ye,_e)=>{var Et;return"expandedKeys"in ft||En(Ye),(Et=ft.onExpand)===null||Et===void 0?void 0:Et.call(ft,Ye,_e)},It=(Ye,_e)=>{var Et;const{multiple:cn}=ft,{node:Lt,nativeEvent:qt}=_e,{key:Yt=""}=Lt,nn=ot(ft),bt=Object.assign(Object.assign({},_e),{selected:!0}),on=(qt==null?void 0:qt.ctrlKey)||(qt==null?void 0:qt.metaKey),An=qt==null?void 0:qt.shiftKey;let Zt;cn&&on?(Zt=Ye,Dt.current=Yt,rn.current=Zt,bt.selectedNodes=he(nn,Zt)):cn&&An?(Zt=Array.from(new Set([].concat((0,se.Z)(rn.current||[]),(0,se.Z)(Re({treeData:nn,expandedKeys:Ut,startKey:Yt,endKey:Dt.current}))))),bt.selectedNodes=he(nn,Zt)):(Zt=[Yt],Dt.current=Yt,rn.current=Zt,bt.selectedNodes=he(nn,Zt)),(Et=ft.onSelect)===null||Et===void 0||Et.call(ft,Zt,bt),"selectedKeys"in ft||Be(Zt)},{getPrefixCls:et,direction:Ue}=Oe.useContext(x.E_),{prefixCls:Fe,className:ve,showIcon:tt=!0,expandAction:At="click"}=ft,we=qe(ft,["prefixCls","className","showIcon","expandAction"]),Ce=et("tree",Fe),vt=le()(`${Ce}-directory`,{[`${Ce}-directory-rtl`]:Ue==="rtl"},ve);return Oe.createElement(ge,Object.assign({icon:je,ref:it,blockNode:!0},we,{showIcon:tt,expandAction:At,prefixCls:Ce,className:vt,expandedKeys:Ut,selectedKeys:Jt,onSelect:It,onExpand:Ct}))};var st=Oe.forwardRef(Le);const Ke=ge;Ke.DirectoryTree=st,Ke.TreeNode=b.O;var $e=Ke},20648:function(_t,Ot,ae){"use strict";ae.d(Ot,{TM:function(){return De},Yk:function(){return Ze}});var b=ae(93083),se=ae(98447),be=ae(17313),Ae=ae(8378),Ie=ae(37613),Oe=ae(83116);const ue=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ke=(le,E)=>({[`.${le}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${E.motionDurationSlow}`}}}),We=(le,E)=>({[`.${le}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:E.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${E.lineWidthBold}px solid ${E.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Te=(le,E)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:y,titleHeight:z,nodeSelectedBg:te,nodeHoverBg:re}=E,ie=E.paddingXS;return{[a]:Object.assign(Object.assign({},(0,be.Wf)(E)),{background:E.colorBgContainer,borderRadius:E.borderRadius,transition:`background-color ${E.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,be.oN)(E)),[`${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:y,insetInlineStart:0,border:`1px solid ${E.colorPrimary}`,opacity:0,animationName:ue,animationDuration:E.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${y}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:E.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,be.oN)(E)),[`&:not(${x}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:z,lineHeight:`${z}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${E.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:z}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},ke(le,E)),{position:"relative",flex:"none",alignSelf:"stretch",width:z,margin:0,lineHeight:`${z}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:E.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,marginInlineStart:-1,borderInlineEnd:`1px solid ${E.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:z/2*.8,height:z/2,borderBottom:`1px solid ${E.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:ie},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:z,margin:0,padding:`0 ${E.paddingXS/2}px`,color:"inherit",lineHeight:`${z}px`,background:"transparent",borderRadius:E.borderRadius,cursor:"pointer",transition:`all ${E.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${a}-node-selected`]:{backgroundColor:te},[`${a}-iconEle`]:{display:"inline-block",width:z,height:z,lineHeight:`${z}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${z}px`,userSelect:"none"},We(le,E)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${E.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,borderInlineEnd:`1px solid ${E.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:`${z/2}px !important`}}}}})}},He=le=>{const{treeCls:E,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:y,directoryNodeSelectedColor:z}=le;return{[`${E}${E}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${le.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:le.controlItemBgHover}},"> *":{zIndex:1},[`${E}-switcher`]:{transition:`color ${le.motionDurationMid}`},[`${E}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${E}-node-selected`]:{color:z,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:y},[`${E}-switcher`]:{color:z},[`${E}-node-content-wrapper`]:{color:z,background:"transparent"}}}}}},Ze=(le,E)=>{const a=`.${le}`,x=`${a}-treenode`,y=E.paddingXS/2,z=(0,Ie.TS)(E,{treeCls:a,treeNodeCls:x,treeNodePadding:y});return[Te(le,z),He(z)]},De=le=>{const{controlHeightSM:E}=le;return{titleHeight:E,nodeHoverBg:le.controlItemBgHover,nodeSelectedBg:le.controlItemBgActive}};Ot.ZP=(0,Oe.Z)("Tree",(le,E)=>{let{prefixCls:a}=E;return[{[le.componentCls]:(0,se.C2)(`${a}-checkbox`,le)},Ze(a,le),(0,Ae.Z)(le)]},le=>{const{colorTextLightSolid:E,colorPrimary:a}=le;return Object.assign(Object.assign({},De(le)),{directoryNodeSelectedColor:E,directoryNodeSelectedBg:a})})},71997:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return x}});var b=ae(16378),se=ae(59301),be={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"},Ae=be,Ie=ae(7657),Oe=function(z,te){return se.createElement(Ie.Z,(0,b.Z)({},z,{ref:te,icon:Ae}))},ue=se.forwardRef(Oe),ke=ue,We=ae(52671),Te=ae(58617),He=ae(15075),Ze=ae(43531),De=ae(92310),le=ae.n(De),E=ae(92343),x=y=>{const{prefixCls:z,switcherIcon:te,treeNodeProps:re,showLine:ie}=y,{isLeaf:ce,expanded:pe,loading:ge}=re;if(ge)return se.createElement(Te.Z,{className:`${z}-switcher-loading-icon`});let Ee;if(ie&&typeof ie=="object"&&(Ee=ie.showLeafIcon),ce){if(!ie)return null;if(typeof Ee!="boolean"&&Ee){const he=typeof Ee=="function"?Ee(re):Ee,qe=`${z}-switcher-line-custom-icon`;return(0,E.l$)(he)?(0,E.Tm)(he,{className:le()(he.props.className||"",qe)}):he}return Ee?se.createElement(We.Z,{className:`${z}-switcher-line-icon`}):se.createElement("span",{className:`${z}-switcher-leaf-line`})}const ye=`${z}-switcher-icon`,Re=typeof te=="function"?te(re):te;return(0,E.l$)(Re)?(0,E.Tm)(Re,{className:le()(Re.props.className||"",ye)}):Re!==void 0?Re:ie?pe?se.createElement(He.Z,{className:`${z}-switcher-line-icon`}):se.createElement(Ze.Z,{className:`${z}-switcher-line-icon`}):se.createElement(ke,{className:ye})}},24334:function(_t,Ot,ae){var b,se;(function(be,Ae){_t.exports=Ae(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(be){"use strict";be=be||{};var Ae=be.Base64,Ie="2.6.4",Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(je){for(var ot={},Le=0,Je=je.length;Le<Je;Le++)ot[je.charAt(Le)]=Le;return ot}(Oe),ke=String.fromCharCode,We=function(je){if(je.length<2){var ot=je.charCodeAt(0);return ot<128?je:ot<2048?ke(192|ot>>>6)+ke(128|ot&63):ke(224|ot>>>12&15)+ke(128|ot>>>6&63)+ke(128|ot&63)}else{var ot=65536+(je.charCodeAt(0)-55296)*1024+(je.charCodeAt(1)-56320);return ke(240|ot>>>18&7)+ke(128|ot>>>12&63)+ke(128|ot>>>6&63)+ke(128|ot&63)}},Te=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,He=function(je){return je.replace(Te,We)},Ze=function(je){var ot=[0,2,1][je.length%3],Le=je.charCodeAt(0)<<16|(je.length>1?je.charCodeAt(1):0)<<8|(je.length>2?je.charCodeAt(2):0),Je=[Oe.charAt(Le>>>18),Oe.charAt(Le>>>12&63),ot>=2?"=":Oe.charAt(Le>>>6&63),ot>=1?"=":Oe.charAt(Le&63)];return Je.join("")},De=be.btoa&&typeof be.btoa=="function"?function(je){return be.btoa(je)}:function(je){if(je.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return je.replace(/[\s\S]{1,3}/g,Ze)},le=function(je){return De(He(String(je)))},E=function(je){return je.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},a=function(je,ot){return ot?E(le(je)):le(je)},x=function(je){return a(je,!0)},y;be.Uint8Array&&(y=function(je,ot){for(var Le="",Je=0,st=je.length;Je<st;Je+=3){var Ke=je[Je],$e=je[Je+1],Wt=je[Je+2],it=Ke<<16|$e<<8|Wt;Le+=Oe.charAt(it>>>18)+Oe.charAt(it>>>12&63)+(typeof $e!="undefined"?Oe.charAt(it>>>6&63):"=")+(typeof Wt!="undefined"?Oe.charAt(it&63):"=")}return ot?E(Le):Le});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(je){switch(je.length){case 4:var ot=(7&je.charCodeAt(0))<<18|(63&je.charCodeAt(1))<<12|(63&je.charCodeAt(2))<<6|63&je.charCodeAt(3),Le=ot-65536;return ke((Le>>>10)+55296)+ke((Le&1023)+56320);case 3:return ke((15&je.charCodeAt(0))<<12|(63&je.charCodeAt(1))<<6|63&je.charCodeAt(2));default:return ke((31&je.charCodeAt(0))<<6|63&je.charCodeAt(1))}},re=function(je){return je.replace(z,te)},ie=function(je){var ot=je.length,Le=ot%4,Je=(ot>0?ue[je.charAt(0)]<<18:0)|(ot>1?ue[je.charAt(1)]<<12:0)|(ot>2?ue[je.charAt(2)]<<6:0)|(ot>3?ue[je.charAt(3)]:0),st=[ke(Je>>>16),ke(Je>>>8&255),ke(Je&255)];return st.length-=[0,0,2,1][Le],st.join("")},ce=be.atob&&typeof be.atob=="function"?function(je){return be.atob(je)}:function(je){return je.replace(/\S{1,4}/g,ie)},pe=function(je){return ce(String(je).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(je){return re(ce(je))},Ee=function(je){return String(je).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(je){return ge(Ee(je))},Re;be.Uint8Array&&(Re=function(je){return Uint8Array.from(pe(Ee(je)),function(ot){return ot.charCodeAt(0)})});var he=function(){var je=be.Base64;return be.Base64=Ae,je};if(be.Base64={VERSION:Ie,atob:pe,btoa:De,fromBase64:ye,toBase64:a,utob:He,encode:a,encodeURI:x,btou:re,decode:ye,noConflict:he,fromUint8Array:y,toUint8Array:Re},typeof Object.defineProperty=="function"){var qe=function(je){return{value:je,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",qe(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",qe(function(je){return a(this,je)})),Object.defineProperty(String.prototype,"toBase64URI",qe(function(){return a(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),_t.exports?_t.exports.Base64=be.Base64:(b=[],se=function(){return be.Base64}.apply(Ot,b),se!==void 0&&(_t.exports=se)),{Base64:be.Base64}})},39417:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return ge}});var b=ae(16378),se=ae(78772),be=ae(61206),Ae=ae(35227),Ie=ae(44202),Oe=ae(86773),ue=ae(93002),ke=ae(82412),We=ae(60845),Te=ae(92310),He=ae.n(Te),Ze=ae(26112),De=ae(59301),le=ae(39378),E=function(ye){for(var Re=ye.prefixCls,he=ye.level,qe=ye.isStart,je=ye.isEnd,ot="".concat(Re,"-indent-unit"),Le=[],Je=0;Je<he;Je+=1){var st;Le.push(De.createElement("span",{key:Je,className:He()(ot,(st={},(0,se.Z)(st,"".concat(ot,"-start"),qe[Je]),(0,se.Z)(st,"".concat(ot,"-end"),je[Je]),st))}))}return De.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},Le)},a=De.memo(E),x=ae(67841),y=ae(71430),z=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",re="close",ie="---",ce=function(Ee){(0,ke.Z)(Re,Ee);var ye=(0,We.Z)(Re);function Re(){var he;(0,Ie.Z)(this,Re);for(var qe=arguments.length,je=new Array(qe),ot=0;ot<qe;ot++)je[ot]=arguments[ot];return he=ye.call.apply(ye,[this].concat(je)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(Le){var Je=he.props.context.onNodeClick;Je(Le,(0,y.F)(he.props)),he.isSelectable()?he.onSelect(Le):he.onCheck(Le)},he.onSelectorDoubleClick=function(Le){var Je=he.props.context.onNodeDoubleClick;Je(Le,(0,y.F)(he.props))},he.onSelect=function(Le){if(!he.isDisabled()){var Je=he.props.context.onNodeSelect;Je(Le,(0,y.F)(he.props))}},he.onCheck=function(Le){if(!he.isDisabled()){var Je=he.props,st=Je.disableCheckbox,Ke=Je.checked,$e=he.props.context.onNodeCheck;if(!(!he.isCheckable()||st)){var Wt=!Ke;$e(Le,(0,y.F)(he.props),Wt)}}},he.onMouseEnter=function(Le){var Je=he.props.context.onNodeMouseEnter;Je(Le,(0,y.F)(he.props))},he.onMouseLeave=function(Le){var Je=he.props.context.onNodeMouseLeave;Je(Le,(0,y.F)(he.props))},he.onContextMenu=function(Le){var Je=he.props.context.onNodeContextMenu;Je(Le,(0,y.F)(he.props))},he.onDragStart=function(Le){var Je=he.props.context.onNodeDragStart;Le.stopPropagation(),he.setState({dragNodeHighlight:!0}),Je(Le,(0,ue.Z)(he));try{Le.dataTransfer.setData("text/plain","")}catch(st){}},he.onDragEnter=function(Le){var Je=he.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),Je(Le,(0,ue.Z)(he))},he.onDragOver=function(Le){var Je=he.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),Je(Le,(0,ue.Z)(he))},he.onDragLeave=function(Le){var Je=he.props.context.onNodeDragLeave;Le.stopPropagation(),Je(Le,(0,ue.Z)(he))},he.onDragEnd=function(Le){var Je=he.props.context.onNodeDragEnd;Le.stopPropagation(),he.setState({dragNodeHighlight:!1}),Je(Le,(0,ue.Z)(he))},he.onDrop=function(Le){var Je=he.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),he.setState({dragNodeHighlight:!1}),Je(Le,(0,ue.Z)(he))},he.onExpand=function(Le){var Je=he.props,st=Je.loading,Ke=Je.context.onNodeExpand;st||Ke(Le,(0,y.F)(he.props))},he.setSelectHandle=function(Le){he.selectHandle=Le},he.getNodeState=function(){var Le=he.props.expanded;return he.isLeaf()?null:Le?te:re},he.hasChildren=function(){var Le=he.props.eventKey,Je=he.props.context.keyEntities,st=(0,x.Z)(Je,Le)||{},Ke=st.children;return!!(Ke||[]).length},he.isLeaf=function(){var Le=he.props,Je=Le.isLeaf,st=Le.loaded,Ke=he.props.context.loadData,$e=he.hasChildren();return Je===!1?!1:Je||!Ke&&!$e||Ke&&st&&!$e},he.isDisabled=function(){var Le=he.props.disabled,Je=he.props.context.disabled;return!!(Je||Le)},he.isCheckable=function(){var Le=he.props.checkable,Je=he.props.context.checkable;return!Je||Le===!1?!1:Je},he.syncLoadData=function(Le){var Je=Le.expanded,st=Le.loading,Ke=Le.loaded,$e=he.props.context,Wt=$e.loadData,it=$e.onNodeLoad;st||Wt&&Je&&!he.isLeaf()&&!he.hasChildren()&&!Ke&&it((0,y.F)(he.props))},he.isDraggable=function(){var Le=he.props,Je=Le.data,st=Le.context.draggable;return!!(st&&(!st.nodeDraggable||st.nodeDraggable(Je)))},he.renderDragHandler=function(){var Le=he.props.context,Je=Le.draggable,st=Le.prefixCls;return Je!=null&&Je.icon?De.createElement("span",{className:"".concat(st,"-draggable-icon")},Je.icon):null},he.renderSwitcherIconDom=function(Le){var Je=he.props.switcherIcon,st=he.props.context.switcherIcon,Ke=Je||st;return typeof Ke=="function"?Ke((0,Ae.Z)((0,Ae.Z)({},he.props),{},{isLeaf:Le})):Ke},he.renderSwitcher=function(){var Le=he.props.expanded,Je=he.props.context.prefixCls;if(he.isLeaf()){var st=he.renderSwitcherIconDom(!0);return st!==!1?De.createElement("span",{className:He()("".concat(Je,"-switcher"),"".concat(Je,"-switcher-noop"))},st):null}var Ke=He()("".concat(Je,"-switcher"),"".concat(Je,"-switcher_").concat(Le?te:re)),$e=he.renderSwitcherIconDom(!1);return $e!==!1?De.createElement("span",{onClick:he.onExpand,className:Ke},$e):null},he.renderCheckbox=function(){var Le=he.props,Je=Le.checked,st=Le.halfChecked,Ke=Le.disableCheckbox,$e=he.props.context.prefixCls,Wt=he.isDisabled(),it=he.isCheckable();if(!it)return null;var jt=typeof it!="boolean"?it:null;return De.createElement("span",{className:He()("".concat($e,"-checkbox"),Je&&"".concat($e,"-checkbox-checked"),!Je&&st&&"".concat($e,"-checkbox-indeterminate"),(Wt||Ke)&&"".concat($e,"-checkbox-disabled")),onClick:he.onCheck},jt)},he.renderIcon=function(){var Le=he.props.loading,Je=he.props.context.prefixCls;return De.createElement("span",{className:He()("".concat(Je,"-iconEle"),"".concat(Je,"-icon__").concat(he.getNodeState()||"docu"),Le&&"".concat(Je,"-icon_loading"))})},he.renderSelector=function(){var Le=he.state.dragNodeHighlight,Je=he.props,st=Je.title,Ke=st===void 0?ie:st,$e=Je.selected,Wt=Je.icon,it=Je.loading,jt=Je.data,Xt=he.props.context,Qe=Xt.prefixCls,ft=Xt.showIcon,Dt=Xt.icon,rn=Xt.loadData,Pt=Xt.titleRender,Jt=he.isDisabled(),Be="".concat(Qe,"-node-content-wrapper"),Ut;if(ft){var En=Wt||Dt;Ut=En?De.createElement("span",{className:He()("".concat(Qe,"-iconEle"),"".concat(Qe,"-icon__customize"))},typeof En=="function"?En(he.props):En):he.renderIcon()}else rn&&it&&(Ut=he.renderIcon());var Ct;typeof Ke=="function"?Ct=Ke(jt):Pt?Ct=Pt(jt):Ct=Ke;var It=De.createElement("span",{className:"".concat(Qe,"-title")},Ct);return De.createElement("span",{ref:he.setSelectHandle,title:typeof Ke=="string"?Ke:"",className:He()("".concat(Be),"".concat(Be,"-").concat(he.getNodeState()||"normal"),!Jt&&($e||Le)&&"".concat(Qe,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},Ut,It,he.renderDropIndicator())},he.renderDropIndicator=function(){var Le=he.props,Je=Le.disabled,st=Le.eventKey,Ke=he.props.context,$e=Ke.draggable,Wt=Ke.dropLevelOffset,it=Ke.dropPosition,jt=Ke.prefixCls,Xt=Ke.indent,Qe=Ke.dropIndicatorRender,ft=Ke.dragOverNodeKey,Dt=Ke.direction,rn=!!$e,Pt=!Je&&rn&&ft===st,Jt=Xt!=null?Xt:he.cacheIndent;return he.cacheIndent=Xt,Pt?Qe({dropPosition:it,dropLevelOffset:Wt,indent:Jt,prefixCls:jt,direction:Dt}):null},he}return(0,Oe.Z)(Re,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var qe=this.props.selectable,je=this.props.context.selectable;return typeof qe=="boolean"?qe:je}},{key:"render",value:function(){var qe,je=this.props,ot=je.eventKey,Le=je.className,Je=je.style,st=je.dragOver,Ke=je.dragOverGapTop,$e=je.dragOverGapBottom,Wt=je.isLeaf,it=je.isStart,jt=je.isEnd,Xt=je.expanded,Qe=je.selected,ft=je.checked,Dt=je.halfChecked,rn=je.loading,Pt=je.domRef,Jt=je.active,Be=je.data,Ut=je.onMouseMove,En=je.selectable,Ct=(0,be.Z)(je,z),It=this.props.context,et=It.prefixCls,Ue=It.filterTreeNode,Fe=It.keyEntities,ve=It.dropContainerKey,tt=It.dropTargetKey,At=It.draggingNodeKey,we=this.isDisabled(),Ce=(0,Ze.Z)(Ct,{aria:!0,data:!0}),vt=(0,x.Z)(Fe,ot)||{},Ye=vt.level,_e=jt[jt.length-1],Et=this.isDraggable(),cn=!we&&Et,Lt=At===ot,qt=En!==void 0?{"aria-selected":!!En}:void 0;return De.createElement("div",(0,b.Z)({ref:Pt,className:He()(Le,"".concat(et,"-treenode"),(qe={},(0,se.Z)(qe,"".concat(et,"-treenode-disabled"),we),(0,se.Z)(qe,"".concat(et,"-treenode-switcher-").concat(Xt?"open":"close"),!Wt),(0,se.Z)(qe,"".concat(et,"-treenode-checkbox-checked"),ft),(0,se.Z)(qe,"".concat(et,"-treenode-checkbox-indeterminate"),Dt),(0,se.Z)(qe,"".concat(et,"-treenode-selected"),Qe),(0,se.Z)(qe,"".concat(et,"-treenode-loading"),rn),(0,se.Z)(qe,"".concat(et,"-treenode-active"),Jt),(0,se.Z)(qe,"".concat(et,"-treenode-leaf-last"),_e),(0,se.Z)(qe,"".concat(et,"-treenode-draggable"),Et),(0,se.Z)(qe,"dragging",Lt),(0,se.Z)(qe,"drop-target",tt===ot),(0,se.Z)(qe,"drop-container",ve===ot),(0,se.Z)(qe,"drag-over",!we&&st),(0,se.Z)(qe,"drag-over-gap-top",!we&&Ke),(0,se.Z)(qe,"drag-over-gap-bottom",!we&&$e),(0,se.Z)(qe,"filter-node",Ue&&Ue((0,y.F)(this.props))),qe)),style:Je,draggable:cn,"aria-grabbed":Lt,onDragStart:cn?this.onDragStart:void 0,onDragEnter:Et?this.onDragEnter:void 0,onDragOver:Et?this.onDragOver:void 0,onDragLeave:Et?this.onDragLeave:void 0,onDrop:Et?this.onDrop:void 0,onDragEnd:Et?this.onDragEnd:void 0,onMouseMove:Ut},qt,Ce),De.createElement(a,{prefixCls:et,level:Ye,isStart:it,isEnd:jt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Re}(De.Component),pe=function(ye){return De.createElement(le.k.Consumer,null,function(Re){return De.createElement(ce,(0,b.Z)({},ye,{context:Re}))})};pe.displayName="TreeNode",pe.isTreeNode=1;var ge=pe},39378:function(_t,Ot,ae){"use strict";ae.d(Ot,{k:function(){return se}});var b=ae(59301),se=b.createContext(null)},48039:function(_t,Ot,ae){"use strict";ae.d(Ot,{O:function(){return ge.Z},Z:function(){return It}});var b=ae(16378),se=ae(78772),be=ae(42066),Ae=ae(35227),Ie=ae(65093),Oe=ae(44202),ue=ae(86773),ke=ae(93002),We=ae(82412),Te=ae(60845),He=ae(92310),Ze=ae.n(He),De=ae(10228),le=ae(26112),E=ae(48736),a=ae(59301),x=ae(39378);function y(et){var Ue=et.dropPosition,Fe=et.dropLevelOffset,ve=et.indent,tt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ue){case-1:tt.top=0,tt.left=-Fe*ve;break;case 1:tt.bottom=0,tt.left=-Fe*ve;break;case 0:tt.bottom=0,tt.left=ve;break}return a.createElement("div",{style:tt})}function z(et){if(et==null)throw new TypeError("Cannot destructure "+et)}var te=ae(10859),re=ae(61206),ie=ae(34280),ce=ae(50030),pe=ae(77900),ge=ae(39417);function Ee(et,Ue){var Fe=a.useState(!1),ve=(0,te.Z)(Fe,2),tt=ve[0],At=ve[1];a.useLayoutEffect(function(){if(tt)return et(),function(){Ue()}},[tt]),a.useLayoutEffect(function(){return At(!0),function(){At(!1)}},[])}var ye=ae(71430),Re=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function(Ue,Fe){var ve=Ue.className,tt=Ue.style,At=Ue.motion,we=Ue.motionNodes,Ce=Ue.motionType,vt=Ue.onMotionStart,Ye=Ue.onMotionEnd,_e=Ue.active,Et=Ue.treeNodeRequiredProps,cn=(0,re.Z)(Ue,Re),Lt=a.useState(!0),qt=(0,te.Z)(Lt,2),Yt=qt[0],nn=qt[1],bt=a.useContext(x.k),on=bt.prefixCls,An=we&&Ce!=="hide";(0,ie.Z)(function(){we&&An!==Yt&&nn(An)},[we]);var Zt=function(){we&&vt()},wt=a.useRef(!1),Nn=function(){we&&!wt.current&&(wt.current=!0,Ye())};Ee(Zt,Nn);var zn=function(Yn){An===Yn&&Nn()};return we?a.createElement(pe.default,(0,b.Z)({ref:Fe,visible:Yt},At,{motionAppear:Ce==="show",onVisibleChanged:zn}),function(Wn,Yn){var xa=Wn.className,ln=Wn.style;return a.createElement("div",{ref:Yn,className:Ze()("".concat(on,"-treenode-motion"),xa),style:ln},we.map(function(en){var pn=(0,b.Z)({},(z(en.data),en.data)),Zn=en.title,xn=en.key,La=en.isStart,Wa=en.isEnd;delete pn.children;var ta=(0,ye.H8)(xn,Et);return a.createElement(ge.Z,(0,b.Z)({},pn,ta,{title:Zn,active:_e,data:en.data,key:xn,isStart:La,isEnd:Wa}))}))}):a.createElement(ge.Z,(0,b.Z)({domRef:Fe,className:ve,style:tt},cn,{active:_e}))};he.displayName="MotionTreeNode";var qe=a.forwardRef(he),je=qe;function ot(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fe=et.length,ve=Ue.length;if(Math.abs(Fe-ve)!==1)return{add:!1,key:null};function tt(At,we){var Ce=new Map;At.forEach(function(Ye){Ce.set(Ye,!0)});var vt=we.filter(function(Ye){return!Ce.has(Ye)});return vt.length===1?vt[0]:null}return Fe<ve?{add:!0,key:tt(et,Ue)}:{add:!1,key:tt(Ue,et)}}function Le(et,Ue,Fe){var ve=et.findIndex(function(Ce){return Ce.key===Fe}),tt=et[ve+1],At=Ue.findIndex(function(Ce){return Ce.key===Fe});if(tt){var we=Ue.findIndex(function(Ce){return Ce.key===tt.key});return Ue.slice(At+1,we)}return Ue.slice(At+1)}var Je=["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"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(){},$e="RC_TREE_MOTION_".concat(Math.random()),Wt={key:$e},it={key:$e,level:0,index:0,pos:"0",node:Wt,nodes:[Wt]},jt={parent:null,children:[],pos:it.pos,data:Wt,title:null,key:$e,isStart:[],isEnd:[]};function Xt(et,Ue,Fe,ve){return Ue===!1||!Fe?et:et.slice(0,Math.ceil(Fe/ve)+1)}function Qe(et){var Ue=et.key,Fe=et.pos;return(0,ye.km)(Ue,Fe)}function ft(et){for(var Ue=String(et.data.key),Fe=et;Fe.parent;)Fe=Fe.parent,Ue="".concat(Fe.data.key," > ").concat(Ue);return Ue}var Dt=a.forwardRef(function(et,Ue){var Fe=et.prefixCls,ve=et.data,tt=et.selectable,At=et.checkable,we=et.expandedKeys,Ce=et.selectedKeys,vt=et.checkedKeys,Ye=et.loadedKeys,_e=et.loadingKeys,Et=et.halfCheckedKeys,cn=et.keyEntities,Lt=et.disabled,qt=et.dragging,Yt=et.dragOverNodeKey,nn=et.dropPosition,bt=et.motion,on=et.height,An=et.itemHeight,Zt=et.virtual,wt=et.focusable,Nn=et.activeItem,zn=et.focused,Wn=et.tabIndex,Yn=et.onKeyDown,xa=et.onFocus,ln=et.onBlur,en=et.onActiveChange,pn=et.onListChangeStart,Zn=et.onListChangeEnd,xn=(0,re.Z)(et,Je),La=a.useRef(null),Wa=a.useRef(null);a.useImperativeHandle(Ue,function(){return{scrollTo:function(Jn){La.current.scrollTo(Jn)},getIndentWidth:function(){return Wa.current.offsetWidth}}});var ta=a.useState(we),yn=(0,te.Z)(ta,2),Oa=yn[0],Ve=yn[1],Ft=a.useState(ve),Ht=(0,te.Z)(Ft,2),Vt=Ht[0],tn=Ht[1],Sn=a.useState(ve),mn=(0,te.Z)(Sn,2),lt=mn[0],pt=mn[1],ct=a.useState([]),Kt=(0,te.Z)(ct,2),vn=Kt[0],an=Kt[1],kn=a.useState(null),Fn=(0,te.Z)(kn,2),Bn=Fn[0],Un=Fn[1],Ra=a.useRef(ve);Ra.current=ve;function bn(){var lr=Ra.current;tn(lr),pt(lr),an([]),Un(null),Zn()}(0,ie.Z)(function(){Ve(we);var lr=ot(Oa,we);if(lr.key!==null)if(lr.add){var Jn=Vt.findIndex(function(Lr){var xr=Lr.key;return xr===lr.key}),sn=Xt(Le(Vt,ve,lr.key),Zt,on,An),Dr=Vt.slice();Dr.splice(Jn+1,0,jt),pt(Dr),an(sn),Un("show")}else{var Ga=ve.findIndex(function(Lr){var xr=Lr.key;return xr===lr.key}),Er=Xt(Le(ve,Vt,lr.key),Zt,on,An),Cr=ve.slice();Cr.splice(Ga+1,0,jt),pt(Cr),an(Er),Un("hide")}else Vt!==ve&&(tn(ve),pt(ve))},[we,ve]),a.useEffect(function(){qt||bn()},[qt]);var pa=bt?lt:ve,$a={expandedKeys:we,selectedKeys:Ce,loadedKeys:Ye,loadingKeys:_e,checkedKeys:vt,halfCheckedKeys:Et,dragOverNodeKey:Yt,dropPosition:nn,keyEntities:cn};return a.createElement(a.Fragment,null,zn&&Nn&&a.createElement("span",{style:st,"aria-live":"assertive"},ft(Nn)),a.createElement("div",null,a.createElement("input",{style:st,disabled:wt===!1||Lt,tabIndex:wt!==!1?Wn:null,onKeyDown:Yn,onFocus:xa,onBlur:ln,value:"",onChange:Ke,"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:Wa,className:"".concat(Fe,"-indent-unit")}))),a.createElement(ce.Z,(0,b.Z)({},xn,{data:pa,itemKey:Qe,height:on,fullHeight:!1,virtual:Zt,itemHeight:An,prefixCls:"".concat(Fe,"-list"),ref:La,onVisibleChange:function(Jn,sn){var Dr=new Set(Jn),Ga=sn.filter(function(Er){return!Dr.has(Er)});Ga.some(function(Er){return Qe(Er)===$e})&&bn()}}),function(lr){var Jn=lr.pos,sn=(0,b.Z)({},(z(lr.data),lr.data)),Dr=lr.title,Ga=lr.key,Er=lr.isStart,Cr=lr.isEnd,Lr=(0,ye.km)(Ga,Jn);delete sn.key,delete sn.children;var xr=(0,ye.H8)(Lr,$a);return a.createElement(je,(0,b.Z)({},sn,xr,{title:Dr,active:!!Nn&&Ga===Nn.key,pos:Jn,data:lr.data,isStart:Er,isEnd:Cr,motion:bt,motionNodes:Ga===$e?vn:null,motionType:Bn,onMotionStart:pn,onMotionEnd:bn,treeNodeRequiredProps:$a,onMouseMove:function(){en(null)}}))}))});Dt.displayName="NodeList";var rn=Dt,Pt=ae(35654),Jt=ae(90782),Be=ae(67841),Ut=10,En=function(et){(0,We.Z)(Fe,et);var Ue=(0,Te.Z)(Fe);function Fe(){var ve;(0,Oe.Z)(this,Fe);for(var tt=arguments.length,At=new Array(tt),we=0;we<tt;we++)At[we]=arguments[we];return ve=Ue.call.apply(Ue,[this].concat(At)),ve.destroyed=!1,ve.delayedDragEnterLogic=void 0,ve.loadingRetryTimes={},ve.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,ye.w$)()},ve.dragStartMousePosition=null,ve.dragNode=void 0,ve.currentMouseOverDroppableNodeKey=null,ve.listRef=a.createRef(),ve.onNodeDragStart=function(Ce,vt){var Ye=ve.state,_e=Ye.expandedKeys,Et=Ye.keyEntities,cn=ve.props.onDragStart,Lt=vt.props.eventKey;ve.dragNode=vt,ve.dragStartMousePosition={x:Ce.clientX,y:Ce.clientY};var qt=(0,Pt._5)(_e,Lt);ve.setState({draggingNodeKey:Lt,dragChildrenKeys:(0,Pt.wA)(Lt,Et),indent:ve.listRef.current.getIndentWidth()}),ve.setExpandedKeys(qt),window.addEventListener("dragend",ve.onWindowDragEnd),cn==null||cn({event:Ce,node:(0,ye.F)(vt.props)})},ve.onNodeDragEnter=function(Ce,vt){var Ye=ve.state,_e=Ye.expandedKeys,Et=Ye.keyEntities,cn=Ye.dragChildrenKeys,Lt=Ye.flattenNodes,qt=Ye.indent,Yt=ve.props,nn=Yt.onDragEnter,bt=Yt.onExpand,on=Yt.allowDrop,An=Yt.direction,Zt=vt.props,wt=Zt.pos,Nn=Zt.eventKey,zn=(0,ke.Z)(ve),Wn=zn.dragNode;if(ve.currentMouseOverDroppableNodeKey!==Nn&&(ve.currentMouseOverDroppableNodeKey=Nn),!Wn){ve.resetDragState();return}var Yn=(0,Pt.OM)(Ce,Wn,vt,qt,ve.dragStartMousePosition,on,Lt,Et,_e,An),xa=Yn.dropPosition,ln=Yn.dropLevelOffset,en=Yn.dropTargetKey,pn=Yn.dropContainerKey,Zn=Yn.dropTargetPos,xn=Yn.dropAllowed,La=Yn.dragOverNodeKey;if(cn.indexOf(en)!==-1||!xn){ve.resetDragState();return}if(ve.delayedDragEnterLogic||(ve.delayedDragEnterLogic={}),Object.keys(ve.delayedDragEnterLogic).forEach(function(Wa){clearTimeout(ve.delayedDragEnterLogic[Wa])}),Wn.props.eventKey!==vt.props.eventKey&&(Ce.persist(),ve.delayedDragEnterLogic[wt]=window.setTimeout(function(){if(ve.state.draggingNodeKey!==null){var Wa=(0,Ie.Z)(_e),ta=(0,Be.Z)(Et,vt.props.eventKey);ta&&(ta.children||[]).length&&(Wa=(0,Pt.L0)(_e,vt.props.eventKey)),"expandedKeys"in ve.props||ve.setExpandedKeys(Wa),bt==null||bt(Wa,{node:(0,ye.F)(vt.props),expanded:!0,nativeEvent:Ce.nativeEvent})}},800)),Wn.props.eventKey===en&&ln===0){ve.resetDragState();return}ve.setState({dragOverNodeKey:La,dropPosition:xa,dropLevelOffset:ln,dropTargetKey:en,dropContainerKey:pn,dropTargetPos:Zn,dropAllowed:xn}),nn==null||nn({event:Ce,node:(0,ye.F)(vt.props),expandedKeys:_e})},ve.onNodeDragOver=function(Ce,vt){var Ye=ve.state,_e=Ye.dragChildrenKeys,Et=Ye.flattenNodes,cn=Ye.keyEntities,Lt=Ye.expandedKeys,qt=Ye.indent,Yt=ve.props,nn=Yt.onDragOver,bt=Yt.allowDrop,on=Yt.direction,An=(0,ke.Z)(ve),Zt=An.dragNode;if(Zt){var wt=(0,Pt.OM)(Ce,Zt,vt,qt,ve.dragStartMousePosition,bt,Et,cn,Lt,on),Nn=wt.dropPosition,zn=wt.dropLevelOffset,Wn=wt.dropTargetKey,Yn=wt.dropContainerKey,xa=wt.dropAllowed,ln=wt.dropTargetPos,en=wt.dragOverNodeKey;_e.indexOf(Wn)!==-1||!xa||(Zt.props.eventKey===Wn&&zn===0?ve.state.dropPosition===null&&ve.state.dropLevelOffset===null&&ve.state.dropTargetKey===null&&ve.state.dropContainerKey===null&&ve.state.dropTargetPos===null&&ve.state.dropAllowed===!1&&ve.state.dragOverNodeKey===null||ve.resetDragState():Nn===ve.state.dropPosition&&zn===ve.state.dropLevelOffset&&Wn===ve.state.dropTargetKey&&Yn===ve.state.dropContainerKey&&ln===ve.state.dropTargetPos&&xa===ve.state.dropAllowed&&en===ve.state.dragOverNodeKey||ve.setState({dropPosition:Nn,dropLevelOffset:zn,dropTargetKey:Wn,dropContainerKey:Yn,dropTargetPos:ln,dropAllowed:xa,dragOverNodeKey:en}),nn==null||nn({event:Ce,node:(0,ye.F)(vt.props)}))}},ve.onNodeDragLeave=function(Ce,vt){ve.currentMouseOverDroppableNodeKey===vt.props.eventKey&&!Ce.currentTarget.contains(Ce.relatedTarget)&&(ve.resetDragState(),ve.currentMouseOverDroppableNodeKey=null);var Ye=ve.props.onDragLeave;Ye==null||Ye({event:Ce,node:(0,ye.F)(vt.props)})},ve.onWindowDragEnd=function(Ce){ve.onNodeDragEnd(Ce,null,!0),window.removeEventListener("dragend",ve.onWindowDragEnd)},ve.onNodeDragEnd=function(Ce,vt){var Ye=ve.props.onDragEnd;ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),Ye==null||Ye({event:Ce,node:(0,ye.F)(vt.props)}),ve.dragNode=null,window.removeEventListener("dragend",ve.onWindowDragEnd)},ve.onNodeDrop=function(Ce,vt){var Ye,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=ve.state,cn=Et.dragChildrenKeys,Lt=Et.dropPosition,qt=Et.dropTargetKey,Yt=Et.dropTargetPos,nn=Et.dropAllowed;if(nn){var bt=ve.props.onDrop;if(ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),qt!==null){var on=(0,Ae.Z)((0,Ae.Z)({},(0,ye.H8)(qt,ve.getTreeNodeRequiredProps())),{},{active:((Ye=ve.getActiveItem())===null||Ye===void 0?void 0:Ye.key)===qt,data:(0,Be.Z)(ve.state.keyEntities,qt).node}),An=cn.indexOf(qt)!==-1;(0,E.ZP)(!An,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Zt=(0,Pt.yx)(Yt),wt={event:Ce,node:(0,ye.F)(on),dragNode:ve.dragNode?(0,ye.F)(ve.dragNode.props):null,dragNodesKeys:[ve.dragNode.props.eventKey].concat(cn),dropToGap:Lt!==0,dropPosition:Lt+Number(Zt[Zt.length-1])};_e||bt==null||bt(wt),ve.dragNode=null}}},ve.cleanDragState=function(){var Ce=ve.state.draggingNodeKey;Ce!==null&&ve.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ve.dragStartMousePosition=null,ve.currentMouseOverDroppableNodeKey=null},ve.triggerExpandActionExpand=function(Ce,vt){var Ye=ve.state,_e=Ye.expandedKeys,Et=Ye.flattenNodes,cn=vt.expanded,Lt=vt.key,qt=vt.isLeaf;if(!(qt||Ce.shiftKey||Ce.metaKey||Ce.ctrlKey)){var Yt=Et.filter(function(bt){return bt.key===Lt})[0],nn=(0,ye.F)((0,Ae.Z)((0,Ae.Z)({},(0,ye.H8)(Lt,ve.getTreeNodeRequiredProps())),{},{data:Yt.data}));ve.setExpandedKeys(cn?(0,Pt._5)(_e,Lt):(0,Pt.L0)(_e,Lt)),ve.onNodeExpand(Ce,nn)}},ve.onNodeClick=function(Ce,vt){var Ye=ve.props,_e=Ye.onClick,Et=Ye.expandAction;Et==="click"&&ve.triggerExpandActionExpand(Ce,vt),_e==null||_e(Ce,vt)},ve.onNodeDoubleClick=function(Ce,vt){var Ye=ve.props,_e=Ye.onDoubleClick,Et=Ye.expandAction;Et==="doubleClick"&&ve.triggerExpandActionExpand(Ce,vt),_e==null||_e(Ce,vt)},ve.onNodeSelect=function(Ce,vt){var Ye=ve.state.selectedKeys,_e=ve.state,Et=_e.keyEntities,cn=_e.fieldNames,Lt=ve.props,qt=Lt.onSelect,Yt=Lt.multiple,nn=vt.selected,bt=vt[cn.key],on=!nn;on?Yt?Ye=(0,Pt.L0)(Ye,bt):Ye=[bt]:Ye=(0,Pt._5)(Ye,bt);var An=Ye.map(function(Zt){var wt=(0,Be.Z)(Et,Zt);return wt?wt.node:null}).filter(function(Zt){return Zt});ve.setUncontrolledState({selectedKeys:Ye}),qt==null||qt(Ye,{event:"select",selected:on,node:vt,selectedNodes:An,nativeEvent:Ce.nativeEvent})},ve.onNodeCheck=function(Ce,vt,Ye){var _e=ve.state,Et=_e.keyEntities,cn=_e.checkedKeys,Lt=_e.halfCheckedKeys,qt=ve.props,Yt=qt.checkStrictly,nn=qt.onCheck,bt=vt.key,on,An={event:"check",node:vt,checked:Ye,nativeEvent:Ce.nativeEvent};if(Yt){var Zt=Ye?(0,Pt.L0)(cn,bt):(0,Pt._5)(cn,bt),wt=(0,Pt._5)(Lt,bt);on={checked:Zt,halfChecked:wt},An.checkedNodes=Zt.map(function(ln){return(0,Be.Z)(Et,ln)}).filter(function(ln){return ln}).map(function(ln){return ln.node}),ve.setUncontrolledState({checkedKeys:Zt})}else{var Nn=(0,Jt.S)([].concat((0,Ie.Z)(cn),[bt]),!0,Et),zn=Nn.checkedKeys,Wn=Nn.halfCheckedKeys;if(!Ye){var Yn=new Set(zn);Yn.delete(bt);var xa=(0,Jt.S)(Array.from(Yn),{checked:!1,halfCheckedKeys:Wn},Et);zn=xa.checkedKeys,Wn=xa.halfCheckedKeys}on=zn,An.checkedNodes=[],An.checkedNodesPositions=[],An.halfCheckedKeys=Wn,zn.forEach(function(ln){var en=(0,Be.Z)(Et,ln);if(en){var pn=en.node,Zn=en.pos;An.checkedNodes.push(pn),An.checkedNodesPositions.push({node:pn,pos:Zn})}}),ve.setUncontrolledState({checkedKeys:zn},!1,{halfCheckedKeys:Wn})}nn==null||nn(on,An)},ve.onNodeLoad=function(Ce){var vt=Ce.key,Ye=new Promise(function(_e,Et){ve.setState(function(cn){var Lt=cn.loadedKeys,qt=Lt===void 0?[]:Lt,Yt=cn.loadingKeys,nn=Yt===void 0?[]:Yt,bt=ve.props,on=bt.loadData,An=bt.onLoad;if(!on||qt.indexOf(vt)!==-1||nn.indexOf(vt)!==-1)return null;var Zt=on(Ce);return Zt.then(function(){var wt=ve.state.loadedKeys,Nn=(0,Pt.L0)(wt,vt);An==null||An(Nn,{event:"load",node:Ce}),ve.setUncontrolledState({loadedKeys:Nn}),ve.setState(function(zn){return{loadingKeys:(0,Pt._5)(zn.loadingKeys,vt)}}),_e()}).catch(function(wt){if(ve.setState(function(zn){return{loadingKeys:(0,Pt._5)(zn.loadingKeys,vt)}}),ve.loadingRetryTimes[vt]=(ve.loadingRetryTimes[vt]||0)+1,ve.loadingRetryTimes[vt]>=Ut){var Nn=ve.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ve.setUncontrolledState({loadedKeys:(0,Pt.L0)(Nn,vt)}),_e()}Et(wt)}),{loadingKeys:(0,Pt.L0)(nn,vt)}})});return Ye.catch(function(){}),Ye},ve.onNodeMouseEnter=function(Ce,vt){var Ye=ve.props.onMouseEnter;Ye==null||Ye({event:Ce,node:vt})},ve.onNodeMouseLeave=function(Ce,vt){var Ye=ve.props.onMouseLeave;Ye==null||Ye({event:Ce,node:vt})},ve.onNodeContextMenu=function(Ce,vt){var Ye=ve.props.onRightClick;Ye&&(Ce.preventDefault(),Ye({event:Ce,node:vt}))},ve.onFocus=function(){var Ce=ve.props.onFocus;ve.setState({focused:!0});for(var vt=arguments.length,Ye=new Array(vt),_e=0;_e<vt;_e++)Ye[_e]=arguments[_e];Ce==null||Ce.apply(void 0,Ye)},ve.onBlur=function(){var Ce=ve.props.onBlur;ve.setState({focused:!1}),ve.onActiveChange(null);for(var vt=arguments.length,Ye=new Array(vt),_e=0;_e<vt;_e++)Ye[_e]=arguments[_e];Ce==null||Ce.apply(void 0,Ye)},ve.getTreeNodeRequiredProps=function(){var Ce=ve.state,vt=Ce.expandedKeys,Ye=Ce.selectedKeys,_e=Ce.loadedKeys,Et=Ce.loadingKeys,cn=Ce.checkedKeys,Lt=Ce.halfCheckedKeys,qt=Ce.dragOverNodeKey,Yt=Ce.dropPosition,nn=Ce.keyEntities;return{expandedKeys:vt||[],selectedKeys:Ye||[],loadedKeys:_e||[],loadingKeys:Et||[],checkedKeys:cn||[],halfCheckedKeys:Lt||[],dragOverNodeKey:qt,dropPosition:Yt,keyEntities:nn}},ve.setExpandedKeys=function(Ce){var vt=ve.state,Ye=vt.treeData,_e=vt.fieldNames,Et=(0,ye.oH)(Ye,Ce,_e);ve.setUncontrolledState({expandedKeys:Ce,flattenNodes:Et},!0)},ve.onNodeExpand=function(Ce,vt){var Ye=ve.state.expandedKeys,_e=ve.state,Et=_e.listChanging,cn=_e.fieldNames,Lt=ve.props,qt=Lt.onExpand,Yt=Lt.loadData,nn=vt.expanded,bt=vt[cn.key];if(!Et){var on=Ye.indexOf(bt),An=!nn;if((0,E.ZP)(nn&&on!==-1||!nn&&on===-1,"Expand state not sync with index check"),An?Ye=(0,Pt.L0)(Ye,bt):Ye=(0,Pt._5)(Ye,bt),ve.setExpandedKeys(Ye),qt==null||qt(Ye,{node:vt,expanded:An,nativeEvent:Ce.nativeEvent}),An&&Yt){var Zt=ve.onNodeLoad(vt);Zt&&Zt.then(function(){var wt=(0,ye.oH)(ve.state.treeData,Ye,cn);ve.setUncontrolledState({flattenNodes:wt})}).catch(function(){var wt=ve.state.expandedKeys,Nn=(0,Pt._5)(wt,bt);ve.setExpandedKeys(Nn)})}}},ve.onListChangeStart=function(){ve.setUncontrolledState({listChanging:!0})},ve.onListChangeEnd=function(){setTimeout(function(){ve.setUncontrolledState({listChanging:!1})})},ve.onActiveChange=function(Ce){var vt=ve.state.activeKey,Ye=ve.props.onActiveChange;vt!==Ce&&(ve.setState({activeKey:Ce}),Ce!==null&&ve.scrollTo({key:Ce}),Ye==null||Ye(Ce))},ve.getActiveItem=function(){var Ce=ve.state,vt=Ce.activeKey,Ye=Ce.flattenNodes;return vt===null?null:Ye.find(function(_e){var Et=_e.key;return Et===vt})||null},ve.offsetActiveKey=function(Ce){var vt=ve.state,Ye=vt.flattenNodes,_e=vt.activeKey,Et=Ye.findIndex(function(qt){var Yt=qt.key;return Yt===_e});Et===-1&&Ce<0&&(Et=Ye.length),Et=(Et+Ce+Ye.length)%Ye.length;var cn=Ye[Et];if(cn){var Lt=cn.key;ve.onActiveChange(Lt)}else ve.onActiveChange(null)},ve.onKeyDown=function(Ce){var vt=ve.state,Ye=vt.activeKey,_e=vt.expandedKeys,Et=vt.checkedKeys,cn=vt.fieldNames,Lt=ve.props,qt=Lt.onKeyDown,Yt=Lt.checkable,nn=Lt.selectable;switch(Ce.which){case De.Z.UP:{ve.offsetActiveKey(-1),Ce.preventDefault();break}case De.Z.DOWN:{ve.offsetActiveKey(1),Ce.preventDefault();break}}var bt=ve.getActiveItem();if(bt&&bt.data){var on=ve.getTreeNodeRequiredProps(),An=bt.data.isLeaf===!1||!!(bt.data[cn.children]||[]).length,Zt=(0,ye.F)((0,Ae.Z)((0,Ae.Z)({},(0,ye.H8)(Ye,on)),{},{data:bt.data,active:!0}));switch(Ce.which){case De.Z.LEFT:{An&&_e.includes(Ye)?ve.onNodeExpand({},Zt):bt.parent&&ve.onActiveChange(bt.parent.key),Ce.preventDefault();break}case De.Z.RIGHT:{An&&!_e.includes(Ye)?ve.onNodeExpand({},Zt):bt.children&&bt.children.length&&ve.onActiveChange(bt.children[0].key),Ce.preventDefault();break}case De.Z.ENTER:case De.Z.SPACE:{Yt&&!Zt.disabled&&Zt.checkable!==!1&&!Zt.disableCheckbox?ve.onNodeCheck({},Zt,!Et.includes(Ye)):!Yt&&nn&&!Zt.disabled&&Zt.selectable!==!1&&ve.onNodeSelect({},Zt);break}}}qt==null||qt(Ce)},ve.setUncontrolledState=function(Ce){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ve.destroyed){var _e=!1,Et=!0,cn={};Object.keys(Ce).forEach(function(Lt){if(Lt in ve.props){Et=!1;return}_e=!0,cn[Lt]=Ce[Lt]}),_e&&(!vt||Et)&&ve.setState((0,Ae.Z)((0,Ae.Z)({},cn),Ye))}},ve.scrollTo=function(Ce){ve.listRef.current.scrollTo(Ce)},ve}return(0,ue.Z)(Fe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var tt=this.props.activeKey;tt!==void 0&&tt!==this.state.activeKey&&(this.setState({activeKey:tt}),tt!==null&&this.scrollTo({key:tt}))}},{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 tt,At=this.state,we=At.focused,Ce=At.flattenNodes,vt=At.keyEntities,Ye=At.draggingNodeKey,_e=At.activeKey,Et=At.dropLevelOffset,cn=At.dropContainerKey,Lt=At.dropTargetKey,qt=At.dropPosition,Yt=At.dragOverNodeKey,nn=At.indent,bt=this.props,on=bt.prefixCls,An=bt.className,Zt=bt.style,wt=bt.showLine,Nn=bt.focusable,zn=bt.tabIndex,Wn=zn===void 0?0:zn,Yn=bt.selectable,xa=bt.showIcon,ln=bt.icon,en=bt.switcherIcon,pn=bt.draggable,Zn=bt.checkable,xn=bt.checkStrictly,La=bt.disabled,Wa=bt.motion,ta=bt.loadData,yn=bt.filterTreeNode,Oa=bt.height,Ve=bt.itemHeight,Ft=bt.virtual,Ht=bt.titleRender,Vt=bt.dropIndicatorRender,tn=bt.onContextMenu,Sn=bt.onScroll,mn=bt.direction,lt=bt.rootClassName,pt=bt.rootStyle,ct=(0,le.Z)(this.props,{aria:!0,data:!0}),Kt;return pn&&((0,be.Z)(pn)==="object"?Kt=pn:typeof pn=="function"?Kt={nodeDraggable:pn}:Kt={}),a.createElement(x.k.Provider,{value:{prefixCls:on,selectable:Yn,showIcon:xa,icon:ln,switcherIcon:en,draggable:Kt,draggingNodeKey:Ye,checkable:Zn,checkStrictly:xn,disabled:La,keyEntities:vt,dropLevelOffset:Et,dropContainerKey:cn,dropTargetKey:Lt,dropPosition:qt,dragOverNodeKey:Yt,indent:nn,direction:mn,dropIndicatorRender:Vt,loadData:ta,filterTreeNode:yn,titleRender:Ht,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:Ze()(on,An,lt,(tt={},(0,se.Z)(tt,"".concat(on,"-show-line"),wt),(0,se.Z)(tt,"".concat(on,"-focused"),we),(0,se.Z)(tt,"".concat(on,"-active-focused"),_e!==null),tt)),style:pt},a.createElement(rn,(0,b.Z)({ref:this.listRef,prefixCls:on,style:Zt,data:Ce,disabled:La,selectable:Yn,checkable:!!Zn,motion:Wa,dragging:Ye!==null,height:Oa,itemHeight:Ve,virtual:Ft,focusable:Nn,focused:we,tabIndex:Wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:tn,onScroll:Sn},this.getTreeNodeRequiredProps(),ct))))}}],[{key:"getDerivedStateFromProps",value:function(tt,At){var we=At.prevProps,Ce={prevProps:tt};function vt(Nn){return!we&&Nn in tt||we&&we[Nn]!==tt[Nn]}var Ye,_e=At.fieldNames;if(vt("fieldNames")&&(_e=(0,ye.w$)(tt.fieldNames),Ce.fieldNames=_e),vt("treeData")?Ye=tt.treeData:vt("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ye=(0,ye.zn)(tt.children)),Ye){Ce.treeData=Ye;var Et=(0,ye.I8)(Ye,{fieldNames:_e});Ce.keyEntities=(0,Ae.Z)((0,se.Z)({},$e,it),Et.keyEntities)}var cn=Ce.keyEntities||At.keyEntities;if(vt("expandedKeys")||we&&vt("autoExpandParent"))Ce.expandedKeys=tt.autoExpandParent||!we&&tt.defaultExpandParent?(0,Pt.r7)(tt.expandedKeys,cn):tt.expandedKeys;else if(!we&&tt.defaultExpandAll){var Lt=(0,Ae.Z)({},cn);delete Lt[$e],Ce.expandedKeys=Object.keys(Lt).map(function(Nn){return Lt[Nn].key})}else!we&&tt.defaultExpandedKeys&&(Ce.expandedKeys=tt.autoExpandParent||tt.defaultExpandParent?(0,Pt.r7)(tt.defaultExpandedKeys,cn):tt.defaultExpandedKeys);if(Ce.expandedKeys||delete Ce.expandedKeys,Ye||Ce.expandedKeys){var qt=(0,ye.oH)(Ye||At.treeData,Ce.expandedKeys||At.expandedKeys,_e);Ce.flattenNodes=qt}if(tt.selectable&&(vt("selectedKeys")?Ce.selectedKeys=(0,Pt.BT)(tt.selectedKeys,tt):!we&&tt.defaultSelectedKeys&&(Ce.selectedKeys=(0,Pt.BT)(tt.defaultSelectedKeys,tt))),tt.checkable){var Yt;if(vt("checkedKeys")?Yt=(0,Pt.E6)(tt.checkedKeys)||{}:!we&&tt.defaultCheckedKeys?Yt=(0,Pt.E6)(tt.defaultCheckedKeys)||{}:Ye&&(Yt=(0,Pt.E6)(tt.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),Yt){var nn=Yt,bt=nn.checkedKeys,on=bt===void 0?[]:bt,An=nn.halfCheckedKeys,Zt=An===void 0?[]:An;if(!tt.checkStrictly){var wt=(0,Jt.S)(on,!0,cn);on=wt.checkedKeys,Zt=wt.halfCheckedKeys}Ce.checkedKeys=on,Ce.halfCheckedKeys=Zt}}return vt("loadedKeys")&&(Ce.loadedKeys=tt.loadedKeys),Ce}}]),Fe}(a.Component);En.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:y,allowDrop:function(){return!0},expandAction:!1},En.TreeNode=ge.Z;var Ct=En,It=Ct},35654:function(_t,Ot,ae){"use strict";ae.d(Ot,{BT:function(){return a},E6:function(){return z},L0:function(){return Te},OM:function(){return E},_5:function(){return We},r7:function(){return te},wA:function(){return Ze},yx:function(){return He}});var b=ae(65093),se=ae(42066),be=ae(48736),Ae=ae(59301),Ie=ae(39417),Oe=ae(67841),ue=ae(71430),ke=null;function We(re,ie){if(!re)return[];var ce=re.slice(),pe=ce.indexOf(ie);return pe>=0&&ce.splice(pe,1),ce}function Te(re,ie){var ce=(re||[]).slice();return ce.indexOf(ie)===-1&&ce.push(ie),ce}function He(re){return re.split("-")}function Ze(re,ie){var ce=[],pe=(0,Oe.Z)(ie,re);function ge(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ee.forEach(function(ye){var Re=ye.key,he=ye.children;ce.push(Re),ge(he)})}return ge(pe.children),ce}function De(re){if(re.parent){var ie=He(re.pos);return Number(ie[ie.length-1])===re.parent.children.length-1}return!1}function le(re){var ie=He(re.pos);return Number(ie[ie.length-1])===0}function E(re,ie,ce,pe,ge,Ee,ye,Re,he,qe){var je,ot=re.clientX,Le=re.clientY,Je=re.target.getBoundingClientRect(),st=Je.top,Ke=Je.height,$e=(qe==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-ot),Wt=($e-12)/pe,it=(0,Oe.Z)(Re,ce.props.eventKey);if(Le<st+Ke/2){var jt=ye.findIndex(function(It){return It.key===it.key}),Xt=jt<=0?0:jt-1,Qe=ye[Xt].key;it=(0,Oe.Z)(Re,Qe)}var ft=it.key,Dt=it,rn=it.key,Pt=0,Jt=0;if(!he.includes(ft))for(var Be=0;Be<Wt&&De(it);Be+=1)it=it.parent,Jt+=1;var Ut=ie.props.data,En=it.node,Ct=!0;return le(it)&&it.level===0&&Le<st+Ke/2&&Ee({dragNode:Ut,dropNode:En,dropPosition:-1})&&it.key===ce.props.eventKey?Pt=-1:(Dt.children||[]).length&&he.includes(rn)?Ee({dragNode:Ut,dropNode:En,dropPosition:0})?Pt=0:Ct=!1:Jt===0?Wt>-1.5?Ee({dragNode:Ut,dropNode:En,dropPosition:1})?Pt=1:Ct=!1:Ee({dragNode:Ut,dropNode:En,dropPosition:0})?Pt=0:Ee({dragNode:Ut,dropNode:En,dropPosition:1})?Pt=1:Ct=!1:Ee({dragNode:Ut,dropNode:En,dropPosition:1})?Pt=1:Ct=!1,{dropPosition:Pt,dropLevelOffset:Jt,dropTargetKey:it.key,dropTargetPos:it.pos,dragOverNodeKey:rn,dropContainerKey:Pt===0?null:((je=it.parent)===null||je===void 0?void 0:je.key)||null,dropAllowed:Ct}}function a(re,ie){if(re){var ce=ie.multiple;return ce?re.slice():re.length?[re[0]]:re}}var x=function(ie){return ie};function y(re,ie){if(!re)return[];var ce=ie||{},pe=ce.processProps,ge=pe===void 0?x:pe,Ee=Array.isArray(re)?re:[re];return Ee.map(function(ye){var Re=ye.children,he=_objectWithoutProperties(ye,ke),qe=y(Re,ie);return React.createElement(TreeNode,_extends({key:he.key},ge(he)),qe)})}function z(re){if(!re)return null;var ie;if(Array.isArray(re))ie={checkedKeys:re,halfCheckedKeys:void 0};else if((0,se.Z)(re)==="object")ie={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ie}function te(re,ie){var ce=new Set;function pe(ge){if(!ce.has(ge)){var Ee=(0,Oe.Z)(ie,ge);if(Ee){ce.add(ge);var ye=Ee.parent,Re=Ee.node;Re.disabled||ye&&pe(ye.key)}}}return(re||[]).forEach(function(ge){pe(ge)}),(0,b.Z)(ce)}},90782:function(_t,Ot,ae){"use strict";ae.d(Ot,{S:function(){return ue}});var b=ae(48736),se=ae(67841);function be(ke,We){var Te=new Set;return ke.forEach(function(He){We.has(He)||Te.add(He)}),Te}function Ae(ke){var We=ke||{},Te=We.disabled,He=We.disableCheckbox,Ze=We.checkable;return!!(Te||He)||Ze===!1}function Ie(ke,We,Te,He){for(var Ze=new Set(ke),De=new Set,le=0;le<=Te;le+=1){var E=We.get(le)||new Set;E.forEach(function(z){var te=z.key,re=z.node,ie=z.children,ce=ie===void 0?[]:ie;Ze.has(te)&&!He(re)&&ce.filter(function(pe){return!He(pe.node)}).forEach(function(pe){Ze.add(pe.key)})})}for(var a=new Set,x=Te;x>=0;x-=1){var y=We.get(x)||new Set;y.forEach(function(z){var te=z.parent,re=z.node;if(!(He(re)||!z.parent||a.has(z.parent.key))){if(He(z.parent.node)){a.add(te.key);return}var ie=!0,ce=!1;(te.children||[]).filter(function(pe){return!He(pe.node)}).forEach(function(pe){var ge=pe.key,Ee=Ze.has(ge);ie&&!Ee&&(ie=!1),!ce&&(Ee||De.has(ge))&&(ce=!0)}),ie&&Ze.add(te.key),ce&&De.add(te.key),a.add(te.key)}})}return{checkedKeys:Array.from(Ze),halfCheckedKeys:Array.from(be(De,Ze))}}function Oe(ke,We,Te,He,Ze){for(var De=new Set(ke),le=new Set(We),E=0;E<=He;E+=1){var a=Te.get(E)||new Set;a.forEach(function(te){var re=te.key,ie=te.node,ce=te.children,pe=ce===void 0?[]:ce;!De.has(re)&&!le.has(re)&&!Ze(ie)&&pe.filter(function(ge){return!Ze(ge.node)}).forEach(function(ge){De.delete(ge.key)})})}le=new Set;for(var x=new Set,y=He;y>=0;y-=1){var z=Te.get(y)||new Set;z.forEach(function(te){var re=te.parent,ie=te.node;if(!(Ze(ie)||!te.parent||x.has(te.parent.key))){if(Ze(te.parent.node)){x.add(re.key);return}var ce=!0,pe=!1;(re.children||[]).filter(function(ge){return!Ze(ge.node)}).forEach(function(ge){var Ee=ge.key,ye=De.has(Ee);ce&&!ye&&(ce=!1),!pe&&(ye||le.has(Ee))&&(pe=!0)}),ce||De.delete(re.key),pe&&le.add(re.key),x.add(re.key)}})}return{checkedKeys:Array.from(De),halfCheckedKeys:Array.from(be(le,De))}}function ue(ke,We,Te,He){var Ze=[],De;He?De=He:De=Ae;var le=new Set(ke.filter(function(y){var z=!!(0,se.Z)(Te,y);return z||Ze.push(y),z})),E=new Map,a=0;Object.keys(Te).forEach(function(y){var z=Te[y],te=z.level,re=E.get(te);re||(re=new Set,E.set(te,re)),re.add(z),a=Math.max(a,te)}),(0,b.ZP)(!Ze.length,"Tree missing follow keys: ".concat(Ze.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var x;return We===!0?x=Ie(le,E,a,De):x=Oe(le,We.halfCheckedKeys,E,a,De),x}},67841:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return b}});function b(se,be){return se[be]}},71430:function(_t,Ot,ae){"use strict";ae.d(Ot,{F:function(){return te},H8:function(){return z},I8:function(){return y},km:function(){return Ze},oH:function(){return a},w$:function(){return De},zn:function(){return E}});var b=ae(42066),se=ae(65093),be=ae(35227),Ae=ae(61206),Ie=ae(11592),Oe=ae(2738),ue=ae(48736),ke=ae(67841),We=["children"];function Te(re,ie){return"".concat(re,"-").concat(ie)}function He(re){return re&&re.type&&re.type.isTreeNode}function Ze(re,ie){return re!=null?re:ie}function De(re){var ie=re||{},ce=ie.title,pe=ie._title,ge=ie.key,Ee=ie.children,ye=ce||"title";return{title:ye,_title:pe||[ye],key:ge||"key",children:Ee||"children"}}function le(re,ie){var ce=new Map;function pe(ge){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(ye){var Re=ye[ie.key],he=ye[ie.children];warning(Re!=null,"Tree node must have a certain key: [".concat(Ee).concat(Re,"]"));var qe=String(Re);warning(!ce.has(qe)||Re===null||Re===void 0,"Same 'key' exist in the Tree: ".concat(qe)),ce.set(qe,!0),pe(he,"".concat(Ee).concat(qe," > "))})}pe(re)}function E(re){function ie(ce){var pe=(0,Ie.Z)(ce);return pe.map(function(ge){if(!He(ge))return(0,ue.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var Ee=ge.key,ye=ge.props,Re=ye.children,he=(0,Ae.Z)(ye,We),qe=(0,be.Z)({key:Ee},he),je=ie(Re);return je.length&&(qe.children=je),qe}).filter(function(ge){return ge})}return ie(re)}function a(re,ie,ce){var pe=De(ce),ge=pe._title,Ee=pe.key,ye=pe.children,Re=new Set(ie===!0?[]:ie),he=[];function qe(je){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return je.map(function(Le,Je){for(var st=Te(ot?ot.pos:"0",Je),Ke=Ze(Le[Ee],st),$e,Wt=0;Wt<ge.length;Wt+=1){var it=ge[Wt];if(Le[it]!==void 0){$e=Le[it];break}}var jt=(0,be.Z)((0,be.Z)({},(0,Oe.Z)(Le,[].concat((0,se.Z)(ge),[Ee,ye]))),{},{title:$e,key:Ke,parent:ot,pos:st,children:null,data:Le,isStart:[].concat((0,se.Z)(ot?ot.isStart:[]),[Je===0]),isEnd:[].concat((0,se.Z)(ot?ot.isEnd:[]),[Je===je.length-1])});return he.push(jt),ie===!0||Re.has(Ke)?jt.children=qe(Le[ye]||[],jt):jt.children=[],jt})}return qe(re),he}function x(re,ie,ce){var pe={};(0,b.Z)(ce)==="object"?pe=ce:pe={externalGetKey:ce},pe=pe||{};var ge=pe,Ee=ge.childrenPropName,ye=ge.externalGetKey,Re=ge.fieldNames,he=De(Re),qe=he.key,je=he.children,ot=Ee||je,Le;ye?typeof ye=="string"?Le=function(Ke){return Ke[ye]}:typeof ye=="function"&&(Le=function(Ke){return ye(Ke)}):Le=function(Ke,$e){return Ze(Ke[qe],$e)};function Je(st,Ke,$e,Wt){var it=st?st[ot]:re,jt=st?Te($e.pos,Ke):"0",Xt=st?[].concat((0,se.Z)(Wt),[st]):[];if(st){var Qe=Le(st,jt),ft={node:st,index:Ke,pos:jt,key:Qe,parentPos:$e.node?$e.pos:null,level:$e.level+1,nodes:Xt};ie(ft)}it&&it.forEach(function(Dt,rn){Je(Dt,rn,{node:st,pos:jt,level:$e?$e.level+1:-1},Xt)})}Je(null)}function y(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=ie.initWrapper,pe=ie.processEntity,ge=ie.onProcessFinished,Ee=ie.externalGetKey,ye=ie.childrenPropName,Re=ie.fieldNames,he=arguments.length>2?arguments[2]:void 0,qe=Ee||he,je={},ot={},Le={posEntities:je,keyEntities:ot};return ce&&(Le=ce(Le)||Le),x(re,function(Je){var st=Je.node,Ke=Je.index,$e=Je.pos,Wt=Je.key,it=Je.parentPos,jt=Je.level,Xt=Je.nodes,Qe={node:st,nodes:Xt,index:Ke,key:Wt,pos:$e,level:jt},ft=Ze(Wt,$e);je[$e]=Qe,ot[ft]=Qe,Qe.parent=je[it],Qe.parent&&(Qe.parent.children=Qe.parent.children||[],Qe.parent.children.push(Qe)),pe&&pe(Qe,Le)},{externalGetKey:qe,childrenPropName:ye,fieldNames:Re}),ge&&ge(Le),Le}function z(re,ie){var ce=ie.expandedKeys,pe=ie.selectedKeys,ge=ie.loadedKeys,Ee=ie.loadingKeys,ye=ie.checkedKeys,Re=ie.halfCheckedKeys,he=ie.dragOverNodeKey,qe=ie.dropPosition,je=ie.keyEntities,ot=(0,ke.Z)(je,re),Le={eventKey:re,expanded:ce.indexOf(re)!==-1,selected:pe.indexOf(re)!==-1,loaded:ge.indexOf(re)!==-1,loading:Ee.indexOf(re)!==-1,checked:ye.indexOf(re)!==-1,halfChecked:Re.indexOf(re)!==-1,pos:String(ot?ot.pos:""),dragOver:he===re&&qe===0,dragOverGapTop:he===re&&qe===-1,dragOverGapBottom:he===re&&qe===1};return Le}function te(re){var ie=re.data,ce=re.expanded,pe=re.selected,ge=re.checked,Ee=re.loaded,ye=re.loading,Re=re.halfChecked,he=re.dragOver,qe=re.dragOverGapTop,je=re.dragOverGapBottom,ot=re.pos,Le=re.active,Je=re.eventKey,st=(0,be.Z)((0,be.Z)({},ie),{},{expanded:ce,selected:pe,checked:ge,loaded:Ee,loading:ye,halfChecked:Re,dragOver:he,dragOverGapTop:qe,dragOverGapBottom:je,pos:ot,active:Le,key:Je});return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),st}},8224:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z:function(){return se}});var b=ae(4676);function se(be,Ae,Ie,Oe){var ue=b.unstable_batchedUpdates?function(We){b.unstable_batchedUpdates(Ie,We)}:Ie;return be!=null&&be.addEventListener&&be.addEventListener(Ae,ue,Oe),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(Ae,ue,Oe)}}}},55468:function(_t,Ot,ae){"use strict";ae.d(Ot,{g1:function(){return He},os:function(){return De}});var b=/margin|padding|width|height|max|min|offset/,se={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function Ae(le){return le.nodeType===1?le.ownerDocument.defaultView.getComputedStyle(le,null):{}}function Ie(le,E,a){if(E=E.toLowerCase(),a==="auto"){if(E==="height")return le.offsetHeight;if(E==="width")return le.offsetWidth}return E in se||(se[E]=b.test(E)),se[E]?parseFloat(a)||0:a}function Oe(le,E){var a=arguments.length,x=Ae(le);return E=be[E]?"cssFloat"in le.style?"cssFloat":"styleFloat":E,a===1?x:Ie(le,E,x[E]||le.style[E])}function ue(le,E,a){var x=arguments.length;if(E=be[E]?"cssFloat"in le.style?"cssFloat":"styleFloat":E,x===3)return typeof a=="number"&&b.test(E)&&(a="".concat(a,"px")),le.style[E]=a,a;for(var y in E)E.hasOwnProperty(y)&&ue(le,y,E[y]);return Ae(le)}function ke(le){return le===document.body?document.documentElement.clientWidth:le.offsetWidth}function We(le){return le===document.body?window.innerHeight||document.documentElement.clientHeight:le.offsetHeight}function Te(){var le=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),E=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:le,height:E}}function He(){var le=document.documentElement.clientWidth,E=window.innerHeight||document.documentElement.clientHeight;return{width:le,height:E}}function Ze(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function De(le){var E=le.getBoundingClientRect(),a=document.documentElement;return{left:E.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:E.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},24514:function(_t,Ot,ae){"use strict";ae.d(Ot,{G:function(){return Ae}});var b=ae(47273),se=function(Oe){if((0,b.Z)()&&window.document.documentElement){var ue=Array.isArray(Oe)?Oe:[Oe],ke=window.document.documentElement;return ue.some(function(We){return We in ke.style})}return!1},be=function(Oe,ue){if(!se(Oe))return!1;var ke=document.createElement("div"),We=ke.style[Oe];return ke.style[Oe]=ue,ke.style[Oe]!==We};function Ae(Ie,Oe){return!Array.isArray(Ie)&&Oe!==void 0?be(Ie,Oe):se(Ie)}},95947:function(_t,Ot,ae){"use strict";ae.d(Ot,{Z5:function(){return Xs},_l:function(){return jd},bK:function(){return ws}});var b=ae(59301),se=ae(14327);function be(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,se.Z)(ee,ne)}var Ae=ae(16378),Ie=ae(59781),Oe=b.createContext(null),ue=null;function ke(ee){ee()}var We=ke,Te=function(ne){return We=ne},He=function(){return We};function Ze(){var ee=He(),ne=null,oe=null;return{clear:function(){ne=null,oe=null},notify:function(){ee(function(){for(var Se=ne;Se;)Se.callback(),Se=Se.next})},get:function(){for(var Se=[],Pe=ne;Pe;)Se.push(Pe),Pe=Pe.next;return Se},subscribe:function(Se){var Pe=!0,xe=oe={callback:Se,next:null,prev:oe};return xe.prev?xe.prev.next=xe:ne=xe,function(){!Pe||ne===null||(Pe=!1,xe.next?xe.next.prev=xe.prev:oe=xe.prev,xe.prev?xe.prev.next=xe.next:ne=xe.next)}}}}var De={notify:function(){},get:function(){return[]}};function le(ee,ne){var oe,de=De;function Se(ut){return rt(),de.subscribe(ut)}function Pe(){de.notify()}function xe(){St.onStateChange&&St.onStateChange()}function Ne(){return!!oe}function rt(){oe||(oe=ne?ne.addNestedSub(xe):ee.subscribe(xe),de=Ze())}function yt(){oe&&(oe(),oe=void 0,de.clear(),de=De)}var St={addNestedSub:Se,notifyNestedSubs:Pe,handleChangeWrapper:xe,isSubscribed:Ne,trySubscribe:rt,tryUnsubscribe:yt,getListeners:function(){return de}};return St}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var ne=ee.store,oe=ee.context,de=ee.children,Se=(0,b.useMemo)(function(){var Ne=le(ne);return{store:ne,subscription:Ne}},[ne]),Pe=(0,b.useMemo)(function(){return ne.getState()},[ne]);E(function(){var Ne=Se.subscription;return Ne.onStateChange=Ne.notifyNestedSubs,Ne.trySubscribe(),Pe!==ne.getState()&&Ne.notifyNestedSubs(),function(){Ne.tryUnsubscribe(),Ne.onStateChange=null}},[Se,Pe]);var xe=oe||Oe;return b.createElement(xe.Provider,{value:Se},de)}var x=a,y=ae(90896),z=ae(94266),te=ae.n(z),re=ae(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ce=["reactReduxForwardedRef"],pe=[],ge=[null,null],Ee=function(ne){try{return JSON.stringify(ne)}catch(oe){return String(ne)}};function ye(ee,ne){var oe=ee[1];return[ne.payload,oe+1]}function Re(ee,ne,oe){E(function(){return ee.apply(void 0,ne)},oe)}function he(ee,ne,oe,de,Se,Pe,xe){ee.current=de,ne.current=Se,oe.current=!1,Pe.current&&(Pe.current=null,xe())}function qe(ee,ne,oe,de,Se,Pe,xe,Ne,rt,yt){if(ee){var St=!1,ut=null,dt=function(){if(!St){var ua=ne.getState(),ma,Sa;try{ma=de(ua,Se.current)}catch(_a){Sa=_a,ut=_a}Sa||(ut=null),ma===Pe.current?xe.current||rt():(Pe.current=ma,Ne.current=ma,xe.current=!0,yt({type:"STORE_UPDATED",payload:{error:Sa}}))}};oe.onStateChange=dt,oe.trySubscribe(),dt();var Nt=function(){if(St=!0,oe.tryUnsubscribe(),oe.onStateChange=null,ut)throw ut};return Nt}}var je=function(){return[null,0]};function ot(ee,ne){ne===void 0&&(ne={});var oe=ne,de=oe.getDisplayName,Se=de===void 0?function(Or){return"ConnectAdvanced("+Or+")"}:de,Pe=oe.methodName,xe=Pe===void 0?"connectAdvanced":Pe,Ne=oe.renderCountProp,rt=Ne===void 0?void 0:Ne,yt=oe.shouldHandleStateChanges,St=yt===void 0?!0:yt,ut=oe.storeKey,dt=ut===void 0?"store":ut,Nt=oe.withRef,gn=Nt===void 0?!1:Nt,ua=oe.forwardRef,ma=ua===void 0?!1:ua,Sa=oe.context,_a=Sa===void 0?Oe:Sa,Va=(0,y.Z)(oe,ie);if(0)var ar;var jr=_a;return function(io){var ii=io.displayName||io.name||"Component",ho=Se(ii),li=(0,Ae.Z)({},Va,{getDisplayName:Se,methodName:xe,renderCountProp:rt,shouldHandleStateChanges:St,storeKey:dt,displayName:ho,wrappedComponentName:ii,WrappedComponent:io}),wi=Va.pure;function Oi(Li){return ee(Li.dispatch,li)}var yl=wi?b.useMemo:function(Li){return Li()};function fl(Li){var zl=(0,b.useMemo)(function(){var Au=Li.reactReduxForwardedRef,ds=(0,y.Z)(Li,ce);return[Li.context,Au,ds]},[Li]),Cl=zl[0],Bu=zl[1],Yl=zl[2],jl=(0,b.useMemo)(function(){return Cl&&Cl.Consumer&&(0,re.isContextConsumer)(b.createElement(Cl.Consumer,null))?Cl:jr},[Cl,jr]),xl=(0,b.useContext)(jl),Xl=!!Li.store&&!!Li.store.getState&&!!Li.store.dispatch,ju=!!xl&&!!xl.store,Bl=Xl?Li.store:xl.store,Fu=(0,b.useMemo)(function(){return Oi(Bl)},[Bl]),Gu=(0,b.useMemo)(function(){if(!St)return ge;var Au=le(Bl,Xl?null:xl.subscription),ds=Au.notifyNestedSubs.bind(Au);return[Au,ds]},[Bl,Xl,xl]),mu=Gu[0],Hu=Gu[1],Wu=(0,b.useMemo)(function(){return Xl?xl:(0,Ae.Z)({},xl,{subscription:mu})},[Xl,xl,mu]),Ds=(0,b.useReducer)(ye,pe,je),Vd=Ds[0],Ku=Vd[0],Qd=Ds[1];if(Ku&&Ku.error)throw Ku.error;var Is=(0,b.useRef)(),ls=(0,b.useRef)(Yl),Uu=(0,b.useRef)(),Ns=(0,b.useRef)(!1),us=yl(function(){return Uu.current&&Yl===ls.current?Uu.current:Fu(Bl.getState(),Yl)},[Bl,Ku,Yl]);Re(he,[ls,Is,Ns,Yl,us,Uu,Hu]),Re(qe,[St,Bl,mu,Fu,ls,Is,Ns,Uu,Hu,Qd],[Bl,mu,Fu]);var ss=(0,b.useMemo)(function(){return b.createElement(io,(0,Ae.Z)({},us,{ref:Bu}))},[Bu,io,us]),Jd=(0,b.useMemo)(function(){return St?b.createElement(jl.Provider,{value:Wu},ss):ss},[jl,ss,Wu]);return Jd}var rl=wi?b.memo(fl):fl;if(rl.WrappedComponent=io,rl.displayName=fl.displayName=ho,ma){var bl=b.forwardRef(function(zl,Cl){return b.createElement(rl,(0,Ae.Z)({},zl,{reactReduxForwardedRef:Cl}))});return bl.displayName=ho,bl.WrappedComponent=io,te()(bl,io)}return te()(rl,io)}}function Le(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function Je(ee,ne){if(Le(ee,ne))return!0;if(typeof ee!="object"||ee===null||typeof ne!="object"||ne===null)return!1;var oe=Object.keys(ee),de=Object.keys(ne);if(oe.length!==de.length)return!1;for(var Se=0;Se<oe.length;Se++)if(!Object.prototype.hasOwnProperty.call(ne,oe[Se])||!Le(ee[oe[Se]],ne[oe[Se]]))return!1;return!0}function st(ee,ne){var oe={},de=function(xe){var Ne=ee[xe];typeof Ne=="function"&&(oe[xe]=function(){return ne(Ne.apply(void 0,arguments))})};for(var Se in ee)de(Se);return oe}function Ke(ee){return function(oe,de){var Se=ee(oe,de);function Pe(){return Se}return Pe.dependsOnOwnProps=!1,Pe}}function $e(ee){return ee.dependsOnOwnProps!==null&&ee.dependsOnOwnProps!==void 0?!!ee.dependsOnOwnProps:ee.length!==1}function Wt(ee,ne){return function(de,Se){var Pe=Se.displayName,xe=function(rt,yt){return xe.dependsOnOwnProps?xe.mapToProps(rt,yt):xe.mapToProps(rt)};return xe.dependsOnOwnProps=!0,xe.mapToProps=function(rt,yt){xe.mapToProps=ee,xe.dependsOnOwnProps=$e(ee);var St=xe(rt,yt);return typeof St=="function"&&(xe.mapToProps=St,xe.dependsOnOwnProps=$e(St),St=xe(rt,yt)),St},xe}}function it(ee){return typeof ee=="function"?Wt(ee,"mapDispatchToProps"):void 0}function jt(ee){return ee?void 0:Ke(function(ne){return{dispatch:ne}})}function Xt(ee){return ee&&typeof ee=="object"?Ke(function(ne){return st(ee,ne)}):void 0}var Qe=[it,jt,Xt];function ft(ee){return typeof ee=="function"?Wt(ee,"mapStateToProps"):void 0}function Dt(ee){return ee?void 0:Ke(function(){return{}})}var rn=[ft,Dt];function Pt(ee,ne,oe){return(0,Ae.Z)({},oe,ee,ne)}function Jt(ee){return function(oe,de){var Se=de.displayName,Pe=de.pure,xe=de.areMergedPropsEqual,Ne=!1,rt;return function(St,ut,dt){var Nt=ee(St,ut,dt);return Ne?(!Pe||!xe(Nt,rt))&&(rt=Nt):(Ne=!0,rt=Nt),rt}}}function Be(ee){return typeof ee=="function"?Jt(ee):void 0}function Ut(ee){return ee?void 0:function(){return Pt}}var En=[Be,Ut],Ct=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function It(ee,ne,oe,de){return function(Pe,xe){return oe(ee(Pe,xe),ne(de,xe),xe)}}function et(ee,ne,oe,de,Se){var Pe=Se.areStatesEqual,xe=Se.areOwnPropsEqual,Ne=Se.areStatePropsEqual,rt=!1,yt,St,ut,dt,Nt;function gn(Va,ar){return yt=Va,St=ar,ut=ee(yt,St),dt=ne(de,St),Nt=oe(ut,dt,St),rt=!0,Nt}function ua(){return ut=ee(yt,St),ne.dependsOnOwnProps&&(dt=ne(de,St)),Nt=oe(ut,dt,St),Nt}function ma(){return ee.dependsOnOwnProps&&(ut=ee(yt,St)),ne.dependsOnOwnProps&&(dt=ne(de,St)),Nt=oe(ut,dt,St),Nt}function Sa(){var Va=ee(yt,St),ar=!Ne(Va,ut);return ut=Va,ar&&(Nt=oe(ut,dt,St)),Nt}function _a(Va,ar){var jr=!xe(ar,St),Or=!Pe(Va,yt,ar,St);return yt=Va,St=ar,jr&&Or?ua():jr?ma():Or?Sa():Nt}return function(ar,jr){return rt?_a(ar,jr):gn(ar,jr)}}function Ue(ee,ne){var oe=ne.initMapStateToProps,de=ne.initMapDispatchToProps,Se=ne.initMergeProps,Pe=(0,y.Z)(ne,Ct),xe=oe(ee,Pe),Ne=de(ee,Pe),rt=Se(ee,Pe),yt=Pe.pure?et:It;return yt(xe,Ne,rt,ee,Pe)}var Fe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ve(ee,ne,oe){for(var de=ne.length-1;de>=0;de--){var Se=ne[de](ee);if(Se)return Se}return function(Pe,xe){throw new Error("Invalid value of type "+typeof ee+" for "+oe+" argument when connecting component "+xe.wrappedComponentName+".")}}function tt(ee,ne){return ee===ne}function At(ee){var ne=ee===void 0?{}:ee,oe=ne.connectHOC,de=oe===void 0?ot:oe,Se=ne.mapStateToPropsFactories,Pe=Se===void 0?rn:Se,xe=ne.mapDispatchToPropsFactories,Ne=xe===void 0?Qe:xe,rt=ne.mergePropsFactories,yt=rt===void 0?En:rt,St=ne.selectorFactory,ut=St===void 0?Ue:St;return function(Nt,gn,ua,ma){ma===void 0&&(ma={});var Sa=ma,_a=Sa.pure,Va=_a===void 0?!0:_a,ar=Sa.areStatesEqual,jr=ar===void 0?tt:ar,Or=Sa.areOwnPropsEqual,io=Or===void 0?Je:Or,ii=Sa.areStatePropsEqual,ho=ii===void 0?Je:ii,li=Sa.areMergedPropsEqual,wi=li===void 0?Je:li,Oi=(0,y.Z)(Sa,Fe),yl=ve(Nt,Pe,"mapStateToProps"),fl=ve(gn,Ne,"mapDispatchToProps"),rl=ve(ua,yt,"mergeProps");return de(ut,(0,Ae.Z)({methodName:"connect",getDisplayName:function(Li){return"Connect("+Li+")"},shouldHandleStateChanges:!!Nt,initMapStateToProps:yl,initMapDispatchToProps:fl,initMergeProps:rl,pure:Va,areStatesEqual:jr,areOwnPropsEqual:io,areStatePropsEqual:ho,areMergedPropsEqual:wi},Oi))}}var we=At();function Ce(){var ee=useContext(ReactReduxContext);return ee}function vt(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=ne(),Se=de.store;return Se}}var Ye=null;function _e(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var Et=null,cn=function(ne,oe){return ne===oe};function Lt(ee,ne,oe,de){var Se=useReducer(function(gn){return gn+1},0),Pe=Se[1],xe=useMemo(function(){return createSubscription(oe,de)},[oe,de]),Ne=useRef(),rt=useRef(),yt=useRef(),St=useRef(),ut=oe.getState(),dt;try{if(ee!==rt.current||ut!==yt.current||Ne.current){var Nt=ee(ut);St.current===void 0||!ne(Nt,St.current)?dt=Nt:dt=St.current}else dt=St.current}catch(gn){throw Ne.current&&(gn.message+=`
The error may be correlated with this previous error:
`+Ne.current.stack+`
`),gn}return useIsomorphicLayoutEffect(function(){rt.current=ee,yt.current=ut,St.current=dt,Ne.current=void 0}),useIsomorphicLayoutEffect(function(){function gn(){try{var ua=oe.getState();if(ua===yt.current)return;var ma=rt.current(ua);if(ne(ma,St.current))return;St.current=ma,yt.current=ua}catch(Sa){Ne.current=Sa}Pe()}return xe.onStateChange=gn,xe.trySubscribe(),gn(),function(){return xe.tryUnsubscribe()}},[oe,xe]),dt}function qt(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(de,Se){Se===void 0&&(Se=cn);var Pe=ne(),xe=Pe.store,Ne=Pe.subscription,rt=Lt(de,Se,xe,Ne);return useDebugValue(rt),rt}}var Yt=null,nn=ae(4676);Te(nn.unstable_batchedUpdates);function bt(ee,ne){if(ee.length!==ne.length)return!1;for(var oe=0;oe<ee.length;oe++)if(ee[oe]!==ne[oe])return!1;return!0}function on(ee,ne){var oe=(0,b.useState)(function(){return{inputs:ne,result:ee()}})[0],de=(0,b.useRef)(!0),Se=(0,b.useRef)(oe),Pe=de.current||!!(ne&&Se.current.inputs&&bt(ne,Se.current.inputs)),xe=Pe?Se.current:{inputs:ne,result:ee()};return(0,b.useEffect)(function(){de.current=!1,Se.current=xe},[xe]),xe.result}function An(ee,ne){return on(function(){return ee},ne)}var Zt=on,wt=An,Nn=!0,zn="Invariant failed";function Wn(ee,ne){if(!ee){if(Nn)throw new Error(zn);var oe=typeof ne=="function"?ne():ne,de=oe?"".concat(zn,": ").concat(oe):zn;throw new Error(de)}}var Yn=function(ne){var oe=ne.top,de=ne.right,Se=ne.bottom,Pe=ne.left,xe=de-Pe,Ne=Se-oe,rt={top:oe,right:de,bottom:Se,left:Pe,width:xe,height:Ne,x:Pe,y:oe,center:{x:(de+Pe)/2,y:(Se+oe)/2}};return rt},xa=function(ne,oe){return{top:ne.top-oe.top,left:ne.left-oe.left,bottom:ne.bottom+oe.bottom,right:ne.right+oe.right}},ln=function(ne,oe){return{top:ne.top+oe.top,left:ne.left+oe.left,bottom:ne.bottom-oe.bottom,right:ne.right-oe.right}},en=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},pn={top:0,right:0,bottom:0,left:0},Zn=function(ne){var oe=ne.borderBox,de=ne.margin,Se=de===void 0?pn:de,Pe=ne.border,xe=Pe===void 0?pn:Pe,Ne=ne.padding,rt=Ne===void 0?pn:Ne,yt=Yn(xa(oe,Se)),St=Yn(ln(oe,xe)),ut=Yn(ln(St,rt));return{marginBox:yt,borderBox:Yn(oe),paddingBox:St,contentBox:ut,margin:Se,border:xe,padding:rt}},xn=function(ne){var oe=ne.slice(0,-2),de=ne.slice(-2);if(de!=="px")return 0;var Se=Number(oe);return isNaN(Se)&&Wn(!1),Se},La=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Wa=function(ne,oe){var de=ne.borderBox,Se=ne.border,Pe=ne.margin,xe=ne.padding,Ne=en(de,oe);return Zn({borderBox:Ne,border:Se,margin:Pe,padding:xe})},ta=function(ne,oe){return oe===void 0&&(oe=La()),Wa(ne,oe)},yn=function(ne,oe){var de={top:xn(oe.marginTop),right:xn(oe.marginRight),bottom:xn(oe.marginBottom),left:xn(oe.marginLeft)},Se={top:xn(oe.paddingTop),right:xn(oe.paddingRight),bottom:xn(oe.paddingBottom),left:xn(oe.paddingLeft)},Pe={top:xn(oe.borderTopWidth),right:xn(oe.borderRightWidth),bottom:xn(oe.borderBottomWidth),left:xn(oe.borderLeftWidth)};return Zn({borderBox:ne,margin:de,padding:Se,border:Pe})},Oa=function(ne){var oe=ne.getBoundingClientRect(),de=window.getComputedStyle(ne);return yn(oe,de)},Ve=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function Ft(ee,ne){return!!(ee===ne||Ve(ee)&&Ve(ne))}function Ht(ee,ne){if(ee.length!==ne.length)return!1;for(var oe=0;oe<ee.length;oe++)if(!Ft(ee[oe],ne[oe]))return!1;return!0}function Vt(ee,ne){ne===void 0&&(ne=Ht);var oe,de=[],Se,Pe=!1;function xe(){for(var Ne=[],rt=0;rt<arguments.length;rt++)Ne[rt]=arguments[rt];return Pe&&oe===this&&ne(Ne,de)||(Se=ee.apply(this,Ne),Pe=!0,oe=this,de=Ne),Se}return xe}var tn=Vt,Sn=function(ne){var oe=[],de=null,Se=function(){for(var xe=arguments.length,Ne=new Array(xe),rt=0;rt<xe;rt++)Ne[rt]=arguments[rt];oe=Ne,!de&&(de=requestAnimationFrame(function(){de=null,ne.apply(void 0,oe)}))};return Se.cancel=function(){de&&(cancelAnimationFrame(de),de=null)},Se},mn=Sn,lt=!0,pt=/[ \t]{2,}/g,ct=/^[ \t]*/gm,Kt=function(ne){return ne.replace(pt," ").replace(ct,"").trim()},vn=function(ne){return Kt(`
%creact-beautiful-dnd
%c`+Kt(ne)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},an=function(ne){return[vn(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},kn="__react-beautiful-dnd-disable-dev-warnings";function Fn(ee,ne){var oe;lt||typeof window!="undefined"&&window[kn]||(oe=console)[ee].apply(oe,an(ne))}var Bn=Fn.bind(null,"warn"),Un=Fn.bind(null,"error");function Ra(){}function bn(ee,ne){return(0,Ae.Z)({},ee,{},ne)}function pa(ee,ne,oe){var de=ne.map(function(Se){var Pe=bn(oe,Se.options);return ee.addEventListener(Se.eventName,Se.fn,Pe),function(){ee.removeEventListener(Se.eventName,Se.fn,Pe)}});return function(){de.forEach(function(Pe){Pe()})}}var $a=!0,lr="Invariant failed";function Jn(ee){this.message=ee}Jn.prototype.toString=function(){return this.message};function sn(ee,ne){if(!ee)throw $a?new Jn(lr):new Jn(lr+": "+(ne||""))}var Dr=function(ee){be(ne,ee);function ne(){for(var de,Se=arguments.length,Pe=new Array(Se),xe=0;xe<Se;xe++)Pe[xe]=arguments[xe];return de=ee.call.apply(ee,[this].concat(Pe))||this,de.callbacks=null,de.unbind=Ra,de.onWindowError=function(Ne){var rt=de.getCallbacks();rt.isDragging()&&rt.tryAbort();var yt=Ne.error;yt instanceof Jn&&Ne.preventDefault()},de.getCallbacks=function(){if(!de.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return de.callbacks},de.setCallbacks=function(Ne){de.callbacks=Ne},de}var oe=ne.prototype;return oe.componentDidMount=function(){this.unbind=pa(window,[{eventName:"error",fn:this.onWindowError}])},oe.componentWillUnmount=function(){this.unbind()},oe.componentDidCatch=function(Se){if(Se instanceof Jn){this.setState({});return}throw Se},oe.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ga=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,Er=function(ne){return ne+1},Cr=function(ne){return`
You have lifted an item in position `+Er(ne.source.index)+`
`},Lr=function(ne,oe){var de=ne.droppableId===oe.droppableId,Se=Er(ne.index),Pe=Er(oe.index);return de?`
You have moved the item from position `+Se+`
to position `+Pe+`
`:`
You have moved the item from position `+Se+`
in list `+ne.droppableId+`
to list `+oe.droppableId+`
in position `+Pe+`
`},xr=function(ne,oe,de){var Se=oe.droppableId===de.droppableId;return Se?`
The item `+ne+`
has been combined with `+de.draggableId:`
The item `+ne+`
in list `+oe.droppableId+`
has been combined with `+de.draggableId+`
in list `+de.droppableId+`
`},so=function(ne){var oe=ne.destination;if(oe)return Lr(ne.source,oe);var de=ne.combine;return de?xr(ne.draggableId,ne.source,de):"You are over an area that cannot be dropped on"},qr=function(ne){return`
The item has returned to its starting position
of `+Er(ne.index)+`
`},_o=function(ne){if(ne.reason==="CANCEL")return`
Movement cancelled.
`+qr(ne.source)+`
`;var oe=ne.destination,de=ne.combine;return oe?`
You have dropped the item.
`+Lr(ne.source,oe)+`
`:de?`
You have dropped the item.
`+xr(ne.draggableId,ne.source,de)+`
`:`
The item has been dropped while not over a drop area.
`+qr(ne.source)+`
`},Mn={dragHandleUsageInstructions:Ga,onDragStart:Cr,onDragUpdate:so,onDragEnd:_o},Mr={x:0,y:0},Rr=function(ne,oe){return{x:ne.x+oe.x,y:ne.y+oe.y}},Gr=function(ne,oe){return{x:ne.x-oe.x,y:ne.y-oe.y}},za=function(ne,oe){return ne.x===oe.x&&ne.y===oe.y},$n=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Aa=function(ne,oe,de){var Se;return de===void 0&&(de=0),Se={},Se[ne]=oe,Se[ne==="x"?"y":"x"]=de,Se},ja=function(ne,oe){return Math.sqrt(Math.pow(oe.x-ne.x,2)+Math.pow(oe.y-ne.y,2))},ga=function(ne,oe){return Math.min.apply(Math,oe.map(function(de){return ja(ne,de)}))},fr=function(ne){return function(oe){return{x:ne(oe.x),y:ne(oe.y)}}},Hr=function(ee,ne){var oe=Yn({top:Math.max(ne.top,ee.top),right:Math.min(ne.right,ee.right),bottom:Math.min(ne.bottom,ee.bottom),left:Math.max(ne.left,ee.left)});return oe.width<=0||oe.height<=0?null:oe},oo=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},Tr=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},co={top:0,right:0,bottom:0,left:0},ni=function(ne,oe){return oe?oo(ne,oe.scroll.diff.displacement):ne},Jo=function(ne,oe,de){if(de&&de.increasedBy){var Se;return(0,Ae.Z)({},ne,(Se={},Se[oe.end]=ne[oe.end]+de.increasedBy[oe.line],Se))}return ne},_i=function(ne,oe){return oe&&oe.shouldClipSubject?Hr(oe.pageMarginBox,ne):Yn(ne)},So=function(ee){var ne=ee.page,oe=ee.withPlaceholder,de=ee.axis,Se=ee.frame,Pe=ni(ne.marginBox,Se),xe=Jo(Pe,de,oe),Ne=_i(xe,Se);return{page:ne,withPlaceholder:oe,active:Ne}},Ba=function(ee,ne){ee.frame||sn(!1);var oe=ee.frame,de=Gr(ne,oe.scroll.initial),Se=$n(de),Pe=(0,Ae.Z)({},oe,{scroll:{initial:oe.scroll.initial,current:ne,diff:{value:de,displacement:Se},max:oe.scroll.max}}),xe=So({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:Pe}),Ne=(0,Ae.Z)({},ee,{frame:Pe,subject:xe});return Ne};function eo(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function mo(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(ne){return ee[ne]})}function Ro(ee,ne){if(ee.findIndex)return ee.findIndex(ne);for(var oe=0;oe<ee.length;oe++)if(ne(ee[oe]))return oe;return-1}function Po(ee,ne){if(ee.find)return ee.find(ne);var oe=Ro(ee,ne);if(oe!==-1)return ee[oe]}function xo(ee){return Array.prototype.slice.call(ee)}var oi=tn(function(ee){return ee.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),$o=tn(function(ee){return ee.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),Ho=tn(function(ee){return mo(ee)}),Ci=tn(function(ee){return mo(ee)}),Uo=tn(function(ee,ne){var oe=Ci(ne).filter(function(de){return ee===de.descriptor.droppableId}).sort(function(de,Se){return de.descriptor.index-Se.descriptor.index});return oe});function Eo(ee){return ee.at&&ee.at.type==="REORDER"?ee.at.destination:null}function xi(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine:null}var yo=tn(function(ee,ne){return ne.filter(function(oe){return oe.descriptor.id!==ee.descriptor.id})}),Mi=function(ee){var ne=ee.isMovingForward,oe=ee.draggable,de=ee.destination,Se=ee.insideDestination,Pe=ee.previousImpact;if(!de.isCombineEnabled)return null;var xe=Eo(Pe);if(!xe)return null;function Ne(ua){var ma={type:"COMBINE",combine:{draggableId:ua,droppableId:de.descriptor.id}};return(0,Ae.Z)({},Pe,{at:ma})}var rt=Pe.displaced.all,yt=rt.length?rt[0]:null;if(ne)return yt?Ne(yt):null;var St=yo(oe,Se);if(!yt){if(!St.length)return null;var ut=St[St.length-1];return Ne(ut.descriptor.id)}var dt=Ro(St,function(ua){return ua.descriptor.id===yt});dt===-1&&sn(!1);var Nt=dt-1;if(Nt<0)return null;var gn=St[Nt];return Ne(gn.descriptor.id)},ai=function(ee,ne){return ee.descriptor.droppableId===ne.descriptor.id},Wi={point:Mr,value:0},Di={invisible:{},visible:{},all:[]},Ti={displaced:Di,displacedBy:Wi,at:null},Yo=function(ee,ne){return function(oe){return ee<=oe&&oe<=ne}},Ki=function(ee){var ne=Yo(ee.top,ee.bottom),oe=Yo(ee.left,ee.right);return function(de){var Se=ne(de.top)&&ne(de.bottom)&&oe(de.left)&&oe(de.right);if(Se)return!0;var Pe=ne(de.top)||ne(de.bottom),xe=oe(de.left)||oe(de.right),Ne=Pe&&xe;if(Ne)return!0;var rt=de.top<ee.top&&de.bottom>ee.bottom,yt=de.left<ee.left&&de.right>ee.right,St=rt&&yt;if(St)return!0;var ut=rt&&xe||yt&&Pe;return ut}},pl=function(ee){var ne=Yo(ee.top,ee.bottom),oe=Yo(ee.left,ee.right);return function(de){var Se=ne(de.top)&&ne(de.bottom)&&oe(de.left)&&oe(de.right);return Se}},$i={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Yi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ur=function(ee){return function(ne){var oe=Yo(ne.top,ne.bottom),de=Yo(ne.left,ne.right);return function(Se){return ee===$i?oe(Se.top)&&oe(Se.bottom):de(Se.left)&&de(Se.right)}}},Ta=function(ne,oe){var de=oe.frame?oe.frame.scroll.diff.displacement:Mr;return oo(ne,de)},na=function(ne,oe,de){return oe.subject.active?de(oe.subject.active)(ne):!1},ia=function(ne,oe,de){return de(oe)(ne)},Pa=function(ne){var oe=ne.target,de=ne.destination,Se=ne.viewport,Pe=ne.withDroppableDisplacement,xe=ne.isVisibleThroughFrameFn,Ne=Pe?Ta(oe,de):oe;return na(Ne,de,xe)&&ia(Ne,Se,xe)},hr=function(ne){return Pa((0,Ae.Z)({},ne,{isVisibleThroughFrameFn:Ki}))},_r=function(ne){return Pa((0,Ae.Z)({},ne,{isVisibleThroughFrameFn:pl}))},no=function(ne){return Pa((0,Ae.Z)({},ne,{isVisibleThroughFrameFn:Ur(ne.destination.axis)}))},fo=function(ne,oe,de){if(typeof de=="boolean")return de;if(!oe)return!0;var Se=oe.invisible,Pe=oe.visible;if(Se[ne])return!1;var xe=Pe[ne];return xe?xe.shouldAnimate:!0};function wo(ee,ne){var oe=ee.page.marginBox,de={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return Yn(xa(oe,de))}function Bo(ee){var ne=ee.afterDragging,oe=ee.destination,de=ee.displacedBy,Se=ee.viewport,Pe=ee.forceShouldAnimate,xe=ee.last;return ne.reduce(function(rt,yt){var St=wo(yt,de),ut=yt.descriptor.id;rt.all.push(ut);var dt=hr({target:St,destination:oe,viewport:Se,withDroppableDisplacement:!0});if(!dt)return rt.invisible[yt.descriptor.id]=!0,rt;var Nt=fo(ut,xe,Pe),gn={draggableId:ut,shouldAnimate:Nt};return rt.visible[ut]=gn,rt},{all:[],visible:{},invisible:{}})}function ka(ee,ne){if(!ee.length)return 0;var oe=ee[ee.length-1].descriptor.index;return ne.inHomeList?oe:oe+1}function zo(ee){var ne=ee.insideDestination,oe=ee.inHomeList,de=ee.displacedBy,Se=ee.destination,Pe=ka(ne,{inHomeList:oe});return{displaced:Di,displacedBy:de,at:{type:"REORDER",destination:{droppableId:Se.descriptor.id,index:Pe}}}}function Bi(ee){var ne=ee.draggable,oe=ee.insideDestination,de=ee.destination,Se=ee.viewport,Pe=ee.displacedBy,xe=ee.last,Ne=ee.index,rt=ee.forceShouldAnimate,yt=ai(ne,de);if(Ne==null)return zo({insideDestination:oe,inHomeList:yt,displacedBy:Pe,destination:de});var St=Po(oe,function(ua){return ua.descriptor.index===Ne});if(!St)return zo({insideDestination:oe,inHomeList:yt,displacedBy:Pe,destination:de});var ut=yo(ne,oe),dt=oe.indexOf(St),Nt=ut.slice(dt),gn=Bo({afterDragging:Nt,destination:de,displacedBy:Pe,last:xe,viewport:Se.frame,forceShouldAnimate:rt});return{displaced:gn,displacedBy:Pe,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:Ne}}}}function si(ee,ne){return!!ne.effected[ee]}var ki=function(ee){var ne=ee.isMovingForward,oe=ee.destination,de=ee.draggables,Se=ee.combine,Pe=ee.afterCritical;if(!oe.isCombineEnabled)return null;var xe=Se.draggableId,Ne=de[xe],rt=Ne.descriptor.index,yt=si(xe,Pe);return yt?ne?rt:rt-1:ne?rt+1:rt},Zi=function(ee){var ne=ee.isMovingForward,oe=ee.isInHomeList,de=ee.insideDestination,Se=ee.location;if(!de.length)return null;var Pe=Se.index,xe=ne?Pe+1:Pe-1,Ne=de[0].descriptor.index,rt=de[de.length-1].descriptor.index,yt=oe?rt:rt+1;return xe<Ne||xe>yt?null:xe},zi=function(ee){var ne=ee.isMovingForward,oe=ee.isInHomeList,de=ee.draggable,Se=ee.draggables,Pe=ee.destination,xe=ee.insideDestination,Ne=ee.previousImpact,rt=ee.viewport,yt=ee.afterCritical,St=Ne.at;if(St||sn(!1),St.type==="REORDER"){var ut=Zi({isMovingForward:ne,isInHomeList:oe,location:St.destination,insideDestination:xe});return ut==null?null:Bi({draggable:de,insideDestination:xe,destination:Pe,viewport:rt,last:Ne.displaced,displacedBy:Ne.displacedBy,index:ut})}var dt=ki({isMovingForward:ne,destination:Pe,displaced:Ne.displaced,draggables:Se,combine:St.combine,afterCritical:yt});return dt==null?null:Bi({draggable:de,insideDestination:xe,destination:Pe,viewport:rt,last:Ne.displaced,displacedBy:Ne.displacedBy,index:dt})},Wr=function(ee){var ne=ee.displaced,oe=ee.afterCritical,de=ee.combineWith,Se=ee.displacedBy,Pe=!!(ne.visible[de]||ne.invisible[de]);return si(de,oe)?Pe?Mr:$n(Se.point):Pe?Se.point:Mr},Xo=function(ee){var ne=ee.afterCritical,oe=ee.impact,de=ee.draggables,Se=xi(oe);Se||sn(!1);var Pe=Se.draggableId,xe=de[Pe].page.borderBox.center,Ne=Wr({displaced:oe.displaced,afterCritical:ne,combineWith:Pe,displacedBy:oe.displacedBy});return Rr(xe,Ne)},ol=function(ne,oe){return oe.margin[ne.start]+oe.borderBox[ne.size]/2},vi=function(ne,oe){return oe.margin[ne.end]+oe.borderBox[ne.size]/2},Ui=function(ne,oe,de){return oe[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},il=function(ne){var oe=ne.axis,de=ne.moveRelativeTo,Se=ne.isMoving;return Aa(oe.line,de.marginBox[oe.end]+ol(oe,Se),Ui(oe,de.marginBox,Se))},Xi=function(ne){var oe=ne.axis,de=ne.moveRelativeTo,Se=ne.isMoving;return Aa(oe.line,de.marginBox[oe.start]-vi(oe,Se),Ui(oe,de.marginBox,Se))},Mo=function(ne){var oe=ne.axis,de=ne.moveInto,Se=ne.isMoving;return Aa(oe.line,de.contentBox[oe.start]+ol(oe,Se),Ui(oe,de.contentBox,Se))},qi=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.draggables,Se=ee.droppable,Pe=ee.afterCritical,xe=Uo(Se.descriptor.id,de),Ne=oe.page,rt=Se.axis;if(!xe.length)return Mo({axis:rt,moveInto:Se.page,isMoving:Ne});var yt=ne.displaced,St=ne.displacedBy,ut=yt.all[0];if(ut){var dt=de[ut];if(si(ut,Pe))return Xi({axis:rt,moveRelativeTo:dt.page,isMoving:Ne});var Nt=Wa(dt.page,St.point);return Xi({axis:rt,moveRelativeTo:Nt,isMoving:Ne})}var gn=xe[xe.length-1];if(gn.descriptor.id===oe.descriptor.id)return Ne.borderBox.center;if(si(gn.descriptor.id,Pe)){var ua=Wa(gn.page,$n(Pe.displacedBy.point));return il({axis:rt,moveRelativeTo:ua,isMoving:Ne})}return il({axis:rt,moveRelativeTo:gn.page,isMoving:Ne})},el=function(ee,ne){var oe=ee.frame;return oe?Rr(ne,oe.scroll.diff.displacement):ne},ll=function(ne){var oe=ne.impact,de=ne.draggable,Se=ne.droppable,Pe=ne.draggables,xe=ne.afterCritical,Ne=de.page.borderBox.center,rt=oe.at;return!Se||!rt?Ne:rt.type==="REORDER"?qi({impact:oe,draggable:de,draggables:Pe,droppable:Se,afterCritical:xe}):Xo({impact:oe,draggables:Pe,afterCritical:xe})},ul=function(ee){var ne=ll(ee),oe=ee.droppable,de=oe?el(oe,ne):ne;return de},Rl=function(ee,ne){var oe=Gr(ne,ee.scroll.initial),de=$n(oe),Se=Yn({top:ne.y,bottom:ne.y+ee.frame.height,left:ne.x,right:ne.x+ee.frame.width}),Pe={frame:Se,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:ne,diff:{value:oe,displacement:de}}};return Pe};function ql(ee,ne){return ee.map(function(oe){return ne[oe]})}function _l(ee,ne){for(var oe=0;oe<ne.length;oe++){var de=ne[oe].visible[ee];if(de)return de}return null}var Ri=function(ee){var ne=ee.impact,oe=ee.viewport,de=ee.destination,Se=ee.draggables,Pe=ee.maxScrollChange,xe=Rl(oe,Rr(oe.scroll.current,Pe)),Ne=de.frame?Ba(de,Rr(de.frame.scroll.current,Pe)):de,rt=ne.displaced,yt=Bo({afterDragging:ql(rt.all,Se),destination:de,displacedBy:ne.displacedBy,viewport:xe.frame,last:rt,forceShouldAnimate:!1}),St=Bo({afterDragging:ql(rt.all,Se),destination:Ne,displacedBy:ne.displacedBy,viewport:oe.frame,last:rt,forceShouldAnimate:!1}),ut={},dt={},Nt=[rt,yt,St];rt.all.forEach(function(ua){var ma=_l(ua,Nt);if(ma){dt[ua]=ma;return}ut[ua]=!0});var gn=(0,Ae.Z)({},ne,{displaced:{all:rt.all,invisible:ut,visible:dt}});return gn},Fl=function(ee,ne){return Rr(ee.scroll.diff.displacement,ne)},tl=function(ee){var ne=ee.pageBorderBoxCenter,oe=ee.draggable,de=ee.viewport,Se=Fl(de,ne),Pe=Gr(Se,oe.page.borderBox.center);return Rr(oe.client.borderBox.center,Pe)},Al=function(ee){var ne=ee.draggable,oe=ee.destination,de=ee.newPageBorderBoxCenter,Se=ee.viewport,Pe=ee.withDroppableDisplacement,xe=ee.onlyOnMainAxis,Ne=xe===void 0?!1:xe,rt=Gr(de,ne.page.borderBox.center),yt=oo(ne.page.borderBox,rt),St={target:yt,destination:oe,withDroppableDisplacement:Pe,viewport:Se};return Ne?no(St):_r(St)},Gl=function(ee){var ne=ee.isMovingForward,oe=ee.draggable,de=ee.destination,Se=ee.draggables,Pe=ee.previousImpact,xe=ee.viewport,Ne=ee.previousPageBorderBoxCenter,rt=ee.previousClientSelection,yt=ee.afterCritical;if(!de.isEnabled)return null;var St=Uo(de.descriptor.id,Se),ut=ai(oe,de),dt=Mi({isMovingForward:ne,draggable:oe,destination:de,insideDestination:St,previousImpact:Pe})||zi({isMovingForward:ne,isInHomeList:ut,draggable:oe,draggables:Se,destination:de,insideDestination:St,previousImpact:Pe,viewport:xe,afterCritical:yt});if(!dt)return null;var Nt=ul({impact:dt,draggable:oe,droppable:de,draggables:Se,afterCritical:yt}),gn=Al({draggable:oe,destination:de,newPageBorderBoxCenter:Nt,viewport:xe.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(gn){var ua=tl({pageBorderBoxCenter:Nt,draggable:oe,viewport:xe});return{clientSelection:ua,impact:dt,scrollJumpRequest:null}}var ma=Gr(Nt,Ne),Sa=Ri({impact:dt,viewport:xe,destination:de,draggables:Se,maxScrollChange:ma});return{clientSelection:rt,impact:Sa,scrollJumpRequest:ma}},gt=function(ne){var oe=ne.subject.active;return oe||sn(!1),oe},ht=function(ee){var ne=ee.isMovingForward,oe=ee.pageBorderBoxCenter,de=ee.source,Se=ee.droppables,Pe=ee.viewport,xe=de.subject.active;if(!xe)return null;var Ne=de.axis,rt=Yo(xe[Ne.start],xe[Ne.end]),yt=Ho(Se).filter(function(ut){return ut!==de}).filter(function(ut){return ut.isEnabled}).filter(function(ut){return!!ut.subject.active}).filter(function(ut){return Ki(Pe.frame)(gt(ut))}).filter(function(ut){var dt=gt(ut);return ne?xe[Ne.crossAxisEnd]<dt[Ne.crossAxisEnd]:dt[Ne.crossAxisStart]<xe[Ne.crossAxisStart]}).filter(function(ut){var dt=gt(ut),Nt=Yo(dt[Ne.start],dt[Ne.end]);return rt(dt[Ne.start])||rt(dt[Ne.end])||Nt(xe[Ne.start])||Nt(xe[Ne.end])}).sort(function(ut,dt){var Nt=gt(ut)[Ne.crossAxisStart],gn=gt(dt)[Ne.crossAxisStart];return ne?Nt-gn:gn-Nt}).filter(function(ut,dt,Nt){return gt(ut)[Ne.crossAxisStart]===gt(Nt[0])[Ne.crossAxisStart]});if(!yt.length)return null;if(yt.length===1)return yt[0];var St=yt.filter(function(ut){var dt=Yo(gt(ut)[Ne.start],gt(ut)[Ne.end]);return dt(oe[Ne.line])});return St.length===1?St[0]:St.length>1?St.sort(function(ut,dt){return gt(ut)[Ne.start]-gt(dt)[Ne.start]})[0]:yt.sort(function(ut,dt){var Nt=ga(oe,Tr(gt(ut))),gn=ga(oe,Tr(gt(dt)));return Nt!==gn?Nt-gn:gt(ut)[Ne.start]-gt(dt)[Ne.start]})[0]},zt=function(ne,oe){var de=ne.page.borderBox.center;return si(ne.descriptor.id,oe)?Gr(de,oe.displacedBy.point):de},wn=function(ne,oe){var de=ne.page.borderBox;return si(ne.descriptor.id,oe)?oo(de,$n(oe.displacedBy.point)):de},Dn=function(ee){var ne=ee.pageBorderBoxCenter,oe=ee.viewport,de=ee.destination,Se=ee.insideDestination,Pe=ee.afterCritical,xe=Se.filter(function(Ne){return _r({target:wn(Ne,Pe),destination:de,viewport:oe.frame,withDroppableDisplacement:!0})}).sort(function(Ne,rt){var yt=ja(ne,el(de,zt(Ne,Pe))),St=ja(ne,el(de,zt(rt,Pe)));return yt<St?-1:St<yt?1:Ne.descriptor.index-rt.descriptor.index});return xe[0]||null},Pn=tn(function(ne,oe){var de=oe[ne.line];return{value:de,point:Aa(ne.line,de)}}),hn=function(ne,oe,de){var Se=ne.axis;if(ne.descriptor.mode==="virtual")return Aa(Se.line,oe[Se.line]);var Pe=ne.subject.page.contentBox[Se.size],xe=Uo(ne.descriptor.id,de),Ne=xe.reduce(function(St,ut){return St+ut.client.marginBox[Se.size]},0),rt=Ne+oe[Se.line],yt=rt-Pe;return yt<=0?null:Aa(Se.line,yt)},kt=function(ne,oe){return(0,Ae.Z)({},ne,{scroll:(0,Ae.Z)({},ne.scroll,{max:oe})})},dn=function(ne,oe,de){var Se=ne.frame;ai(oe,ne)&&sn(!1),ne.subject.withPlaceholder&&sn(!1);var Pe=Pn(ne.axis,oe.displaceBy).point,xe=hn(ne,Pe,de),Ne={placeholderSize:Pe,increasedBy:xe,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!Se){var rt=So({page:ne.subject.page,withPlaceholder:Ne,axis:ne.axis,frame:ne.frame});return(0,Ae.Z)({},ne,{subject:rt})}var yt=xe?Rr(Se.scroll.max,xe):Se.scroll.max,St=kt(Se,yt),ut=So({page:ne.subject.page,withPlaceholder:Ne,axis:ne.axis,frame:St});return(0,Ae.Z)({},ne,{subject:ut,frame:St})},_n=function(ne){var oe=ne.subject.withPlaceholder;oe||sn(!1);var de=ne.frame;if(!de){var Se=So({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,Ae.Z)({},ne,{subject:Se})}var Pe=oe.oldFrameMaxScroll;Pe||sn(!1);var xe=kt(de,Pe),Ne=So({page:ne.subject.page,axis:ne.axis,frame:xe,withPlaceholder:null});return(0,Ae.Z)({},ne,{subject:Ne,frame:xe})},la=function(ee){var ne=ee.previousPageBorderBoxCenter,oe=ee.moveRelativeTo,de=ee.insideDestination,Se=ee.draggable,Pe=ee.draggables,xe=ee.destination,Ne=ee.viewport,rt=ee.afterCritical;if(!oe){if(de.length)return null;var yt={displaced:Di,displacedBy:Wi,at:{type:"REORDER",destination:{droppableId:xe.descriptor.id,index:0}}},St=ul({impact:yt,draggable:Se,droppable:xe,draggables:Pe,afterCritical:rt}),ut=ai(Se,xe)?xe:dn(xe,Se,Pe),dt=Al({draggable:Se,destination:ut,newPageBorderBoxCenter:St,viewport:Ne.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return dt?yt:null}var Nt=ne[xe.axis.line]<=oe.page.borderBox.center[xe.axis.line],gn=function(){var ma=oe.descriptor.index;return oe.descriptor.id===Se.descriptor.id||Nt?ma:ma+1}(),ua=Pn(xe.axis,Se.displaceBy);return Bi({draggable:Se,insideDestination:de,destination:xe,viewport:Ne,displacedBy:ua,last:Di,index:gn})},or=function(ee){var ne=ee.isMovingForward,oe=ee.previousPageBorderBoxCenter,de=ee.draggable,Se=ee.isOver,Pe=ee.draggables,xe=ee.droppables,Ne=ee.viewport,rt=ee.afterCritical,yt=ht({isMovingForward:ne,pageBorderBoxCenter:oe,source:Se,droppables:xe,viewport:Ne});if(!yt)return null;var St=Uo(yt.descriptor.id,Pe),ut=Dn({pageBorderBoxCenter:oe,viewport:Ne,destination:yt,insideDestination:St,afterCritical:rt}),dt=la({previousPageBorderBoxCenter:oe,destination:yt,draggable:de,draggables:Pe,moveRelativeTo:ut,insideDestination:St,viewport:Ne,afterCritical:rt});if(!dt)return null;var Nt=ul({impact:dt,draggable:de,droppable:yt,draggables:Pe,afterCritical:rt}),gn=tl({pageBorderBoxCenter:Nt,draggable:de,viewport:Ne});return{clientSelection:gn,impact:dt,scrollJumpRequest:null}},Qa=function(ee){var ne=ee.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},ao=function(ne,oe){var de=Qa(ne);return de?oe[de]:null},Fr=function(ee){var ne=ee.state,oe=ee.type,de=ao(ne.impact,ne.dimensions.droppables),Se=!!de,Pe=ne.dimensions.droppables[ne.critical.droppable.id],xe=de||Pe,Ne=xe.axis.direction,rt=Ne==="vertical"&&(oe==="MOVE_UP"||oe==="MOVE_DOWN")||Ne==="horizontal"&&(oe==="MOVE_LEFT"||oe==="MOVE_RIGHT");if(rt&&!Se)return null;var yt=oe==="MOVE_DOWN"||oe==="MOVE_RIGHT",St=ne.dimensions.draggables[ne.critical.draggable.id],ut=ne.current.page.borderBoxCenter,dt=ne.dimensions,Nt=dt.draggables,gn=dt.droppables;return rt?Gl({isMovingForward:yt,previousPageBorderBoxCenter:ut,draggable:St,destination:xe,draggables:Nt,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):or({isMovingForward:yt,previousPageBorderBoxCenter:ut,draggable:St,isOver:xe,draggables:Nt,droppables:gn,viewport:ne.viewport,afterCritical:ne.afterCritical})};function Ia(ee){return ee.phase==="DRAGGING"||ee.phase==="COLLECTING"}function ca(ee){var ne=Yo(ee.top,ee.bottom),oe=Yo(ee.left,ee.right);return function(Se){return ne(Se.y)&&oe(Se.x)}}function Kn(ee,ne){return ee.left<ne.right&&ee.right>ne.left&&ee.top<ne.bottom&&ee.bottom>ne.top}function sr(ee){var ne=ee.pageBorderBox,oe=ee.draggable,de=ee.candidates,Se=oe.page.borderBox.center,Pe=de.map(function(xe){var Ne=xe.axis,rt=Aa(xe.axis.line,ne.center[Ne.line],xe.page.borderBox.center[Ne.crossAxisLine]);return{id:xe.descriptor.id,distance:ja(Se,rt)}}).sort(function(xe,Ne){return Ne.distance-xe.distance});return Pe[0]?Pe[0].id:null}function mr(ee){var ne=ee.pageBorderBox,oe=ee.draggable,de=ee.droppables,Se=Ho(de).filter(function(Pe){if(!Pe.isEnabled)return!1;var xe=Pe.subject.active;if(!xe||!Kn(ne,xe))return!1;if(ca(xe)(ne.center))return!0;var Ne=Pe.axis,rt=xe.center[Ne.crossAxisLine],yt=ne[Ne.crossAxisStart],St=ne[Ne.crossAxisEnd],ut=Yo(xe[Ne.crossAxisStart],xe[Ne.crossAxisEnd]),dt=ut(yt),Nt=ut(St);return!dt&&!Nt?!0:dt?yt<rt:St>rt});return Se.length?Se.length===1?Se[0].descriptor.id:sr({pageBorderBox:ne,draggable:oe,candidates:Se}):null}var Br=function(ne,oe){return Yn(oo(ne,oe))},Jr=function(ee,ne){var oe=ee.frame;return oe?Br(ne,oe.scroll.diff.value):ne};function dr(ee){var ne=ee.displaced,oe=ee.id;return!!(ne.visible[oe]||ne.invisible[oe])}function kr(ee){var ne=ee.draggable,oe=ee.closest,de=ee.inHomeList;return oe?de&&oe.descriptor.index>ne.descriptor.index?oe.descriptor.index-1:oe.descriptor.index:null}var cr=function(ee){var ne=ee.pageBorderBoxWithDroppableScroll,oe=ee.draggable,de=ee.destination,Se=ee.insideDestination,Pe=ee.last,xe=ee.viewport,Ne=ee.afterCritical,rt=de.axis,yt=Pn(de.axis,oe.displaceBy),St=yt.value,ut=ne[rt.start],dt=ne[rt.end],Nt=yo(oe,Se),gn=Po(Nt,function(ma){var Sa=ma.descriptor.id,_a=ma.page.borderBox.center[rt.line],Va=si(Sa,Ne),ar=dr({displaced:Pe,id:Sa});return Va?ar?dt<=_a:ut<_a-St:ar?dt<=_a+St:ut<_a}),ua=kr({draggable:oe,closest:gn,inHomeList:ai(oe,de)});return Bi({draggable:oe,insideDestination:Se,destination:de,viewport:xe,last:Pe,displacedBy:yt,index:ua})},ya=4,yr=function(ee){var ne=ee.draggable,oe=ee.pageBorderBoxWithDroppableScroll,de=ee.previousImpact,Se=ee.destination,Pe=ee.insideDestination,xe=ee.afterCritical;if(!Se.isCombineEnabled)return null;var Ne=Se.axis,rt=Pn(Se.axis,ne.displaceBy),yt=rt.value,St=oe[Ne.start],ut=oe[Ne.end],dt=yo(ne,Pe),Nt=Po(dt,function(ua){var ma=ua.descriptor.id,Sa=ua.page.borderBox,_a=Sa[Ne.size],Va=_a/ya,ar=si(ma,xe),jr=dr({displaced:de.displaced,id:ma});return ar?jr?ut>Sa[Ne.start]+Va&&ut<Sa[Ne.end]-Va:St>Sa[Ne.start]-yt+Va&&St<Sa[Ne.end]-yt-Va:jr?ut>Sa[Ne.start]+yt+Va&&ut<Sa[Ne.end]+yt-Va:St>Sa[Ne.start]+Va&&St<Sa[Ne.end]-Va});if(!Nt)return null;var gn={displacedBy:rt,displaced:de.displaced,at:{type:"COMBINE",combine:{draggableId:Nt.descriptor.id,droppableId:Se.descriptor.id}}};return gn},Vr=function(ee){var ne=ee.pageOffset,oe=ee.draggable,de=ee.draggables,Se=ee.droppables,Pe=ee.previousImpact,xe=ee.viewport,Ne=ee.afterCritical,rt=Br(oe.page.borderBox,ne),yt=mr({pageBorderBox:rt,draggable:oe,droppables:Se});if(!yt)return Ti;var St=Se[yt],ut=Uo(St.descriptor.id,de),dt=Jr(St,rt);return yr({pageBorderBoxWithDroppableScroll:dt,draggable:oe,previousImpact:Pe,destination:St,insideDestination:ut,afterCritical:Ne})||cr({pageBorderBoxWithDroppableScroll:dt,draggable:oe,destination:St,insideDestination:ut,last:Pe.displaced,viewport:xe,afterCritical:Ne})},bo=function(ee,ne){var oe;return(0,Ae.Z)({},ee,(oe={},oe[ne.descriptor.id]=ne,oe))},ri=function(ne){var oe=ne.previousImpact,de=ne.impact,Se=ne.droppables,Pe=Qa(oe),xe=Qa(de);if(!Pe||Pe===xe)return Se;var Ne=Se[Pe];if(!Ne.subject.withPlaceholder)return Se;var rt=_n(Ne);return bo(Se,rt)},ji=function(ee){var ne=ee.draggable,oe=ee.draggables,de=ee.droppables,Se=ee.previousImpact,Pe=ee.impact,xe=ri({previousImpact:Se,impact:Pe,droppables:de}),Ne=Qa(Pe);if(!Ne)return xe;var rt=de[Ne];if(ai(ne,rt)||rt.subject.withPlaceholder)return xe;var yt=dn(rt,ne,oe);return bo(xe,yt)},ze=function(ee){var ne=ee.state,oe=ee.clientSelection,de=ee.dimensions,Se=ee.viewport,Pe=ee.impact,xe=ee.scrollJumpRequest,Ne=Se||ne.viewport,rt=de||ne.dimensions,yt=oe||ne.current.client.selection,St=Gr(yt,ne.initial.client.selection),ut={offset:St,selection:yt,borderBoxCenter:Rr(ne.initial.client.borderBoxCenter,St)},dt={selection:Rr(ut.selection,Ne.scroll.current),borderBoxCenter:Rr(ut.borderBoxCenter,Ne.scroll.current),offset:Rr(ut.offset,Ne.scroll.diff.value)},Nt={client:ut,page:dt};if(ne.phase==="COLLECTING")return(0,Ae.Z)({phase:"COLLECTING"},ne,{dimensions:rt,viewport:Ne,current:Nt});var gn=rt.draggables[ne.critical.draggable.id],ua=Pe||Vr({pageOffset:dt.offset,draggable:gn,draggables:rt.draggables,droppables:rt.droppables,previousImpact:ne.impact,viewport:Ne,afterCritical:ne.afterCritical}),ma=ji({draggable:gn,impact:ua,previousImpact:ne.impact,draggables:rt.draggables,droppables:rt.droppables}),Sa=(0,Ae.Z)({},ne,{current:Nt,dimensions:{draggables:rt.draggables,droppables:ma},impact:ua,viewport:Ne,scrollJumpRequest:xe||null,forceShouldAnimate:xe?!1:null});return Sa};function at(ee,ne){return ee.map(function(oe){return ne[oe]})}var mt=function(ee){var ne=ee.impact,oe=ee.viewport,de=ee.draggables,Se=ee.destination,Pe=ee.forceShouldAnimate,xe=ne.displaced,Ne=at(xe.all,de),rt=Bo({afterDragging:Ne,destination:Se,displacedBy:ne.displacedBy,viewport:oe.frame,forceShouldAnimate:Pe,last:xe});return(0,Ae.Z)({},ne,{displaced:rt})},xt=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.droppable,Se=ee.draggables,Pe=ee.viewport,xe=ee.afterCritical,Ne=ul({impact:ne,draggable:oe,draggables:Se,droppable:de,afterCritical:xe});return tl({pageBorderBoxCenter:Ne,draggable:oe,viewport:Pe})},fn=function(ee){var ne=ee.state,oe=ee.dimensions,de=ee.viewport;ne.movementMode!=="SNAP"&&sn(!1);var Se=ne.impact,Pe=de||ne.viewport,xe=oe||ne.dimensions,Ne=xe.draggables,rt=xe.droppables,yt=Ne[ne.critical.draggable.id],St=Qa(Se);St||sn(!1);var ut=rt[St],dt=mt({impact:Se,viewport:Pe,destination:ut,draggables:Ne}),Nt=xt({impact:dt,draggable:yt,droppable:ut,draggables:Ne,viewport:Pe,afterCritical:ne.afterCritical});return ze({impact:dt,clientSelection:Nt,state:ne,dimensions:xe,viewport:Pe})},On=function(ee){return{index:ee.index,droppableId:ee.droppableId}},Xn=function(ee){var ne=ee.draggable,oe=ee.home,de=ee.draggables,Se=ee.viewport,Pe=Pn(oe.axis,ne.displaceBy),xe=Uo(oe.descriptor.id,de),Ne=xe.indexOf(ne);Ne===-1&&sn(!1);var rt=xe.slice(Ne+1),yt=rt.reduce(function(Nt,gn){return Nt[gn.descriptor.id]=!0,Nt},{}),St={inVirtualList:oe.descriptor.mode==="virtual",displacedBy:Pe,effected:yt},ut=Bo({afterDragging:rt,destination:oe,displacedBy:Pe,last:null,viewport:Se.frame,forceShouldAnimate:!1}),dt={displaced:ut,displacedBy:Pe,at:{type:"REORDER",destination:On(ne.descriptor)}};return{impact:dt,afterCritical:St}},Hn=function(ee,ne){return{draggables:ee.draggables,droppables:bo(ee.droppables,ne)}},Tn=function(ne){},un=function(ne){},Gn=function(ee){var ne=ee.draggable,oe=ee.offset,de=ee.initialWindowScroll,Se=Wa(ne.client,oe),Pe=ta(Se,de),xe=(0,Ae.Z)({},ne,{placeholder:(0,Ae.Z)({},ne.placeholder,{client:Se}),client:Se,page:Pe});return xe},da=function(ee){var ne=ee.frame;return ne||sn(!1),ne},qa=function(ee){var ne=ee.additions,oe=ee.updatedDroppables,de=ee.viewport,Se=de.scroll.diff.value;return ne.map(function(Pe){var xe=Pe.descriptor.droppableId,Ne=oe[xe],rt=da(Ne),yt=rt.scroll.diff.value,St=Rr(Se,yt),ut=Gn({draggable:Pe,offset:St,initialWindowScroll:de.scroll.initial});return ut})},Ya=function(ee){var ne=ee.state,oe=ee.published;Tn();var de=oe.modified.map(function(Va){var ar=ne.dimensions.droppables[Va.droppableId],jr=Ba(ar,Va.scroll);return jr}),Se=(0,Ae.Z)({},ne.dimensions.droppables,{},oi(de)),Pe=$o(qa({additions:oe.additions,updatedDroppables:Se,viewport:ne.viewport})),xe=(0,Ae.Z)({},ne.dimensions.draggables,{},Pe);oe.removals.forEach(function(Va){delete xe[Va]});var Ne={droppables:Se,draggables:xe},rt=Qa(ne.impact),yt=rt?Ne.droppables[rt]:null,St=Ne.draggables[ne.critical.draggable.id],ut=Ne.droppables[ne.critical.droppable.id],dt=Xn({draggable:St,home:ut,draggables:xe,viewport:ne.viewport}),Nt=dt.impact,gn=dt.afterCritical,ua=yt&&yt.isCombineEnabled?ne.impact:Nt,ma=Vr({pageOffset:ne.current.page.offset,draggable:Ne.draggables[ne.critical.draggable.id],draggables:Ne.draggables,droppables:Ne.droppables,previousImpact:ua,viewport:ne.viewport,afterCritical:gn});un();var Sa=(0,Ae.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:ma,onLiftImpact:Nt,dimensions:Ne,afterCritical:gn,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return Sa;var _a=(0,Ae.Z)({phase:"DROP_PENDING"},Sa,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return _a},Qn=function(ne){return ne.movementMode==="SNAP"},Vn=function(ne,oe,de){var Se=Hn(ne.dimensions,oe);return!Qn(ne)||de?ze({state:ne,dimensions:Se}):fn({state:ne,dimensions:Se})};function Ln(ee){return ee.isDragging&&ee.movementMode==="SNAP"?(0,Ae.Z)({phase:"DRAGGING"},ee,{scrollJumpRequest:null}):ee}var jn={phase:"IDLE",completed:null,shouldFlush:!1},Fa=function(ee,ne){if(ee===void 0&&(ee=jn),ne.type==="FLUSH")return(0,Ae.Z)({},jn,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){ee.phase!=="IDLE"&&sn(!1);var oe=ne.payload,de=oe.critical,Se=oe.clientSelection,Pe=oe.viewport,xe=oe.dimensions,Ne=oe.movementMode,rt=xe.draggables[de.draggable.id],yt=xe.droppables[de.droppable.id],St={selection:Se,borderBoxCenter:rt.client.borderBox.center,offset:Mr},ut={client:St,page:{selection:Rr(St.selection,Pe.scroll.initial),borderBoxCenter:Rr(St.selection,Pe.scroll.initial),offset:Rr(St.selection,Pe.scroll.diff.value)}},dt=Ho(xe.droppables).every(function(Wu){return!Wu.isFixedOnPage}),Nt=Xn({draggable:rt,home:yt,draggables:xe.draggables,viewport:Pe}),gn=Nt.impact,ua=Nt.afterCritical,ma={phase:"DRAGGING",isDragging:!0,critical:de,movementMode:Ne,dimensions:xe,initial:ut,current:ut,isWindowScrollAllowed:dt,impact:gn,afterCritical:ua,onLiftImpact:gn,viewport:Pe,scrollJumpRequest:null,forceShouldAnimate:null};return ma}if(ne.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&sn(!1);var Sa=(0,Ae.Z)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return Sa}if(ne.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||sn(!1),Ya({state:ee,published:ne.payload});if(ne.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;Ia(ee)||sn(!1);var _a=ne.payload.client;return za(_a,ee.current.client.selection)?ee:ze({state:ee,clientSelection:_a,impact:Qn(ee)?ee.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="COLLECTING")return Ln(ee);Ia(ee)||sn(!1);var Va=ne.payload,ar=Va.id,jr=Va.newScroll,Or=ee.dimensions.droppables[ar];if(!Or)return ee;var io=Ba(Or,jr);return Vn(ee,io,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Ia(ee)||sn(!1);var ii=ne.payload,ho=ii.id,li=ii.isEnabled,wi=ee.dimensions.droppables[ho];wi||sn(!1),wi.isEnabled===li&&sn(!1);var Oi=(0,Ae.Z)({},wi,{isEnabled:li});return Vn(ee,Oi,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Ia(ee)||sn(!1);var yl=ne.payload,fl=yl.id,rl=yl.isCombineEnabled,bl=ee.dimensions.droppables[fl];bl||sn(!1),bl.isCombineEnabled===rl&&sn(!1);var Li=(0,Ae.Z)({},bl,{isCombineEnabled:rl});return Vn(ee,Li,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;Ia(ee)||sn(!1),ee.isWindowScrollAllowed||sn(!1);var zl=ne.payload.newScroll;if(za(ee.viewport.scroll.current,zl))return Ln(ee);var Cl=Rl(ee.viewport,zl);return Qn(ee)?fn({state:ee,viewport:Cl}):ze({state:ee,viewport:Cl})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ia(ee))return ee;var Bu=ne.payload.maxScroll;if(za(Bu,ee.viewport.scroll.max))return ee;var Yl=(0,Ae.Z)({},ee.viewport,{scroll:(0,Ae.Z)({},ee.viewport.scroll,{max:Bu})});return(0,Ae.Z)({phase:"DRAGGING"},ee,{viewport:Yl})}if(ne.type==="MOVE_UP"||ne.type==="MOVE_DOWN"||ne.type==="MOVE_LEFT"||ne.type==="MOVE_RIGHT"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&sn(!1);var jl=Fr({state:ee,type:ne.type});return jl?ze({state:ee,impact:jl.impact,clientSelection:jl.clientSelection,scrollJumpRequest:jl.scrollJumpRequest}):ee}if(ne.type==="DROP_PENDING"){var xl=ne.payload.reason;ee.phase!=="COLLECTING"&&sn(!1);var Xl=(0,Ae.Z)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:xl});return Xl}if(ne.type==="DROP_ANIMATE"){var ju=ne.payload,Bl=ju.completed,Fu=ju.dropDuration,Gu=ju.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||sn(!1);var mu={phase:"DROP_ANIMATING",completed:Bl,dropDuration:Fu,newHomeClientOffset:Gu,dimensions:ee.dimensions};return mu}if(ne.type==="DROP_COMPLETE"){var Hu=ne.payload.completed;return{phase:"IDLE",completed:Hu,shouldFlush:!1}}return ee},rr=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},ba=function(ne){return{type:"LIFT",payload:ne}},aa=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},fa=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},ra=function(){return{type:"COLLECTION_STARTING",payload:null}},va=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},Ir=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},lo=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},Fo=function(ne){return{type:"MOVE",payload:ne}},qo=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},er=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},mi=function(){return{type:"MOVE_UP",payload:null}},fi=function(){return{type:"MOVE_DOWN",payload:null}},Nr=function(){return{type:"MOVE_RIGHT",payload:null}},Co=function(){return{type:"MOVE_LEFT",payload:null}},po=function(){return{type:"FLUSH",payload:null}},Do=function(ne){return{type:"DROP_ANIMATE",payload:ne}},ui=function(ne){return{type:"DROP_COMPLETE",payload:ne}},gl=function(ne){return{type:"DROP",payload:ne}},Ml=function(ne){return{type:"DROP_PENDING",payload:ne}},wl=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Hl(ee){if(!(ee.length<=1)){for(var ne=ee.map(function(Ne){return Ne.descriptor.index}),oe={},de=1;de<ne.length;de++){var Se=ne[de],Pe=ne[de-1];Se!==Pe+1&&(oe[Se]=!0)}if(Object.keys(oe).length)var xe=ne.map(function(Ne){var rt=!!oe[Ne];return rt?"[\u{1F525}"+Ne+"]":""+Ne}).join(", ")}}function Tl(ee,ne){if(0)var oe}var Wl=function(ee){return function(ne){var oe=ne.getState,de=ne.dispatch;return function(Se){return function(Pe){if(Pe.type!=="LIFT"){Se(Pe);return}var xe=Pe.payload,Ne=xe.id,rt=xe.clientSelection,yt=xe.movementMode,St=oe();St.phase==="DROP_ANIMATING"&&de(ui({completed:St.completed})),oe().phase!=="IDLE"&&sn(!1),de(po()),de(rr({draggableId:Ne,movementMode:yt}));var ut={shouldPublishImmediately:yt==="SNAP"},dt={draggableId:Ne,scrollOptions:ut},Nt=ee.startPublishing(dt),gn=Nt.critical,ua=Nt.dimensions,ma=Nt.viewport;Tl(gn,ua),de(aa({critical:gn,dimensions:ua,clientSelection:rt,movementMode:yt,viewport:ma}))}}}},vl=function(ee){return function(){return function(ne){return function(oe){oe.type==="INITIAL_PUBLISH"&&ee.dragging(),oe.type==="DROP_ANIMATE"&&ee.dropping(oe.payload.completed.result.reason),(oe.type==="FLUSH"||oe.type==="DROP_COMPLETE")&&ee.resting(),ne(oe)}}}},Dl={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Il={opacity:{drop:0,combining:.7},scale:{drop:.75}},eu={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},sl=eu.outOfTheWay+"s "+Dl.outOfTheWay,kl={fluid:"opacity "+sl,snap:"transform "+sl+", opacity "+sl,drop:function(ne){var oe=ne+"s "+Dl.drop;return"transform "+oe+", opacity "+oe},outOfTheWay:"transform "+sl,placeholder:"height "+sl+", width "+sl+", margin "+sl},Nl=function(ne){return za(ne,Mr)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Kl={moveTo:Nl,drop:function(ne,oe){var de=Nl(ne);return de?oe?de+" scale("+Il.scale.drop+")":de:null}},Ul=eu.minDropTime,tu=eu.maxDropTime,nu=tu-Ul,Vl=1500,au=.6,Gt=function(ee){var ne=ee.current,oe=ee.destination,de=ee.reason,Se=ja(ne,oe);if(Se<=0)return Ul;if(Se>=Vl)return tu;var Pe=Se/Vl,xe=Ul+nu*Pe,Ne=de==="CANCEL"?xe*au:xe;return Number(Ne.toFixed(2))},Ea=function(ee){var ne=ee.impact,oe=ee.draggable,de=ee.dimensions,Se=ee.viewport,Pe=ee.afterCritical,xe=de.draggables,Ne=de.droppables,rt=Qa(ne),yt=rt?Ne[rt]:null,St=Ne[oe.descriptor.droppableId],ut=xt({impact:ne,draggable:oe,draggables:xe,afterCritical:Pe,droppable:yt||St,viewport:Se}),dt=Gr(ut,oe.client.borderBox.center);return dt},br=function(ee){var ne=ee.draggables,oe=ee.reason,de=ee.lastImpact,Se=ee.home,Pe=ee.viewport,xe=ee.onLiftImpact;if(!de.at||oe!=="DROP"){var Ne=mt({draggables:ne,impact:xe,destination:Se,viewport:Pe,forceShouldAnimate:!0});return{impact:Ne,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var rt=(0,Ae.Z)({},de,{displaced:Di});return{impact:rt,didDropInsideDroppable:!0}},fe=function(ee){var ne=ee.getState,oe=ee.dispatch;return function(de){return function(Se){if(Se.type!=="DROP"){de(Se);return}var Pe=ne(),xe=Se.payload.reason;if(Pe.phase==="COLLECTING"){oe(Ml({reason:xe}));return}if(Pe.phase!=="IDLE"){var Ne=Pe.phase==="DROP_PENDING"&&Pe.isWaiting;Ne&&sn(!1),Pe.phase==="DRAGGING"||Pe.phase==="DROP_PENDING"||sn(!1);var rt=Pe.critical,yt=Pe.dimensions,St=yt.draggables[Pe.critical.draggable.id],ut=br({reason:xe,lastImpact:Pe.impact,afterCritical:Pe.afterCritical,onLiftImpact:Pe.onLiftImpact,home:Pe.dimensions.droppables[Pe.critical.droppable.id],viewport:Pe.viewport,draggables:Pe.dimensions.draggables}),dt=ut.impact,Nt=ut.didDropInsideDroppable,gn=Nt?Eo(dt):null,ua=Nt?xi(dt):null,ma={index:rt.draggable.index,droppableId:rt.droppable.id},Sa={draggableId:St.descriptor.id,type:St.descriptor.type,source:ma,reason:xe,mode:Pe.movementMode,destination:gn,combine:ua},_a=Ea({impact:dt,draggable:St,dimensions:yt,viewport:Pe.viewport,afterCritical:Pe.afterCritical}),Va={critical:Pe.critical,afterCritical:Pe.afterCritical,result:Sa,impact:dt},ar=!za(Pe.current.client.offset,_a)||!!Sa.combine;if(!ar){oe(ui({completed:Va}));return}var jr=Gt({current:Pe.current.client.offset,destination:_a,reason:xe}),Or={newHomeClientOffset:_a,dropDuration:jr,completed:Va};oe(Do(Or))}}}},me=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Me(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(oe){oe.target!==window&&oe.target!==window.document||ee()}}}function Ge(ee){var ne=ee.onWindowScroll;function oe(){ne(me())}var de=mn(oe),Se=Me(de),Pe=Ra;function xe(){return Pe!==Ra}function Ne(){xe()&&sn(!1),Pe=pa(window,[Se])}function rt(){xe()||sn(!1),de.cancel(),Pe(),Pe=Ra}return{start:Ne,stop:rt,isActive:xe}}var nt=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Xe=function(ee){var ne=Ge({onWindowScroll:function(de){ee.dispatch(qo({newScroll:de}))}});return function(oe){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&nt(de)&&ne.stop(),oe(de)}}},Rt=function(ee){var ne=!1,oe=!1,de=setTimeout(function(){oe=!0}),Se=function(xe){ne||oe||(ne=!0,ee(xe),clearTimeout(de))};return Se.wasCalled=function(){return ne},Se},Bt=function(){var ee=[],ne=function(Pe){var xe=Ro(ee,function(yt){return yt.timerId===Pe});xe===-1&&sn(!1);var Ne=ee.splice(xe,1),rt=Ne[0];rt.callback()},oe=function(Pe){var xe=setTimeout(function(){return ne(xe)}),Ne={timerId:xe,callback:Pe};ee.push(Ne)},de=function(){if(ee.length){var Pe=[].concat(ee);ee.length=0,Pe.forEach(function(xe){clearTimeout(xe.timerId),xe.callback()})}};return{add:oe,flush:de}},Mt=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.droppableId===oe.droppableId&&ne.index===oe.index},$t=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.draggableId===oe.draggableId&&ne.droppableId===oe.droppableId},Tt=function(ne,oe){if(ne===oe)return!0;var de=ne.draggable.id===oe.draggable.id&&ne.draggable.droppableId===oe.draggable.droppableId&&ne.draggable.type===oe.draggable.type&&ne.draggable.index===oe.draggable.index,Se=ne.droppable.id===oe.droppable.id&&ne.droppable.type===oe.droppable.type;return de&&Se},Qt=function(ne,oe){Tn(),oe(),un()},In=function(ne,oe){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:oe}},Cn=function(ne,oe,de,Se){if(!ne){de(Se(oe));return}var Pe=Rt(de),xe={announce:Pe};ne(oe,xe),Pe.wasCalled()||de(Se(oe))},Rn=function(ee,ne){var oe=Bt(),de=null,Se=function(dt,Nt){de&&sn(!1),Qt("onBeforeCapture",function(){var gn=ee().onBeforeCapture;if(gn){var ua={draggableId:dt,mode:Nt};gn(ua)}})},Pe=function(dt,Nt){de&&sn(!1),Qt("onBeforeDragStart",function(){var gn=ee().onBeforeDragStart;gn&&gn(In(dt,Nt))})},xe=function(dt,Nt){de&&sn(!1);var gn=In(dt,Nt);de={mode:Nt,lastCritical:dt,lastLocation:gn.source,lastCombine:null},oe.add(function(){Qt("onDragStart",function(){return Cn(ee().onDragStart,gn,ne,Mn.onDragStart)})})},Ne=function(dt,Nt){var gn=Eo(Nt),ua=xi(Nt);de||sn(!1);var ma=!Tt(dt,de.lastCritical);ma&&(de.lastCritical=dt);var Sa=!Mt(de.lastLocation,gn);Sa&&(de.lastLocation=gn);var _a=!$t(de.lastCombine,ua);if(_a&&(de.lastCombine=ua),!(!ma&&!Sa&&!_a)){var Va=(0,Ae.Z)({},In(dt,de.mode),{combine:ua,destination:gn});oe.add(function(){Qt("onDragUpdate",function(){return Cn(ee().onDragUpdate,Va,ne,Mn.onDragUpdate)})})}},rt=function(){de||sn(!1),oe.flush()},yt=function(dt){de||sn(!1),de=null,Qt("onDragEnd",function(){return Cn(ee().onDragEnd,dt,ne,Mn.onDragEnd)})},St=function(){if(de){var dt=(0,Ae.Z)({},In(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});yt(dt)}};return{beforeCapture:Se,beforeStart:Pe,start:xe,update:Ne,flush:rt,drop:yt,abort:St}},sa=function(ee,ne){var oe=Rn(ee,ne);return function(de){return function(Se){return function(Pe){if(Pe.type==="BEFORE_INITIAL_CAPTURE"){oe.beforeCapture(Pe.payload.draggableId,Pe.payload.movementMode);return}if(Pe.type==="INITIAL_PUBLISH"){var xe=Pe.payload.critical;oe.beforeStart(xe,Pe.payload.movementMode),Se(Pe),oe.start(xe,Pe.payload.movementMode);return}if(Pe.type==="DROP_COMPLETE"){var Ne=Pe.payload.completed.result;oe.flush(),Se(Pe),oe.drop(Ne);return}if(Se(Pe),Pe.type==="FLUSH"){oe.abort();return}var rt=de.getState();rt.phase==="DRAGGING"&&oe.update(rt.critical,rt.impact)}}}},qn=function(ee){return function(ne){return function(oe){if(oe.type!=="DROP_ANIMATION_FINISHED"){ne(oe);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&sn(!1),ee.dispatch(ui({completed:de.completed}))}}},oa=function(ee){var ne=null,oe=null;function de(){oe&&(cancelAnimationFrame(oe),oe=null),ne&&(ne(),ne=null)}return function(Se){return function(Pe){if((Pe.type==="FLUSH"||Pe.type==="DROP_COMPLETE"||Pe.type==="DROP_ANIMATION_FINISHED")&&de(),Se(Pe),Pe.type==="DROP_ANIMATE"){var xe={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var rt=ee.getState();rt.phase==="DROP_ANIMATING"&&ee.dispatch(wl())}};oe=requestAnimationFrame(function(){oe=null,ne=pa(window,[xe])})}}}},ea=function(ee){return function(){return function(ne){return function(oe){(oe.type==="DROP_COMPLETE"||oe.type==="FLUSH"||oe.type==="DROP_ANIMATE")&&ee.stopPublishing(),ne(oe)}}}},Ca=function(ee){var ne=!1;return function(){return function(oe){return function(de){if(de.type==="INITIAL_PUBLISH"){ne=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),oe(de),ee.tryRestoreFocusRecorded();return}if(oe(de),!!ne){if(de.type==="FLUSH"){ne=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){ne=!1;var Se=de.payload.completed.result;Se.combine&&ee.tryShiftRecord(Se.draggableId,Se.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},Ua=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Ja=function(ee){return function(ne){return function(oe){return function(de){if(Ua(de)){ee.stop(),oe(de);return}if(de.type==="INITIAL_PUBLISH"){oe(de);var Se=ne.getState();Se.phase!=="DRAGGING"&&sn(!1),ee.start(Se);return}oe(de),ee.scroll(ne.getState())}}}},Ma=function(ee){return function(ne){return function(oe){if(ne(oe),oe.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(gl({reason:de.reason})))}}}},gr=Ie.qC,Sr=function(ee){var ne=ee.dimensionMarshal,oe=ee.focusMarshal,de=ee.styleMarshal,Se=ee.getResponders,Pe=ee.announce,xe=ee.autoScroller;return(0,Ie.MT)(Fa,gr((0,Ie.md)(vl(de),ea(ne),Wl(ne),fe,qn,oa,Ma,Ja(xe),Xe,Ca(oe),sa(Se,Pe))))},wa=function(){return{additions:{},removals:{},modified:{}}};function Za(ee){var ne=ee.registry,oe=ee.callbacks,de=wa(),Se=null,Pe=function(){Se||(oe.collectionStarting(),Se=requestAnimationFrame(function(){Se=null,Tn();var St=de,ut=St.additions,dt=St.removals,Nt=St.modified,gn=Object.keys(ut).map(function(Sa){return ne.draggable.getById(Sa).getDimension(Mr)}).sort(function(Sa,_a){return Sa.descriptor.index-_a.descriptor.index}),ua=Object.keys(Nt).map(function(Sa){var _a=ne.droppable.getById(Sa),Va=_a.callbacks.getScrollWhileDragging();return{droppableId:Sa,scroll:Va}}),ma={additions:gn,removals:Object.keys(dt),modified:ua};de=wa(),un(),oe.publish(ma)}))},xe=function(St){var ut=St.descriptor.id;de.additions[ut]=St,de.modified[St.descriptor.droppableId]=!0,de.removals[ut]&&delete de.removals[ut],Pe()},Ne=function(St){var ut=St.descriptor;de.removals[ut.id]=!0,de.modified[ut.droppableId]=!0,de.additions[ut.id]&&delete de.additions[ut.id],Pe()},rt=function(){Se&&(cancelAnimationFrame(Se),Se=null,de=wa())};return{add:xe,remove:Ne,stop:rt}}var Da=function(ee){var ne=ee.scrollHeight,oe=ee.scrollWidth,de=ee.height,Se=ee.width,Pe=Gr({x:oe,y:ne},{x:Se,y:de}),xe={x:Math.max(0,Pe.x),y:Math.max(0,Pe.y)};return xe},ha=function(){var ee=document.documentElement;return ee||sn(!1),ee},Na=function(){var ee=ha(),ne=Da({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},ur=function(){var ee=me(),ne=Na(),oe=ee.y,de=ee.x,Se=ha(),Pe=Se.clientWidth,xe=Se.clientHeight,Ne=de+Pe,rt=oe+xe,yt=Yn({top:oe,left:de,right:Ne,bottom:rt}),St={frame:yt,scroll:{initial:ee,current:ee,max:ne,diff:{value:Mr,displacement:Mr}}};return St},Ar=function(ee){var ne=ee.critical,oe=ee.scrollOptions,de=ee.registry;Tn();var Se=ur(),Pe=Se.scroll.current,xe=ne.droppable,Ne=de.droppable.getAllByType(xe.type).map(function(ut){return ut.callbacks.getDimensionAndWatchScroll(Pe,oe)}),rt=de.draggable.getAllByType(ne.draggable.type).map(function(ut){return ut.getDimension(Pe)}),yt={draggables:$o(rt),droppables:oi(Ne)};un();var St={dimensions:yt,critical:ne,viewport:Se};return St};function pr(ee,ne,oe){if(oe.descriptor.id===ne.id||oe.descriptor.type!==ne.type)return!1;var de=ee.droppable.getById(oe.descriptor.droppableId);return de.descriptor.mode==="virtual"}var tr=function(ee,ne){var oe=null,de=Za({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:ee}),Se=function(Nt,gn){ee.droppable.exists(Nt)||sn(!1),oe&&ne.updateDroppableIsEnabled({id:Nt,isEnabled:gn})},Pe=function(Nt,gn){oe&&(ee.droppable.exists(Nt)||sn(!1),ne.updateDroppableIsCombineEnabled({id:Nt,isCombineEnabled:gn}))},xe=function(Nt,gn){oe&&(ee.droppable.exists(Nt)||sn(!1),ne.updateDroppableScroll({id:Nt,newScroll:gn}))},Ne=function(Nt,gn){oe&&ee.droppable.getById(Nt).callbacks.scroll(gn)},rt=function(){if(oe){de.stop();var Nt=oe.critical.droppable;ee.droppable.getAllByType(Nt.type).forEach(function(gn){return gn.callbacks.dragStopped()}),oe.unsubscribe(),oe=null}},yt=function(Nt){oe||sn(!1);var gn=oe.critical.draggable;Nt.type==="ADDITION"&&pr(ee,gn,Nt.value)&&de.add(Nt.value),Nt.type==="REMOVAL"&&pr(ee,gn,Nt.value)&&de.remove(Nt.value)},St=function(Nt){oe&&sn(!1);var gn=ee.draggable.getById(Nt.draggableId),ua=ee.droppable.getById(gn.descriptor.droppableId),ma={draggable:gn.descriptor,droppable:ua.descriptor},Sa=ee.subscribe(yt);return oe={critical:ma,unsubscribe:Sa},Ar({critical:ma,registry:ee,scrollOptions:Nt.scrollOptions})},ut={updateDroppableIsEnabled:Se,updateDroppableIsCombineEnabled:Pe,scrollDroppable:Ne,updateDroppableScroll:xe,startPublishing:St,stopPublishing:rt};return ut},wr=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},Zr=function(ee){window.scrollBy(ee.x,ee.y)},Io=tn(function(ee){return Ho(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),to=function(ne,oe){var de=Po(Io(oe),function(Se){return Se.frame||sn(!1),ca(Se.frame.pageMarginBox)(ne)});return de},Wo=function(ee){var ne=ee.center,oe=ee.destination,de=ee.droppables;if(oe){var Se=de[oe];return Se.frame?Se:null}var Pe=to(ne,de);return Pe},Ao={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Pr=function(ee,ne){var oe=ee[ne.size]*Ao.startFromPercentage,de=ee[ne.size]*Ao.maxScrollAtPercentage,Se={startScrollingFrom:oe,maxScrollValueAt:de};return Se},Vo=function(ee){var ne=ee.startOfRange,oe=ee.endOfRange,de=ee.current,Se=oe-ne;if(Se===0)return 0;var Pe=de-ne,xe=Pe/Se;return xe},$r=1,To=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return Ao.maxPixelScroll;if(ee===ne.startScrollingFrom)return $r;var oe=Vo({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-oe,Se=Ao.maxPixelScroll*Ao.ease(de);return Math.ceil(Se)},Oo=Ao.durationDampening.accelerateAt,Fi=Ao.durationDampening.stopDampeningAt,ir=function(ee,ne){var oe=ne,de=Fi,Se=Date.now(),Pe=Se-oe;if(Pe>=Fi)return ee;if(Pe<Oo)return $r;var xe=Vo({startOfRange:Oo,endOfRange:de,current:Pe}),Ne=ee*Ao.ease(xe);return Math.ceil(Ne)},nr=function(ee){var ne=ee.distanceToEdge,oe=ee.thresholds,de=ee.dragStartTime,Se=ee.shouldUseTimeDampening,Pe=To(ne,oe);return Pe===0?0:Se?Math.max(ir(Pe,de),$r):Pe},Xa=function(ee){var ne=ee.container,oe=ee.distanceToEdges,de=ee.dragStartTime,Se=ee.axis,Pe=ee.shouldUseTimeDampening,xe=Pr(ne,Se),Ne=oe[Se.end]<oe[Se.start];return Ne?nr({distanceToEdge:oe[Se.end],thresholds:xe,dragStartTime:de,shouldUseTimeDampening:Pe}):-1*nr({distanceToEdge:oe[Se.start],thresholds:xe,dragStartTime:de,shouldUseTimeDampening:Pe})},Ka=function(ee){var ne=ee.container,oe=ee.subject,de=ee.proposedScroll,Se=oe.height>ne.height,Pe=oe.width>ne.width;return!Pe&&!Se?de:Pe&&Se?null:{x:Pe?0:de.x,y:Se?0:de.y}},ro=fr(function(ee){return ee===0?0:ee}),Ha=function(ee){var ne=ee.dragStartTime,oe=ee.container,de=ee.subject,Se=ee.center,Pe=ee.shouldUseTimeDampening,xe={top:Se.y-oe.top,right:oe.right-Se.x,bottom:oe.bottom-Se.y,left:Se.x-oe.left},Ne=Xa({container:oe,distanceToEdges:xe,dragStartTime:ne,axis:$i,shouldUseTimeDampening:Pe}),rt=Xa({container:oe,distanceToEdges:xe,dragStartTime:ne,axis:Yi,shouldUseTimeDampening:Pe}),yt=ro({x:rt,y:Ne});if(za(yt,Mr))return null;var St=Ka({container:oe,subject:de,proposedScroll:yt});return St?za(St,Mr)?null:St:null},vr=fr(function(ee){return ee===0?0:ee>0?1:-1}),Qr=function(){var ee=function(oe,de){return oe<0?oe:oe>de?oe-de:0};return function(ne){var oe=ne.current,de=ne.max,Se=ne.change,Pe=Rr(oe,Se),xe={x:ee(Pe.x,de.x),y:ee(Pe.y,de.y)};return za(xe,Mr)?null:xe}}(),Kr=function(ne){var oe=ne.max,de=ne.current,Se=ne.change,Pe={x:Math.max(de.x,oe.x),y:Math.max(de.y,oe.y)},xe=vr(Se),Ne=Qr({max:Pe,current:de,change:xe});return!Ne||xe.x!==0&&Ne.x===0||xe.y!==0&&Ne.y===0},di=function(ne,oe){return Kr({current:ne.scroll.current,max:ne.scroll.max,change:oe})},ci=function(ne,oe){if(!di(ne,oe))return null;var de=ne.scroll.max,Se=ne.scroll.current;return Qr({current:Se,max:de,change:oe})},Gi=function(ne,oe){var de=ne.frame;return de?Kr({current:de.scroll.current,max:de.scroll.max,change:oe}):!1},ei=function(ne,oe){var de=ne.frame;return!de||!Gi(ne,oe)?null:Qr({current:de.scroll.current,max:de.scroll.max,change:oe})},Vi=function(ee){var ne=ee.viewport,oe=ee.subject,de=ee.center,Se=ee.dragStartTime,Pe=ee.shouldUseTimeDampening,xe=Ha({dragStartTime:Se,container:ne.frame,subject:oe,center:de,shouldUseTimeDampening:Pe});return xe&&di(ne,xe)?xe:null},ti=function(ee){var ne=ee.droppable,oe=ee.subject,de=ee.center,Se=ee.dragStartTime,Pe=ee.shouldUseTimeDampening,xe=ne.frame;if(!xe)return null;var Ne=Ha({dragStartTime:Se,container:xe.pageMarginBox,subject:oe,center:de,shouldUseTimeDampening:Pe});return Ne&&Gi(ne,Ne)?Ne:null},Ai=function(ee){var ne=ee.state,oe=ee.dragStartTime,de=ee.shouldUseTimeDampening,Se=ee.scrollWindow,Pe=ee.scrollDroppable,xe=ne.current.page.borderBoxCenter,Ne=ne.dimensions.draggables[ne.critical.draggable.id],rt=Ne.page.marginBox;if(ne.isWindowScrollAllowed){var yt=ne.viewport,St=Vi({dragStartTime:oe,viewport:yt,subject:rt,center:xe,shouldUseTimeDampening:de});if(St){Se(St);return}}var ut=Wo({center:xe,destination:Qa(ne.impact),droppables:ne.dimensions.droppables});if(ut){var dt=ti({dragStartTime:oe,droppable:ut,subject:rt,center:xe,shouldUseTimeDampening:de});dt&&Pe(ut.descriptor.id,dt)}},Ol=function(ee){var ne=ee.scrollWindow,oe=ee.scrollDroppable,de=mn(ne),Se=mn(oe),Pe=null,xe=function(St){Pe||sn(!1);var ut=Pe,dt=ut.shouldUseTimeDampening,Nt=ut.dragStartTime;Ai({state:St,scrollWindow:de,scrollDroppable:Se,dragStartTime:Nt,shouldUseTimeDampening:dt})},Ne=function(St){Tn(),Pe&&sn(!1);var ut=Date.now(),dt=!1,Nt=function(){dt=!0};Ai({state:St,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Nt,scrollDroppable:Nt}),Pe={dragStartTime:ut,shouldUseTimeDampening:dt},un(),dt&&xe(St)},rt=function(){Pe&&(de.cancel(),Se.cancel(),Pe=null)};return{start:Ne,stop:rt,scroll:xe}},uo=function(ee){var ne=ee.move,oe=ee.scrollDroppable,de=ee.scrollWindow,Se=function(yt,St){var ut=Rr(yt.current.client.selection,St);ne({client:ut})},Pe=function(yt,St){if(!Gi(yt,St))return St;var ut=ei(yt,St);if(!ut)return oe(yt.descriptor.id,St),null;var dt=Gr(St,ut);oe(yt.descriptor.id,dt);var Nt=Gr(St,dt);return Nt},xe=function(yt,St,ut){if(!yt||!di(St,ut))return ut;var dt=ci(St,ut);if(!dt)return de(ut),null;var Nt=Gr(ut,dt);de(Nt);var gn=Gr(ut,Nt);return gn},Ne=function(yt){var St=yt.scrollJumpRequest;if(St){var ut=Qa(yt.impact);ut||sn(!1);var dt=Pe(yt.dimensions.droppables[ut],St);if(dt){var Nt=yt.viewport,gn=xe(yt.isWindowScrollAllowed,Nt,dt);gn&&Se(yt,gn)}}};return Ne},vo=function(ee){var ne=ee.scrollDroppable,oe=ee.scrollWindow,de=ee.move,Se=Ol({scrollWindow:oe,scrollDroppable:ne}),Pe=uo({move:de,scrollWindow:oe,scrollDroppable:ne}),xe=function(yt){if(yt.phase==="DRAGGING"){if(yt.movementMode==="FLUID"){Se.scroll(yt);return}yt.scrollJumpRequest&&Pe(yt)}},Ne={scroll:xe,start:Se.start,stop:Se.stop};return Ne},No="data-rbd",jo=function(){var ee=No+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Qo=function(){var ee=No+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),zr=function(){var ee=No+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),hi={contextId:No+"-scroll-container-context-id"},Si=function(ne){return function(oe){return"["+oe+'="'+ne+'"]'}},pi=function(ne,oe){return ne.map(function(de){var Se=de.styles[oe];return Se?de.selector+" { "+Se+" }":""}).join(" ")},dl="pointer-events: none;",nl=function(ee){var ne=Si(ee),oe=function(){var Ne=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:ne(jo.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ne,dragging:dl,dropAnimating:Ne}}}(),de=function(){var Ne=`
transition: `+kl.outOfTheWay+`;
`;return{selector:ne(Qo.contextId),styles:{dragging:Ne,dropAnimating:Ne,userCancel:Ne}}}(),Se={selector:ne(zr.contextId),styles:{always:"overflow-anchor: none;"}},Pe={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},xe=[de,oe,Se,Pe];return{always:pi(xe,"always"),resting:pi(xe,"resting"),dragging:pi(xe,"dragging"),dropAnimating:pi(xe,"dropAnimating"),userCancel:pi(xe,"userCancel")}},Pi=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,al=function(){var ne=document.querySelector("head");return ne||sn(!1),ne},Hi=function(ne){var oe=document.createElement("style");return ne&&oe.setAttribute("nonce",ne),oe.type="text/css",oe};function Ii(ee,ne){var oe=Zt(function(){return nl(ee)},[ee]),de=(0,b.useRef)(null),Se=(0,b.useRef)(null),Pe=wt(tn(function(ut){var dt=Se.current;dt||sn(!1),dt.textContent=ut}),[]),xe=wt(function(ut){var dt=de.current;dt||sn(!1),dt.textContent=ut},[]);Pi(function(){!de.current&&!Se.current||sn(!1);var ut=Hi(ne),dt=Hi(ne);return de.current=ut,Se.current=dt,ut.setAttribute(No+"-always",ee),dt.setAttribute(No+"-dynamic",ee),al().appendChild(ut),al().appendChild(dt),xe(oe.always),Pe(oe.resting),function(){var Nt=function(ua){var ma=ua.current;ma||sn(!1),al().removeChild(ma),ua.current=null};Nt(de),Nt(Se)}},[ne,xe,Pe,oe.always,oe.resting,ee]);var Ne=wt(function(){return Pe(oe.dragging)},[Pe,oe.dragging]),rt=wt(function(ut){if(ut==="DROP"){Pe(oe.dropAnimating);return}Pe(oe.userCancel)},[Pe,oe.dropAnimating,oe.userCancel]),yt=wt(function(){Se.current&&Pe(oe.resting)},[Pe,oe.resting]),St=Zt(function(){return{dragging:Ne,dropping:rt,resting:yt}},[Ne,rt,yt]);return St}var Ei=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Ko(ee){return ee instanceof Ei(ee).HTMLElement}function ko(ee,ne){var oe="["+jo.contextId+'="'+ee+'"]',de=xo(document.querySelectorAll(oe));if(!de.length)return null;var Se=Po(de,function(Pe){return Pe.getAttribute(jo.draggableId)===ne});return!Se||!Ko(Se)?null:Se}function cl(ee){var ne=(0,b.useRef)({}),oe=(0,b.useRef)(null),de=(0,b.useRef)(null),Se=(0,b.useRef)(!1),Pe=wt(function(dt,Nt){var gn={id:dt,focus:Nt};return ne.current[dt]=gn,function(){var ma=ne.current,Sa=ma[dt];Sa!==gn&&delete ma[dt]}},[]),xe=wt(function(dt){var Nt=ko(ee,dt);Nt&&Nt!==document.activeElement&&Nt.focus()},[ee]),Ne=wt(function(dt,Nt){oe.current===dt&&(oe.current=Nt)},[]),rt=wt(function(){de.current||Se.current&&(de.current=requestAnimationFrame(function(){de.current=null;var dt=oe.current;dt&&xe(dt)}))},[xe]),yt=wt(function(dt){oe.current=null;var Nt=document.activeElement;Nt&&Nt.getAttribute(jo.draggableId)===dt&&(oe.current=dt)},[]);Pi(function(){return Se.current=!0,function(){Se.current=!1;var dt=de.current;dt&&cancelAnimationFrame(dt)}},[]);var St=Zt(function(){return{register:Pe,tryRecordFocus:yt,tryRestoreFocusRecorded:rt,tryShiftRecord:Ne}},[Pe,yt,rt,Ne]);return St}function Ll(){var ee={draggables:{},droppables:{}},ne=[];function oe(ut){return ne.push(ut),function(){var Nt=ne.indexOf(ut);Nt!==-1&&ne.splice(Nt,1)}}function de(ut){ne.length&&ne.forEach(function(dt){return dt(ut)})}function Se(ut){return ee.draggables[ut]||null}function Pe(ut){var dt=Se(ut);return dt||sn(!1),dt}var xe={register:function(dt){ee.draggables[dt.descriptor.id]=dt,de({type:"ADDITION",value:dt})},update:function(dt,Nt){var gn=ee.draggables[Nt.descriptor.id];gn&&gn.uniqueId===dt.uniqueId&&(delete ee.draggables[Nt.descriptor.id],ee.draggables[dt.descriptor.id]=dt)},unregister:function(dt){var Nt=dt.descriptor.id,gn=Se(Nt);gn&&dt.uniqueId===gn.uniqueId&&(delete ee.draggables[Nt],de({type:"REMOVAL",value:dt}))},getById:Pe,findById:Se,exists:function(dt){return!!Se(dt)},getAllByType:function(dt){return mo(ee.draggables).filter(function(Nt){return Nt.descriptor.type===dt})}};function Ne(ut){return ee.droppables[ut]||null}function rt(ut){var dt=Ne(ut);return dt||sn(!1),dt}var yt={register:function(dt){ee.droppables[dt.descriptor.id]=dt},unregister:function(dt){var Nt=Ne(dt.descriptor.id);Nt&&dt.uniqueId===Nt.uniqueId&&delete ee.droppables[dt.descriptor.id]},getById:rt,findById:Ne,exists:function(dt){return!!Ne(dt)},getAllByType:function(dt){return mo(ee.droppables).filter(function(Nt){return Nt.descriptor.type===dt})}};function St(){ee.draggables={},ee.droppables={},ne.length=0}return{draggable:xe,droppable:yt,subscribe:oe,clean:St}}function hl(){var ee=Zt(Ll,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Qi=b.createContext(null),Sl=function(){var ee=document.body;return ee||sn(!1),ee},fu={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Yr=function(ne){return"rbd-announcement-"+ne};function Lo(ee){var ne=Zt(function(){return Yr(ee)},[ee]),oe=(0,b.useRef)(null);(0,b.useEffect)(function(){var Pe=document.createElement("div");return oe.current=Pe,Pe.id=ne,Pe.setAttribute("aria-live","assertive"),Pe.setAttribute("aria-atomic","true"),(0,Ae.Z)(Pe.style,fu),Sl().appendChild(Pe),function(){setTimeout(function(){var rt=Sl();rt.contains(Pe)&&rt.removeChild(Pe),Pe===oe.current&&(oe.current=null)})}},[ne]);var de=wt(function(Se){var Pe=oe.current;if(Pe){Pe.textContent=Se;return}},[]);return de}var gi=0,Go={separator:"::"};function yi(){gi=0}function bi(ee,ne){return ne===void 0&&(ne=Go),Zt(function(){return""+ee+ne.separator+gi++},[ne.separator,ee])}function Ni(ee){var ne=ee.contextId,oe=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+oe}function ml(ee){var ne=ee.contextId,oe=ee.text,de=bi("hidden-text",{separator:"-"}),Se=Zt(function(){return Ni({contextId:ne,uniqueId:de})},[de,ne]);return(0,b.useEffect)(function(){var xe=document.createElement("div");return xe.id=Se,xe.textContent=oe,xe.style.display="none",Sl().appendChild(xe),function(){var rt=Sl();rt.contains(xe)&&rt.removeChild(xe)}},[Se,oe]),Se}var Ql=b.createContext(null),Vu={react:"^16.8.5","react-dom":"^16.8.5"},wu=/(\d+)\.(\d+)\.(\d+)/,Du=function(ne){var oe=wu.exec(ne);oe==null&&sn(!1);var de=Number(oe[1]),Se=Number(oe[2]),Pe=Number(oe[3]);return{major:de,minor:Se,patch:Pe,raw:ne}},Iu=function(ne,oe){return oe.major>ne.major?!0:oe.major<ne.major?!1:oe.minor>ne.minor?!0:oe.minor<ne.minor?!1:oe.patch>=ne.patch},ru=function(ee,ne){var oe=Du(ee),de=Du(ne);Iu(oe,de)},Jl=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,Nu=function(ee){var ne=ee.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function cs(ee){}function Zl(ee,ne){}function Qu(){Zl(function(){ru(Vu.react,b.version),Nu(document)},[])}function ou(ee){var ne=(0,b.useRef)(ee);return(0,b.useEffect)(function(){ne.current=ee}),ne}function iu(){var ee=null;function ne(){return!!ee}function oe(xe){return xe===ee}function de(xe){ee&&sn(!1);var Ne={abandon:xe};return ee=Ne,Ne}function Se(){ee||sn(!1),ee=null}function Pe(){ee&&(ee.abandon(),Se())}return{isClaimed:ne,isActive:oe,claim:de,release:Se,tryAbandon:Pe}}var Ou=9,Ju=13,lu=27,pu=32,$u=33,Yu=34,Xu=35,Lu=36,uu=37,vu=38,hu=39,Ru=40,$l,_u=($l={},$l[Ju]=!0,$l[Ou]=!0,$l),Su=function(ee){_u[ee.keyCode]&&ee.preventDefault()},su=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var ne=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],oe=Po(ne,function(de){return"on"+de in document});return oe||ee}(),Pu=0,du=5;function Mu(ee,ne){return Math.abs(ne.x-ee.x)>=du||Math.abs(ne.y-ee.y)>=du}var cu={type:"IDLE"};function Tu(ee){var ne=ee.cancel,oe=ee.completed,de=ee.getPhase,Se=ee.setPhase;return[{eventName:"mousemove",fn:function(xe){var Ne=xe.button,rt=xe.clientX,yt=xe.clientY;if(Ne===Pu){var St={x:rt,y:yt},ut=de();if(ut.type==="DRAGGING"){xe.preventDefault(),ut.actions.move(St);return}ut.type!=="PENDING"&&sn(!1);var dt=ut.point;if(Mu(dt,St)){xe.preventDefault();var Nt=ut.actions.fluidLift(St);Se({type:"DRAGGING",actions:Nt})}}}},{eventName:"mouseup",fn:function(xe){var Ne=de();if(Ne.type!=="DRAGGING"){ne();return}xe.preventDefault(),Ne.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"mousedown",fn:function(xe){de().type==="DRAGGING"&&xe.preventDefault(),ne()}},{eventName:"keydown",fn:function(xe){var Ne=de();if(Ne.type==="PENDING"){ne();return}if(xe.keyCode===lu){xe.preventDefault(),ne();return}Su(xe)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(xe){var Ne=de();if(Ne.type==="IDLE"&&sn(!1),Ne.actions.shouldRespectForcePress()){ne();return}xe.preventDefault()}},{eventName:su,fn:ne}]}function qu(ee){var ne=(0,b.useRef)(cu),oe=(0,b.useRef)(Ra),de=Zt(function(){return{eventName:"mousedown",fn:function(ut){if(!ut.defaultPrevented&&ut.button===Pu&&!(ut.ctrlKey||ut.metaKey||ut.shiftKey||ut.altKey)){var dt=ee.findClosestDraggableId(ut);if(dt){var Nt=ee.tryGetLock(dt,xe,{sourceEvent:ut});if(Nt){ut.preventDefault();var gn={x:ut.clientX,y:ut.clientY};oe.current(),yt(Nt,gn)}}}}}},[ee]),Se=Zt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(ut){if(!ut.defaultPrevented){var dt=ee.findClosestDraggableId(ut);if(dt){var Nt=ee.findOptionsForDraggable(dt);Nt&&(Nt.shouldRespectForcePress||ee.canGetLock(dt)&&ut.preventDefault())}}}}},[ee]),Pe=wt(function(){var ut={passive:!1,capture:!0};oe.current=pa(window,[Se,de],ut)},[Se,de]),xe=wt(function(){var St=ne.current;St.type!=="IDLE"&&(ne.current=cu,oe.current(),Pe())},[Pe]),Ne=wt(function(){var St=ne.current;xe(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[xe]),rt=wt(function(){var ut={capture:!0,passive:!1},dt=Tu({cancel:Ne,completed:xe,getPhase:function(){return ne.current},setPhase:function(gn){ne.current=gn}});oe.current=pa(window,dt,ut)},[Ne,xe]),yt=wt(function(ut,dt){ne.current.type!=="IDLE"&&sn(!1),ne.current={type:"PENDING",point:dt,actions:ut},rt()},[rt]);Pi(function(){return Pe(),function(){oe.current()}},[Pe])}var Xr;function Zo(){}var Ji=(Xr={},Xr[Yu]=!0,Xr[$u]=!0,Xr[Lu]=!0,Xr[Xu]=!0,Xr);function Pl(ee,ne){function oe(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(Pe){if(Pe.keyCode===lu){Pe.preventDefault(),oe();return}if(Pe.keyCode===pu){Pe.preventDefault(),de();return}if(Pe.keyCode===Ru){Pe.preventDefault(),ee.moveDown();return}if(Pe.keyCode===vu){Pe.preventDefault(),ee.moveUp();return}if(Pe.keyCode===hu){Pe.preventDefault(),ee.moveRight();return}if(Pe.keyCode===uu){Pe.preventDefault(),ee.moveLeft();return}if(Ji[Pe.keyCode]){Pe.preventDefault();return}Su(Pe)}},{eventName:"mousedown",fn:oe},{eventName:"mouseup",fn:oe},{eventName:"click",fn:oe},{eventName:"touchstart",fn:oe},{eventName:"resize",fn:oe},{eventName:"wheel",fn:oe,options:{passive:!0}},{eventName:su,fn:oe}]}function El(ee){var ne=(0,b.useRef)(Zo),oe=Zt(function(){return{eventName:"keydown",fn:function(Pe){if(Pe.defaultPrevented||Pe.keyCode!==pu)return;var xe=ee.findClosestDraggableId(Pe);if(!xe)return;var Ne=ee.tryGetLock(xe,St,{sourceEvent:Pe});if(!Ne)return;Pe.preventDefault();var rt=!0,yt=Ne.snapLift();ne.current();function St(){rt||sn(!1),rt=!1,ne.current(),de()}ne.current=pa(window,Pl(yt,St),{capture:!0,passive:!1})}}},[ee]),de=wt(function(){var Pe={passive:!1,capture:!0};ne.current=pa(window,[oe],Pe)},[oe]);Pi(function(){return de(),function(){ne.current()}},[de])}var gu={type:"IDLE"},Eu=120,yu=.15;function bu(ee){var ne=ee.cancel,oe=ee.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(Se){Se.preventDefault()}},{eventName:"keydown",fn:function(Se){if(oe().type!=="DRAGGING"){ne();return}Se.keyCode===lu&&Se.preventDefault(),ne()}},{eventName:su,fn:ne}]}function Cu(ee){var ne=ee.cancel,oe=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Pe){var xe=de();if(xe.type!=="DRAGGING"){ne();return}xe.hasMoved=!0;var Ne=Pe.touches[0],rt=Ne.clientX,yt=Ne.clientY,St={x:rt,y:yt};Pe.preventDefault(),xe.actions.move(St)}},{eventName:"touchend",fn:function(Pe){var xe=de();if(xe.type!=="DRAGGING"){ne();return}Pe.preventDefault(),xe.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"touchcancel",fn:function(Pe){if(de().type!=="DRAGGING"){ne();return}Pe.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(Pe){var xe=de();xe.type==="IDLE"&&sn(!1);var Ne=Pe.touches[0];if(Ne){var rt=Ne.force>=yu;if(rt){var yt=xe.actions.shouldRespectForcePress();if(xe.type==="PENDING"){yt&&ne();return}if(yt){if(xe.hasMoved){Pe.preventDefault();return}ne();return}Pe.preventDefault()}}}},{eventName:su,fn:ne}]}function Os(ee){var ne=(0,b.useRef)(gu),oe=(0,b.useRef)(Ra),de=wt(function(){return ne.current},[]),Se=wt(function(Nt){ne.current=Nt},[]),Pe=Zt(function(){return{eventName:"touchstart",fn:function(Nt){if(!Nt.defaultPrevented){var gn=ee.findClosestDraggableId(Nt);if(gn){var ua=ee.tryGetLock(gn,Ne,{sourceEvent:Nt});if(ua){var ma=Nt.touches[0],Sa=ma.clientX,_a=ma.clientY,Va={x:Sa,y:_a};oe.current(),ut(ua,Va)}}}}}},[ee]),xe=wt(function(){var Nt={capture:!0,passive:!1};oe.current=pa(window,[Pe],Nt)},[Pe]),Ne=wt(function(){var dt=ne.current;dt.type!=="IDLE"&&(dt.type==="PENDING"&&clearTimeout(dt.longPressTimerId),Se(gu),oe.current(),xe())},[xe,Se]),rt=wt(function(){var dt=ne.current;Ne(),dt.type==="DRAGGING"&&dt.actions.cancel({shouldBlockNextClick:!0}),dt.type==="PENDING"&&dt.actions.abort()},[Ne]),yt=wt(function(){var Nt={capture:!0,passive:!1},gn={cancel:rt,completed:Ne,getPhase:de},ua=pa(window,Cu(gn),Nt),ma=pa(window,bu(gn),Nt);oe.current=function(){ua(),ma()}},[rt,de,Ne]),St=wt(function(){var Nt=de();Nt.type!=="PENDING"&&sn(!1);var gn=Nt.actions.fluidLift(Nt.point);Se({type:"DRAGGING",actions:gn,hasMoved:!1})},[de,Se]),ut=wt(function(Nt,gn){de().type!=="IDLE"&&sn(!1);var ua=setTimeout(St,Eu);Se({type:"PENDING",point:gn,actions:Nt,longPressTimerId:ua}),yt()},[yt,de,Se,St]);Pi(function(){return xe(),function(){oe.current();var gn=de();gn.type==="PENDING"&&(clearTimeout(gn.longPressTimerId),Se(gu))}},[de,xe,Se]),Pi(function(){var Nt=pa(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Nt},[])}function Ls(ee){}var Rs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function gs(ee,ne){if(ne==null)return!1;var oe=!!Rs[ne.tagName.toLowerCase()];if(oe)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:gs(ee,ne.parentElement)}function _s(ee,ne){var oe=ne.target;return Ko(oe)?gs(ee,oe):!1}var Ms=function(ee){return Yn(ee.getBoundingClientRect()).center};function Ts(ee){return ee instanceof Ei(ee).Element}var ks=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],oe=Po(ne,function(de){return de in Element.prototype});return oe||ee}();function ms(ee,ne){return ee==null?null:ee[ks](ne)?ee:ms(ee.parentElement,ne)}function Zs(ee,ne){return ee.closest?ee.closest(ne):ms(ee,ne)}function zs(ee){return"["+jo.contextId+'="'+ee+'"]'}function js(ee,ne){var oe=ne.target;if(!Ts(oe))return null;var de=zs(ee),Se=Zs(oe,de);return!Se||!Ko(Se)?null:Se}function Gs(ee,ne){var oe=js(ee,ne);return oe?oe.getAttribute(jo.draggableId):null}function Hs(ee,ne){var oe="["+Qo.contextId+'="'+ee+'"]',de=xo(document.querySelectorAll(oe)),Se=Po(de,function(Pe){return Pe.getAttribute(Qo.id)===ne});return!Se||!Ko(Se)?null:Se}function Ws(ee){ee.preventDefault()}function ku(ee){var ne=ee.expected,oe=ee.phase,de=ee.isLockActive,Se=ee.shouldWarn;return!(!de()||ne!==oe)}function fs(ee){var ne=ee.lockAPI,oe=ee.store,de=ee.registry,Se=ee.draggableId;if(ne.isClaimed())return!1;var Pe=de.draggable.findById(Se);return!(!Pe||!Pe.options.isEnabled||!wr(oe.getState(),Se))}function Ks(ee){var ne=ee.lockAPI,oe=ee.contextId,de=ee.store,Se=ee.registry,Pe=ee.draggableId,xe=ee.forceSensorStop,Ne=ee.sourceEvent,rt=fs({lockAPI:ne,store:de,registry:Se,draggableId:Pe});if(!rt)return null;var yt=Se.draggable.getById(Pe),St=Hs(oe,yt.descriptor.id);if(!St||Ne&&!yt.options.canDragInteractiveElements&&_s(St,Ne))return null;var ut=ne.claim(xe||Ra),dt="PRE_DRAG";function Nt(){return yt.options.shouldRespectForcePress}function gn(){return ne.isActive(ut)}function ua(Or,io){ku({expected:Or,phase:dt,isLockActive:gn,shouldWarn:!0})&&de.dispatch(io())}var ma=ua.bind(null,"DRAGGING");function Sa(Or){function io(){ne.release(),dt="COMPLETED"}dt!=="PRE_DRAG"&&(io(),dt!=="PRE_DRAG"&&sn(!1)),de.dispatch(ba(Or.liftActionArgs)),dt="DRAGGING";function ii(ho,li){if(li===void 0&&(li={shouldBlockNextClick:!1}),Or.cleanup(),li.shouldBlockNextClick){var wi=pa(window,[{eventName:"click",fn:Ws,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(wi)}io(),de.dispatch(gl({reason:ho}))}return(0,Ae.Z)({isActive:function(){return ku({expected:"DRAGGING",phase:dt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Nt,drop:function(li){return ii("DROP",li)},cancel:function(li){return ii("CANCEL",li)}},Or.actions)}function _a(Or){var io=mn(function(ho){ma(function(){return Fo({client:ho})})}),ii=Sa({liftActionArgs:{id:Pe,clientSelection:Or,movementMode:"FLUID"},cleanup:function(){return io.cancel()},actions:{move:io}});return(0,Ae.Z)({},ii,{move:io})}function Va(){var Or={moveUp:function(){return ma(mi)},moveRight:function(){return ma(Nr)},moveDown:function(){return ma(fi)},moveLeft:function(){return ma(Co)}};return Sa({liftActionArgs:{id:Pe,clientSelection:Ms(St),movementMode:"SNAP"},cleanup:Ra,actions:Or})}function ar(){var Or=ku({expected:"PRE_DRAG",phase:dt,isLockActive:gn,shouldWarn:!0});Or&&ne.release()}var jr={isActive:function(){return ku({expected:"PRE_DRAG",phase:dt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Nt,fluidLift:_a,snapLift:Va,abort:ar};return jr}var Us=[qu,El,Os];function Vs(ee){var ne=ee.contextId,oe=ee.store,de=ee.registry,Se=ee.customSensors,Pe=ee.enableDefaultSensors,xe=[].concat(Pe?Us:[],Se||[]),Ne=(0,b.useState)(function(){return iu()})[0],rt=wt(function(_a,Va){_a.isDragging&&!Va.isDragging&&Ne.tryAbandon()},[Ne]);Pi(function(){var _a=oe.getState(),Va=oe.subscribe(function(){var ar=oe.getState();rt(_a,ar),_a=ar});return Va},[Ne,oe,rt]),Pi(function(){return Ne.tryAbandon},[Ne.tryAbandon]);var yt=wt(function(Sa){return fs({lockAPI:Ne,registry:de,store:oe,draggableId:Sa})},[Ne,de,oe]),St=wt(function(Sa,_a,Va){return Ks({lockAPI:Ne,registry:de,contextId:ne,store:oe,draggableId:Sa,forceSensorStop:_a,sourceEvent:Va&&Va.sourceEvent?Va.sourceEvent:null})},[ne,Ne,de,oe]),ut=wt(function(Sa){return Gs(ne,Sa)},[ne]),dt=wt(function(Sa){var _a=de.draggable.findById(Sa);return _a?_a.options:null},[de.draggable]),Nt=wt(function(){Ne.isClaimed()&&(Ne.tryAbandon(),oe.getState().phase!=="IDLE"&&oe.dispatch(po()))},[Ne,oe]),gn=wt(Ne.isClaimed,[Ne]),ua=Zt(function(){return{canGetLock:yt,tryGetLock:St,findClosestDraggableId:ut,findOptionsForDraggable:dt,tryReleaseLock:Nt,isLockClaimed:gn}},[yt,St,ut,dt,Nt,gn]);Ls(xe);for(var ma=0;ma<xe.length;ma++)xe[ma](ua)}var Qs=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function xu(ee){return ee.current||sn(!1),ee.current}function Js(ee){var ne=ee.contextId,oe=ee.setCallbacks,de=ee.sensors,Se=ee.nonce,Pe=ee.dragHandleUsageInstructions,xe=(0,b.useRef)(null);Qu();var Ne=ou(ee),rt=wt(function(){return Qs(Ne.current)},[Ne]),yt=Lo(ne),St=ml({contextId:ne,text:Pe}),ut=Ii(ne,Se),dt=wt(function(ho){xu(xe).dispatch(ho)},[]),Nt=Zt(function(){return(0,Ie.DE)({publishWhileDragging:fa,updateDroppableScroll:va,updateDroppableIsEnabled:Ir,updateDroppableIsCombineEnabled:lo,collectionStarting:ra},dt)},[dt]),gn=hl(),ua=Zt(function(){return tr(gn,Nt)},[gn,Nt]),ma=Zt(function(){return vo((0,Ae.Z)({scrollWindow:Zr,scrollDroppable:ua.scrollDroppable},(0,Ie.DE)({move:Fo},dt)))},[ua.scrollDroppable,dt]),Sa=cl(ne),_a=Zt(function(){return Sr({announce:yt,autoScroller:ma,dimensionMarshal:ua,focusMarshal:Sa,getResponders:rt,styleMarshal:ut})},[yt,ma,ua,Sa,rt,ut]);xe.current=_a;var Va=wt(function(){var ho=xu(xe),li=ho.getState();li.phase!=="IDLE"&&ho.dispatch(po())},[]),ar=wt(function(){var ho=xu(xe).getState();return ho.isDragging||ho.phase==="DROP_ANIMATING"},[]),jr=Zt(function(){return{isDragging:ar,tryAbort:Va}},[ar,Va]);oe(jr);var Or=wt(function(ho){return wr(xu(xe).getState(),ho)},[]),io=wt(function(){return Ia(xu(xe).getState())},[]),ii=Zt(function(){return{marshal:ua,focus:Sa,contextId:ne,canLift:Or,isMovementAllowed:io,dragHandleUsageInstructionsId:St,registry:gn}},[ne,ua,St,Sa,Or,io,gn]);return Vs({contextId:ne,store:_a,registry:gn,customSensors:de,enableDefaultSensors:ee.enableDefaultSensors!==!1}),(0,b.useEffect)(function(){return Va},[Va]),b.createElement(Ql.Provider,{value:ii},b.createElement(x,{context:Qi,store:_a},ee.children))}var ps=0;function $s(){ps=0}function Ys(){return Zt(function(){return""+ps++},[])}function $d(){$s(),yi()}function Xs(ee){var ne=Ys(),oe=ee.dragHandleUsageInstructions||Mn.dragHandleUsageInstructions;return b.createElement(Dr,null,function(de){return b.createElement(Js,{nonce:ee.nonce,contextId:ne,setCallbacks:de,dragHandleUsageInstructions:oe,enableDefaultSensors:ee.enableDefaultSensors,sensors:ee.sensors,onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragUpdate:ee.onDragUpdate,onDragEnd:ee.onDragEnd},ee.children)})}var es=function(ne){return function(oe){return ne===oe}},qs=es("scroll"),ed=es("auto"),td=es("visible"),vs=function(ne,oe){return oe(ne.overflowX)||oe(ne.overflowY)},nd=function(ne,oe){return oe(ne.overflowX)&&oe(ne.overflowY)},hs=function(ne){var oe=window.getComputedStyle(ne),de={overflowX:oe.overflowX,overflowY:oe.overflowY};return vs(de,qs)||vs(de,ed)},ad=function(){return!1;var ne,oe,de,Se},Ss=function ee(ne){return ne==null?null:ne===document.body?ad()?ne:null:ne===document.documentElement?null:hs(ne)?ne:ee(ne.parentElement)},Yd=function(ee){if(ee)var ne=Ss(ee.parentElement)},ts=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},rd=function ee(ne){if(!ne)return!1;var oe=window.getComputedStyle(ne);return oe.position==="fixed"?!0:ee(ne.parentElement)},od=function(ee){var ne=Ss(ee),oe=rd(ee);return{closestScrollable:ne,isFixedOnPage:oe}},id=function(ee){var ne=ee.descriptor,oe=ee.isEnabled,de=ee.isCombineEnabled,Se=ee.isFixedOnPage,Pe=ee.direction,xe=ee.client,Ne=ee.page,rt=ee.closest,yt=function(){if(!rt)return null;var Nt=rt.scrollSize,gn=rt.client,ua=Da({scrollHeight:Nt.scrollHeight,scrollWidth:Nt.scrollWidth,height:gn.paddingBox.height,width:gn.paddingBox.width});return{pageMarginBox:rt.page.marginBox,frameClient:gn,scrollSize:Nt,shouldClipSubject:rt.shouldClipSubject,scroll:{initial:rt.scroll,current:rt.scroll,max:ua,diff:{value:Mr,displacement:Mr}}}}(),St=Pe==="vertical"?$i:Yi,ut=So({page:Ne,withPlaceholder:null,axis:St,frame:yt}),dt={descriptor:ne,isCombineEnabled:de,isFixedOnPage:Se,axis:St,isEnabled:oe,client:xe,page:Ne,frame:yt,subject:ut};return dt},ld=function(ne,oe){var de=Oa(ne);if(!oe||ne!==oe)return de;var Se=de.paddingBox.top-oe.scrollTop,Pe=de.paddingBox.left-oe.scrollLeft,xe=Se+oe.scrollHeight,Ne=Pe+oe.scrollWidth,rt={top:Se,right:Ne,bottom:xe,left:Pe},yt=xa(rt,de.border),St=Zn({borderBox:yt,margin:de.margin,border:de.border,padding:de.padding});return St},ud=function(ee){var ne=ee.ref,oe=ee.descriptor,de=ee.env,Se=ee.windowScroll,Pe=ee.direction,xe=ee.isDropDisabled,Ne=ee.isCombineEnabled,rt=ee.shouldClipSubject,yt=de.closestScrollable,St=ld(ne,yt),ut=ta(St,Se),dt=function(){if(!yt)return null;var gn=Oa(yt),ua={scrollHeight:yt.scrollHeight,scrollWidth:yt.scrollWidth};return{client:gn,page:ta(gn,Se),scroll:ts(yt),scrollSize:ua,shouldClipSubject:rt}}(),Nt=id({descriptor:oe,isEnabled:!xe,isCombineEnabled:Ne,isFixedOnPage:de.isFixedOnPage,direction:Pe,client:St,page:ut,closest:dt});return Nt},sd={passive:!1},dd={passive:!0},Ps=function(ee){return ee.shouldPublishImmediately?sd:dd};function Zu(ee){var ne=(0,b.useContext)(ee);return ne||sn(!1),ne}var zu=function(ne){return ne&&ne.env.closestScrollable||null};function cd(ee){var ne=(0,b.useRef)(null),oe=Zu(Ql),de=bi("droppable"),Se=oe.registry,Pe=oe.marshal,xe=ou(ee),Ne=Zt(function(){return{id:ee.droppableId,type:ee.type,mode:ee.mode}},[ee.droppableId,ee.mode,ee.type]),rt=(0,b.useRef)(Ne),yt=Zt(function(){return tn(function(ar,jr){ne.current||sn(!1);var Or={x:ar,y:jr};Pe.updateDroppableScroll(Ne.id,Or)})},[Ne.id,Pe]),St=wt(function(){var ar=ne.current;return!ar||!ar.env.closestScrollable?Mr:ts(ar.env.closestScrollable)},[]),ut=wt(function(){var ar=St();yt(ar.x,ar.y)},[St,yt]),dt=Zt(function(){return mn(ut)},[ut]),Nt=wt(function(){var ar=ne.current,jr=zu(ar);ar&&jr||sn(!1);var Or=ar.scrollOptions;if(Or.shouldPublishImmediately){ut();return}dt()},[dt,ut]),gn=wt(function(ar,jr){ne.current&&sn(!1);var Or=xe.current,io=Or.getDroppableRef();io||sn(!1);var ii=od(io),ho={ref:io,descriptor:Ne,env:ii,scrollOptions:jr};ne.current=ho;var li=ud({ref:io,descriptor:Ne,env:ii,windowScroll:ar,direction:Or.direction,isDropDisabled:Or.isDropDisabled,isCombineEnabled:Or.isCombineEnabled,shouldClipSubject:!Or.ignoreContainerClipping}),wi=ii.closestScrollable;return wi&&(wi.setAttribute(hi.contextId,oe.contextId),wi.addEventListener("scroll",Nt,Ps(ho.scrollOptions))),li},[oe.contextId,Ne,Nt,xe]),ua=wt(function(){var ar=ne.current,jr=zu(ar);return ar&&jr||sn(!1),ts(jr)},[]),ma=wt(function(){var ar=ne.current;ar||sn(!1);var jr=zu(ar);ne.current=null,jr&&(dt.cancel(),jr.removeAttribute(hi.contextId),jr.removeEventListener("scroll",Nt,Ps(ar.scrollOptions)))},[Nt,dt]),Sa=wt(function(ar){var jr=ne.current;jr||sn(!1);var Or=zu(jr);Or||sn(!1),Or.scrollTop+=ar.y,Or.scrollLeft+=ar.x},[]),_a=Zt(function(){return{getDimensionAndWatchScroll:gn,getScrollWhileDragging:ua,dragStopped:ma,scroll:Sa}},[ma,gn,ua,Sa]),Va=Zt(function(){return{uniqueId:de,descriptor:Ne,callbacks:_a}},[_a,Ne,de]);Pi(function(){return rt.current=Va.descriptor,Se.droppable.register(Va),function(){ne.current&&ma(),Se.droppable.unregister(Va)}},[_a,Ne,ma,Va,Pe,Se.droppable]),Pi(function(){ne.current&&Pe.updateDroppableIsEnabled(rt.current.id,!ee.isDropDisabled)},[ee.isDropDisabled,Pe]),Pi(function(){ne.current&&Pe.updateDroppableIsCombineEnabled(rt.current.id,ee.isCombineEnabled)},[ee.isCombineEnabled,Pe])}function ns(){}var Es={width:0,height:0,margin:co},gd=function(ne){var oe=ne.isAnimatingOpenOnMount,de=ne.placeholder,Se=ne.animate;return oe||Se==="close"?Es:{height:de.client.borderBox.height,width:de.client.borderBox.width,margin:de.client.margin}},md=function(ne){var oe=ne.isAnimatingOpenOnMount,de=ne.placeholder,Se=ne.animate,Pe=gd({isAnimatingOpenOnMount:oe,placeholder:de,animate:Se});return{display:de.display,boxSizing:"border-box",width:Pe.width,height:Pe.height,marginTop:Pe.margin.top,marginRight:Pe.margin.right,marginBottom:Pe.margin.bottom,marginLeft:Pe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Se!=="none"?kl.placeholder:null}};function fd(ee){var ne=(0,b.useRef)(null),oe=wt(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),de=ee.animate,Se=ee.onTransitionEnd,Pe=ee.onClose,xe=ee.contextId,Ne=(0,b.useState)(ee.animate==="open"),rt=Ne[0],yt=Ne[1];(0,b.useEffect)(function(){return rt?de!=="open"?(oe(),yt(!1),ns):ne.current?ns:(ne.current=setTimeout(function(){ne.current=null,yt(!1)}),oe):ns},[de,rt,oe]);var St=wt(function(dt){dt.propertyName==="height"&&(Se(),de==="close"&&Pe())},[de,Pe,Se]),ut=md({isAnimatingOpenOnMount:rt,animate:ee.animate,placeholder:ee.placeholder});return b.createElement(ee.placeholder.tagName,{style:ut,"data-rbd-placeholder-context-id":xe,onTransitionEnd:St,ref:ee.innerRef})}var pd=b.memo(fd),as=b.createContext(null);function ys(ee){ee&&Ko(ee)||sn(!1)}function rs(ee){return typeof ee=="boolean"}function os(ee,ne){ne.forEach(function(oe){return oe(ee)})}var vd=[function(ne){var oe=ne.props;oe.droppableId||sn(!1),typeof oe.droppableId!="string"&&sn(!1)},function(ne){var oe=ne.props;rs(oe.isDropDisabled)||sn(!1),rs(oe.isCombineEnabled)||sn(!1),rs(oe.ignoreContainerClipping)||sn(!1)},function(ne){var oe=ne.getDroppableRef;ys(oe())}],hd=[function(ne){var oe=ne.props,de=ne.getPlaceholderRef;if(oe.placeholder)var Se=de()}],Sd=[function(ne){var oe=ne.props;oe.renderClone||sn(!1)},function(ne){var oe=ne.getPlaceholderRef;oe()&&sn(!1)}];function Pd(ee){Zl(function(){os(ee,vd),ee.props.mode==="standard"&&os(ee,hd),ee.props.mode==="virtual"&&os(ee,Sd)})}var Ed=function(ee){be(ne,ee);function ne(){for(var de,Se=arguments.length,Pe=new Array(Se),xe=0;xe<Se;xe++)Pe[xe]=arguments[xe];return de=ee.call.apply(ee,[this].concat(Pe))||this,de.state={isVisible:!!de.props.on,data:de.props.on,animate:de.props.shouldAnimate&&de.props.on?"open":"none"},de.onClose=function(){de.state.animate==="close"&&de.setState({isVisible:!1})},de}ne.getDerivedStateFromProps=function(Se,Pe){return Se.shouldAnimate?Se.on?{isVisible:!0,data:Se.on,animate:"open"}:Pe.isVisible?{isVisible:!0,data:Pe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Se.on,data:Se.on,animate:"none"}};var oe=ne.prototype;return oe.render=function(){if(!this.state.isVisible)return null;var Se={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Se)},ne}(b.PureComponent),bs={dragging:5e3,dropAnimating:4500},yd=function(ne,oe){return oe?kl.drop(oe.duration):ne?kl.snap:kl.fluid},bd=function(ne,oe){return ne?oe?Il.opacity.drop:Il.opacity.combining:null},Cd=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function xd(ee){var ne=ee.dimension,oe=ne.client,de=ee.offset,Se=ee.combineWith,Pe=ee.dropping,xe=!!Se,Ne=Cd(ee),rt=!!Pe,yt=rt?Kl.drop(de,xe):Kl.moveTo(de),St={position:"fixed",top:oe.marginBox.top,left:oe.marginBox.left,boxSizing:"border-box",width:oe.borderBox.width,height:oe.borderBox.height,transition:yd(Ne,Pe),transform:yt,opacity:bd(xe,rt),zIndex:rt?bs.dropAnimating:bs.dragging,pointerEvents:"none"};return St}function Bd(ee){return{transform:Kl.moveTo(ee.offset),transition:ee.shouldAnimateDisplacement?null:"none"}}function Fd(ee){return ee.type==="DRAGGING"?xd(ee):Bd(ee)}function Ad(ee,ne,oe){oe===void 0&&(oe=Mr);var de=window.getComputedStyle(ne),Se=ne.getBoundingClientRect(),Pe=yn(Se,de),xe=ta(Pe,oe),Ne={client:Pe,tagName:ne.tagName.toLowerCase(),display:de.display},rt={x:Pe.marginBox.width,y:Pe.marginBox.height},yt={descriptor:ee,placeholder:Ne,displaceBy:rt,client:Pe,page:xe};return yt}function wd(ee){var ne=bi("draggable"),oe=ee.descriptor,de=ee.registry,Se=ee.getDraggableRef,Pe=ee.canDragInteractiveElements,xe=ee.shouldRespectForcePress,Ne=ee.isEnabled,rt=Zt(function(){return{canDragInteractiveElements:Pe,shouldRespectForcePress:xe,isEnabled:Ne}},[Pe,Ne,xe]),yt=wt(function(Nt){var gn=Se();return gn||sn(!1),Ad(oe,gn,Nt)},[oe,Se]),St=Zt(function(){return{uniqueId:ne,descriptor:oe,options:rt,getDimension:yt}},[oe,yt,rt,ne]),ut=(0,b.useRef)(St),dt=(0,b.useRef)(!0);Pi(function(){return de.draggable.register(ut.current),function(){return de.draggable.unregister(ut.current)}},[de.draggable]),Pi(function(){if(dt.current){dt.current=!1;return}var Nt=ut.current;ut.current=St,de.draggable.update(St,Nt)},[St,de.draggable])}function Dd(ee,ne,oe){Zl(function(){function de(Pe){return"Draggable[id: "+Pe+"]: "}var Se=ee.draggableId;Se||sn(!1),typeof Se!="string"&&sn(!1),eo(ee.index)||sn(!1),ee.mapped.type!=="DRAGGING"&&(ys(oe()),ee.isEnabled&&(ko(ne,Se)||sn(!1)))})}function Id(ee){}function Nd(ee){ee.preventDefault()}function Od(ee){var ne=(0,b.useRef)(null),oe=wt(function(ho){ne.current=ho},[]),de=wt(function(){return ne.current},[]),Se=Zu(Ql),Pe=Se.contextId,xe=Se.dragHandleUsageInstructionsId,Ne=Se.registry,rt=Zu(as),yt=rt.type,St=rt.droppableId,ut=Zt(function(){return{id:ee.draggableId,index:ee.index,type:yt,droppableId:St}},[ee.draggableId,ee.index,yt,St]),dt=ee.children,Nt=ee.draggableId,gn=ee.isEnabled,ua=ee.shouldRespectForcePress,ma=ee.canDragInteractiveElements,Sa=ee.isClone,_a=ee.mapped,Va=ee.dropAnimationFinished;if(Dd(ee,Pe,de),Id(Sa),!Sa){var ar=Zt(function(){return{descriptor:ut,registry:Ne,getDraggableRef:de,canDragInteractiveElements:ma,shouldRespectForcePress:ua,isEnabled:gn}},[ut,Ne,de,ma,ua,gn]);wd(ar)}var jr=Zt(function(){return gn?{tabIndex:0,role:"button","aria-describedby":xe,"data-rbd-drag-handle-draggable-id":Nt,"data-rbd-drag-handle-context-id":Pe,draggable:!1,onDragStart:Nd}:null},[Pe,xe,Nt,gn]),Or=wt(function(ho){_a.type==="DRAGGING"&&_a.dropping&&ho.propertyName==="transform"&&Va()},[Va,_a]),io=Zt(function(){var ho=Fd(_a),li=_a.type==="DRAGGING"&&_a.dropping?Or:null,wi={innerRef:oe,draggableProps:{"data-rbd-draggable-context-id":Pe,"data-rbd-draggable-id":Nt,style:ho,onTransitionEnd:li},dragHandleProps:jr};return wi},[Pe,jr,Nt,_a,Or,oe]),ii=Zt(function(){return{draggableId:ut.id,type:ut.type,source:{index:ut.index,droppableId:ut.droppableId}}},[ut.droppableId,ut.id,ut.index,ut.type]);return dt(io,_a.snapshot,ii)}var Cs=function(ee,ne){return ee===ne},xs=function(ee){var ne=ee.combine,oe=ee.destination;return oe?oe.droppableId:ne?ne.droppableId:null},Ld=function(ne){return ne.combine?ne.combine.draggableId:null},Rd=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function _d(){var ee=tn(function(Se,Pe){return{x:Se,y:Pe}}),ne=tn(function(Se,Pe,xe,Ne,rt){return{isDragging:!0,isClone:Pe,isDropAnimating:!!rt,dropAnimation:rt,mode:Se,draggingOver:xe,combineWith:Ne,combineTargetFor:null}}),oe=tn(function(Se,Pe,xe,Ne,rt,yt,St){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:rt,combineWith:yt,mode:Pe,offset:Se,dimension:xe,forceShouldAnimate:St,snapshot:ne(Pe,Ne,rt,yt,null)}}}),de=function(Pe,xe){if(Pe.isDragging){if(Pe.critical.draggable.id!==xe.draggableId)return null;var Ne=Pe.current.client.offset,rt=Pe.dimensions.draggables[xe.draggableId],yt=Qa(Pe.impact),St=Rd(Pe.impact),ut=Pe.forceShouldAnimate;return oe(ee(Ne.x,Ne.y),Pe.movementMode,rt,xe.isClone,yt,St,ut)}if(Pe.phase==="DROP_ANIMATING"){var dt=Pe.completed;if(dt.result.draggableId!==xe.draggableId)return null;var Nt=xe.isClone,gn=Pe.dimensions.draggables[xe.draggableId],ua=dt.result,ma=ua.mode,Sa=xs(ua),_a=Ld(ua),Va=Pe.dropDuration,ar={duration:Va,curve:Dl.drop,moveTo:Pe.newHomeClientOffset,opacity:_a?Il.opacity.drop:null,scale:_a?Il.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Pe.newHomeClientOffset,dimension:gn,dropping:ar,draggingOver:Sa,combineWith:_a,mode:ma,forceShouldAnimate:null,snapshot:ne(ma,Nt,Sa,_a,ar)}}}return null};return de}function Bs(ee){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ee,combineWith:null}}var Md={mapped:{type:"SECONDARY",offset:Mr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bs(null)}};function Td(){var ee=tn(function(xe,Ne){return{x:xe,y:Ne}}),ne=tn(Bs),oe=tn(function(xe,Ne,rt){return Ne===void 0&&(Ne=null),{mapped:{type:"SECONDARY",offset:xe,combineTargetFor:Ne,shouldAnimateDisplacement:rt,snapshot:ne(Ne)}}}),de=function(Ne){return Ne?oe(Mr,Ne,!0):null},Se=function(Ne,rt,yt,St){var ut=yt.displaced.visible[Ne],dt=!!(St.inVirtualList&&St.effected[Ne]),Nt=xi(yt),gn=Nt&&Nt.draggableId===Ne?rt:null;if(!ut){if(!dt)return de(gn);if(yt.displaced.invisible[Ne])return null;var ua=$n(St.displacedBy.point),ma=ee(ua.x,ua.y);return oe(ma,gn,!0)}if(dt)return de(gn);var Sa=yt.displacedBy.point,_a=ee(Sa.x,Sa.y);return oe(_a,gn,ut.shouldAnimate)},Pe=function(Ne,rt){if(Ne.isDragging)return Ne.critical.draggable.id===rt.draggableId?null:Se(rt.draggableId,Ne.critical.draggable.id,Ne.impact,Ne.afterCritical);if(Ne.phase==="DROP_ANIMATING"){var yt=Ne.completed;return yt.result.draggableId===rt.draggableId?null:Se(rt.draggableId,yt.result.draggableId,yt.impact,yt.afterCritical)}return null};return Pe}var kd=function(){var ne=_d(),oe=Td(),de=function(Pe,xe){return ne(Pe,xe)||oe(Pe,xe)||Md};return de},Zd={dropAnimationFinished:wl},zd=we(kd,Zd,null,{context:Qi,pure:!0,areStatePropsEqual:Cs})(Od);function Fs(ee){var ne=Zu(as),oe=ne.isUsingCloneFor;return oe===ee.draggableId&&!ee.isClone?null:b.createElement(zd,ee)}function jd(ee){var ne=typeof ee.isDragDisabled=="boolean"?!ee.isDragDisabled:!0,oe=!!ee.disableInteractiveElementBlocking,de=!!ee.shouldRespectForcePress;return b.createElement(Fs,(0,Ae.Z)({},ee,{isClone:!1,isEnabled:ne,canDragInteractiveElements:oe,shouldRespectForcePress:de}))}function Gd(ee){var ne=(0,b.useContext)(Ql);ne||sn(!1);var oe=ne.contextId,de=ne.isMovementAllowed,Se=(0,b.useRef)(null),Pe=(0,b.useRef)(null),xe=ee.children,Ne=ee.droppableId,rt=ee.type,yt=ee.mode,St=ee.direction,ut=ee.ignoreContainerClipping,dt=ee.isDropDisabled,Nt=ee.isCombineEnabled,gn=ee.snapshot,ua=ee.useClone,ma=ee.updateViewportMaxScroll,Sa=ee.getContainerForClone,_a=wt(function(){return Se.current},[]),Va=wt(function(Oi){Se.current=Oi},[]),ar=wt(function(){return Pe.current},[]),jr=wt(function(Oi){Pe.current=Oi},[]);Pd({props:ee,getDroppableRef:_a,getPlaceholderRef:ar});var Or=wt(function(){de()&&ma({maxScroll:Na()})},[de,ma]);cd({droppableId:Ne,type:rt,mode:yt,direction:St,isDropDisabled:dt,isCombineEnabled:Nt,ignoreContainerClipping:ut,getDroppableRef:_a});var io=b.createElement(Ed,{on:ee.placeholder,shouldAnimate:ee.shouldAnimatePlaceholder},function(Oi){var yl=Oi.onClose,fl=Oi.data,rl=Oi.animate;return b.createElement(pd,{placeholder:fl,onClose:yl,innerRef:jr,animate:rl,contextId:oe,onTransitionEnd:Or})}),ii=Zt(function(){return{innerRef:Va,placeholder:io,droppableProps:{"data-rbd-droppable-id":Ne,"data-rbd-droppable-context-id":oe}}},[oe,Ne,io,Va]),ho=ua?ua.dragging.draggableId:null,li=Zt(function(){return{droppableId:Ne,type:rt,isUsingCloneFor:ho}},[Ne,ho,rt]);function wi(){if(!ua)return null;var Oi=ua.dragging,yl=ua.render,fl=b.createElement(Fs,{draggableId:Oi.draggableId,index:Oi.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(rl,bl){return yl(rl,bl,Oi)});return nn.createPortal(fl,Sa())}return b.createElement(as.Provider,{value:li},xe(ii,gn),wi())}var is=function(ne,oe){return ne===oe.droppable.type},As=function(ne,oe){return oe.draggables[ne.draggable.id]},Hd=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},oe=(0,Ae.Z)({},ne,{shouldAnimatePlaceholder:!1}),de=tn(function(xe){return{draggableId:xe.id,type:xe.type,source:{index:xe.index,droppableId:xe.droppableId}}}),Se=tn(function(xe,Ne,rt,yt,St,ut){var dt=St.descriptor.id,Nt=St.descriptor.droppableId===xe;if(Nt){var gn=ut?{render:ut,dragging:de(St.descriptor)}:null,ua={isDraggingOver:rt,draggingOverWith:rt?dt:null,draggingFromThisWith:dt,isUsingPlaceholder:!0};return{placeholder:St.placeholder,shouldAnimatePlaceholder:!1,snapshot:ua,useClone:gn}}if(!Ne)return oe;if(!yt)return ne;var ma={isDraggingOver:rt,draggingOverWith:dt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:St.placeholder,shouldAnimatePlaceholder:!0,snapshot:ma,useClone:null}}),Pe=function(Ne,rt){var yt=rt.droppableId,St=rt.type,ut=!rt.isDropDisabled,dt=rt.renderClone;if(Ne.isDragging){var Nt=Ne.critical;if(!is(St,Nt))return oe;var gn=As(Nt,Ne.dimensions),ua=Qa(Ne.impact)===yt;return Se(yt,ut,ua,ua,gn,dt)}if(Ne.phase==="DROP_ANIMATING"){var ma=Ne.completed;if(!is(St,ma.critical))return oe;var Sa=As(ma.critical,Ne.dimensions);return Se(yt,ut,xs(ma.result)===yt,Qa(ma.impact)===yt,Sa,dt)}if(Ne.phase==="IDLE"&&Ne.completed&&!Ne.shouldFlush){var _a=Ne.completed;if(!is(St,_a.critical))return oe;var Va=Qa(_a.impact)===yt,ar=!!(_a.impact.at&&_a.impact.at.type==="COMBINE"),jr=_a.critical.droppable.id===yt;return Va?ar?ne:oe:jr?ne:oe}return oe};return Pe},Wd={updateViewportMaxScroll:er};function Kd(){return document.body||sn(!1),document.body}var Ud={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Kd},ws=we(Hd,Wd,null,{context:Qi,pure:!0,areStatePropsEqual:Cs})(Gd);ws.defaultProps=Ud},38486:function(_t,Ot){"use strict";var ae;var b=60103,se=60106,be=60107,Ae=60108,Ie=60114,Oe=60109,ue=60110,ke=60112,We=60113,Te=60120,He=60115,Ze=60116,De=60121,le=60122,E=60117,a=60129,x=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;b=y("react.element"),se=y("react.portal"),be=y("react.fragment"),Ae=y("react.strict_mode"),Ie=y("react.profiler"),Oe=y("react.provider"),ue=y("react.context"),ke=y("react.forward_ref"),We=y("react.suspense"),Te=y("react.suspense_list"),He=y("react.memo"),Ze=y("react.lazy"),De=y("react.block"),le=y("react.server.block"),E=y("react.fundamental"),a=y("react.debug_trace_mode"),x=y("react.legacy_hidden")}function z(qe){if(typeof qe=="object"&&qe!==null){var je=qe.$$typeof;switch(je){case b:switch(qe=qe.type,qe){case be:case Ie:case Ae:case We:case Te:return qe;default:switch(qe=qe&&qe.$$typeof,qe){case ue:case ke:case Ze:case He:case Oe:return qe;default:return je}}case se:return je}}}var te=Oe,re=b,ie=ke,ce=be,pe=Ze,ge=He,Ee=se,ye=Ie,Re=Ae,he=We;ae=ue,ae=te,ae=re,ae=ie,ae=ce,ae=pe,ae=ge,ae=Ee,ae=ye,ae=Re,ae=he,ae=function(){return!1},ae=function(){return!1},Ot.isContextConsumer=function(qe){return z(qe)===ue},ae=function(qe){return z(qe)===Oe},ae=function(qe){return typeof qe=="object"&&qe!==null&&qe.$$typeof===b},ae=function(qe){return z(qe)===ke},ae=function(qe){return z(qe)===be},ae=function(qe){return z(qe)===Ze},ae=function(qe){return z(qe)===He},ae=function(qe){return z(qe)===se},ae=function(qe){return z(qe)===Ie},ae=function(qe){return z(qe)===Ae},ae=function(qe){return z(qe)===We},ae=function(qe){return typeof qe=="string"||typeof qe=="function"||qe===be||qe===Ie||qe===a||qe===Ae||qe===We||qe===Te||qe===x||typeof qe=="object"&&qe!==null&&(qe.$$typeof===Ze||qe.$$typeof===He||qe.$$typeof===Oe||qe.$$typeof===ue||qe.$$typeof===ke||qe.$$typeof===E||qe.$$typeof===De||qe[0]===le)},ae=z},53410:function(_t,Ot,ae){"use strict";_t.exports=ae(38486)},32637:function(_t,Ot,ae){"use strict";_t.exports=ae.p+"static/AssistantCode3.a8740efb.jpeg"},73631:function(_t){"use strict";_t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},31328:function(_t){"use strict";_t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAodJREFUOBGtU0trFEEQ/qZnM5NsWBCfSEjwQdSggmAieAv4uOnFg5eIXgTvEY+ePJqToDf9AcZDFAUF8SgEQUxAjC6+QlhX4xo0G93ZnRnr697umSyKBCyY/aqqq76q6uoF/rN4lu/BmzSsLGFM7P4kAZQCiBTR64nCw/MHvRnj+fuvI7zxtDWJJD1lQulO5TPHnkAqpuAUFKZUqg8da8xI35+/cMh77AjHJ5c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