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

1267 lines
1.3 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[337],{89489:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},59477:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},40001:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},49198:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},87169:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},73331:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},15277:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},52671:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},8657:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},56082:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},33853:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},12893:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},15075:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},32134:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},43531:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},61485:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},47472:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},87395:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(60499),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Re=ce,ve=z(7657),me=function(le,je){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:je,icon:Re}))},pe=he.forwardRef(me),Ne=pe},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(En,Vt){"use strict";Vt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(En,Vt){"use strict";Vt.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",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},45050:function(En,Vt,z){"use strict";var y=z(59301),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(be,le,je)=>le in be?he(be,le,{enumerable:!0,configurable:!0,writable:!0,value:je}):be[le]=je,pe=(be,le)=>{for(var je in le||(le={}))Re.call(le,je)&&me(be,je,le[je]);if(ce)for(var je of ce(le))ve.call(le,je)&&me(be,je,le[je]);return be};const Ne=be=>React.createElement("svg",pe({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},be),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"})));Vt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},84915: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 En={},Vt="5.0",z={},y=null,he=!1,ce=!1,Re=null,ve=!1,me=null,pe=null,Ne=0;Ne<arguments.length;Ne++){var be=arguments[Ne];if(be!==null)switch(typeof be){case"number":Vt=be.toFixed(1);break;case"string":be.match(new RegExp("^[0-9]\\.[0-9]+$"))?Vt=be:Re=be;break;case"object":typeof be.is3D!="undefined"?y=be:z=be;break;case"boolean":he=be,ce=!0;break}}y===null&&(y={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},z.material_id!==void 0&&!ce&&(he=!0)),Re!==null&&z.id===void 0&&(z.id=Re);var le="",je="",Ae=!1,it=null,ze=null,Oe=null,Ee=!1,Pe=null,Fe=null,Ve=null,dt=null,Se=null;z.height!==void 0&&(z.height=Math.round(z.height)),z.width!==void 0&&(z.width=Math.round(z.width));var Ie=function(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};En.setHTML5Codebase=function(Ce,at){pe=Ce,Et(Ce,at)},En.setJavaCodebase=En.setJavaCodebaseVersion=En.isCompiledInstalled=En.setPreCompiledScriptPath=En.setPreCompiledResourcePath=function(){},En.setHTML5CodebaseVersion=function(Ce,at){var qe=parseFloat(Ce);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}me=Ce,ye(Ce,at)},En.getHTML5CodebaseVersion=function(){return ze},En.getParameters=function(){return z},En.setFontsCSSURL=function(Ce){dt=Ce},En.setGiacJSURL=function(Ce){},En.setJNLPFile=function(Ce){le=Ce},En.setJNLPBaseDir=function(Ce){},En.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var at="auto",qe=z.id,zt,ut=!1,ct=0;ct<arguments.length;ct++){var lt=arguments[ct];typeof lt=="string"?(lt=lt.toLowerCase(),lt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?at=lt:qe=arguments[ct]):typeof lt=="boolean"?ut=lt:lt instanceof HTMLElement&&(zt=lt)}nn();function nn(){if(!ve){setTimeout(nn,200);return}at=Nt(at);var kt=zt||document.getElementById(qe);if(!kt){console.log("possibly bug on ajax loading? ");return}if(En.removeExistingApplet(kt,!1),z.width===void 0&&kt.clientWidth&&(z.width=kt.clientWidth),z.height===void 0&&kt.clientHeight&&(z.height=kt.clientHeight),!(z.width&&z.height)&&at==="html5"&&(delete z.width,delete z.height),it=at,at==="screenshot")we(kt,z);else{var ae=!1;z.hasOwnProperty("playButton")&&z.playButton||z.hasOwnProperty("clickToLoad")&&z.clickToLoad?ae=!0:z.hasOwnProperty("playButtonAutoDecide")&&z.playButtonAutoDecide&&(ae=(!Xe()||Ce())&&He()),ae?(it="screenshot",ft(kt,z,ut,at)):Qe(kt,z,ut)}}};function Xe(){try{return window.self!==window.top}catch(Ce){return!0}}function He(){return z.hasOwnProperty("screenshotGenerator")&&z.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}En.getViews=function(){return y},En.isJavaInstalled=function(){return!1};var rt=function(Ce){var at=function(ct){var lt=JSON.parse(ct),nn=function(ne){return ne.type=="G"||ne.type=="E"},kt=lt.elements?lt.elements.filter(nn)[0]:lt;if(!kt||!kt.url){qe();return}z.fileName=kt.url,st(kt.settings||{}),y.is3D=!0;var ae="https://www.geogebra.org/images/";En.setPreviewImage(Pe||kt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Ce()},qe=function(){z.onError&&z.onError(),Zt("Error: Fetching material (id "+z.material_id+") failed.",z)},zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ut="/materials/"+z.material_id+"?scope=basic";Je("https://"+zt+"/api/proxy.php?path="+encodeURIComponent(ut),at,qe)};function st(Ce){var at=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){Ce[qe]=!!Ce[qe]}),at.forEach(function(qe){z[qe]===void 0&&Ce[qe]!==void 0&&(z[qe]=Ce[qe])}),z.showToolBarHelp===void 0&&(z.showToolBarHelp=z.showToolBar)}function Je(Ce,at,qe){var zt=new XMLHttpRequest;zt.open("GET",Ce),zt.onload=function(){at(zt.responseText)},zt.onerror=qe,zt.send()}En.isHTML5Installed=function(){return!0},En.getLoadedAppletType=function(){return it},En.setPreviewImage=function(Ce,at,qe){Pe=Ce,Fe=at,Ve=qe},En.removeExistingApplet=function(Ce,at){var qe;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),it=null;var zt=null;for(qe=0;qe<Ce.childNodes.length;qe++){var ut=Ce.childNodes[qe],ct=ut.className;ct==="applet_screenshot"?at?(ut.style.display="block",it="screenshot"):ut.style.display="none":ct!=="applet_scaler prerender"&&(Ce.removeChild(ut),zt=ct&&ct.indexOf("appletParameters")!=-1?ut.id:null,qe--)}var lt=z.id!==void 0?z.id:zt,nn=window[lt];nn&&typeof nn.getBase64=="function"&&(nn.remove(),window[lt]=null)},En.refreshHitPoints=function(){if(Ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=En.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},En.startAnimation=function(){var Ce=En.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},En.stopAnimation=function(){var Ce=En.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},En.getAppletObject=function(){var Ce=z.id!==void 0?z.id:"ggbApplet";return window[Ce]},En.resize=function(){};var et=function(Ce,at,qe){var zt=document.createElement("param");zt.setAttribute("name",at),zt.setAttribute("value",qe),Ce.appendChild(zt)},ge=function(Ce){return Ce&&Ce!=="false"},Qe=function(Ce,at,qe){Ie(ze)<=4.2&&(qe=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ze||ggbHTML5LoadedCodebaseIsWebSimple&&!Ee)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ut=document.createElement("div");ut.classList.add("appletParameters","notranslate");var ct=at.width,lt=at.height;if(at.disableAutoScale=at.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():at.disableAutoScale,at.width!==void 0)if(Ie(ze)<=4.4)ge(at.showToolBar)&&(at.height-=7),ge(at.showAlgebraInput)&&(at.height-=37),at.width<605&&ge(at.showToolBar)&&(at.width=605,ct=605);else{var nn=100;(ge(at.showToolBar)||ge(at.showMenuBar))&&(at.hasOwnProperty("customToolBar")&&(at.customToolbar=at.customToolBar),nn=ge(at.showMenuBar)?245:155),ct<nn&&(at.width=nn,ct=nn)}ut.style.border="none",ut.style.display="inline-block";for(var kt in at)at.hasOwnProperty(kt)&&kt!=="appletOnLoad"&&ut.setAttribute("data-param-"+kt,at[kt]);dt&&ut.setAttribute("data-param-fontscssurl",dt),En.resize=function(){GGBAppletUtils.responsiveResize(Ce,at)},window.addEventListener("resize",function(ht){En.resize()});var ae=typeof at.appletOnLoad=="function"?at.appletOnLoad:function(){};if(!qe&&at.width!==void 0){at.hasOwnProperty("showSplash")||ut.setAttribute("data-param-showSplash","false");var ne=Ce.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var ie=ne.querySelector(".ggb_preview");else{var ie=tt(ct,lt,at.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=ct+"px",ne.style.height=lt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Ie(ze)>=5?(at.appletOnLoad=function(ht){var wt=Ce.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(ht)},te||ne.appendChild(ie)):ut.appendChild(ie),ne.appendChild(ut),te||Ce.appendChild(ne),setTimeout(function(){En.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(ut),Ce.appendChild(fe),at.appletOnLoad=function(ht){En.resize(),ae(ht)}}function re(ht,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,wt.appletOnLoad):renderGGBElement(ht),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function ue(ht,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ze){re(Ze.article,Ze.params)}),html5AppletsToProcess=null)},Ie(ze)<5&&(ht.className+=" geogebraweb")):re(ht,wt)}if(zt){scriptLoadStarted=!0;for(var Me=0;Me<ut.childNodes.length;Me++){var gt=ut.childNodes[Me].tagName;gt==="TABLE"&&(ut.removeChild(ut.childNodes[Me]),Me--)}if(ggbHTML5LoadedScript!==null){var _e=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');_e!=null&&_e.parentNode.removeChild(_e)}var ke=document.createElement("script"),ot=function(){ue(ut,at)};ke.src=je+Oe,ggbHTML5LoadedCodebaseIsWebSimple=Ee,ggbHTML5LoadedCodebaseVersion=ze,ggbHTML5LoadedScript=ke.src,Zt("GeoGebra HTML5 codebase loaded: '"+je+"'.",at),!pe&&(!me||me=="5.0")?(Ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ot()):je.requirejs?__webpack_require__.e(4510).then(function(){var ht=[__webpack_require__(4510)];ot.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(ke.onload=ot,Ce.appendChild(ke))}else ue(ut,at);at.height=lt,at.width=ct},we=function(Ce,at,qe){var zt=tt(at.width,at.height,at.borderColor,qe),ut=document.createElement("div");ut.style.position="relative",ut.style.display="block",ut.style.width=at.width+"px",ut.style.height=at.height+"px",ut.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),ut.appendChild(zt);var ct=GGBAppletUtils.getScale(at,Ce,qe);qe?(Ce.appendChild($e()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ut,"66%"),Ce.appendChild(ut),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(ut,ct),ut.style.width=at.width+"px",ut.style.height=at.height+"px",ut.parentNode.style.width=at.width*ct+"px",ut.parentNode.style.height=at.height*ct+"px"),En.resize=function(){se(Ce,zt,ut,qe)},window.addEventListener("resize",function(lt){En.resize()}),En.resize()};function se(Ce,at,qe,zt){if(Ce.contains(at)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var ut=GGBAppletUtils.getScale(z,Ce,zt);qe.parentNode!==null&&(!isNaN(ut)&&ut!==1?(GGBAppletUtils.scaleElement(qe,ut),qe.parentNode.style.width=z.width*ut+"px",qe.parentNode.style.height=z.height*ut+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=z.width+"px",qe.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}En.onExitFullscreen=function(Ce,at){at.appendChild(Ce)};var ft=function(Ce,at,qe,zt){we(Ce,at,!0);for(var ut=function(){var nn=[];for(lt=0;lt<Ce.childNodes.length;lt++)nn.push(Ce.childNodes[lt]);if(window.GGBT_wsf_view){var kt=window.GGBT_wsf_view.renderFullScreen(Ce,at.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(Ce).find(".fullscreencontent");ne.length>0?(kt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):Qe(kt,at,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else it=zt,Qe(Ce,at,!1);if(!window.GGBT_wsf_view)for(lt=0;lt<nn.length;lt++)Ce.removeChild(nn[lt])},ct=Ce.getElementsByClassName("ggb_preview_play"),lt=0;lt<ct.length;lt++)ct[lt].addEventListener("click",ut,!1),ct[lt].addEventListener("ontouchstart",ut,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),He()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},$e=function(){var Ce=document.createElement("div");if(Ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var at='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=at:qe.appendChild(document.createTextNode(at)),document.getElementsByTagName("head")[0].appendChild(qe)}return Ce},tt=function(Ce,at,qe,zt){var ut=document.createElement("div");ut.className="ggb_preview",ut.style.position="absolute",ut.style.zIndex="90",ut.style.width=Ce-2+"px",ut.style.height=at-2+"px",ut.style.top="0px",ut.style.left="0px",ut.style.overflow="hidden",ut.style.backgroundColor="white";var ct="lightgrey";qe!==void 0&&(qe==="none"?ct="transparent":ct=qe),ut.style.border="1px solid "+ct;var lt=document.createElement("img");if(lt.style.position="relative",lt.style.zIndex="1000",lt.style.top="-1px",lt.style.left="-1px",Pe!==null&&lt.setAttribute("src",Pe),lt.style.opacity=.7,Fe!==null){var nn,kt,ae;if(!zt){nn=document.createElement("img"),nn.style.position="absolute",nn.style.zIndex="1001",nn.style.opacity=1,lt.style.opacity=.3,kt=360,kt>Ce/4*3&&(kt=Ce/4*3),ae=kt/5.8,nn.setAttribute("src",Fe),nn.setAttribute("width",kt),nn.setAttribute("height",ae);var ne=(Ce-kt)/2,te=(at-ae)/2;nn.style.left=ne+"px",nn.style.top=te+"px",ut.appendChild(nn)}}return ut.appendChild(lt),ut},Nt=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},Le=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(Ce,at){if(ze=Ce,at){Et(ze,!0);return}var qe=!he;if(qe){var zt=Ie(ze);!isNaN(zt)&&zt<4.4&&(qe=!1)}var ut,ct;window.location.protocol.substr(0,4)==="http"?ut=window.location.protocol:ut="http:";var lt=ze.indexOf("//");lt>0?ct=ze:lt===0?ct=ut+ze:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var nn in Le)if(ze.slice(Le[nn].length*-1)===Le[nn]||ze.slice((Le[nn].length+1)*-1)===Le[nn]+"/"){Et(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!ge(z.showToolBar)&&!ge(z.showMenuBar)&&!ge(z.showAlgebraInput)&&!ge(z.enableRightClick)&&(!z.appName||z.appName=="classic")?ct+="webSimple/":ct+="web3d/",Et(ct,!1)},Et=function(Ce,at){if(Ce.requirejs){je=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),je=Ce,at===null&&(at=Ce.indexOf("http")===-1),Ae=at,Oe="web.nocache.js",Ee=!1;var qe=je.split("/");qe.length>1&&(!at&&qe[qe.length-2]==="webSimple"?(Oe="webSimple.nocache.js",Ee=!0):Le.indexOf(qe[qe.length-2])>=0&&(Oe=qe[qe.length-2]+".nocache.js")),qe=Ce.split("/"),ze=qe[qe.length-3],ze.substr(0,4)==="test"?ze=ze.substr(4,1)+"."+ze.substr(5,1):(ze.substr(0,3)==="war"||ze.substr(0,4)==="beta")&&(ze="5.0");var zt=parseFloat(ze);zt!==NaN&&zt<5&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zt+" is deprecated. Using version latest instead."),ye("5.0",at))},Zt=function(Ce,at){window.console&&window.console.log&&(!at||typeof at.showLogging=="undefined"||at.showLogging&&at.showLogging!=="false")&&console.log(Ce)};z.material_id!==void 0?rt(pt):pt();function pt(){var Ce=Vt;me!==null?Ce=me:parseFloat(Ce)<5&&(Ce="5.0"),ye(Ce,!1),pe!==null&&Et(pe,Ae),ve=!0}return En},GGBAppletUtils=function(){"use strict";function En(){return window.GGBT_wsf_edit!==void 0}function Vt(ve,me){me!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+me+","+me+")",ve.style.webkitTransform="scale("+me+","+me+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function z(ve,me,pe,Ne,be,le){var je=null;if(le!=null&&le!="")for(var Ae=ve.parentNode;Ae!=null;)if((" "+Ae.className+" ").indexOf(" "+le+" ")>-1){je=Ae;break}else Ae=Ae.parentNode;var it=0,ze=0,Oe=0,Ee=0,Pe=0,Fe=0,Ve=0;if(je)it=je.offsetWidth,ze=Math.max(Ne?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(it=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=it):(it=window.innerWidth,ze=window.innerHeight,Oe=window.innerWidth),ve){var dt=ve.getBoundingClientRect();dt.left>0&&dt.left<=it&&(be===void 0||!be)&&(document.dir==="rtl"?(Pe=it-dt.width-dt.left,Fe=Oe<=480?10:30):(Fe=dt.left,Pe=Oe<=480?10:30),Ee=Fe+Pe)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Se=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee=40,Ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee=0,Ve=40)}}return ve&&((pe===void 0||!pe)&&me>0&&me+Ee<it?it=me:it-=Ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe===void 0||!pe)&&(ze-=Ve)),{width:it,height:ze}}function y(ve,me,pe,Ne,be){if(ve.isScreenshoGenerator)return 1;var le=Ne!==void 0&&Ne,je=ve.noScaleMargin!=null&&ve.noScaleMargin,Ae=function(Se){return Se&&Se!=="false"},it=Ae(ve.autoHeight),ze=z(me,ve.width,pe,it,le&&window.GGBT_wsf_view||je,be),Oe=parseInt(ze.width),Ee=ve.width,Pe=ve.height;if(Ee===void 0){var Fe=me.querySelector(".appletParameters");Fe&&(Ee=Fe.offsetWidth,Pe=Fe.offsetHeight)}var Ve=Oe/Ee,dt=le?1:ze.height/Pe;return pe!==void 0&&!pe&&(Ve=Math.min(1,Ve),dt=Math.min(1,dt)),Math.min(Ve,dt)}function he(ve,me,pe){var Ne=1,be,le=!1;if(ve.hasOwnProperty("allowUpscale")&&(le=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Ne=parseFloat(ve.scale),(isNaN(Ne)||Ne===null||Ne===0)&&(Ne=1),Ne>1&&(le=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))be=y(ve,me,le,pe,ve.scaleContainerClass);else return Ne;return le&&(!ve.hasOwnProperty("scale")||Ne===1)?be:Math.min(Ne,be)}function ce(ve){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),pe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=ve.getBoundingClientRect(),be=(me-Ne.width)/2,le=(pe-Ne.height)/2;le<0&&(le=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(be<40?ve.style.left="40px":ve.style.left=be+"px",ve.style.top=le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le<40?ve.style.top="40px":ve.style.top=le+"px",ve.style.left=be+"px")}function Re(ve,me){var pe=ve.querySelector(".appletParameters");if(pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(pe.parentElement&&/fullscreen/.test(pe.parentElement.className))return;var Ne=he(me,ve);En()&&pe.setAttribute("data-param-scale",Ne);for(var be=null,le=0;le<ve.childNodes.length;le++)if(ve.childNodes[le].className!==void 0&&ve.childNodes[le].className.match(/^applet_scaler/)){be=ve.childNodes[le];break}if(be!==null&&be.querySelector(".noscale")!==null)return;var je=me.id!==void 0?me.id:"ggbApplet",Ae=window[je];(Ae==null||!Ae.recalculateEnvironments)&&be!==null&&!be.className.match(/fullscreen/)&&(be.parentNode.style.transform="",!isNaN(Ne)&&Ne!==1?(be.parentNode.style.width=me.width*Ne+"px",be.parentNode.style.height=me.height*Ne+"px",Vt(be,Ne)):(Vt(be,1),be.parentNode.style.width=me.width+"px",be.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ce(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(pe).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:En,positionCenter:ce,getScale:he,scaleElement:Vt}}();__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 En=n.location.search;return En.indexOf(J)!=-1||En.indexOf(K)!=-1}function q(En,Vt){}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(En){var Vt=s[L].bindings;s[L].bindings=function(){for(var z=Vt?Vt():{},y=En[webModule.__softPermutationId],he=O;he<y.length;he++){var ce=y[he];z[ce[O]]=ce[P]}return z}};var t;function u(){return v(),t}function v(){if(!t){var En=o.createElement(Q);if(En.id=L,En.style.cssText=R+S,En.tabIndex=-1,o.body.appendChild(En),t=En.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Vt=document.compatMode==U?V:W;t.write(Vt+X),t.close()}}}function w(En){function Vt(y){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ce=he();if(ce){y();return}function Re(){if(!ce){if(!he())return;ce=!0,y(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var ve=setInterval(function(){Re()},$)}function z(y){var he=u(),ce=he.body,Re=he.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=y,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),ce.appendChild(Re)}Vt(function(){z(En)})}webModule.__startLoadingFragment=function(En){return C(En)},webModule.__installRunAsyncCode=function(En){var Vt=u(),z=Vt.body,y=Vt.createElement(_);y.language=ab,y.text=En,z.appendChild(y),z.removeChild(y)};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(En){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(En){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(En){var Vt=c[En];return Vt==null?null:Vt},r=d,webModule.__errFn=e}function B(){function En(ve){var me=ve.lastIndexOf(rb);me==-1&&(me=ve.length);var pe=ve.indexOf(sb);pe==-1&&(pe=ve.length);var Ne=ve.lastIndexOf(tb,Math.min(pe,me));return Ne>=O?ve.substring(O,Ne+P):W}function Vt(ve){if(!ve.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=ve+vb,ve=En(me.src)}return ve}function z(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function y(){for(var ve=o.getElementsByTagName(_),me=O;me<ve.length;++me)if(ve[me].src.indexOf(xb)!=-1)return En(ve[me].src);return W}function he(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function ce(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var Re=z();return Re==W&&(Re=y()),Re==W&&(Re=he()),Re==W&&ce()&&(Re=En(o.location.href)),Re=Vt(Re),Re}function C(En){return En.match(/^\//)||En.match(/^[a-zA-Z]+:\/\//)?En:webModule.__moduleBase+En}function D(){var En=[],Vt=O,z=[],y=[];function he(ve){var me=y[ve](),pe=z[ve];if(me in pe)return me;var Ne=[];for(var be in pe)Ne[pe[be]]=be;throw r&&r(ve,Ne,me),null}if(__gwt_isKnownPropertyValue=function(ve,me){return me in z[ve]},webModule.__getPropMap=function(){var ve={};for(var me in z)z.hasOwnProperty(me)&&(ve[me]=he(me));return ve},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ce;try{ce=Cb;var Re=ce.indexOf(Db);Re!=-1&&(Vt=parseInt(ce.substring(Re+P),$),ce=ce.substring(O,Re))}catch(ve){}return webModule.__softPermutationId=Vt,C(ce+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(En,Vt,z){"use strict";z.d(Vt,{Ax:function(){return Re},Ds:function(){return ve},KI:function(){return pe},SI:function(){return ce},f1:function(){return he}});var y=z(14185);function he(Ne){let be=!0;if(Ne.length>0){for(let le=0;le<Ne.length;le++)if(Ne[le].compile_success==0||!Ne[le].compile_success){be=!1;break}}else be=!1;return be}function ce(Ne,be=""){let le=[];for(let je=0;je<Ne.length;je++){let Ae=Ne[je],it=be?`${be}/${Ae.name}`:`${Ae.name}`;le.push({title:Ae.name,type:Ae.type,isLeaf:Ae.type!=="tree",key:it})}return le}function Re(Ne,be,le){for(let je=0;je<Ne.length;je++){let Ae=Ne[je];if(Ae.key===be){Ae.children=le;break}Ae.children&&Re(Ae.children,be,le)}return Ne}function ve(Ne,be,le){let je;return function(){let Ae=this,it=arguments,ze=function(){je=null,le||Ne.apply(Ae,it)},Oe=le&&!je;clearTimeout(je),je=setTimeout(ze,be),Oe&&Ne.apply(Ae,it)}}const me=!0,pe=y.Z.API_SERVER},42075:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ze}});var y=z(7939),he=z(59301),ce=Object.defineProperty,Re=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,be=(Oe,Ee,Pe)=>Ee in Oe?ce(Oe,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Oe[Ee]=Pe,le=(Oe,Ee)=>{for(var Pe in Ee||(Ee={}))pe.call(Ee,Pe)&&be(Oe,Pe,Ee[Pe]);if(me)for(var Pe of me(Ee))Ne.call(Ee,Pe)&&be(Oe,Pe,Ee[Pe]);return Oe},je=(Oe,Ee)=>Re(Oe,ve(Ee)),Ae=(Oe,Ee)=>{var Pe={};for(var Fe in Oe)pe.call(Oe,Fe)&&Ee.indexOf(Fe)<0&&(Pe[Fe]=Oe[Fe]);if(Oe!=null&&me)for(var Fe of me(Oe))Ee.indexOf(Fe)<0&&Ne.call(Oe,Fe)&&(Pe[Fe]=Oe[Fe]);return Pe},it=(Oe,Ee,Pe)=>new Promise((Fe,Ve)=>{var dt=Xe=>{try{Ie(Pe.next(Xe))}catch(He){Ve(He)}},Se=Xe=>{try{Ie(Pe.throw(Xe))}catch(He){Ve(He)}},Ie=Xe=>Xe.done?Fe(Xe.value):Promise.resolve(Xe.value).then(dt,Se);Ie((Pe=Pe.apply(Oe,Ee)).next())});const ze=Oe=>{var Ee=Oe,{children:Pe}=Ee,Fe=Ae(Ee,["children"]);const[Ve,dt]=(0,he.useState)(!1);return he.createElement(y.ZP,je(le({},Fe),{loading:Ve,onClick:Se=>it(void 0,null,function*(){try{dt(!0),yield Fe.onClick(Se),dt(!1)}catch(Ie){console.error(Ie),dt(!1)}})}),Pe)}},35139:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return it}});var y=z(59301),he=z(6767),ce=z(37568),Re={codeBox:"codeBox___WpkVl"},ve=z(92310),me=z.n(ve),pe=Object.defineProperty,Ne=(ze,Oe,Ee)=>Oe in ze?pe(ze,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ze[Oe]=Ee,be=(ze,Oe,Ee)=>Ne(ze,typeof Oe!="symbol"?Oe+"":Oe,Ee),le=(ze,Oe,Ee)=>new Promise((Pe,Fe)=>{var Ve=Ie=>{try{Se(Ee.next(Ie))}catch(Xe){Fe(Xe)}},dt=Ie=>{try{Se(Ee.throw(Ie))}catch(Xe){Fe(Xe)}},Se=Ie=>Ie.done?Pe(Ie.value):Promise.resolve(Ie.value).then(Ve,dt);Se((Ee=Ee.apply(ze,Oe)).next())});class je extends y.Component{constructor(Oe){super(Oe),be(this,"canvas"),be(this,"randomNum",(Ee,Pe)=>Math.floor(Math.random()*(Pe-Ee)+Ee)),be(this,"drawPic",()=>{this.randomCode()}),be(this,"reloadPic",()=>{this.drawPic()}),be(this,"changeCode",Ee=>{console.log(Ee.target.value,222),this.setState({value:Ee.target.value,showError:!1})}),be(this,"onVerify",()=>{let Ee;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Ee=!0,he.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Ee=!0,he.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Ee=!1),this.setState({showError:Ee}),Ee}),this.canvas=y.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(Oe,Ee){const Pe=this.randomNum(Oe,Ee),Fe=this.randomNum(Oe,Ee),Ve=this.randomNum(Oe,Ee);return`rgb(${Pe}, ${Fe}, ${Ve})`}drawText(Oe,Ee,Pe){Oe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Fe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Oe.font=Fe+"px SimHei";const Ve=10,dt=(this.state.contentWidth-40)/(this.state.code.length-1);let Se=Ve;Pe>0&&(Se=Ve+Pe*dt);let Ie=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Fe>40&&(Ie=40);const Xe=this.randomNum(-10,10);Oe.translate(Se,Ie),Oe.rotate(Xe*Math.PI/180),Oe.fillText(Ee,0,0),Oe.rotate(-Xe*Math.PI/180),Oe.translate(-Se,-Ie)}drawLine(Oe){for(let Ee=0;Ee<1;Ee++)Oe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Oe.beginPath(),Oe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.stroke()}drawDot(Oe){for(let Ee=0;Ee<100;Ee++)Oe.fillStyle=this.randomColor(0,255),Oe.beginPath(),Oe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Oe.fill()}randomCode(){let Oe="";const Ee="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Pe=0;Pe<this.state.codeLength;Pe++){const Fe=Math.floor(Math.random()*57);Oe+=Ee[Fe]}this.setState({code:Oe},()=>{const Fe=this.canvas.current.getContext("2d");Fe.textBaseline="bottom",Fe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Fe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Ve=0;Ve<this.state.code.length;Ve++)this.drawText(Fe,this.state.code[Ve],Ve);this.drawLine(Fe),this.drawDot(Fe)})}render(){const{className:Oe,width:Ee=300}=this.props;return y.createElement("div",{className:me()(Re.codeBox,Oe),style:{width:Ee}},y.createElement("aside",null,y.createElement(ce.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),y.createElement("div",null,y.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),y.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Ae=(ze,Oe)=>{let Ee;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Oe),React.createElement(je,{ref:Pe=>Ee=Pe})),onOk:()=>le(void 0,null,function*(){if(Ee.onVerify())return Promise.reject();ze()})})};var it=je},5622:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return be}});var y=z(59301),he=z(37568),ce=z(96599),Re=z(6767),ve={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},me=z(62772);const{TextArea:pe}=he.default;class Ne extends y.Component{constructor(je){super(je),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:je,onAnswerChange:Ae,addChildAnswer:it,exerciseIsPublish:ze,answers:Oe,activeOptionErrorIndex:Ee,flex:Pe="0 0 1000px"}=this.props;console.log("----",Oe);let{inputVisible:Fe,EditInputIndex:Ve}=this.state;return y.createElement("div",{className:ve.flex},y.createElement("div",{className:`${ve.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",je+1,"):"),y.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Oe==null?void 0:Oe.map((dt,Se)=>y.createElement(y.Fragment,null,Ve!==Se?(dt==null?void 0:dt.length)>0?y.createElement(ce.default,{className:"edit-tag",key:dt,closable:!(je===0&&Se===0),onClose:Ie=>{Ie.preventDefault(),(Oe==null?void 0:Oe.length)===1&&Se===0?this.props.deleteChildAnswermain(je,Se):this.props.deleteChildAnswer(je,Se)}},y.createElement("span",{onDoubleClick:Ie=>{this.setState({EditInputIndex:Se}),Ie.preventDefault()}},dt)):y.createElement(he.default,{defaultValue:dt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ie=>{if(Ie.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ae(je,Se,Ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(he.default,{defaultValue:dt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ie=>{if(Ie.target.value.replaceAll(" ","").length<=0){Re.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ae(je,Se,Ie.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Fe&&y.createElement(ce.default,{className:"site-tag-plus",onClick:()=>{it(je),this.setState({inputVisible:!0})}},y.createElement(me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var be=Ne},44240:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return me}});var y=z(37639),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ce=z(32637),Re=z(59301),me=({type:pe,style:Ne})=>{const be=Re.createElement("div",{className:he.wrap,onClick:le=>{le.preventDefault(),le.stopPropagation()}},Re.createElement("p",null,pe==="shixun"||pe==="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",Re.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",pe==="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"),Re.createElement("div",{className:he.contact},Re.createElement("div",{className:he.img},Re.createElement("img",{src:ce,width:"124px",height:"124px"})),Re.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Re.createElement(y.Z,{content:be},Re.createElement("span",{className:he.text,style:Ne},"\u9AD8\u6D88\u8017"))}},40254:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return je}});var y=z(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ce=z(92310),Re=z.n(ce),ve=z(29787),me=z(2859),pe=z(49317),Ne=z(76406),be=(Ae,it,ze)=>new Promise((Oe,Ee)=>{var Pe=dt=>{try{Ve(ze.next(dt))}catch(Se){Ee(Se)}},Fe=dt=>{try{Ve(ze.throw(dt))}catch(Se){Ee(Se)}},Ve=dt=>dt.done?Oe(dt.value):Promise.resolve(dt.value).then(Pe,Fe);Ve((ze=ze.apply(Ae,it)).next())}),je=({data:Ae,className:it,fullWidth:ze,style:Oe={},onClose:Ee,onOk:Pe,showFullTools:Fe,noAssociationId:Ve})=>{const dt=(0,y.useRef)(null),Se=(0,y.useRef)(null),Ie=(0,y.useRef)(null),Xe=(0,y.useRef)(null),[He,rt]=(0,y.useState)(!1),[st,Je]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Ie.current||(Ie.current=document.createElement("style"),document.head.appendChild(Ie.current)),Ae!=null&&Ae.visible?(document.body.setAttribute("data-custom","y-hidden"),Ie.current.innerHTML=" html { overflow-y: hidden; }",Ae!=null&&Ae.src&&et()):(document.body.removeAttribute("data-custom"),Ie.current&&(document.head.removeChild(Ie.current),Ie.current=null)),()=>{document.body.removeAttribute("data-custom"),Ie.current&&(document.head.removeChild(Ie.current),Ie.current=null)}),[Ae==null?void 0:Ae.visible]);const et=()=>be(void 0,null,function*(){rt(!0),Je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const se=yield(0,Ne.ZJ)(Ae==null?void 0:Ae.src);dt.current.src="",dt.current.src=se,dt.current.onload=function(){we()},rt(!1),Je("")}),ge=se=>be(void 0,null,function*(){rt(!0),Je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ft=yield(0,pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ae.title,file:se.dataUrl}});ft!=null&&ft.id&&!Ve?(yield(0,pe.ZP)(`/api/attachments/${Ae.id}/add_subitem.json`,{method:"post",body:{subitem_id:ft==null?void 0:ft.id,settings:JSON.stringify(se.state)}})).status===0&&Pe():ft!=null&&ft.id&&Pe(ft),rt(!1),Je("")}),Qe=()=>{const se=document.querySelector('a[href="https://markerjs.com/"]');se&&se.parentNode&&(se.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($e=>{const tt=document.querySelector($e.name);tt&&tt.setAttribute("title",$e.title)})},we=()=>{Se.current=new me.hP(dt.current),Se.current.targetRoot=Xe.current,Se.current.addEventListener("render",ge),Se.current.addEventListener("beforeclose",Ee),Fe&&(Se.current.availableMarkerTypes=Se.current.ALL_MARKER_TYPES,Se.current.uiStyleSettings.redoButtonVisible=!0,Se.current.uiStyleSettings.notesButtonVisible=!0,Se.current.uiStyleSettings.zoomButtonVisible=!0,Se.current.uiStyleSettings.zoomOutButtonVisible=!0,Se.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Se.current.uiStyleSettings,Se.current.show(),Ae!=null&&Ae.snapshotData&&Se.current.restoreState(Ae.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return y.createElement(y.Fragment,null,(Ae==null?void 0:Ae.visible)&&y.createElement(ve.Z,{spinning:He,tip:st,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:Xe,className:Re()(he.imageDimensions,it,ze?he.fullWidth:""),style:Oe},y.createElement("img",{className:he.img,ref:dt}))))}},71039:function(En,Vt,z){"use strict";var y=z(59301),he=z(74501),ce=z(48136),Re=z(9057),ve=z(62957),me=z(59301);const pe=(0,y.forwardRef)(({callback:Ne,width:be,onChange:le,disabled:je,readOnly:Ae,type:it="",value:ze="",style:Oe={}},Ee)=>{const Pe=(0,y.useRef)(),Fe=(0,y.useRef)(),[Ve,dt]=(0,y.useState)(0),[Se,Ie]=(0,y.useState)(0),[Xe,He]=(0,y.useState)(!1),rt=()=>{var ge=document.createElement("div");ge.innerHTML=Pe.current.getValue();var Qe=ge.innerText;return Ne&&Ne(Qe),Qe};(0,y.useImperativeHandle)(Ee,()=>({getData:rt}));const st=ge=>{ge.preventDefault();const Qe=ge.clientX-Ve,we=ge.clientY-Se;document.body.onmousemove=se=>{let ft=se.clientX-Qe,$e=se.clientY-we;const tt=document.getElementsByClassName("markdown-popup-form")[0],Nt=window.innerWidth-tt.offsetWidth,Le=window.innerHeight-tt.offsetHeight;ft=Math.max(0,Math.min(ft,Nt)),$e=Math.max(0,Math.min($e,Le)),Je(se.clientX,se.clientY,Qe,we)&&(dt(ft),Ie($e))},document.body.onmouseup=function(){document.body.onmousemove=null}},Je=(ge,Qe,we,se)=>{const ft=document.body.clientHeight,$e=document.body.clientWidth;return ge<20&&we>ge||ge>$e-20&&we<ge||Qe<20&&se>Qe||Qe>ft-20&&se<Qe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{Xe&&setTimeout(()=>{const ge=document.getElementsByClassName("markdown-popup-form")[0],Qe=window.innerWidth/2-ge.offsetWidth/2,we=window.innerHeight/2-ge.offsetHeight/2;dt(Qe),Ie(we)},0)},[Xe]);const et=()=>{je||Ae||He(!0)};return me.createElement("div",{style:Oe},me.createElement("div",{style:{width:be||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${je||Ae?"cursorDefault":""}`,onClick:()=>et()},me.createElement("math-field",{disabled:je,locale:"zh_cn",class:`${he.Z.mathField} ${it}`,readOnly:Ae,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Pe,style:{width:"100%",fontSize:ze?18:14},value:ze||""})),me.createElement(ve.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ve,top:Se},title:me.createElement("div",{style:{cursor:"move"},onMouseDown:st},"\u8F93\u5165\u516C\u5F0F"),open:Xe,onOk:()=>{const ge=Fe.current.getData();Pe.current.setValue(ge),le(ge),He(!1)},onCancel:()=>{He(!1)},destroyOnClose:!0,className:"markdown-popup-form"},me.createElement(Re.Z,{value:ze,ref:Fe,onChange:le,showSaveButton:!1})))});Vt.Z=pe},9057:function(En,Vt,z){"use strict";var y=z(59301),he=z(77019),ce=z(5269),Re=z(31691),ve=z(7939),me=z(35883),pe=z(74501),Ne=z(48136),be=z(59301);const le=(0,y.forwardRef)(({callback:je,showSaveButton:Ae,value:it=""},ze)=>{const Oe=(0,y.useRef)(),Ee=[{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 "}]}]}],Pe=[{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}`}]}]}],Fe=Se=>{Oe.current.setValue(Oe.current.getValue()+" "+Se.value+" ")},Ve=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:be.createElement(he.Z,{className:pe.Z.lists,gutter:[10,10]},Ee.map((Se,Ie)=>be.createElement(ce.Z,{flex:"110px",className:pe.Z.item},be.createElement("div",null,be.createElement(me.Z,{value:`$$${Se.value}$$`}),Se.name),be.createElement("div",{className:pe.Z.children},Se.children.map((Xe,He)=>be.createElement("div",{key:He},be.createElement("h1",null,Xe.name),be.createElement(he.Z,{gutter:[10,10]},Xe.data.map((rt,st)=>be.createElement(ce.Z,{key:st,onClick:()=>Fe(rt),className:pe.Z.diamond},be.createElement(me.Z,{value:"`$$"+rt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:be.createElement(he.Z,{className:pe.Z.lists,gutter:[10,10]},Pe.map((Se,Ie)=>be.createElement(ce.Z,{flex:"110px",className:pe.Z.item},be.createElement("div",null,be.createElement(me.Z,{value:"`$$"+Se.value+"$$`"}),Se.name),be.createElement("div",{className:pe.Z.children},Se.children.map((Xe,He)=>be.createElement("div",{key:He},Xe.name&&be.createElement("h1",null,Xe.name),be.createElement(he.Z,{gutter:[10,10]},Xe.data.map((rt,st)=>be.createElement(ce.Z,{key:st,onClick:()=>Fe(rt),className:pe.Z.diamond},be.createElement(me.Z,{value:"`$$"+rt.value+"$$`"}))))))))))}],dt=()=>{var Se=document.createElement("div");Se.innerHTML=Oe.current.getValue();var Ie=Se.innerText;return je&&je(Ie),Ie};return(0,y.useImperativeHandle)(ze,()=>({getData:dt})),be.createElement("div",{className:pe.Z.mathWrap},be.createElement(Re.default,{defaultActiveKey:"1",items:Ve}),be.createElement("math-field",{locale:"zh_cn",className:pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:800,marginTop:30,fontSize:18}},it||""),Ae&&be.createElement("div",{className:pe.Z.button},be.createElement(ve.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Vt.Z=le},90736:function(En,Vt,z){"use strict";var y=z(59301),he=z(4977),ce=z(7939),Re=Object.defineProperty,ve=Object.defineProperties,me=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,le=(ze,Oe,Ee)=>Oe in ze?Re(ze,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ze[Oe]=Ee,je=(ze,Oe)=>{for(var Ee in Oe||(Oe={}))Ne.call(Oe,Ee)&&le(ze,Ee,Oe[Ee]);if(pe)for(var Ee of pe(Oe))be.call(Oe,Ee)&&le(ze,Ee,Oe[Ee]);return ze},Ae=(ze,Oe)=>ve(ze,me(Oe));const it=({img:ze,buttonProps:Oe={},styles:Ee={},customText:Pe,ButtonText:Fe,ButtonClick:Ve,Buttonclass:dt,ButtonTwo:Se,imgStyles:Ie,loading:Xe=!1,className:He=""})=>y.createElement("section",{className:`tc animated fadeIn ${He}`,style:je({color:"#999",margin:"100px auto",visibility:Xe?"hidden":"visible"},Ee)},y.createElement("img",{src:ze||he,style:Ae(je({},Ie),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Pe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Fe&&y.createElement(ce.ZP,je({className:dt,onClick:Ve},Oe),Fe),Se&&Se);Vt.Z=it},86974:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return dt}});var y=z(59301),he={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ce=z(7939),Re=z(70557),ve=z(34728),me=z(25399),pe=z(76406),Ne=z(84849),be=z(90736),le=z(14185),je=z(52078),Ae=z(59301),it=Object.defineProperty,ze=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Pe=(Se,Ie,Xe)=>Ie in Se?it(Se,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Se[Ie]=Xe,Fe=(Se,Ie)=>{for(var Xe in Ie||(Ie={}))Oe.call(Ie,Xe)&&Pe(Se,Xe,Ie[Xe]);if(ze)for(var Xe of ze(Ie))Ee.call(Ie,Xe)&&Pe(Se,Xe,Ie[Xe]);return Se},Ve=(Se,Ie,Xe)=>new Promise((He,rt)=>{var st=ge=>{try{et(Xe.next(ge))}catch(Qe){rt(Qe)}},Je=ge=>{try{et(Xe.throw(ge))}catch(Qe){rt(Qe)}},et=ge=>ge.done?He(ge.value):Promise.resolve(ge.value).then(st,Je);et((Xe=Xe.apply(Se,Ie)).next())}),dt=({editOffice:Se="view",data:Ie,issaver:Xe,onSaver:He,theme:rt,type:st,filename:Je,monacoEditor:et,className:ge,style:Qe,close:we,onClose:se,hasMask:ft,disabledDownload:$e,onImgDimensions:tt,showNodata:Nt,recordInfo:Le})=>{const[ye,Et]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,pt]=(0,y.useState)(""),[Ce,at]=(0,y.useState)(),qe=window.ENV==="build"?"/react/build":"",zt=location.host.startsWith("localhost")?le.Z.PROXY_SERVER:le.Z.API_SERVER,ct=10*(1024*1024),lt=(0,y.useRef)();Ie!=null&&Ie.startsWith("/api")&&st!=="txt"&&(Ie=le.Z.API_SERVER+Ie);const nn=fe=>fe.substring(fe.lastIndexOf("/")+1).split(".").pop();Je&&et&&(et.filename=Je),(0,y.useEffect)(()=>{var fe,re;const ue=(re=(fe=document.cookie)==null?void 0:fe.replace(/\s/g,""))==null?void 0:re.split(";");ue==null||ue.map(Me=>{let gt=Me.split("=");gt[0]==="_educoder_session"&&pt(gt[1])})},[]),(0,y.useEffect)(()=>{st==="office"&&(Ie.indexOf("bigfilescdn.")>-1||Ie.indexOf("bigfiles1")>-1?at({url:Ie,fileType:nn(Ie),model:Ie.indexOf("model=edit")?"edit":"view"}):Ie.indexOf("coze")>-1?at({url:Ie,fileType:"doc",model:"view"}):ae())},[st,Ie]);function kt(fe){return Ve(this,null,function*(){fe.data.type==="pdfdata"&&(He(fe.data.data),window.removeEventListener("message",kt,!1)),console.log("mess---:",fe.data)})}const ae=()=>Ve(void 0,null,function*(){console.log("data:",Ie);let fe=Ie;Ie.startsWith("http")||(fe=location.origin+fe);let re=new URL(fe).pathname.split("/").pop();const ue=yield(0,Ne.gJ)({attachment_id:re});ue.url=zt+ue.url,at(ue)}),ne=()=>{if(Ie.startsWith("http")||Ie.startsWith("blob:")){te();return}(0,pe.Sv)(Je||"educoder",Ie,Je)},te=()=>{Le&&(0,je.fc)({id:Le==null?void 0:Le.id,watch_type:1,course_id:Le==null?void 0:Le.course_id}),(0,pe.Nd)(Je||"educoder",decodeURIComponent(Ie))};(0,y.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=fe=>{var re;((re=fe==null?void 0:fe.data)==null?void 0:re.type)==="closePop"&&se()};return Ae.createElement("div",{style:Fe({},Qe||{}),className:`${ft&&he.bgBlack} ${st?he.wrp:"hide"}`},!!st&&we&&Ae.createElement("div",{id:"closePop",className:he.close,ref:lt},!!tt&&Ae.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>lt.current},Ae.createElement("span",{onClick:()=>{se(),tt()}},Ae.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&window.parent===window&&Ae.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>lt.current},Ae.createElement("span",{onClick:te},Ae.createElement("i",{className:"icon-quxiaozhiding"}))),Xe&&Ae.createElement(me.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>lt.current},Ae.createElement("span",{className:"",onClick:()=>{const fe=document.getElementById("pdfiframe");window.addEventListener("message",kt,!1),setTimeout(()=>{fe.contentWindow.postMessage("getData","*")},300)}},Ae.createElement("i",{className:"icon-baocun"}))),Ae.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>lt.current},Ae.createElement("span",{className:"",onClick:()=>{se()}},Ae.createElement("i",{className:"icon-guanbi1"})))),Ae.createElement("div",{className:`${he[ge]} ${ge} ${he.monaco} ${st==="txt"?"show":"hide"}`},st==="txt"&&Ae.createElement(Ae.Fragment,null,Ae.createElement(ve.ZP,Fe({},et)))),st==="audio"&&Ae.createElement("audio",{controls:!0,src:`${(Ie==null?void 0:Ie.indexOf("http://"))>-1||(Ie==null?void 0:Ie.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ie}`,autoPlay:!0}),st==="video"&&Ae.createElement(Ae.Fragment,null,(Ie==null?void 0:Ie.indexOf("http"))>-1?Ae.createElement("video",{controls:!0,src:`${Ie}`,autoPlay:!0}):Ae.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ie}`,autoPlay:!0})),st==="office"&&Ce&&Ae.createElement("iframe",{src:`${qe}/office.html?key=${Ce.key}&url=${btoa(Ce.url)}&callbackUrl=${zt+(Ce.callbackUrl||"")}&fileType=${Ce.fileType}&title=${Ce.title||""}&model=${Se}&officeServer=${le.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),st==="html"&&Ae.createElement("iframe",{src:Ie+"&disposition=inline"}),st==="pdf"&&Ae.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${Je||"educoder.pdf"}&url=${encodeURIComponent(Ie)}&disabledDownload=${!!$e}&model=${Se}`}),st==="image"&&Ae.createElement("img",{src:`${(Ie==null?void 0:Ie.indexOf("http://"))>-1||(Ie==null?void 0:Ie.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ie}`}),(st==="other"||st==="download")&&Ae.createElement(Ae.Fragment,null,Nt?Ae.createElement(be.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ae.createElement(ce.ZP,{icon:Ae.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:$e},"\u4E0B\u8F7D")}):Ae.createElement(ce.ZP,{type:"primary",size:"middle",onClick:ne,disabled:$e},Ae.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),st==="flowChart"&&Ae.createElement("div",{className:"embed"},Ae.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ie||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},9556:function(En,Vt,z){"use strict";z.d(Vt,{t:function(){return Me}});var y=z(59301),he=z(37568),ce=z(8848),Re=z(28284),ve=z(62957),me=z(77019),pe=z(5269),Ne=z(4875),be=z(82326),le=z(47889),je=z(7939),Ae=z(93725),it=z(78130),ze=z(44283),Oe=z(42168),Ee=z(6767),Pe=z(29787),Fe=z(24334),Ve={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"},dt=z(49317),Se=z(19160),Ie=z(39116),Xe=z(56102),He=z(30628),rt=z(59301),st=Object.defineProperty,Je=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,se=(gt,_e,ke)=>_e in gt?st(gt,_e,{enumerable:!0,configurable:!0,writable:!0,value:ke}):gt[_e]=ke,ft=(gt,_e)=>{for(var ke in _e||(_e={}))Qe.call(_e,ke)&&se(gt,ke,_e[ke]);if(ge)for(var ke of ge(_e))we.call(_e,ke)&&se(gt,ke,_e[ke]);return gt},$e=(gt,_e)=>Je(gt,et(_e)),tt=(gt,_e,ke)=>new Promise((ot,ht)=>{var wt=Mt=>{try{We(ke.next(Mt))}catch(Ut){ht(Ut)}},Ze=Mt=>{try{We(ke.throw(Mt))}catch(Ut){ht(Ut)}},We=Mt=>Mt.done?ot(Mt.value):Promise.resolve(Mt.value).then(wt,Ze);We((ke=ke.apply(gt,_e)).next())}),Le=({buttonProps:gt,buttonText:_e,form:ke,hackIdentifier:ot="",answerKey:ht,data:wt})=>{const[Ze,We]=(0,y.useState)(!1),[Mt,Ut]=(0,y.useState)(!1),[cn,ln]=(0,y.useState)(!1),[_t,fn]=(0,y.useState)({}),[qt,Ye]=(0,y.useState)(""),[Ot,Jt]=(0,y.useState)(""),on=(0,y.useRef)(ot),Ge=(0,y.useRef)(""),Pt=(0,y.useRef)(!1);(0,y.useEffect)(()=>{cn&&Rt()},[cn]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const jt=()=>new Date().getTime(),vt=wt==null?void 0:wt.code,Lt=()=>{var un,Cn,Ct;let It=vt?wt==null?void 0:wt.code:(un=ke.getFieldValue("hack_codes"))==null?void 0:un.code,Gt=vt?wt==null?void 0:wt.answer_content:ke.getFieldValue(ht),tn=vt?wt==null?void 0:wt.input:(Ct=(Cn=ke.getFieldValue("hack_sets"))==null?void 0:Cn[0])==null?void 0:Ct.input;Gt==null||Gt.forEach(Wt=>{const mn=Wt.value||Wt.answer_text||"";It=It.replace(/(@▁@|@▁▁@)/,mn)}),Jt(tn),Ye(It),fn({}),ln(!0)},Rt=()=>tt(void 0,null,function*(){var un,Cn,Ct,It;const Gt=jt(),tn=vt?wt==null?void 0:wt.time_limit:(un=ke.getFieldsValue())==null?void 0:un.hack.time_limit,Wt=vt?(Cn=wt==null?void 0:wt.answer_content)==null?void 0:Cn.length:(It=(Ct=ke.getFieldsValue())==null?void 0:Ct.standard_answers)==null?void 0:It.length;We(!0),yield(0,Se.bM)(Ge.current,{test_hack_code:qt,test_input:Ot});function mn(){return tt(this,null,function*(){const{status:an,data:yn}=yield(0,Se.rX)(Ge.current,"submit"),Nn=jt()-Gt>(tn+3)*1e3*Wt;if(Pt.current){if(Nn){Ee.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),We(!1);return}if(an===0){We(!1),fn($e(ft({},yn),{showText:!0}));return}setTimeout(mn,1e3)}})}mn()}),sn=()=>tt(void 0,null,function*(){var un,Cn,Ct,It,Gt,tn,Wt;if(!wt){try{yield ke.validateFields()}catch(jn){(Ct=(Cn=(un=jn==null?void 0:jn.errorFields)==null?void 0:un[0])==null?void 0:Cn.name)!=null&&Ct.includes("standard_answers")?Ee.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ee.ZP.error(jn.errorFields[0].errors[0]),ke.scrollToField(jn.errorFields[0].name,{behavior:"smooth",block:"center"});return}Ut(!0);let an="";const yn=ke.getFieldsValue();on.current?an=yield(0,dt.ZP)(`/api/problems/${on.current}.json`,{method:"put",body:$e(ft({},yn),{hack:$e(ft({},yn==null?void 0:yn.hack),{sub_discipline_id:(Wt=(tn=yn==null?void 0:yn.hack)==null?void 0:tn.sub_discipline_id)==null?void 0:Wt[1],difficult:yn.difficulty,item_banks_group_id:yn.item_banks_group_id}),hack_codes:$e(ft({},yn.hack_codes),{code:Fe.Base64.encode(yn.hack_codes.code)}),update_hack_sets:yn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}):(an=yield(0,dt.ZP)("/api/problems.json",{method:"post",body:$e(ft({},yn),{hack:$e(ft({},yn==null?void 0:yn.hack),{sub_discipline_id:(Gt=(It=yn==null?void 0:yn.hack)==null?void 0:It.sub_discipline_id)==null?void 0:Gt[1],difficult:yn.difficulty,item_banks_group_id:yn.item_banks_group_id}),hack_codes:$e(ft({},yn.hack_codes),{code:Fe.Base64.encode(yn.hack_codes.code)}),hack_sets:yn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}),on.current=an==null?void 0:an.identifier,sessionStorage.projectFill=an==null?void 0:an.identifier)}const mn=yield(0,dt.ZP)(`/api/problems/${on.current}/start.json`,{method:"get"});if((mn==null?void 0:mn.status)===0){Ge.current=mn==null?void 0:mn.identifier,Pt.current=!0,Ut(!1),Lt();return}Ut(!1)}),Sn=un=>{const{status:Cn,error_msg:Ct,execute_time:It,output:Gt,input:tn,expected_output:Wt}=un;let mn=null;switch(Cn){case He.h.OK:mn=rt.createElement(rt.Fragment,null,rt.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",It/1e3,"\u79D2"),rt.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case He.h.NOMATCH:mn=rt.createElement(rt.Fragment,null,rt.createElement("div",null,"\u8F93\u5165\uFF1A"),rt.createElement("pre",{style:{fontFamily:"initial"}},tn),rt.createElement("div",null,"\u8F93\u51FA\uFF1A"),rt.createElement("pre",{style:{fontFamily:"initial"}},Gt&&Fe.Base64.decode(Gt)),rt.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),rt.createElement("pre",{style:{fontFamily:"initial"}},Wt&&Fe.Base64.decode(Wt)));break;case He.h.EXECUTEFAILURE:mn=rt.createElement(rt.Fragment,null,rt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",rt.createElement("pre",null,tn)),rt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),rt.createElement("pre",{className:"error"},Fe.Base64.decode(Ct)));break;case He.h.COMPILEFAILURE:mn=rt.createElement(rt.Fragment,null,rt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",rt.createElement("pre",null,tn)),rt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),rt.createElement("pre",{className:"error"},Fe.Base64.decode(Ct)));break;case He.h.PODFAILURE:mn=rt.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case He.h.TIMEOUT:mn=rt.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return rt.createElement(rt.Fragment,null," ",mn," ")};return rt.createElement("div",null,rt.createElement(je.ZP,$e(ft({loading:Mt},gt),{onClick:sn}),_e),rt.createElement(ve.default,{open:cn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ze,cancelButtonProps:{style:{display:"none"}},onOk:()=>Rt(),onCancel:()=>{Pt.current=!1,ln(!1)}},rt.createElement("div",{className:Ve.result},rt.createElement("div",{className:Ve.left},rt.createElement("div",{className:"mb20"},rt.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!wt&&rt.createElement(Xe.CopyToClipboard,{text:qt,onCopy:()=>Ee.ZP.success("\u590D\u5236\u6210\u529F")},rt.createElement("span",{style:{float:"right"},className:"current c-light-primary"},rt.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),rt.createElement(Ie.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:qt,onChange:un=>Ye(un)})),rt.createElement("div",{className:Ve.right},rt.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B ",rt.createElement("span",{style:{color:"#FA6400",fontSize:14}},"\uFF08\u9ED8\u8BA4\u7B2C1\u4E2A\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\uFF0C\u53EF\u624B\u52A8\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u8C03\u8BD5\uFF09")),rt.createElement("div",{className:Ve.box},rt.createElement("div",{className:Ve.li},rt.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ot,onChange:un=>Jt(un.target.value),bordered:!1,style:{height:180}}))),rt.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),rt.createElement("div",{className:Ve.box},rt.createElement(Pe.Z,{spinning:Ze,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},rt.createElement("div",{className:Ve.li,style:{height:196,overflow:"auto",padding:10}},Sn(_t))))))))},ye=z(87169),Et=z(32134),Zt=z(12893),pt=z(59301),Ce=Object.defineProperty,at=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,lt=(gt,_e,ke)=>_e in gt?Ce(gt,_e,{enumerable:!0,configurable:!0,writable:!0,value:ke}):gt[_e]=ke,nn=(gt,_e)=>{for(var ke in _e||(_e={}))ut.call(_e,ke)&&lt(gt,ke,_e[ke]);if(zt)for(var ke of zt(_e))ct.call(_e,ke)&&lt(gt,ke,_e[ke]);return gt},kt=(gt,_e)=>at(gt,qe(_e)),ae=(gt,_e)=>{var ke={};for(var ot in gt)ut.call(gt,ot)&&_e.indexOf(ot)<0&&(ke[ot]=gt[ot]);if(gt!=null&&zt)for(var ot of zt(gt))_e.indexOf(ot)<0&&ct.call(gt,ot)&&(ke[ot]=gt[ot]);return ke};const{TextArea:ne}=he.default,{Panel:te}=ce.default,ie=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],fe=({value:gt,onChange:_e})=>pt.createElement(Switch,{checked:gt,onChange:ke=>{_e(ke)}}),re="@\u2581@",ue="@\u2581\u2581@",Me=({questionTitlePlaceholder:gt,form:_e,scoreByBlank:ke=!1,hackidentifier:ot,answerKey:ht})=>{const[wt,Ze]=(0,y.useState)(!1),[We,Mt]=(0,y.useState)(!1),cn=(0,ze.useParams)().type==="edit",[ln,_t]=(0,y.useState)(0),fn=(Rt,sn)=>{const Sn=sn.line;let un=0;for(let Ct=0;Ct<Sn;Ct++)un+=Rt.getLine(Ct).split(re).length-1;for(let Ct=0;Ct<Sn;Ct++)un+=Rt.getLine(Ct).split(ue).length-1;const Cn=Rt.getLine(Sn).substring(0,sn.ch);return un+=Cn.split(re).length-1,un+=Cn.split(ue).length-1,un},qt=(Rt,sn,Sn,un)=>{const Cn=Rt.getRange(sn.from,sn.to);let Ct=0;if(sn.text.forEach(It=>{Ct+=It.split(re).length-1}),sn.text.forEach(It=>{Ct+=It.split(ue).length-1}),sn.origin!=="setValue"){if(Cn&&(Cn.indexOf(re)!==-1||Cn.indexOf(ue)!==-1)){const It=Cn.split(re).length-1+Cn.split(ue).length-1,Gt=fn(Rt,sn.from);if(console.log(`\u5220\u9664${It}\u4E2A\uFF0C \u524D\u9762\u6709${Gt}\u4E2A\uFF0C\u65B0\u589E${Ct}\u4E2A`),It>1){const tn=Array.from({length:It},(Wt,mn)=>Gt+mn);un(tn)}else un(Gt)}else if(Ct>0){const It=fn(Rt,sn.from);console.log(`\u65B0\u589E${Ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${It}\u4E2A`),Sn(Ct,It)}}},Ye=()=>{const Rt=_e.getFieldValue(ht);_e.setFieldsValue({[ht]:Rt==null?void 0:Rt.map((sn,Sn)=>kt(nn({},sn),{position:Sn+1}))})},Ot=(0,y.useRef)(),Jt=(Rt,sn)=>{for(let Sn=0;Sn<Rt;Sn++)Ot.current({position:null,answer_text:""},sn+Sn);Ye()},on=(0,y.useRef)(),Ge=Rt=>{on.current(Rt),Ye()};function Pt(Rt){Rt.stopPropagation()}const jt=Re.default.useWatch(ht,_e);function vt(){let Rt=_e.getFieldValue("hack_sets"),sn=parseInt(_e.getFieldValue("hack").code_compile_score)||0;const Sn=Rt.length+1;Rt.map((un,Cn)=>(un.position=Cn+1,un)),Rt.push({input:"",output:"",position:Sn}),_e.setFieldsValue({hack_sets:Rt}),_t(Rt.length-1)}function Lt(Rt){let sn=_e.getFieldValue("hack_sets"),Sn=parseInt(_e.getFieldValue("hack").code_compile_score)||0;const un=(sn==null?void 0:sn.length)-1;sn.splice(Rt,1),sn==null||sn.map((Cn,Ct)=>(Cn.position=Ct+1,Cn)),_e.setFieldsValue({hack_sets:sn})}return pt.createElement("div",{className:Oe.Z.wrap},pt.createElement(Re.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},pt.createElement(it.h,{scrollId:"name",watch:!0,height:140})),pt.createElement("div",{className:Oe.Z.questionTitleEditorWrap},pt.createElement(Re.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},pt.createElement(it.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Rt,sn)=>{const Sn=_e.getFieldValue(ht);console.log("--preAnswerData",Sn,sn),_e.setFieldsValue({[ht]:Sn==null?void 0:Sn.map((un,Cn)=>{var Ct;return kt(nn({},un),{position:Cn+1,multi_line:(Ct=sn==null?void 0:sn[Cn])==null?void 0:Ct.multiLine})})})},placeholder:gt,onCMBeforeChange:(Rt,sn)=>{qt(Rt,sn,Jt,Ge)}}))),pt.createElement(Re.default.List,{name:ht,rules:[{validator(Rt,sn){if(!(sn!=null&&sn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Sn of sn){const{answer_text:un}=Sn||{};if((un==null?void 0:un.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Rt,{add:sn,remove:Sn},{errors:un})=>(Ot.current=sn,on.current=Sn,pt.createElement(pt.Fragment,null,pt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},pt.createElement(Re.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),pt.createElement("div",{onClick:()=>{ve.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:pt.createElement("div",null,pt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",pt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),pt.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"}},pt.createElement(ye.Z,{style:{marginRight:3,color:"#3061D0"}}),pt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Rt.map((Cn,Ct)=>{var It=Cn,{key:Gt,name:tn}=It,Wt=ae(It,["key","name"]),mn,an;return pt.createElement(me.Z,{className:"mb20",key:Gt,align:"middle",wrap:!1},pt.createElement(pe.Z,{flex:"0 0 auto",className:`${Oe.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ct+1),pt.createElement(pe.Z,{flex:1},pt.createElement(me.Z,{align:"top",justify:"space-between",wrap:!1},pt.createElement(pe.Z,null,pt.createElement(Re.default.Item,kt(nn({},Wt),{name:[tn,"answer_text"],noStyle:!0}),(mn=jt==null?void 0:jt[tn])!=null&&mn.multi_line||(an=jt==null?void 0:jt[tn])!=null&&an.multiLine?pt.createElement(ne,{spellCheck:!1,style:{marginLeft:10,width:550}}):pt.createElement(he.default,{style:{marginLeft:10,width:550},className:Oe.Z.blankInput,size:"large",maxLength:1e3,onBlur:yn=>{}}))),ke&&pt.createElement(pe.Z,{flex:"224px"},pt.createElement(Re.default.Item,kt(nn({},Wt),{name:[tn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),pt.createElement(Ne.Z,{size:"large",className:Oe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),pt.createElement("div",{onClick:()=>Ze(!0)},pt.createElement(Re.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},pt.createElement(it.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))),pt.createElement(Re.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"}]},pt.createElement(be.default,{size:"large"},ie.map(Rt=>pt.createElement(be.default.Option,{key:Rt.title,value:Rt.key}," ",Rt.title)))),pt.createElement(Re.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},pt.createElement(Re.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},pt.createElement(Ne.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),pt.createElement("span",{className:"ml10 font14"},"\u79D2")),pt.createElement(Re.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"}]},pt.createElement(le.ZP.Group,{style:{marginTop:-10}},pt.createElement(le.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),pt.createElement(le.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),pt.createElement(le.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),pt.createElement(Re.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}},pt.createElement(je.ZP,{className:"mr20",type:"primary",onClick:vt},"\u6DFB\u52A0")),pt.createElement("div",{style:{padding:15}},pt.createElement(Re.default.List,{name:"hack_sets"},(Rt,{})=>pt.createElement(ce.default,{accordion:!0,bordered:!1,activeKey:ln,onChange:_t,className:Oe.Z.collapseWrapper,expandIcon:({isActive:sn})=>pt.createElement("i",{className:`iconfont icon-weizhankai ${sn?Oe.Z.open:Oe.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Rt.map((sn,Sn)=>pt.createElement(te,{key:sn.key,id:`scroll-key-${sn.key}`,header:pt.createElement(me.Z,{align:"middle",justify:"space-between",wrap:!1},pt.createElement(pe.Z,{className:Oe.Z.panelHeader},pt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Sn+1)),pt.createElement(pe.Z,{flex:1},pt.createElement(me.Z,{align:"middle",justify:"end",wrap:!1},pt.createElement(pe.Z,{flex:"78px",className:Oe.Z.operationWrapper},Sn>0&&pt.createElement(pt.Fragment,null,pt.createElement(Et.Z,{className:Oe.Z.add,onClick:un=>{Pt(un),vt()}}),pt.createElement(Ae.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(Sn+1),onCancel:Pt,onConfirm:un=>{Pt(un),Lt(Sn)}},pt.createElement(Zt.Z,{className:`${Oe.Z.remove} ml20`,onClick:Pt})))))))},pt.createElement(Re.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:[sn.name,"input"]},pt.createElement(ne,{rows:4})),pt.createElement(Re.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:[sn.name,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},pt.createElement(ne,{rows:4}))))))),pt.createElement(Le,{form:_e,answerKey:ht,hackIdentifier:ot,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:pt.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"}}}))}},8338:function(En,Vt,z){"use strict";z.d(Vt,{u:function(){return Xe}});var y=z(59301),he=z(77019),ce=z(5269),Re=z(25399),ve=z(28284),me=z(42168),pe=z(32134),Ne=z(12893),be=z(78130),le=z(59301),je=Object.defineProperty,Ae=Object.defineProperties,it=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Pe=(He,rt,st)=>rt in He?je(He,rt,{enumerable:!0,configurable:!0,writable:!0,value:st}):He[rt]=st,Fe=(He,rt)=>{for(var st in rt||(rt={}))Oe.call(rt,st)&&Pe(He,st,rt[st]);if(ze)for(var st of ze(rt))Ee.call(rt,st)&&Pe(He,st,rt[st]);return He},Ve=(He,rt)=>Ae(He,it(rt)),dt=(He,rt)=>{var st={};for(var Je in He)Oe.call(He,Je)&&rt.indexOf(Je)<0&&(st[Je]=He[Je]);if(He!=null&&ze)for(var Je of ze(He))rt.indexOf(Je)<0&&Ee.call(He,Je)&&(st[Je]=He[Je]);return st};const Se=["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:He,onChange:rt,choiceTextKey:st,answerKey:Je,index:et,isEdit:ge,setInputActive:Qe,form:we,choiceOptionsPath:se,allowChangeMode:ft,showAddIcon:$e,addItem:tt,deleteItem:Nt})=>{console.log(He,"value");const Le=(He==null?void 0:He[Je])===1,ye=()=>{const Zt=we.getFieldValue(se);we.setFieldValue(se,Zt.map(pt=>Ve(Fe({},pt),{[Je]:0})))},Et=()=>{Le?rt(Ve(Fe({},He),{[Je]:0})):(ft||ye(),rt(Ve(Fe({},He),{[Je]:1})))};return le.createElement(he.Z,{className:me.Z.choiceWrap,align:"middle",wrap:!1},le.createElement(ce.Z,{onClick:Et,className:`${me.Z.choiceIndex} ${Le?me.Z.activeAnswer:""}`},Se[et]),le.createElement(ce.Z,{flex:1,className:`${me.Z.editorWrap} ml15`,onClick:Qe},le.createElement(be.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:ge,value:He==null?void 0:He[st],onChange:Zt=>{rt(Ve(Fe({},He),{[st]:Zt}))}})),le.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},le.createElement("div",{onClick:Et,className:`${me.Z.setAnswerBtn} ${Le?me.Z.activeAnswer:""}`},Le?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),le.createElement(ce.Z,{className:me.Z.actionWrapper},le.createElement(Re.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},le.createElement(pe.Z,{className:me.Z.addIcon,onClick:tt,style:{visibility:$e?"visible":"hidden"}})),le.createElement(Re.Z,{title:"\u5220\u9664"},le.createElement(Ne.Z,{className:me.Z.deleteIcon,onClick:Nt,style:{visibility:et>1?"visible":"hidden"}}))))},Xe=({questionTitlePlaceholder:He,titleKey:rt,choiceKey:st,analysisKey:Je,choiceTextKey:et,answerKey:ge,choiceOptionsPath:Qe,allowChangeMode:we=!0,form:se,showAnalysis:ft=!0})=>{const[$e,tt]=(0,y.useState)(),[Nt,Le]=(0,y.useState)(!1);return le.createElement("div",{className:me.Z.wrap},le.createElement("div",{className:me.Z.questionTitleEditorWrap},le.createElement(ve.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},le.createElement(be.h,{scrollId:Array.isArray(rt)?rt.join("_"):`${rt}`,watch:!0,height:140,placeholder:He}))),le.createElement(ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),le.createElement(ve.default.List,{name:st,rules:[{validator(ye,Et){const Zt=Et.some(Ce=>Ce[ge]===1),pt=Et.findIndex(Ce=>{var at;return((at=Ce[et])==null?void 0:at.length)<=0});return pt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Se[pt]}\u9009\u9879\u7684\u5185\u5BB9`)):Zt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ye,{add:Et,remove:Zt})=>le.createElement("div",{id:Array.isArray(Qe)?Qe.join("_"):`${Qe}`},ye.map((pt,Ce)=>{var at=pt,{key:qe,name:zt}=at,ut=dt(at,["key","name"]);const ct=$e===qe,lt=()=>{tt(qe)},nn=Ce<14&&Ce===ye.length-1,kt=()=>Et({[et]:"",[ge]:0}),ae=()=>Zt(zt);return le.createElement(ve.default.Item,Ve(Fe({},ut),{key:qe,name:zt,className:me.Z.choiceListWrap,rules:[{validator(ne,te){return te!=null&&te.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Se[Ce]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),le.createElement(Ie,{choiceTextKey:et,answerKey:ge,index:Ce,isEdit:ct,setInputActive:lt,form:se,choiceOptionsPath:Qe,allowChangeMode:we,showAddIcon:nn,addItem:kt,deleteItem:ae}))}),ye.length<15&&le.createElement("div",{className:`${me.Z.addBtn} mb30`,onClick:()=>Et({[et]:"",[ge]:0})},"\u6DFB\u52A0\u9009\u9879"))),ft&&le.createElement("div",{onClick:()=>Le(!0)},le.createElement(ve.default.Item,{name:Je,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(be.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nt}))))}},64780:function(En,Vt,z){"use strict";z.d(Vt,{u:function(){return se}});var y=z(59301),he=z(62957),ce=z(77019),Re=z(5269),ve=z(37568),me=z(25399),pe=z(58755),Ne=z(28284),be=z(47889),le=z(4875),je=z(7939),Ae=z(78130),it=z(12893),ze=z(32134),Oe=z(61485),Ee=z(42168),Pe=z(71039),Fe=z(59301),Ve=Object.defineProperty,dt=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,rt=(ft,$e,tt)=>$e in ft?Ve(ft,$e,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[$e]=tt,st=(ft,$e)=>{for(var tt in $e||($e={}))Xe.call($e,tt)&&rt(ft,tt,$e[tt]);if(Ie)for(var tt of Ie($e))He.call($e,tt)&&rt(ft,tt,$e[tt]);return ft},Je=(ft,$e)=>dt(ft,Se($e)),et=(ft,$e)=>{var tt={};for(var Nt in ft)Xe.call(ft,Nt)&&$e.indexOf(Nt)<0&&(tt[Nt]=ft[Nt]);if(ft!=null&&Ie)for(var Nt of Ie(ft))$e.indexOf(Nt)<0&&He.call(ft,Nt)&&(tt[Nt]=ft[Nt]);return tt};const ge=({value:ft,onChange:$e,position:tt,removeBlank:Nt})=>{const Le=Et=>{he.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:Ee.Z.modal,onOk:()=>{const Zt=[...ft];Zt.splice(Et,1),Zt.length===0?Nt(tt-1):$e(Zt)}})},ye=()=>{const Et=[...ft];Et.push(""),$e(Et)};return Fe.createElement(ce.Z,{className:"ml20"},Fe.createElement(Re.Z,{flex:1},ft==null?void 0:ft.map((Et,Zt)=>Fe.createElement(ce.Z,{key:`${Et}_${Zt}`,className:"mb20"},Fe.createElement(ve.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Et,autoSize:{maxRows:3},maxLength:1e3,onBlur:pt=>{const Ce=[...ft],at=pt.target.value.trim();Ce[Zt]=at,$e(Ce)}}),Fe.createElement(me.Z,{title:"\u5220\u9664"},Fe.createElement(it.Z,{className:Ee.Z.deleteIcon,style:{marginLeft:15,visibility:tt===1&&Zt===0?"hidden":"visible"},onClick:()=>Le(Zt)})),Fe.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Fe.createElement(ze.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Zt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},Qe=({value:ft,onChange:$e,position:tt,removeBlank:Nt})=>{const Le=Et=>{he.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:Ee.Z.modal,onOk:()=>{const Zt=[...ft];Zt.splice(Et,1),Zt.length===0?Nt(tt-1):$e(Zt)}})},ye=()=>{const Et=[...ft];Et.push(""),$e(Et)};return Fe.createElement(ce.Z,{className:"ml20"},Fe.createElement(Re.Z,{flex:1},ft==null?void 0:ft.map((Et,Zt)=>Fe.createElement(ce.Z,{key:`${Et}_${Zt}`,align:"middle",className:"mb20"},Fe.createElement(Pe.Z,{value:Et,style:{flex:1},onChange:pt=>{const Ce=[...ft];Ce[Zt]=pt,$e(Ce)}}),Fe.createElement(me.Z,{title:"\u5220\u9664"},Fe.createElement(it.Z,{className:Ee.Z.deleteIcon,style:{marginLeft:15,visibility:tt===1&&Zt===0?"hidden":"visible"},onClick:()=>Le(Zt)})),Fe.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Fe.createElement(ze.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Zt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},we=({value:ft=!0,onChange:$e})=>Fe.createElement(pe.Z,{checked:!ft,onChange:tt=>{$e(!tt)}}),se=({questionTitlePlaceholder:ft,form:$e,scoreByBlank:tt=!1,answerKey:Nt})=>{const[Le,ye]=(0,y.useState)(!1),Et=()=>{const zt=$e.getFieldValue(Nt);$e.setFieldsValue({[Nt]:zt.map((ut,ct)=>Je(st({},ut),{position:ct+1}))})},Zt=(0,y.useRef)(),pt=(zt,ut)=>{for(let ct=0;ct<zt;ct++)Zt.current({position:null,answer_text:[""],model:1},ut+ct);Et()},Ce=(0,y.useRef)(),at=zt=>{Ce.current(zt),Et()},qe=Ne.default.useWatch(Nt,$e);return Fe.createElement("div",{className:Ee.Z.wrap},Fe.createElement("div",{className:Ee.Z.questionTitleEditorWrap},Fe.createElement(Ne.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:ft,showNullButton:!0,onAddBlank:()=>{const zt=$e.getFieldValue(Nt);pt(1,zt==null?void 0:zt.length)}}))),Fe.createElement(Ne.default.List,{name:Nt,rules:[{validator(zt,ut){if(!(ut!=null&&ut.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ct of ut){const{answer_text:lt}=ct||{};if(lt!=null&&lt.some(nn=>(nn==null?void 0:nn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(zt,{add:ut,remove:ct},{errors:lt})=>(Zt.current=ut,Ce.current=ct,Fe.createElement(Fe.Fragment,null,Fe.createElement(Ne.default.Item,{label:Fe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),zt.map((nn,kt)=>{var ae=nn,{key:ne,name:te}=ae,ie=et(ae,["key","name"]),fe,re;return Fe.createElement("div",{style:{marginBottom:10},key:ne},Fe.createElement(ce.Z,{className:"mb20",align:"middle",wrap:!1},Fe.createElement(Re.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ee.Z.blankIndex}`},"\u586B\u7A7A\u9879",kt+1),Fe.createElement(Ne.default.Item,Je(st({},ie),{name:[te,"model"],noStyle:!0}),Fe.createElement(be.ZP.Group,{onChange:()=>{const ue=$e.getFieldValue(Nt);$e.setFieldsValue({[Nt]:ue.map((Me,gt)=>Je(st({},Me),{answer_text:te===gt?[""]:Me.answer_text}))})}},Fe.createElement(be.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Fe.createElement(me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Fe.createElement(Oe.Z,null))),Fe.createElement(be.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Fe.createElement(me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Fe.createElement(Oe.Z,null)))))),Fe.createElement(ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Fe.createElement(Re.Z,{flex:1},Fe.createElement(ce.Z,{align:"top",justify:"space-between",wrap:!1},Fe.createElement(Re.Z,{flex:1},Fe.createElement(Ne.default.Item,Je(st({},ie),{name:[te,"answer_text"],noStyle:!0}),((re=(fe=$e.getFieldValue(Nt))==null?void 0:fe[te])==null?void 0:re.model)===1?Fe.createElement(ge,{removeBlank:at,position:kt+1}):Fe.createElement(Qe,{removeBlank:at,position:kt+1}))),tt&&Fe.createElement(Re.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Fe.createElement(Ne.default.Item,Je(st({},ie),{name:[te,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ee.Z.blankInputNumberWrapper}),Fe.createElement(le.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Fe.createElement(Ne.default.Item,Je(st({},ie),{name:[te,"position"],noStyle:!0}),Fe.createElement(ve.default,{type:"hidden"})))))})))),Fe.createElement(je.ZP,{className:"mb20",onClick:()=>pt(1,qe==null?void 0:qe.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Fe.createElement(ce.Z,{align:"middle"},Fe.createElement(Ne.default.Item,{name:"downcase",valuePropName:"checked"},Fe.createElement(pe.Z,null)),Fe.createElement(Re.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Fe.createElement(ce.Z,{align:"middle"},Fe.createElement(Ne.default.Item,{name:"no_space",valuePropName:"checked"},Fe.createElement(pe.Z,null)),Fe.createElement(Re.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(qe==null?void 0:qe.length)>1&&Fe.createElement(ce.Z,{align:"middle",className:(qe==null?void 0:qe.length)>1?"mb30":`${Ee.Z.hide}`},Fe.createElement(Ne.default.Item,{name:"is_ordered"},Fe.createElement(we,null)),Fe.createElement(Re.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")),Fe.createElement("div",{onClick:()=>ye(!0)},Fe.createElement(Ne.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Le}))))}},12035:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return dt}});var y=z(59301),he=z(77019),ce=z(5269),Re=z(28284),ve=z(42168),me=z(78130),pe=z(59301),Ne=Object.defineProperty,be=Object.defineProperties,le=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(Se,Ie,Xe)=>Ie in Se?Ne(Se,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Se[Ie]=Xe,Oe=(Se,Ie)=>{for(var Xe in Ie||(Ie={}))Ae.call(Ie,Xe)&&ze(Se,Xe,Ie[Xe]);if(je)for(var Xe of je(Ie))it.call(Ie,Xe)&&ze(Se,Xe,Ie[Xe]);return Se},Ee=(Se,Ie)=>be(Se,le(Ie)),Pe=(Se,Ie)=>{var Xe={};for(var He in Se)Ae.call(Se,He)&&Ie.indexOf(He)<0&&(Xe[He]=Se[He]);if(Se!=null&&je)for(var He of je(Se))Ie.indexOf(He)<0&&it.call(Se,He)&&(Xe[He]=Se[He]);return Xe};const Fe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ve=({value:Se,onChange:Ie,form:Xe})=>{const He=(Se==null?void 0:Se.is_answer)===1,rt=Se==null?void 0:Se.choice_text,st=()=>{const Je=Xe.getFieldsValue().choices.map(et=>({choice_text:et.choice_text,is_answer:0}));Xe.setFieldsValue({choices:Je}),Ie(Ee(Oe({},Se),{is_answer:1}))};return pe.createElement(he.Z,{className:ve.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},pe.createElement(ce.Z,{onClick:st,className:`${ve.Z.choiceIndex} ${ve.Z.judgementIndex} ${He?ve.Z.activeAnswer:""}`},Fe[rt]),pe.createElement(ce.Z,{flex:1,className:`${ve.Z.editorWrap} ml15`},pe.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} ${He?ve.Z.activeJudgementAnswer:""}`},rt)),pe.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},pe.createElement("div",{onClick:st,className:`${ve.Z.setAnswerBtn} ${He?ve.Z.activeAnswer:""}`},He?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},dt=({questionTitlePlaceholder:Se,choiceKey:Ie,form:Xe})=>{const[He,rt]=(0,y.useState)(!1);return pe.createElement("div",{className:ve.Z.wrap},pe.createElement("div",{className:ve.Z.questionTitleEditorWrap},pe.createElement(Re.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},pe.createElement(me.h,{scrollId:"name",watch:!0,height:140,placeholder:Se}))),pe.createElement(Re.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},pe.createElement(Re.default.List,{name:"choices",rules:[{validator(st,Je){return Je.some(ge=>(ge==null?void 0:ge.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},st=>pe.createElement("div",{id:"choices"},st.map(Je=>{var et=Je,{key:ge,name:Qe}=et,we=Pe(et,["key","name"]);return pe.createElement(Re.default.Item,Ee(Oe({},we),{key:ge,name:Qe,noStyle:!0}),pe.createElement(Ve,{form:Xe}))})))),pe.createElement("div",{onClick:()=>rt(!0)},pe.createElement(Re.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},pe.createElement(me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:He}))))}},78130:function(En,Vt,z){"use strict";z.d(Vt,{h:function(){return Oe},x:function(){return Ee}});var y=z(39116),he=z(42168),ce=z(35883),Re=z(59301),ve=Object.defineProperty,me=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,je=(Pe,Fe,Ve)=>Fe in Pe?ve(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Pe[Fe]=Ve,Ae=(Pe,Fe)=>{for(var Ve in Fe||(Fe={}))be.call(Fe,Ve)&&je(Pe,Ve,Fe[Ve]);if(Ne)for(var Ve of Ne(Fe))le.call(Fe,Ve)&&je(Pe,Ve,Fe[Ve]);return Pe},it=(Pe,Fe)=>me(Pe,pe(Fe)),ze=(Pe,Fe)=>{var Ve={};for(var dt in Pe)be.call(Pe,dt)&&Fe.indexOf(dt)<0&&(Ve[dt]=Pe[dt]);if(Pe!=null&&Ne)for(var dt of Ne(Pe))Fe.indexOf(dt)<0&&le.call(Pe,dt)&&(Ve[dt]=Pe[dt]);return Ve};const Oe=Pe=>{var Fe=Pe,{value:Ve,onChange:dt,scrollId:Se}=Fe,Ie=ze(Fe,["value","onChange","scrollId"]);return Re.createElement("div",{id:Se||""},Re.createElement(y.Z,it(Ae({},Ie),{defaultValue:Ve,onChange:(Xe,He)=>{He!=null&&He.length?dt(Xe,He):dt(Xe)}})))},Ee=({value:Pe,onChange:Fe,placeholder:Ve,height:dt=140,isEdit:Se,miniToolbar:Ie,watch:Xe=!0})=>Se?Re.createElement(y.Z,{watch:Xe,isFocus:!0,height:dt||void 0,placeholder:Ve,defaultValue:Pe,onChange:Fe,miniToolbar:Ie}):Re.createElement("div",{style:{cursor:"pointer"}},Pe?Re.createElement(ce.Z,{className:he.Z.inputBorder,value:Pe}):Re.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},Ve))},90775:function(En,Vt,z){"use strict";z.d(Vt,{W:function(){return et}});var y=z(59301),he=z(6767),ce=z(96599),Re=z(28284),ve=z(58755),me=z(77019),pe=z(5269),Ne=z(25399),be=z(37568),le=z(4875),je=z(42168),Ae=z(78130),it=z(39116),ze=z(61485),Oe=Object.defineProperty,Ee=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Se=(ge,Qe,we)=>Qe in ge?Oe(ge,Qe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ge[Qe]=we,Ie=(ge,Qe)=>{for(var we in Qe||(Qe={}))Ve.call(Qe,we)&&Se(ge,we,Qe[we]);if(Fe)for(var we of Fe(Qe))dt.call(Qe,we)&&Se(ge,we,Qe[we]);return ge},Xe=(ge,Qe)=>Ee(ge,Pe(Qe)),He=(ge,Qe)=>{var we={};for(var se in ge)Ve.call(ge,se)&&Qe.indexOf(se)<0&&(we[se]=ge[se]);if(ge!=null&&Fe)for(var se of Fe(ge))Qe.indexOf(se)<0&&dt.call(ge,se)&&(we[se]=ge[se]);return we};const rt=ge=>{var Qe=ge,{value:we,onChange:se}=Qe,ft=He(Qe,["value","onChange"]);const $e=tt=>{se([tt])};return y.createElement(it.Z,Xe(Ie({},ft),{defaultValue:we==null?void 0:we[0],onChange:$e}))},st=ge=>{if(!ge)return!1;if(/^s*$/.test(ge)||ge.trim()===""){he.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 ge==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Je=({value:ge=[],onClose:Qe})=>y.createElement(ce.default,{closable:!0,onClose:Qe,className:je.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ge.join(" \u6216 "))),et=({questionTitlePlaceholder:ge,form:Qe,showKeywords:we,isMustKeyWords:se=we})=>{const[ft,$e]=(0,y.useState)(!1),[tt,Nt]=(0,y.useState)(""),Le=Re.default.useWatch("use_keywords",Qe),ye=Re.default.useWatch("question_score",Qe);return y.createElement("div",{className:je.Z.wrap},y.createElement("div",{className:je.Z.questionTitleEditorWrap},y.createElement(Re.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:ge}))),y.createElement(Re.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(rt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),we&&!se&&y.createElement(Re.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(ve.Z,{defaultChecked:!0})),we&&se&&y.createElement(me.Z,{align:"middle",className:"mb30"},y.createElement(Re.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(ve.Z,null)),y.createElement(pe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(pe.Z,null,y.createElement(Ne.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"},y.createElement(ze.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Le||!se)&&y.createElement(Re.default.List,{name:"keywords",rules:[{validator(Et,Zt){return se?Zt!=null&&Zt.length?(Zt==null?void 0:Zt.reduce((Ce,at)=>Ce+at.score,0))>parseFloat(ye)?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()}}]},(Et,{add:Zt,remove:pt})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${je.Z.title} mb10`},se?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(me.Z,{align:"middle",className:"font14 mb30"},y.createElement(pe.Z,{flex:1},y.createElement(be.default,{value:tt,onChange:Ce=>{Nt(Ce.target.value)},maxLength:500,allowClear:!0,onPressEnter:Ce=>{var at,qe,zt,ut;const ct=`${(at=Ce.target)==null?void 0:at.value}`,lt=(zt=(qe=ct==null?void 0:ct.split("|"))==null?void 0:qe.filter(ae=>!!ae))==null?void 0:zt.map(ae=>ae==null?void 0:ae.trim()),nn=Qe.getFieldValue("keywords"),kt=((ut=nn==null?void 0:nn.map(ae=>ae==null?void 0:ae.keyword))==null?void 0:ut.flat())||[];for(const ae of lt)if(kt.includes(ae)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}st(ct)&&(Zt({keyword:lt,score:1}),Nt(""))},className:je.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"})),y.createElement(pe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Et.map(Ce=>{var at=Ce,{key:qe,name:zt}=at,ut=He(at,["key","name"]);return y.createElement(me.Z,{key:qe,className:"mb20",style:{marginRight:148}},y.createElement(pe.Z,{flex:1},y.createElement(me.Z,{align:"middle",justify:"space-between"},y.createElement(Re.default.Item,Xe(Ie({},ut),{name:[zt,"keyword"]}),y.createElement(Je,{onClose:()=>pt(zt)})),se&&y.createElement(Re.default.Item,Xe(Ie({},ut),{name:[zt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:je.Z.blankInputNumberWrapper}),y.createElement(le.Z,{className:je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>$e(!0)},y.createElement(Re.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ft}))))}},18747:function(En,Vt,z){"use strict";z.d(Vt,{tc:function(){return jt.t},uh:function(){return y.u},rL:function(){return Pt},u8:function(){return ce.u},ZZ:function(){return he.Z},Wk:function(){return Re.W}});var y=z(8338),he=z(12035),ce=z(64780),Re=z(90775),ve=z(59301),me=z(8848),pe=z(28284),Ne=z(77019),be=z(5269),le=z(4875),je=z(25399),Ae=z(75727),it=z(42168),ze=z(12893),Oe=z(78130),Ee=z(62957),Pe=z(37568),Fe=z(58755),Ve=z(7939),dt=z(32134),Se=z(59301),Ie=Object.defineProperty,Xe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,et=(vt,Lt,Rt)=>Lt in vt?Ie(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):vt[Lt]=Rt,ge=(vt,Lt)=>{for(var Rt in Lt||(Lt={}))st.call(Lt,Rt)&&et(vt,Rt,Lt[Rt]);if(rt)for(var Rt of rt(Lt))Je.call(Lt,Rt)&&et(vt,Rt,Lt[Rt]);return vt},Qe=(vt,Lt)=>Xe(vt,He(Lt)),we=(vt,Lt)=>{var Rt={};for(var sn in vt)st.call(vt,sn)&&Lt.indexOf(sn)<0&&(Rt[sn]=vt[sn]);if(vt!=null&&rt)for(var sn of rt(vt))Lt.indexOf(sn)<0&&Je.call(vt,sn)&&(Rt[sn]=vt[sn]);return Rt};const se=({value:vt,onChange:Lt,position:Rt,removeBlank:sn})=>{const Sn=Cn=>{Ee.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:it.Z.modal,onOk:()=>{const Ct=[...vt];Ct.splice(Cn,1),Ct.length===0?sn(Rt-1):Lt(Ct)}})},un=()=>{const Cn=[...vt];Cn.push(""),Lt(Cn)};return Se.createElement(Ne.Z,{className:"ml20"},Se.createElement(be.Z,{flex:1},vt==null?void 0:vt.map((Cn,Ct)=>Se.createElement(Ne.Z,{key:`${Cn}_${Ct}`,className:"mb20"},Se.createElement(Pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Cn,autoSize:{maxRows:3},maxLength:1e3,onBlur:It=>{const Gt=[...vt],tn=It.target.value.trim();Gt[Ct]=tn,Lt(Gt)}}),Se.createElement(je.Z,{title:"\u5220\u9664"},Se.createElement(ze.Z,{className:it.Z.deleteIcon,style:{marginLeft:15,visibility:Rt===1&&Ct===0?"hidden":"visible"},onClick:()=>Sn(Ct)})),Se.createElement(je.Z,{title:"\u65B0\u589E\u7B54\u6848"},Se.createElement(dt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ct===0?"visible":"hidden"},onClick:()=>{un()}}))))))},ft=({value:vt=!0,onChange:Lt})=>Se.createElement(Fe.Z,{checked:!vt,onChange:Rt=>{Lt(!Rt)}}),$e=({questionTitlePlaceholder:vt,form:Lt,name:Rt,scoreByBlank:sn=!1,answerKey:Sn,titleKey:un="name",analysisKey:Cn="analysis",isOrdered:Ct="is_ordered"})=>{var It,Gt;const[tn,Wt]=(0,ve.useState)(!1),mn=()=>{const Vn=Lt.getFieldValue(["sub_item_banks",...Sn]);Lt.setFieldValue(["sub_item_banks",...Sn],Vn==null?void 0:Vn.map((Wn,ur)=>Qe(ge({},Wn),{position:ur+1})))},an=(0,ve.useRef)(),yn=(Vn,Wn)=>{for(let ur=0;ur<Vn;ur++)an.current({position:null,answer_text:[""]},Wn+ur);mn()},jn=(0,ve.useRef)(),Nn=Vn=>{jn.current(Vn),mn()},$n=(Gt=(It=Lt.getFieldValue("sub_item_banks"))==null?void 0:It[Sn==null?void 0:Sn[0]])==null?void 0:Gt[Sn==null?void 0:Sn[1]];return Se.createElement("div",{className:it.Z.wrap},Se.createElement("div",{className:it.Z.questionTitleEditorWrap},Se.createElement(pe.default.Item,{label:"\u9898\u5E72",name:un,labelCol:{span:24},rules:[{required:!0}]},Se.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:vt,showNullButton:!0,onAddBlank:()=>{const Vn=Lt.getFieldValue(["sub_item_banks",...Sn]);yn(1,Vn==null?void 0:Vn.length)}}))),Se.createElement(pe.default.List,{name:Sn,rules:[{validator(Vn,Wn){if((Wn==null?void 0:Wn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ur of Wn){const{answer_text:rr}=ur||{};if(rr!=null&&rr.some(hn=>(hn==null?void 0:hn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Vn,{add:Wn,remove:ur},{errors:rr})=>(an.current=Wn,jn.current=ur,Se.createElement(Se.Fragment,null,Se.createElement(pe.default.Item,{label:Se.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Vn.map((hn,Bn)=>{var zn=hn,{key:Hn,name:St}=zn,$t=we(zn,["key","name"]);return Se.createElement(Ne.Z,{align:"top",key:Hn},Se.createElement(be.Z,{className:`${it.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Bn+1),Se.createElement(be.Z,{flex:1},Se.createElement(Ne.Z,{align:"top",justify:"space-between"},Se.createElement(be.Z,{flex:1},Se.createElement(pe.default.Item,Qe(ge({},$t),{name:[St,"answer_text"],noStyle:!0}),Se.createElement(se,{removeBlank:Nn,position:Bn+1}))),sn&&Se.createElement(be.Z,{flex:"224px"},Se.createElement(pe.default.Item,Qe(ge({},$t),{name:[St,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.Z.blankInputNumberWrapper}),Se.createElement(le.Z,{className:it.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Se.createElement(pe.default.Item,Qe(ge({},$t),{name:[St,"position"],noStyle:!0}),Se.createElement(Pe.default,{type:"hidden"}))))})))),Se.createElement(Ve.ZP,{className:"mb20",onClick:()=>yn(1,$n==null?void 0:$n.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Se.createElement(Ne.Z,{align:"middle"},Se.createElement(pe.default.Item,{name:[Rt,"downcase"],valuePropName:"checked"},Se.createElement(Fe.Z,null)),Se.createElement(be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Se.createElement(Ne.Z,{align:"middle"},Se.createElement(pe.default.Item,{name:[Rt,"no_space"],valuePropName:"checked"},Se.createElement(Fe.Z,null)),Se.createElement(be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),($n==null?void 0:$n.length)>1&&Se.createElement(Ne.Z,{align:"middle",className:($n==null?void 0:$n.length)>1?"mb30":`${it.Z.hide}`},Se.createElement(pe.default.Item,{name:Ct},Se.createElement(ft,null)),Se.createElement(be.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")),Se.createElement("div",{className:"mt30",onClick:()=>Wt(!0)},Se.createElement(pe.default.Item,{name:Cn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Se.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:tn}))))};var tt=z(59301),Nt=Object.defineProperty,Le=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Ce=(vt,Lt,Rt)=>Lt in vt?Nt(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):vt[Lt]=Rt,at=(vt,Lt)=>{for(var Rt in Lt||(Lt={}))Zt.call(Lt,Rt)&&Ce(vt,Rt,Lt[Rt]);if(Et)for(var Rt of Et(Lt))pt.call(Lt,Rt)&&Ce(vt,Rt,Lt[Rt]);return vt},qe=(vt,Lt)=>Le(vt,ye(Lt)),zt=(vt,Lt)=>{var Rt={};for(var sn in vt)Zt.call(vt,sn)&&Lt.indexOf(sn)<0&&(Rt[sn]=vt[sn]);if(vt!=null&&Et)for(var sn of Et(vt))Lt.indexOf(sn)<0&&pt.call(vt,sn)&&(Rt[sn]=vt[sn]);return Rt};const ut={\u6B63\u786E:"T",\u9519\u8BEF:"F"},ct=({value:vt,onChange:Lt,form:Rt,choiceKey:sn})=>{const Sn=(vt==null?void 0:vt.is_answer)===1,un=vt==null?void 0:vt.choice_text,Cn=()=>{var Ct;const It=(Ct=Rt==null?void 0:Rt.getFieldValue(["sub_item_banks",...sn]))==null?void 0:Ct.map(Gt=>({choice_text:Gt.choice_text,is_answer:0}));Rt==null||Rt.setFieldValue(["sub_item_banks",...sn],It),Lt(qe(at({},vt),{is_answer:1}))};return tt.createElement(Ne.Z,{className:it.Z.choiceWrap,align:"middle",wrap:!1},tt.createElement(be.Z,{onClick:Cn,className:`${it.Z.choiceIndex} ${it.Z.judgementIndex} ${Sn?it.Z.activeAnswer:""}`},ut[un]),tt.createElement(be.Z,{flex:1,className:`${it.Z.editorWrap} ml15`},tt.createElement("div",{className:`${it.Z.inputBorder} ${it.Z.placeholder} ${Sn?it.Z.activeJudgementAnswer:""}`},un)),tt.createElement(be.Z,{flex:"0 0 auto",className:"ml15"},tt.createElement("div",{onClick:Cn,className:`${it.Z.setAnswerBtn} ${Sn?it.Z.activeAnswer:""}`},Sn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},lt=({questionTitlePlaceholder:vt,choiceKey:Lt="choices",form:Rt,titleKey:sn="name",analysisKey:Sn="analysis"})=>{const[un,Cn]=(0,ve.useState)(!1);return tt.createElement("div",{className:it.Z.wrap},tt.createElement("div",{className:it.Z.questionTitleEditorWrap},tt.createElement(pe.default.Item,{label:"\u9898\u5E72",name:sn,labelCol:{span:24},rules:[{required:!0}]},tt.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:vt}))),tt.createElement(pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},tt.createElement(pe.default.List,{name:Lt,rules:[{validator(Ct,It){return It.some(tn=>(tn==null?void 0:tn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ct=>tt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Ct.map(It=>{var Gt=It,{key:tn,name:Wt}=Gt,mn=zt(Gt,["key","name"]);return tt.createElement(pe.default.Item,qe(at({},mn),{key:tn,name:Wt,noStyle:!0}),tt.createElement(ct,{form:Rt,choiceKey:Lt}))})))),tt.createElement("div",{className:"mt30",onClick:()=>Cn(!0)},tt.createElement(pe.default.Item,{name:Sn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},tt.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:un}))))};var nn=z(6767),kt=z(96599),ae=z(39116),ne=z(61485),te=Object.defineProperty,ie=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,gt=(vt,Lt,Rt)=>Lt in vt?te(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):vt[Lt]=Rt,_e=(vt,Lt)=>{for(var Rt in Lt||(Lt={}))ue.call(Lt,Rt)&&gt(vt,Rt,Lt[Rt]);if(re)for(var Rt of re(Lt))Me.call(Lt,Rt)&&gt(vt,Rt,Lt[Rt]);return vt},ke=(vt,Lt)=>ie(vt,fe(Lt)),ot=(vt,Lt)=>{var Rt={};for(var sn in vt)ue.call(vt,sn)&&Lt.indexOf(sn)<0&&(Rt[sn]=vt[sn]);if(vt!=null&&re)for(var sn of re(vt))Lt.indexOf(sn)<0&&Me.call(vt,sn)&&(Rt[sn]=vt[sn]);return Rt};const ht=vt=>{var Lt=vt,{value:Rt,onChange:sn}=Lt,Sn=ot(Lt,["value","onChange"]);const un=Cn=>{sn([Cn])};return ve.createElement(ae.Z,ke(_e({},Sn),{defaultValue:Rt==null?void 0:Rt[0],onChange:un}))},wt=vt=>{if(!vt)return!1;let Lt=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 vt==="|"?(nn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Ze=({value:vt=[],onClose:Lt})=>ve.createElement(kt.default,{closable:!0,onClose:Lt,className:it.Z.keywordTag},ve.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},vt.join(" \u6216 "))),We=({questionTitlePlaceholder:vt,form:Lt,showKeywords:Rt,isMustKeyWords:sn=Rt,titleKey:Sn="name",analysisKey:un="analysis",answerTexts:Cn="answer_texts",keywords:Ct="keywords",useKeywords:It="use_keywords",indexs:Gt})=>{const[tn,Wt]=(0,ve.useState)(!1),[mn,an]=(0,ve.useState)(""),[yn,jn]=(0,ve.useState)(!1),Nn=pe.default.useWatch("question_score",Lt);return ve.createElement("div",{className:it.Z.wrap},ve.createElement("div",{className:it.Z.questionTitleEditorWrap},ve.createElement(pe.default.Item,{label:"\u9898\u5E72",name:Sn,labelCol:{span:24},rules:[{required:!0}]},ve.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:vt}))),ve.createElement(pe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Cn,labelCol:{span:24}},ve.createElement(ht,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Rt&&!sn&&ve.createElement(pe.default.Item,{hidden:!0,name:It,valuePropName:"checked"},ve.createElement(Fe.Z,{defaultChecked:!0})),Rt&&sn&&ve.createElement(Ne.Z,{align:"middle",className:"mb30"},ve.createElement(pe.default.Item,{name:It,valuePropName:"checked"},ve.createElement(Fe.Z,{onChange:()=>{var $n,Vn,Wn,ur,rr,hn;console.log(Lt.getFieldsValue()),jn((Wn=(Vn=($n=Lt.getFieldsValue())==null?void 0:$n.sub_item_banks)==null?void 0:Vn[Gt])==null?void 0:Wn.use_keywords),console.log((hn=(rr=(ur=Lt.getFieldsValue())==null?void 0:ur.sub_item_banks)==null?void 0:rr[Gt])==null?void 0:hn.use_keywords),console.log(yn)}})),ve.createElement(be.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ve.createElement(be.Z,null,ve.createElement(je.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"},ve.createElement(ne.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(yn||!sn)&&ve.createElement(pe.default.List,{name:Ct,rules:[{validator($n,Vn){return sn?Vn!=null&&Vn.length?(Vn==null?void 0:Vn.reduce((ur,rr)=>ur+rr.score,0))>parseFloat(Nn)?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()}}]},($n,{add:Vn,remove:Wn})=>ve.createElement(ve.Fragment,null,ve.createElement("div",{className:`${it.Z.title} mb10`},sn?"\u5173\u952E\u8BCD":ve.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ve.createElement(Ne.Z,{align:"middle",className:"font14 mb30"},ve.createElement(be.Z,{flex:1},ve.createElement(Pe.default,{value:mn,onChange:ur=>{an(ur.target.value)},maxLength:50,allowClear:!0,onPressEnter:ur=>{var rr,hn,Bn,zn;const Hn=`${(rr=ur.target)==null?void 0:rr.value}`,St=(Bn=(hn=Hn==null?void 0:Hn.split("|"))==null?void 0:hn.filter(Ft=>!!Ft))==null?void 0:Bn.map(Ft=>Ft==null?void 0:Ft.trim()),$t=Lt.getFieldValue(["sub_item_banks",...Ct]),nt=((zn=$t==null?void 0:$t.map(Ft=>Ft==null?void 0:Ft.keyword))==null?void 0:zn.flat())||[];for(const Ft of St)if(nt.includes(Ft)){nn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}wt(Hn)&&(Vn({keyword:St,score:1}),an(""))},className:it.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"})),ve.createElement(be.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),$n.map(ur=>{var rr=ur,{key:hn,name:Bn}=rr,zn=ot(rr,["key","name"]);return ve.createElement(Ne.Z,{key:hn,className:"mb20",style:{marginRight:148}},ve.createElement(be.Z,{flex:1},ve.createElement(Ne.Z,{align:"middle",justify:"space-between"},ve.createElement(pe.default.Item,ke(_e({},zn),{name:[Bn,"keyword"]}),ve.createElement(Ze,{onClose:()=>Wn(Bn)})),sn&&ve.createElement(pe.default.Item,ke(_e({},zn),{name:[Bn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.Z.blankInputNumberWrapper}),ve.createElement(le.Z,{className:it.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ve.createElement("div",{onClick:()=>Wt(!0)},ve.createElement(pe.default.Item,{name:un,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ve.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:tn}))))};var Mt=z(59301),Ut=Object.defineProperty,cn=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,Ye=(vt,Lt,Rt)=>Lt in vt?Ut(vt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):vt[Lt]=Rt,Ot=(vt,Lt)=>{for(var Rt in Lt||(Lt={}))fn.call(Lt,Rt)&&Ye(vt,Rt,Lt[Rt]);if(_t)for(var Rt of _t(Lt))qt.call(Lt,Rt)&&Ye(vt,Rt,Lt[Rt]);return vt},Jt=(vt,Lt)=>cn(vt,ln(Lt)),on=(vt,Lt)=>{var Rt={};for(var sn in vt)fn.call(vt,sn)&&Lt.indexOf(sn)<0&&(Rt[sn]=vt[sn]);if(vt!=null&&_t)for(var sn of _t(vt))Lt.indexOf(sn)<0&&qt.call(vt,sn)&&(Rt[sn]=vt[sn]);return Rt};const{Panel:Ge}=me.default,Pt=({questionTitlePlaceholder:vt,choiceKey:Lt,form:Rt,withScore:sn})=>{const[Sn,un]=(0,ve.useState)([]),Cn=Ct=>{un(Ct)};return Mt.createElement("div",{className:it.Z.wrap},Mt.createElement("div",{className:it.Z.questionTitleEditorWrap},Mt.createElement(pe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Mt.createElement(Oe.h,{scrollId:"name",watch:!0,height:140,placeholder:vt}))),Mt.createElement(pe.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Mt.createElement(pe.default.List,{name:"sub_item_banks",rules:[{validator(Ct,It){return It?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ct,{add:It,remove:Gt,move:tn})=>{const Wt=Rt.getFieldValue("sub_item_banks");return Mt.createElement(Mt.Fragment,null,Mt.createElement(me.default,{className:Ct.length>0?it.Z.collapseWrapper:"",bordered:!1,activeKey:Sn,onChange:Cn,expandIcon:({isActive:mn})=>Mt.createElement("i",{className:`iconfont icon-weizhankai ${mn?it.Z.open:it.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Ct.map((mn,an)=>{var yn=mn,{key:jn,name:Nn}=yn,$n=on(yn,["key","name"]),Vn,Wn,ur,rr,hn,Bn,zn,Hn,St,$t;return Mt.createElement(Ge,{className:it.Z.panel,forceRender:!0,header:Mt.createElement("div",{className:it.Z.panelHeader},"\u7B2C",an+1,"\u5C0F\u9898",Mt.createElement("span",null,"\uFF08",((Vn=Wt==null?void 0:Wt[Nn])==null?void 0:Vn.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Wn=Wt==null?void 0:Wt[Nn])==null?void 0:Wn.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((ur=Wt==null?void 0:Wt[Nn])==null?void 0:ur.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((rr=Wt==null?void 0:Wt[Nn])==null?void 0:rr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Nn,extra:Mt.createElement(Ne.Z,{align:"middle",onClick:nt=>nt.stopPropagation()},sn&&Mt.createElement(be.Z,null,Mt.createElement(pe.default.Item,Jt(Ot({},$n),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Nn,"question_score"],className:it.Z.blankInputNumberWrapper}),Mt.createElement(le.Z,{className:it.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Mt.createElement(be.Z,null,Mt.createElement(Ne.Z,{align:"middle",className:"pl40",justify:"end"},an!==0&&Mt.createElement("div",{onClick:()=>{var nt;tn(an,an-1);const Ft=(nt=Rt.getFieldValue("sub_item_banks"))==null?void 0:nt.map((Ke,Tt)=>(Ct.map((Yt,Rn)=>{Tt===Rn&&(Ke.q_position=Number(Yt.name)+1)}),Ke));Rt.setFieldValue("sub_item_banks",Ft)}},Mt.createElement(je.Z,{title:"\u4E0A\u79FB"},Mt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),an<Ct.length-1&&Mt.createElement("div",{onClick:()=>{var nt;tn(an,an+1);const Ft=(nt=Rt.getFieldValue("sub_item_banks"))==null?void 0:nt.map((Ke,Tt)=>(Ct.map((Yt,Rn)=>{Tt===Rn&&(Ke.q_position=Number(Yt.name)+1)}),Ke));Rt.setFieldValue("sub_item_banks",Ft)},className:an===0?"":"ml15"},Mt.createElement(je.Z,{title:"\u4E0B\u79FB"},Mt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Mt.createElement(be.Z,null,Mt.createElement(je.Z,{title:"\u5220\u9664"},Mt.createElement(ze.Z,{className:`${it.Z.deleteIcon} ml15`,onClick:()=>Gt(Nn)}))))},Mt.createElement(pe.default.Item,Jt(Ot({},$n),{name:Nn}),(((hn=Wt==null?void 0:Wt[Nn])==null?void 0:hn.item_type)=="SINGLE"||((Bn=Wt==null?void 0:Wt[Nn])==null?void 0:Bn.item_type)=="MULTIPLE")&&Mt.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((zn=Wt==null?void 0:Wt[Nn])==null?void 0:zn.item_type)=="MULTIPLE",form:Rt,choiceKey:[Nn,"choices"],titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],choiceOptionsPath:["sub_item_banks",Nn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Hn=Wt==null?void 0:Wt[Nn])==null?void 0:Hn.item_type)=="COMPLETION"&&Mt.createElement($e,{form:Rt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Nn,titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],isOrdered:[Nn,"is_ordered"],answerKey:[Nn,"standard_answers"]}),((St=Wt==null?void 0:Wt[Nn])==null?void 0:St.item_type)=="JUDGMENT"&&Mt.createElement(lt,{form:Rt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],choiceKey:[Nn,"choices"]}),(($t=Wt==null?void 0:Wt[Nn])==null?void 0:$t.item_type)=="SUBJECTIVE"&&Mt.createElement(We,{showKeywords:!0,isMustKeyWords:!1,form:Rt,titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],answerTexts:[Nn,"answer_texts"],useKeywords:[Nn,"use_keywords"],keywords:[Nn,"keywords"],indexs:Nn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Ct.length<20&&Mt.createElement(Ae.Z,{menu:{items:[{label:Mt.createElement("div",{onClick:()=>{It({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),un([Ct==null?void 0:Ct.length,...Sn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Mt.createElement("div",{onClick:()=>{It({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),un([Ct==null?void 0:Ct.length,...Sn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Mt.createElement("div",{onClick:()=>{It({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),un([Ct==null?void 0:Ct.length,...Sn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Mt.createElement("div",{onClick:()=>{It({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),un([Ct==null?void 0:Ct.length,...Sn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Mt.createElement("div",{onClick:()=>{It({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),un([Ct==null?void 0:Ct.length,...Sn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(mn=>mn.show).map(mn=>({label:mn.label,key:mn.key}))}},Mt.createElement("div",{className:`${it.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var jt=z(9556)},35883:function(En,Vt,z){"use strict";z.d(Vt,{z:function(){return et},Z:function(){return ge}});var y=z(59301),he=z(46214),ce=z(20047),Re=z(64018),ve=z(16471),me=z(14185),pe=z(76406),Ne=z(15342),be=z(44104),le=z(7939),je=z(1012),Ae=z(86974),it=z(59301),Oe=({html:Qe})=>{const we=(0,y.useRef)(null),se=(0,y.useRef)(null),ft=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,y.useEffect)(()=>{const $e=we.current.attachShadow({mode:"open"});se.current=document.createElement("div"),se.current.className="markdown-body",se.current.innerHTML=Qe,$e.appendChild(se.current);const tt=document.createElement("style");return tt.textContent=ft,$e.appendChild(tt),()=>{$e.innerHTML=""}},[]),(0,y.useEffect)(()=>{se.current&&(se.current.innerHTML=Qe)},[Qe]),it.createElement("div",{ref:we})};function Ee(Qe){const we=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],se=new RegExp(`\\b(${we.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ft=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Qe.replace(se,"").replace(ft,"").trim()}var Pe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Fe=Object.defineProperty,Ve=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ie=(Qe,we,se)=>we in Qe?Fe(Qe,we,{enumerable:!0,configurable:!0,writable:!0,value:se}):Qe[we]=se,Xe=(Qe,we)=>{for(var se in we||(we={}))dt.call(we,se)&&Ie(Qe,se,we[se]);if(Ve)for(var se of Ve(we))Se.call(we,se)&&Ie(Qe,se,we[se]);return Qe};const He="@\u2581\u2581@",rt="@\u2581@",st=/<pre[^>]*>/g;function Je(Qe){let we=document.createElement("div");return we.innerHTML=Qe,we.childNodes.length===0?"":we.childNodes[0].nodeValue}const et=(Qe,we)=>{Qe=Qe||"";const se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ft=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,tt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return we?Qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(se,(Nt,Le,ye,Et,Zt,pt,Ce)=>{const at=Le||Et||pt,qe=ye||Zt||Ce||"?";return me.Z.API_SERVER+"/api/attachments/"+at+qe+"&t="+(0,pe.Jn)(at,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Qe=Qe.replace(tt,(Nt,Le,ye,Et,Zt,pt,Ce)=>{const at=Le||Et||pt,qe=ye||Zt||Ce||"?";return me.Z.API_SERVER+"/attachments/download/"+at+qe+"&t="+(0,pe.Jn)(at,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(se,(Nt,Le,ye,Et,Zt,pt,Ce)=>{const at=Le||Et||pt,qe=ye||Zt||Ce||"?";return me.Z.API_SERVER+"/api/attachments/"+at+qe+"&t="+(0,pe.Jn)(at,Date.now())+(Nt.indexOf(")")>-1?")":"&")}).replace(ft,(Nt,Le,ye,Et,Zt)=>{const pt=Le||Et,Ce=ye||Zt||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+pt+Ce+pt+Ce+"&t="+(0,pe.Jn)(pt,Date.now())}).replace($e,(Nt,Le,ye,Et,Zt)=>{const pt=Le||Et,Ce=ye||Zt||"";return"("+me.Z.API_SERVER+"/files/uploads/"+pt+Ce+pt+Ce+"&t="+(0,pe.Jn)(pt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Qe)};var ge=({value:Qe="",edit:we=!1,className:se,showTextOnly:ft,showLines:$e,style:tt={},stylesPrev:Nt={},highlightKeywords:Le,showProgramFill:ye,isProgramFill:Et,disabledFill:Zt=!1,programFillValue:pt,openEditor:Ce=()=>{},onFillChange:at=ut=>{},onFillBlur:qe=()=>{},onFillFocus:zt=()=>{}})=>{let ut=Ee(String(Qe||""));const ct=(0,y.useRef)(),lt=(0,y.useRef)(),[nn,kt]=(0,y.useState)(""),[ae,ne]=(0,y.useState)("office"),[te,ie]=(0,y.useState)([]),fe=(0,y.useRef)("a"+(0,je.Z)()),re={},ue=_t=>/<style[\s\S]*?>/i.test(_t||""),Me=(_t,fn,qt)=>{const Ye=document.createElement(_t===rt?"input":"textarea");Ye.style.width="100%",Ye.style.height=_t===rt?"40px":"151px",Ye.rows=5,Ye.spellcheck=!1,Ye.name="edu-program-fill",Ye.placeholder="\u8BF7\u8F93\u5165",Ye.dataset.id=fn;const Ot=Object.keys(re).length;return re[Ot]=Ye,`<span class="edu-program-fill-wrap ${_t===rt?"":"show"}" style="width:${_t===rt?"600px":"100%"}" title=${qt||""}><span>${Ye.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function gt(_t){return _t=_t.replace(/!\[.*?\]\(.*?\)/g,""),_t=_t.replace(/\[.*?\]\(.*?\)/g,""),_t=_t.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),_t=_t.replace(/<embed.*?>/g,""),_t=_t.replace(/<img.*?>/g,""),_t=_t.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),_t=_t.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),_t=_t.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),_t=_t.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),_t}const _e=_t=>!ft&&ue(ut)?_t:_t.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(fn,qt){let Ye=qt.replace(/(\n|\r)/g,"").split("}"),Ot=[];return Ye.map(Jt=>{Jt!=""&&Ot.push(`.${fe.current} ${Jt}`)}),`<style>${Ot.join("}")}</style>`}),ke=(0,y.useMemo)(()=>{(0,ce.Iy)();try{const Ye=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ot=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,on=/\(\/attachments\/download\//g;ut=ut.replace(on,"("+me.Z.API_SERVER+"/attachments/download/").replace(Ye,"("+me.Z.API_SERVER+"/api/attachments/").replace(Ot,'"'+me.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+me.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ct.current.style.display="none"}catch(Ye){}if(ye){let Ye=-1;return ut=ut.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Ot,Jt,on){var Ge;return++Ye,Me(Ot,Ye,(Ge=pt==null?void 0:pt[Ye])==null?void 0:Ge.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${_e(ut||"")}</pre>`}let _t=_e(ut);_t=(0,ce.ZP)(_t);const fn=(0,ce.ez)();ut.match(/\[TOC\]/)&&(_t=_t.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),_t=_t.replace(/(__special_katext_id_\d+__)/g,(Ye,Ot)=>{const{type:Jt,expression:on}=fn[Ot];return(0,Ne.renderToString)(Je(on)||"",{displayMode:Jt==="block",throwOnError:!1,output:"html"})}),_t=_t.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const qt=document.createElement("div");if(qt.innerHTML=_t,ft)return qt.innerText;if(Le){const Ye=Le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ze(qt,Ye),qt.innerHTML}return setTimeout(()=>Ut(),500),qt.innerHTML},[ut,Le]);(0,y.useEffect)(()=>{We.current&&We.current.querySelectorAll(["input","textarea"]).forEach(fn=>{fn.oninput=ot,fn.onblur=ht,fn.onfocus=wt})},[te]),(0,y.useEffect)(()=>{var _t,fn,qt,Ye,Ot;if(pt!=null&&pt.length)try{const Jt=We.current.querySelectorAll(".edu-program-fill-score"),on=We.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ge,Pt]of on.entries())Pt.value=((_t=pt==null?void 0:pt[Ge])==null?void 0:_t.value)||"",((fn=pt==null?void 0:pt[Ge])==null?void 0:fn.type)==="warning"?Pt.className="program-fill-warning":((qt=pt==null?void 0:pt[Ge])==null?void 0:qt.type)==="success"?Pt.className="program-fill-success":Pt.className="";for(const[Ge,Pt]of Jt.entries())Pt.innerHTML=(Ye=pt==null?void 0:pt[Ge])!=null&&Ye.score?`${(Ot=pt==null?void 0:pt[Ge])==null?void 0:Ot.score}\u5206`:"";ie(pt)}catch(Jt){console.log(Jt,"error")}},[pt]);const ot=_t=>{te[_t.target.dataset.id]=te[_t.target.dataset.id]||{},te[_t.target.dataset.id].value=_t.target.value,ie([...te]),at(te,_t.target.dataset.id)},ht=_t=>{te[_t.target.dataset.id]=te[_t.target.dataset.id]||{},te[_t.target.dataset.id].value=_t.target.value,ie([...te]),qe(te,_t.target.dataset.id)},wt=_t=>{te[_t.target.dataset.id]=te[_t.target.dataset.id]||{},te[_t.target.dataset.id].value=_t.target.value,ie([...te]),zt(te,_t.target.dataset.id)};function Ze(_t,fn){return _t.childNodes.forEach(qt=>{var Ye;if(qt.childNodes.length>0)Ze(qt,fn);else if(qt.nodeName!=="IMG")if(qt.innerHTML)qt.innerHTML=(Ye=qt.innerHTML)==null?void 0:Ye.replace(new RegExp(fn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ot=document.createElement("span");Ot.innerHTML=qt.textContent.replace(new RegExp(fn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),qt.replaceWith(Ot)}})}const We=(0,y.useRef)();ce.jb.WebkitLineClamp=$e,$e&&(tt=Xe(Xe({},tt),ce.jb));function Mt(_t){let fn=_t.target;if(fn.tagName.toUpperCase()==="A"){let qt=fn.getAttribute("href");if(qt.indexOf("office")>-1)_t.preventDefault(),kt(qt),ne("office");else if(qt.indexOf("application/pdf")>-1)_t.preventDefault(),kt(qt),ne("pdf");else if(qt.indexOf("text/html")>-1)_t.preventDefault(),kt(qt),ne("html");else if(qt.startsWith("#")){_t.preventDefault();let Ye=document.getElementById(qt.replace("#",""));Ye&&Ye.scrollIntoView(!0)}}}const Ut=()=>{var _t;const fn=(_t=We.current)==null?void 0:_t.querySelectorAll("video");fn==null||fn.forEach(qt=>{if(qt.oncontextmenu=()=>!1,qt.src.indexOf(".m3u8")>-1&&!qt.canPlayType("application/vnd.apple.mpegurl")){if(ve.ZP.isSupported()){var Ye=new ve.ZP;Ye.loadSource(qt.src),Ye.attachMedia(qt)}}})};(0,y.useEffect)(()=>{if(We.current&&ke&&ke.match(st)&&window.PR.prettyPrint(),We.current)return We.current.addEventListener("click",Mt),()=>{var _t;(_t=We.current)==null||_t.removeEventListener("click",Mt),(0,ce.AL)(),(0,ce.Iy)()}},[ke,We.current,Mt]);const cn=_t=>{_t.target.nodeName==="IMG"&&_t.target.className.indexOf("draw-flowchart")>-1?(ct.current.style.zIndex=1,ct.current.style.display="flex",ct.current.style.width=_t.target.clientWidth+"px",ct.current.style.height=_t.target.clientHeight+"px",ct.current.style.top=_t.target.offsetTop+"px",ct.current.style.left=_t.target.offsetLeft+"px",_t.target.id&&(lt.current=_t.target.id)):ct.current.style.display="none"},ln=()=>{ct.current.style.display="none"};return(0,y.useEffect)(()=>{var _t;const fn=qt=>{qt.preventDefault(),qt.clipboardData.setData("text",window.getSelection().toString())};return(_t=We.current)==null||_t.addEventListener("copy",fn),()=>{var qt;(qt=We.current)==null||qt.removeEventListener("copy",fn)}},[We.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:ln},ft&&y.createElement("div",{ref:We,className:`${Pe.mdBody} `},ke),!ft&&!ue(ke)&&y.createElement("div",{ref:We,style:Xe({},tt),onMouseOver:cn,className:`${se||""} ${Zt?"disabled-fill":""} markdown-body ${Pe.mdBody} ${fe.current}`,dangerouslySetInnerHTML:{__html:ke}}),!ft&&ue(ke)&&y.createElement(Oe,{html:ke}),y.createElement("div",{ref:ct,className:`${Pe.button} ${we?"":Pe.previewFlowChart}`},y.createElement(be.Z,null,y.createElement(le.ZP,{onClick:()=>{we?Ce(lt.current):(kt(lt.current),ne("flowChart"))}},we?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Ae.Z,{close:!0,data:nn,type:nn!=null&&nn.length?ae:"",style:Xe({},Nt),onClose:()=>kt("")}))}},71549:function(En,Vt,z){"use strict";z.d(Vt,{C:function(){return ft}});var y=z(59301),he={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},ce=z(92310),Re=z.n(ce),ve=z(62673),me=z(77019),pe=z(6767),Ne=z(25399),be=z(7939),le=z(62957),je=z(70858),Ae=z(4875),it=z(28284),ze=z(29787),Oe=z(76406),Ee=z(49317),Pe=z(15267),Fe=z(35139),Ve=z(70467),dt=Object.defineProperty,Se=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,st=($e,tt,Nt)=>tt in $e?dt($e,tt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):$e[tt]=Nt,Je=($e,tt)=>{for(var Nt in tt||(tt={}))He.call(tt,Nt)&&st($e,Nt,tt[Nt]);if(Xe)for(var Nt of Xe(tt))rt.call(tt,Nt)&&st($e,Nt,tt[Nt]);return $e},et=($e,tt)=>Se($e,Ie(tt)),ge=($e,tt,Nt)=>new Promise((Le,ye)=>{var Et=Ce=>{try{pt(Nt.next(Ce))}catch(at){ye(at)}},Zt=Ce=>{try{pt(Nt.throw(Ce))}catch(at){ye(at)}},pt=Ce=>Ce.done?Le(Ce.value):Promise.resolve(Ce.value).then(Et,Zt);pt((Nt=Nt.apply($e,tt)).next())});const Qe=ve.default.Group,we=({className:$e,title:tt,items:Nt=[],value:Le,onChange:ye})=>{const Et=(Nt==null?void 0:Nt.length)===(Le==null?void 0:Le.length),Zt=(Le==null?void 0:Le.length)>0&&(Le==null?void 0:Le.length)<(Nt==null?void 0:Nt.length),pt=Ce=>{const at=Nt.map(qe=>qe.id);ye(Ce.target.checked?at:[])};return y.createElement(me.Z,{align:"middle",className:$e},!!tt&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},tt),y.createElement(ve.default,{indeterminate:Zt,onChange:pt,checked:Et},"\u5168\u90E8"),y.createElement(Qe,{value:Le,onChange:ye},Nt.map(Ce=>y.createElement(ve.default,{className:"ml30 c-black",key:Ce.id,value:Ce.id},Ce.name,y.createElement("span",null,`(${Ce.count})`)))))};var ft=({className:$e,style:tt,dataSource:Nt})=>{var Le,ye,Et,Zt,pt,Ce,at;const[qe,zt]=(0,y.useState)({}),[ut,ct]=(0,y.useState)(!0),[lt,nn]=(0,y.useState)(!1),[kt,ae]=(0,y.useState)(!1),[ne,te]=(0,y.useState)(null),[ie,fe]=(0,y.useState)(0),[re,ue]=(0,y.useState)({}),[Me,gt]=(0,y.useState)(!0),[_e,ke]=(0,y.useState)(0),[ot,ht]=(0,y.useState)(0),[wt,Ze]=(0,y.useState)(!1),We=(0,y.useRef)(null),[Mt,Ut]=(0,y.useState)(!1),[cn,ln]=(0,y.useState)(!0),[_t,fn]=(0,y.useState)([]),qt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Ye,Ot]=(0,y.useState)(Je({},qt));(0,y.useEffect)(()=>{Nt!=null&&Nt.question_id&&zt(Nt)},[Nt==null?void 0:Nt.question_id]),(0,y.useEffect)(()=>{var Ct;if(((Ct=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ct.status)==="running"){const It=setInterval(()=>{Ge()},3e3);return()=>clearInterval(It)}},[(Le=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Le.status]),(0,y.useEffect)(()=>{var Ct;kt&&(kt===1&&(Ye.question_status=Pt.map(It=>It.value),Ye.review=jt.map(It=>It.value)),kt===2&&(Ye.exercise_question_resubmit_id=(Ct=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ct.id,ne===1&&(Ye.success_status=[1]),ne===2&&(Ye.success_status=[0])),Ot(Je({},Ye)),Jt(Ye),ht(qe!=null&&qe.is_mirror?3:10),ke(qe!=null&&qe.is_mirror?1:5))},[kt]),(0,y.useEffect)(()=>{Mt&&on()},[Mt]);const Jt=Ct=>ge(void 0,null,function*(){ct(!0);const It=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_student_list.json`,{method:"get",params:Ct});(It==null?void 0:It.status)==0&&(ue(It||[]),fe(It==null?void 0:It.count)),ct(!1)}),on=()=>ge(void 0,null,function*(){ln(!0);const Ct=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_history.json`,{method:"get"});(Ct==null?void 0:Ct.status)==0&&fn((Ct==null?void 0:Ct.data)||[]),ln(!1)}),Ge=()=>ge(void 0,null,function*(){const Ct=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_status.json`,{method:"get"});(Ct==null?void 0:Ct.status)==0&&zt(et(Je({},qe),{show_resubmit_history:!0,exercise_question_resubmit:(Ct==null?void 0:Ct.data)||{}}))}),Pt=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],jt=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],vt=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Lt=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Ct,It,Gt)=>y.createElement("span",{className:"c-black"},Gt+1+(Ye.page-1)*Ye.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Ct=>y.createElement("span",{className:"c-black"},Ct)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Ct=>y.createElement("span",{className:"c-grey-666"},Ct||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Ct=>y.createElement("span",{className:"c-black"},Ct)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Ct=>{const{label:It,color:Gt}=Pt.find(tn=>tn.value===Ct)||{};return y.createElement("span",{style:{color:Gt}},It)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Ct=>y.createElement("span",{className:"c-black"},Ct)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Ct=>y.createElement("span",{className:"c-black"},Ct)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Ct=>{const{label:It,color:Gt}=jt.find(tn=>tn.value===Ct)||{};return y.createElement("span",{style:{color:Gt}},It)}},kt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Ct=>{const{label:It,color:Gt}=vt.find(tn=>tn.value===Ct)||{};return y.createElement("span",{style:{color:Gt}},It)}}].filter(Boolean),Rt=(Ct,It,Gt)=>{Ye.page=Ct==null?void 0:Ct.current,Ye.per_page=Ct==null?void 0:Ct.pageSize,Gt!=null&&Gt.order?(Ye.sort_by=Gt==null?void 0:Gt.field,Ye.direction=(Gt==null?void 0:Gt.order)==="ascend"?"asc":"desc"):(Ye.sort_by=null,Ye.direction=null),Ot(Je({},Ye)),Jt(Ye)},sn=()=>{if(!_e){pe.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Ze(!0)},Sn=()=>ge(void 0,null,function*(){var Ct,It;if((Ct=We.current)!=null&&Ct.onVerify())return;nn(!0);const Gt=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit.json`,{method:"post",body:{keyword:Ye.keyword,question_status:Ye.question_status,review:Ye.review_status,success_status:Ye.success_status,use_max_score:Me,permits:_e,exercise_question_resubmit_id:kt===1?null:(It=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:It.id}});(Gt==null?void 0:Gt.status)==0&&(yield Ge(),pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ze(!1),ae(!1)),nn(!1)}),un=(Ct,It)=>{Ye.page=1,Ye[It]=Ct,Ot(Je({},Ye)),Jt(Ye)},Cn=["","\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 y.createElement(y.Fragment,null,y.createElement("div",{className:Re()(he.recalculation,$e),style:tt},y.createElement(Ne.Z,{title:Cn[(qe==null?void 0:qe.disable_resubmit_reason)||0]},y.createElement(be.ZP,{disabled:(qe==null?void 0:qe.disable_resubmit)||((ye=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:ye.status)==="running",onClick:()=>ae(1),icon:y.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(qe==null?void 0:qe.show_resubmit_history)&&y.createElement(y.Fragment,null,((Et=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Et.status)==="running"?y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},(Zt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Zt.rate)):y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{onClick:()=>{ae(2),te(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(pt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:pt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{onClick:()=>{ae(2),te(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Ce=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ce.fail_count),"\u4EBA"),y.createElement(Ne.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>Ut(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(le.default,{centered:!0,open:!!kt,title:`\u91CD\u65B0\u8BC4\u6D4B${kt===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>ae(!1),onOk:sn,afterClose:()=>{gt(!0),te(null),Ot(Je({},qt))}},y.createElement("div",{className:he.filter},kt===1&&y.createElement(y.Fragment,null,y.createElement("div",{className:he.tips},y.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},y.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),y.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"),y.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"),y.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")),y.createElement(we,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(re==null?void 0:re.question_status)||[],value:Ye.question_status,onChange:Ct=>un(Ct,"question_status")}),y.createElement(we,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(re==null?void 0:re.review_status)||[],value:Ye.review,onChange:Ct=>un(Ct,"review")})),kt===2&&y.createElement(y.Fragment,null,y.createElement(we,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(re==null?void 0:re.success_status)||[],value:Ye.success_status,onChange:Ct=>un(Ct,"success_status")})),y.createElement(Ve.t7,{className:he.input,style:{bottom:kt===1?10:-5},value:Ye.keyword,onChange:Ct=>un(Ct,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(je.default,{className:"mt20",columns:Lt,scroll:((at=re==null?void 0:re.data)==null?void 0:at.length)>7?{y:300}:{},dataSource:(re==null?void 0:re.data)||[],loading:ut,onChange:Rt,pagination:{total:ie,pageSize:Ye.per_page,current:Ye.page,hideOnSinglePage:!ie,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Oe.rU}}),y.createElement(me.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(ve.default,{className:"c-black",checked:Me,onChange:Ct=>gt(Ct.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,Pe.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Ae.Z,{className:"ml10 mr10",value:_e,max:ot,min:1,precision:0,onChange:Ct=>ke(Ct)}),"\u4EBA",y.createElement(Ne.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"},y.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),y.createElement(le.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:wt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:lt,destroyOnClose:!0,onOk:Sn,onCancel:()=>Ze(!1)},y.createElement(it.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.createElement(Fe.Z,{ref:Ct=>We.current=Ct}))),y.createElement(le.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Mt,width:710,onCancel:()=>Ut(!1),footer:null},y.createElement(ze.Z,{spinning:cn},y.createElement("div",{className:he.operating},_t.map((Ct,It)=>y.createElement("div",{key:It,className:he.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Ct==null?void 0:Ct.created_at),y.createElement("div",{className:"c-black"},Ct==null?void 0:Ct.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Ct==null?void 0:Ct.status)==="running"?y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},Ct==null?void 0:Ct.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Ct==null?void 0:Ct.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Ct==null?void 0:Ct.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},27878:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(59301),he={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"},ce=z(62957),Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",me=(be,le,je)=>new Promise((Ae,it)=>{var ze=Pe=>{try{Ee(je.next(Pe))}catch(Fe){it(Fe)}},Oe=Pe=>{try{Ee(je.throw(Pe))}catch(Fe){it(Fe)}},Ee=Pe=>Pe.done?Ae(Pe.value):Promise.resolve(Pe.value).then(ze,Oe);Ee((je=je.apply(be,le)).next())}),Ne=({type:be,resdata:le,onok:je,oktext:Ae,okloading:it})=>{const[ze,Oe]=(0,y.useState)(!1),{can_copy_list:Ee,can_copy_num:Pe,challenge_type:Fe,course_data_list:Ve,no_copy_list:dt,no_copy_num:Se,no_use_list:Ie,no_use_num:Xe,repeat_shixun_num:He,student_count:rt,total_num:st,use_num:Je}=le;let et=Pe>0||be==="exercise";(0,y.useEffect)(()=>{(le==null?void 0:le.student_count)>0&&Oe(!0)},[le]),console.log("---11",it),(0,y.useEffect)(()=>{it||Oe(!1)},[it]);const ge=()=>{if(be==="exercise"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.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(be==="exercise"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Je),"\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",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="shixun"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="shixun"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\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",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="subject"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="subject"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:he.orangeColor},rt)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",y.createElement("span",{className:he.orangeColor},Je)," \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",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",y.createElement("span",{className:he.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(be==="shixunpush"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(be==="shixunpush"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},rt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",y.createElement("span",{className:he.orangeColor},Je),"\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",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Qe=()=>{if(be==="exercise"||be==="subject"||be==="exercisepush"||be==="shixunpush")return y.createElement("div",{style:{marginTop:20}},Se>0&&y.createElement("div",null,y.createElement("span",{className:he.flex},y.createElement("img",{src:ve,style:{width:14}}),y.createElement("span",{className:he.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:he.statusbody},be==="exercise"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.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"),(be==="subject"||be==="exercisepush")&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",et&&y.createElement("span",{className:he.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"),be==="shixunpush"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",et&&y.createElement("span",{className:he.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"),y.createElement("div",null,dt==null?void 0:dt.map((we,se)=>y.createElement("a",{href:`/shixuns/${we.identifier}/challenges`,target:"_blank"},"\u300A",we==null?void 0:we.name,"\u300B",se+1!==Se&&"\u3001"))))),Pe>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:he.flex},y.createElement("img",{src:Re,style:{width:14}}),y.createElement("span",{className:he.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:he.statusbody},be==="exercise"&&y.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"),(be==="subject"||be==="exercisepush")&&y.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"),be==="shixunpush"&&y.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"),y.createElement("div",null,Ee==null?void 0:Ee.map((we,se)=>y.createElement("a",{href:`/shixuns/${we.identifier}/challenges`,target:"_blank"},"\u300A",we==null?void 0:we.name,"\u300B",se+1!==Pe&&"\u3001"))))));if(be==="shixun")return y.createElement("div",{style:{marginTop:20}},Pe>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 y.createElement(ce.default,{open:ze,onCancel:()=>{Oe(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!et&&"none"}},zIndex:1003,confirmLoading:it,okText:et?Ae:"\u6211\u77E5\u9053\u4E86",onOk:()=>me(void 0,null,function*(){et?yield je([...Ee,...Ie]):Oe(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ge(),Qe()))}},80608:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return me}});var y=z(59301),he={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ce=z(92310),Re=z.n(ce),me=({className:pe,style:Ne,state:be,onClick:le})=>{var je,Ae;return y.createElement("div",{onClick:le,className:Re()(be?(je=he)==null?void 0:je.redBtn:(Ae=he)==null?void 0:Ae.btn,pe),style:Ne},be?y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaoji1"}),y.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaojigaiti"}),y.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},28267:function(En,Vt,z){"use strict";z.d(Vt,{h:function(){return Se}});var y=z(59301),he=z(82326),ce=z(28284),Re=z(7939),ve=z(89780),me=z.n(ve),pe=z(88319),Ne=z(94896),be=Object.defineProperty,le=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Oe=(Ie,Xe,He)=>Xe in Ie?be(Ie,Xe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ie[Xe]=He,Ee=(Ie,Xe)=>{for(var He in Xe||(Xe={}))it.call(Xe,He)&&Oe(Ie,He,Xe[He]);if(Ae)for(var He of Ae(Xe))ze.call(Xe,He)&&Oe(Ie,He,Xe[He]);return Ie},Pe=(Ie,Xe)=>le(Ie,je(Xe));const Fe=he.default.Option,Ve={labelCol:{span:4},wrapperCol:{span:20}},dt={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"]};Vt.Z=({callback:Ie,onCancel:Xe})=>{const[He,rt]=(0,y.useState)("python");function st(et){rt(dt[et][1])}function Je(et){Ie(et)}return y.createElement(ce.default,Pe(Ee({},Ve),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Je,style:{width:500}}),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(he.default,{getPopupContainer:et=>et.parentNode,onChange:st},Object.keys(dt).map(et=>y.createElement(Fe,{key:et,value:et},dt[et][0])))),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Se,{mode:He})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Re.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))};function Se({value:Ie,onChange:Xe,mode:He,options:rt={}}){const st=(0,y.useRef)(),[Je,et]=(0,y.useState)();return(0,y.useEffect)(()=>{if(Je){let ge=function(Qe){const we=Qe.getValue();Xe&&Xe(we)};return Je.on("change",ge),()=>{Je.off("change",ge)}}},[Je,Xe]),(0,y.useEffect)(()=>{Je&&Je.setOption("mode",He)},[Je,He]),(0,y.useEffect)(()=>{Je&&(Ie!==Je.getValue()||Ie==="")&&setTimeout(()=>{Je.setValue(Ie||"")},300)},[Je,Ie]),(0,y.useEffect)(()=>{if(st.current&&!Je){const ge=me().fromTextArea(st.current,Ee({mode:He,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},rt));et(ge)}},[st.current,Je]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:st}))}},39116:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return tn}});var y=z(59301),he=z(44283),ce=z(89780),Re=z.n(ce),ve=z(76374),me=z(88319),pe=z(6313),Ne=z(25717),be=z(99498),le=z(25419),je=z(67549),Ae=z(35883),it=({value:Wt="",className:mn,showTextOnly:an,showLines:yn,style:jn={}})=>{const Nn=(0,y.useMemo)(()=>"",[Wt]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Nn}}))},ze=Object.defineProperty,Oe=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,dt=(Wt,mn,an)=>mn in Wt?ze(Wt,mn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Wt[mn]=an,Se=(Wt,mn)=>{for(var an in mn||(mn={}))Fe.call(mn,an)&&dt(Wt,an,mn[an]);if(Pe)for(var an of Pe(mn))Ve.call(mn,an)&&dt(Wt,an,mn[an]);return Wt},Ie=(Wt,mn)=>Oe(Wt,Ee(mn));let Xe=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 He({onActionCallback:Wt,title:mn,icon:an,actionName:yn,className:jn="",children:Nn}){function $n(){Wt(yn)}return y.createElement("a",{title:mn,className:jn,onClick:$n},y.createElement("i",{className:`${an}`}),Nn)}var rt=({watch:Wt,showNullButton:mn,showNullProgramButton:an,onActionCallback:yn,fullScreen:jn,insertTemp:Nn,hidetoolBar:$n,extraUse:Vn})=>{const Wn=[...Xe,{title:`${Wt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Wt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!$n&&Wn.map((ur,rr)=>y.createElement("li",{key:rr},ur.actionName?y.createElement(He,Ie(Se({},ur),{onActionCallback:yn})):y.createElement("span",{className:"v-line"}))),mn?y.createElement("li",null,y.createElement(He,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,an?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(He,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(He,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Nn&&y.createElement("li",null,y.createElement(He,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nn}`,onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vn&&y.createElement("li",null,Vn),y.createElement("li",{className:"btn-full-screen"},y.createElement(He,{icon:`${jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:yn})))},st=z(88487),Je=z(28284),et=z(37568),ge=z(7939),Qe=Object.defineProperty,we=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Nt=(Wt,mn,an)=>mn in Wt?Qe(Wt,mn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Wt[mn]=an,Le=(Wt,mn)=>{for(var an in mn||(mn={}))$e.call(mn,an)&&Nt(Wt,an,mn[an]);if(ft)for(var an of ft(mn))tt.call(mn,an)&&Nt(Wt,an,mn[an]);return Wt},ye=(Wt,mn)=>we(Wt,se(mn));const Et={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:Wt,onCancel:mn})=>{function an(yn){Wt(yn)}return y.createElement(Je.default,ye(Le({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:an,style:{width:500}}),y.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement(et.default,null)),y.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement(et.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(ge.ZP,{type:"ghost",onClick:mn},"\u53D6\u6D88")))},pt=z(28267),Ce=z(53332),at=z(62957),qe=z(77019),zt=z(40254),ut=z(59301),ct=({callback:Wt,onCancel:mn})=>{const an=document.createElement("canvas"),yn=an.getContext("2d");an.width=1e3,an.height=800,yn.fillStyle="#ffffff",yn.fillRect(0,0,an.width,an.height);const jn=an.toDataURL("image/png");return ut.createElement(at.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ut.createElement(qe.Z,{style:{height:"100vh"}},ut.createElement(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jn,visible:!0,title:String(Date.now())},onOk:Nn=>{Wt({src:Nn.url})},onClose:mn})))},lt=z(36207),nn=z(5269),kt=z(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=z(59301),ie=(0,y.forwardRef)(({onCancel:Wt,editImgId:mn,callback:an},yn)=>{let jn=(0,y.useRef)(),Nn=(0,y.useRef)(),$n=(0,y.useRef)(),Vn=(0,y.useRef)(!1);const Wn=(0,y.useRef)(!1);console.log("ref:",yn);const[ur,rr]=(0,y.useState)(0),[hn,Bn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{rr(1)},[]),(0,y.useImperativeHandle)(yn,()=>({setHeight:Bn})),ne.createElement("div",{ref:Wn,className:"body-overflow-initial"},ne.createElement(lt.Z,{width:"100vw",height:hn,footer:null,closable:!0,placement:"bottom",open:!!ur,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(zn=>{an({src:`/api/attachments/${zn}`,id:zn})})},title:ne.createElement(qe.Z,{align:"middle"},ne.createElement(nn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(nn.Z,{onClick:()=>{Bn(hn==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(nn.Z,{onClick:()=>{window.saveDrawData(zn=>{if(zn===null){kt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}kt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),an({src:`/api/attachments/${zn}`,id:zn,disabledClose:!0})})}},ne.createElement(ge.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${mn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Nn})))}),fe=z(14185),re=z(47889),ue=z(4875);const Me=re.ZP.Group,gt={margin:"0 8px"};var _e=({callback:Wt,onCancel:mn})=>{function an(yn){Wt(yn)}return y.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:an},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:gt},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:gt},"\u884C\u6570"),y.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(ue.Z,null)),y.createElement("span",{style:gt},"\u5217\u6570"),y.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},y.createElement(ue.Z,null))),y.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},y.createElement("span",{style:gt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(Je.default.Item,{name:"align"},y.createElement(Me,null,y.createElement(re.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(re.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(re.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(re.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(ge.ZP,{type:"ghost",onClick:mn},"\u53D6\u6D88")))},ke=z(58755),ot=z(84915),ht=z.n(ot),Ze=(0,y.forwardRef)(({use3d:Wt,width:mn,height:an,callback:yn,showSaveButton:jn},Nn)=>{const $n=(0,y.useRef)(),Vn=(0,y.useRef)(),[Wn,ur]=(0,y.useState)(!1),rr=(0,y.useRef)({id:$n,appName:"graphing",width:mn||1e3,height:an||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,y.useEffect)(()=>{Vn.current=new(ht())(rr.current,!0),window.onload=function(){Vn.current.inject("applet_container")}},[]);const hn=()=>{var Bn=window.ggbApplet.getPNGBase64(1,!0,72);return yn&&yn(Bn),Bn};return(0,y.useEffect)(()=>{rr.current.appName=Wn?"3D":"graphing",Vn.current.inject("applet_container")},[Wn]),(0,y.useEffect)(()=>{ur(Wt)},[Wt]),(0,y.useImperativeHandle)(Nn,()=>({getImgData:hn})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:$n}),y.createElement(qe.Z,{align:"middle"},y.createElement(nn.Z,{flex:1},y.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wn,onChange:Bn=>ur(Bn)})),y.createElement(nn.Z,null,y.createElement(ge.ZP,{size:"large",onClick:hn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),We=z(9057);const Mt="link",Ut="upload-image",cn="add-flowchart",ln="draw-image",_t="add-flowchart",fn="code-block",qt="add-table",Ye="------------",Ot={default:Ye,left:`:${Ye}`,center:`:${Ye}:`,right:`${Ye}:`};var Jt=z(79006),on=z(76406);function Ge(){}let Pt=0;const jt=1e4,vt="\u2581",Lt="@\u2581\u2581@",Rt="@\u2581@",sn=`
**\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`,Sn=["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 un(Wt){return/^\d+$/.test(Wt)?`${Wt}px`:Wt}const Ct=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",It={[Ct+"-B"]:"bold",[Ct+"-I"]:"italic"},Gt={[Mt]:"\u6DFB\u52A0\u94FE\u63A5",[fn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ut]:"\u6DFB\u52A0\u56FE\u7247",[ln]:"\u6DFB\u52A0\u753B\u56FE",[cn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[qt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var tn=({defaultValue:Wt="",onChange:mn,width:an="100%",height:yn=400,miniToolbar:jn=!1,isFocus:Nn=!1,watch:$n,insertTemp:Vn,mode:Wn="markdown",id:ur="markdown-editor-id",showResizeBar:rr=!1,noStorage:hn=!1,showNullButton:Bn=!1,showNullProgramButton:zn=!1,hidetoolBar:Hn=!1,fullScreen:St=!1,onBlur:$t,onCMBeforeChange:nt,onFullScreen:Ft,className:Ke="",disablePaste:Tt=!1,disabled:Yt=!1,disabledFill:Rn=!1,placeholder:Zn="",values:yt="",extraUse:xt,onAddBlank:Bt})=>{const[At,pn]=(0,y.useState)(null),[Pn,In]=(0,y.useState)(Wt),[Mn,qn]=(0,y.useState)($n),[nr,ir]=(0,y.useState)(St),[lr,Qn]=(0,y.useState)(""),[ar,fr]=(0,y.useState)(0),[Sr,br]=(0,y.useState)(yn),[Zr,jr]=(0,y.useState)(!1),[hr,Nr]=(0,y.useState)(0),[eo,Tr]=(0,y.useState)(0),Pr=(0,y.useRef)(),or=(0,y.useRef)(),Ur=(0,y.useRef)(),Rr=(0,y.useRef)(),Br=(0,y.useRef)(),Cr=(0,y.useRef)(),so=(0,he.useDispatch)();(0,y.useEffect)(()=>{const Un=window.scrollY||window.pageYOffset;In(yt),At==null||At.setValue(yt),window.scrollTo(0,Un)},[yt]),(0,y.useEffect)(()=>{Ft==null||Ft(nr)},[nr]),(0,y.useEffect)(()=>{if(Pr.current){let Un=function(sr,pr){var _r;if(Tt){pr.preventDefault();return}const Yr=pr.clipboardData;if(Yr){const to=Yr.types.toString(),Po=Yr.items;if(to==="Files"||Yr.types.indexOf("Files")>-1){if(pr.preventDefault(),Wn=="stex")return;try{let Mo=Po[1];((_r=Po[0])==null?void 0:_r.kind)==="file"&&(Mo=Po[0]);const Yo=Mo.getAsFile(),Jo=Yo.name.split(".").pop();(0,Ce.I)(Yo,ni=>{var ri,Mi,$i;ni.id?((ri=Yo==null?void 0:Yo.type)==null?void 0:ri.indexOf("image"))>-1?Jn.replaceSelection(`<img width="100%" src="/api/attachments/${ni.id}?type=${ni.content_type})" alt="" />`):((Mi=Yo==null?void 0:Yo.type)==null?void 0:Mi.indexOf("video"))>-1?Jn.replaceSelection(`<video width="100%" controls src="/api/attachments/${ni.id}"></video>`):(($i=Yo==null?void 0:Yo.type)==null?void 0:$i.indexOf("pdf"))>-1?Jn.replaceSelection(`<a href="/api/attachments/${ni.id}?type=${Yo.type}&disposition=inline" target="_blank">${Yo.name}</a>`):Sn.includes(Jo)?Jn.replaceSelection(`<a href="/api/attachments/${ni.id}?type=office&disposition=inline" target="_blank">${Yo.name}</a>`):Jn.replaceSelection(`[${Yo.name}](/api/attachments/${ni.id}?type=${ni.content_type})`):(ni==null?void 0:ni.status)===401&&(document.location.href="/user/login")})}catch(Mo){kt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Jn=Re().fromTextArea(Pr.current,{mode:Wn,lineNumbers:!jn,lineWrapping:!0,value:Wt,autoCloseTags:!0,autoCloseBrackets:!0});return Jn.on("keyup",function(sr,pr){pr.keyCode===8&&(sr.getValue()==""?Jn.setOption("placeholder",Zn):Jn.setOption("placeholder",null))}),Jn.on("keydown",function(sr,pr){if(pr.keyCode===8){var _r=ti(sr);_r&&pr.preventDefault()}}),Nn&&Jn.focus(),Jn.on("paste",Un),Yt&&Jn.on("beforeChange",function(sr,pr){(pr.origin==="paste"||pr.origin==="+input")&&pr.cancel()}),pn(Jn),()=>{Jn.off("paste",Un)}}},[]);const Ho=(0,y.useCallback)(()=>{if(or.current)try{}catch(Un){console.log(Un,"---- to set md editor body height")}},[Sr,or,nr]);(0,y.useEffect)(()=>{function Un(){let Jn=new ve.Z(sr=>{for(let pr of sr)(pr.target.offsetHeight>0||pr.target.offsetWidth>0)&&(Ho(),At.setSize("100%","100%"),At.refresh())});return Jn.observe(Pr.current.parentElement),Jn}if(At){const Jn=Un();return()=>{var sr,pr;(sr=Pr.current)!=null&&sr.parentElement&&Jn.unobserve((pr=Pr.current)==null?void 0:pr.parentElement)}}},[At,Ho]),(0,y.useEffect)(()=>{if(At){let Un=[];for(const[Jn,sr]of Object.entries(It)){let pr={[Jn]:()=>{Eo(sr)}};Un.push(pr),At.addKeyMap(pr)}return()=>{for(let Jn of Un)At.removeKeyMap(Jn)}}},[At]),(0,y.useEffect)(()=>{St!==nr&&ir(St)},[St]),(0,Jt.Z)(()=>{if(!hn&&ar>0){let Un=new Date().getTime(),Jn=window.sessionStorage.getItem(ur);Un>=ar+jt&&(!Jn||Jn!==Pn)&&(window.sessionStorage.setItem(ur,Pn),jr(!0))}},jt),(0,y.useEffect)(()=>{qn($n)},[At,$n]),(0,y.useEffect)(()=>{At&&Nn&&At.focus()},[At,Nn]),(0,y.useEffect)(()=>{if(Mn&&At){let Un=function(sr){let pr=sr.target;if(Rr.current){let _r=pr.scrollTop/pr.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*_r}};const Jn=At.getScrollerElement();return Jn.addEventListener("scroll",Un),()=>{Jn.removeEventListener("scroll",Un)}}},[At,Mn]),(0,y.useEffect)(()=>{if(At&&nt){let Un=function(Jn,sr){nt(Jn,sr)};return At.on("beforeChange",Un),()=>{At.off("beforeChange",Un)}}},[At,nt]),(0,y.useEffect)(()=>{if(At&&$t){let Un=function(){$t(At.getValue())};return At.on("blur",Un),()=>{At.off("blur",Un)}}},[At,$t]);function ti(Un,Jn){var sr=Un.getDoc(),pr=sr.getCursor(),_r=sr.getLine(pr.line),Yr=_r.charAt(pr.ch-1),to=_r.lastIndexOf("@\u2581@",pr.ch),Po=_r.lastIndexOf("@\u2581\u2581@",pr.ch),Mo=to>Po?to:Po,Yo=to>Po?3:4;if(Lt.indexOf(Yr)===-1)return null;if(console.log("change1:",Jn,Un,_r,pr,Mo,to,Po,Yr),Mo>=0&&pr.ch-Mo<5){var Jo=Mo+Yo;return sr.replaceRange("",{line:pr.line,ch:Mo},{line:pr.line,ch:Jo}),{line:pr.line,ch:Jo}}return null}(0,y.useEffect)(()=>{if(At){let Un=function(Jn,sr){const pr=Jn.getValue();In(pr),fr(new Date().getTime()),Jn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),mn&&(zn?mn(pr,Gn(pr)):mn(pr))};return At.on("change",Un),()=>{At.off("change",Un)}}},[At,mn]),(0,y.useEffect)(()=>{if(At)if(Wt==null)At.setValue(""),In("");else{const Un=window.scrollY||window.pageYOffset;Wt!==At.getValue()&&(At.setValue(Wt),In(Wt),At.setCursor(Yt?1:At.lineCount(),0),window.scrollTo(0,Un))}},[At,Wt]);const Eo=(0,y.useCallback)(Un=>{const Jn=At.getCursor(),sr=At.getSelection();let pr=sr.split(`
`);switch(Un){case"bold":return At.replaceSelection("**"+sr+"**"),sr===""&&At.setCursor(Jn.line,Jn.ch+2),At.focus();case"italic":return At.replaceSelection("*"+sr+"*"),sr===""&&At.setCursor(Jn.line,Jn.ch+1),At.focus();case"code":return At.replaceSelection("`"+sr+"`"),sr===""&&At.setCursor(Jn.line,Jn.ch+1),At.focus();case"inline-latex":return(0,on.Ye)(so)?void 0:(Qn("inline-latex"),At.focus());case"latex":return At.replaceSelection("```latex\n"+sr+"\n```"),At.setCursor(Jn.line+1,sr.length+1),At.focus();case"line-break":return At.replaceSelection(`<br/>
`),At.focus();case"list-ul":return sr===""?At.replaceSelection("- "+sr):At.replaceSelection(pr.map(_r=>_r===""?"":`- ${_r}`).join(`
`)),At.focus();case"list-ol":return sr===""?At.replaceSelection("1. "+sr):At.replaceSelection(pr.map((_r,Yr)=>_r===""?"":`${Yr+1}. ${_r}`).join(`
`)),At.focus();case"add-null-ch":Bt==null||Bt();return;case"add-signal":return sr===""&&At.setCursor(Jn.line,Jn.ch),At.replaceSelection(Rt),At.focus();case"add-multiple":return sr===""&&At.setCursor(Jn.line,Jn.ch),At.replaceSelection(Lt),At.focus();case"inster-template-1":return sr===""&&At.setCursor(Jn.line,Jn.ch),At.replaceSelection(sn),At.focus();case"eraser":return At.setValue(""),At.focus();case"trigger-watch":return qn(!Mn),At.focus();case"trigger-full-screen":return ir(!nr),At.focus();case Mt:Qn(Mt);return;case fn:Qn(fn);return;case Ut:Qn(Ut);return;case ln:Qn(ln);return;case"maths-latex":if((0,on.Ye)(so))return;Qn("maths-latex");return;case cn:Br.current="",sessionStorage.removeItem("file_id"),Qn(cn);return;case qt:Qn(qt);return;default:throw new Error}},[At,Mn,nr]),No=(0,y.useCallback)((Un,Jn)=>{var sr,pr,_r,Yr,to,Po;Un!=null&&Un.disabledClose||Qn("");const{src:Mo,alt:Yo,id:Jo}=Un||{};switch(lr){case Mt:const{title:Xi,link:Yi}=Un;return At.replaceSelection(`[${Xi}](${Yi})`),At.focus();case fn:const{language:ta,content:Lo}=Un;return At.replaceSelection(["```"+ta,Lo,"```"].join(`
`)),At.focus();case"maths-latex":for(var ni=atob(Un),ri=new Uint8Array(ni.length),Mi=0;Mi<ni.length;Mi++)ri[Mi]=ni.charCodeAt(Mi);var $i=new Blob([ri],{type:"image/png"});return(0,Ce.I)($i,da=>{da.id?At.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")}),At.focus();case"inline-latex":return(0,on.Ye)(so)?void 0:(At.replaceSelection("`$$"+Un+"$$`"),At.focus());case _t:return Jo?(At.getValue().indexOf(Mo)===-1?At.replaceSelection(`<center><img id="${Jo}" width="80%" src="${Mo}" class="draw-flowchart" alt="${Yo||""}" /></center>`):document.getElementById(Jo).src=fe.Z.API_SERVER+Mo+"?t="+Date.now(),At.focus()):void 0;case Ut:case ln:const co=Jn,wi=(_r=(pr=(sr=co==null?void 0:co.name)==null?void 0:sr.split("."))==null?void 0:pr.pop)==null?void 0:_r.call(pr);return((Yr=co==null?void 0:co.type)==null?void 0:Yr.indexOf("image"))>-1||!(co!=null&&co.type)?co!=null&&co.align||co!=null&&co.width?At.replaceSelection(`<p style="text-align:${co.align||"initial"}"><img width="${co.width?co.width+"%":"initial"}" src="${Mo}" alt="${Yo||""}" /></p>`):At.replaceSelection(`<img width="100%" src="${Mo}" alt="${Yo||""}" />`):((to=co==null?void 0:co.type)==null?void 0:to.indexOf("video"))>-1?At.replaceSelection(`<video width="100%" controls src="${Mo}"></video>`):((Po=co==null?void 0:co.type)==null?void 0:Po.indexOf("pdf"))>-1?At.replaceSelection(`<a href="${Mo}?type=${co.type}&disposition=inline" target="_blank">${co.name}</a>`):Sn.includes(wi)?At.replaceSelection(`<a href="${Mo}?type=office&disposition=inline" target="_blank">${co.name}</a>`):At.replaceSelection(`[${co.name}](${Mo})`),At.focus();case qt:const{row:wo,col:aa,align:Qa}=Un;let Ha=`
`;for(let da=0;da<wo;da++){let fa=[],Ti=[];for(let ka=0;ka<aa;ka++)da===1&&Ti.push(Ot[Qa]),fa.push(" ");da===1&&(Ha+=`| ${Ti.join(" | ")} |
`),Ha+=`| ${fa.join(aa===1?"":" | ")} |
`}return At.replaceSelection(Ha+`
`),At.focus();default:throw new Error}},[At,lr]),To=(0,y.useMemo)(()=>{switch(lr){case Mt:return y.createElement(Zt,{callback:No,onCancel:Xo});case fn:return y.createElement(pt.Z,{callback:No,onCancel:Xo});case Ut:return y.createElement(Ce.Z,{callback:No,onCancel:Xo});case cn:return y.createElement(ie,{editImgId:Br.current,callback:No,onCancel:Xo});case qt:return y.createElement(_e,{callback:No,onCancel:Xo});case"maths-latex":return y.createElement(Ze,{showSaveButton:!0,callback:No});case"inline-latex":return y.createElement(We.Z,{showSaveButton:!0,callback:No});default:return null}},[lr]);function Xo(){Qn("")}(0,y.useEffect)(()=>{if(Ur.current){let Un=function(to){_r=!0,Yr=to.pageY},Jn=function(){_r=!1},sr=function(to){if(_r){let Po=to.pageY-Yr;Po<0&&(Po=0),Po>300&&(Po=300);let Mo=yn+Po+"px";br(Mo)}},pr=Ur.current,_r=!1,Yr=0;return pr.addEventListener("mousedown",Un),document.addEventListener("mousemove",sr),document.addEventListener("mouseup",Jn),()=>{pr.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",sr),document.removeEventListener("mouseup",Jn)}}},[At,Ur]),(0,y.useEffect)(()=>{br(yn)},[yn]);const ko=un(an),vo=un(Sr),dr={width:ko,height:vo},Tn=(0,y.useMemo)(()=>{if(ar){let Un=new Date(ar),Jn=Un.getHours(),sr=Un.getMinutes(),pr=Un.getSeconds();return Jn=Jn<10?"0"+Jn:Jn,sr=sr<10?"0"+sr:sr,pr=pr<10?"0"+pr:pr,`${Jn}:${sr}:${pr}`}return 0},[ar]),Gn=Un=>{const Jn=[];if(zn){let sr=-1;Un=Un.replace(/(@▁▁@|@▁@)/g,function(pr,_r,Yr){Jn.push({multiLine:pr!==Rt})})}return Jn};function Yn(){window.sessionStorage.removeItem(ur),jr(!1),fr(0)}function Ln(){jr(!1),fr(0),At.setValue(window.sessionStorage.getItem(ur))}(0,y.useEffect)(()=>{Gt[lr]&&lr!==ln&&lr!==cn&&setTimeout(()=>{const Un=document.getElementsByClassName("markdown-popup-form")[0],Jn=window.innerWidth/2-Un.offsetWidth/2,sr=window.innerHeight/2-Un.offsetHeight/2;Nr(Jn),Tr(sr)},0)},[lr]);const mr=Un=>{Un.preventDefault();const Jn=Un.clientX-hr,sr=Un.clientY-eo;document.body.onmousemove=pr=>{let _r=pr.clientX-Jn,Yr=pr.clientY-sr;const to=document.getElementsByClassName("markdown-popup-form")[0],Po=window.innerWidth-to.offsetWidth,Mo=window.innerHeight-to.offsetHeight;_r=Math.max(0,Math.min(_r,Po)),Yr=Math.max(0,Math.min(Yr,Mo)),wr(pr.clientX,pr.clientY,Jn,sr)&&(Nr(_r),Tr(Yr))},document.body.onmouseup=function(){document.body.onmousemove=null}},wr=(Un,Jn,sr,pr)=>{const _r=document.body.clientHeight,Yr=document.body.clientWidth;return Un<20&&sr>Un||Un>Yr-20&&sr<Un||Jn<20&&pr>Jn||Jn>_r-20&&pr<Jn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return y.createElement(y.Fragment,null,y.createElement("div",{className:"markdown-editor-wrapper",ref:or},y.createElement("div",{className:`markdown-editor-container ${Ke} ${Mn?"on-preview":""} ${jn?"mini":""} ${nr?"full-screen":""}`,style:dr},y.createElement(rt,{insertTemp:Vn,watch:Mn,fullScreen:nr,showNullButton:Bn,showNullProgramButton:zn,onActionCallback:Eo,hidetoolBar:Hn,extraUse:xt}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:Pr,placeholder:Zn})),Mn?y.createElement("div",{ref:Rr,className:"preview-container"},Wn==="stex"&&y.createElement(it,{value:Pn}),Wn!=="stex"&&y.createElement(Ae.Z,{edit:!0,disabledFill:Rn,showProgramFill:zn,value:Pn,openEditor:Un=>{var Jn;Br.current=Un,(Jn=Cr.current)==null||Jn.setHeight("100vh"),setTimeout(()=>{Qn("add-flowchart")},150)}})):null))),rr?y.createElement("a",{ref:Ur,className:"editor-resize"}):null,lr===ln&&y.createElement(ct,{callback:No,onCancel:Xo}),lr===cn&&y.createElement(ie,{ref:Cr,editImgId:Br.current,callback:No,onCancel:Xo}),y.createElement(st.Z,null,Gt[lr]&&lr!==ln&&lr!==cn?y.createElement(at.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:hr,top:eo},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:mr},Gt[lr]),open:!0,onCancel:Xo,footer:null,destroyOnClose:!0,width:lr===cn?"1200px":null,height:lr===cn?"80vh":null,className:"markdown-popup-form"},To):null))}},53332:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Xe},I:function(){return rt}});var y=z(28284),he=z(6767),ce=z(37568),Re=z(44104),ve=z(4875),me=z(47889),pe=z(7939),Ne=z(23216),be=z(59301),le=z(59301),je=Object.defineProperty,Ae=Object.defineProperties,it=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Pe=(st,Je,et)=>Je in st?je(st,Je,{enumerable:!0,configurable:!0,writable:!0,value:et}):st[Je]=et,Fe=(st,Je)=>{for(var et in Je||(Je={}))Oe.call(Je,et)&&Pe(st,et,Je[et]);if(ze)for(var et of ze(Je))Ee.call(Je,et)&&Pe(st,et,Je[et]);return st},Ve=(st,Je)=>Ae(st,it(Je));const{useForm:dt}=y.default,Se={width:280,marginRight:10},Ie={labelCol:{span:5},wrapperCol:{span:19}};var Xe=({callback:st,onCancel:Je})=>{const[et]=dt();let ge=(0,be.useRef)();function Qe(ft){ge.current.width=et.getFieldValue("width"),ge.current.align=et.getFieldValue("align"),st(ft,ge.current)}function we(ft,$e){if(ft.status===-1){he.ZP.error(ft.message);return}et.setFieldsValue({src:`/api/attachments/${ft.id}`,type:$e.type})}function se(ft){let $e=ft.target.files[0];ge.current=$e,rt($e,we)}return le.createElement(y.default,Ve(Fe({form:et},Ie),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),le.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},le.createElement("div",{className:"flex-container"},le.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},le.createElement(ce.default,{style:Se})),le.createElement(He,{onFileChange:se}))),le.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},le.createElement(ce.default,{style:{width:264}})),le.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},le.createElement(Re.Z,null,le.createElement(y.default.Item,{name:"width",style:{margin:0}},le.createElement(ve.Z,{style:{width:264}})),le.createElement("span",{className:"ml8"},"%"))),le.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},le.createElement(me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),le.createElement("aside",null,le.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},le.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(pe.ZP,{type:"default",onClick:Je},"\u53D6\u6D88"))))};function He({onFileChange:st}){return le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",le.createElement("input",{type:"file",onChange:st}))}function rt(st,Je){if(!st)throw new String("\u6CA1\u6709\u6587\u4EF6");let et=new FormData;et.append("editormd-image-file",st),et.append("file_param_name","editormd-image-file"),et.append("byxhr","true");var ge=new window.XMLHttpRequest;ge.withCredentials=!0,ge.addEventListener("load",function(Qe){Je(JSON.parse(Qe.target.responseText),st)},!1),ge.addEventListener("error",function(Qe){console.error(Qe)},!1),ge.open("POST",`${Ne.KI}/api/attachments.json`),ge.send(et)}},88487:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ce}});var y=z(59301),he=z(4676);class ce extends y.Component{constructor(ve){super(ve);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,he.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(En,Vt,z){"use strict";z.d(Vt,{SV:function(){return ct},ZP:function(){return ut}});var y=z(59301),he=z(76374);const ce={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Re={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ve={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},me={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},pe={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var Ne=z(53184),be=z.n(Ne),le=(lt,nn,kt)=>new Promise((ae,ne)=>{var te=re=>{try{fe(kt.next(re))}catch(ue){ne(ue)}},ie=re=>{try{fe(kt.throw(re))}catch(ue){ne(ue)}},fe=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);fe((kt=kt.apply(lt,nn)).next())});const je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ae=(lt,nn,kt,ae)=>{const ne=nn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:kt.lineNumber,endColumn:kt.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:lt.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},it=(lt,nn,kt,ae)=>{lt.languages.registerCompletionItemProvider(nn,{provideCompletionItems(ne,te){const ie=ne.getWordUntilPosition(te),fe={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},re=ne.getLineContent(te.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...Ae(lt,ne,te,fe),...kt.map(Me=>({label:Me,kind:lt.languages.CompletionItemKind.Keyword,documentation:Me,insertText:Me,insertTextRules:lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe})),...ae.map(Me=>({label:Me.label,kind:lt.languages.CompletionItemKind.Snippet,documentation:Me.content,insertText:re.startsWith("#")?Me.content.replace(/#/,""):Me.content,insertTextRules:lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:fe}))]}}})};var ze=lt=>{je.languages.forEach(nn=>{lt.languages.registerDocumentFormattingEditProvider(nn,{provideDocumentFormattingEdits(kt){return le(this,null,function*(){const ae=be()(kt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:kt.getFullModelRange(),text:ae}]})}})}),it(lt,"java",Re.keywords,Re.quickKey),it(lt,"cpp",ve.keywords,ve.quickKey),it(lt,"c",ce.keywords,[]),it(lt,"python",me.keywords,me.quickKey),it(lt,"scala",pe.keywords,pe.quickKey)};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ee=Object.defineProperty,Pe=(lt,nn,kt)=>nn in lt?Ee(lt,nn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):lt[nn]=kt,Fe=(lt,nn,kt)=>Pe(lt,typeof nn!="symbol"?nn+"":nn,kt);const Ve=class ju{constructor(nn,kt,ae){this.placeholder=nn,this.editor=kt,this.monaco=ae,kt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ju.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Fe(Ve,"ID","editor.widget.placeholderHint");var Se=Ve,Ie=z(96236),Xe=z(6767),He=z(25399),rt=z(78267),st=z(33156),Je=z(56102),et=Object.defineProperty,ge=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,$e=(lt,nn,kt)=>nn in lt?et(lt,nn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):lt[nn]=kt,tt=(lt,nn)=>{for(var kt in nn||(nn={}))se.call(nn,kt)&&$e(lt,kt,nn[kt]);if(we)for(var kt of we(nn))ft.call(nn,kt)&&$e(lt,kt,nn[kt]);return lt},Nt=(lt,nn)=>ge(lt,Qe(nn)),Le=(lt,nn)=>{var kt={};for(var ae in lt)se.call(lt,ae)&&nn.indexOf(ae)<0&&(kt[ae]=lt[ae]);if(lt!=null&&we)for(var ae of we(lt))nn.indexOf(ae)<0&&ft.call(lt,ae)&&(kt[ae]=lt[ae]);return kt},ye=(lt,nn,kt)=>new Promise((ae,ne)=>{var te=re=>{try{fe(kt.next(re))}catch(ue){ne(ue)}},ie=re=>{try{fe(kt.throw(re))}catch(ue){ne(ue)}},fe=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);fe((kt=kt.apply(lt,nn)).next())});function Et(lt){return/^\d+$/.test(lt)?`${lt}px`:lt}function Zt(){}let pt=!1;const Ce={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function at(lt=[]){let nn=lt;if(Array.isArray(lt)){for(let kt=0;kt<lt.length;kt++){let ae=Ce[lt[kt]];if(ae)return ae}return nn[0]}return Ce[nn]||nn}let qe=null;const zt=()=>ye(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(lt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",lt)}});var ut=lt=>{var nn=lt,{width:kt="100%",height:ae="100%",value:ne,language:te="javascript",style:ie={},options:fe={},overrideServices:re={},theme:ue="vs-dark",onEditBlur:Me,isCopy:gt=!1,onSave:_e,autoHeight:ke=!1,forbidCopy:ot=!1,forbidCopyTips:ht,onChange:wt=Zt,editorDidMount:Ze=Zt,onFocus:We=Zt,onBreakPoint:Mt=Zt,breakPointValue:Ut=[],filename:cn="educoder.txt",errorLine:ln,errorContent:_t="",highlightLine:fn,openBreakPoint:qt=!1,placeholder:Ye="",showMiniMap:Ot=!0}=nn,Jt=Le(nn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const on=(0,y.useRef)(),Ge=(0,y.useRef)({}),Pt=(0,y.useRef)(),jt=(0,y.useRef)(),vt=(0,y.useRef)([]),Lt=(0,y.useRef)(!1),Rt=(0,y.useRef)(),sn=(0,y.useRef)(),Sn=(0,y.useRef)(!1),[un,Cn]=(0,y.useState)(!1);function Ct(){let hn;return on.current&&(hn=new he.Z(Bn=>{for(let zn of Bn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&Ge.current.instance.layout()}),hn.observe(on.current)),hn}function It(){Xe.ZP.warning({content:decodeURIComponent(ht||Oe),key:"monaco-editor-tip"})}const Gt=()=>{let hn=Ge.current.instance;if(ne!=null&&hn&&un){const Bn=hn.getModel();Bn&&ne!==Bn.getValue()&&(pt=!0,Bn.setValue(ne),hn.layout(),pt=!1)}};(0,y.useEffect)(()=>{const hn=st.Z.subscribe("formatDocument",Bn=>{var zn;let Hn=Ge.current.instance;(zn=Hn==null?void 0:Hn.getAction)==null||zn.call(Hn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Bn=>{wt(Bn)},hn},[]),(0,y.useEffect)(()=>{var hn;let Bn=Ge.current.instance;jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>{Gt()},500),ne&&(ne!=null&&ne.length)&&((hn=Bn==null?void 0:Bn.updateOptions)==null||hn.call(Bn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,un,Ge.current]),(0,y.useEffect)(()=>{if(ln&&Ge.current&&Ge.current.instance){let Bn=Ge.current.instance;Bn.changeViewZones(function(zn){var Hn=document.createElement("div");Hn.style.padding="10px 20px",Hn.style.width="calc(100% - 20px)",Hn.className="my-error-line-wrp",Hn.innerHTML=_t,zn.addZone({afterLineNumber:ln||11,heightInLines:3,domNode:Hn})});var hn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Bn.addOverlayWidget(hn),Bn.revealPositionInCenter({lineNumber:20,column:1})}},[ln,Ge.current,un]);const tn=(hn="",Bn)=>{if(!hn||hn.trim()==="")return!0;const Hn=Ge.current.instance.getModel().getLineTokens(Bn);let St=!1;for(let $t=0;$t<2;$t++)Hn.getStandardTokenType($t)===1&&(St=!0);return St};(0,y.useEffect)(()=>{var hn;const Bn=(hn=Ge.current)==null?void 0:hn.instance;if(Bn&&un&&ot){const zn=Bn.onDidBlurEditorWidget(()=>{Sn.current=!1}),Hn=Bn.onDidFocusEditorText(()=>{Sn.current=!0});return()=>{zn.dispose(),Hn.dispose()}}},[Ge.current,un,ot]),(0,y.useEffect)(()=>{var hn;if((hn=Ge.current)!=null&&hn.instance&&un&&qt){let Bn=Ge.current.instance,zn=Bn.getModel();if(!zn)return;(()=>{var xt;let Bt=[],At=[];const pn=zn.getAllDecorations();for(let In of pn)In.options.className==="highlighted-line"&&(Bt.push((xt=In==null?void 0:In.range)==null?void 0:xt.startLineNumber),At.push(In==null?void 0:In.id));if(fn===Bt[0])return;zn.deltaDecorations(At,[]);const Pn=zn.getLineCount();fn&&fn<=Pn&&(Bn.deltaDecorations([],[{range:new qe.Range(fn,1,fn,zn.getLineMaxColumn(fn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Bn.revealLineInCenter(fn))})();const St=(xt=!1)=>{var Bt;let At=[],pn=[];const Pn=zn.getAllDecorations();for(let In of Pn)In.options.linesDecorationsClassName==="breakpoints-select"&&(At.push((Bt=In==null?void 0:In.range)==null?void 0:Bt.startLineNumber),pn.push(In==null?void 0:In.id));if(xt)return{lines:At,ids:pn};Mt(At)},$t=xt=>ye(void 0,null,function*(){let Bt={range:new qe.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[Bt]),St()}),nt=xt=>ye(void 0,null,function*(){let Bt=[];const At=Bn.getLineDecorations(xt);for(let pn of At)pn.options.linesDecorationsClassName==="breakpoints-select"&&Bt.push(pn.id);yield zn.deltaDecorations(Bt,[]),St()}),Ft=xt=>{let Bt=Bn.getLineDecorations(xt);for(let At of Bt)if(At.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,rt.isEqual)(Ut,St(!0).lines)){zn.deltaDecorations(St(!0).ids,[]);const xt=Ut.map(Bt=>({range:new qe.Range(Bt,1,Bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],xt)}const Ke=Bn.onDidChangeModelContent(xt=>{let Bt=Bn.getPosition();if(Bt){let At=Bt.lineNumber;clearTimeout(sn.current),sn.current=setTimeout(()=>{tn(zn.getLineContent(At),At)?nt(At):Ft(At)?(nt(At),$t(At)):St()},100)}}),Tt=Bn.onMouseDown(xt=>{var Bt,At,pn;if(xt.target.detail&&((pn=(At=(Bt=xt.target)==null?void 0:Bt.element)==null?void 0:At.className)!=null&&pn.includes("line-numbers"))){let Pn=xt.target.position.lineNumber;if(tn(zn.getLineContent(Pn),Pn))return;Ft(Pn)?nt(Pn):$t(Pn)}}),Yt=xt=>{let Bt={range:new qe.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vt.current=Bn.deltaDecorations(vt.current,[Bt])},Rn=()=>{vt.current=Bn.deltaDecorations(vt.current,[])},Zn=Bn.onMouseMove(xt=>{var Bt,At,pn;if(Rn(),xt.target.detail&&((pn=(At=(Bt=xt.target)==null?void 0:Bt.element)==null?void 0:At.className)!=null&&pn.includes("line-numbers"))){let Pn=xt.target.position.lineNumber;if(tn(zn.getLineContent(Pn),Pn))return;Yt(Pn)}}),yt=Bn.onMouseLeave(()=>{Rn()});return()=>{Ke.dispose(),Tt.dispose(),Zn.dispose(),yt.dispose()}}},[Ge.current,un,Ut,fn,qt,te]),(0,y.useEffect)(()=>{var hn;(hn=Ge.current)!=null&&hn.instance&&qt&&Ge.current.instance.setPosition({lineNumber:0,column:0})},[fn]);function Wt(){let hn=Ge.current.instance;if(hn){const Bn=hn.getSelection(),zn=Ge.current.pastePos||{},Hn=new qe.Range(zn.startLineNumber||Bn.endLineNumber,zn.startColumn||Bn.endColumn,zn.endLineNumber||Bn.endLineNumber,zn.endColumn||Bn.endColumn);setTimeout(()=>{hn.executeEdits("",[{range:Hn,text:""}])},300)}}function mn(hn){(window.navigator.platform.match("Mac")?hn.metaKey:hn.ctrlKey)&&hn.keyCode==83&&(hn.preventDefault(),_e())}const an=()=>{if(ke&&Ge.current.instance){const hn=Ge.current.instance.getContentHeight();ur(hn<ae?ae:hn)}else ur(ae)};function yn(hn){var Bn=document.createEvent("MouseEvents");Bn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),hn.dispatchEvent(Bn)}const jn=hn=>{if(!Sn.current)return;const{keyCode:Bn,ctrlKey:zn,metaKey:Hn,target:St,type:$t}=hn;return($t==="paste"||(Bn===67||Bn===86)&&(Hn||zn))&&St.nodeName==="TEXTAREA"&&(It(),hn.preventDefault()),!1};function Nn(hn,Bn){var zn=window.URL||window.webkitURL||window,Hn=new Blob([Bn]),St=document.createElementNS("http://www.w3.org/1999/xhtml","a");St.href=zn.createObjectURL(Hn),St.download=hn,yn(St)}(0,y.useEffect)(()=>{an()},[an]),(0,y.useEffect)(()=>{on.current&&!un&&Promise.all([z.e(8909),z.e(5977)]).then(z.bind(z,71448)).then(hn=>{try{qe=hn,Ge.current.instance=qe.editor.create(on.current,{value:ne,language:at(te),theme:ue,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ot||!1}},re);const Bn=Ge.current.instance;let St=[...Ie.BH._menuItems].find(Ke=>Ke[0]._debugName=="EditorContext")[1],$t=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],nt=(Ke,Tt)=>{var Yt,Rn;let Zn=Ke._first;do Tt.includes((Rn=(Yt=Zn.element)==null?void 0:Yt.command)==null?void 0:Rn.id)&&Ke._remove(Zn);while(Zn=Zn.next)};if(Ze(Bn,qe),setTimeout(()=>{an(),Ge.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nn(cn||"educoder.txt",Bn.getValue())}})},500),Ge.current.subscription=Bn.onDidChangeModelContent(Ke=>{Lt.current?clearTimeout(Rt.current):(an(),wt(Bn.getValue(),Ke)),Rt.current=setTimeout(()=>{Lt.current=!1},500)}),window.Monaco||ze(qe,at(te)),ot&&(nt(St,$t),on.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",jn),window.removeEventListener("paste",jn),window.addEventListener("keydown",jn),window.addEventListener("paste",jn)),window.Monaco=qe,Me&&Bn.onDidBlurEditorWidget(()=>{Me(Bn.getValue())}),We&&Bn.onDidFocusEditorText(()=>{ot&&zt(),We(Bn.getValue())}),ot){zt();try{Bn.onDidPaste(Ke=>{const Tt=Bn.getSelection(),Yt=Ge.current.pastePos||{},Rn=new qe.Range(Yt.startLineNumber||Tt.endLineNumber,Yt.startColumn||Tt.endColumn,Yt.endLineNumber||Tt.endLineNumber,Yt.endColumn||Tt.endColumn);Bn.executeEdits("",[{range:Ke.range,text:""}])})}catch(Ke){}}let Ft=Ct();return Ye&&typeof Ye=="string"&&new Se(Ye,Bn,qe),Cn(!0),()=>{const Ke=Ge.current.instance;Ke.dispose();const Tt=Ke.getModel();Tt&&Tt.dispose(),Ge.current.subscription&&Ge.current.subscription.dispose(),Ft.unobserve(on.current)}}catch(Bn){}})},[]),(0,y.useEffect)(()=>{if(Ge.current.instance&&un)return document.addEventListener("keydown",mn,!1),()=>{document.removeEventListener("keydown",mn)}},[_e,un]),(0,y.useEffect)(()=>{let hn=Ge.current.instance;if(hn&&un){let Bn=at(te);qe.editor.setModelLanguage(hn.getModel(),Bn)}},[te,un]),(0,y.useEffect)(()=>{Ge.current.instance&&un&&qe.editor.setTheme(ue)},[ue,un]),(0,y.useEffect)(()=>{let hn=Ge.current.instance;Pt.current=fe,hn&&un&&(hn.updateOptions(tt({},fe)),setTimeout(()=>{hn.getModel().updateOptions(tt({},fe))},200))},[JSON.stringify(fe),un]),(0,y.useEffect)(()=>{let hn=Ge.current.instance;hn&&un&&hn.layout()},[kt,ae,un]);const[$n,Vn]=(0,y.useState)(Et(kt)),[Wn,ur]=(0,y.useState)(Et(ae)),rr=Nt(tt({},ie),{width:$n,height:Wn,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:on,style:rr,onFocus:()=>{ot&&zt()}},gt&&y.createElement(Je.CopyToClipboard,{text:ne,onCopy:()=>Xe.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(He.Z,{title:"\u590D\u5236\u4EE3\u7801"},y.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},y.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ct({width:lt="100%",height:nn="100%",original:kt,modified:ae,language:ne,options:te={}}){const ie=(0,y.useRef)(),[fe,re]=(0,y.useState)(null);function ue(ke){let ot;return ie.current&&(ot=new he.Z(ht=>{for(let wt of ht)(wt.target.offsetHeight>0||wt.target.offsetWidth>0)&&ke.layout()}),ot.observe(ie.current)),ot}(0,y.useEffect)(()=>(ie.current&&Promise.all([z.e(8909),z.e(9404)]).then(z.bind(z,2550)).then(ke=>{qe=ke;const ot=qe.editor.createDiffEditor(ie.current,Nt(tt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},te),{wordWrap:!0}));re(ot);let ht=ue(ot);return()=>{ot.dispose();const wt=ot.getModel();wt&&wt.dispose(),ht.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{fe&&fe.setModel({original:qe.editor.createModel(kt,ne),modified:qe.editor.createModel(ae,ne)})},[kt,ae,ne,fe]);const Me=Et(lt),gt=Et(nn),_e={width:Me,height:gt};return y.createElement("div",{className:"my-diff-editor",ref:ie,style:_e})}},54077:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return je}});var y={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",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},he=z(29787),ce=z(25399),Re=z(89787),ve=z(92310),me=z.n(ve),pe=z(76406),Ne=z(90736),be=z(59301),je=({className:Ae,dataSource:it=[],col:ze=4,right:Oe,bottom:Ee=23,precision:Pe=0,wrapWidth:Fe=1200,trackEventItems:Ve,loading:dt,onRemove:Se=()=>{},isCurrent:Ie=!0,showProgress:Xe=!1,showAlias:He=!1,category:rt="notDisplay",hiddenClick:st=()=>{}})=>{const Je=Math.floor((Fe-(ze-1)*Oe)/ze),et=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return be.createElement(he.Z,{spinning:dt},be.createElement("div",{className:me()(y.list,Ae)},!!(it!=null&&it.length)&&(it==null?void 0:it.map((ge,Qe)=>{var we,se,ft,$e,tt,Nt,Le;const{name:ye,id:Et,identifier:Zt,featured:pt,school_name:Ce,image_url:at,excellent:qe,is_plan:zt}=ge;return be.createElement("div",{key:Et,className:Ie&&Xe?y.wrapisCurrent:y.wrap,style:{width:Je,marginRight:(1+Qe)%ze===0?0:Oe+Pe,marginBottom:Ee}},be.createElement("a",{className:y.li,onClick:ut=>{ut.preventDefault(),ut.stopPropagation(),Ve&&(0,pe.L9)([Ve]),(0,pe.xg)(`/paths/${Zt}`)}},be.createElement("div",{className:y.img},be.createElement("img",{className:y.cover,src:`${at}`}),(we=ge==null?void 0:ge.subject_tags)==null?void 0:we.map((ut,ct)=>{var lt,nn;if(ct===0){const ae=(lt=et.find(ne=>ne.name==ut))==null?void 0:lt.swclass;return be.createElement("span",{className:`sprite ${ae} ${y.sign}`,style:{left:"-4px"}})}const kt=(nn=et.find(ae=>ae.name==ut))==null?void 0:nn.ptclass;return be.createElement("span",{className:`sprite ${kt} ${y.sign}`,style:{left:`${48+52*(ct-1)+2*ct}px`}})}),be.createElement("div",{className:y.tagsDom},be.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(ge==null?void 0:ge.excellent)&&be.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((se=ge==null?void 0:ge.custom_tags)==null?void 0:se.length)>0&&(ge==null?void 0:ge.custom_tags.map((ut,ct)=>{var lt;return be.createElement(ce.Z,{title:ut==null?void 0:ut.tag_name,key:ct},be.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((lt=ge==null?void 0:ge.custom_tags)==null?void 0:lt.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},be.createElement("span",{className:"multi-llipsis1e"},ut==null?void 0:ut.tag_name)))})))),rt=="hide"&&(ge==null?void 0:ge.studying)&&Ie&&be.createElement("div",{className:`${y.movebq} user-path-items`,onClick:ut=>{ut.stopPropagation(),Se(ge)}},be.createElement("i",{className:"iconfont icon-yichu1 font12"}),be.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(rt)&&Ie&&be.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:ut=>{ut.stopPropagation(),st(ge)}},be.createElement("i",{className:`iconfont ${rt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),be.createElement("span",null,rt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),be.createElement("div",{className:y.name},be.createElement(ce.Z,{title:He&&(ge!=null&&ge.excellent_alias_name)?be.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ye}`,be.createElement("br",null),be.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ge==null?void 0:ge.excellent_alias_name}`)):ye},be.createElement("span",{className:y.e},He&&(ge==null?void 0:ge.excellent_alias_name)||ye))),Ie&&Xe&&((ft=ge==null?void 0:ge.progress)==null?void 0:ft.all_score)!=0&&be.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},be.createElement(Re.Z,{strokeColor:"#44d7b6",gap:"small",percent:((($e=ge==null?void 0:ge.progress)==null?void 0:$e.my_score)/((tt=ge==null?void 0:ge.progress)==null?void 0:tt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Nt=ge==null?void 0:ge.progress)==null?void 0:Nt.my_score,"/",(Le=ge==null?void 0:ge.progress)==null?void 0:Le.all_score),(!Ie||!Xe)&&be.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ce}`},be.createElement("div",{className:y.unit},be.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ce)),(!Ie||!Xe)&&be.createElement("div",{className:y.tags},be.createElement("div",null,be.createElement(ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),be.createElement("span",null,ge.stages_count))),be.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),be.createElement("span",null,ge.members_count)))))))})),!it.length&&be.createElement(Ne.Z,null)))}},70467:function(En,Vt,z){"use strict";z.d(Vt,{jL:function(){return Re},w9:function(){return ye},QD:function(){return Ut},cQ:function(){return Qe.Z},op:function(){return ot},O5:function(){return Ct},_b:function(){return Ye},t7:function(){return Pe},Gi:function(){return qe},YG:function(){return Ce},qp:function(){return le},vr:function(){return _t},qE:function(){return Ze},Je:function(){return dt},wb:function(){return ge},cq:function(){return kt},tp:function(){return it}});var y=z(59301),he={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"},Re=({dataSource:It=[],img:Gt,imgWidth:tn=346,title:Wt,sunTitle:mn,bannerExtraContent:an})=>y.createElement("div",{className:he.banner},y.createElement("div",{className:he.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,Wt),y.createElement("span",null,mn)),It.length>0&&y.createElement("div",{className:he.btns},It.map((yn,jn)=>y.createElement("div",{key:jn,onClick:yn.click},yn.name,yn.sign?y.createElement("span",{className:"sprite sprite-33"}):null))),an),Gt&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:Gt,width:tn}))),ve={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},me=z(92310),pe=z.n(me),Ne=z(78267),le=({dataSource:It=[],value:Gt,onChange:tn,onTitleChange:Wt,className:mn,title:an,titleWidth:yn=41,style:jn={},fontColor:Nn="#6A7283",showCount:$n})=>{const[Vn,Wn]=(0,y.useState)(1),[ur,rr]=(0,y.useState)(!1),hn=(0,y.useRef)(null),Bn=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var zn;It.length!==0&&(((zn=hn==null?void 0:hn.current)==null?void 0:zn.clientHeight)>97?Wn(1):Wn(0)),It.length===0&&Wn(0),rr(!1)},[It]),y.createElement("div",{className:pe()(ve.row,mn,"fadeIn","animated"),style:jn},y.createElement("div",{onClick:(0,Ne.throttle)(()=>Wt==null?void 0:Wt(),2e3),style:{width:yn,marginTop:ur?12:4},className:`${ve.title} ${Wt?"current":""}`},an),y.createElement("div",{className:ur?`${ve.tagsWrap} ${ve.tagsBorderWrap}`:ve.tagsWrap},y.createElement("div",{className:ve.bar,ref:Bn,style:Vn>0?{height:Vn===1?97:"auto",overflow:Vn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:ve.tag,ref:hn},It==null?void 0:It.map(zn=>y.createElement("span",{onClick:()=>tn(zn.id),key:zn.id,style:{color:Nn},className:Gt===zn.id?ve.active:""},y.createElement("span",{title:zn.name,className:ve.name},zn.name),!!$n&&y.createElement("span",{className:ve.num},zn.count))))),!!Vn&&y.createElement(y.Fragment,null,Vn===1?y.createElement("div",{onClick:()=>{var zn;Wn(2),((zn=hn==null?void 0:hn.current)==null?void 0:zn.clientHeight)>245?rr(!0):rr(!1)},className:ve.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{Bn.current.scrollTop=0,Wn(1),rr(!1)},className:ve.action},"\u6536\u8D77",y.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},je={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"},it=({dataSource:It=[],value:Gt,onChange:tn,className:Wt,style:mn={}})=>y.createElement("div",{style:mn,className:pe()(je.tabs,Wt)},It.map(an=>y.createElement("span",{onClick:()=>tn(an.id),className:Gt===an.id?je.active:"",key:an.id},an.name))),ze={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"},Oe=z(37568),Pe=({dataSource:It=[],value:Gt="",onChange:tn,onInputChange:Wt=()=>{},className:mn,style:an={},placeholder:yn,allowClear:jn=!1})=>{var Nn;const[$n,Vn]=(0,y.useState)(""),[Wn,ur]=(0,y.useState)("");(0,y.useEffect)(()=>{var Bn;let zn=Gt;(Bn=JSON.stringify(Gt))!=null&&Bn.includes("{")&&(Vn(Gt.id),zn=Gt.value||"");try{ur(decodeURIComponent(zn||""))}catch(Hn){ur(decodeURIComponent(zn||""))}},[Gt]);const rr=()=>{tn(encodeURIComponent(Wn),$n||null)},hn=Bn=>{Bn!==$n&&(Vn(Bn),tn(encodeURIComponent(Wn),Bn))};return y.createElement("div",{className:pe()(ze.input,mn),style:an},!!It.length&&y.createElement("div",{className:ze.dropdown},y.createElement("div",{className:ze.text},(Nn=It.find(Bn=>Bn.id===$n))==null?void 0:Nn.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:ze.b1}),y.createElement("b",{className:ze.b2})),y.createElement("div",{className:ze.menu},It.map((Bn,zn)=>y.createElement("div",{key:zn,onClick:()=>hn(Bn.id)},Bn.name)))),y.createElement(Oe.default,{onPressEnter:rr,value:Wn,onChange:Bn=>{ur(Bn.target.value),Wt(encodeURIComponent(Bn.target.value),$n||null)},placeholder:yn,variant:"borderless",allowClear:jn,onClear:()=>tn("",$n||null)}),y.createElement("i",{onClick:rr,className:"iconfont icon-sousuo9 font14 current"}))},Fe={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"},dt=({value:It,onChange:Gt,className:tn,total:Wt,pageSize:mn,style:an={}})=>{const yn=It<2,jn=It>=Math.ceil(Wt/mn);return Wt<=mn?y.createElement(y.Fragment,null):y.createElement("div",{className:pe()(Fe.quickPager,tn),style:an},y.createElement("div",{onClick:()=>{yn||Gt(It-1,"prev")},className:yn?Fe.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{jn||Gt(It+1,"next")},className:jn?Fe.disabled:""},"\u4E0B\u4E00\u9875"))},Se={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"},Ie=z(29787),Xe=z(25399),He=z(63139),rt=z(14185),st=z(76406),Je=z(90736),ge=({className:It,dataSource:Gt=[],col:tn=4,right:Wt,bottom:mn=23,precision:an=0,wrapWidth:yn=1200,trackEventItems:jn,loading:Nn})=>{const $n=Math.floor((yn-(tn-1)*Wt)/tn);return y.createElement(Ie.Z,{spinning:Nn},y.createElement("div",{className:pe()(Se.list,It)},!!Gt.length&&Gt.map((Vn,Wn)=>{const{name:ur,id:rr,identifier:hn,power:Bn,cover_image_id:zn,pic:Hn}=Vn;return y.createElement("div",{className:Se.wrap,key:rr,style:{width:$n,marginRight:(1+Wn)%tn===0?0:Wt+an,marginBottom:mn}},y.createElement("a",{target:"_blank",href:`/shixuns/${hn}/challenges`,className:Se.li,onClick:St=>{St.preventDefault(),jn&&(0,st.L9)([jn]),Bn&&(0,st.xg)(`/shixuns/${hn}/challenges`)}},y.createElement("div",{className:Se.img},y.createElement("img",{className:Se.cover,src:`${Hn}`}),Vn.is_jupyter&&y.createElement("span",{className:`sprite sprite-43 ${Se.sign}`}),Vn.is_jupyter_lab&&y.createElement("span",{className:`sprite sprite-42 ${Se.sign}`}),Vn.is_unity_3d&&y.createElement("span",{className:`sprite sprite-44 ${Se.sign}`})),y.createElement("div",{className:Se.name},y.createElement(Xe.Z,{title:ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Se.e},ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Se.tags},y.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,Vn.challenges_count))),!!Vn.myshixuns_count&&y.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),y.createElement("span",null,Vn.myshixuns_count))),y.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,Vn.level))),y.createElement("div",{className:Se.rate},y.createElement(He.Z,{allowHalf:!0,disabled:!0,defaultValue:Vn.score_info}),y.createElement("span",null,"\xA0",Vn.score_info?`${Vn.score_info}\u5206`:"5\u5206")))),!Bn&&y.createElement("div",{className:Se.lockWrap},y.createElement("img",{src:`${rt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),y.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Gt.length&&y.createElement(Je.Z,null)))},Qe=z(54077),we={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",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},se=z(62957),ft=z(96599),$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",tt=z(59301),Nt=(It,Gt,tn)=>new Promise((Wt,mn)=>{var an=Nn=>{try{jn(tn.next(Nn))}catch($n){mn($n)}},yn=Nn=>{try{jn(tn.throw(Nn))}catch($n){mn($n)}},jn=Nn=>Nn.done?Wt(Nn.value):Promise.resolve(Nn.value).then(an,yn);jn((tn=tn.apply(It,Gt)).next())}),ye=({className:It,dataSource:Gt=[],col:tn=4,right:Wt,bottom:mn=23,precision:an=0,wrapWidth:yn=1200,trackEventItems:jn,loading:Nn,category:$n,hiddenClick:Vn,handleVery:Wn=()=>!0,isCurrent:ur})=>{const[rr,hn]=se.default.useModal(),Bn=Math.floor((yn-(tn-1)*Wt)/tn),zn=Hn=>Nt(void 0,null,function*(){rr.confirm({title:"\u7F6E\u9876",width:500,content:tt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",tt.createElement("span",{className:"c-blue"},"\u201C",Hn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return tt.createElement(Ie.Z,{spinning:Nn},hn,tt.createElement("div",{className:pe()(we.list,It)},!!Gt.length&&Gt.map((Hn,St)=>{const{subject_identifier:$t,id:nt,identifier:Ft,power:Ke}=Hn,Tt=Hn.is_public!=0&&Hn.is_public;return tt.createElement("div",{className:we.wrap,key:nt,style:{width:Bn,marginRight:(1+St)%tn===0?0:Wt+an,marginBottom:mn}},Hn.homepage_show&&tt.createElement("div",{className:we.btnsTop},tt.createElement(ft.default,{color:"red"},"\u7F6E\u9876")),tt.createElement("a",{className:we.li,onClick:Yt=>{Yt.preventDefault(),Wn(Hn==null?void 0:Hn.first_category_url)&&(jn&&(0,st.L9)([jn]),(0,st.xg)(Hn.first_category_url))}},tt.createElement("div",{className:we.top},tt.createElement(Xe.Z,{title:Hn.name},tt.createElement("div",{className:we.name},Hn.name)),tt.createElement("img",{className:we.img,src:rt.Z.IMG_SERVER+"/images/"+Hn.avatar_url}),tt.createElement("div",{className:we.text,title:Hn.creator},Hn.creator),$t&&tt.createElement("div",{className:we.btns},tt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),tt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Tt&&tt.createElement("div",{className:we.sign},"\u516C\u5F00"),ur&&tt.createElement("div",{className:we.hidden,onClick:Yt=>{Yt.stopPropagation(),Vn(Hn)}},tt.createElement("i",{className:`iconfont ${$n=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),$n=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),tt.createElement("div",{className:we.bottom},Hn.visits>0&&tt.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-liulanyan"}),tt.createElement("span",null,Hn.visits))),Hn.course_members_count>0&&tt.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-chengyuan"}),Hn.course_members_count)),Hn.tasks_count>0&&tt.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-zuoye"}),Hn.tasks_count)),Hn.is_end?tt.createElement("div",{style:{color:"#6B758B"}}):tt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Hn.is_accessible&&tt.createElement("div",{className:we.lockWrap},tt.createElement("img",{src:`${rt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),tt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Gt.length&&tt.createElement(Je.Z,null)))},Et={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"},Zt=z(44283),Ce=({dataSource:It=[],value:Gt,onChange:tn,className:Wt,style:mn={},tabBarExtraContent:an})=>y.createElement("div",{className:pe()(Et.tabs,Wt),style:mn},y.createElement("div",{className:Et.tabsWrap},It.map((yn,jn)=>!(yn!=null&&yn.hide)&&y.createElement("aside",{className:Et.tab,onClick:()=>{tn(yn.id),yn.link&&Zt.history.push(yn.link)},key:jn},y.createElement("div",{className:Gt===yn.id?Et.active:""},yn.name),(yn==null?void 0:yn.resetCount)==null&&(yn==null?void 0:yn.total)!==void 0&&y.createElement("span",null,"\uFF08",yn==null?void 0:yn.total,"\uFF09"),(yn==null?void 0:yn.resetCount)!==void 0&&(yn==null?void 0:yn.total)!==void 0&&y.createElement(Xe.Z,{title:(yn==null?void 0:yn.tip)!=null?yn==null?void 0:yn.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},yn==null?void 0:yn.resetCount),"/",y.createElement("span",null,yn==null?void 0:yn.total),"\uFF09"))))),y.createElement("div",{className:Et.tabBar},an)),qe=({className:It,style:Gt={},children:tn})=>y.createElement("div",{className:pe()(It),style:Gt},tn),zt={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"},ut=z(75727),ct=z(93041);const lt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var kt=({sortValue:It,dropValue:Gt,className:tn,onSort:Wt,onDrop:mn,dataSource:an=lt})=>{var yn;return y.createElement("div",{className:pe()(zt.orderWrap,tn)},y.createElement(ut.Z,{dropdownRender:()=>y.createElement(ct.default,null,an.map((jn,Nn)=>y.createElement(ct.default.Item,{key:Nn,onClick:()=>mn(jn.id)},jn.name)))},y.createElement("span",{className:zt.orderTextWrap},(yn=an.find(jn=>Gt===jn.id))==null?void 0:yn.name)),y.createElement("span",{className:zt.orderIconWrap},y.createElement("span",{className:zt.orderAsc},y.createElement("i",{className:It==="asc"?`iconfont icon-sanjiaoxing-up font12 ${zt.cursorPointer} ${zt.active}`:`iconfont icon-sanjiaoxing-up font12 ${zt.cursorPointer}`,onClick:()=>Wt(It==="asc"?"desc":"asc")})),y.createElement("span",{className:zt.orderDesc},y.createElement("i",{className:It==="desc"?`iconfont icon-sanjiaoxing-down font12 ${zt.cursorPointer} ${zt.active}`:`iconfont icon-sanjiaoxing-down font12 ${zt.cursorPointer}`,onClick:()=>Wt(It==="asc"?"desc":"asc")}))))},ae={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"},ne=z(7939),te=Object.defineProperty,ie=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ue=(It,Gt,tn)=>Gt in It?te(It,Gt,{enumerable:!0,configurable:!0,writable:!0,value:tn}):It[Gt]=tn,Me=(It,Gt)=>{for(var tn in Gt||(Gt={}))fe.call(Gt,tn)&&ue(It,tn,Gt[tn]);if(ie)for(var tn of ie(Gt))re.call(Gt,tn)&&ue(It,tn,Gt[tn]);return It},gt=(It,Gt)=>{var tn={};for(var Wt in It)fe.call(It,Wt)&&Gt.indexOf(Wt)<0&&(tn[Wt]=It[Wt]);if(It!=null&&ie)for(var Wt of ie(It))Gt.indexOf(Wt)<0&&re.call(It,Wt)&&(tn[Wt]=It[Wt]);return tn},_e=(It,Gt,tn)=>new Promise((Wt,mn)=>{var an=Nn=>{try{jn(tn.next(Nn))}catch($n){mn($n)}},yn=Nn=>{try{jn(tn.throw(Nn))}catch($n){mn($n)}},jn=Nn=>Nn.done?Wt(Nn.value):Promise.resolve(Nn.value).then(an,yn);jn((tn=tn.apply(It,Gt)).next())}),ot=It=>{var Gt=It,{className:tn,style:Wt,children:mn,loading:an=!1,openLoading:yn,onClick:jn=()=>{},size:Nn="middle",shape:$n="round"}=Gt,Vn=gt(Gt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Wn,ur]=(0,y.useState)(!1);return y.createElement(ne.ZP,Me({onClick:(0,Ne.throttle)(rr=>_e(void 0,null,function*(){yn&&ur(!0);try{yield jn(rr)}catch(hn){console.log("error",hn)}yn&&ur(!1)}),2e3,{leading:!0,trailing:!1}),className:pe()(ae.btn,ae[`${Nn}-${$n}`],tn),style:Wt,size:Nn,shape:$n,loading:Wn||an},Vn),mn)},ht={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"},Ze=({className:It,style:Gt,children:tn=null,onClick:Wt,title:mn})=>y.createElement("div",{className:pe()(ht.head,It),style:Gt},y.createElement("span",{className:"primary-hover",onClick:Wt},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:mn},mn),y.createElement("div",{className:ht.node},tn)),We={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"},Ut=({confirmShow:It=!0,confirmTitle:Gt,confirmClick:tn,cancelShow:Wt=!0,cancelTitle:mn,cancelClick:an,className:yn,style:jn,confirmLoading:Nn=!1})=>y.createElement("div",{className:pe()(We.btns,yn),style:jn},It&&y.createElement(ne.ZP,{loading:Nn,onClick:tn,type:"primary",className:We.confirm},Gt),Wt&&y.createElement(ne.ZP,{onClick:an,className:We.cancel},mn)),cn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},_t=({className:It,style:Gt={},LeftContent:tn,children:Wt,RightContent:mn})=>y.createElement("div",{className:pe()(cn.fixedBottom,It),style:Gt},y.createElement("div",{className:cn.wrap},y.createElement("div",{className:cn.left},tn),y.createElement("div",{className:cn.center},Wt),y.createElement("div",{className:cn.right},mn))),fn={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"},Ye=({className:It,style:Gt={},dataSource:tn=[]})=>y.createElement("div",{className:pe()(fn.crumbs,It),style:Gt},tn.map((Wt,mn)=>mn<tn.length-1?y.createElement(y.Fragment,{key:mn},Wt.path||Wt.onClick?y.createElement("span",{className:fn.hover,onClick:Wt!=null&&Wt.onClick?Wt.onClick:()=>Zt.history.push(Wt.path)},Wt.name):y.createElement("span",null,Wt.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:mn,style:{color:"#5F6368"}},Wt.name))),Ot=z(11938),Jt=Object.defineProperty,on=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Lt=(It,Gt,tn)=>Gt in It?Jt(It,Gt,{enumerable:!0,configurable:!0,writable:!0,value:tn}):It[Gt]=tn,Rt=(It,Gt)=>{for(var tn in Gt||(Gt={}))jt.call(Gt,tn)&&Lt(It,tn,Gt[tn]);if(Pt)for(var tn of Pt(Gt))vt.call(Gt,tn)&&Lt(It,tn,Gt[tn]);return It},sn=(It,Gt)=>on(It,Ge(Gt)),Sn=(It,Gt)=>{var tn={};for(var Wt in It)jt.call(It,Wt)&&Gt.indexOf(Wt)<0&&(tn[Wt]=It[Wt]);if(It!=null&&Pt)for(var Wt of Pt(It))Gt.indexOf(Wt)<0&&vt.call(It,Wt)&&(tn[Wt]=It[Wt]);return tn};const{Countdown:un}=Ot.default;var Ct=It=>{var Gt=It,{onChange:tn}=Gt,Wt=Sn(Gt,["onChange"]);const[mn,an]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof mn=="number"&&mn>=0&&tn(mn)},[mn]);const yn=jn=>{const Nn=Math.floor(jn/1e3);an(Nn)};return y.createElement(un,sn(Rt({},Wt),{onChange:yn}))}},79006:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return he}});var y=z(59301);function he(ce,Re){const ve=(0,y.useRef)();(0,y.useEffect)(()=>{ve.current=ce}),(0,y.useEffect)(()=>{function me(){ve.current()}if(Re!==null){let pe=setInterval(me,Re);return()=>clearInterval(pe)}},[Re])}},30628:function(En,Vt,z){"use strict";z.d(Vt,{h:function(){return y}});var y=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(y||{})},19160:function(En,Vt,z){"use strict";z.d(Vt,{H7:function(){return Oe},MK:function(){return ze},MU:function(){return le},X6:function(){return Ae},bM:function(){return be},fi:function(){return Ee},fu:function(){return Ne},n4:function(){return Pe},rX:function(){return it},vl:function(){return Fe},zO:function(){return je}});var y=z(49317),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(Ve,dt,Se)=>dt in Ve?he(Ve,dt,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Ve[dt]=Se,pe=(Ve,dt)=>{for(var Se in dt||(dt={}))Re.call(dt,Se)&&me(Ve,Se,dt[Se]);if(ce)for(var Se of ce(dt))ve.call(dt,Se)&&me(Ve,Se,dt[Se]);return Ve};function Ne(Ve,dt){return(0,y.U2)(`myproblems/${Ve}.json`,pe({hidePopLogin:!0},dt||{}))}function be(Ve,dt){return(0,y.v_)(`myproblems/${Ve}/code_submit.json`,dt)}function le(Ve,dt){return(0,y.v_)(`myproblems/${Ve}/code_debug.json`,dt)}function je(Ve,dt){return dt.language&&(dt.language=encodeURIComponent(dt.language)),(0,y.U2)(`myproblems/${Ve}/submit_records.json`,dt)}function Ae(Ve){return(0,y.U2)("myproblems/record_detail.json",{id:Ve})}function it(Ve,dt){return(0,y.U2)(`myproblems/${Ve}/result.json`,{mode:dt})}function ze(Ve,dt){return(0,y.v_)(`myproblems/${Ve}/add_notes.json`,dt)}function Oe(Ve,dt){return(0,y.v_)(`myproblems/${Ve}/restore_initial_code.json`,dt)}function Ee(Ve){return(0,y.v_)(`myproblems/${Ve}/sync_code.json`)}function Pe(Ve,dt){return(0,y.v_)(`myproblems/${Ve}/update_code.json`,dt)}function Fe(Ve,dt){return(0,y.v_)(`discusses/${Ve}/plus.json`,dt)}},9593:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ci}});var y=z(59301),he={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",btn_warp:"btn_warp___fOE2S"},ce=z(28284),Re=z(25399),ve=z(7939),me=z(62957),pe=z(4875),Ne=z(6767),be=z(37568),le=z(37285),je=z(62673),Ae=z(37639),it=z(77019),ze=z(5269),Oe=z(31709),Ee=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,dt=(bt,Ht,Qt)=>Ht in bt?Ee(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,Se=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))Fe.call(Ht,Qt)&&dt(bt,Qt,Ht[Qt]);if(Pe)for(var Qt of Pe(Ht))Ve.call(Ht,Qt)&&dt(bt,Qt,Ht[Qt]);return bt};const Ie=bt=>React.createElement("svg",Se({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},bt),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 Xe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",He=z(35883),rt=z(44283),st=z(76406),Je=z(49317),et=Object.defineProperty,ge=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,se=(bt,Ht,Qt)=>Ht in bt?et(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,ft=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))Qe.call(Ht,Qt)&&se(bt,Qt,Ht[Qt]);if(ge)for(var Qt of ge(Ht))we.call(Ht,Qt)&&se(bt,Qt,Ht[Qt]);return bt};const $e=bt=>React.createElement("svg",ft({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},bt),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 tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Nt=Object.defineProperty,Le=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Zt=(bt,Ht,Qt)=>Ht in bt?Nt(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,pt=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))ye.call(Ht,Qt)&&Zt(bt,Qt,Ht[Qt]);if(Le)for(var Qt of Le(Ht))Et.call(Ht,Qt)&&Zt(bt,Qt,Ht[Qt]);return bt};const Ce=bt=>React.createElement("svg",pt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},bt),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 at="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",qe=z(45050),zt=z(39116),ut=z(5622),ct={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"},lt=z(59301),nn=Object.defineProperty,kt=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,fe=(bt,Ht,Qt)=>Ht in bt?nn(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,re=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))te.call(Ht,Qt)&&fe(bt,Qt,Ht[Qt]);if(ne)for(var Qt of ne(Ht))ie.call(Ht,Qt)&&fe(bt,Qt,Ht[Qt]);return bt},ue=(bt,Ht)=>kt(bt,ae(Ht)),Me=(bt,Ht)=>{var Qt={};for(var gn in bt)te.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&ne)for(var gn of ne(bt))Ht.indexOf(gn)<0&&ie.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const gt=null,_e=(bt,Ht)=>{var Qt=bt,{globalSetting:gn,loading:go,dispatch:Kr,isEdit:fo,editData:Fr}=Qt,Vr=Me(Qt,["globalSetting","loading","dispatch","isEdit","editData"]);const[_o,ho]=(0,y.useState)(""),[oi,pi]=(0,y.useState)(""),[Qo,gr]=(0,y.useState)([]),[io,yo]=(0,y.useState)(""),[Ao,zr]=(0,y.useState)(),[Go,fi]=(0,y.useState)(!1),[ao,bo]=(0,y.useState)({}),[Ar,no]=(0,y.useState)([]);(0,y.useEffect)(()=>{!Fr||!fo||(ho(Fr==null?void 0:Fr.name),pi(Fr==null?void 0:Fr.analysis),zr(Fr==null?void 0:Fr.is_ordered),bo(Fr),fi(!0))},[Fr]),(0,y.useEffect)(()=>{if(!Go)return;const cr=Fr==null?void 0:Fr.standard_answer.map(Di=>Di==null?void 0:Di.answer_text);gr(cr);const Ci=Fr==null?void 0:Fr.standard_answer.map(Di=>Di==null?void 0:Di.score);no(Ci),fi(!1)},[Go]),(0,y.useImperativeHandle)(Ht,()=>({onSave:bi,Clear:pa}));const bi=()=>{let cr=[],Ci=!1;return _o?(Qo.forEach((Di,Ei)=>{cr.push({position:Ei+1,answer_text:[],score:Ar[Ei]}),Di==null||Di.forEach((wa,Ql)=>{cr[Ei].answer_text.push(wa),(!wa||!(0,st.eR)(wa,1e4))&&(yo(`${Ei}-${Ql}`),Ne.ZP.info(wa?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Ci=!0)})}),Ci?!1:(cr==null?void 0:cr.length)>20?(Ne.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:_o,analysis:oi,standard_answers:cr,is_ordered:Ao,downcase:ao==null?void 0:ao.downcase,no_space:ao==null?void 0:ao.no_space,use_blank_score:ao==null?void 0:ao.use_blank_score}):(Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},pa=()=>{ho(""),pi(""),gr([]),zr(!1)},Ji=(cr,Ci,Di)=>{const Ei=Qo.slice();if(Ci&&Ei.splice(cr,Ci),Di)for(let wa=0;wa<Di;wa++)Ei.splice(cr+wa,0,[""]);gr(Ei)},hl=(cr,Ci,Di)=>{yo("");let Ei=Qo.slice();Ei[cr][Ci]=Di,gr(Ei)},zo=cr=>{let Ci=Qo.slice();Ci[cr]=[...Ci[cr],""],gr(Ci)},Za=(cr,Ci)=>{let Di=Qo.slice();if(!Di[cr][Ci]){Di[cr]=Di[cr].filter((Ei,wa)=>wa!==Ci),gr(Di);return}me.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:ct.modal,onOk:()=>{Di[cr]=Di[cr].filter((Ei,wa)=>wa!==Ci),gr(Di)}})},Fa=cr=>{me.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:ct.modal,onOk:()=>{let Ci=Qo.slice();Ci=Qo.filter((Di,Ei)=>cr!==Ei),gr(Ci)}})};return lt.createElement("section",{className:ct.wrap},lt.createElement("p",{className:ct.titleWrap},lt.createElement("span",{className:ct.required},"*"),lt.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),lt.createElement("div",null,lt.createElement(zt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",height:155,defaultValue:_o,onChange:cr=>ho(cr),showNullButton:!0,onAddBlank:()=>gr(cr=>[...cr,[""]])})),lt.createElement("div",{className:"mt20 flex flex-col gap-10px"},Qo.map((cr,Ci)=>lt.createElement("div",{style:{display:"flex"}},lt.createElement("div",{style:{flex:1}},lt.createElement(ut.Z,{key:Ci,answers:cr,index:Ci,flex:1,is_md:!0,activeOptionErrorIndex:io,onAnswerChange:hl,addChildAnswer:zo,deleteChildAnswer:Za,deleteChildAnswermain:Fa})),ao.use_blank_score&&lt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},lt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",lt.createElement(pe.Z,{style:{width:"100px"},size:"large",defaultValue:Ar[Ci],onBlur:Di=>{Ar[Ci]=Di.target.value,no([...Ar])}}))))),lt.createElement(ve.ZP,{className:"mt20",onClick:()=>gr(cr=>[...cr,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),lt.createElement("div",null,lt.createElement(je.default,{className:`${ct.color333} font14 mt20`,checked:ao.use_blank_score,onChange:cr=>bo(ue(re({},ao),{use_blank_score:cr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),lt.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")),lt.createElement("div",null,lt.createElement(je.default,{className:`${ct.color333} font14 mt20`,checked:ao.downcase,onChange:cr=>bo(ue(re({},ao),{downcase:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),lt.createElement("div",null,lt.createElement(je.default,{className:`${ct.color333} font14 mt20`,checked:ao.no_space,onChange:cr=>bo(ue(re({},ao),{no_space:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),lt.createElement("div",{className:"mt20"},(Qo==null?void 0:Qo.length)>1&&lt.createElement("span",null,lt.createElement(je.default,{checked:Ao,onChange:cr=>zr(cr.target.checked),className:`${ct.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),lt.createElement("span",{className:`${ct.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"))),lt.createElement("p",{className:ct.titleWrap},lt.createElement("span",{className:ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),lt.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oi,onChange:cr=>pi(cr)}))};var ke=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(_e)),ot=z(47889),ht=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,We=(bt,Ht)=>{var Qt={};for(var gn in bt)wt.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&ht)for(var gn of ht(bt))Ht.indexOf(gn)<0&&Ze.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const Mt=null,Ut=(bt,Ht)=>{var Qt=bt,{globalSetting:gn,loading:go,editData:Kr,dispatch:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=We(Qt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(),[pi,Qo]=(0,y.useState)(""),[gr,io]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!Kr||!Vr)return;Qo(Kr==null?void 0:Kr.name),io(Kr==null?void 0:Kr.analysis);const zr=Kr==null?void 0:Kr.choices.find(Go=>Go.is_answer);oi(zr.choice_text==="\u6B63\u786E"?"0":"1")},[Kr]),(0,y.useImperativeHandle)(Ht,()=>({onSave:yo,Clear:Ao}));const yo=()=>pi?ho?{name:pi,choices:[{choice_text:"\u6B63\u786E",is_answer:ho==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ho==="1"?1:0}],analysis:gr}:(Ne.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ao=()=>{Qo(""),io(""),oi("")};return y.createElement("section",{className:ct.wrap},y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:pi,onChange:zr=>Qo(zr)}),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(ot.ZP.Group,{buttonStyle:"solid",value:ho,onChange:zr=>oi(zr.target.value)},y.createElement(ot.ZP.Button,{value:"0",className:`${ct.radio} mr40`},"\u6B63\u786E"),y.createElement(ot.ZP.Button,{value:"1",className:ct.radio},"\u9519\u8BEF")),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:gr,onChange:zr=>io(zr)}))};var cn=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ut)),ln=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,qt=(bt,Ht)=>{var Qt={};for(var gn in bt)_t.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&ln)for(var gn of ln(bt))Ht.indexOf(gn)<0&&fn.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const Ye=null,Ot=(bt,Ht)=>{var Qt=bt,{globalSetting:gn,loading:go,editData:Kr,dispatch:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=qt(Qt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]);(0,y.useEffect)(()=>{var io;if(!Kr||!Vr)return;const yo=(io=Kr==null?void 0:Kr.shixun)==null?void 0:io.challenges.map(Ao=>({id:Ao==null?void 0:Ao.id,score:Ao.score}));oi(yo)},[Kr]),(0,y.useImperativeHandle)(Ht,()=>({onSave:pi,Clear:Qo}));const pi=()=>({challenges:[...ho]}),Qo=()=>{oi([])};console.log("editData--",Kr);const gr=io=>{var yo,Ao;return y.createElement("div",null,(Ao=(yo=io==null?void 0:io.shixun)==null?void 0:yo.challenges)==null?void 0:Ao.map((zr,Go)=>{var fi;return y.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",Go+1,"\u5173"),y.createElement(Re.Z,{key:Go,title:zr==null?void 0:zr.challenge_name},y.createElement("span",null,(0,st.Pq)(zr==null?void 0:zr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u5206\u503C\uFF1A"),y.createElement(pe.Z,{precision:1,min:1,max:100,className:ct.baseFormItem,style:{width:176},value:(fi=ho.find(ao=>ao.id===zr.id))==null?void 0:fi.score,onChange:ao=>{ho.find(bo=>bo.id===zr.id).score=ao,oi([...ho])}})))}),y.createElement("div",{style:{clear:"both"}}))};return y.createElement("section",{className:ct.wrap},y.createElement(He.Z,{style:{paddingRight:10},className:ct.titleHtml,value:`${Kr==null?void 0:Kr.position}\u3001${Kr==null?void 0:Kr.name}`}),y.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u5173\u5361")),gr(Kr))};var Jt=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ot)),on=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,jt=(bt,Ht)=>{var Qt={};for(var gn in bt)Ge.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&on)for(var gn of on(bt))Ht.indexOf(gn)<0&&Pt.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const vt=["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"],Lt=(bt,Ht)=>{var Qt=bt,{editData:gn,globalSetting:go,loading:Kr,dispatch:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=jt(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)([]),[yo,Ao]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!gn||!Vr)return;Ao(gn==null?void 0:gn.name),Go(gn==null?void 0:gn.analysis),oi(gn==null?void 0:gn.choices.map(Ar=>Ar.choice_text));const bo=[];gn==null||gn.choices.map((Ar,no)=>{Ar.is_answer&&bo.push(no)}),io(bo)},[gn]),(0,y.useImperativeHandle)(Ht,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!yo)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const bo=ho.findIndex(no=>!no);if(bo>-1)return Ne.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${vt[bo]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!gr.length)return Ne.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(gr.length<2)return Ne.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const Ar=ho.map((no,bi)=>({choice_text:no,is_answer:gr.includes(bi)?1:0}));return{name:yo,choices:Ar,analysis:zr}},ao=()=>{oi(["","","",""]),Ao(""),Go(""),io("")};return y.createElement("section",{className:ct.wrap},y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:yo,onChange:bo=>Ao(bo)}),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((bo,Ar)=>y.createElement("div",{className:ct.choiceWrap,key:Ar},y.createElement(Re.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${ct.answer} ${gr.includes(Ar)?ct.activeAnswer:""}`,onClick:()=>{gr.includes(Ar)?io(gr.filter(no=>no!==Ar)):io([...gr,Ar])}},vt[Ar])),y.createElement("div",{className:ct.editorWrap},pi===Ar?y.createElement(zt.Z,{id:`single-question-option-${Ar}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bo,onChange:no=>{ho[Ar]=no,oi(ho)}}):y.createElement("div",{className:ct.htmlWrap,onClick:()=>Qo(Ar)},y.createElement(He.Z,{value:bo}))),Ar>1&&y.createElement(Re.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{oi(ho.filter((no,bi)=>bi!==Ar)),gr.includes(Ar)?io(gr.filter(no=>no!==Ar)):io([...gr,Ar])}})),Ar<14&&Ar===ho.length-1&&y.createElement(Re.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zr,onChange:bo=>Go(bo)}))};var Rt=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Lt)),sn=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Cn=(bt,Ht)=>{var Qt={};for(var gn in bt)Sn.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&sn)for(var gn of sn(bt))Ht.indexOf(gn)<0&&un.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const Ct=["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"],It=(bt,Ht)=>{var Qt=bt,{editData:gn,globalSetting:go,loading:Kr,dispatch:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=Cn(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)(),[yo,Ao]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!gn||!Vr)return;const bo=[],Ar=[];gn==null||gn.choices.forEach((no,bi)=>{bo.push(no.choice_text),no.is_answer&&Ar.push(bi)}),Ao(gn==null?void 0:gn.name),Go(gn==null?void 0:gn.analysis),oi(bo),io(Ar)},[gn]),(0,y.useImperativeHandle)(Ht,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!yo)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const bo=ho.findIndex(no=>!no);if(bo>-1)return Ne.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ct[bo]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(gr))return Ne.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 Ar=ho.map((no,bi)=>({choice_text:no,is_answer:gr.includes(bi)?1:0}));return{name:yo,choices:Ar,analysis:zr}},ao=()=>{oi(["","","",""]),Ao(""),Go(""),io("")};return y.createElement("section",{className:ct.wrap},y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:yo,onChange:bo=>Ao(bo)}),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.required},"*"),y.createElement("span",{className:ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((bo,Ar)=>y.createElement("div",{className:ct.choiceWrap,key:Ar},y.createElement(Re.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${ct.answer} ${gr!=null&&gr.includes(Ar)?ct.activeAnswer:""}`,onClick:()=>io([Ar])},Ct[Ar])),y.createElement("div",{className:ct.editorWrap},pi===Ar?y.createElement(zt.Z,{id:`single-question-option-${Ar}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:bo,onChange:no=>{ho[Ar]=no,oi(ho)}}):y.createElement("div",{className:ct.htmlWrap,onClick:()=>Qo(Ar)},y.createElement(He.Z,{value:bo}))),Ar>1&&y.createElement(Re.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{oi(ho.filter((no,bi)=>bi!==Ar)),Ar===gr&&io(null)}})),Ar<14&&Ar===ho.length-1&&y.createElement(Re.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:ct.titleWrap},y.createElement("span",{className:ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zr,onChange:bo=>Go(bo)}))};var Gt=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(It)),tn=z(96599),Wt=z(58755),mn=z(61485),an=z(59301),yn=Object.defineProperty,jn=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,ur=(bt,Ht,Qt)=>Ht in bt?yn(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,rr=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))Vn.call(Ht,Qt)&&ur(bt,Qt,Ht[Qt]);if($n)for(var Qt of $n(Ht))Wn.call(Ht,Qt)&&ur(bt,Qt,Ht[Qt]);return bt},hn=(bt,Ht)=>jn(bt,Nn(Ht)),Bn=(bt,Ht)=>{var Qt={};for(var gn in bt)Vn.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&$n)for(var gn of $n(bt))Ht.indexOf(gn)<0&&Wn.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt},zn=(bt,Ht,Qt)=>new Promise((gn,go)=>{var Kr=Vr=>{try{Fr(Qt.next(Vr))}catch(_o){go(_o)}},fo=Vr=>{try{Fr(Qt.throw(Vr))}catch(_o){go(_o)}},Fr=Vr=>Vr.done?gn(Vr.value):Promise.resolve(Vr.value).then(Kr,fo);Fr((Qt=Qt.apply(bt,Ht)).next())});const Hn=bt=>{if(!bt)return!1;if(/^s*$/.test(bt)||bt.trim()===""){Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ht=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 bt==="|"?(Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},St=({value:bt=[],onClose:Ht})=>an.createElement(tn.default,{closable:!0,onClose:Ht,className:ct.keywordTag},an.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},bt.join(" \u6216 "))),$t=(bt,Ht)=>{var Qt=bt,{editData:gn,globalSetting:go,loading:Kr,dispatch:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=Bn(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)(""),[gr,io]=(0,y.useState)(""),[yo,Ao]=(0,y.useState)(""),[zr]=ce.default.useForm(),Go=ce.default.useWatch("use_keywords",zr);(0,y.useEffect)(()=>{var Ar;!gn||!Vr||(oi(gn==null?void 0:gn.name),Qo(gn==null?void 0:gn.analysis),io((Ar=gn==null?void 0:gn.answer_texts)==null?void 0:Ar[0]),zr.setFieldsValue(rr({},gn)))},[gn]),(0,y.useImperativeHandle)(Ht,()=>({onSave:fi,Clear:ao}));const fi=()=>zn(void 0,null,function*(){if(!ho)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield zr.validateFields()}catch(no){Ne.ZP.error(no.errorFields[0].errors[0]);return}const Ar=zr.getFieldsValue();return console.log(Ar,"values"),rr({name:ho,answer_texts:[gr],analysis:pi},Ar)}),ao=()=>{oi(""),Qo(""),io(""),zr.resetFields()},bo=gn==null?void 0:gn.score;return an.createElement("section",{className:ct.wrap},an.createElement("p",{className:ct.titleWrap},an.createElement("span",{className:ct.required},"*"),an.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),an.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:Ar=>oi(Ar)}),an.createElement("p",{className:ct.titleWrap},an.createElement("span",{className:ct.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),an.createElement(zt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:gr,onChange:Ar=>io(Ar)}),an.createElement("p",{className:ct.titleWrap},an.createElement("span",{className:ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),an.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pi,onChange:Ar=>Qo(Ar)}),an.createElement(ce.default,{form:zr,size:"large",onFinishFailed:Ar=>zn(void 0,null,function*(){var no,bi;Ne.ZP.error(Ar.errorFields[0].errors[0]),zr.scrollToField((bi=(no=Ar==null?void 0:Ar.errorFields)==null?void 0:no[0])==null?void 0:bi.name,{behavior:"smooth",block:"center"})})},an.createElement(it.Z,{align:"middle",className:"mb30 mt20"},an.createElement(ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},an.createElement(Wt.Z,null)),an.createElement(ze.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),an.createElement(ze.Z,null,an.createElement(Re.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"},an.createElement(mn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Go&&an.createElement(ce.default.List,{name:"keywords",rules:[{validator(Ar,no){return no!=null&&no.length?(no==null?void 0:no.reduce((pa,Ji)=>pa+Ji.score,0))>parseFloat(bo)?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"))}}]},(Ar,{add:no,remove:bi})=>an.createElement(an.Fragment,null,an.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),an.createElement(it.Z,{align:"middle",className:"font14 mb30"},an.createElement(ze.Z,{flex:1},an.createElement(be.default,{value:yo,onChange:pa=>{Ao(pa.target.value)},maxLength:50,allowClear:!0,onPressEnter:pa=>{var Ji,hl,zo,Za;const Fa=`${(Ji=pa.target)==null?void 0:Ji.value}`,cr=(zo=(hl=Fa==null?void 0:Fa.split("|"))==null?void 0:hl.filter(Ei=>!!Ei))==null?void 0:zo.map(Ei=>Ei==null?void 0:Ei.trim()),Ci=zr.getFieldValue("keywords"),Di=((Za=Ci==null?void 0:Ci.map(Ei=>Ei==null?void 0:Ei.keyword))==null?void 0:Za.flat())||[];for(const Ei of cr)if(Di.includes(Ei)){Ne.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Hn(Fa)&&(no({keyword:cr,score:1}),Ao(""))},className:ct.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"})),an.createElement(ze.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ar.map(pa=>{var Ji=pa,{key:hl,name:zo}=Ji,Za=Bn(Ji,["key","name"]);return an.createElement(it.Z,{key:hl,style:{marginRight:148}},an.createElement(ze.Z,{flex:1},an.createElement(it.Z,{align:"middle",justify:"space-between"},an.createElement(ce.default.Item,hn(rr({},Za),{name:[zo,"keyword"]}),an.createElement(St,{onClose:()=>bi(zo)})),an.createElement(ce.default.Item,hn(rr({},Za),{name:[zo,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),an.createElement(pe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var nt=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)($t)),Ft=z(8848),Ke={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"},Tt=z(32134),Yt=z(12893),Rn=Object.defineProperty,Zn=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,pn=(bt,Ht,Qt)=>Ht in bt?Rn(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,Pn=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))Bt.call(Ht,Qt)&&pn(bt,Qt,Ht[Qt]);if(xt)for(var Qt of xt(Ht))At.call(Ht,Qt)&&pn(bt,Qt,Ht[Qt]);return bt},In=(bt,Ht)=>Zn(bt,yt(Ht)),Mn=(bt,Ht)=>{var Qt={};for(var gn in bt)Bt.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&xt)for(var gn of xt(bt))Ht.indexOf(gn)<0&&At.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const qn=bt=>{var Ht=bt,{value:Qt,onChange:gn,scrollId:go}=Ht,Kr=Mn(Ht,["value","onChange","scrollId"]);return y.createElement("div",{id:go||""},y.createElement(zt.Z,In(Pn({},Kr),{defaultValue:Qt,onChange:(fo,Fr)=>{Fr!=null&&Fr.length?gn(fo,Fr):gn(fo)}})))},nr=({value:bt,onChange:Ht,placeholder:Qt,height:gn=140,isEdit:go})=>go?y.createElement(zt.Z,{watch:!0,isFocus:!0,height:gn,placeholder:Qt,defaultValue:bt,onChange:Ht}):y.createElement("div",{style:{cursor:"pointer"}},bt?y.createElement(He.Z,{className:Ke.inputBorder,value:bt}):y.createElement("div",{className:`${Ke.inputBorder} ${Ke.placeholder}`},Qt));var ir=z(59301),lr=Object.defineProperty,Qn=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Zr=(bt,Ht,Qt)=>Ht in bt?lr(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,jr=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))Sr.call(Ht,Qt)&&Zr(bt,Qt,Ht[Qt]);if(fr)for(var Qt of fr(Ht))br.call(Ht,Qt)&&Zr(bt,Qt,Ht[Qt]);return bt},hr=(bt,Ht)=>Qn(bt,ar(Ht)),Nr=(bt,Ht)=>{var Qt={};for(var gn in bt)Sr.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&fr)for(var gn of fr(bt))Ht.indexOf(gn)<0&&br.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const eo=["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"],Tr=({value:bt,onChange:Ht,choiceTextKey:Qt,answerKey:gn,index:go,isEdit:Kr,setInputActive:fo,form:Fr,choiceOptionsPath:Vr,allowChangeMode:_o,showAddIcon:ho,addItem:oi,deleteItem:pi})=>{const Qo=(bt==null?void 0:bt[gn])===!0,gr=()=>{const yo=Fr.getFieldValue(Vr);Fr.setFieldValue(Vr,yo.map(Ao=>hr(jr({},Ao),{[gn]:!1})))},io=()=>{Qo?Ht(hr(jr({},bt),{[gn]:!1})):(_o||gr(),Ht(hr(jr({},bt),{[gn]:!0})))};return ir.createElement(it.Z,{className:Ke.choiceWrap,align:"middle",wrap:!1},ir.createElement(ze.Z,{onClick:io,className:`${Ke.choiceIndex} ${Qo?Ke.activeAnswer:""}`},eo[go]),ir.createElement(ze.Z,{flex:1,className:`${Ke.editorWrap} ml15`,onClick:fo},ir.createElement(nr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Kr,value:bt==null?void 0:bt[Qt],onChange:yo=>{Ht(hr(jr({},bt),{[Qt]:yo}))}})),ir.createElement(ze.Z,{flex:"0 0 auto",className:"ml15"},ir.createElement("div",{onClick:io,className:`${Ke.setAnswerBtn} ${Qo?Ke.activeAnswer:""}`},Qo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),ir.createElement(ze.Z,{className:Ke.actionWrapper},ir.createElement(Re.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ir.createElement(Tt.Z,{className:Ke.addIcon,onClick:oi,style:{visibility:ho?"visible":"hidden"}})),ir.createElement(Re.Z,{title:"\u5220\u9664"},ir.createElement(Yt.Z,{className:Ke.deleteIcon,onClick:pi,style:{visibility:go>1?"visible":"hidden"}}))))},Pr=({questionTitlePlaceholder:bt,titleKey:Ht,choiceKey:Qt,analysisKey:gn,choiceTextKey:go,answerKey:Kr,choiceOptionsPath:fo,allowChangeMode:Fr=!0,form:Vr,showAnalysis:_o=!0})=>{const[ho,oi]=(0,y.useState)(),[pi,Qo]=(0,y.useState)(!1);return ir.createElement("div",{className:Ke.wrap},ir.createElement("div",{className:Ke.questionTitleEditorWrap},ir.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Ht,labelCol:{span:24},rules:[{required:!0}]},ir.createElement(qn,{scrollId:Array.isArray(Ht)?Ht.join("_"):`${Ht}`,watch:!0,height:140,placeholder:bt}))),ir.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ir.createElement(ce.default.List,{name:Qt,rules:[{validator(gr,io){const yo=io.some(zr=>zr[Kr]),Ao=io.findIndex(zr=>{var Go;return((Go=zr[go])==null?void 0:Go.length)<=0});return Ao!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${eo[Ao]}\u9009\u9879\u7684\u5185\u5BB9`)):yo?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(gr,{add:io,remove:yo})=>ir.createElement("div",{id:Array.isArray(fo)?fo.join("_"):`${fo}`},gr.map((Ao,zr)=>{var Go=Ao,{key:fi,name:ao}=Go,bo=Nr(Go,["key","name"]);const Ar=ho===fi,no=()=>{oi(fi)},bi=zr<7&&zr===gr.length-1,pa=()=>io({[go]:"",[Kr]:0}),Ji=()=>yo(ao);return ir.createElement(ce.default.Item,hr(jr({},bo),{key:fi,name:ao,noStyle:!0}),ir.createElement(Tr,{choiceTextKey:go,answerKey:Kr,index:zr,isEdit:Ar,setInputActive:no,form:Vr,choiceOptionsPath:fo,allowChangeMode:Fr,showAddIcon:bi,addItem:pa,deleteItem:Ji}))}),gr.length<15&&ir.createElement("div",{className:`${Ke.addBtn} mb30`,onClick:()=>io({[go]:"",[Kr]:0})},"\u6DFB\u52A0\u9009\u9879"))),_o&&ir.createElement("div",{onClick:()=>Qo(!0)},ir.createElement(ce.default.Item,{name:gn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ir.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pi}))))};var or=z(59301),Ur=Object.defineProperty,Rr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,ti=(bt,Ht,Qt)=>Ht in bt?Ur(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,Eo=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))so.call(Ht,Qt)&&ti(bt,Qt,Ht[Qt]);if(Cr)for(var Qt of Cr(Ht))Ho.call(Ht,Qt)&&ti(bt,Qt,Ht[Qt]);return bt},No=(bt,Ht)=>Rr(bt,Br(Ht)),To=(bt,Ht)=>{var Qt={};for(var gn in bt)so.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&Cr)for(var gn of Cr(bt))Ht.indexOf(gn)<0&&Ho.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const Xo=({value:bt,onChange:Ht,position:Qt,removeBlank:gn})=>{const go=fo=>{me.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:Ke.modal,onOk:()=>{const Fr=[...bt];Fr.splice(fo,1),Fr.length===0?gn(Qt-1):Ht(Fr)}})},Kr=()=>{const fo=[...bt];fo.push(""),Ht(fo)};return or.createElement(it.Z,{className:"ml20"},or.createElement(ze.Z,{flex:1},bt==null?void 0:bt.map((fo,Fr)=>or.createElement(it.Z,{key:`${fo}_${Fr}`,className:"mb20"},or.createElement(be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:fo,autoSize:{maxRows:3},maxLength:1e3,onBlur:Vr=>{const _o=[...bt],ho=Vr.target.value.trim();_o[Fr]=ho,Ht(_o)}}),or.createElement(Re.Z,{title:"\u5220\u9664"},or.createElement(Yt.Z,{className:Ke.deleteIcon,style:{marginLeft:15,visibility:Qt===1&&Fr===0?"hidden":"visible"},onClick:()=>go(Fr)})),or.createElement(Re.Z,{title:"\u65B0\u589E\u7B54\u6848"},or.createElement(Tt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Fr===0?"visible":"hidden"},onClick:()=>{Kr()}}))))))},ko=({value:bt=!0,onChange:Ht})=>or.createElement(Wt.Z,{checked:!bt,onChange:Qt=>{Ht(!Qt)}}),vo="\u2581",dr=({questionTitlePlaceholder:bt,form:Ht,name:Qt,scoreByBlank:gn="use_blank_score",answerKey:go,titleKey:Kr="name",analysisKey:fo="analysis",isOrdered:Fr="is_ordered"})=>{var Vr,_o;const[ho,oi]=(0,y.useState)(!1),pi=()=>{const zr=Ht.getFieldValue(["sub_item_banks",...go]);Ht.setFieldValue(["sub_item_banks",...go],zr==null?void 0:zr.map((Go,fi)=>No(Eo({},Go),{position:fi+1})))},Qo=(0,y.useRef)(),gr=(zr,Go)=>{for(let fi=0;fi<zr;fi++)Qo.current({position:null,answer_text:[""]},Go+fi);pi()},io=(0,y.useRef)(),yo=zr=>{io.current(zr),pi()},Ao=(_o=(Vr=Ht.getFieldValue("sub_item_banks"))==null?void 0:Vr[go==null?void 0:go[0]])==null?void 0:_o[go==null?void 0:go[1]];return or.createElement("div",{className:Ke.wrap},or.createElement("div",{className:Ke.questionTitleEditorWrap},or.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Kr,labelCol:{span:24},rules:[{required:!0}]},or.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:bt,showNullButton:!0,onAddBlank:()=>{const zr=Ht.getFieldValue(["sub_item_banks",...go]);gr(1,zr==null?void 0:zr.length)}}))),or.createElement(ce.default.List,{name:go,rules:[{validator(zr,Go){if((Go==null?void 0:Go.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const fi of Go){const{answer_text:ao}=fi||{};if(ao!=null&&ao.some(bo=>(bo==null?void 0:bo.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(zr,{add:Go,remove:fi},{errors:ao})=>(Qo.current=Go,io.current=fi,or.createElement(or.Fragment,null,or.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),zr.map((bo,Ar)=>{var no=bo,{key:bi,name:pa}=no,Ji=To(no,["key","name"]);return or.createElement(it.Z,{key:bi,align:"top",wrap:!1},or.createElement(ze.Z,{flex:"0 0 auto",className:`${Ke.blankIndex} pt5`},"\u586B\u7A7A\u9879",Ar+1),or.createElement(ze.Z,{flex:1},or.createElement(it.Z,{align:"top",justify:"space-between",wrap:!1},or.createElement(ze.Z,{flex:1},or.createElement(ce.default.Item,No(Eo({},Ji),{name:[pa,"answer_text"],noStyle:!0}),or.createElement(Xo,{removeBlank:yo,position:Ar+1}))),(Ht==null?void 0:Ht.getFieldValue(["sub_item_banks",...gn]))&&or.createElement(ze.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},or.createElement(ce.default.Item,No(Eo({},Ji),{name:[pa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ke.blankInputNumberWrapper}),or.createElement(pe.Z,{className:Ke.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),or.createElement(ce.default.Item,No(Eo({},Ji),{name:[pa,"position"],noStyle:!0}),or.createElement(be.default,{type:"hidden"}))))})))),or.createElement(ve.ZP,{className:"mb20",onClick:()=>gr(1,Ao==null?void 0:Ao.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),or.createElement(it.Z,{align:"middle"},or.createElement(ce.default.Item,{name:[Qt,"downcase"],valuePropName:"checked"},or.createElement(Wt.Z,null)),or.createElement(ze.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),or.createElement(it.Z,{align:"middle"},or.createElement(ce.default.Item,{name:[Qt,"no_space"],valuePropName:"checked"},or.createElement(Wt.Z,null)),or.createElement(ze.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ao==null?void 0:Ao.length)>1&&or.createElement(it.Z,{align:"middle",className:(Ao==null?void 0:Ao.length)>1?"mb30":`${Ke.hide}`},or.createElement(ce.default.Item,{name:Fr},or.createElement(ko,null)),or.createElement(ze.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")),or.createElement("div",{onClick:()=>oi(!0)},or.createElement(ce.default.Item,{name:fo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},or.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var Tn=Object.defineProperty,Gn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Un=(bt,Ht,Qt)=>Ht in bt?Tn(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,Jn=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))mr.call(Ht,Qt)&&Un(bt,Qt,Ht[Qt]);if(Ln)for(var Qt of Ln(Ht))wr.call(Ht,Qt)&&Un(bt,Qt,Ht[Qt]);return bt},sr=(bt,Ht)=>Gn(bt,Yn(Ht)),pr=(bt,Ht)=>{var Qt={};for(var gn in bt)mr.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&Ln)for(var gn of Ln(bt))Ht.indexOf(gn)<0&&wr.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const _r={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Yr=({value:bt,onChange:Ht,form:Qt,choiceKey:gn})=>{const go=(bt==null?void 0:bt.is_answer)===!0,Kr=bt==null?void 0:bt.choice_text,fo=()=>{var Fr;const Vr=(Fr=Qt==null?void 0:Qt.getFieldValue(["sub_item_banks",...gn]))==null?void 0:Fr.map(_o=>({choice_text:_o==null?void 0:_o.choice_text,is_answer:!1}));Qt==null||Qt.setFieldValue(["sub_item_banks",...gn],Vr),Ht(sr(Jn({},bt),{is_answer:!0}))};return y.createElement(it.Z,{className:Ke.choiceWrap,align:"middle",wrap:!1},y.createElement(ze.Z,{onClick:fo,className:`${Ke.choiceIndex} ${Ke.judgementIndex} ${go?Ke.activeAnswer:""}`},_r[Kr]),y.createElement(ze.Z,{flex:1,className:`${Ke.editorWrap} ml15`},y.createElement("div",{className:`${Ke.inputBorder} ${Ke.placeholder} ${go?Ke.activeJudgementAnswer:""}`},Kr)),y.createElement(ze.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:fo,className:`${Ke.setAnswerBtn} ${go?Ke.activeAnswer:""}`},go?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},to=({questionTitlePlaceholder:bt,choiceKey:Ht="choices",form:Qt,titleKey:gn="name",analysisKey:go="analysis"})=>{const[Kr,fo]=(0,y.useState)(!1);return y.createElement("div",{className:Ke.wrap},y.createElement("div",{className:Ke.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:gn,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:bt}))),y.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(ce.default.List,{name:Ht,rules:[{validator(Fr,Vr){return Vr.some(ho=>(ho==null?void 0:ho.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Fr=>y.createElement("div",{id:"choices"},Fr.map(Vr=>{var _o=Vr,{key:ho,name:oi}=_o,pi=pr(_o,["key","name"]);return y.createElement(ce.default.Item,sr(Jn({},pi),{key:ho,name:oi,noStyle:!0}),y.createElement(Yr,{form:Qt,choiceKey:Ht}))})))),y.createElement("div",{onClick:()=>fo(!0)},y.createElement(ce.default.Item,{name:go,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kr}))))};var Po=Object.defineProperty,Mo=Object.defineProperties,Yo=Object.getOwnPropertyDescriptors,Jo=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,Mi=(bt,Ht,Qt)=>Ht in bt?Po(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,$i=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))ni.call(Ht,Qt)&&Mi(bt,Qt,Ht[Qt]);if(Jo)for(var Qt of Jo(Ht))ri.call(Ht,Qt)&&Mi(bt,Qt,Ht[Qt]);return bt},Xi=(bt,Ht)=>Mo(bt,Yo(Ht)),Yi=(bt,Ht)=>{var Qt={};for(var gn in bt)ni.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&Jo)for(var gn of Jo(bt))Ht.indexOf(gn)<0&&ri.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt};const ta=bt=>{var Ht=bt,{value:Qt,onChange:gn}=Ht,go=Yi(Ht,["value","onChange"]);const Kr=fo=>{gn([fo])};return y.createElement(zt.Z,Xi($i({},go),{defaultValue:Qt==null?void 0:Qt[0],onChange:Kr}))},Lo=bt=>{if(!bt)return!1;let Ht=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 bt==="|"?(Ne.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},co=({value:bt=[],onClose:Ht})=>y.createElement(tn.default,{closable:!0,onClose:Ht,className:Ke.keywordTag},bt==null?void 0:bt.join(" \u6216 ")),wi=({questionTitlePlaceholder:bt,form:Ht,showKeywords:Qt,isMustKeyWords:gn=Qt,titleKey:go="name",analysisKey:Kr="analysis",answerTexts:fo="answer_texts",keywords:Fr="keywords",useKeywords:Vr="use_keywords",indexs:_o})=>{const[ho,oi]=(0,y.useState)(!1),[pi,Qo]=(0,y.useState)(""),gr=ce.default.useWatch("sub_item_banks",Ht),{use_keywords:io,score:yo}=(gr==null?void 0:gr[_o])||{};return console.log(io,yo,"itemValues"),y.createElement("div",{className:Ke.wrap},y.createElement("div",{className:Ke.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:go,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:bt}))),y.createElement(ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:fo,labelCol:{span:24}},y.createElement(ta,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Qt&&!gn&&y.createElement(ce.default.Item,{hidden:!0,name:Vr,valuePropName:"checked"},y.createElement(Wt.Z,{defaultChecked:!0})),Qt&&gn&&y.createElement(it.Z,{align:"middle",className:"mb30"},y.createElement(ce.default.Item,{name:Vr,valuePropName:"checked"},y.createElement(Wt.Z,null)),y.createElement(ze.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(ze.Z,null,y.createElement(Re.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"},y.createElement(mn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(io||!gn)&&y.createElement(ce.default.List,{name:Fr,rules:[{validator(Ao,zr){return gn?zr!=null&&zr.length?(zr==null?void 0:zr.reduce((fi,ao)=>fi+ao.score,0))>parseFloat(yo)?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()}}]},(Ao,{add:zr,remove:Go})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${Ke.title} mb10`},gn?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(it.Z,{align:"middle",className:"font14 mb30"},y.createElement(ze.Z,{flex:1},y.createElement(be.default,{value:pi,onChange:fi=>{Qo(fi.target.value)},maxLength:50,allowClear:!0,onPressEnter:fi=>{var ao,bo,Ar,no;const bi=`${(ao=fi.target)==null?void 0:ao.value}`,pa=(Ar=(bo=bi==null?void 0:bi.split("|"))==null?void 0:bo.filter(zo=>!!zo))==null?void 0:Ar.map(zo=>zo==null?void 0:zo.trim()),Ji=Ht.getFieldValue(["sub_item_banks",...Fr]),hl=((no=Ji==null?void 0:Ji.map(zo=>zo==null?void 0:zo.keyword))==null?void 0:no.flat())||[];for(const zo of pa)if(hl.includes(zo)){Ne.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Lo(bi)&&(zr({keyword:pa,score:1}),Qo(""))},className:Ke.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"})),y.createElement(ze.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ao.map(fi=>{var ao=fi,{key:bo,name:Ar}=ao,no=Yi(ao,["key","name"]);return y.createElement(it.Z,{key:bo,className:"mb20",style:{marginRight:148}},y.createElement(ze.Z,{flex:1},y.createElement(it.Z,{align:"middle",justify:"space-between"},y.createElement(ce.default.Item,Xi($i({},no),{name:[Ar,"keyword"]}),y.createElement(co,{onClose:()=>Go(Ar)})),gn&&y.createElement(ce.default.Item,Xi($i({},no),{name:[Ar,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ke.blankInputNumberWrapper}),y.createElement(pe.Z,{className:Ke.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>oi(!0)},y.createElement(ce.default.Item,{name:Kr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var wo=z(59301),aa=Object.defineProperty,Qa=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,ka=(bt,Ht,Qt)=>Ht in bt?aa(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,rl=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))fa.call(Ht,Qt)&&ka(bt,Qt,Ht[Qt]);if(da)for(var Qt of da(Ht))Ti.call(Ht,Qt)&&ka(bt,Qt,Ht[Qt]);return bt},Ja=(bt,Ht)=>Qa(bt,Ha(Ht)),la=(bt,Ht)=>{var Qt={};for(var gn in bt)fa.call(bt,gn)&&Ht.indexOf(gn)<0&&(Qt[gn]=bt[gn]);if(bt!=null&&da)for(var gn of da(bt))Ht.indexOf(gn)<0&&Ti.call(bt,gn)&&(Qt[gn]=bt[gn]);return Qt},Fl=(bt,Ht,Qt)=>new Promise((gn,go)=>{var Kr=Vr=>{try{Fr(Qt.next(Vr))}catch(_o){go(_o)}},fo=Vr=>{try{Fr(Qt.throw(Vr))}catch(_o){go(_o)}},Fr=Vr=>Vr.done?gn(Vr.value):Promise.resolve(Vr.value).then(Kr,fo);Fr((Qt=Qt.apply(bt,Ht)).next())});const{Panel:El}=Ft.default,jo=null,ai=(bt,Ht)=>{var Qt=bt,{globalSetting:gn,loading:go,dispatch:Kr,editData:fo,onRef:Fr=()=>{},isEdit:Vr}=Qt,_o=la(Qt,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)([]),[gr]=ce.default.useForm();(0,y.useEffect)(()=>{!fo||!Vr||(oi(fo==null?void 0:fo.name),Qo(fo==null?void 0:fo.sub_item_banks),gr.setFieldsValue(rl({},fo)))},[fo]),(0,y.useEffect)(()=>{Qo(gr.getFieldValue("sub_item_banks"))},[ce.default.useWatch("sub_item_banks",gr)]),(0,y.useImperativeHandle)(Ht,()=>({onSave:io,Clear:yo}));const io=()=>Fl(void 0,null,function*(){if(!ho)return Ne.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield gr.validateFields()}catch(bo){return console.log(bo,"errInfo"),Ne.ZP.error(bo.errorFields[0].errors[0]),!1}const ao=pi.map(bo=>rl({id:bo.id>1?bo.id:null},bo));return{name:ho,sub_item_banks:ao}}),yo=()=>{oi(""),Qo([])},Ao={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"},zr=({value:ao})=>wo.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ao),[Go,fi]=(0,y.useState)();return wo.createElement("section",{className:ct.wrap},wo.createElement("p",{className:ct.titleWrap},wo.createElement("span",{className:ct.required},"*"),wo.createElement("span",{className:ct.title},"\u9898\u5E72\uFF1A")),wo.createElement(zt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:ao=>oi(ao)}),wo.createElement(ce.default,{form:gr,autoComplete:"off"},wo.createElement(ce.default.List,{name:"sub_item_banks",rules:[{validator(ao,bo){return bo?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ao,{add:bo,remove:Ar})=>{const no=gr.getFieldValue("sub_item_banks");return wo.createElement(wo.Fragment,null,wo.createElement(Ft.default,{className:ao.length>0?ct.collapseWrapper:"",bordered:!1,expandIcon:({isActive:bi})=>wo.createElement("i",{className:`iconfont icon-weizhankai ${bi?ct.open:ct.close}`,style:{fontSize:14,transition:"all .2s"}})},ao.map((bi,pa)=>{var Ji=bi,{key:hl,name:zo}=Ji,Za=la(Ji,["key","name"]),Fa,cr,Ci,Di,Ei,wa,Ql,Jl,ss,Al,Rl,Cs;return wo.createElement(El,{className:ct.panel,forceRender:!0,header:wo.createElement("div",{className:ct.panelHeader},"\u7B2C",pa+1,"\u5C0F\u9898",wo.createElement("span",null,"\uFF08",Ao[(Fa=no==null?void 0:no[zo])==null?void 0:Fa.item_type],"\uFF09")),extra:wo.createElement(it.Z,{align:"middle",onClick:Nl=>Nl.stopPropagation(),style:{display:"flex",alignItems:"center"}},((cr=no==null?void 0:no[zo])==null?void 0:cr.item_type)=="completion"&&wo.createElement(ce.default.Item,Ja(rl({},Za),{name:[zo,"score"],className:ct.blankInputNumberWrapper,style:{marginBottom:0}}),((Ci=no==null?void 0:no[zo])==null?void 0:Ci.item_type)=="completion"&&wo.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",wo.createElement(zr,{value:(Di=no==null?void 0:no[zo])==null?void 0:Di.score}),"\u5206")),((Ei=no==null?void 0:no[zo])==null?void 0:Ei.item_type)=="completion"&&wo.createElement(wo.Fragment,null,wo.createElement(ot.ZP.Group,{defaultValue:(wa=no==null?void 0:no[zo])==null?void 0:wa.use_blank_score,className:ct.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Nl=>{var us;console.log(gr.getFieldsValue()),gr==null||gr.setFieldValue(["sub_item_banks",zo,"use_blank_score"],(us=Nl==null?void 0:Nl.target)==null?void 0:us.value),fi(new Date)}}),wo.createElement(Re.Z,{overlayInnerStyle:{width:460},title:wo.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",wo.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")},wo.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:hl},wo.createElement(ce.default.Item,Ja(rl({},Za),{name:zo}),(((Ql=no==null?void 0:no[zo])==null?void 0:Ql.item_type)=="single"||((Jl=no==null?void 0:no[zo])==null?void 0:Jl.item_type)=="multiple")&&wo.createElement(Pr,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((ss=no==null?void 0:no[zo])==null?void 0:ss.item_type)!="single",form:gr,choiceKey:[zo,"choices"],titleKey:[zo,"name"],analysisKey:[zo,"analysis"],choiceOptionsPath:["sub_item_banks",zo,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Al=no==null?void 0:no[zo])==null?void 0:Al.item_type)=="completion"&&wo.createElement(dr,{form:gr,name:zo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[zo,"use_blank_score"],titleKey:[zo,"name"],analysisKey:[zo,"analysis"],isOrdered:[zo,"is_ordered"],answerKey:[zo,"standard_answer"],key:Go}),((Rl=no==null?void 0:no[zo])==null?void 0:Rl.item_type)=="judgement"&&wo.createElement(to,{form:gr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[zo,"name"],analysisKey:[zo,"analysis"],choiceKey:[zo,"choices"]}),((Cs=no==null?void 0:no[zo])==null?void 0:Cs.item_type)=="subjective"&&wo.createElement(wi,{showKeywords:!0,form:gr,titleKey:[zo,"name"],analysisKey:[zo,"analysis"],answerTexts:[zo,"answer_texts"],useKeywords:[zo,"use_keywords"],keywords:[zo,"keywords"],indexs:zo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ro=(0,rt.connect)(({loading:bt,globalSetting:Ht})=>({globalSetting:Ht,loading:bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(ai)),Bo=z(42075),qo=z(79939),Bi=z(82326),Wa=z(70858),zi={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"},Qi=z(70467),sa=z(58998),cl=z(77996),xl=z(63392),Va=z(90736),Sl=z(44240),dl=({open:bt,onCancel:Ht,onOk:Qt})=>{const gn=(0,sa.g)(),[go,Kr,fo,Fr]=(0,xl.U)(cl.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Vr,_o]=(0,y.useState)(!1);(0,y.useEffect)(()=>{bt&&fo({page:1,limit:10,type:0},!0).then(gr=>{(gr==null?void 0:gr.shixuns_count)===0&&_o(!0)})},[bt]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)([]);return y.createElement(me.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:bt,width:948,centered:!0,closable:!0,onCancel:Ht,onOk:()=>Qt(pi),destroyOnClose:!0},y.createElement(it.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(ze.Z,null,y.createElement(qo.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:gn,onChange:gr=>{fo({page:1,discipline_id:gr==null?void 0:gr[0],sub_discipline_id:gr==null?void 0:gr[1]})}}),y.createElement(Bi.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:gr=>fo({page:1,diff:gr})}),y.createElement(Bi.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:gr=>fo({page:1,shixun_publish_status:gr})})),y.createElement(Qi.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:gr=>{fo({keyword:gr,page:1})}})),Vr?y.createElement("div",null,y.createElement(Va.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,st.xg)("/shixuns")})):y.createElement(Wa.default,{loading:Kr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(gr,io)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:io!=null&&io.high_resources_consume?zi.title:"",title:gr||"--"},y.createElement(He.Z,{key:1,showLines:1,showTextOnly:!0,value:gr||"--"})),(io==null?void 0:io.high_resources_consume)&&y.createElement(Sl.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(gr,io,yo)=>y.createElement("span",null,gr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(Re.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(mn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(gr,io,yo)=>y.createElement("span",null,gr||"- -")},{title:"\u64CD\u4F5C",render(gr,io){const{title:yo,challenge_names:Ao,author_name:zr,identifier:Go,author_school_name:fi,study_count:ao}=io||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{me.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(He.Z,{value:yo,style:{marginBottom:18}}),y.createElement("div",{className:zi.challengeNameWrapper},Ao.map((bo,Ar)=>y.createElement("div",{className:zi.challengeName,key:Ar},"\u7B2C",(0,st.EM)(Ar+1),"\u9898\xA0",bo))),y.createElement(it.Z,{className:zi.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(ze.Z,{className:zi.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:zi.shixunInfo},zr.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:zi.shixunInfo},fi),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:zi.shixunInfo},ao)),y.createElement(ve.ZP,{type:"primary",className:zi.btnToDetail,onClick:()=>(0,st.xg)(`/shixuns/${Go}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(io==null?void 0:io.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${io==null?void 0:io.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Fr==null?void 0:Fr.items,rowSelection:{type:"radio",selectedRowKeys:ho,preserveSelectedRowKeys:!0,getCheckboxProps:gr=>({disabled:gr.shixun_tag_num===1}),onChange(gr,io){var yo,Ao,zr;console.log(gr),oi(gr);const Go=[];for(const ao of pi)gr.includes(ao.id)&&Go.push(ao);const fi=Go.map(ao=>ao.id);for(const ao of io)ao&&gr.includes(ao.id)&&!fi.includes(ao.id)&&Go.push({id:ao.id,difficulty:ao.level,identifier:ao.identifier,name:ao.name,real_name:(yo=ao==null?void 0:ao.author_name)==null?void 0:yo.split("\u3001")[0],school_name:ao.author_school_name,challenge_names:ao.challenge_names,challenges:(Ao=ao.challenge_names)==null?void 0:Ao.map((bo,Ar)=>({subject:bo,id:Ar,score:5})),score:((zr=ao.challenge_names)==null?void 0:zr.length)*5,study_count:ao.study_count,challenges_count:ao.challenges_count});Qo(Go)}},pagination:{current:go.page,pageSize:go.limit,total:Fr==null?void 0:Fr.items_count,showTotal:gr=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},gr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(gr,io){fo({page:gr,limit:io})},size:"default"},scroll:{y:400}}))},zl=z(27878),Ps=z(66443),Gl=(bt,Ht,Qt)=>new Promise((gn,go)=>{var Kr=Vr=>{try{Fr(Qt.next(Vr))}catch(_o){go(_o)}},fo=Vr=>{try{Fr(Qt.throw(Vr))}catch(_o){go(_o)}},Fr=Vr=>Vr.done?gn(Vr.value):Promise.resolve(Vr.value).then(Kr,fo);Fr((Qt=Qt.apply(bt,Ht)).next())}),Ll=({visible:bt,getdata:Ht,onCancel:Qt,onRandomExchange:gn,selectFromProblemSet:go,questionParams:Kr})=>{const[fo,Fr]=(0,y.useState)(!1),[Vr,_o]=(0,y.useState)(!1),[ho,oi]=(0,y.useState)({}),pi=(0,rt.useParams)(),[Qo,gr]=(0,y.useState)(),io=(yo,Ao)=>Gl(void 0,null,function*(){_o(!0);const zr=yield(0,Je.ZP)(`/api/exercises/${pi.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Kr.id,item_bank_id:yo,shixuns_info:[{id:yo,is_copy:Ao!=1,is_use:Ao!=1}]}});_o(!1),zr!=null&&zr.status||(Ne.ZP.info("\u6362\u9898\u6210\u529F"),Qt(),Ht())});return y.createElement(me.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:bt,onCancel:Qt,centered:!0,maskClosable:!0,footer:null},y.createElement(it.Z,{justify:"center",className:"pb20"},y.createElement(Bo.Z,{onClick:gn},"\u968F\u673A\u66F4\u6362"),(Kr==null?void 0:Kr.type)!=="PRACTICAL"&&y.createElement(ve.ZP,{style:{marginLeft:24},onClick:go},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Kr==null?void 0:Kr.type)==="PRACTICAL"&&y.createElement(ve.ZP,{style:{marginLeft:24},onClick:()=>{Fr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),y.createElement(dl,{open:fo,onCancel:()=>Fr(!1),onOk:yo=>Gl(void 0,null,function*(){if(console.log("----selectedRows",yo,pi),(yo==null?void 0:yo.length)<=0){Ne.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ao=yo==null?void 0:yo.map(Go=>Go==null?void 0:Go.id),zr=yield(0,Ps.Tr)({id:[...Ao],course_id:pi.coursesId,type:"shixun"});(zr==null?void 0:zr.student_count)===0?io(Ao==null?void 0:Ao[0],1):(gr(Ao),oi(zr)),Fr(!1)})}),y.createElement(zl.Z,{resdata:ho,type:"shixun",okloading:Vr,oktext:(ho==null?void 0:ho.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:yo=>Gl(void 0,null,function*(){io(Qo==null?void 0:Qo[0],2)})}))},fl=z(18747),is=z(24334),Xl=z(80608),bs=z(71549),Il=z(8633),Ls=z(15267),as=Object.defineProperty,wl=Object.defineProperties,Hl=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,Yl=(bt,Ht,Qt)=>Ht in bt?as(bt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):bt[Ht]=Qt,ol=(bt,Ht)=>{for(var Qt in Ht||(Ht={}))ls.call(Ht,Qt)&&Yl(bt,Qt,Ht[Qt]);if(Wl)for(var Qt of Wl(Ht))Vl.call(Ht,Qt)&&Yl(bt,Qt,Ht[Qt]);return bt},qa=(bt,Ht)=>wl(bt,Hl(Ht)),Zi=(bt,Ht,Qt)=>new Promise((gn,go)=>{var Kr=Vr=>{try{Fr(Qt.next(Vr))}catch(_o){go(_o)}},fo=Vr=>{try{Fr(Qt.throw(Vr))}catch(_o){go(_o)}},Fr=Vr=>Vr.done?gn(Vr.value):Promise.resolve(Vr.value).then(Kr,fo);Fr((Qt=Qt.apply(bt,Ht)).next())});const yi=({data:bt,submit:Ht,goBack:Qt,loading:gn,onTypeScore:go,editPreview:Kr=!1,onSkipExamination:fo,selectValue:Fr,onExchange:Vr,getdata:_o,handleMarkWrongQuestion:ho,dispatch:oi})=>{var pi,Qo,gr,io,yo,Ao,zr,Go,fi,ao,bo;const Ar=(0,y.useRef)(),[no,bi]=(0,y.useState)(null),[pa,Ji]=(0,y.useState)(!1),[hl,zo]=(0,y.useState)(!1),Za=(0,y.useRef)(),[Fa]=ce.default.useForm(),cr=(0,rt.useParams)(),[Ci,Di]=(0,y.useState)(!1),[Ei,wa]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ji(!0)},[]),(0,y.useEffect)(()=>{Kr||(0,st.Dk)("\u8BD5\u5377\u9884\u89C8")},[Kr]),(0,y.useEffect)(()=>{var xn;((xn=bt==null?void 0:bt.questionList)==null?void 0:xn.length)>0&&(bt==null||bt.questionList.forEach(kr=>{var Wo;kr.type==="PRACTICAL"&&((Wo=kr==null?void 0:kr.questions)==null||Wo.forEach((Lr,Xn)=>{var $o;Ei[Xn]=!(($o=Lr==null?void 0:Lr.shixun)!=null&&$o.ignore_prompt),wa([...Ei])}))}))},[bt]);const Ql=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Jl={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"},ss={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"},Al=xn=>{var kr;const Wo=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:he.single},(kr=xn==null?void 0:xn.choices)==null?void 0:kr.map((Lr,Xn)=>(Lr.is_answer&&Wo.push(Il.k4[Xn]),y.createElement("ul",{key:Xn},y.createElement("li",null,Il.k4[Xn],"\u3001"),y.createElement("li",null,y.createElement(He.Z,{value:Lr.choice_text})))))),y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Wo.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ql[xn.difficulty])),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),xn==null?void 0:xn.tag_discipline_name)))))},Rl=(xn,kr)=>{var Wo;const Lr=(Wo=xn==null?void 0:xn.standard_answer)==null?void 0:Wo.map((Xn,$o)=>{var Ko;return y.createElement("div",{key:$o},`\u7B54\u6848\uFF08\u586B\u7A7A${Xn==null?void 0:Xn.position}\uFF09\uFF1A${(Ko=Xn==null?void 0:Xn.answer_text)==null?void 0:Ko.join("\u3001")}`)});return y.createElement(y.Fragment,null,y.createElement("div",{className:he.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Lr)),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:kr?kr==null?void 0:kr.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),kr?kr==null?void 0:kr.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name)))))},Cs=xn=>{var kr;const Wo=(kr=xn==null?void 0:xn.standard_answer)==null?void 0:kr.map((Lr,Xn)=>y.createElement("div",{key:Xn},`\u7B54\u6848\uFF08\u586B\u7A7A${(Lr==null?void 0:Lr.position)||(Lr==null?void 0:Lr.exercise_choice_id)}\uFF09\uFF1A${Lr==null?void 0:Lr.answer_text}`));return y.createElement(y.Fragment,null,y.createElement("div",{className:he.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Wo)),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),xn==null?void 0:xn.tag_discipline_name)))))},Nl=(xn,kr)=>{var Wo;return y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Wo=xn==null?void 0:xn.answer_texts)==null?void 0:Wo[0]),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:kr?kr==null?void 0:kr.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),kr?kr==null?void 0:kr.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name))))},us=xn=>{var kr,Wo;return y.createElement("div",{className:he.analysis},y.createElement("aside",null,y.createElement("span",{className:he.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(He.Z,{value:(kr=xn==null?void 0:xn.program_attr)==null?void 0:kr.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Wo=xn==null?void 0:xn.program_attr)==null?void 0:Wo.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),xn==null?void 0:xn.tag_discipline_name))))},Es=(xn,kr)=>{var Wo;return y.createElement("div",null,(Wo=xn==null?void 0:xn.sub_item_banks)==null?void 0:Wo.map((Lr,Xn)=>{var $o,Ko;const ki=[];return y.createElement(y.Fragment,null,y.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},kr+1+"."+(Xn+1),"\uFF08",Jl[Lr.item_type]||ss[Lr.item_type],"\uFF09",Lr.name),(Lr.item_type=="SINGLE"||Lr.item_type=="MULTIPLE"||Lr.item_type=="JUDGMENT"||Lr.item_type=="single"||Lr.item_type=="multiple"||Lr.item_type=="judgement")&&y.createElement(y.Fragment,null,y.createElement("aside",{className:he.single},($o=Lr==null?void 0:Lr.choices)==null?void 0:$o.map((li,va)=>(li.is_answer&&ki.push(Il.k4[va]),y.createElement("ul",{key:va},y.createElement("li",null,Il.k4[va],"\u3001"),y.createElement("li",null,y.createElement(He.Z,{value:li.choice_text})))))),y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ki.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ql[Lr.difficulty])),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(He.Z,{value:Lr.analysis?Lr.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(Re.Z,{title:xn==null?void 0:xn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),xn==null?void 0:xn.tag_discipline_name))))),(Lr.item_type=="COMPLETION"||Lr.item_type=="completion")&&Rl(Lr,xn),(Lr.item_type=="SUBJECTIVE"||Lr.item_type=="subjective")&&Nl(Lr,xn),((Ko=bt==null?void 0:bt.exam)==null?void 0:Ko.exercise_status)===3&&y.createElement("div",{className:"flex gap-20px mt20"},y.createElement(Xl.Z,{state:Lr==null?void 0:Lr.is_wrong,onClick:()=>{ho==null||ho({value:qa(ol({},Lr),{question_id:Lr==null?void 0:Lr.id,question_score:Lr==null?void 0:Lr.score})})}}),Lr.item_type=="single"&&y.createElement(ve.ZP,{style:{color:"#3061D0"},onClick:()=>{_l({value:Lr})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Rs=xn=>{var kr,Wo,Lr;return y.createElement("div",{style:{marginTop:"12px"}},(Wo=(kr=xn==null?void 0:xn.shixun)==null?void 0:kr.challenges)==null?void 0:Wo.map((Xn,$o)=>y.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",$o+1,"\u5173"),y.createElement(Re.Z,{key:$o,title:Xn==null?void 0:Xn.challenge_name},y.createElement("span",null,(0,st.Pq)(Xn==null?void 0:Xn.challenge_name,44)))),Kr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Xn.score,"\u5206"))),y.createElement(rt.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Lr=xn==null?void 0:xn.shixun)==null?void 0:Lr.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},ql=xn=>{let kr=xn.questions_score/xn.questions_count;me.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:y.createElement("div",{className:he.modalColumn},y.createElement("div",{className:he.modalRow,style:{justifyContent:"flex-start"}},y.createElement("sup",{className:he.sup},"*"),y.createElement("span",null,xn==null?void 0:xn.name,"\uFF1A"),y.createElement(pe.Z,{min:0,precision:1,defaultValue:kr,onChange:Wo=>{kr=Wo}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){var Wo;if(!kr)return Ne.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Lr={type:xn==null?void 0:xn.type,score:kr,scoreTotal:Number((Wo=kr*xn.questions_count)==null?void 0:Wo.toFixed(1))};go(Lr)})})},cs=()=>{let xn="";me.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:y.createElement("div",{className:he.modalColumn},y.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},y.createElement("img",{style:{marginRight:5},src:qe.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),y.createElement("div",{className:he.modalRow,style:{marginTop:20}},y.createElement("sup",{className:he.sup},"*"),y.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),y.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:xn,onChange:kr=>{xn=kr.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){var kr;if(!xn)return Ne.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Wo=[],Lr=[],Xn=[],$o=[];(kr=bt==null?void 0:bt.questionList)==null||kr.forEach(ki=>{var li;(li=ki.questions)==null||li.forEach(va=>{let Ri=ki.questions_score/ki.questions_count;Ri=Ri&&Ri.toFixed(1),ki.type==="COMBINATION"&&Xn.push({id:va.id,sub_item_bank_ids:va.sub_item_banks.map(Bl=>Bl.id)}),ki.type==="PRACTICAL"?$o.push(va.id):(Wo.push(va.id),Lr.push(Ri))})}),console.log("-----",Xn),yield Ht({item_bank_ids:Wo,item_bank_scores:Lr,name:xn,combination_item_banks:Xn,shixun_ids:$o})})})},es=(xn,kr,Wo,Lr)=>{var Xn;const $o=`${location.pathname}${location.search}`,Ko=(Xn=Lr.questions)==null?void 0:Xn.map(ki=>ki==null?void 0:ki.id);if($o.includes("exercise"))Za.current={id:xn,ids:Ko,type:kr,index:Wo},zo(!0);else{let ki=me.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:()=>Zi(void 0,null,function*(){ki.update({cancelButtonProps:{disabled:!0}}),yield Vr({single_question_id:xn,seleted_item_bank_ids:Ko},{type:kr,index:Wo}),ki.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},ds=xn=>{var kr;const Wo=(kr=xn.questions)==null?void 0:kr.map($o=>$o==null?void 0:$o.id),Lr=xn.name;let Xn=me.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Lr}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){Xn.update({cancelButtonProps:{disabled:!0}}),yield Vr({seleted_item_bank_ids:Wo},{type:xn.type}),Xn.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Lr}\u8BD5\u9898`)})})},fs=()=>{let xn=me.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:()=>Zi(void 0,null,function*(){xn.update({cancelButtonProps:{disabled:!0}}),yield Vr(),xn.update({cancelButtonProps:{disabled:!1}}),Ne.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},hs=xn=>{console.log(xn,"key"),fo(xn-1)},Qs=(xn,kr)=>{var Wo,Lr;if(kr==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(Gt,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(Rt,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(cn,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(ke,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(nt,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Ro,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(kr==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(ce.default,{form:Fa,style:{marginTop:20},onFinishFailed:Xn=>{var $o,Ko;Xn.errorFields[0].name.includes("standard_answers")?Ne.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ne.ZP.error(Xn.errorFields[0].errors[0]),Fa.scrollToField((Ko=($o=Xn==null?void 0:Xn.errorFields)==null?void 0:$o[0])==null?void 0:Ko.name,{behavior:"smooth",block:"center"})},onFinish:Xn=>Zi(void 0,null,function*(){var $o;let Ko=qa(ol({question_score:xn.score},Xn),{question_type:8,hack:qa(ol({},Xn.hack),{difficult:xn.program_attr.difficult}),hack_codes:qa(ol({},Xn.hack_codes),{code:is.Base64.encode(($o=Xn.hack_codes)==null?void 0:$o.code)})});Ci&&(Ko.is_cover=1);const ki=yield(0,Je.ZP)(`/api/exercise_questions/${xn.id}.json`,{method:"put",body:Ko});(ki==null?void 0:ki.status)===0&&(Ne.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Fr+1)),bi(null)})},y.createElement(fl.tc,{form:Fa,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Wo=xn==null?void 0:xn.program_attr)==null?void 0:Wo.identifier,answerKey:"standard_answers"}),y.createElement(le.Z,null)));if(kr==="PROGRAM"&&rt.history.push(`/problems/${(Lr=xn==null?void 0:xn.program_attr)==null?void 0:Lr.identifier}/edit?type=exercises&express_id=${cr.categoryId}&question_id=${xn==null?void 0:xn.id}&score=${xn==null?void 0:xn.score}&callback_url=${location.pathname}&select=${Fr}&exercise=true`),kr==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(Jt,{ref:Ar,editData:xn,isEdit:!0}),y.createElement(le.Z,null))},_s=(xn,kr)=>Zi(void 0,null,function*(){var Wo,Lr,Xn,$o,Ko,ki;xn==="BPROGRAM"&&Fa.submit();const li=yield(Wo=Ar.current)==null?void 0:Wo.onSave();if(!li)return;const va=xo=>{const ga=xo.map(La=>La.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(ga).size!==ga.length},Ri={question_score:kr.score,analysis:li.analysis};if(xn==="SINGLE"||xn==="MULTIPLE"||xn==="JUDGMENT"){if(xn!=="JUDGMENT"&&va(li==null?void 0:li.choices)){Ne.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const xo=[],ga=[];Ri.question_type=xn==="JUDGMENT"?2:1,Ri.question_title=li==null?void 0:li.name,(Lr=li==null?void 0:li.choices)==null||Lr.forEach((il,La)=>{xo.push(il.choice_text),il!=null&&il.is_answer&&ga.push(La+1)}),Ri.question_choices=xo,Ri.standard_answers=ga}if(xn==="COMPLETION"){let xo=(Xn=li==null?void 0:li.standard_answers)==null?void 0:Xn.map((La,De)=>Number(La==null?void 0:La.score)?null:De+1).filter(La=>La!==null);if((xo==null?void 0:xo.length)>0)return Ne.ZP.warning(`\u7B2C${xo.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let ga=($o=li==null?void 0:li.standard_answers)==null?void 0:$o.reduce((La,De)=>La+(Number(De==null?void 0:De.score)||0),0);if(parseFloat(ga.toFixed(2))!=(Ri==null?void 0:Ri.question_score))return Ne.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Ri.is_ordered=li.is_ordered,Ri.question_title=li==null?void 0:li.name,Ri.use_blank_score=li==null?void 0:li.use_blank_score,Ri.question_type=3;const il=[];(Ko=li==null?void 0:li.standard_answers)==null||Ko.forEach((La,De)=>{il.push({choice_id:La.position,answer_text:La.answer_text,score:La.score})}),Ri.standard_answers=il,Ri.downcase=li==null?void 0:li.downcase,Ri.no_space=li==null?void 0:li.no_space}if(xn==="SUBJECTIVE"&&(console.log("editorData"),console.log(li),Ri.question_title=li==null?void 0:li.name,Ri.question_type=4,Ri.answer_texts=li==null?void 0:li.answer_texts,Ri.use_keywords=li==null?void 0:li.use_keywords,Ri.keywords=li==null?void 0:li.keywords),xn==="COMBINATION"){Ri.question_title=li==null?void 0:li.name,Ri.question_type=7;try{Ri.sub_questions=(ki=li==null?void 0:li.sub_item_banks)==null?void 0:ki.map((xo,ga)=>{var il,La,De;if((xo==null?void 0:xo.item_type)=="single"||(xo==null?void 0:xo.item_type)=="multiple"){if(va(xo==null?void 0:xo.choices))throw new Error(`\u7B2C${ga+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Be=[],mt=[];return(il=xo==null?void 0:xo.choices)==null||il.forEach((Dt,Kt)=>{Be.push(Dt.choice_text),Dt!=null&&Dt.is_answer&&mt.push(Kt+1)}),{id:xo.id,question_id:xo.id,question_title:xo.name,difficulty:xo.difficulty,question_type:(xo==null?void 0:xo.item_type)=="single"?0:(xo==null?void 0:xo.item_type)=="multiple"?1:2,question_choices:Be,standard_answers:mt,analysis:xo.analysis,question_score:xo==null?void 0:xo.score}}else if((xo==null?void 0:xo.item_type)=="completion"){let Be=(La=xo==null?void 0:xo.standard_answer)==null?void 0:La.reduce((Dt,Kt)=>Dt+(Number(Kt==null?void 0:Kt.score)||0),0);if(parseFloat(Be.toFixed(2))!=(xo==null?void 0:xo.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const mt=[];return(De=xo==null?void 0:xo.standard_answer)==null||De.forEach((Dt,Kt)=>{mt.push({choice_id:Dt.position,answer_text:Dt.answer_text,score:Dt.score})}),{id:xo.id,question_id:xo.id,is_ordered:xo.is_ordered,question_title:xo.name,difficulty:xo.difficulty,question_type:3,standard_answers:mt,use_blank_score:xo.use_blank_score,analysis:xo.analysis,downcase:xo==null?void 0:xo.downcase,no_space:xo==null?void 0:xo.no_space,question_score:xo==null?void 0:xo.score}}else if((xo==null?void 0:xo.item_type)=="subjective")return{id:xo.id,question_id:xo.id,question_title:xo.name,question_type:4,difficulty:xo.difficulty,answer_texts:xo==null?void 0:xo.answer_texts,analysis:xo.analysis,question_score:xo==null?void 0:xo.score,use_keywords:xo.use_keywords,keywords:xo==null?void 0:xo.keywords}})}catch(xo){Ne.ZP.warning(xo.message);return}delete Ri.analysis}let Bl=!1;(kr==null?void 0:kr.is_my)===1&&(Bl=yield new Promise((ga,il)=>{me.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:()=>{ga(!0)},onCancel:()=>{ga(!1)}})})),Bl&&(Ri.is_cover=1);const ms=xn!=="PRACTICAL"?yield(0,Je.ZP)(`/api/exercise_questions/${kr.id}.json`,{method:"put",body:Ri}):yield(0,Je.ZP)(`/api/exercise_questions/${kr.id}/update_shixun_score.json`,{method:"post",body:ol({},li)});(ms==null?void 0:ms.status)===0&&(Ne.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Fr+1),bi(null))}),mu=()=>Zi(void 0,null,function*(){(0,rt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Je.ZP)(`/api/exercises/${cr.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield fo(Fr),Ne.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,rt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),_l=({value:xn}={})=>{var kr;const Wo=[];let Lr=[];const Xn=(kr=xn==null?void 0:xn.choices)==null?void 0:kr.map((Ko,ki)=>{var li;const va=ki+1;return Ko!=null&&Ko.is_answer&&(Wo.push(va),Lr.push(va)),{value:va,label:y.createElement(He.Z,{className:"c-black font14",value:`${(li=Il.k4)==null?void 0:li[ki]}. ${Ko==null?void 0:Ko.choice_text}`}),disabled:Ko==null?void 0:Ko.origin_standard_answer}}),$o=me.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:y.createElement(y.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",Wo==null?void 0:Wo.map(Ko=>{var ki;return(ki=Il.k4)==null?void 0:ki[Ko-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",y.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",y.createElement("br",null),y.createElement(je.default.Group,{className:"flex-col mt20",options:Xn,defaultValue:Lr,onChange:Ko=>{Lr=Ko}})),onOk:()=>Zi(void 0,null,function*(){const Ko=yield(0,Je.ZP)(`/api/exercises/${cr.categoryId}/questions/${xn==null?void 0:xn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Lr}});(Ko==null?void 0:Ko.status)===0&&(Ne.ZP.success("\u4FEE\u6539\u6210\u529F"),hs(Fr+1))})})},Ml=(pi=bt==null?void 0:bt.questionList)==null?void 0:pi.reduce((xn,kr)=>xn+Number(kr.questions_score),0),$s=Kr&&((Qo=bt==null?void 0:bt.exam)==null?void 0:Qo.exercise_status)!==1,pu=xn=>Zi(void 0,null,function*(){const kr=yield(0,Je.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[cr==null?void 0:cr.categoryId],exercise_question_id:xn.id}});(kr==null?void 0:kr.status)===0&&(oi({type:"classroomList/setActionTabs",payload:{}}),Ne.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Js=(xn,kr)=>Zi(void 0,null,function*(){let Wo=yield(0,Je.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:cr==null?void 0:cr.categoryId,exercise_question_id:xn==null?void 0:xn.id}});(Wo==null?void 0:Wo.status)===0&&(Ei[kr]=!1,wa([...Ei]))});return y.createElement("section",{className:he.wrap},y.createElement("div",{id:"id_left_preview",className:he.left,onMouseEnter:xn=>{const kr=document.getElementById("id_left_preview");kr.style.overflowY="auto"},onMouseLeave:xn=>{const kr=document.getElementById("id_left_preview");kr.style.overflowY="hidden"}},y.createElement("div",{className:he.title},y.createElement("div",{className:"body-overflow-initial"},y.createElement("b",null),y.createElement("span",null,"\u7B54\u9898\u5361"))),y.createElement("div",{className:he.total},y.createElement("div",null,y.createElement("img",{src:tt}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,bt==null?void 0:bt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:at}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,Ml&&Ml.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:Xe}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((gr=bt==null?void 0:bt.exam)==null?void 0:gr.time)===-1||((io=bt==null?void 0:bt.exam)==null?void 0:io.time)===null?"\u4E0D\u9650":(yo=bt==null?void 0:bt.exam)==null?void 0:yo.time))),(Ao=bt==null?void 0:bt.questionList)==null?void 0:Ao.map((xn,kr)=>{var Wo;return y.createElement("div",{className:he.list,key:kr},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,xn.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:he.b},xn.questions_count),"\u9898 ",y.createElement("span",{className:he.l},"|"),"\u5171",y.createElement("span",{className:he.r},xn.questions_score),"\u5206"),y.createElement("div",{className:he.answerSheet},(Wo=xn==null?void 0:xn.questions)==null?void 0:Wo.map((Lr,Xn)=>y.createElement("div",{onClick:()=>{const $o=`Anchor_${Lr==null?void 0:Lr.id}`;let Ko=document.getElementById($o);Ko&&setTimeout(()=>Ko.scrollIntoView({block:"center",behavior:"smooth"}))},key:Lr==null?void 0:Lr.id,className:he.tag},Xn+1)))))})),y.createElement("div",{className:he.right},y.createElement("div",{className:he.examName,id:"examName"},y.createElement("div",{className:he.name},y.createElement(Re.Z,{title:(zr=bt==null?void 0:bt.exam)==null?void 0:zr.name,getPopupContainer:xn=>xn.parentNode},y.createElement("span",{className:he.t},(Go=bt==null?void 0:bt.exam)==null?void 0:Go.name))),Kr&&((fi=bt==null?void 0:bt.exam)==null?void 0:fi.exercise_status)===1&&y.createElement(Qi.op,{openLoading:!0,shape:"default",onClick:()=>{me.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:()=>{mu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Kr&&y.createElement(ve.ZP,{onClick:fs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:he.topWarp},(ao=bt==null?void 0:bt.questionList)==null?void 0:ao.map((xn,kr)=>{var Wo,Lr;return y.createElement(y.Fragment,{key:kr},y.createElement("div",{className:he.head,style:kr===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,xn.name)),y.createElement("div",{className:he.so},"\u5171",y.createElement("span",{className:he.b},xn.questions_count," "),"\u9898 ",xn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Wo=xn==null?void 0:xn.questions)==null?void 0:Wo.map(Xn=>{var $o;return($o=Xn==null?void 0:Xn.sub_item_banks)==null?void 0:$o.length}).reduce((Xn,$o)=>Xn+$o)}\u5C0F\u9898\uFF09`,y.createElement("span",{className:he.l},"|"),"\u5171",y.createElement("span",{className:he.r},xn.questions_score),"\u5206"),!Kr&&y.createElement("div",{className:he.btn},y.createElement(ve.ZP,{onClick:()=>{ql(xn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(ve.ZP,{onClick:()=>ds(xn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Lr=xn==null?void 0:xn.questions)==null?void 0:Lr.map((Xn,$o)=>{var Ko,ki,li,va,Ri;return no===(Xn==null?void 0:Xn.id)?y.createElement("div",{id:`Anchor_${Xn==null?void 0:Xn.id}`,className:he.content,style:{padding:0,marginTop:24},key:Xn==null?void 0:Xn.id},y.createElement("div",{style:{float:"right",marginTop:`${(xn==null?void 0:xn.type)==="PRACTICAL"?"-2px":"-6px"}`}},y.createElement(ve.ZP,{onClick:()=>bi(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(ve.ZP,{onClick:()=>{_s(xn==null?void 0:xn.type,Xn)},type:"primary"},"\u4FDD\u5B58")),Qs(Xn,xn.type)):y.createElement("div",{id:`Anchor_${Xn==null?void 0:Xn.id}`,className:he.content,key:Xn==null?void 0:Xn.id},y.createElement("div",{className:he.titleWrap},(Xn==null?void 0:Xn.item_type)==="bprogram"?y.createElement(He.Z,{style:{paddingRight:10},value:$o+1+"\u3001"+((Ko=Xn==null?void 0:Xn.program_attr)==null?void 0:Ko.description)}):y.createElement(He.Z,{style:{paddingRight:10},className:he.titleHtml,value:$o+1+`\u3001${(Xn==null?void 0:Xn.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Xn==null?void 0:Xn.name)}),(0,Ls.G5)()&&((ki=Xn==null?void 0:Xn.shixun)==null?void 0:ki.shixun_change)&&y.createElement(Ae.Z,{trigger:"click",open:Ei[$o],onOpenChange:Bl=>{Ei[$o]=!0,wa([...Ei])},placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:y.createElement("div",{style:{width:"310px",color:"#000"}},y.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),y.createElement("div",{className:he.btn_warp},y.createElement(ve.ZP,{size:"small",onClick:()=>Js(Xn,$o)},"\u5FFD\u7565"),y.createElement(ve.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Ei[$o]=!1,wa([...Ei]),oi({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>pu(Xn)}})}},"\u786E\u8BA4\u540C\u6B65"),y.createElement(ve.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,st.xg)(`/shixuns/${Xn==null?void 0:Xn.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},y.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:Bl=>Bl.stopPropagation()})),Kr&&y.createElement(ve.ZP,{onClick:()=>{var Bl,ms;if(no){Ne.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Fa.setFieldsValue({standard_answers:Xn==null?void 0:Xn.standard_answer,hack:ol(ol({},Xn),Xn==null?void 0:Xn.program_attr),hack_codes:qa(ol({},Xn==null?void 0:Xn.program_attr),{code:is.Base64.decode(((Bl=Xn==null?void 0:Xn.program_attr)==null?void 0:Bl.code)||"")}),hack_sets:Xn==null?void 0:Xn.hack_sets}),(Xn==null?void 0:Xn.item_type)=="program"?rt.history.push(`/problems/newedit/${(ms=Xn==null?void 0:Xn.program_attr)==null?void 0:ms.identifier}?type=exercises&express_id=${cr.categoryId}&question_id=${Xn==null?void 0:Xn.id}&score=${Xn==null?void 0:Xn.score}&exercise=true&callback_url=/classrooms/${cr.coursesId}/exercise/${cr.categoryId}/detail?random=true`):bi(Xn==null?void 0:Xn.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!$s&&y.createElement(ve.ZP,{disabled:$s,className:"ml20",onClick:()=>es(Xn==null?void 0:Xn.id,xn.type,$o,xn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Xn==null?void 0:Xn.item_type)==="bprogram"&&y.createElement(He.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:he.titleHtml,value:is.Base64.decode(((li=Xn==null?void 0:Xn.program_attr)==null?void 0:li.code)||"")}),(xn.type==="SINGLE"||xn.type==="JUDGMENT"||xn.type==="MULTIPLE")&&Al(Xn),xn.type==="COMPLETION"&&Rl(Xn),xn.type==="SUBJECTIVE"&&Nl(Xn),xn.type==="PROGRAM"&&us(Xn),xn.type==="BPROGRAM"&&Cs(Xn),xn.type==="COMBINATION"&&Es(Xn,$o),xn.type==="PRACTICAL"&&Rs(Xn),y.createElement(it.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((va=bt==null?void 0:bt.exam)==null?void 0:va.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(xn.type)&&y.createElement(ze.Z,null,y.createElement(Xl.Z,{state:Xn==null?void 0:Xn.is_wrong,onClick:()=>{ho==null||ho({value:qa(ol({},Xn),{question_id:Xn==null?void 0:Xn.id,question_score:Xn==null?void 0:Xn.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(xn.type)&&(Xn==null?void 0:Xn.show_resubmit)&&y.createElement(ze.Z,null,y.createElement(bs.C,{dataSource:qa(ol({},Xn),{question_id:Xn==null?void 0:Xn.id})})),((Ri=bt==null?void 0:bt.exam)==null?void 0:Ri.exercise_status)===3&&["SINGLE"].includes(xn.type)&&y.createElement(ze.Z,null,y.createElement(ve.ZP,{style:{color:"#3061D0"},onClick:()=>{_l({value:Xn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Kr?y.createElement(Qi.vr,null,y.createElement(Oe.Z,{showTotal:st.rU,total:(bo=bt==null?void 0:bt.exam)==null?void 0:bo.total_num,pageSize:1,current:Fr+1,showSizeChanger:!1,onChange:hs,showQuickJumper:!1,hideOnSinglePage:!1})):y.createElement(Qi.vr,{LeftContent:y.createElement(Qi.op,{onClick:Qt,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:y.createElement(it.Z,{align:"middle"},y.createElement(Ae.Z,{color:"#55575D",overlayClassName:he.popover,open:pa,getPopupContainer:xn=>xn==null?void 0:xn.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"},y.createElement(Qi.op,{onMouseEnter:()=>Ji(!0),onMouseLeave:()=>Ji(!1),onClick:()=>Zi(void 0,null,function*(){const xn=Number(Ml);[100,120,150].includes(xn)||(yield new Promise((kr,Wo)=>{me.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},xn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Zi(void 0,null,function*(){kr("")}),onCancel:()=>{Wo()}})})),cs()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qi.op,{shape:"default",type:"primary",onClick:()=>Zi(void 0,null,function*(){const xn=Number(Ml);[100,120,150].includes(xn)||(yield new Promise((kr,Wo)=>{me.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},xn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Zi(void 0,null,function*(){kr("")}),onCancel:()=>{Wo()}})})),Ht()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(Ll,{visible:hl,questionParams:Za.current,getdata:_o,onRandomExchange:()=>Zi(void 0,null,function*(){const xn=Za.current;yield Vr({single_question_id:xn.id,seleted_item_bank_ids:xn.ids},{type:xn.type,index:xn.index}),zo(!1)}),selectFromProblemSet:()=>{const xn=Za.current,kr=`${location.pathname}${location.search}`;kr.includes("exercise")&&rt.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${xn.id}&qtype=${xn.type}&exerciseid=${cr.categoryId}&from=${kr}`)},onCancel:()=>{zo(!1)}}))};var ci=(0,rt.connect)(({classroomList:bt})=>({classroomList:bt}))(yi)},20271:function(En,Vt,z){"use strict";z.r(Vt),z.d(Vt,{default:function(){return Fe}});var y=z(59301),he=z(44283),ce={flex_box_center:"flex_box_center___kQBcj",flex_space_between:"flex_space_between___Znlbo",flex_box_vertical_center:"flex_box_vertical_center___CPD50",flex_box_center_end:"flex_box_center_end___jzPvK",flex_box_column:"flex_box_column___cvIBS",wrap:"wrap___lab8O",crumbs:"crumbs___qvTza"},Re=z(9593),ve=z(6767),me=z(458),pe=z(49317),Ne=z(76406),be=z(59301),le=Object.defineProperty,je=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,ze=(Ve,dt,Se)=>dt in Ve?le(Ve,dt,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Ve[dt]=Se,Oe=(Ve,dt)=>{for(var Se in dt||(dt={}))Ae.call(dt,Se)&&ze(Ve,Se,dt[Se]);if(je)for(var Se of je(dt))it.call(dt,Se)&&ze(Ve,Se,dt[Se]);return Ve},Ee=(Ve,dt,Se)=>new Promise((Ie,Xe)=>{var He=Je=>{try{st(Se.next(Je))}catch(et){Xe(et)}},rt=Je=>{try{st(Se.throw(Je))}catch(et){Xe(et)}},st=Je=>Je.done?Ie(Je.value):Promise.resolve(Je.value).then(He,rt);st((Se=Se.apply(Ve,dt)).next())});const Pe=({paperlibrary:Ve,user:dt,globalSetting:Se,dispatch:Ie,location:Xe})=>{var He,rt,st,Je;const[et]=(0,he.useSearchParams)(),ge=et.get("select")||0,[Qe,we]=(0,y.useState)(!1),[se,ft]=(0,y.useState)(!0),[$e,tt]=(0,y.useState)(Number(ge)),[Nt,Le]=(0,y.useState)({}),ye=(0,he.useParams)(),{userInfo:Et}=dt,{actionTabs:Zt}=Ve;(0,y.useEffect)(()=>(Ie({type:"globalSetting/footerToggle",payload:!1}),()=>{Ie({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,y.useEffect)(()=>(Ie({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Ie({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),Ie({type:"exercise/getWorkSetting",payload:Oe({},ye)}),()=>{Ie({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Ie({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,y.useEffect)(()=>{pt($e)},[]),(0,y.useEffect)(()=>{var ct;(ct=Zt==null?void 0:Zt.params)!=null&&ct.isUpdateData&&pt($e)},[(He=Zt==null?void 0:Zt.params)==null?void 0:He.isUpdateData]);const pt=(ct=0)=>Ee(void 0,null,function*(){console.log(ye),ft(!0);const lt=yield(0,pe.ZP)(`/api/exercises/${ye.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:ct}});Ie({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),ft(!1),Le((0,Ne.PF)(lt))}),Ce=()=>{he.history.push(`/classrooms/${ye.coursesId}/exercise`)},at=()=>{alert("\u4FDD\u5B58")},qe=(ct,lt)=>Ee(void 0,null,function*(){const nn=yield(0,pe.ZP)(`/api/exercises/${ye.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:ct==null?void 0:ct.single_question_id}});nn!=null&&nn.question&&(ve.ZP.info("\u6362\u9898\u6210\u529F"),pt($e))}),zt=ct=>Ee(void 0,null,function*(){document.body.scrollIntoView(),tt(ct),yield pt(ct)}),ut=ct=>{Ie({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:ct}})};return console.log((0,he.useLocation)(),"location333"),be.createElement("section",{className:ce.wrap},be.createElement(me.Z,{loading:se,active:!0,paragraph:{rows:5}},((st=(rt=(0,he.useLocation)())==null?void 0:rt.pathname)==null?void 0:st.includes("preview"))&&be.createElement("div",{className:ce.crumbs},be.createElement("b",null),be.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ye.coursesId}/exercise`)},`${(Je=Et==null?void 0:Et.course)==null?void 0:Je.course_name}>`),be.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ye.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),be.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),be.createElement(Re.Z,{loading:Qe,submit:at,goBack:Ce,data:Nt,getdata:()=>{pt($e)},selectValue:$e,editPreview:!0,onExchange:qe,onSkipExamination:zt,handleMarkWrongQuestion:ut})))};var Fe=(0,he.connect)(({paperlibrary:Ve,user:dt,globalSetting:Se})=>({paperlibrary:Ve,user:dt,globalSetting:Se}))(Pe)},58998:function(En,Vt,z){"use strict";z.d(Vt,{g:function(){return ve}});var y=z(59301),he=z(37166),ce=z(44192),Re=(me,pe,Ne)=>new Promise((be,le)=>{var je=ze=>{try{it(Ne.next(ze))}catch(Oe){le(Oe)}},Ae=ze=>{try{it(Ne.throw(ze))}catch(Oe){le(Oe)}},it=ze=>ze.done?be(ze.value):Promise.resolve(ze.value).then(je,Ae);it((Ne=Ne.apply(me,pe)).next())});const ve=()=>{const[me,pe]=(0,y.useState)([]);return(0,y.useEffect)(()=>{Re(void 0,null,function*(){const be=yield(0,he.d1)({source:"question"});be!=null&&be.disciplines&&pe((0,ce.L)(be==null?void 0:be.disciplines))})},[]),me}},63392:function(En,Vt,z){"use strict";z.d(Vt,{U:function(){return be}});var y=z(59301),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(le,je,Ae)=>je in le?he(le,je,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):le[je]=Ae,pe=(le,je)=>{for(var Ae in je||(je={}))Re.call(je,Ae)&&me(le,Ae,je[Ae]);if(ce)for(var Ae of ce(je))ve.call(je,Ae)&&me(le,Ae,je[Ae]);return le},Ne=(le,je,Ae)=>new Promise((it,ze)=>{var Oe=Fe=>{try{Pe(Ae.next(Fe))}catch(Ve){ze(Ve)}},Ee=Fe=>{try{Pe(Ae.throw(Fe))}catch(Ve){ze(Ve)}},Pe=Fe=>Fe.done?it(Fe.value):Promise.resolve(Fe.value).then(Oe,Ee);Pe((Ae=Ae.apply(le,je)).next())});function be(le,je){const[Ae,it]=(0,y.useState)(je),[ze,Oe]=(0,y.useState)(!1),[Ee,Pe]=(0,y.useState)();return[Ae,ze,(Ve,dt=!1)=>Ne(this,null,function*(){const Se=dt?je:pe(pe({},Ae),Ve);Oe(!0),it(Se);const Ie=yield le(Se);return Oe(!1),Pe(Ie),Ie}),Ee,Pe]}},20047:function(En,Vt,z){"use strict";z.d(Vt,{AL:function(){return Se},Iy:function(){return je},Qv:function(){return ze},ez:function(){return dt},jb:function(){return Ae}});var y=z(32834),he=z.n(y),ce=z(11690),Re=z.n(ce);let ve=1;function me(st,Je){const et=st.match(/^(\s+)(?:```)/);if(et===null)return Je;const ge=et[1];return Je.split(`
`).map(Qe=>{const we=Qe.match(/^\s+/);if(we===null)return Qe;const[se]=we;return se.length>=ge.length?Qe.slice(ge.length):Qe}).join(`
`)}let pe=[],Ne=["<ul>"];const be=new(he()).Renderer,le=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function je(){pe.length=0,Ne=["<ul>"]}const Ae={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function it(st,Je,et,ge){if(Je>=st.length||st[Je].level<=et)return Je;var Qe=st[Je];ge.push("<li><a href='#"+ve+Qe.anchor+"'>"+Qe.text+"</a>"),Je++;var we=[];return Je=it(st,Je,Qe.level,we),we.length>0&&(ge.push("<ul>"),we.forEach(function(se){ge.push(se)}),ge.push("</ul>")),ge.push("</li>"),Je=it(st,Je,et,ge),Je}function ze(){return it(pe,0,0,Ne),Ne.push("</ul>"),Ne.join("")}const Oe={heading(st){const Je=le.exec(st);if(ve+=1,Je)return{type:"heading",raw:Je[0],depth:Je[1].length,text:Je[2]}},fences(st){const Je=this.rules.block.fences.exec(st);if(Je){const et=Je[0];let ge=me(et,Je[3]||"");const Qe=Je[2]?Je[2].trim():Je[2];if(["latex","katex","math"].indexOf(Qe)>=0){const we=Fe(),se=ge;ge=we,Ve[we]={type:"block",expression:se}}return{type:"code",raw:et,lang:Qe,text:ge}}}},Ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Pe=0;const Fe=()=>`__special_katext_id_${Pe++}__`;let Ve={};function dt(){return Ve}function Se(){Pe=0,Ve={}}function Ie(st){return st=st.replace(Ee,(Je,et)=>{const ge=Fe();return Ve[ge]={type:"inline",expression:et},ge}),st}const Xe=be.listitem;be.listitem=function(st){return Xe(Ie(st))};const He=be.paragraph;be.paragraph=function(st){return He(Ie(st))};const rt=be.tablecell;be.tablecell=function(st,Je){return rt(Ie(st),Je)},be.code=function(st,Je,et){const ge=(Je||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?`<p class='editormd-tex'>${st}</p>`:`<pre class="prettyprint linenums"><code class="language-${Je}">${et?st:(0,ce.escape)(st,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(et?st:(0,ce.escape)(st,!0))+"</code></pre>"},be.heading=function(st,Je,et){let ge=this.options.headerPrefix+et.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return pe.push({anchor:ge,level:Je,text:st}),"<h"+Je+' id="'+ve+ge+'">'+st+"</h"+Je+">"},he().setOptions({silent:!0,gfm:!0,pedantic:!1}),he().use({tokenizer:Oe,renderer:be}),Vt.ZP=he()},9981:function(En,Vt){"use strict";const z=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let he=1;he<arguments.length;he++){const ce=he<0||arguments.length<=he?void 0:arguments[he];ce&&Object.keys(ce).forEach(Re=>{const ve=ce[Re];ve!==void 0&&(y[Re]=ve)})}return y};Vt.Z=z},86013:function(En,Vt,z){"use strict";var y=z(59301),he=z(19248);const ce=Re=>{let ve;return typeof Re=="object"&&(Re!=null&&Re.clearIcon)?ve=Re:Re&&(ve={clearIcon:y.createElement(he.Z,null)}),ve};Vt.Z=ce},54500:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return y}});const y=he=>he?typeof he=="function"?he():he:null},97224:function(En,Vt,z){"use strict";z.d(Vt,{F:function(){return y}});function y(ce){return ce!=null&&ce===ce.window}const he=ce=>{var Re,ve;if(typeof window=="undefined")return 0;let me=0;return y(ce)?me=ce.pageYOffset:ce instanceof Document?me=ce.documentElement.scrollTop:(ce instanceof HTMLElement||ce)&&(me=ce.scrollTop),ce&&!y(ce)&&typeof me!="number"&&(me=(ve=((Re=ce.ownerDocument)!==null&&Re!==void 0?Re:ce).documentElement)===null||ve===void 0?void 0:ve.scrollTop),me};Vt.Z=he},83010:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Re}});var y=z(16089);function he(ve,me,pe,Ne){const be=pe-me;return ve/=Ne/2,ve<1?be/2*ve*ve*ve+me:be/2*((ve-=2)*ve*ve+2)+me}var ce=z(97224);function Re(ve){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:pe=()=>window,callback:Ne,duration:be=450}=me,le=pe(),je=(0,ce.Z)(le),Ae=Date.now(),it=()=>{const Oe=Date.now()-Ae,Ee=he(Oe>be?be:Oe,je,ve,be);(0,ce.F)(le)?le.scrollTo(window.pageXOffset,Ee):le instanceof Document||le.constructor.name==="HTMLDocument"?le.documentElement.scrollTop=Ee:le.scrollTop=Ee,Oe<be?(0,y.Z)(it):typeof Ne=="function"&&Ne()};(0,y.Z)(it)}},79939:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Zn}});var y=z(77654),he=z(59301),ce=z(92310),Re=z.n(ce),ve=z(60499),me=z(85899),pe=z(72190),Ne=z(42244),be=z(37463),le=z(6551),je=z(6089),Ae=z(18929),it=he.createContext({}),ze=it,Oe=z(43749),Ee=z(18642),Pe="__rc_cascader_search_mark__",Fe=function(xt,Bt,At){var pn=At.label,Pn=pn===void 0?"":pn;return Bt.some(function(In){return String(In[Pn]).toLowerCase().includes(xt.toLowerCase())})},Ve=function(xt,Bt,At,pn){return Bt.map(function(Pn){return Pn[pn.label]}).join(" / ")},dt=function(xt,Bt,At,pn,Pn,In){var Mn=Pn.filter,qn=Mn===void 0?Fe:Mn,nr=Pn.render,ir=nr===void 0?Ve:nr,lr=Pn.limit,Qn=lr===void 0?50:lr,ar=Pn.sort;return he.useMemo(function(){var fr=[];if(!xt)return[];function Sr(br,Zr){var jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;br.forEach(function(hr){if(!(!ar&&Qn!==!1&&Qn>0&&fr.length>=Qn)){var Nr=[].concat((0,y.Z)(Zr),[hr]),eo=hr[At.children],Tr=jr||hr.disabled;if((!eo||eo.length===0||In)&&qn(xt,Nr,{label:At.label})){var Pr;fr.push((0,me.Z)((0,me.Z)({},hr),{},(Pr={disabled:Tr},(0,Ee.Z)(Pr,At.label,ir(xt,Nr,pn,At)),(0,Ee.Z)(Pr,Pe,Nr),(0,Ee.Z)(Pr,At.children,void 0),Pr)))}eo&&Sr(hr[At.children],Nr,Tr)}})}return Sr(Bt,[]),ar&&fr.sort(function(br,Zr){return ar(br[Pe],Zr[Pe],xt,At)}),Qn!==!1&&Qn>0?fr.slice(0,Qn):fr},[xt,Bt,At,pn,ir,In,qn,ar,Qn])},Se=dt,Ie="__RC_CASCADER_SPLIT__",Xe="SHOW_PARENT",He="SHOW_CHILD";function rt(yt){return yt.join(Ie)}function st(yt){return yt.map(rt)}function Je(yt){return yt.split(Ie)}function et(yt){var xt=yt||{},Bt=xt.label,At=xt.value,pn=xt.children,Pn=At||"value";return{label:Bt||"label",value:Pn,key:Pn,children:pn||"children"}}function ge(yt,xt){var Bt,At;return(Bt=yt.isLeaf)!==null&&Bt!==void 0?Bt:!((At=yt[xt.children])!==null&&At!==void 0&&At.length)}function Qe(yt){var xt=yt.parentElement;if(xt){var Bt=yt.offsetTop-xt.offsetTop;Bt-xt.scrollTop<0?xt.scrollTo({top:Bt}):Bt+yt.offsetHeight-xt.scrollTop>xt.offsetHeight&&xt.scrollTo({top:Bt+yt.offsetHeight-xt.offsetHeight})}}function we(yt,xt){return yt.map(function(Bt){var At;return(At=Bt[Pe])===null||At===void 0?void 0:At.map(function(pn){return pn[xt.value]})})}function se(yt){return Array.isArray(yt)&&Array.isArray(yt[0])}function ft(yt){return yt?se(yt)?yt:(yt.length===0?[]:[yt]).map(function(xt){return Array.isArray(xt)?xt:[xt]}):[]}function $e(yt,xt,Bt){var At=new Set(yt),pn=xt();return yt.filter(function(Pn){var In=pn[Pn],Mn=In?In.parent:null,qn=In?In.children:null;return In&&In.node.disabled?!0:Bt===He?!(qn&&qn.some(function(nr){return nr.key&&At.has(nr.key)})):!(Mn&&!Mn.node.disabled&&At.has(Mn.key))})}function tt(yt,xt,Bt){for(var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,pn=xt,Pn=[],In=function(){var nr,ir,lr,Qn=yt[Mn],ar=(nr=pn)===null||nr===void 0?void 0:nr.findIndex(function(Sr){var br=Sr[Bt.value];return At?String(br)===String(Qn):br===Qn}),fr=ar!==-1?(ir=pn)===null||ir===void 0?void 0:ir[ar]:null;Pn.push({value:(lr=fr==null?void 0:fr[Bt.value])!==null&&lr!==void 0?lr:Qn,index:ar,option:fr}),pn=fr==null?void 0:fr[Bt.children]},Mn=0;Mn<yt.length;Mn+=1)In();return Pn}var Nt=function(yt,xt,Bt,At,pn){return he.useMemo(function(){var Pn=pn||function(In){var Mn=At?In.slice(-1):In,qn=" / ";return Mn.every(function(nr){return["string","number"].includes((0,Oe.Z)(nr))})?Mn.join(qn):Mn.reduce(function(nr,ir,lr){var Qn=he.isValidElement(ir)?he.cloneElement(ir,{key:lr}):ir;return lr===0?[Qn]:[].concat((0,y.Z)(nr),[qn,Qn])},[])};return yt.map(function(In){var Mn,qn=tt(In,xt,Bt),nr=Pn(qn.map(function(lr){var Qn,ar=lr.option,fr=lr.value;return(Qn=ar==null?void 0:ar[Bt.label])!==null&&Qn!==void 0?Qn:fr}),qn.map(function(lr){var Qn=lr.option;return Qn})),ir=rt(In);return{label:nr,value:ir,key:ir,valueCells:In,disabled:(Mn=qn[qn.length-1])===null||Mn===void 0||(Mn=Mn.option)===null||Mn===void 0?void 0:Mn.disabled}})},[yt,xt,Bt,pn,At])};function Le(yt,xt){return he.useCallback(function(Bt){var At=[],pn=[];return Bt.forEach(function(Pn){var In=tt(Pn,yt,xt);In.every(function(Mn){return Mn.option})?pn.push(Pn):At.push(Pn)}),[pn,At]},[yt,xt])}var ye=z(34061),Et=function(yt,xt){var Bt=he.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),At=he.useCallback(function(){return Bt.current.options!==yt&&(Bt.current.options=yt,Bt.current.info=(0,ye.I8)(yt,{fieldNames:xt,initWrapper:function(Pn){return(0,me.Z)((0,me.Z)({},Pn),{},{pathKeyEntities:{}})},processEntity:function(Pn,In){var Mn=Pn.nodes.map(function(qn){return qn[xt.value]}).join(Ie);In.pathKeyEntities[Mn]=Pn,Pn.key=Mn}})),Bt.current.info.pathKeyEntities},[xt,yt]);return At};function Zt(yt,xt){var Bt=he.useMemo(function(){return xt||[]},[xt]),At=Et(Bt,yt),pn=he.useCallback(function(Pn){var In=At();return Pn.map(function(Mn){var qn=In[Mn].nodes;return qn.map(function(nr){return nr[yt.value]})})},[At,yt]);return[Bt,At,pn]}var pt=z(48736);function Ce(yt){return he.useMemo(function(){if(!yt)return[!1,{}];var xt={matchInputWidth:!0,limit:50};return yt&&(0,Oe.Z)(yt)==="object"&&(xt=(0,me.Z)((0,me.Z)({},xt),yt)),xt.limit<=0&&(xt.limit=!1),[!0,xt]},[yt])}var at=z(34643);function qe(yt,xt,Bt,At,pn,Pn,In,Mn){return function(qn){if(!yt)xt(qn);else{var nr=rt(qn),ir=st(Bt),lr=st(At),Qn=ir.includes(nr),ar=pn.some(function(Tr){return rt(Tr)===nr}),fr=Bt,Sr=pn;if(ar&&!Qn)Sr=pn.filter(function(Tr){return rt(Tr)!==nr});else{var br=Qn?ir.filter(function(Tr){return Tr!==nr}):[].concat((0,y.Z)(ir),[nr]),Zr=Pn(),jr;if(Qn){var hr=(0,at.S)(br,{checked:!1,halfCheckedKeys:lr},Zr);jr=hr.checkedKeys}else{var Nr=(0,at.S)(br,!0,Zr);jr=Nr.checkedKeys}var eo=$e(jr,Pn,Mn);fr=In(eo)}xt([].concat((0,y.Z)(Sr),(0,y.Z)(fr)))}}}function zt(yt,xt,Bt,At,pn){return he.useMemo(function(){var Pn=pn(xt),In=(0,pe.Z)(Pn,2),Mn=In[0],qn=In[1];if(!yt||!xt.length)return[Mn,[],qn];var nr=st(Mn),ir=Bt(),lr=(0,at.S)(nr,!0,ir),Qn=lr.checkedKeys,ar=lr.halfCheckedKeys;return[At(Qn),At(ar),qn]},[yt,xt,Bt,At,pn])}var ut=he.memo(function(yt){var xt=yt.children;return xt},function(yt,xt){return!xt.open}),ct=ut;function lt(yt){var xt,Bt=yt.prefixCls,At=yt.checked,pn=yt.halfChecked,Pn=yt.disabled,In=yt.onClick,Mn=yt.disableCheckbox,qn=he.useContext(ze),nr=qn.checkable,ir=typeof nr!="boolean"?nr:null;return he.createElement("span",{className:Re()("".concat(Bt),(xt={},(0,Ee.Z)(xt,"".concat(Bt,"-checked"),At),(0,Ee.Z)(xt,"".concat(Bt,"-indeterminate"),!At&&pn),(0,Ee.Z)(xt,"".concat(Bt,"-disabled"),Pn||Mn),xt)),onClick:In},ir)}var nn="__cascader_fix_label__";function kt(yt){var xt=yt.prefixCls,Bt=yt.multiple,At=yt.options,pn=yt.activeValue,Pn=yt.prevValuePath,In=yt.onToggleOpen,Mn=yt.onSelect,qn=yt.onActive,nr=yt.checkedSet,ir=yt.halfCheckedSet,lr=yt.loadingKeys,Qn=yt.isSelectable,ar=yt.disabled,fr="".concat(xt,"-menu"),Sr="".concat(xt,"-menu-item"),br=he.useContext(ze),Zr=br.fieldNames,jr=br.changeOnSelect,hr=br.expandTrigger,Nr=br.expandIcon,eo=br.loadingIcon,Tr=br.dropdownMenuColumnStyle,Pr=br.optionRender,or=hr==="hover",Ur=function(Cr){return ar||Cr},Rr=he.useMemo(function(){return At.map(function(Br){var Cr,so=Br.disabled,Ho=Br.disableCheckbox,ti=Br[Pe],Eo=(Cr=Br[nn])!==null&&Cr!==void 0?Cr:Br[Zr.label],No=Br[Zr.value],To=ge(Br,Zr),Xo=ti?ti.map(function(Gn){return Gn[Zr.value]}):[].concat((0,y.Z)(Pn),[No]),ko=rt(Xo),vo=lr.includes(ko),dr=nr.has(ko),Tn=ir.has(ko);return{disabled:so,label:Eo,value:No,isLeaf:To,isLoading:vo,checked:dr,halfChecked:Tn,option:Br,disableCheckbox:Ho,fullPath:Xo,fullPathKey:ko}})},[At,nr,Zr,ir,lr,Pn]);return he.createElement("ul",{className:fr,role:"menu"},Rr.map(function(Br){var Cr,so=Br.disabled,Ho=Br.label,ti=Br.value,Eo=Br.isLeaf,No=Br.isLoading,To=Br.checked,Xo=Br.halfChecked,ko=Br.option,vo=Br.fullPath,dr=Br.fullPathKey,Tn=Br.disableCheckbox,Gn=function(){if(!Ur(so)){var wr=(0,y.Z)(vo);or&&Eo&&wr.pop(),qn(wr)}},Yn=function(){Qn(ko)&&!Ur(so)&&Mn(vo,Eo)},Ln;return typeof ko.title=="string"?Ln=ko.title:typeof Ho=="string"&&(Ln=Ho),he.createElement("li",{key:dr,className:Re()(Sr,(Cr={},(0,Ee.Z)(Cr,"".concat(Sr,"-expand"),!Eo),(0,Ee.Z)(Cr,"".concat(Sr,"-active"),pn===ti||pn===dr),(0,Ee.Z)(Cr,"".concat(Sr,"-disabled"),Ur(so)),(0,Ee.Z)(Cr,"".concat(Sr,"-loading"),No),Cr)),style:Tr,role:"menuitemcheckbox",title:Ln,"aria-checked":To,"data-path-key":dr,onClick:function(){Gn(),!Tn&&(!Bt||Eo)&&Yn()},onDoubleClick:function(){jr&&In(!1)},onMouseEnter:function(){or&&Gn()},onMouseDown:function(wr){wr.preventDefault()}},Bt&&he.createElement(lt,{prefixCls:"".concat(xt,"-checkbox"),checked:To,halfChecked:Xo,disabled:Ur(so)||Tn,disableCheckbox:Tn,onClick:function(wr){Tn||(wr.stopPropagation(),Yn())}}),he.createElement("div",{className:"".concat(Sr,"-content")},Pr?Pr(ko):Ho),!No&&Nr&&!Eo&&he.createElement("div",{className:"".concat(Sr,"-expand-icon")},Nr),No&&eo&&he.createElement("div",{className:"".concat(Sr,"-loading-icon")},eo))}))}var ae=function(xt,Bt){var At=he.useContext(ze),pn=At.values,Pn=pn[0],In=he.useState([]),Mn=(0,pe.Z)(In,2),qn=Mn[0],nr=Mn[1];return he.useEffect(function(){xt||nr(Pn||[])},[Bt,Pn]),[qn,nr]},ne=ae,te=z(10228),ie=function(yt,xt,Bt,At,pn,Pn,In){var Mn=In.direction,qn=In.searchValue,nr=In.toggleOpen,ir=In.open,lr=Mn==="rtl",Qn=he.useMemo(function(){for(var Tr=-1,Pr=xt,or=[],Ur=[],Rr=At.length,Br=we(xt,Bt),Cr=function(No){var To=Pr.findIndex(function(Xo,ko){return(Br[ko]?rt(Br[ko]):Xo[Bt.value])===At[No]});if(To===-1)return 1;Tr=To,or.push(Tr),Ur.push(At[No]),Pr=Pr[Tr][Bt.children]},so=0;so<Rr&&Pr&&!Cr(so);so+=1);for(var Ho=xt,ti=0;ti<or.length-1;ti+=1)Ho=Ho[or[ti]][Bt.children];return[Ur,Tr,Ho,Br]},[At,Bt,xt]),ar=(0,pe.Z)(Qn,4),fr=ar[0],Sr=ar[1],br=ar[2],Zr=ar[3],jr=function(Pr){pn(Pr)},hr=function(Pr){var or=br.length,Ur=Sr;Ur===-1&&Pr<0&&(Ur=or);for(var Rr=0;Rr<or;Rr+=1){Ur=(Ur+Pr+or)%or;var Br=br[Ur];if(Br&&!Br.disabled){var Cr=fr.slice(0,-1).concat(Zr[Ur]?rt(Zr[Ur]):Br[Bt.value]);jr(Cr);return}}},Nr=function(){if(fr.length>1){var Pr=fr.slice(0,-1);jr(Pr)}else nr(!1)},eo=function(){var Pr,or=((Pr=br[Sr])===null||Pr===void 0?void 0:Pr[Bt.children])||[],Ur=or.find(function(Br){return!Br.disabled});if(Ur){var Rr=[].concat((0,y.Z)(fr),[Ur[Bt.value]]);jr(Rr)}};he.useImperativeHandle(yt,function(){return{onKeyDown:function(Pr){var or=Pr.which;switch(or){case te.Z.UP:case te.Z.DOWN:{var Ur=0;or===te.Z.UP?Ur=-1:or===te.Z.DOWN&&(Ur=1),Ur!==0&&hr(Ur);break}case te.Z.LEFT:{if(qn)break;lr?eo():Nr();break}case te.Z.RIGHT:{if(qn)break;lr?Nr():eo();break}case te.Z.BACKSPACE:{qn||Nr();break}case te.Z.ENTER:{if(fr.length){var Rr=br[Sr],Br=(Rr==null?void 0:Rr[Pe])||[];Br.length?Pn(Br.map(function(Cr){return Cr[Bt.value]}),Br[Br.length-1]):Pn(fr,br[Sr])}break}case te.Z.ESC:nr(!1),ir&&Pr.stopPropagation()}},onKeyUp:function(){}}})},fe=he.forwardRef(function(yt,xt){var Bt,At,pn,Pn=yt.prefixCls,In=yt.multiple,Mn=yt.searchValue,qn=yt.toggleOpen,nr=yt.notFoundContent,ir=yt.direction,lr=yt.open,Qn=yt.disabled,ar=he.useRef(null),fr=ir==="rtl",Sr=he.useContext(ze),br=Sr.options,Zr=Sr.values,jr=Sr.halfValues,hr=Sr.fieldNames,Nr=Sr.changeOnSelect,eo=Sr.onSelect,Tr=Sr.searchOptions,Pr=Sr.dropdownPrefixCls,or=Sr.loadData,Ur=Sr.expandTrigger,Rr=Pr||Pn,Br=he.useState([]),Cr=(0,pe.Z)(Br,2),so=Cr[0],Ho=Cr[1],ti=function(Yr){if(!(!or||Mn)){var to=tt(Yr,br,hr),Po=to.map(function(Jo){var ni=Jo.option;return ni}),Mo=Po[Po.length-1];if(Mo&&!ge(Mo,hr)){var Yo=rt(Yr);Ho(function(Jo){return[].concat((0,y.Z)(Jo),[Yo])}),or(Po)}}};he.useEffect(function(){so.length&&so.forEach(function(_r){var Yr=Je(_r),to=tt(Yr,br,hr,!0).map(function(Mo){var Yo=Mo.option;return Yo}),Po=to[to.length-1];(!Po||Po[hr.children]||ge(Po,hr))&&Ho(function(Mo){return Mo.filter(function(Yo){return Yo!==_r})})})},[br,so,hr]);var Eo=he.useMemo(function(){return new Set(st(Zr))},[Zr]),No=he.useMemo(function(){return new Set(st(jr))},[jr]),To=ne(In,lr),Xo=(0,pe.Z)(To,2),ko=Xo[0],vo=Xo[1],dr=function(Yr){vo(Yr),ti(Yr)},Tn=function(Yr){if(Qn)return!1;var to=Yr.disabled,Po=ge(Yr,hr);return!to&&(Po||Nr||In)},Gn=function(Yr,to){var Po=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;eo(Yr),!In&&(to||Nr&&(Ur==="hover"||Po))&&qn(!1)},Yn=he.useMemo(function(){return Mn?Tr:br},[Mn,Tr,br]),Ln=he.useMemo(function(){for(var _r=[{options:Yn}],Yr=Yn,to=we(Yr,hr),Po=function(){var Jo=ko[Mo],ni=Yr.find(function(Mi,$i){return(to[$i]?rt(to[$i]):Mi[hr.value])===Jo}),ri=ni==null?void 0:ni[hr.children];if(!(ri!=null&&ri.length))return 1;Yr=ri,_r.push({options:ri})},Mo=0;Mo<ko.length&&!Po();Mo+=1);return _r},[Yn,ko,hr]),mr=function(Yr,to){Tn(to)&&Gn(Yr,ge(to,hr),!0)};ie(xt,Yn,hr,ko,dr,mr,{direction:ir,searchValue:Mn,toggleOpen:qn,open:lr}),he.useEffect(function(){if(!Mn)for(var _r=0;_r<ko.length;_r+=1){var Yr,to=ko.slice(0,_r+1),Po=rt(to),Mo=(Yr=ar.current)===null||Yr===void 0?void 0:Yr.querySelector('li[data-path-key="'.concat(Po.replace(/\\{0,2}"/g,'\\"'),'"]'));Mo&&Qe(Mo)}},[ko,Mn]);var wr=!((Bt=Ln[0])!==null&&Bt!==void 0&&(Bt=Bt.options)!==null&&Bt!==void 0&&Bt.length),Un=[(At={},(0,Ee.Z)(At,hr.value,"__EMPTY__"),(0,Ee.Z)(At,nn,nr),(0,Ee.Z)(At,"disabled",!0),At)],Jn=(0,me.Z)((0,me.Z)({},yt),{},{multiple:!wr&&In,onSelect:Gn,onActive:dr,onToggleOpen:qn,checkedSet:Eo,halfCheckedSet:No,loadingKeys:so,isSelectable:Tn}),sr=wr?[{options:Un}]:Ln,pr=sr.map(function(_r,Yr){var to=ko.slice(0,Yr),Po=ko[Yr];return he.createElement(kt,(0,ve.Z)({key:Yr},Jn,{prefixCls:Rr,options:_r.options,prevValuePath:to,activeValue:Po}))});return he.createElement(ct,{open:lr},he.createElement("div",{className:Re()("".concat(Rr,"-menus"),(pn={},(0,Ee.Z)(pn,"".concat(Rr,"-menu-empty"),wr),(0,Ee.Z)(pn,"".concat(Rr,"-rtl"),fr),pn)),ref:ar},pr))}),re=fe,ue=he.forwardRef(function(yt,xt){var Bt=(0,be.lk)();return he.createElement(re,(0,ve.Z)({},yt,Bt,{ref:xt}))}),Me=ue,gt=z(70425);function _e(){}function ke(yt){var xt,Bt=yt,At=Bt.prefixCls,pn=At===void 0?"rc-cascader":At,Pn=Bt.style,In=Bt.className,Mn=Bt.options,qn=Bt.checkable,nr=Bt.defaultValue,ir=Bt.value,lr=Bt.fieldNames,Qn=Bt.changeOnSelect,ar=Bt.onChange,fr=Bt.showCheckedStrategy,Sr=Bt.loadData,br=Bt.expandTrigger,Zr=Bt.expandIcon,jr=Zr===void 0?">":Zr,hr=Bt.loadingIcon,Nr=Bt.direction,eo=Bt.notFoundContent,Tr=eo===void 0?"Not Found":eo,Pr=Bt.disabled,or=!!qn,Ur=(0,gt.C8)(nr,{value:ir,postState:ft}),Rr=(0,pe.Z)(Ur,2),Br=Rr[0],Cr=Rr[1],so=he.useMemo(function(){return et(lr)},[JSON.stringify(lr)]),Ho=Zt(so,Mn),ti=(0,pe.Z)(Ho,3),Eo=ti[0],No=ti[1],To=ti[2],Xo=Le(Eo,so),ko=zt(or,Br,No,To,Xo),vo=(0,pe.Z)(ko,3),dr=vo[0],Tn=vo[1],Gn=vo[2],Yn=(0,gt.zX)(function(sr){if(Cr(sr),ar){var pr=ft(sr),_r=pr.map(function(Po){return tt(Po,Eo,so).map(function(Mo){return Mo.option})}),Yr=or?pr:pr[0],to=or?_r:_r[0];ar(Yr,to)}}),Ln=qe(or,Yn,dr,Tn,Gn,No,To,fr),mr=(0,gt.zX)(function(sr){Ln(sr)}),wr=he.useMemo(function(){return{options:Eo,fieldNames:so,values:dr,halfValues:Tn,changeOnSelect:Qn,onSelect:mr,checkable:qn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Sr,expandTrigger:br,expandIcon:jr,loadingIcon:hr,dropdownMenuColumnStyle:void 0}},[Eo,so,dr,Tn,Qn,mr,qn,Sr,br,jr,hr]),Un="".concat(pn,"-panel"),Jn=!Eo.length;return he.createElement(ze.Provider,{value:wr},he.createElement("div",{className:Re()(Un,(xt={},(0,Ee.Z)(xt,"".concat(Un,"-rtl"),Nr==="rtl"),(0,Ee.Z)(xt,"".concat(Un,"-empty"),Jn),xt),In),style:Pn},Jn?Tr:he.createElement(re,{prefixCls:pn,searchValue:"",multiple:or,toggleOpen:_e,open:!0,direction:Nr,disabled:Pr})))}function ot(yt){var xt=yt.onPopupVisibleChange,Bt=yt.popupVisible,At=yt.popupClassName,pn=yt.popupPlacement;warning(!xt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Bt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(At===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(pn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ht(yt,xt){if(yt){var Bt=function At(pn){for(var Pn=0;Pn<pn.length;Pn++){var In=pn[Pn];if(In[xt==null?void 0:xt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(In[xt==null?void 0:xt.children])&&At(In[xt==null?void 0:xt.children]))return!0}};Bt(yt)}}var wt=null,Ze=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],We=he.forwardRef(function(yt,xt){var Bt=yt.id,At=yt.prefixCls,pn=At===void 0?"rc-cascader":At,Pn=yt.fieldNames,In=yt.defaultValue,Mn=yt.value,qn=yt.changeOnSelect,nr=yt.onChange,ir=yt.displayRender,lr=yt.checkable,Qn=yt.autoClearSearchValue,ar=Qn===void 0?!0:Qn,fr=yt.searchValue,Sr=yt.onSearch,br=yt.showSearch,Zr=yt.expandTrigger,jr=yt.options,hr=yt.dropdownPrefixCls,Nr=yt.loadData,eo=yt.popupVisible,Tr=yt.open,Pr=yt.popupClassName,or=yt.dropdownClassName,Ur=yt.dropdownMenuColumnStyle,Rr=yt.dropdownStyle,Br=yt.popupPlacement,Cr=yt.placement,so=yt.onDropdownVisibleChange,Ho=yt.onPopupVisibleChange,ti=yt.expandIcon,Eo=ti===void 0?">":ti,No=yt.loadingIcon,To=yt.children,Xo=yt.dropdownMatchSelectWidth,ko=Xo===void 0?!1:Xo,vo=yt.showCheckedStrategy,dr=vo===void 0?Xe:vo,Tn=yt.optionRender,Gn=(0,Ne.Z)(yt,Ze),Yn=(0,le.ZP)(Bt),Ln=!!lr,mr=(0,Ae.Z)(In,{value:Mn,postState:ft}),wr=(0,pe.Z)(mr,2),Un=wr[0],Jn=wr[1],sr=he.useMemo(function(){return et(Pn)},[JSON.stringify(Pn)]),pr=Zt(sr,jr),_r=(0,pe.Z)(pr,3),Yr=_r[0],to=_r[1],Po=_r[2],Mo=(0,Ae.Z)("",{value:fr,postState:function(qo){return qo||""}}),Yo=(0,pe.Z)(Mo,2),Jo=Yo[0],ni=Yo[1],ri=function(qo,Bi){ni(qo),Bi.source!=="blur"&&Sr&&Sr(qo)},Mi=Ce(br),$i=(0,pe.Z)(Mi,2),Xi=$i[0],Yi=$i[1],ta=Se(Jo,Yr,sr,hr||pn,Yi,qn||Ln),Lo=Le(Yr,sr),co=zt(Ln,Un,to,Po,Lo),wi=(0,pe.Z)(co,3),wo=wi[0],aa=wi[1],Qa=wi[2],Ha=he.useMemo(function(){var Bo=st(wo),qo=$e(Bo,to,dr);return[].concat((0,y.Z)(Qa),(0,y.Z)(Po(qo)))},[wo,to,Po,Qa,dr]),da=Nt(Ha,Yr,sr,Ln,ir),fa=(0,je.Z)(function(Bo){if(Jn(Bo),nr){var qo=ft(Bo),Bi=qo.map(function(Qi){return tt(Qi,Yr,sr).map(function(sa){return sa.option})}),Wa=Ln?qo:qo[0],zi=Ln?Bi:Bi[0];nr(Wa,zi)}}),Ti=qe(Ln,fa,wo,aa,Qa,to,Po,dr),ka=(0,je.Z)(function(Bo){(!Ln||ar)&&ni(""),Ti(Bo)}),rl=function(qo,Bi){if(Bi.type==="clear"){fa([]);return}var Wa=Bi.values[0],zi=Wa.valueCells;ka(zi)},Ja=Tr!==void 0?Tr:eo,la=or||Pr,Fl=Cr||Br,El=function(qo){so==null||so(qo),Ho==null||Ho(qo)},jo=he.useMemo(function(){return{options:Yr,fieldNames:sr,values:wo,halfValues:aa,changeOnSelect:qn,onSelect:ka,checkable:lr,searchOptions:ta,dropdownPrefixCls:hr,loadData:Nr,expandTrigger:Zr,expandIcon:Eo,loadingIcon:No,dropdownMenuColumnStyle:Ur,optionRender:Tn}},[Yr,sr,wo,aa,qn,ka,lr,ta,hr,Nr,Zr,Eo,No,Ur,Tn]),ai=!(Jo?ta:Yr).length,Ro=Jo&&Yi.matchInputWidth||ai?{}:{minWidth:"auto"};return he.createElement(ze.Provider,{value:jo},he.createElement(be.Ac,(0,ve.Z)({},Gn,{ref:xt,id:Yn,prefixCls:pn,autoClearSearchValue:ar,dropdownMatchSelectWidth:ko,dropdownStyle:(0,me.Z)((0,me.Z)({},Ro),Rr),displayValues:da,onDisplayValuesChange:rl,mode:Ln?"multiple":void 0,searchValue:Jo,onSearch:ri,showSearch:Xi,OptionList:Me,emptyOptions:ai,open:Ja,dropdownClassName:la,placement:Fl,onDropdownVisibleChange:El,getRawInputElement:function(){return To}})))});We.SHOW_PARENT=Xe,We.SHOW_CHILD=He,We.Panel=ke;var Mt=We,Ut=Mt,cn=z(2738),ln=z(75030),_t=z(86641),fn=z(45915),qt=z(82855),Ye=z(48755),Ot=z(38406),Jt=z(2171),on=z(83397),Ge=z(31756),Pt=z(56553),jt=z(24971),vt=z(1722),Lt=z(90376),Rt=z(68525),sn=z(90005),Sn=z(70045);function un(yt,xt){const{getPrefixCls:Bt,direction:At,renderEmpty:pn}=he.useContext(Ye.E_),Pn=xt||At,In=Bt("select",yt),Mn=Bt("cascader",yt);return[In,Mn,Pn,pn]}var Cn=un;function Ct(yt,xt){return he.useMemo(()=>xt?he.createElement("span",{className:`${yt}-checkbox-inner`}):!1,[xt])}var It=z(33853),Gt=z(58617),tn=z(38819),mn=(yt,xt,Bt)=>{let At=Bt;Bt||(At=xt?he.createElement(It.Z,null):he.createElement(tn.Z,null));const pn=he.createElement("span",{className:`${yt}-menu-item-loading-icon`},he.createElement(Gt.Z,{spin:!0}));return he.useMemo(()=>[At,pn],[At])},an=z(56119),yn=z(16931),jn=z(36237),Nn=z(36170),$n=z(63356),Wn=yt=>{const{prefixCls:xt,componentCls:Bt}=yt,At=`${Bt}-menu-item`,pn=`
&${At}-expand ${At}-expand-icon,
${At}-loading-icon
`;return[(0,Nn.C2)(`${xt}-checkbox`,yt),{[Bt]:{"&-checkbox":{top:0,marginInlineEnd:yt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Bt}-menu-empty`]:{[`${Bt}-menu`]:{width:"100%",height:"auto",[At]:{color:yt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:yt.controlItemWidth,height:yt.dropdownHeight,margin:0,padding:yt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,jn.unit)(yt.lineWidth)} ${yt.lineType} ${yt.colorSplit}`},"&-item":Object.assign(Object.assign({},$n.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:yt.optionPadding,lineHeight:yt.lineHeight,cursor:"pointer",transition:`all ${yt.motionDurationMid}`,borderRadius:yt.borderRadiusSM,"&:hover":{background:yt.controlItemBgHover},"&-disabled":{color:yt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[pn]:{color:yt.colorTextDisabled}},[`&-active:not(${At}-disabled)`]:{"&, &:hover":{color:yt.optionSelectedColor,fontWeight:yt.optionSelectedFontWeight,backgroundColor:yt.optionSelectedBg}},"&-content":{flex:"auto"},[pn]:{marginInlineStart:yt.paddingXXS,color:yt.colorTextDescription,fontSize:yt.fontSizeIcon},"&-keyword":{color:yt.colorHighlight}})}}}]};const ur=yt=>{const{componentCls:xt,antCls:Bt}=yt;return[{[xt]:{width:yt.controlWidth}},{[`${xt}-dropdown`]:[{[`&${Bt}-select-dropdown`]:{padding:0}},Wn(yt)]},{[`${xt}-dropdown-rtl`]:{direction:"rtl"}},(0,an.c)(yt)]},rr=yt=>{const xt=Math.round((yt.controlHeight-yt.fontSize*yt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:yt.controlItemBgActive,optionSelectedFontWeight:yt.fontWeightStrong,optionPadding:`${xt}px ${yt.paddingSM}px`,menuPadding:yt.paddingXXS,optionSelectedColor:yt.colorText}};var hn=(0,yn.I$)("Cascader",yt=>[ur(yt)],rr);const Bn=yt=>{const{componentCls:xt}=yt;return{[`${xt}-panel`]:[Wn(yt),{display:"inline-flex",border:`${(0,jn.unit)(yt.lineWidth)} ${yt.lineType} ${yt.colorSplit}`,borderRadius:yt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${xt}-menus`]:{alignItems:"stretch"},[`${xt}-menu`]:{height:"auto"},"&-empty":{padding:yt.paddingXXS}}]}};var zn=(0,yn.A1)(["Cascader","Panel"],yt=>Bn(yt),rr);function Hn(yt){const{prefixCls:xt,className:Bt,multiple:At,rootClassName:pn,notFoundContent:Pn,direction:In,expandIcon:Mn,disabled:qn}=yt,nr=he.useContext(Jt.Z),ir=qn!=null?qn:nr,[lr,Qn,ar,fr]=Cn(xt,In),Sr=(0,on.Z)(Qn),[br,Zr,jr]=hn(Qn,Sr);zn(Qn);const hr=ar==="rtl",[Nr,eo]=mn(lr,hr,Mn),Tr=Pn||(fr==null?void 0:fr("Cascader"))||he.createElement(Ot.Z,{componentName:"Cascader"}),Pr=Ct(Qn,At);return br(he.createElement(ke,Object.assign({},yt,{checkable:Pr,prefixCls:Qn,className:Re()(Bt,Zr,pn,jr,Sr),notFoundContent:Tr,direction:ar,expandIcon:Nr,loadingIcon:eo,disabled:ir})))}var St=Hn,$t=function(yt,xt){var Bt={};for(var At in yt)Object.prototype.hasOwnProperty.call(yt,At)&&xt.indexOf(At)<0&&(Bt[At]=yt[At]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,At=Object.getOwnPropertySymbols(yt);pn<At.length;pn++)xt.indexOf(At[pn])<0&&Object.prototype.propertyIsEnumerable.call(yt,At[pn])&&(Bt[At[pn]]=yt[At[pn]]);return Bt};const{SHOW_CHILD:nt,SHOW_PARENT:Ft}=Ut;function Ke(yt,xt,Bt){const At=yt.toLowerCase().split(xt).reduce((In,Mn,qn)=>qn===0?[Mn]:[].concat((0,y.Z)(In),[xt,Mn]),[]),pn=[];let Pn=0;return At.forEach((In,Mn)=>{const qn=Pn+In.length;let nr=yt.slice(Pn,qn);Pn=qn,Mn%2===1&&(nr=he.createElement("span",{className:`${Bt}-menu-item-keyword`,key:`separator-${Mn}`},nr)),pn.push(nr)}),pn}const Tt=(yt,xt,Bt,At)=>{const pn=[],Pn=yt.toLowerCase();return xt.forEach((In,Mn)=>{Mn!==0&&pn.push(" / ");let qn=In[At.label];const nr=typeof qn;(nr==="string"||nr==="number")&&(qn=Ke(String(qn),Pn,Bt)),pn.push(qn)}),pn},Yt=he.forwardRef((yt,xt)=>{var Bt;const{prefixCls:At,size:pn,disabled:Pn,className:In,rootClassName:Mn,multiple:qn,bordered:nr=!0,transitionName:ir,choiceTransitionName:lr="",popupClassName:Qn,dropdownClassName:ar,expandIcon:fr,placement:Sr,showSearch:br,allowClear:Zr=!0,notFoundContent:jr,direction:hr,getPopupContainer:Nr,status:eo,showArrow:Tr,builtinPlacements:Pr,style:or,variant:Ur}=yt,Rr=$t(yt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Br=(0,cn.Z)(Rr,["suffixIcon"]),{getPrefixCls:Cr,getPopupContainer:so,className:Ho,style:ti}=(0,Ye.dj)("cascader"),{popupOverflow:Eo}=he.useContext(Ye.E_),{status:No,hasFeedback:To,isFormItemInput:Xo,feedbackIcon:ko}=he.useContext(Pt.aM),vo=(0,qt.F)(No,eo),[dr,Tn,Gn,Yn]=Cn(At,hr),Ln=Gn==="rtl",mr=Cr(),wr=(0,on.Z)(dr),[Un,Jn,sr]=(0,Lt.Z)(dr,wr),pr=(0,on.Z)(Tn),[_r]=hn(Tn,pr),{compactSize:Yr,compactItemClassnames:to}=(0,Sn.ri)(dr,hr),[Po,Mo]=(0,jt.Z)("cascader",Ur,nr),Yo=jr||(Yn==null?void 0:Yn("Cascader"))||he.createElement(Ot.Z,{componentName:"Cascader"}),Jo=Re()(Qn||ar,`${Tn}-dropdown`,{[`${Tn}-dropdown-rtl`]:Gn==="rtl"},Mn,wr,pr,Jn,sr),ni=he.useMemo(()=>{if(!br)return br;let fa={render:Tt};return typeof br=="object"&&(fa=Object.assign(Object.assign({},fa),br)),fa},[br]),ri=(0,Ge.Z)(fa=>{var Ti;return(Ti=pn!=null?pn:Yr)!==null&&Ti!==void 0?Ti:fa}),Mi=he.useContext(Jt.Z),$i=Pn!=null?Pn:Mi,[Xi,Yi]=mn(dr,Ln,fr),ta=Ct(Tn,qn),Lo=(0,sn.Z)(yt.suffixIcon,Tr),{suffixIcon:co,removeIcon:wi,clearIcon:wo}=(0,Rt.Z)(Object.assign(Object.assign({},yt),{hasFeedback:To,feedbackIcon:ko,showSuffixIcon:Lo,multiple:qn,prefixCls:dr,componentName:"Cascader"})),aa=he.useMemo(()=>Sr!==void 0?Sr:Ln?"bottomRight":"bottomLeft",[Sr,Ln]),Qa=Zr===!0?{clearIcon:wo}:Zr,[Ha]=(0,ln.Cn)("SelectLike",(Bt=Br.dropdownStyle)===null||Bt===void 0?void 0:Bt.zIndex),da=he.createElement(Ut,Object.assign({prefixCls:dr,className:Re()(!At&&Tn,{[`${dr}-lg`]:ri==="large",[`${dr}-sm`]:ri==="small",[`${dr}-rtl`]:Ln,[`${dr}-${Po}`]:Mo,[`${dr}-in-form-item`]:Xo},(0,qt.Z)(dr,vo,To),to,Ho,In,Mn,wr,pr,Jn,sr),disabled:$i,style:Object.assign(Object.assign({},ti),or)},Br,{builtinPlacements:(0,vt.Z)(Pr,Eo),direction:Gn,placement:aa,notFoundContent:Yo,allowClear:Qa,showSearch:ni,expandIcon:Xi,suffixIcon:co,removeIcon:wi,loadingIcon:Yi,checkable:ta,dropdownClassName:Jo,dropdownPrefixCls:At||Tn,dropdownStyle:Object.assign(Object.assign({},Br.dropdownStyle),{zIndex:Ha}),choiceTransitionName:(0,_t.m)(mr,"",lr),transitionName:(0,_t.m)(mr,"slide-up",ir),getPopupContainer:Nr||so,ref:xt}));return _r(Un(da))}),Rn=(0,fn.Z)(Yt,"dropdownAlign",yt=>(0,cn.Z)(yt,["visible"]));Yt.SHOW_PARENT=Ft,Yt.SHOW_CHILD=nt,Yt.Panel=St,Yt._InternalPanelDoNotUseOrYouWillBeFired=Rn;var Zn=Yt},62673:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return st}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(16632),ve=z(8654),me=z(12919),pe=z(63872),Ne=z(48755),be=z(2171),le=z(83397),je=z(56553),it=y.createContext(null),ze=z(36170),Oe=z(74632),Ee=function(Je,et){var ge={};for(var Qe in Je)Object.prototype.hasOwnProperty.call(Je,Qe)&&et.indexOf(Qe)<0&&(ge[Qe]=Je[Qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Je);we<Qe.length;we++)et.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Je,Qe[we])&&(ge[Qe[we]]=Je[Qe[we]]);return ge};const Pe=(Je,et)=>{var ge;const{prefixCls:Qe,className:we,rootClassName:se,children:ft,indeterminate:$e=!1,style:tt,onMouseEnter:Nt,onMouseLeave:Le,skipGroup:ye=!1,disabled:Et}=Je,Zt=Ee(Je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:Ce,checkbox:at}=y.useContext(Ne.E_),qe=y.useContext(it),{isFormItemInput:zt}=y.useContext(je.aM),ut=y.useContext(be.Z),ct=(ge=(qe==null?void 0:qe.disabled)||Et)!==null&&ge!==void 0?ge:ut,lt=y.useRef(Zt.value),nn=y.useRef(null),kt=(0,ve.sQ)(et,nn);y.useEffect(()=>{qe==null||qe.registerValue(Zt.value)},[]),y.useEffect(()=>{if(!ye)return Zt.value!==lt.current&&(qe==null||qe.cancelValue(lt.current),qe==null||qe.registerValue(Zt.value),lt.current=Zt.value),()=>qe==null?void 0:qe.cancelValue(Zt.value)},[Zt.value]),y.useEffect(()=>{var ke;!((ke=nn.current)===null||ke===void 0)&&ke.input&&(nn.current.input.indeterminate=$e)},[$e]);const ae=pt("checkbox",Qe),ne=(0,le.Z)(ae),[te,ie,fe]=(0,ze.ZP)(ae,ne),re=Object.assign({},Zt);qe&&!ye&&(re.onChange=function(){Zt.onChange&&Zt.onChange.apply(Zt,arguments),qe.toggleOption&&qe.toggleOption({label:ft,value:Zt.value})},re.name=qe.name,re.checked=qe.value.includes(Zt.value));const ue=ce()(`${ae}-wrapper`,{[`${ae}-rtl`]:Ce==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:ct,[`${ae}-wrapper-in-form-item`]:zt},at==null?void 0:at.className,we,se,fe,ne,ie),Me=ce()({[`${ae}-indeterminate`]:$e},pe.A,ie),[gt,_e]=(0,Oe.Z)(re.onClick);return te(y.createElement(me.Z,{component:"Checkbox",disabled:ct},y.createElement("label",{className:ue,style:Object.assign(Object.assign({},at==null?void 0:at.style),tt),onMouseEnter:Nt,onMouseLeave:Le,onClick:gt},y.createElement(Re.Z,Object.assign({},re,{onClick:_e,prefixCls:ae,className:Me,disabled:ct,ref:kt})),ft!==void 0&&y.createElement("span",{className:`${ae}-label`},ft))))};var Ve=y.forwardRef(Pe),dt=z(77654),Se=z(2738),Ie=function(Je,et){var ge={};for(var Qe in Je)Object.prototype.hasOwnProperty.call(Je,Qe)&&et.indexOf(Qe)<0&&(ge[Qe]=Je[Qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Qe=Object.getOwnPropertySymbols(Je);we<Qe.length;we++)et.indexOf(Qe[we])<0&&Object.prototype.propertyIsEnumerable.call(Je,Qe[we])&&(ge[Qe[we]]=Je[Qe[we]]);return ge},He=y.forwardRef((Je,et)=>{const{defaultValue:ge,children:Qe,options:we=[],prefixCls:se,className:ft,rootClassName:$e,style:tt,onChange:Nt}=Je,Le=Ie(Je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:Et}=y.useContext(Ne.E_),[Zt,pt]=y.useState(Le.value||ge||[]),[Ce,at]=y.useState([]);y.useEffect(()=>{"value"in Le&&pt(Le.value||[])},[Le.value]);const qe=y.useMemo(()=>we.map(Me=>typeof Me=="string"||typeof Me=="number"?{label:Me,value:Me}:Me),[we]),zt=Me=>{at(gt=>gt.filter(_e=>_e!==Me))},ut=Me=>{at(gt=>[].concat((0,dt.Z)(gt),[Me]))},ct=Me=>{const gt=Zt.indexOf(Me.value),_e=(0,dt.Z)(Zt);gt===-1?_e.push(Me.value):_e.splice(gt,1),"value"in Le||pt(_e),Nt==null||Nt(_e.filter(ke=>Ce.includes(ke)).sort((ke,ot)=>{const ht=qe.findIndex(Ze=>Ze.value===ke),wt=qe.findIndex(Ze=>Ze.value===ot);return ht-wt}))},lt=ye("checkbox",se),nn=`${lt}-group`,kt=(0,le.Z)(lt),[ae,ne,te]=(0,ze.ZP)(lt,kt),ie=(0,Se.Z)(Le,["value","disabled"]),fe=we.length?qe.map(Me=>y.createElement(Ve,{prefixCls:lt,key:Me.value.toString(),disabled:"disabled"in Me?Me.disabled:Le.disabled,value:Me.value,checked:Zt.includes(Me.value),onChange:Me.onChange,className:`${nn}-item`,style:Me.style,title:Me.title,id:Me.id,required:Me.required},Me.label)):Qe,re={toggleOption:ct,value:Zt,disabled:Le.disabled,name:Le.name,registerValue:ut,cancelValue:zt},ue=ce()(nn,{[`${nn}-rtl`]:Et==="rtl"},ft,$e,te,kt,ne);return ae(y.createElement("div",Object.assign({className:ue,style:tt},ie,{ref:et}),y.createElement(it.Provider,{value:re},fe)))});const rt=Ve;rt.Group=He,rt.__ANT_CHECKBOX=!0;var st=rt},36170:function(En,Vt,z){"use strict";z.d(Vt,{C2:function(){return me}});var y=z(36237),he=z(63356),ce=z(51636),Re=z(16931);const ve=pe=>{const{checkboxCls:Ne}=pe,be=`${Ne}-wrapper`;return[{[`${Ne}-group`]:Object.assign(Object.assign({},(0,he.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[be]:Object.assign(Object.assign({},(0,he.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${be}`]:{marginInlineStart:0},[`&${be}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ne]:Object.assign(Object.assign({},(0,he.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${Ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ne}-inner`]:Object.assign({},(0,he.oN)(pe))},[`${Ne}-inner`]:{boxSizing:"border-box",display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${(0,y.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:pe.calc(pe.checkboxSize).div(14).mul(5).equal(),height:pe.calc(pe.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(pe.lineWidthBold)} solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[`
${be}:not(${be}-disabled),
${Ne}:not(${Ne}-disabled)
`]:{[`&:hover ${Ne}-inner`]:{borderColor:pe.colorPrimary}},[`${be}:not(${be}-disabled)`]:{[`&:hover ${Ne}-checked:not(${Ne}-disabled) ${Ne}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ne}-checked:not(${Ne}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${Ne}-checked`]:{[`${Ne}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[`
${be}-checked:not(${be}-disabled),
${Ne}-checked:not(${Ne}-disabled)
`]:{[`&:hover ${Ne}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[Ne]:{"&-indeterminate":{[`${Ne}-inner`]:{backgroundColor:`${pe.colorBgContainer} !important`,borderColor:`${pe.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.calc(pe.fontSizeLG).div(2).equal(),height:pe.calc(pe.fontSizeLG).div(2).equal(),backgroundColor:pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ne}-inner`]:{backgroundColor:`${pe.colorBgContainer} !important`,borderColor:`${pe.colorPrimary} !important`}}}},{[`${be}-disabled`]:{cursor:"not-allowed"},[`${Ne}-disabled`]:{[`&, ${Ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ne}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${Ne}-indeterminate ${Ne}-inner::after`]:{background:pe.colorTextDisabled}}}]};function me(pe,Ne){const be=(0,ce.mergeToken)(Ne,{checkboxCls:`.${pe}`,checkboxSize:Ne.controlInteractiveSize});return[ve(be)]}Vt.ZP=(0,Re.I$)("Checkbox",(pe,Ne)=>{let{prefixCls:be}=Ne;return[me(be,pe)]})},38406:function(En,Vt,z){"use strict";var y=z(59301),he=z(48755),ce=z(584);const Re=ve=>{const{componentName:me}=ve,{getPrefixCls:pe}=(0,y.useContext)(he.E_),Ne=pe("empty");switch(me){case"Table":case"List":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ne}-small`});case"Table.filter":return null;default:return y.createElement(ce.Z,null)}};Vt.Z=Re},37285:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ze}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(48755),ve=z(36237),me=z(63356),pe=z(16931),Ne=z(51636);const be=Oe=>{const{componentCls:Ee,sizePaddingEdgeHorizontal:Pe,colorSplit:Fe,lineWidth:Ve,textPaddingInline:dt,orientationMargin:Se,verticalMarginInline:Ie}=Oe;return{[Ee]:Object.assign(Object.assign({},(0,me.Wf)(Oe)),{borderBlockStart:`${(0,ve.unit)(Ve)} solid ${Fe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ie,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ve.unit)(Ve)} solid ${Fe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ve.unit)(Oe.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ee}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ve.unit)(Oe.dividerHorizontalWithTextGutterMargin)} 0`,color:Oe.colorTextHeading,fontWeight:500,fontSize:Oe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Fe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ve.unit)(Ve)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ee}-with-text-start`]:{"&::before":{width:`calc(${Se} * 100%)`},"&::after":{width:`calc(100% - ${Se} * 100%)`}},[`&-horizontal${Ee}-with-text-end`]:{"&::before":{width:`calc(100% - ${Se} * 100%)`},"&::after":{width:`calc(${Se} * 100%)`}},[`${Ee}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:dt},"&-dashed":{background:"none",borderColor:Fe,borderStyle:"dashed",borderWidth:`${(0,ve.unit)(Ve)} 0 0`},[`&-horizontal${Ee}-with-text${Ee}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ee}-dashed`]:{borderInlineStartWidth:Ve,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Fe,borderStyle:"dotted",borderWidth:`${(0,ve.unit)(Ve)} 0 0`},[`&-horizontal${Ee}-with-text${Ee}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ee}-dotted`]:{borderInlineStartWidth:Ve,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ee}-with-text`]:{color:Oe.colorText,fontWeight:"normal",fontSize:Oe.fontSize},[`&-horizontal${Ee}-with-text-start${Ee}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ee}-inner-text`]:{paddingInlineStart:Pe}},[`&-horizontal${Ee}-with-text-end${Ee}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ee}-inner-text`]:{paddingInlineEnd:Pe}}})}},le=Oe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Oe.marginXS});var je=(0,pe.I$)("Divider",Oe=>{const Ee=(0,Ne.mergeToken)(Oe,{dividerHorizontalWithTextGutterMargin:Oe.margin,dividerHorizontalGutterMargin:Oe.marginLG,sizePaddingEdgeHorizontal:0});return[be(Ee)]},le,{unitless:{orientationMargin:!0}}),Ae=function(Oe,Ee){var Pe={};for(var Fe in Oe)Object.prototype.hasOwnProperty.call(Oe,Fe)&&Ee.indexOf(Fe)<0&&(Pe[Fe]=Oe[Fe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Fe=Object.getOwnPropertySymbols(Oe);Ve<Fe.length;Ve++)Ee.indexOf(Fe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Fe[Ve])&&(Pe[Fe[Ve]]=Oe[Fe[Ve]]);return Pe},ze=Oe=>{const{getPrefixCls:Ee,direction:Pe,className:Fe,style:Ve}=(0,Re.dj)("divider"),{prefixCls:dt,type:Se="horizontal",orientation:Ie="center",orientationMargin:Xe,className:He,rootClassName:rt,children:st,dashed:Je,variant:et="solid",plain:ge,style:Qe}=Oe,we=Ae(Oe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),se=Ee("divider",dt),[ft,$e,tt]=je(se),Nt=!!st,Le=y.useMemo(()=>Ie==="left"?Pe==="rtl"?"end":"start":Ie==="right"?Pe==="rtl"?"start":"end":Ie,[Pe,Ie]),ye=Le==="start"&&Xe!=null,Et=Le==="end"&&Xe!=null,Zt=ce()(se,Fe,$e,tt,`${se}-${Se}`,{[`${se}-with-text`]:Nt,[`${se}-with-text-${Le}`]:Nt,[`${se}-dashed`]:!!Je,[`${se}-${et}`]:et!=="solid",[`${se}-plain`]:!!ge,[`${se}-rtl`]:Pe==="rtl",[`${se}-no-default-orientation-margin-start`]:ye,[`${se}-no-default-orientation-margin-end`]:Et},He,rt),pt=y.useMemo(()=>typeof Xe=="number"?Xe:/^\d+$/.test(Xe)?Number(Xe):Xe,[Xe]),Ce={marginInlineStart:ye?pt:void 0,marginInlineEnd:Et?pt:void 0};return ft(y.createElement("div",Object.assign({className:Zt,style:Object.assign(Object.assign({},Ve),Qe)},we,{role:"separator"}),st&&Se!=="vertical"&&y.createElement("span",{className:`${se}-inner-text`,style:Ce},st)))}},36207:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return gt}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(85899),ve=z(72190),me=z(43403),pe=z(34280),Ne=y.createContext(null),be=y.createContext({}),le=Ne,je=z(18642),Ae=z(60499),it=z(77900),ze=z(10228),Oe=z(26112),Ee=z(42244),Pe=z(8654),Fe=["prefixCls","className","containerRef"],Ve=function(ke){var ot=ke.prefixCls,ht=ke.className,wt=ke.containerRef,Ze=(0,Ee.Z)(ke,Fe),We=y.useContext(be),Mt=We.panel,Ut=(0,Pe.x1)(Mt,wt);return y.createElement("div",(0,Ae.Z)({className:ce()("".concat(ot,"-content"),ht),role:"dialog",ref:Ut},(0,Oe.Z)(ke,{aria:!0}),{"aria-modal":"true"},Ze))},dt=Ve,Se=z(48736);function Ie(_e){return typeof _e=="string"&&String(Number(_e))===_e?((0,Se.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(_e)):_e}function Xe(_e){warning(!("wrapperClassName"in _e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!_e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var He={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function rt(_e,ke){var ot,ht,wt,Ze=_e.prefixCls,We=_e.open,Mt=_e.placement,Ut=_e.inline,cn=_e.push,ln=_e.forceRender,_t=_e.autoFocus,fn=_e.keyboard,qt=_e.classNames,Ye=_e.rootClassName,Ot=_e.rootStyle,Jt=_e.zIndex,on=_e.className,Ge=_e.id,Pt=_e.style,jt=_e.motion,vt=_e.width,Lt=_e.height,Rt=_e.children,sn=_e.mask,Sn=_e.maskClosable,un=_e.maskMotion,Cn=_e.maskClassName,Ct=_e.maskStyle,It=_e.afterOpenChange,Gt=_e.onClose,tn=_e.onMouseEnter,Wt=_e.onMouseOver,mn=_e.onMouseLeave,an=_e.onClick,yn=_e.onKeyDown,jn=_e.onKeyUp,Nn=_e.styles,$n=_e.drawerRender,Vn=y.useRef(),Wn=y.useRef(),ur=y.useRef();y.useImperativeHandle(ke,function(){return Vn.current});var rr=function(Bt){var At=Bt.keyCode,pn=Bt.shiftKey;switch(At){case ze.Z.TAB:{if(At===ze.Z.TAB){if(!pn&&document.activeElement===ur.current){var Pn;(Pn=Wn.current)===null||Pn===void 0||Pn.focus({preventScroll:!0})}else if(pn&&document.activeElement===Wn.current){var In;(In=ur.current)===null||In===void 0||In.focus({preventScroll:!0})}}break}case ze.Z.ESC:{Gt&&fn&&(Bt.stopPropagation(),Gt(Bt));break}}};y.useEffect(function(){if(We&&_t){var xt;(xt=Vn.current)===null||xt===void 0||xt.focus({preventScroll:!0})}},[We]);var hn=y.useState(!1),Bn=(0,ve.Z)(hn,2),zn=Bn[0],Hn=Bn[1],St=y.useContext(le),$t;typeof cn=="boolean"?$t=cn?{}:{distance:0}:$t=cn||{};var nt=(ot=(ht=(wt=$t)===null||wt===void 0?void 0:wt.distance)!==null&&ht!==void 0?ht:St==null?void 0:St.pushDistance)!==null&&ot!==void 0?ot:180,Ft=y.useMemo(function(){return{pushDistance:nt,push:function(){Hn(!0)},pull:function(){Hn(!1)}}},[nt]);y.useEffect(function(){if(We){var xt;St==null||(xt=St.push)===null||xt===void 0||xt.call(St)}else{var Bt;St==null||(Bt=St.pull)===null||Bt===void 0||Bt.call(St)}},[We]),y.useEffect(function(){return function(){var xt;St==null||(xt=St.pull)===null||xt===void 0||xt.call(St)}},[]);var Ke=sn&&y.createElement(it.default,(0,Ae.Z)({key:"mask"},un,{visible:We}),function(xt,Bt){var At=xt.className,pn=xt.style;return y.createElement("div",{className:ce()("".concat(Ze,"-mask"),At,qt==null?void 0:qt.mask,Cn),style:(0,Re.Z)((0,Re.Z)((0,Re.Z)({},pn),Ct),Nn==null?void 0:Nn.mask),onClick:Sn&&We?Gt:void 0,ref:Bt})}),Tt=typeof jt=="function"?jt(Mt):jt,Yt={};if(zn&&nt)switch(Mt){case"top":Yt.transform="translateY(".concat(nt,"px)");break;case"bottom":Yt.transform="translateY(".concat(-nt,"px)");break;case"left":Yt.transform="translateX(".concat(nt,"px)");break;default:Yt.transform="translateX(".concat(-nt,"px)");break}Mt==="left"||Mt==="right"?Yt.width=Ie(vt):Yt.height=Ie(Lt);var Rn={onMouseEnter:tn,onMouseOver:Wt,onMouseLeave:mn,onClick:an,onKeyDown:yn,onKeyUp:jn},Zn=y.createElement(it.default,(0,Ae.Z)({key:"panel"},Tt,{visible:We,forceRender:ln,onVisibleChanged:function(Bt){It==null||It(Bt)},removeOnLeave:!1,leavedClassName:"".concat(Ze,"-content-wrapper-hidden")}),function(xt,Bt){var At=xt.className,pn=xt.style,Pn=y.createElement(dt,(0,Ae.Z)({id:Ge,containerRef:Bt,prefixCls:Ze,className:ce()(on,qt==null?void 0:qt.content),style:(0,Re.Z)((0,Re.Z)({},Pt),Nn==null?void 0:Nn.content)},(0,Oe.Z)(_e,{aria:!0}),Rn),Rt);return y.createElement("div",(0,Ae.Z)({className:ce()("".concat(Ze,"-content-wrapper"),qt==null?void 0:qt.wrapper,At),style:(0,Re.Z)((0,Re.Z)((0,Re.Z)({},Yt),pn),Nn==null?void 0:Nn.wrapper)},(0,Oe.Z)(_e,{data:!0})),$n?$n(Pn):Pn)}),yt=(0,Re.Z)({},Ot);return Jt&&(yt.zIndex=Jt),y.createElement(le.Provider,{value:Ft},y.createElement("div",{className:ce()(Ze,"".concat(Ze,"-").concat(Mt),Ye,(0,je.Z)((0,je.Z)({},"".concat(Ze,"-open"),We),"".concat(Ze,"-inline"),Ut)),style:yt,tabIndex:-1,ref:Vn,onKeyDown:rr},Ke,y.createElement("div",{tabIndex:0,ref:Wn,style:He,"aria-hidden":"true","data-sentinel":"start"}),Zn,y.createElement("div",{tabIndex:0,ref:ur,style:He,"aria-hidden":"true","data-sentinel":"end"})))}var st=y.forwardRef(rt),Je=st,et=function(ke){var ot=ke.open,ht=ot===void 0?!1:ot,wt=ke.prefixCls,Ze=wt===void 0?"rc-drawer":wt,We=ke.placement,Mt=We===void 0?"right":We,Ut=ke.autoFocus,cn=Ut===void 0?!0:Ut,ln=ke.keyboard,_t=ln===void 0?!0:ln,fn=ke.width,qt=fn===void 0?378:fn,Ye=ke.mask,Ot=Ye===void 0?!0:Ye,Jt=ke.maskClosable,on=Jt===void 0?!0:Jt,Ge=ke.getContainer,Pt=ke.forceRender,jt=ke.afterOpenChange,vt=ke.destroyOnClose,Lt=ke.onMouseEnter,Rt=ke.onMouseOver,sn=ke.onMouseLeave,Sn=ke.onClick,un=ke.onKeyDown,Cn=ke.onKeyUp,Ct=ke.panelRef,It=y.useState(!1),Gt=(0,ve.Z)(It,2),tn=Gt[0],Wt=Gt[1],mn=y.useState(!1),an=(0,ve.Z)(mn,2),yn=an[0],jn=an[1];(0,pe.Z)(function(){jn(!0)},[]);var Nn=yn?ht:!1,$n=y.useRef(),Vn=y.useRef();(0,pe.Z)(function(){Nn&&(Vn.current=document.activeElement)},[Nn]);var Wn=function(zn){var Hn;if(Wt(zn),jt==null||jt(zn),!zn&&Vn.current&&!((Hn=$n.current)!==null&&Hn!==void 0&&Hn.contains(Vn.current))){var St;(St=Vn.current)===null||St===void 0||St.focus({preventScroll:!0})}},ur=y.useMemo(function(){return{panel:Ct}},[Ct]);if(!Pt&&!tn&&!Nn&&vt)return null;var rr={onMouseEnter:Lt,onMouseOver:Rt,onMouseLeave:sn,onClick:Sn,onKeyDown:un,onKeyUp:Cn},hn=(0,Re.Z)((0,Re.Z)({},ke),{},{open:Nn,prefixCls:Ze,placement:Mt,autoFocus:cn,keyboard:_t,width:qt,mask:Ot,maskClosable:on,inline:Ge===!1,afterOpenChange:Wn,ref:$n},rr);return y.createElement(be.Provider,{value:ur},y.createElement(me.Z,{open:Nn||Pt||tn,autoDestroy:!1,getContainer:Ge,autoLock:Ot&&(Nn||tn)},y.createElement(Je,hn)))},ge=et,Qe=ge,we=z(62487),se=z(75030),ft=z(86641),$e=z(55743),tt=z(48755),Nt=z(91190),Le=z(78776),ye=z(458),Zt=_e=>{var ke,ot;const{prefixCls:ht,title:wt,footer:Ze,extra:We,loading:Mt,onClose:Ut,headerStyle:cn,bodyStyle:ln,footerStyle:_t,children:fn,classNames:qt,styles:Ye}=_e,Ot=(0,tt.dj)("drawer"),Jt=y.useCallback(vt=>y.createElement("button",{type:"button",onClick:Ut,"aria-label":"Close",className:`${ht}-close`},vt),[Ut]),[on,Ge]=(0,Le.Z)((0,Le.w)(_e),(0,Le.w)(Ot),{closable:!0,closeIconRender:Jt}),Pt=y.useMemo(()=>{var vt,Lt;return!wt&&!on?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(vt=Ot.styles)===null||vt===void 0?void 0:vt.header),cn),Ye==null?void 0:Ye.header),className:ce()(`${ht}-header`,{[`${ht}-header-close-only`]:on&&!wt&&!We},(Lt=Ot.classNames)===null||Lt===void 0?void 0:Lt.header,qt==null?void 0:qt.header)},y.createElement("div",{className:`${ht}-header-title`},Ge,wt&&y.createElement("div",{className:`${ht}-title`},wt)),We&&y.createElement("div",{className:`${ht}-extra`},We))},[on,Ge,We,cn,ht,wt]),jt=y.useMemo(()=>{var vt,Lt;if(!Ze)return null;const Rt=`${ht}-footer`;return y.createElement("div",{className:ce()(Rt,(vt=Ot.classNames)===null||vt===void 0?void 0:vt.footer,qt==null?void 0:qt.footer),style:Object.assign(Object.assign(Object.assign({},(Lt=Ot.styles)===null||Lt===void 0?void 0:Lt.footer),_t),Ye==null?void 0:Ye.footer)},Ze)},[Ze,_t,ht]);return y.createElement(y.Fragment,null,Pt,y.createElement("div",{className:ce()(`${ht}-body`,qt==null?void 0:qt.body,(ke=Ot.classNames)===null||ke===void 0?void 0:ke.body),style:Object.assign(Object.assign(Object.assign({},(ot=Ot.styles)===null||ot===void 0?void 0:ot.body),ln),Ye==null?void 0:Ye.body)},Mt?y.createElement(ye.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${ht}-body-skeleton`}):fn),jt)},pt=z(36237),Ce=z(63356),at=z(16931),qe=z(51636);const zt=_e=>{const ke="100%";return{left:`translateX(-${ke})`,right:`translateX(${ke})`,top:`translateY(-${ke})`,bottom:`translateY(${ke})`}[_e]},ut=(_e,ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},_e),{"&-active":ke}),"&-leave":Object.assign(Object.assign({},ke),{"&-active":_e})}),ct=(_e,ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ke}`}}},ut({opacity:_e},{opacity:1})),lt=(_e,ke)=>[ct(.7,ke),ut({transform:zt(_e)},{transform:"none"})];var kt=_e=>{const{componentCls:ke,motionDurationSlow:ot}=_e;return{[ke]:{[`${ke}-mask-motion`]:ct(0,ot),[`${ke}-panel-motion`]:["left","right","top","bottom"].reduce((ht,wt)=>Object.assign(Object.assign({},ht),{[`&-${wt}`]:lt(wt,ot)}),{})}}};const ae=_e=>{const{borderRadiusSM:ke,componentCls:ot,zIndexPopup:ht,colorBgMask:wt,colorBgElevated:Ze,motionDurationSlow:We,motionDurationMid:Mt,paddingXS:Ut,padding:cn,paddingLG:ln,fontSizeLG:_t,lineHeightLG:fn,lineWidth:qt,lineType:Ye,colorSplit:Ot,marginXS:Jt,colorIcon:on,colorIconHover:Ge,colorBgTextHover:Pt,colorBgTextActive:jt,colorText:vt,fontWeightStrong:Lt,footerPaddingBlock:Rt,footerPaddingInline:sn,calc:Sn}=_e,un=`${ot}-content-wrapper`;return{[ot]:{position:"fixed",inset:0,zIndex:ht,pointerEvents:"none",color:vt,"&-pure":{position:"relative",background:Ze,display:"flex",flexDirection:"column",[`&${ot}-left`]:{boxShadow:_e.boxShadowDrawerLeft},[`&${ot}-right`]:{boxShadow:_e.boxShadowDrawerRight},[`&${ot}-top`]:{boxShadow:_e.boxShadowDrawerUp},[`&${ot}-bottom`]:{boxShadow:_e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ot}-mask`]:{position:"absolute",inset:0,zIndex:ht,background:wt,pointerEvents:"auto"},[un]:{position:"absolute",zIndex:ht,maxWidth:"100vw",transition:`all ${We}`,"&-hidden":{display:"none"}},[`&-left > ${un}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:_e.boxShadowDrawerLeft},[`&-right > ${un}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:_e.boxShadowDrawerRight},[`&-top > ${un}`]:{top:0,insetInline:0,boxShadow:_e.boxShadowDrawerUp},[`&-bottom > ${un}`]:{bottom:0,insetInline:0,boxShadow:_e.boxShadowDrawerDown},[`${ot}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ze,pointerEvents:"auto"},[`${ot}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,pt.unit)(cn)} ${(0,pt.unit)(ln)}`,fontSize:_t,lineHeight:fn,borderBottom:`${(0,pt.unit)(qt)} ${Ye} ${Ot}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ot}-extra`]:{flex:"none"},[`${ot}-close`]:Object.assign({display:"inline-flex",width:Sn(_t).add(Ut).equal(),height:Sn(_t).add(Ut).equal(),borderRadius:ke,justifyContent:"center",alignItems:"center",marginInlineEnd:Jt,color:on,fontWeight:Lt,fontSize:_t,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Mt}`,textRendering:"auto","&:hover":{color:Ge,backgroundColor:Pt,textDecoration:"none"},"&:active":{backgroundColor:jt}},(0,Ce.Qy)(_e)),[`${ot}-title`]:{flex:1,margin:0,fontWeight:_e.fontWeightStrong,fontSize:_t,lineHeight:fn},[`${ot}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ln,overflow:"auto",[`${ot}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ot}-footer`]:{flexShrink:0,padding:`${(0,pt.unit)(Rt)} ${(0,pt.unit)(sn)}`,borderTop:`${(0,pt.unit)(qt)} ${Ye} ${Ot}`},"&-rtl":{direction:"rtl"}}}},ne=_e=>({zIndexPopup:_e.zIndexPopupBase,footerPaddingBlock:_e.paddingXS,footerPaddingInline:_e.padding});var te=(0,at.I$)("Drawer",_e=>{const ke=(0,qe.mergeToken)(_e,{});return[ae(ke),kt(ke)]},ne),ie=function(_e,ke){var ot={};for(var ht in _e)Object.prototype.hasOwnProperty.call(_e,ht)&&ke.indexOf(ht)<0&&(ot[ht]=_e[ht]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,ht=Object.getOwnPropertySymbols(_e);wt<ht.length;wt++)ke.indexOf(ht[wt])<0&&Object.prototype.propertyIsEnumerable.call(_e,ht[wt])&&(ot[ht[wt]]=_e[ht[wt]]);return ot};const fe=null,re={distance:180},ue=_e=>{var ke;const{rootClassName:ot,width:ht,height:wt,size:Ze="default",mask:We=!0,push:Mt=re,open:Ut,afterOpenChange:cn,onClose:ln,prefixCls:_t,getContainer:fn,style:qt,className:Ye,visible:Ot,afterVisibleChange:Jt,maskStyle:on,drawerStyle:Ge,contentWrapperStyle:Pt}=_e,jt=ie(_e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:vt,getPrefixCls:Lt,direction:Rt,className:sn,style:Sn,classNames:un,styles:Cn}=(0,tt.dj)("drawer"),Ct=Lt("drawer",_t),[It,Gt,tn]=te(Ct),Wt=fn===void 0&&vt?()=>vt(document.body):fn,mn=ce()({"no-mask":!We,[`${Ct}-rtl`]:Rt==="rtl"},ot,Gt,tn),an=y.useMemo(()=>ht!=null?ht:Ze==="large"?736:378,[ht,Ze]),yn=y.useMemo(()=>wt!=null?wt:Ze==="large"?736:378,[wt,Ze]),jn={motionName:(0,ft.m)(Ct,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Nn=hn=>({motionName:(0,ft.m)(Ct,`panel-motion-${hn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),$n=(0,Nt.H)(),[Vn,Wn]=(0,se.Cn)("Drawer",jt.zIndex),{classNames:ur={},styles:rr={}}=jt;return It(y.createElement(we.Z,{form:!0,space:!0},y.createElement($e.Z.Provider,{value:Wn},y.createElement(Qe,Object.assign({prefixCls:Ct,onClose:ln,maskMotion:jn,motion:Nn},jt,{classNames:{mask:ce()(ur.mask,un.mask),content:ce()(ur.content,un.content),wrapper:ce()(ur.wrapper,un.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},rr.mask),on),Cn.mask),content:Object.assign(Object.assign(Object.assign({},rr.content),Ge),Cn.content),wrapper:Object.assign(Object.assign(Object.assign({},rr.wrapper),Pt),Cn.wrapper)},open:Ut!=null?Ut:Ot,mask:We,push:Mt,width:an,height:yn,style:Object.assign(Object.assign({},Sn),qt),className:ce()(sn,Ye),rootClassName:mn,getContainer:Wt,afterOpenChange:cn!=null?cn:Jt,panelRef:$n,zIndex:Vn}),y.createElement(Zt,Object.assign({prefixCls:Ct},jt,{onClose:ln}))))))},Me=_e=>{const{prefixCls:ke,style:ot,className:ht,placement:wt="right"}=_e,Ze=ie(_e,["prefixCls","style","className","placement"]),{getPrefixCls:We}=y.useContext(tt.E_),Mt=We("drawer",ke),[Ut,cn,ln]=te(Mt),_t=ce()(Mt,`${Mt}-pure`,`${Mt}-${wt}`,cn,ln,ht);return Ut(y.createElement("div",{className:_t,style:ot},y.createElement(Zt,Object.assign({prefixCls:Mt},Ze))))};ue._InternalPanelDoNotUseOrYouWillBeFired=Me;var gt=ue},19563:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return pt}});var y=z(59301),he=z(33853),ce=z(38819),Re=z(92310),ve=z.n(Re),me=z(96478),pe=z(6089),Ne=z(18929),be=z(2738),le=z(75030),Ae=Ce=>typeof Ce!="object"&&typeof Ce!="function"||Ce===null,it=z(52838),ze=z(45915),Oe=z(22703),Ee=z(32383),Pe=z(55743),Fe=z(48755),Ve=z(83397),dt=z(93041),Se=z(78857),Ie=z(57700),Xe=z(36237),He=z(63356),rt=z(46e3),st=z(93873),Je=z(34925),et=z(37645),ge=z(36305),Qe=z(16931),we=z(51636),ft=Ce=>{const{componentCls:at,menuCls:qe,colorError:zt,colorTextLightSolid:ut}=Ce,ct=`${qe}-item`;return{[`${at}, ${at}-menu-submenu`]:{[`${qe} ${ct}`]:{[`&${ct}-danger:not(${ct}-disabled)`]:{color:zt,"&:hover":{color:ut,backgroundColor:zt}}}}}};const $e=Ce=>{const{componentCls:at,menuCls:qe,zIndexPopup:zt,dropdownArrowDistance:ut,sizePopupArrow:ct,antCls:lt,iconCls:nn,motionDurationMid:kt,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:ie,fontSizeIcon:fe,controlPaddingHorizontal:re,colorBgElevated:ue}=Ce;return[{[at]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zt,display:"block","&::before":{position:"absolute",insetBlock:Ce.calc(ct).div(2).sub(ut).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${lt}-btn`]:{[`& > ${nn}-down, & > ${lt}-btn-icon > ${nn}-down`]:{fontSize:fe}},[`${at}-wrap`]:{position:"relative",[`${lt}-btn > ${nn}-down`]:{fontSize:fe},[`${nn}-down::before`]:{transition:`transform ${kt}`}},[`${at}-wrap-open`]:{[`${nn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${lt}-slide-down-enter${lt}-slide-down-enter-active${at}-placement-bottomLeft,
&${lt}-slide-down-appear${lt}-slide-down-appear-active${at}-placement-bottomLeft,
&${lt}-slide-down-enter${lt}-slide-down-enter-active${at}-placement-bottom,
&${lt}-slide-down-appear${lt}-slide-down-appear-active${at}-placement-bottom,
&${lt}-slide-down-enter${lt}-slide-down-enter-active${at}-placement-bottomRight,
&${lt}-slide-down-appear${lt}-slide-down-appear-active${at}-placement-bottomRight`]:{animationName:rt.fJ},[`&${lt}-slide-up-enter${lt}-slide-up-enter-active${at}-placement-topLeft,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${at}-placement-topLeft,
&${lt}-slide-up-enter${lt}-slide-up-enter-active${at}-placement-top,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${at}-placement-top,
&${lt}-slide-up-enter${lt}-slide-up-enter-active${at}-placement-topRight,
&${lt}-slide-up-appear${lt}-slide-up-appear-active${at}-placement-topRight`]:{animationName:rt.Qt},[`&${lt}-slide-down-leave${lt}-slide-down-leave-active${at}-placement-bottomLeft,
&${lt}-slide-down-leave${lt}-slide-down-leave-active${at}-placement-bottom,
&${lt}-slide-down-leave${lt}-slide-down-leave-active${at}-placement-bottomRight`]:{animationName:rt.Uw},[`&${lt}-slide-up-leave${lt}-slide-up-leave-active${at}-placement-topLeft,
&${lt}-slide-up-leave${lt}-slide-up-leave-active${at}-placement-top,
&${lt}-slide-up-leave${lt}-slide-up-leave-active${at}-placement-topRight`]:{animationName:rt.ly}}},(0,et.ZP)(Ce,ue,{arrowPlacement:{top:!0,bottom:!0}}),{[`${at} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:zt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${at}, ${at}-menu-submenu`]:Object.assign(Object.assign({},(0,He.Wf)(Ce)),{[qe]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:ue,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,He.Qy)(Ce)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,Xe.unit)(ae)} ${(0,Xe.unit)(re)}`,color:Ce.colorTextDescription,transition:`all ${kt}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:ne,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${kt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${qe}-item-extra`]:{paddingInlineStart:Ce.padding,marginInlineStart:"auto",fontSize:Ce.fontSizeSM,color:Ce.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Xe.unit)(ae)} ${(0,Xe.unit)(re)}`,color:Ce.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${kt}`,borderRadius:Ce.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ce.controlItemBgHover}},(0,He.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:ue,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Xe.unit)(Ce.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${at}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${at}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:fe,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,Xe.unit)(Ce.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:Ce.calc(re).add(Ce.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${at}-menu-submenu-title`]:{[`&, ${at}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:ue,cursor:"not-allowed"}},[`${qe}-submenu-selected ${at}-menu-submenu-title`]:{color:Ce.colorPrimary}})})},[(0,rt.oN)(Ce,"slide-up"),(0,rt.oN)(Ce,"slide-down"),(0,st.Fm)(Ce,"move-up"),(0,st.Fm)(Ce,"move-down"),(0,Je._y)(Ce,"zoom-big")]]},tt=Ce=>Object.assign(Object.assign({zIndexPopup:Ce.zIndexPopupBase+50,paddingBlock:(Ce.controlHeight-Ce.fontSize*Ce.lineHeight)/2},(0,et.wZ)({contentRadius:Ce.borderRadiusLG,limitVerticalRadius:!0})),(0,ge.w)(Ce));var Nt=(0,Qe.I$)("Dropdown",Ce=>{const{marginXXS:at,sizePopupArrow:qe,paddingXXS:zt,componentCls:ut}=Ce,ct=(0,we.mergeToken)(Ce,{menuCls:`${ut}-menu`,dropdownArrowDistance:Ce.calc(qe).div(2).add(at).equal(),dropdownEdgeChildPadding:zt});return[$e(ct),ft(ct)]},tt,{resetStyle:!1});const Le=null,ye=Ce=>{var at;const{menu:qe,arrow:zt,prefixCls:ut,children:ct,trigger:lt,disabled:nn,dropdownRender:kt,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:ie,open:fe,onOpenChange:re,visible:ue,onVisibleChange:Me,mouseEnterDelay:gt=.15,mouseLeaveDelay:_e=.1,autoAdjustOverflow:ke=!0,placement:ot="",overlay:ht,transitionName:wt}=Ce,{getPopupContainer:Ze,getPrefixCls:We,direction:Mt,dropdown:Ut}=y.useContext(Fe.E_),cn=(0,Ee.ln)("Dropdown"),ln=y.useMemo(()=>{const Wt=We();return wt!==void 0?wt:ot.includes("top")?`${Wt}-slide-down`:`${Wt}-slide-up`},[We,ot,wt]),_t=y.useMemo(()=>ot?ot.includes("Center")?ot.slice(0,ot.indexOf("Center")):ot:Mt==="rtl"?"bottomRight":"bottomLeft",[ot,Mt]),fn=We("dropdown",ut),qt=(0,Ve.Z)(fn),[Ye,Ot,Jt]=Nt(fn,qt),[,on]=(0,Ie.ZP)(),Ge=y.Children.only(Ae(ct)?y.createElement("span",null,ct):ct),Pt=(0,Oe.Tm)(Ge,{className:ve()(`${fn}-trigger`,{[`${fn}-rtl`]:Mt==="rtl"},Ge.props.className),disabled:(at=Ge.props.disabled)!==null&&at!==void 0?at:nn}),jt=nn?[]:lt,vt=!!(jt!=null&&jt.includes("contextMenu")),[Lt,Rt]=(0,Ne.Z)(!1,{value:fe!=null?fe:ue}),sn=(0,pe.Z)(Wt=>{re==null||re(Wt,{source:"trigger"}),Me==null||Me(Wt),Rt(Wt)}),Sn=ve()(ne,te,Ot,Jt,qt,Ut==null?void 0:Ut.className,{[`${fn}-rtl`]:Mt==="rtl"}),un=(0,it.Z)({arrowPointAtCenter:typeof zt=="object"&&zt.pointAtCenter,autoAdjustOverflow:ke,offset:on.marginXXS,arrowWidth:zt?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Cn=y.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(re==null||re(!1,{source:"menu"}),Rt(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),Ct=()=>{let Wt;return qe!=null&&qe.items?Wt=y.createElement(dt.default,Object.assign({},qe)):typeof ht=="function"?Wt=ht():Wt=ht,kt&&(Wt=kt(Wt)),Wt=y.Children.only(typeof Wt=="string"?y.createElement("span",null,Wt):Wt),y.createElement(Se.J,{prefixCls:`${fn}-menu`,rootClassName:ve()(Jt,qt),expandIcon:y.createElement("span",{className:`${fn}-menu-submenu-arrow`},Mt==="rtl"?y.createElement(he.Z,{className:`${fn}-menu-submenu-arrow-icon`}):y.createElement(ce.Z,{className:`${fn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Cn,validator:mn=>{let{mode:an}=mn}},Wt)},[It,Gt]=(0,le.Cn)("Dropdown",ie==null?void 0:ie.zIndex);let tn=y.createElement(me.Z,Object.assign({alignPoint:vt},(0,be.Z)(Ce,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:_e,visible:Lt,builtinPlacements:un,arrow:!!zt,overlayClassName:Sn,prefixCls:fn,getPopupContainer:ae||Ze,transitionName:ln,trigger:jt,overlay:Ct,placement:_t,onVisibleChange:sn,overlayStyle:Object.assign(Object.assign(Object.assign({},Ut==null?void 0:Ut.style),ie),{zIndex:It})}),Pt);return It&&(tn=y.createElement(Pe.Z.Provider,{value:Gt},tn)),Ye(tn)},Et=(0,ze.Z)(ye,"align",void 0,"dropdown",Ce=>Ce),Zt=Ce=>y.createElement(Et,Object.assign({},Ce),y.createElement("span",null));ye._InternalPanelDoNotUseOrYouWillBeFired=Zt;var pt=ye},75727:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ze}});var y=z(19563),he=z(59301),ce=z(18785),Re=z(92310),ve=z.n(Re),me=z(7939),pe=z(48755),Ne=z(44104),be=z(70045),le=function(Oe,Ee){var Pe={};for(var Fe in Oe)Object.prototype.hasOwnProperty.call(Oe,Fe)&&Ee.indexOf(Fe)<0&&(Pe[Fe]=Oe[Fe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Fe=Object.getOwnPropertySymbols(Oe);Ve<Fe.length;Ve++)Ee.indexOf(Fe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Fe[Ve])&&(Pe[Fe[Ve]]=Oe[Fe[Ve]]);return Pe};const je=Oe=>{const{getPopupContainer:Ee,getPrefixCls:Pe,direction:Fe}=he.useContext(pe.E_),{prefixCls:Ve,type:dt="default",danger:Se,disabled:Ie,loading:Xe,onClick:He,htmlType:rt,children:st,className:Je,menu:et,arrow:ge,autoFocus:Qe,overlay:we,trigger:se,align:ft,open:$e,onOpenChange:tt,placement:Nt,getPopupContainer:Le,href:ye,icon:Et=he.createElement(ce.Z,null),title:Zt,buttonsRender:pt=gt=>gt,mouseEnterDelay:Ce,mouseLeaveDelay:at,overlayClassName:qe,overlayStyle:zt,destroyPopupOnHide:ut,dropdownRender:ct}=Oe,lt=le(Oe,["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"]),nn=Pe("dropdown",Ve),kt=`${nn}-button`,ae={menu:et,arrow:ge,autoFocus:Qe,align:ft,disabled:Ie,trigger:Ie?[]:se,onOpenChange:tt,getPopupContainer:Le||Ee,mouseEnterDelay:Ce,mouseLeaveDelay:at,overlayClassName:qe,overlayStyle:zt,destroyPopupOnHide:ut,dropdownRender:ct},{compactSize:ne,compactItemClassnames:te}=(0,be.ri)(nn,Fe),ie=ve()(kt,te,Je);"overlay"in Oe&&(ae.overlay=we),"open"in Oe&&(ae.open=$e),"placement"in Oe?ae.placement=Nt:ae.placement=Fe==="rtl"?"bottomLeft":"bottomRight";const fe=he.createElement(me.ZP,{type:dt,danger:Se,disabled:Ie,loading:Xe,onClick:He,htmlType:rt,href:ye,title:Zt},st),re=he.createElement(me.ZP,{type:dt,danger:Se,icon:Et}),[ue,Me]=pt([fe,re]);return he.createElement(Ne.Z.Compact,Object.assign({className:ie,size:ne,block:!0},lt),ue,he.createElement(y.Z,Object.assign({},ae),Me))};je.__ANT_BUTTON=!0;var Ae=je;const it=y.Z;it.Button=Ae;var ze=it},584:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return dt}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(9017),ve=z(17835),me=z(57700),Ne=()=>{const[,Se]=(0,me.ZP)(),[Ie]=(0,Re.Z)("Empty"),He=new ve.FastColor(Se.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:He,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Ie==null?void 0:Ie.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},le=()=>{const[,Se]=(0,me.ZP)(),[Ie]=(0,Re.Z)("Empty"),{colorFill:Xe,colorFillTertiary:He,colorFillQuaternary:rt,colorBgContainer:st}=Se,{borderColor:Je,shadowColor:et,contentColor:ge}=(0,y.useMemo)(()=>({borderColor:new ve.FastColor(Xe).onBackground(st).toHexString(),shadowColor:new ve.FastColor(He).onBackground(st).toHexString(),contentColor:new ve.FastColor(rt).onBackground(st).toHexString()}),[Xe,He,rt,st]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Ie==null?void 0:Ie.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:et,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:Je},y.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),y.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:ge}))))},je=z(16931),Ae=z(51636);const it=Se=>{const{componentCls:Ie,margin:Xe,marginXS:He,marginXL:rt,fontSize:st,lineHeight:Je}=Se;return{[Ie]:{marginInline:He,fontSize:st,lineHeight:Je,textAlign:"center",[`${Ie}-image`]:{height:Se.emptyImgHeight,marginBottom:He,opacity:Se.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ie}-description`]:{color:Se.colorTextDescription},[`${Ie}-footer`]:{marginTop:Xe},"&-normal":{marginBlock:rt,color:Se.colorTextDescription,[`${Ie}-description`]:{color:Se.colorTextDescription},[`${Ie}-image`]:{height:Se.emptyImgHeightMD}},"&-small":{marginBlock:He,color:Se.colorTextDescription,[`${Ie}-image`]:{height:Se.emptyImgHeightSM}}}}};var ze=(0,je.I$)("Empty",Se=>{const{componentCls:Ie,controlHeightLG:Xe,calc:He}=Se,rt=(0,Ae.mergeToken)(Se,{emptyImgCls:`${Ie}-img`,emptyImgHeight:He(Xe).mul(2.5).equal(),emptyImgHeightMD:Xe,emptyImgHeightSM:He(Xe).mul(.875).equal()});return[it(rt)]}),Oe=z(48755),Ee=function(Se,Ie){var Xe={};for(var He in Se)Object.prototype.hasOwnProperty.call(Se,He)&&Ie.indexOf(He)<0&&(Xe[He]=Se[He]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,He=Object.getOwnPropertySymbols(Se);rt<He.length;rt++)Ie.indexOf(He[rt])<0&&Object.prototype.propertyIsEnumerable.call(Se,He[rt])&&(Xe[He[rt]]=Se[He[rt]]);return Xe};const Pe=y.createElement(Ne,null),Fe=y.createElement(le,null),Ve=Se=>{const{className:Ie,rootClassName:Xe,prefixCls:He,image:rt=Pe,description:st,children:Je,imageStyle:et,style:ge,classNames:Qe,styles:we}=Se,se=Ee(Se,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ft,direction:$e,className:tt,style:Nt,classNames:Le,styles:ye}=(0,Oe.dj)("empty"),Et=ft("empty",He),[Zt,pt,Ce]=ze(Et),[at]=(0,Re.Z)("Empty"),qe=typeof st!="undefined"?st:at==null?void 0:at.description,zt=typeof qe=="string"?qe:"empty";let ut=null;return typeof rt=="string"?ut=y.createElement("img",{alt:zt,src:rt}):ut=rt,Zt(y.createElement("div",Object.assign({className:ce()(pt,Ce,Et,tt,{[`${Et}-normal`]:rt===Fe,[`${Et}-rtl`]:$e==="rtl"},Ie,Xe,Le.root,Qe==null?void 0:Qe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),Nt),we==null?void 0:we.root),ge)},se),y.createElement("div",{className:ce()(`${Et}-image`,Le.image,Qe==null?void 0:Qe.image),style:Object.assign(Object.assign(Object.assign({},et),ye.image),we==null?void 0:we.image)},ut),qe&&y.createElement("div",{className:ce()(`${Et}-description`,Le.description,Qe==null?void 0:Qe.description),style:Object.assign(Object.assign({},ye.description),we==null?void 0:we.description)},qe),Je&&y.createElement("div",{className:ce()(`${Et}-footer`,Le.footer,Qe==null?void 0:Qe.footer),style:Object.assign(Object.assign({},ye.footer),we==null?void 0:we.footer)},Je)))};Ve.PRESENTED_IMAGE_DEFAULT=Pe,Ve.PRESENTED_IMAGE_SIMPLE=Fe;var dt=Ve},28284:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return $t}});var y=z(56553),he=z(77654),ce=z(59301),Re=z(92310),ve=z.n(Re),me=z(77900),pe=z(86641),Ne=z(83397);function be(nt){const[Ft,Ke]=ce.useState(nt);return ce.useEffect(()=>{const Tt=setTimeout(()=>{Ke(nt)},nt.length?0:10);return()=>{clearTimeout(Tt)}},[nt]),Ft}var le=z(36237),je=z(63356),Ae=z(34925),it=z(34961),ze=z(51636),Oe=z(16931),Pe=nt=>{const{componentCls:Ft}=nt,Ke=`${Ft}-show-help`,Tt=`${Ft}-show-help-item`;return{[Ke]:{transition:`opacity ${nt.motionDurationFast} ${nt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Tt]:{overflow:"hidden",transition:`height ${nt.motionDurationFast} ${nt.motionEaseInOut},
opacity ${nt.motionDurationFast} ${nt.motionEaseInOut},
transform ${nt.motionDurationFast} ${nt.motionEaseInOut} !important`,[`&${Tt}-appear, &${Tt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Tt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Fe=nt=>({legend:{display:"block",width:"100%",marginBottom:nt.marginLG,padding:0,color:nt.colorTextDescription,fontSize:nt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,le.unit)(nt.lineWidth)} ${nt.lineType} ${nt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,le.unit)(nt.controlOutlineWidth)} ${nt.controlOutline}`},output:{display:"block",paddingTop:15,color:nt.colorText,fontSize:nt.fontSize,lineHeight:nt.lineHeight}}),Ve=(nt,Ft)=>{const{formItemCls:Ke}=nt;return{[Ke]:{[`${Ke}-label > label`]:{height:Ft},[`${Ke}-control-input`]:{minHeight:Ft}}}},dt=nt=>{const{componentCls:Ft}=nt;return{[nt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,je.Wf)(nt)),Fe(nt)),{[`${Ft}-text`]:{display:"inline-block",paddingInlineEnd:nt.paddingSM},"&-small":Object.assign({},Ve(nt,nt.controlHeightSM)),"&-large":Object.assign({},Ve(nt,nt.controlHeightLG))})}},Se=nt=>{const{formItemCls:Ft,iconCls:Ke,rootPrefixCls:Tt,antCls:Yt,labelRequiredMarkColor:Rn,labelColor:Zn,labelFontSize:yt,labelHeight:xt,labelColonMarginInlineStart:Bt,labelColonMarginInlineEnd:At,itemMarginBottom:pn}=nt;return{[Ft]:Object.assign(Object.assign({},(0,je.Wf)(nt)),{marginBottom:pn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Yt}-row`]:{display:"none"},"&-has-warning":{[`${Ft}-split`]:{color:nt.colorError}},"&-has-error":{[`${Ft}-split`]:{color:nt.colorWarning}},[`${Ft}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:nt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:xt,color:Zn,fontSize:yt,[`> ${Ke}`]:{fontSize:nt.fontSize,verticalAlign:"top"},[`&${Ft}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:nt.marginXXS,color:Rn,fontSize:nt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ft}-required-mark-hidden, &${Ft}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ft}-optional`]:{display:"inline-block",marginInlineStart:nt.marginXXS,color:nt.colorTextDescription,[`&${Ft}-required-mark-hidden`]:{display:"none"}},[`${Ft}-tooltip`]:{color:nt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:nt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bt,marginInlineEnd:At},[`&${Ft}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ft}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Tt}-col-'"]):not([class*="' ${Tt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:nt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ft]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:nt.colorTextDescription,fontSize:nt.fontSize,lineHeight:nt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:nt.controlHeightSM,transition:`color ${nt.motionDurationMid} ${nt.motionEaseOut}`},"&-explain":{"&-error":{color:nt.colorError},"&-warning":{color:nt.colorWarning}}},[`&-with-help ${Ft}-explain`]:{height:"auto",opacity:1},[`${Ft}-feedback-icon`]:{fontSize:nt.fontSize,textAlign:"center",visibility:"visible",animationName:Ae.kr,animationDuration:nt.motionDurationMid,animationTimingFunction:nt.motionEaseOutBack,pointerEvents:"none","&-success":{color:nt.colorSuccess},"&-error":{color:nt.colorError},"&-warning":{color:nt.colorWarning},"&-validating":{color:nt.colorPrimary}}})}},Ie=(nt,Ft)=>{const{formItemCls:Ke}=nt;return{[`${Ft}-horizontal`]:{[`${Ke}-label`]:{flexGrow:0},[`${Ke}-control`]:{flex:"1 1 0",minWidth:0},[`${Ke}-label[class$='-24'], ${Ke}-label[class*='-24 ']`]:{[`& + ${Ke}-control`]:{minWidth:"unset"}}}}},Xe=nt=>{const{componentCls:Ft,formItemCls:Ke,inlineItemMarginBottom:Tt}=nt;return{[`${Ft}-inline`]:{display:"flex",flexWrap:"wrap",[Ke]:{flex:"none",marginInlineEnd:nt.margin,marginBottom:Tt,"&-row":{flexWrap:"nowrap"},[`> ${Ke}-label,
> ${Ke}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ke}-label`]:{flex:"none"},[`${Ft}-text`]:{display:"inline-block"},[`${Ke}-has-feedback`]:{display:"inline-block"}}}}},He=nt=>({padding:nt.verticalLabelPadding,margin:nt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),rt=nt=>{const{componentCls:Ft,formItemCls:Ke,rootPrefixCls:Tt}=nt;return{[`${Ke} ${Ke}-label`]:He(nt),[`${Ft}:not(${Ft}-inline)`]:{[Ke]:{flexWrap:"wrap",[`${Ke}-label, ${Ke}-control`]:{[`&:not([class*=" ${Tt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},st=nt=>{const{componentCls:Ft,formItemCls:Ke,antCls:Tt}=nt;return{[`${Ft}-vertical`]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Ke}-row`]:{flexDirection:"column"},[`${Ke}-label > label`]:{height:"auto"},[`${Ke}-control`]:{width:"100%"},[`${Ke}-label,
${Tt}-col-24${Ke}-label,
${Tt}-col-xl-24${Ke}-label`]:He(nt)}},[`@media (max-width: ${(0,le.unit)(nt.screenXSMax)})`]:[rt(nt),{[Ft]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Tt}-col-xs-24${Ke}-label`]:He(nt)}}}],[`@media (max-width: ${(0,le.unit)(nt.screenSMMax)})`]:{[Ft]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Tt}-col-sm-24${Ke}-label`]:He(nt)}}},[`@media (max-width: ${(0,le.unit)(nt.screenMDMax)})`]:{[Ft]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Tt}-col-md-24${Ke}-label`]:He(nt)}}},[`@media (max-width: ${(0,le.unit)(nt.screenLGMax)})`]:{[Ft]:{[`${Ke}:not(${Ke}-horizontal)`]:{[`${Tt}-col-lg-24${Ke}-label`]:He(nt)}}}}},Je=nt=>{const{formItemCls:Ft,antCls:Ke}=nt;return{[`${Ft}-vertical`]:{[`${Ft}-row`]:{flexDirection:"column"},[`${Ft}-label > label`]:{height:"auto"},[`${Ft}-control`]:{width:"100%"}},[`${Ft}-vertical ${Ft}-label,
${Ke}-col-24${Ft}-label,
${Ke}-col-xl-24${Ft}-label`]:He(nt),[`@media (max-width: ${(0,le.unit)(nt.screenXSMax)})`]:[rt(nt),{[Ft]:{[`${Ke}-col-xs-24${Ft}-label`]:He(nt)}}],[`@media (max-width: ${(0,le.unit)(nt.screenSMMax)})`]:{[Ft]:{[`${Ke}-col-sm-24${Ft}-label`]:He(nt)}},[`@media (max-width: ${(0,le.unit)(nt.screenMDMax)})`]:{[Ft]:{[`${Ke}-col-md-24${Ft}-label`]:He(nt)}},[`@media (max-width: ${(0,le.unit)(nt.screenLGMax)})`]:{[Ft]:{[`${Ke}-col-lg-24${Ft}-label`]:He(nt)}}}},et=nt=>({labelRequiredMarkColor:nt.colorError,labelColor:nt.colorTextHeading,labelFontSize:nt.fontSize,labelHeight:nt.controlHeight,labelColonMarginInlineStart:nt.marginXXS/2,labelColonMarginInlineEnd:nt.marginXS,itemMarginBottom:nt.marginLG,verticalLabelPadding:`0 0 ${nt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ge=(nt,Ft)=>(0,ze.mergeToken)(nt,{formItemCls:`${nt.componentCls}-item`,rootPrefixCls:Ft});var Qe=(0,Oe.I$)("Form",(nt,Ft)=>{let{rootPrefixCls:Ke}=Ft;const Tt=ge(nt,Ke);return[dt(Tt),Se(Tt),Pe(Tt),Ie(Tt,Tt.componentCls),Ie(Tt,Tt.formItemCls),Xe(Tt),st(Tt),Je(Tt),(0,it.Z)(Tt),Ae.kr]},et,{order:-1e3});const we=[];function se(nt,Ft,Ke){let Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof nt=="string"?nt:`${Ft}-${Tt}`,error:nt,errorStatus:Ke}}var $e=nt=>{let{help:Ft,helpStatus:Ke,errors:Tt=we,warnings:Yt=we,className:Rn,fieldId:Zn,onVisibleChanged:yt}=nt;const{prefixCls:xt}=ce.useContext(y.Rk),Bt=`${xt}-item-explain`,At=(0,Ne.Z)(xt),[pn,Pn,In]=Qe(xt,At),Mn=ce.useMemo(()=>(0,pe.Z)(xt),[xt]),qn=be(Tt),nr=be(Yt),ir=ce.useMemo(()=>Ft!=null?[se(Ft,"help",Ke)]:[].concat((0,he.Z)(qn.map((ar,fr)=>se(ar,"error","error",fr))),(0,he.Z)(nr.map((ar,fr)=>se(ar,"warning","warning",fr)))),[Ft,Ke,qn,nr]),lr=ce.useMemo(()=>{const ar={};return ir.forEach(fr=>{let{key:Sr}=fr;ar[Sr]=(ar[Sr]||0)+1}),ir.map((fr,Sr)=>Object.assign(Object.assign({},fr),{key:ar[fr.key]>1?`${fr.key}-fallback-${Sr}`:fr.key}))},[ir]),Qn={};return Zn&&(Qn.id=`${Zn}_help`),pn(ce.createElement(me.default,{motionDeadline:Mn.motionDeadline,motionName:`${xt}-show-help`,visible:!!lr.length,onVisibleChanged:yt},ar=>{const{className:fr,style:Sr}=ar;return ce.createElement("div",Object.assign({},Qn,{className:ve()(Bt,fr,In,At,Rn,Pn),style:Sr}),ce.createElement(me.CSSMotionList,Object.assign({keys:lr},(0,pe.Z)(xt),{motionName:`${xt}-show-help-item`,component:!1}),br=>{const{key:Zr,error:jr,errorStatus:hr,className:Nr,style:eo}=br;return ce.createElement("div",{key:Zr,className:ve()(Nr,{[`${Bt}-${hr}`]:hr}),style:eo},jr)}))}))},tt=z(69180),Nt=z(48755),Le=z(2171),ye=z(31756),Et=z(23069),Zt=z(76846),pt=z(16722);const Ce=["parentNode"],at="form_item";function qe(nt){return nt===void 0||nt===!1?[]:Array.isArray(nt)?nt:[nt]}function zt(nt,Ft){if(!nt.length)return;const Ke=nt.join("_");return Ft?`${Ft}_${Ke}`:Ce.includes(Ke)?`${at}_${Ke}`:Ke}function ut(nt,Ft,Ke,Tt,Yt,Rn){let Zn=Tt;return Rn!==void 0?Zn=Rn:Ke.validating?Zn="validating":nt.length?Zn="error":Ft.length?Zn="warning":(Ke.touched||Yt&&Ke.validated)&&(Zn="success"),Zn}var ct=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke};function lt(nt){return qe(nt).join("_")}function nn(nt,Ft){const Ke=Ft.getFieldInstance(nt),Tt=(0,Zt.bn)(Ke);if(Tt)return Tt;const Yt=zt(qe(nt),Ft.__INTERNAL__.name);if(Yt)return document.getElementById(Yt)}function kt(nt){const[Ft]=(0,tt.useForm)(),Ke=ce.useRef({}),Tt=ce.useMemo(()=>nt!=null?nt:Object.assign(Object.assign({},Ft),{__INTERNAL__:{itemRef:Yt=>Rn=>{const Zn=lt(Yt);Rn?Ke.current[Zn]=Rn:delete Ke.current[Zn]}},scrollToField:function(Yt){let Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Zn}=Rn,yt=ct(Rn,["focus"]),xt=nn(Yt,Tt);xt&&((0,pt.Z)(xt,Object.assign({scrollMode:"if-needed",block:"nearest"},yt)),Zn&&Tt.focusField(Yt))},focusField:Yt=>{var Rn,Zn;const yt=Tt.getFieldInstance(Yt);typeof(yt==null?void 0:yt.focus)=="function"?yt.focus():(Zn=(Rn=nn(Yt,Tt))===null||Rn===void 0?void 0:Rn.focus)===null||Zn===void 0||Zn.call(Rn)},getFieldInstance:Yt=>{const Rn=lt(Yt);return Ke.current[Rn]}}),[nt,Ft]);return[Tt]}var ae=z(98350),ne=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke};const te=(nt,Ft)=>{const Ke=ce.useContext(Le.Z),{getPrefixCls:Tt,direction:Yt,requiredMark:Rn,colon:Zn,scrollToFirstError:yt,className:xt,style:Bt}=(0,Nt.dj)("form"),{prefixCls:At,className:pn,rootClassName:Pn,size:In,disabled:Mn=Ke,form:qn,colon:nr,labelAlign:ir,labelWrap:lr,labelCol:Qn,wrapperCol:ar,hideRequiredMark:fr,layout:Sr="horizontal",scrollToFirstError:br,requiredMark:Zr,onFinishFailed:jr,name:hr,style:Nr,feedbackIcons:eo,variant:Tr}=nt,Pr=ne(nt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),or=(0,ye.Z)(In),Ur=ce.useContext(ae.Z),Rr=ce.useMemo(()=>Zr!==void 0?Zr:fr?!1:Rn!==void 0?Rn:!0,[fr,Zr,Rn]),Br=nr!=null?nr:Zn,Cr=Tt("form",At),so=(0,Ne.Z)(Cr),[Ho,ti,Eo]=Qe(Cr,so),No=ve()(Cr,`${Cr}-${Sr}`,{[`${Cr}-hide-required-mark`]:Rr===!1,[`${Cr}-rtl`]:Yt==="rtl",[`${Cr}-${or}`]:or},Eo,so,ti,xt,pn,Pn),[To]=kt(qn),{__INTERNAL__:Xo}=To;Xo.name=hr;const ko=ce.useMemo(()=>({name:hr,labelAlign:ir,labelCol:Qn,labelWrap:lr,wrapperCol:ar,vertical:Sr==="vertical",colon:Br,requiredMark:Rr,itemRef:Xo.itemRef,form:To,feedbackIcons:eo}),[hr,ir,Qn,ar,Sr,Br,Rr,To,eo]),vo=ce.useRef(null);ce.useImperativeHandle(Ft,()=>{var Gn;return Object.assign(Object.assign({},To),{nativeElement:(Gn=vo.current)===null||Gn===void 0?void 0:Gn.nativeElement})});const dr=(Gn,Yn)=>{if(Gn){let Ln={block:"nearest"};typeof Gn=="object"&&(Ln=Object.assign(Object.assign({},Ln),Gn)),To.scrollToField(Yn,Ln)}},Tn=Gn=>{if(jr==null||jr(Gn),Gn.errorFields.length){const Yn=Gn.errorFields[0].name;if(br!==void 0){dr(br,Yn);return}yt!==void 0&&dr(yt,Yn)}};return Ho(ce.createElement(y.pg.Provider,{value:Tr},ce.createElement(Le.n,{disabled:Mn},ce.createElement(Et.Z.Provider,{value:or},ce.createElement(y.RV,{validateMessages:Ur},ce.createElement(y.q3.Provider,{value:ko},ce.createElement(tt.default,Object.assign({id:hr},Pr,{name:hr,onFinishFailed:Tn,form:To,ref:vo,style:Object.assign(Object.assign({},Bt),Nr),className:No}))))))))};var fe=ce.forwardRef(te),re=z(41799),ue=z(8654),Me=z(22703),gt=z(32383),_e=z(11592);function ke(nt){if(typeof nt=="function")return nt;const Ft=(0,_e.Z)(nt);return Ft.length<=1?Ft[0]:Ft}const ot=()=>{const{status:nt,errors:Ft=[],warnings:Ke=[]}=ce.useContext(y.aM);return{status:nt,errors:Ft,warnings:Ke}};ot.Context=y.aM;var ht=ot,wt=z(16089);function Ze(nt){const[Ft,Ke]=ce.useState(nt),Tt=ce.useRef(null),Yt=ce.useRef([]),Rn=ce.useRef(!1);ce.useEffect(()=>(Rn.current=!1,()=>{Rn.current=!0,wt.Z.cancel(Tt.current),Tt.current=null}),[]);function Zn(yt){Rn.current||(Tt.current===null&&(Yt.current=[],Tt.current=(0,wt.Z)(()=>{Tt.current=null,Ke(xt=>{let Bt=xt;return Yt.current.forEach(At=>{Bt=At(Bt)}),Bt})})),Yt.current.push(yt))}return[Ft,Zn]}function We(){const{itemRef:nt}=ce.useContext(y.q3),Ft=ce.useRef({});function Ke(Tt,Yt){const Rn=Yt&&typeof Yt=="object"&&(0,ue.C4)(Yt),Zn=Tt.join("_");return(Ft.current.name!==Zn||Ft.current.originRef!==Rn)&&(Ft.current.name=Zn,Ft.current.originRef=Rn,Ft.current.ref=(0,ue.sQ)(nt(Tt),Rn)),Ft.current.ref}return Ke}var Mt=z(29194),Ut=z(34280),cn=z(2738),ln=z(65970),_t=z(70425),fn=z(5472);const qt=nt=>{const{formItemCls:Ft}=nt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ft}-control`]:{display:"flex"}}}};var Ye=(0,Oe.bk)(["Form","item-item"],(nt,Ft)=>{let{rootPrefixCls:Ke}=Ft;const Tt=ge(nt,Ke);return[qt(Tt)]}),Ot=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke};const Jt=24;var Ge=nt=>{const{prefixCls:Ft,status:Ke,labelCol:Tt,wrapperCol:Yt,children:Rn,errors:Zn,warnings:yt,_internalItemRender:xt,extra:Bt,help:At,fieldId:pn,marginBottom:Pn,onErrorVisibleChanged:In,label:Mn}=nt,qn=`${Ft}-item`,nr=ce.useContext(y.q3),ir=ce.useMemo(()=>{let Pr=Object.assign({},Yt||nr.wrapperCol||{});return Mn===null&&!Tt&&!Yt&&nr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Ur=>{const Rr=Ur?[Ur]:[],Br=(0,_t.U2)(nr.labelCol,Rr),Cr=typeof Br=="object"?Br:{},so=(0,_t.U2)(Pr,Rr),Ho=typeof so=="object"?so:{};"span"in Cr&&!("offset"in Ho)&&Cr.span<Jt&&(Pr=(0,_t.t8)(Pr,[].concat(Rr,["offset"]),Cr.span))}),Pr},[Yt,nr]),lr=ve()(`${qn}-control`,ir.className),Qn=ce.useMemo(()=>{const{labelCol:Pr,wrapperCol:or}=nr;return Ot(nr,["labelCol","wrapperCol"])},[nr]),ar=ce.useRef(null),[fr,Sr]=ce.useState(0);(0,Ut.Z)(()=>{Bt&&ar.current?Sr(ar.current.clientHeight):Sr(0)},[Bt]);const br=ce.createElement("div",{className:`${qn}-control-input`},ce.createElement("div",{className:`${qn}-control-input-content`},Rn)),Zr=ce.useMemo(()=>({prefixCls:Ft,status:Ke}),[Ft,Ke]),jr=Pn!==null||Zn.length||yt.length?ce.createElement(y.Rk.Provider,{value:Zr},ce.createElement($e,{fieldId:pn,errors:Zn,warnings:yt,help:At,helpStatus:Ke,className:`${qn}-explain-connected`,onVisibleChanged:In})):null,hr={};pn&&(hr.id=`${pn}_extra`);const Nr=Bt?ce.createElement("div",Object.assign({},hr,{className:`${qn}-extra`,ref:ar}),Bt):null,eo=jr||Nr?ce.createElement("div",{className:`${qn}-additional`,style:Pn?{minHeight:Pn+fr}:{}},jr,Nr):null,Tr=xt&&xt.mark==="pro_table_render"&&xt.render?xt.render(nt,{input:br,errorList:jr,extra:Nr}):ce.createElement(ce.Fragment,null,br,eo);return ce.createElement(y.q3.Provider,{value:Qn},ce.createElement(fn.Z,Object.assign({},ir,{className:lr}),Tr),ce.createElement(Ye,{prefixCls:Ft}))},Pt=z(61485),jt=z(9017),vt=z(85981),Lt=z(25399),Rt=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke};function sn(nt){return nt?typeof nt=="object"&&!ce.isValidElement(nt)?nt:{title:nt}:null}var un=nt=>{let{prefixCls:Ft,label:Ke,htmlFor:Tt,labelCol:Yt,labelAlign:Rn,colon:Zn,required:yt,requiredMark:xt,tooltip:Bt,vertical:At}=nt;var pn;const[Pn]=(0,jt.Z)("Form"),{labelAlign:In,labelCol:Mn,labelWrap:qn,colon:nr}=ce.useContext(y.q3);if(!Ke)return null;const ir=Yt||Mn||{},lr=Rn||In,Qn=`${Ft}-item-label`,ar=ve()(Qn,lr==="left"&&`${Qn}-left`,ir.className,{[`${Qn}-wrap`]:!!qn});let fr=Ke;const Sr=Zn===!0||nr!==!1&&Zn!==!1;Sr&&!At&&typeof Ke=="string"&&Ke.trim()&&(fr=Ke.replace(/[:|]\s*$/,""));const Zr=sn(Bt);if(Zr){const{icon:Pr=ce.createElement(Pt.Z,null)}=Zr,or=Rt(Zr,["icon"]),Ur=ce.createElement(Lt.Z,Object.assign({},or),ce.cloneElement(Pr,{className:`${Ft}-item-tooltip`,title:"",onClick:Rr=>{Rr.preventDefault()},tabIndex:null}));fr=ce.createElement(ce.Fragment,null,fr,Ur)}const jr=xt==="optional",hr=typeof xt=="function",Nr=xt===!1;hr?fr=xt(fr,{required:!!yt}):jr&&!yt&&(fr=ce.createElement(ce.Fragment,null,fr,ce.createElement("span",{className:`${Ft}-item-optional`,title:""},(Pn==null?void 0:Pn.optional)||((pn=vt.Z.Form)===null||pn===void 0?void 0:pn.optional))));let eo;Nr?eo="hidden":(jr||hr)&&(eo="optional");const Tr=ve()({[`${Ft}-item-required`]:yt,[`${Ft}-item-required-mark-${eo}`]:eo,[`${Ft}-item-no-colon`]:!Sr});return ce.createElement(fn.Z,Object.assign({},ir,{className:ar}),ce.createElement("label",{htmlFor:Tt,className:Tr,title:typeof Ke=="string"?Ke:""},fr))},Cn=z(29679),Ct=z(19248),It=z(96512),Gt=z(58617);const tn={success:Cn.Z,warning:It.Z,error:Ct.Z,validating:Gt.Z};function Wt(nt){let{children:Ft,errors:Ke,warnings:Tt,hasFeedback:Yt,validateStatus:Rn,prefixCls:Zn,meta:yt,noStyle:xt}=nt;const Bt=`${Zn}-item`,{feedbackIcons:At}=ce.useContext(y.q3),pn=ut(Ke,Tt,yt,null,!!Yt,Rn),{isFormItemInput:Pn,status:In,hasFeedback:Mn,feedbackIcon:qn}=ce.useContext(y.aM),nr=ce.useMemo(()=>{var ir;let lr;if(Yt){const ar=Yt!==!0&&Yt.icons||At,fr=pn&&((ir=ar==null?void 0:ar({status:pn,errors:Ke,warnings:Tt}))===null||ir===void 0?void 0:ir[pn]),Sr=pn&&tn[pn];lr=fr!==!1&&Sr?ce.createElement("span",{className:ve()(`${Bt}-feedback-icon`,`${Bt}-feedback-icon-${pn}`)},fr||ce.createElement(Sr,null)):null}const Qn={status:pn||"",errors:Ke,warnings:Tt,hasFeedback:!!Yt,feedbackIcon:lr,isFormItemInput:!0};return xt&&(Qn.status=(pn!=null?pn:In)||"",Qn.isFormItemInput=Pn,Qn.hasFeedback=!!(Yt!=null?Yt:Mn),Qn.feedbackIcon=Yt!==void 0?Qn.feedbackIcon:qn),Qn},[pn,Yt,xt,Pn,In]);return ce.createElement(y.aM.Provider,{value:nr},Ft)}var mn=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke};function an(nt){const{prefixCls:Ft,className:Ke,rootClassName:Tt,style:Yt,help:Rn,errors:Zn,warnings:yt,validateStatus:xt,meta:Bt,hasFeedback:At,hidden:pn,children:Pn,fieldId:In,required:Mn,isRequired:qn,onSubItemMetaChange:nr,layout:ir}=nt,lr=mn(nt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Qn=`${Ft}-item`,{requiredMark:ar,vertical:fr}=ce.useContext(y.q3),Sr=fr||ir==="vertical",br=ce.useRef(null),Zr=be(Zn),jr=be(yt),hr=Rn!=null,Nr=!!(hr||Zn.length||yt.length),eo=!!br.current&&(0,Mt.Z)(br.current),[Tr,Pr]=ce.useState(null);(0,Ut.Z)(()=>{if(Nr&&br.current){const Cr=getComputedStyle(br.current);Pr(parseInt(Cr.marginBottom,10))}},[Nr,eo]);const or=Cr=>{Cr||Pr(null)},Rr=function(){let Cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const so=Cr?Zr:Bt.errors,Ho=Cr?jr:Bt.warnings;return ut(so,Ho,Bt,"",!!At,xt)}(),Br=ve()(Qn,Ke,Tt,{[`${Qn}-with-help`]:hr||Zr.length||jr.length,[`${Qn}-has-feedback`]:Rr&&At,[`${Qn}-has-success`]:Rr==="success",[`${Qn}-has-warning`]:Rr==="warning",[`${Qn}-has-error`]:Rr==="error",[`${Qn}-is-validating`]:Rr==="validating",[`${Qn}-hidden`]:pn,[`${Qn}-${ir}`]:ir});return ce.createElement("div",{className:Br,style:Yt,ref:br},ce.createElement(ln.Z,Object.assign({className:`${Qn}-row`},(0,cn.Z)(lr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ce.createElement(un,Object.assign({htmlFor:In},nt,{requiredMark:ar,required:Mn!=null?Mn:qn,prefixCls:Ft,vertical:Sr})),ce.createElement(Ge,Object.assign({},nt,Bt,{errors:Zr,warnings:jr,prefixCls:Ft,status:Rr,help:Rn,marginBottom:Tr,onErrorVisibleChanged:or}),ce.createElement(y.qI.Provider,{value:nr},ce.createElement(Wt,{prefixCls:Ft,meta:Bt,errors:Bt.errors,warnings:Bt.warnings,hasFeedback:At,validateStatus:Rr},Pn)))),!!Tr&&ce.createElement("div",{className:`${Qn}-margin-offset`,style:{marginBottom:-Tr}}))}const yn="__SPLIT__",jn=null;function Nn(nt,Ft){const Ke=Object.keys(nt),Tt=Object.keys(Ft);return Ke.length===Tt.length&&Ke.every(Yt=>{const Rn=nt[Yt],Zn=Ft[Yt];return Rn===Zn||typeof Rn=="function"||typeof Zn=="function"})}const $n=ce.memo(nt=>{let{children:Ft}=nt;return Ft},(nt,Ft)=>Nn(nt.control,Ft.control)&&nt.update===Ft.update&&nt.childProps.length===Ft.childProps.length&&nt.childProps.every((Ke,Tt)=>Ke===Ft.childProps[Tt]));function Vn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wn(nt){const{name:Ft,noStyle:Ke,className:Tt,dependencies:Yt,prefixCls:Rn,shouldUpdate:Zn,rules:yt,children:xt,required:Bt,label:At,messageVariables:pn,trigger:Pn="onChange",validateTrigger:In,hidden:Mn,help:qn,layout:nr}=nt,{getPrefixCls:ir}=ce.useContext(Nt.E_),{name:lr}=ce.useContext(y.q3),Qn=ke(xt),ar=typeof Qn=="function",fr=ce.useContext(y.qI),{validateTrigger:Sr}=ce.useContext(tt.FieldContext),br=In!==void 0?In:Sr,Zr=Ft!=null,jr=ir("form",Rn),hr=(0,Ne.Z)(jr),[Nr,eo,Tr]=Qe(jr,hr),Pr=(0,gt.ln)("Form.Item"),or=ce.useContext(tt.ListContext),Ur=ce.useRef(null),[Rr,Br]=Ze({}),[Cr,so]=(0,re.Z)(()=>Vn()),Ho=vo=>{const dr=or==null?void 0:or.getKey(vo.name);if(so(vo.destroy?Vn():vo,!0),Ke&&qn!==!1&&fr){let Tn=vo.name;if(vo.destroy)Tn=Ur.current||Tn;else if(dr!==void 0){const[Gn,Yn]=dr;Tn=[Gn].concat((0,he.Z)(Yn)),Ur.current=Tn}fr(vo,Tn)}},ti=(vo,dr)=>{Br(Tn=>{const Gn=Object.assign({},Tn),Ln=[].concat((0,he.Z)(vo.name.slice(0,-1)),(0,he.Z)(dr)).join(yn);return vo.destroy?delete Gn[Ln]:Gn[Ln]=vo,Gn})},[Eo,No]=ce.useMemo(()=>{const vo=(0,he.Z)(Cr.errors),dr=(0,he.Z)(Cr.warnings);return Object.values(Rr).forEach(Tn=>{vo.push.apply(vo,(0,he.Z)(Tn.errors||[])),dr.push.apply(dr,(0,he.Z)(Tn.warnings||[]))}),[vo,dr]},[Rr,Cr.errors,Cr.warnings]),To=We();function Xo(vo,dr,Tn){return Ke&&!Mn?ce.createElement(Wt,{prefixCls:jr,hasFeedback:nt.hasFeedback,validateStatus:nt.validateStatus,meta:Cr,errors:Eo,warnings:No,noStyle:!0},vo):ce.createElement(an,Object.assign({key:"row"},nt,{className:ve()(Tt,Tr,hr,eo),prefixCls:jr,fieldId:dr,isRequired:Tn,errors:Eo,warnings:No,meta:Cr,onSubItemMetaChange:ti,layout:nr}),vo)}if(!Zr&&!ar&&!Yt)return Nr(Xo(Qn));let ko={};return typeof At=="string"?ko.label=At:Ft&&(ko.label=String(Ft)),pn&&(ko=Object.assign(Object.assign({},ko),pn)),Nr(ce.createElement(tt.Field,Object.assign({},nt,{messageVariables:ko,trigger:Pn,validateTrigger:br,onMetaChange:Ho}),(vo,dr,Tn)=>{const Gn=qe(Ft).length&&dr?dr.name:[],Yn=zt(Gn,lr),Ln=Bt!==void 0?Bt:!!(yt!=null&&yt.some(Un=>{if(Un&&typeof Un=="object"&&Un.required&&!Un.warningOnly)return!0;if(typeof Un=="function"){const Jn=Un(Tn);return(Jn==null?void 0:Jn.required)&&!(Jn!=null&&Jn.warningOnly)}return!1})),mr=Object.assign({},vo);let wr=null;if(Array.isArray(Qn)&&Zr)wr=Qn;else if(!(ar&&(!(Zn||Yt)||Zr))){if(!(Yt&&!ar&&!Zr))if(ce.isValidElement(Qn)){const Un=Object.assign(Object.assign({},Qn.props),mr);if(Un.id||(Un.id=Yn),qn||Eo.length>0||No.length>0||nt.extra){const pr=[];(qn||Eo.length>0)&&pr.push(`${Yn}_help`),nt.extra&&pr.push(`${Yn}_extra`),Un["aria-describedby"]=pr.join(" ")}Eo.length>0&&(Un["aria-invalid"]="true"),Ln&&(Un["aria-required"]="true"),(0,ue.Yr)(Qn)&&(Un.ref=To(Gn,Qn)),new Set([].concat((0,he.Z)(qe(Pn)),(0,he.Z)(qe(br)))).forEach(pr=>{Un[pr]=function(){for(var _r,Yr,to,Po,Mo,Yo=arguments.length,Jo=new Array(Yo),ni=0;ni<Yo;ni++)Jo[ni]=arguments[ni];(to=mr[pr])===null||to===void 0||(_r=to).call.apply(_r,[mr].concat(Jo)),(Mo=(Po=Qn.props)[pr])===null||Mo===void 0||(Yr=Mo).call.apply(Yr,[Po].concat(Jo))}});const sr=[Un["aria-required"],Un["aria-invalid"],Un["aria-describedby"]];wr=ce.createElement($n,{control:mr,update:Qn,childProps:sr},(0,Me.Tm)(Qn,Un))}else ar&&(Zn||Yt)&&!Zr?wr=Qn(Tn):wr=Qn}return Xo(wr,Yn,Ln)}))}const ur=Wn;ur.useStatus=ht;var rr=ur,hn=function(nt,Ft){var Ke={};for(var Tt in nt)Object.prototype.hasOwnProperty.call(nt,Tt)&&Ft.indexOf(Tt)<0&&(Ke[Tt]=nt[Tt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Tt=Object.getOwnPropertySymbols(nt);Yt<Tt.length;Yt++)Ft.indexOf(Tt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Tt[Yt])&&(Ke[Tt[Yt]]=nt[Tt[Yt]]);return Ke},zn=nt=>{var{prefixCls:Ft,children:Ke}=nt,Tt=hn(nt,["prefixCls","children"]);const{getPrefixCls:Yt}=ce.useContext(Nt.E_),Rn=Yt("form",Ft),Zn=ce.useMemo(()=>({prefixCls:Rn,status:"error"}),[Rn]);return ce.createElement(tt.List,Object.assign({},Tt),(yt,xt,Bt)=>ce.createElement(y.Rk.Provider,{value:Zn},Ke(yt.map(At=>Object.assign(Object.assign({},At),{fieldKey:At.key})),xt,{errors:Bt.errors,warnings:Bt.warnings})))};function Hn(){const{form:nt}=ce.useContext(y.q3);return nt}const St=fe;St.Item=rr,St.List=zn,St.ErrorList=$e,St.useForm=kt,St.useFormInstance=Hn,St.useWatch=tt.useWatch,St.Provider=y.RV,St.create=()=>{};var $t=St},4875:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return on}});var y=z(59301),he=z(84105),ce=z(87395),Re=z(92310),ve=z.n(Re),me=z(60499),pe=z(18642),Ne=z(43749),be=z(72190),le=z(42244),je=z(38705),Ae=z(17212);function it(){return typeof BigInt=="function"}function ze(Ge){return!Ge&&Ge!==0&&!Number.isNaN(Ge)||!String(Ge).trim()}function Oe(Ge){var Pt=Ge.trim(),jt=Pt.startsWith("-");jt&&(Pt=Pt.slice(1)),Pt=Pt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Pt.startsWith(".")&&(Pt="0".concat(Pt));var vt=Pt||"0",Lt=vt.split("."),Rt=Lt[0]||"0",sn=Lt[1]||"0";Rt==="0"&&sn==="0"&&(jt=!1);var Sn=jt?"-":"";return{negative:jt,negativeStr:Sn,trimStr:vt,integerStr:Rt,decimalStr:sn,fullStr:"".concat(Sn).concat(vt)}}function Ee(Ge){var Pt=String(Ge);return!Number.isNaN(Number(Pt))&&Pt.includes("e")}function Pe(Ge){var Pt=String(Ge);if(Ee(Ge)){var jt=Number(Pt.slice(Pt.indexOf("e-")+2)),vt=Pt.match(/\.(\d+)/);return vt!=null&&vt[1]&&(jt+=vt[1].length),jt}return Pt.includes(".")&&Ve(Pt)?Pt.length-Pt.indexOf(".")-1:0}function Fe(Ge){var Pt=String(Ge);if(Ee(Ge)){if(Ge>Number.MAX_SAFE_INTEGER)return String(it()?BigInt(Ge).toString():Number.MAX_SAFE_INTEGER);if(Ge<Number.MIN_SAFE_INTEGER)return String(it()?BigInt(Ge).toString():Number.MIN_SAFE_INTEGER);Pt=Ge.toFixed(Pe(Pt))}return Oe(Pt).fullStr}function Ve(Ge){return typeof Ge=="number"?!Number.isNaN(Ge):Ge?/^\s*-?\d+(\.\d+)?\s*$/.test(Ge)||/^\s*-?\d+\.\s*$/.test(Ge)||/^\s*-?\.\d+\s*$/.test(Ge):!1}var dt=function(){function Ge(Pt){if((0,je.Z)(this,Ge),(0,pe.Z)(this,"origin",""),(0,pe.Z)(this,"negative",void 0),(0,pe.Z)(this,"integer",void 0),(0,pe.Z)(this,"decimal",void 0),(0,pe.Z)(this,"decimalLen",void 0),(0,pe.Z)(this,"empty",void 0),(0,pe.Z)(this,"nan",void 0),ze(Pt)){this.empty=!0;return}if(this.origin=String(Pt),Pt==="-"||Number.isNaN(Pt)){this.nan=!0;return}var jt=Pt;if(Ee(jt)&&(jt=Number(jt)),jt=typeof jt=="string"?jt:Fe(jt),Ve(jt)){var vt=Oe(jt);this.negative=vt.negative;var Lt=vt.trimStr.split(".");this.integer=BigInt(Lt[0]);var Rt=Lt[1]||"0";this.decimal=BigInt(Rt),this.decimalLen=Rt.length}else this.nan=!0}return(0,Ae.Z)(Ge,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(jt){var vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(jt,"0"));return BigInt(vt)}},{key:"negate",value:function(){var jt=new Ge(this.toString());return jt.negative=!jt.negative,jt}},{key:"cal",value:function(jt,vt,Lt){var Rt=Math.max(this.getDecimalStr().length,jt.getDecimalStr().length),sn=this.alignDecimal(Rt),Sn=jt.alignDecimal(Rt),un=vt(sn,Sn).toString(),Cn=Lt(Rt),Ct=Oe(un),It=Ct.negativeStr,Gt=Ct.trimStr,tn="".concat(It).concat(Gt.padStart(Cn+1,"0"));return new Ge("".concat(tn.slice(0,-Cn),".").concat(tn.slice(-Cn)))}},{key:"add",value:function(jt){if(this.isInvalidate())return new Ge(jt);var vt=new Ge(jt);return vt.isInvalidate()?this:this.cal(vt,function(Lt,Rt){return Lt+Rt},function(Lt){return Lt})}},{key:"multi",value:function(jt){var vt=new Ge(jt);return this.isInvalidate()||vt.isInvalidate()?new Ge(NaN):this.cal(vt,function(Lt,Rt){return Lt*Rt},function(Lt){return Lt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(jt){return this.toString()===(jt==null?void 0:jt.toString())}},{key:"lessEquals",value:function(jt){return this.add(jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return jt?this.isInvalidate()?"":Oe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ge}(),Se=function(){function Ge(Pt){if((0,je.Z)(this,Ge),(0,pe.Z)(this,"origin",""),(0,pe.Z)(this,"number",void 0),(0,pe.Z)(this,"empty",void 0),ze(Pt)){this.empty=!0;return}this.origin=String(Pt),this.number=Number(Pt)}return(0,Ae.Z)(Ge,[{key:"negate",value:function(){return new Ge(-this.toNumber())}},{key:"add",value:function(jt){if(this.isInvalidate())return new Ge(jt);var vt=Number(jt);if(Number.isNaN(vt))return this;var Lt=this.number+vt;if(Lt>Number.MAX_SAFE_INTEGER)return new Ge(Number.MAX_SAFE_INTEGER);if(Lt<Number.MIN_SAFE_INTEGER)return new Ge(Number.MIN_SAFE_INTEGER);var Rt=Math.max(Pe(this.number),Pe(vt));return new Ge(Lt.toFixed(Rt))}},{key:"multi",value:function(jt){var vt=Number(jt);if(this.isInvalidate()||Number.isNaN(vt))return new Ge(NaN);var Lt=this.number*vt;if(Lt>Number.MAX_SAFE_INTEGER)return new Ge(Number.MAX_SAFE_INTEGER);if(Lt<Number.MIN_SAFE_INTEGER)return new Ge(Number.MIN_SAFE_INTEGER);var Rt=Math.max(Pe(this.number),Pe(vt));return new Ge(Lt.toFixed(Rt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(jt){return this.toNumber()===(jt==null?void 0:jt.toNumber())}},{key:"lessEquals",value:function(jt){return this.add(jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return jt?this.isInvalidate()?"":Fe(this.number):this.origin}}]),Ge}();function Ie(Ge){return it()?new dt(Ge):new Se(Ge)}function Xe(Ge,Pt,jt){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ge==="")return"";var Lt=Oe(Ge),Rt=Lt.negativeStr,sn=Lt.integerStr,Sn=Lt.decimalStr,un="".concat(Pt).concat(Sn),Cn="".concat(Rt).concat(sn);if(jt>=0){var Ct=Number(Sn[jt]);if(Ct>=5&&!vt){var It=Ie(Ge).add("".concat(Rt,"0.").concat("0".repeat(jt)).concat(10-Ct));return Xe(It.toString(),Pt,jt,vt)}return jt===0?Cn:"".concat(Cn).concat(Pt).concat(Sn.padEnd(jt,"0").slice(0,jt))}return un===".0"?Cn:"".concat(Cn).concat(un)}var He=Ie,rt=z(36901),st=z(34280);function Je(Ge,Pt){return typeof Proxy!="undefined"&&Ge?new Proxy(Ge,{get:function(vt,Lt){if(Pt[Lt])return Pt[Lt];var Rt=vt[Lt];return typeof Rt=="function"?Rt.bind(vt):Rt}}):Ge}var et=z(8654),ge=z(48736);function Qe(Ge,Pt){var jt=(0,y.useRef)(null);function vt(){try{var Rt=Ge.selectionStart,sn=Ge.selectionEnd,Sn=Ge.value,un=Sn.substring(0,Rt),Cn=Sn.substring(sn);jt.current={start:Rt,end:sn,value:Sn,beforeTxt:un,afterTxt:Cn}}catch(Ct){}}function Lt(){if(Ge&&jt.current&&Pt)try{var Rt=Ge.value,sn=jt.current,Sn=sn.beforeTxt,un=sn.afterTxt,Cn=sn.start,Ct=Rt.length;if(Rt.startsWith(Sn))Ct=Sn.length;else if(Rt.endsWith(un))Ct=Rt.length-jt.current.afterTxt.length;else{var It=Sn[Cn-1],Gt=Rt.indexOf(It,Cn-1);Gt!==-1&&(Ct=Gt+1)}Ge.setSelectionRange(Ct,Ct)}catch(tn){(0,ge.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(tn.message))}}return[vt,Lt]}var we=z(49658),se=function(){var Pt=(0,y.useState)(!1),jt=(0,be.Z)(Pt,2),vt=jt[0],Lt=jt[1];return(0,st.Z)(function(){Lt((0,we.Z)())},[]),vt},ft=se,$e=z(16089),tt=200,Nt=600;function Le(Ge){var Pt=Ge.prefixCls,jt=Ge.upNode,vt=Ge.downNode,Lt=Ge.upDisabled,Rt=Ge.downDisabled,sn=Ge.onStep,Sn=y.useRef(),un=y.useRef([]),Cn=y.useRef();Cn.current=sn;var Ct=function(){clearTimeout(Sn.current)},It=function(Nn,$n){Nn.preventDefault(),Ct(),Cn.current($n);function Vn(){Cn.current($n),Sn.current=setTimeout(Vn,tt)}Sn.current=setTimeout(Vn,Nt)};y.useEffect(function(){return function(){Ct(),un.current.forEach(function(jn){return $e.Z.cancel(jn)})}},[]);var Gt=ft();if(Gt)return null;var tn="".concat(Pt,"-handler"),Wt=ve()(tn,"".concat(tn,"-up"),(0,pe.Z)({},"".concat(tn,"-up-disabled"),Lt)),mn=ve()(tn,"".concat(tn,"-down"),(0,pe.Z)({},"".concat(tn,"-down-disabled"),Rt)),an=function(){return un.current.push((0,$e.Z)(Ct))},yn={unselectable:"on",role:"button",onMouseUp:an,onMouseLeave:an};return y.createElement("div",{className:"".concat(tn,"-wrap")},y.createElement("span",(0,me.Z)({},yn,{onMouseDown:function(Nn){It(Nn,!0)},"aria-label":"Increase Value","aria-disabled":Lt,className:Wt}),jt||y.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-up-inner")})),y.createElement("span",(0,me.Z)({},yn,{onMouseDown:function(Nn){It(Nn,!1)},"aria-label":"Decrease Value","aria-disabled":Rt,className:mn}),vt||y.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-down-inner")})))}function ye(Ge){var Pt=typeof Ge=="number"?Fe(Ge):Oe(Ge).fullStr,jt=Pt.includes(".");return jt?Oe(Pt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ge+"0"}var Et=z(30292),Zt=function(){var Ge=(0,y.useRef)(0),Pt=function(){$e.Z.cancel(Ge.current)};return(0,y.useEffect)(function(){return Pt},[]),function(jt){Pt(),Ge.current=(0,$e.Z)(function(){jt()})}},pt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Ce=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],at=function(Pt,jt){return Pt||jt.isEmpty()?jt.toString():jt.toNumber()},qe=function(Pt){var jt=He(Pt);return jt.isInvalidate()?null:jt},zt=y.forwardRef(function(Ge,Pt){var jt=Ge.prefixCls,vt=Ge.className,Lt=Ge.style,Rt=Ge.min,sn=Ge.max,Sn=Ge.step,un=Sn===void 0?1:Sn,Cn=Ge.defaultValue,Ct=Ge.value,It=Ge.disabled,Gt=Ge.readOnly,tn=Ge.upHandler,Wt=Ge.downHandler,mn=Ge.keyboard,an=Ge.changeOnWheel,yn=an===void 0?!1:an,jn=Ge.controls,Nn=jn===void 0?!0:jn,$n=Ge.classNames,Vn=Ge.stringMode,Wn=Ge.parser,ur=Ge.formatter,rr=Ge.precision,hn=Ge.decimalSeparator,Bn=Ge.onChange,zn=Ge.onInput,Hn=Ge.onPressEnter,St=Ge.onStep,$t=Ge.changeOnBlur,nt=$t===void 0?!0:$t,Ft=Ge.domRef,Ke=(0,le.Z)(Ge,pt),Tt="".concat(jt,"-input"),Yt=y.useRef(null),Rn=y.useState(!1),Zn=(0,be.Z)(Rn,2),yt=Zn[0],xt=Zn[1],Bt=y.useRef(!1),At=y.useRef(!1),pn=y.useRef(!1),Pn=y.useState(function(){return He(Ct!=null?Ct:Cn)}),In=(0,be.Z)(Pn,2),Mn=In[0],qn=In[1];function nr(Yn){Ct===void 0&&qn(Yn)}var ir=y.useCallback(function(Yn,Ln){if(!Ln)return rr>=0?rr:Math.max(Pe(Yn),Pe(un))},[rr,un]),lr=y.useCallback(function(Yn){var Ln=String(Yn);if(Wn)return Wn(Ln);var mr=Ln;return hn&&(mr=mr.replace(hn,".")),mr.replace(/[^\w.-]+/g,"")},[Wn,hn]),Qn=y.useRef(""),ar=y.useCallback(function(Yn,Ln){if(ur)return ur(Yn,{userTyping:Ln,input:String(Qn.current)});var mr=typeof Yn=="number"?Fe(Yn):Yn;if(!Ln){var wr=ir(mr,Ln);if(Ve(mr)&&(hn||wr>=0)){var Un=hn||".";mr=Xe(mr,Un,wr)}}return mr},[ur,ir,hn]),fr=y.useState(function(){var Yn=Cn!=null?Cn:Ct;return Mn.isInvalidate()&&["string","number"].includes((0,Ne.Z)(Yn))?Number.isNaN(Yn)?"":Yn:ar(Mn.toString(),!1)}),Sr=(0,be.Z)(fr,2),br=Sr[0],Zr=Sr[1];Qn.current=br;function jr(Yn,Ln){Zr(ar(Yn.isInvalidate()?Yn.toString(!1):Yn.toString(!Ln),Ln))}var hr=y.useMemo(function(){return qe(sn)},[sn,rr]),Nr=y.useMemo(function(){return qe(Rt)},[Rt,rr]),eo=y.useMemo(function(){return!hr||!Mn||Mn.isInvalidate()?!1:hr.lessEquals(Mn)},[hr,Mn]),Tr=y.useMemo(function(){return!Nr||!Mn||Mn.isInvalidate()?!1:Mn.lessEquals(Nr)},[Nr,Mn]),Pr=Qe(Yt.current,yt),or=(0,be.Z)(Pr,2),Ur=or[0],Rr=or[1],Br=function(Ln){return hr&&!Ln.lessEquals(hr)?hr:Nr&&!Nr.lessEquals(Ln)?Nr:null},Cr=function(Ln){return!Br(Ln)},so=function(Ln,mr){var wr=Ln,Un=Cr(wr)||wr.isEmpty();if(!wr.isEmpty()&&!mr&&(wr=Br(wr)||wr,Un=!0),!Gt&&!It&&Un){var Jn=wr.toString(),sr=ir(Jn,mr);return sr>=0&&(wr=He(Xe(Jn,".",sr)),Cr(wr)||(wr=He(Xe(Jn,".",sr,!0)))),wr.equals(Mn)||(nr(wr),Bn==null||Bn(wr.isEmpty()?null:at(Vn,wr)),Ct===void 0&&jr(wr,mr)),wr}return Mn},Ho=Zt(),ti=function Yn(Ln){if(Ur(),Qn.current=Ln,Zr(Ln),!At.current){var mr=lr(Ln),wr=He(mr);wr.isNaN()||so(wr,!0)}zn==null||zn(Ln),Ho(function(){var Un=Ln;Wn||(Un=Ln.replace(/。/g,".")),Un!==Ln&&Yn(Un)})},Eo=function(){At.current=!0},No=function(){At.current=!1,ti(Yt.current.value)},To=function(Ln){ti(Ln.target.value)},Xo=function(Ln){var mr;if(!(Ln&&eo||!Ln&&Tr)){Bt.current=!1;var wr=He(pn.current?ye(un):un);Ln||(wr=wr.negate());var Un=(Mn||He(0)).add(wr.toString()),Jn=so(Un,!1);St==null||St(at(Vn,Jn),{offset:pn.current?ye(un):un,type:Ln?"up":"down"}),(mr=Yt.current)===null||mr===void 0||mr.focus()}},ko=function(Ln){var mr=He(lr(br)),wr;mr.isNaN()?wr=so(Mn,Ln):wr=so(mr,Ln),Ct!==void 0?jr(Mn,!1):wr.isNaN()||jr(wr,!1)},vo=function(){Bt.current=!0},dr=function(Ln){var mr=Ln.key,wr=Ln.shiftKey;Bt.current=!0,pn.current=wr,mr==="Enter"&&(At.current||(Bt.current=!1),ko(!1),Hn==null||Hn(Ln)),mn!==!1&&!At.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mr)&&(Xo(mr==="Up"||mr==="ArrowUp"),Ln.preventDefault())},Tn=function(){Bt.current=!1,pn.current=!1};y.useEffect(function(){if(yn&&yt){var Yn=function(wr){Xo(wr.deltaY<0),wr.preventDefault()},Ln=Yt.current;if(Ln)return Ln.addEventListener("wheel",Yn,{passive:!1}),function(){return Ln.removeEventListener("wheel",Yn)}}});var Gn=function(){nt&&ko(!1),xt(!1),Bt.current=!1};return(0,st.o)(function(){Mn.isInvalidate()||jr(Mn,!1)},[rr,ur]),(0,st.o)(function(){var Yn=He(Ct);qn(Yn);var Ln=He(lr(br));(!Yn.equals(Ln)||!Bt.current||ur)&&jr(Yn,Bt.current)},[Ct]),(0,st.o)(function(){ur&&Rr()},[br]),y.createElement("div",{ref:Ft,className:ve()(jt,vt,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(jt,"-focused"),yt),"".concat(jt,"-disabled"),It),"".concat(jt,"-readonly"),Gt),"".concat(jt,"-not-a-number"),Mn.isNaN()),"".concat(jt,"-out-of-range"),!Mn.isInvalidate()&&!Cr(Mn))),style:Lt,onFocus:function(){xt(!0)},onBlur:Gn,onKeyDown:dr,onKeyUp:Tn,onCompositionStart:Eo,onCompositionEnd:No,onBeforeInput:vo},Nn&&y.createElement(Le,{prefixCls:jt,upNode:tn,downNode:Wt,upDisabled:eo,downDisabled:Tr,onStep:Xo}),y.createElement("div",{className:"".concat(Tt,"-wrap")},y.createElement("input",(0,me.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Rt,"aria-valuemax":sn,"aria-valuenow":Mn.isInvalidate()?null:Mn.toString(),step:un},Ke,{ref:(0,et.sQ)(Yt,Pt),className:Tt,value:br,onChange:To,disabled:It,readOnly:Gt}))))}),ut=y.forwardRef(function(Ge,Pt){var jt=Ge.disabled,vt=Ge.style,Lt=Ge.prefixCls,Rt=Lt===void 0?"rc-input-number":Lt,sn=Ge.value,Sn=Ge.prefix,un=Ge.suffix,Cn=Ge.addonBefore,Ct=Ge.addonAfter,It=Ge.className,Gt=Ge.classNames,tn=(0,le.Z)(Ge,Ce),Wt=y.useRef(null),mn=y.useRef(null),an=y.useRef(null),yn=function(Nn){an.current&&(0,Et.nH)(an.current,Nn)};return y.useImperativeHandle(Pt,function(){return Je(an.current,{focus:yn,nativeElement:Wt.current.nativeElement||mn.current})}),y.createElement(rt.BaseInput,{className:It,triggerFocus:yn,prefixCls:Rt,value:sn,disabled:jt,style:vt,prefix:Sn,suffix:un,addonAfter:Ct,addonBefore:Cn,classNames:Gt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Wt},y.createElement(zt,(0,me.Z)({prefixCls:Rt,disabled:jt,ref:an,domRef:mn,className:Gt==null?void 0:Gt.input},tn)))}),ct=ut,lt=ct,nn=z(62487),kt=z(82855),ae=z(48755),ne=z(60840),te=z(2171),ie=z(83397),fe=z(31756),re=z(56553),ue=z(24971),Me=z(70045),gt=z(36237),_e=z(53075),ke=z(64910),ot=z(39082),ht=z(63356),wt=z(56119),Ze=z(16931),We=z(51636),Mt=z(17835);const Ut=Ge=>{var Pt;const jt=(Pt=Ge.handleVisible)!==null&&Pt!==void 0?Pt:"auto",vt=Ge.controlHeightSM-Ge.lineWidth*2;return Object.assign(Object.assign({},(0,ke.T)(Ge)),{controlWidth:90,handleWidth:vt,handleFontSize:Ge.fontSize/2,handleVisible:jt,handleActiveBg:Ge.colorFillAlter,handleBg:Ge.colorBgContainer,filledHandleBg:new Mt.FastColor(Ge.colorFillSecondary).onBackground(Ge.colorBgContainer).toHexString(),handleHoverColor:Ge.colorPrimary,handleBorderColor:Ge.colorBorder,handleOpacity:jt===!0?1:0,handleVisibleWidth:jt===!0?vt:0})},cn=(Ge,Pt)=>{let{componentCls:jt,borderRadiusSM:vt,borderRadiusLG:Lt}=Ge;const Rt=Pt==="lg"?Lt:vt;return{[`&-${Pt}`]:{[`${jt}-handler-wrap`]:{borderStartEndRadius:Rt,borderEndEndRadius:Rt},[`${jt}-handler-up`]:{borderStartEndRadius:Rt},[`${jt}-handler-down`]:{borderEndEndRadius:Rt}}}},ln=Ge=>{const{componentCls:Pt,lineWidth:jt,lineType:vt,borderRadius:Lt,inputFontSizeSM:Rt,inputFontSizeLG:sn,controlHeightLG:Sn,controlHeightSM:un,colorError:Cn,paddingInlineSM:Ct,paddingBlockSM:It,paddingBlockLG:Gt,paddingInlineLG:tn,colorTextDescription:Wt,motionDurationMid:mn,handleHoverColor:an,handleOpacity:yn,paddingInline:jn,paddingBlock:Nn,handleBg:$n,handleActiveBg:Vn,colorTextDisabled:Wn,borderRadiusSM:ur,borderRadiusLG:rr,controlWidth:hn,handleBorderColor:Bn,filledHandleBg:zn,lineHeightLG:Hn,calc:St}=Ge;return[{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ge)),(0,_e.ik)(Ge)),{display:"inline-block",width:hn,margin:0,padding:0,borderRadius:Lt}),(0,ot.qG)(Ge,{[`${Pt}-handler-wrap`]:{background:$n,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(jt)} ${vt} ${Bn}`}}})),(0,ot.H8)(Ge,{[`${Pt}-handler-wrap`]:{background:zn,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(jt)} ${vt} ${Bn}`}},"&:focus-within":{[`${Pt}-handler-wrap`]:{background:$n}}})),(0,ot.vc)(Ge,{[`${Pt}-handler-wrap`]:{background:$n,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,gt.unit)(jt)} ${vt} ${Bn}`}}})),(0,ot.Mu)(Ge)),{"&-rtl":{direction:"rtl",[`${Pt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:sn,lineHeight:Hn,borderRadius:rr,[`input${Pt}-input`]:{height:St(Sn).sub(St(jt).mul(2)).equal(),padding:`${(0,gt.unit)(Gt)} ${(0,gt.unit)(tn)}`}},"&-sm":{padding:0,fontSize:Rt,borderRadius:ur,[`input${Pt}-input`]:{height:St(un).sub(St(jt).mul(2)).equal(),padding:`${(0,gt.unit)(It)} ${(0,gt.unit)(Ct)}`}},"&-out-of-range":{[`${Pt}-input-wrap`]:{input:{color:Cn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ge)),(0,_e.s7)(Ge)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Pt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Pt}-group-addon`]:{borderRadius:rr,fontSize:Ge.fontSizeLG}},"&-sm":{[`${Pt}-group-addon`]:{borderRadius:ur}}},(0,ot.ir)(Ge)),(0,ot.S5)(Ge)),{[`&:not(${Pt}-compact-first-item):not(${Pt}-compact-last-item)${Pt}-compact-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderRadius:0}},[`&:not(${Pt}-compact-last-item)${Pt}-compact-first-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Pt}-compact-first-item)${Pt}-compact-last-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Pt}-input`]:{cursor:"not-allowed"},[Pt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ge)),{width:"100%",padding:`${(0,gt.unit)(Nn)} ${(0,gt.unit)(jn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Lt,outline:0,transition:`all ${mn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,_e.nz)(Ge.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:Ge.handleWidth,opacity:1}})},{[Pt]:Object.assign(Object.assign(Object.assign({[`${Pt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ge.handleVisibleWidth,opacity:yn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Lt,borderEndEndRadius:Lt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${mn}`,overflow:"hidden",[`${Pt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Pt}-handler-up-inner,
${Pt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ge.handleFontSize}}},[`${Pt}-handler`]:{height:"50%",overflow:"hidden",color:Wt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,gt.unit)(jt)} ${vt} ${Bn}`,transition:`all ${mn} linear`,"&:active":{background:Vn},"&:hover":{height:"60%",[`
${Pt}-handler-up-inner,
${Pt}-handler-down-inner
`]:{color:an}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ht.Ro)()),{color:Wt,transition:`all ${mn} linear`,userSelect:"none"})},[`${Pt}-handler-up`]:{borderStartEndRadius:Lt},[`${Pt}-handler-down`]:{borderEndEndRadius:Lt}},cn(Ge,"lg")),cn(Ge,"sm")),{"&-disabled, &-readonly":{[`${Pt}-handler-wrap`]:{display:"none"},[`${Pt}-input`]:{color:"inherit"}},[`
${Pt}-handler-up-disabled,
${Pt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Pt}-handler-up-disabled:hover &-handler-up-inner,
${Pt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Wn}})}]},_t=Ge=>{const{componentCls:Pt,paddingBlock:jt,paddingInline:vt,inputAffixPadding:Lt,controlWidth:Rt,borderRadiusLG:sn,borderRadiusSM:Sn,paddingInlineLG:un,paddingInlineSM:Cn,paddingBlockLG:Ct,paddingBlockSM:It,motionDurationMid:Gt}=Ge;return{[`${Pt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Pt}-input`]:{padding:`${(0,gt.unit)(jt)} 0`}},(0,_e.ik)(Ge)),{position:"relative",display:"inline-flex",alignItems:"center",width:Rt,padding:0,paddingInlineStart:vt,"&-lg":{borderRadius:sn,paddingInlineStart:un,[`input${Pt}-input`]:{padding:`${(0,gt.unit)(Ct)} 0`}},"&-sm":{borderRadius:Sn,paddingInlineStart:Cn,[`input${Pt}-input`]:{padding:`${(0,gt.unit)(It)} 0`}},[`&:not(${Pt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Pt}-disabled`]:{background:"transparent"},[`> div${Pt}`]:{width:"100%",border:"none",outline:"none",[`&${Pt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Pt}-handler-wrap`]:{zIndex:2},[Pt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Lt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:vt,marginInlineStart:Lt,transition:`margin ${Gt}`}},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:Ge.handleWidth,opacity:1},[`&:not(${Pt}-affix-wrapper-without-controls):hover ${Pt}-suffix`]:{marginInlineEnd:Ge.calc(Ge.handleWidth).add(vt).equal()}})}};var fn=(0,Ze.I$)("InputNumber",Ge=>{const Pt=(0,We.mergeToken)(Ge,(0,ke.e)(Ge));return[ln(Pt),_t(Pt),(0,wt.c)(Pt)]},Ut,{unitless:{handleOpacity:!0}}),qt=function(Ge,Pt){var jt={};for(var vt in Ge)Object.prototype.hasOwnProperty.call(Ge,vt)&&Pt.indexOf(vt)<0&&(jt[vt]=Ge[vt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,vt=Object.getOwnPropertySymbols(Ge);Lt<vt.length;Lt++)Pt.indexOf(vt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,vt[Lt])&&(jt[vt[Lt]]=Ge[vt[Lt]]);return jt};const Ye=y.forwardRef((Ge,Pt)=>{const{getPrefixCls:jt,direction:vt}=y.useContext(ae.E_),Lt=y.useRef(null);y.useImperativeHandle(Pt,()=>Lt.current);const{className:Rt,rootClassName:sn,size:Sn,disabled:un,prefixCls:Cn,addonBefore:Ct,addonAfter:It,prefix:Gt,suffix:tn,bordered:Wt,readOnly:mn,status:an,controls:yn,variant:jn}=Ge,Nn=qt(Ge,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),$n=jt("input-number",Cn),Vn=(0,ie.Z)($n),[Wn,ur,rr]=fn($n,Vn),{compactSize:hn,compactItemClassnames:Bn}=(0,Me.ri)($n,vt);let zn=y.createElement(ce.Z,{className:`${$n}-handler-up-inner`}),Hn=y.createElement(he.Z,{className:`${$n}-handler-down-inner`});const St=typeof yn=="boolean"?yn:void 0;typeof yn=="object"&&(zn=typeof yn.upIcon=="undefined"?zn:y.createElement("span",{className:`${$n}-handler-up-inner`},yn.upIcon),Hn=typeof yn.downIcon=="undefined"?Hn:y.createElement("span",{className:`${$n}-handler-down-inner`},yn.downIcon));const{hasFeedback:$t,status:nt,isFormItemInput:Ft,feedbackIcon:Ke}=y.useContext(re.aM),Tt=(0,kt.F)(nt,an),Yt=(0,fe.Z)(In=>{var Mn;return(Mn=Sn!=null?Sn:hn)!==null&&Mn!==void 0?Mn:In}),Rn=y.useContext(te.Z),Zn=un!=null?un:Rn,[yt,xt]=(0,ue.Z)("inputNumber",jn,Wt),Bt=$t&&y.createElement(y.Fragment,null,Ke),At=ve()({[`${$n}-lg`]:Yt==="large",[`${$n}-sm`]:Yt==="small",[`${$n}-rtl`]:vt==="rtl",[`${$n}-in-form-item`]:Ft},ur),pn=`${$n}-group`,Pn=y.createElement(lt,Object.assign({ref:Lt,disabled:Zn,className:ve()(rr,Vn,Rt,sn,Bn),upHandler:zn,downHandler:Hn,prefixCls:$n,readOnly:mn,controls:St,prefix:Gt,suffix:Bt||tn,addonBefore:Ct&&y.createElement(nn.Z,{form:!0,space:!0},Ct),addonAfter:It&&y.createElement(nn.Z,{form:!0,space:!0},It),classNames:{input:At,variant:ve()({[`${$n}-${yt}`]:xt},(0,kt.Z)($n,Tt,$t)),affixWrapper:ve()({[`${$n}-affix-wrapper-sm`]:Yt==="small",[`${$n}-affix-wrapper-lg`]:Yt==="large",[`${$n}-affix-wrapper-rtl`]:vt==="rtl",[`${$n}-affix-wrapper-without-controls`]:yn===!1||Zn},ur),wrapper:ve()({[`${pn}-rtl`]:vt==="rtl"},ur),groupWrapper:ve()({[`${$n}-group-wrapper-sm`]:Yt==="small",[`${$n}-group-wrapper-lg`]:Yt==="large",[`${$n}-group-wrapper-rtl`]:vt==="rtl",[`${$n}-group-wrapper-${yt}`]:xt},(0,kt.Z)(`${$n}-group-wrapper`,Tt,$t),ur)}},Nn));return Wn(Pn)}),Ot=Ye,Jt=Ge=>y.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(Ye,Object.assign({},Ge)));Ot._InternalPanelDoNotUseOrYouWillBeFired=Jt;var on=Ot},49397:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Se}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(36901),ve=z(8654),me=z(62487),pe=z(86013),Ne=z(82855),be=z(48755),le=z(2171),je=z(83397),Ae=z(31756),it=z(56553),ze=z(24971),Oe=z(70045),Ee=z(23826),Pe=z(53075);function Fe(Ie){return!!(Ie.prefix||Ie.suffix||Ie.allowClear||Ie.showCount)}var Ve=function(Ie,Xe){var He={};for(var rt in Ie)Object.prototype.hasOwnProperty.call(Ie,rt)&&Xe.indexOf(rt)<0&&(He[rt]=Ie[rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,rt=Object.getOwnPropertySymbols(Ie);st<rt.length;st++)Xe.indexOf(rt[st])<0&&Object.prototype.propertyIsEnumerable.call(Ie,rt[st])&&(He[rt[st]]=Ie[rt[st]]);return He},Se=(0,y.forwardRef)((Ie,Xe)=>{const{prefixCls:He,bordered:rt=!0,status:st,size:Je,disabled:et,onBlur:ge,onFocus:Qe,suffix:we,allowClear:se,addonAfter:ft,addonBefore:$e,className:tt,style:Nt,styles:Le,rootClassName:ye,onChange:Et,classNames:Zt,variant:pt}=Ie,Ce=Ve(Ie,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:at,direction:qe,allowClear:zt,autoComplete:ut,className:ct,style:lt,classNames:nn,styles:kt}=(0,be.dj)("input"),ae=at("input",He),ne=(0,y.useRef)(null),te=(0,je.Z)(ae),[ie,fe,re]=(0,Pe.TI)(ae,ye),[ue]=(0,Pe.ZP)(ae,te),{compactSize:Me,compactItemClassnames:gt}=(0,Oe.ri)(ae,qe),_e=(0,Ae.Z)(on=>{var Ge;return(Ge=Je!=null?Je:Me)!==null&&Ge!==void 0?Ge:on}),ke=y.useContext(le.Z),ot=et!=null?et:ke,{status:ht,hasFeedback:wt,feedbackIcon:Ze}=(0,y.useContext)(it.aM),We=(0,Ne.F)(ht,st),Mt=Fe(Ie)||!!wt,Ut=(0,y.useRef)(Mt),cn=(0,Ee.Z)(ne,!0),ln=on=>{cn(),ge==null||ge(on)},_t=on=>{cn(),Qe==null||Qe(on)},fn=on=>{cn(),Et==null||Et(on)},qt=(wt||we)&&y.createElement(y.Fragment,null,we,wt&&Ze),Ye=(0,pe.Z)(se!=null?se:zt),[Ot,Jt]=(0,ze.Z)("input",pt,rt);return ie(ue(y.createElement(Re.default,Object.assign({ref:(0,ve.sQ)(Xe,ne),prefixCls:ae,autoComplete:ut},Ce,{disabled:ot,onBlur:ln,onFocus:_t,style:Object.assign(Object.assign({},lt),Nt),styles:Object.assign(Object.assign({},kt),Le),suffix:qt,allowClear:Ye,className:ce()(tt,ye,re,te,gt,ct),onChange:fn,addonBefore:$e&&y.createElement(me.Z,{form:!0,space:!0},$e),addonAfter:ft&&y.createElement(me.Z,{form:!0,space:!0},ft),classNames:Object.assign(Object.assign(Object.assign({},Zt),nn),{input:ce()({[`${ae}-sm`]:_e==="small",[`${ae}-lg`]:_e==="large",[`${ae}-rtl`]:qe==="rtl"},Zt==null?void 0:Zt.input,nn.input,fe),variant:ce()({[`${ae}-${Ot}`]:Jt},(0,Ne.Z)(ae,We)),affixWrapper:ce()({[`${ae}-affix-wrapper-sm`]:_e==="small",[`${ae}-affix-wrapper-lg`]:_e==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},fe),wrapper:ce()({[`${ae}-group-rtl`]:qe==="rtl"},fe),groupWrapper:ce()({[`${ae}-group-wrapper-sm`]:_e==="small",[`${ae}-group-wrapper-lg`]:_e==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${Ot}`]:Jt},(0,Ne.Z)(`${ae}-group-wrapper`,We,wt),fe)})}))))})},79809:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Xe}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(22711),ve=z(86013),me=z(82855),pe=z(48755),Ne=z(2171),be=z(83397),le=z(31756),je=z(56553),Ae=z(24971),it=z(70045),ze=z(30292),Oe=z(53075),Ee=z(16931),Pe=z(51636),Fe=z(64910);const Ve=He=>{const{componentCls:rt,paddingLG:st}=He,Je=`${rt}-textarea`;return{[`textarea${rt}`]:{maxWidth:"100%",height:"auto",minHeight:He.controlHeight,lineHeight:He.lineHeight,verticalAlign:"bottom",transition:`all ${He.motionDurationSlow}`,resize:"vertical",[`&${rt}-mouse-active`]:{transition:`all ${He.motionDurationSlow}, height 0s, width 0s`}},[`${rt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Je]:{position:"relative","&-show-count":{[`> ${rt}`]:{height:"100%"},[`${rt}-data-count`]:{position:"absolute",bottom:He.calc(He.fontSize).mul(He.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:He.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${rt},
&-affix-wrapper${Je}-has-feedback ${rt}
`]:{paddingInlineEnd:st},[`&-affix-wrapper${rt}-affix-wrapper`]:{padding:0,[`> textarea${rt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:He.calc(He.controlHeight).sub(He.calc(He.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${rt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${rt}-clear-icon`]:{position:"absolute",insetInlineEnd:He.paddingInline,insetBlockStart:He.paddingXS},[`${Je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:He.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${rt}-affix-wrapper-sm`]:{[`${rt}-suffix`]:{[`${rt}-clear-icon`]:{insetInlineEnd:He.paddingInlineSM}}}}}};var dt=(0,Ee.I$)(["Input","TextArea"],He=>{const rt=(0,Pe.mergeToken)(He,(0,Fe.e)(He));return[Ve(rt)]},Fe.T,{resetFont:!1}),Se=function(He,rt){var st={};for(var Je in He)Object.prototype.hasOwnProperty.call(He,Je)&&rt.indexOf(Je)<0&&(st[Je]=He[Je]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(He);et<Je.length;et++)rt.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(He,Je[et])&&(st[Je[et]]=He[Je[et]]);return st},Xe=(0,y.forwardRef)((He,rt)=>{var st;const{prefixCls:Je,bordered:et=!0,size:ge,disabled:Qe,status:we,allowClear:se,classNames:ft,rootClassName:$e,className:tt,style:Nt,styles:Le,variant:ye,showCount:Et,onMouseDown:Zt,onResize:pt}=He,Ce=Se(He,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:at,direction:qe,allowClear:zt,autoComplete:ut,className:ct,style:lt,classNames:nn,styles:kt}=(0,pe.dj)("textArea"),ae=y.useContext(Ne.Z),ne=Qe!=null?Qe:ae,{status:te,hasFeedback:ie,feedbackIcon:fe}=y.useContext(je.aM),re=(0,me.F)(te,we),ue=y.useRef(null);y.useImperativeHandle(rt,()=>{var Jt;return{resizableTextArea:(Jt=ue.current)===null||Jt===void 0?void 0:Jt.resizableTextArea,focus:on=>{var Ge,Pt;(0,ze.nH)((Pt=(Ge=ue.current)===null||Ge===void 0?void 0:Ge.resizableTextArea)===null||Pt===void 0?void 0:Pt.textArea,on)},blur:()=>{var on;return(on=ue.current)===null||on===void 0?void 0:on.blur()}}});const Me=at("input",Je),gt=(0,be.Z)(Me),[_e,ke,ot]=(0,Oe.TI)(Me,$e),[ht]=dt(Me,gt),{compactSize:wt,compactItemClassnames:Ze}=(0,it.ri)(Me,qe),We=(0,le.Z)(Jt=>{var on;return(on=ge!=null?ge:wt)!==null&&on!==void 0?on:Jt}),[Mt,Ut]=(0,Ae.Z)("textArea",ye,et),cn=(0,ve.Z)(se!=null?se:zt),[ln,_t]=y.useState(!1),[fn,qt]=y.useState(!1),Ye=Jt=>{_t(!0),Zt==null||Zt(Jt);const on=()=>{_t(!1),document.removeEventListener("mouseup",on)};document.addEventListener("mouseup",on)},Ot=Jt=>{var on,Ge;if(pt==null||pt(Jt),ln&&typeof getComputedStyle=="function"){const Pt=(Ge=(on=ue.current)===null||on===void 0?void 0:on.nativeElement)===null||Ge===void 0?void 0:Ge.querySelector("textarea");Pt&&getComputedStyle(Pt).resize==="both"&&qt(!0)}};return _e(ht(y.createElement(Re.default,Object.assign({autoComplete:ut},Ce,{style:Object.assign(Object.assign({},lt),Nt),styles:Object.assign(Object.assign({},kt),Le),disabled:ne,allowClear:cn,className:ce()(ot,gt,tt,$e,Ze,ct,fn&&`${Me}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ft),nn),{textarea:ce()({[`${Me}-sm`]:We==="small",[`${Me}-lg`]:We==="large"},ke,ft==null?void 0:ft.textarea,nn.textarea,ln&&`${Me}-mouse-active`),variant:ce()({[`${Me}-${Mt}`]:Ut},(0,me.Z)(Me,re)),affixWrapper:ce()(`${Me}-textarea-affix-wrapper`,{[`${Me}-affix-wrapper-rtl`]:qe==="rtl",[`${Me}-affix-wrapper-sm`]:We==="small",[`${Me}-affix-wrapper-lg`]:We==="large",[`${Me}-textarea-show-count`]:Et||((st=He.count)===null||st===void 0?void 0:st.show)},ke)}),prefixCls:Me,suffix:ie&&y.createElement("span",{className:`${Me}-textarea-suffix`},fe),showCount:Et,ref:ue,onResize:Ot,onMouseDown:Ye}))))})},23826:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return he}});var y=z(59301);function he(ce,Re){const ve=(0,y.useRef)([]),me=()=>{ve.current.push(setTimeout(()=>{var pe,Ne,be,le;!((pe=ce.current)===null||pe===void 0)&&pe.input&&((Ne=ce.current)===null||Ne===void 0?void 0:Ne.input.getAttribute("type"))==="password"&&(!((be=ce.current)===null||be===void 0)&&be.input.hasAttribute("value"))&&((le=ce.current)===null||le===void 0||le.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(Re&&me(),()=>ve.current.forEach(pe=>{pe&&clearTimeout(pe)})),[]),me}},37568:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return nn}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(48755),ve=z(56553),me=z(53075),Ne=kt=>{const{getPrefixCls:ae,direction:ne}=(0,y.useContext)(Re.E_),{prefixCls:te,className:ie}=kt,fe=ae("input-group",te),re=ae("input"),[ue,Me,gt]=(0,me.ZP)(re),_e=ce()(fe,gt,{[`${fe}-lg`]:kt.size==="large",[`${fe}-sm`]:kt.size==="small",[`${fe}-compact`]:kt.compact,[`${fe}-rtl`]:ne==="rtl"},Me,ie),ke=(0,y.useContext)(ve.aM),ot=(0,y.useMemo)(()=>Object.assign(Object.assign({},ke),{isFormItemInput:!1}),[ke]);return ue(y.createElement("span",{className:_e,style:kt.style,onMouseEnter:kt.onMouseEnter,onMouseLeave:kt.onMouseLeave,onFocus:kt.onFocus,onBlur:kt.onBlur},y.createElement(ve.aM.Provider,{value:ot},kt.children)))},be=z(49397),le=z(77654),je=z(6089),Ae=z(26112),it=z(82855),ze=z(31756),Oe=z(16931),Ee=z(51636),Pe=z(64910);const Fe=kt=>{const{componentCls:ae,paddingXS:ne}=kt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:kt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:kt.calc(kt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:kt.paddingXS}}}};var Ve=(0,Oe.I$)(["Input","OTP"],kt=>{const ae=(0,Ee.mergeToken)(kt,(0,Pe.e)(kt));return[Fe(ae)]},Pe.T),dt=z(16089),Se=function(kt,ae){var ne={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(ne[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(ne[te[ie]]=kt[te[ie]]);return ne},Xe=y.forwardRef((kt,ae)=>{const{value:ne,onChange:te,onActiveChange:ie,index:fe,mask:re}=kt,ue=Se(kt,["value","onChange","onActiveChange","index","mask"]),Me=ne&&typeof re=="string"?re:ne,gt=wt=>{te(fe,wt.target.value)},_e=y.useRef(null);y.useImperativeHandle(ae,()=>_e.current);const ke=()=>{(0,dt.Z)(()=>{var wt;const Ze=(wt=_e.current)===null||wt===void 0?void 0:wt.input;document.activeElement===Ze&&Ze&&Ze.select()})},ot=wt=>{const{key:Ze,ctrlKey:We,metaKey:Mt}=wt;Ze==="ArrowLeft"?ie(fe-1):Ze==="ArrowRight"?ie(fe+1):Ze==="z"&&(We||Mt)&&wt.preventDefault(),ke()},ht=wt=>{wt.key==="Backspace"&&!ne&&ie(fe-1),ke()};return y.createElement(be.Z,Object.assign({type:re===!0?"password":"text"},ue,{ref:_e,value:Me,onInput:gt,onFocus:ke,onKeyDown:ot,onKeyUp:ht,onMouseDown:ke,onMouseUp:ke}))}),He=function(kt,ae){var ne={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(ne[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(ne[te[ie]]=kt[te[ie]]);return ne};function rt(kt){return(kt||"").split("")}const st=kt=>{const{index:ae,prefixCls:ne,separator:te}=kt,ie=typeof te=="function"?te(ae):te;return ie?y.createElement("span",{className:`${ne}-separator`},ie):null};var et=y.forwardRef((kt,ae)=>{const{prefixCls:ne,length:te=6,size:ie,defaultValue:fe,value:re,onChange:ue,formatter:Me,separator:gt,variant:_e,disabled:ke,status:ot,autoFocus:ht,mask:wt,type:Ze,onInput:We,inputMode:Mt}=kt,Ut=He(kt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:cn,direction:ln}=y.useContext(Re.E_),_t=cn("otp",ne),fn=(0,Ae.Z)(Ut,{aria:!0,data:!0,attr:!0}),[qt,Ye,Ot]=Ve(_t),Jt=(0,ze.Z)(Gt=>ie!=null?ie:Gt),on=y.useContext(ve.aM),Ge=(0,it.F)(on.status,ot),Pt=y.useMemo(()=>Object.assign(Object.assign({},on),{status:Ge,hasFeedback:!1,feedbackIcon:null}),[on,Ge]),jt=y.useRef(null),vt=y.useRef({});y.useImperativeHandle(ae,()=>({focus:()=>{var Gt;(Gt=vt.current[0])===null||Gt===void 0||Gt.focus()},blur:()=>{var Gt;for(let tn=0;tn<te;tn+=1)(Gt=vt.current[tn])===null||Gt===void 0||Gt.blur()},nativeElement:jt.current}));const Lt=Gt=>Me?Me(Gt):Gt,[Rt,sn]=y.useState(()=>rt(Lt(fe||"")));y.useEffect(()=>{re!==void 0&&sn(rt(re))},[re]);const Sn=(0,je.Z)(Gt=>{sn(Gt),We&&We(Gt),ue&&Gt.length===te&&Gt.every(tn=>tn)&&Gt.some((tn,Wt)=>Rt[Wt]!==tn)&&ue(Gt.join(""))}),un=(0,je.Z)((Gt,tn)=>{let Wt=(0,le.Z)(Rt);for(let an=0;an<Gt;an+=1)Wt[an]||(Wt[an]="");tn.length<=1?Wt[Gt]=tn:Wt=Wt.slice(0,Gt).concat(rt(tn)),Wt=Wt.slice(0,te);for(let an=Wt.length-1;an>=0&&!Wt[an];an-=1)Wt.pop();const mn=Lt(Wt.map(an=>an||" ").join(""));return Wt=rt(mn).map((an,yn)=>an===" "&&!Wt[yn]?Wt[yn]:an),Wt}),Cn=(Gt,tn)=>{var Wt;const mn=un(Gt,tn),an=Math.min(Gt+tn.length,te-1);an!==Gt&&mn[Gt]!==void 0&&((Wt=vt.current[an])===null||Wt===void 0||Wt.focus()),Sn(mn)},Ct=Gt=>{var tn;(tn=vt.current[Gt])===null||tn===void 0||tn.focus()},It={variant:_e,disabled:ke,status:Ge,mask:wt,type:Ze,inputMode:Mt};return qt(y.createElement("div",Object.assign({},fn,{ref:jt,className:ce()(_t,{[`${_t}-sm`]:Jt==="small",[`${_t}-lg`]:Jt==="large",[`${_t}-rtl`]:ln==="rtl"},Ot,Ye)}),y.createElement(ve.aM.Provider,{value:Pt},Array.from({length:te}).map((Gt,tn)=>{const Wt=`otp-${tn}`,mn=Rt[tn]||"";return y.createElement(y.Fragment,{key:Wt},y.createElement(Xe,Object.assign({ref:an=>{vt.current[tn]=an},index:tn,size:Jt,htmlSize:1,className:`${_t}-input`,onChange:Cn,value:mn,onActiveChange:Ct,autoFocus:tn===0&&ht},It)),tn<te-1&&y.createElement(st,{separator:gt,index:tn,prefixCls:_t}))}))))}),ge=z(73331),Qe=z(15277),we=z(2738),se=z(8654),ft=z(2171),$e=z(23826),tt=function(kt,ae){var ne={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(ne[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(ne[te[ie]]=kt[te[ie]]);return ne};const Nt=kt=>kt?y.createElement(Qe.Z,null):y.createElement(ge.Z,null),Le={click:"onClick",hover:"onMouseOver"};var Et=y.forwardRef((kt,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:ie=!0,iconRender:fe=Nt}=kt,re=y.useContext(ft.Z),ue=ne!=null?ne:re,Me=typeof ie=="object"&&ie.visible!==void 0,[gt,_e]=(0,y.useState)(()=>Me?ie.visible:!1),ke=(0,y.useRef)(null);y.useEffect(()=>{Me&&_e(ie.visible)},[Me,ie]);const ot=(0,$e.Z)(ke),ht=()=>{var Jt;if(ue)return;gt&&ot();const on=!gt;_e(on),typeof ie=="object"&&((Jt=ie.onVisibleChange)===null||Jt===void 0||Jt.call(ie,on))},wt=Jt=>{const on=Le[te]||"",Ge=fe(gt),Pt={[on]:ht,className:`${Jt}-icon`,key:"passwordIcon",onMouseDown:jt=>{jt.preventDefault()},onMouseUp:jt=>{jt.preventDefault()}};return y.cloneElement(y.isValidElement(Ge)?Ge:y.createElement("span",null,Ge),Pt)},{className:Ze,prefixCls:We,inputPrefixCls:Mt,size:Ut}=kt,cn=tt(kt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ln}=y.useContext(Re.E_),_t=ln("input",Mt),fn=ln("input-password",We),qt=ie&&wt(fn),Ye=ce()(fn,Ze,{[`${fn}-${Ut}`]:!!Ut}),Ot=Object.assign(Object.assign({},(0,we.Z)(cn,["suffix","iconRender","visibilityToggle"])),{type:gt?"text":"password",className:Ye,prefixCls:_t,suffix:qt});return Ut&&(Ot.size=Ut),y.createElement(be.Z,Object.assign({ref:(0,se.sQ)(ae,ke)},Ot))}),Zt=z(47472),pt=z(22703),Ce=z(7939),at=z(70045),qe=function(kt,ae){var ne={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(ne[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(ne[te[ie]]=kt[te[ie]]);return ne},ut=y.forwardRef((kt,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:ie,size:fe,suffix:re,enterButton:ue=!1,addonAfter:Me,loading:gt,disabled:_e,onSearch:ke,onChange:ot,onCompositionStart:ht,onCompositionEnd:wt}=kt,Ze=qe(kt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:We,direction:Mt}=y.useContext(Re.E_),Ut=y.useRef(!1),cn=We("input-search",ne),ln=We("input",te),{compactSize:_t}=(0,at.ri)(cn,Mt),fn=(0,ze.Z)(Cn=>{var Ct;return(Ct=fe!=null?fe:_t)!==null&&Ct!==void 0?Ct:Cn}),qt=y.useRef(null),Ye=Cn=>{Cn!=null&&Cn.target&&Cn.type==="click"&&ke&&ke(Cn.target.value,Cn,{source:"clear"}),ot==null||ot(Cn)},Ot=Cn=>{var Ct;document.activeElement===((Ct=qt.current)===null||Ct===void 0?void 0:Ct.input)&&Cn.preventDefault()},Jt=Cn=>{var Ct,It;ke&&ke((It=(Ct=qt.current)===null||Ct===void 0?void 0:Ct.input)===null||It===void 0?void 0:It.value,Cn,{source:"input"})},on=Cn=>{Ut.current||gt||Jt(Cn)},Ge=typeof ue=="boolean"?y.createElement(Zt.Z,null):null,Pt=`${cn}-button`;let jt;const vt=ue||{},Lt=vt.type&&vt.type.__ANT_BUTTON===!0;Lt||vt.type==="button"?jt=(0,pt.Tm)(vt,Object.assign({onMouseDown:Ot,onClick:Cn=>{var Ct,It;(It=(Ct=vt==null?void 0:vt.props)===null||Ct===void 0?void 0:Ct.onClick)===null||It===void 0||It.call(Ct,Cn),Jt(Cn)},key:"enterButton"},Lt?{className:Pt,size:fn}:{})):jt=y.createElement(Ce.ZP,{className:Pt,type:ue?"primary":void 0,size:fn,disabled:_e,key:"enterButton",onMouseDown:Ot,onClick:Jt,loading:gt,icon:Ge},ue),Me&&(jt=[jt,(0,pt.Tm)(Me,{key:"addonAfter"})]);const Rt=ce()(cn,{[`${cn}-rtl`]:Mt==="rtl",[`${cn}-${fn}`]:!!fn,[`${cn}-with-button`]:!!ue},ie),sn=Object.assign(Object.assign({},Ze),{className:Rt,prefixCls:ln,type:"search"}),Sn=Cn=>{Ut.current=!0,ht==null||ht(Cn)},un=Cn=>{Ut.current=!1,wt==null||wt(Cn)};return y.createElement(be.Z,Object.assign({ref:(0,se.sQ)(qt,ae),onPressEnter:on},sn,{size:fn,onCompositionStart:Sn,onCompositionEnd:un,addonAfter:jt,suffix:re,onChange:Ye,disabled:_e}))}),ct=z(79809);const lt=be.Z;lt.Group=Ne,lt.Search=ut,lt.TextArea=ct.Z,lt.Password=Et,lt.OTP=et;var nn=lt},24303:function(En,Vt,z){"use strict";z.d(Vt,{D:function(){return He},Z:function(){return Je}});var y=z(59301),he=z(60499),ce={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"},Re=ce,ve=z(7657),me=function(ge,Qe){return y.createElement(ve.Z,(0,he.Z)({},ge,{ref:Qe,icon:Re}))},pe=y.forwardRef(me),Ne=pe,be=z(33853),le=z(38819),je=z(92310),Ae=z.n(je),it=z(2738),ze=z(48755),Oe=z(6989),Ee=z(36237),Pe=z(48923),Fe=z(16931);const Ve=et=>{const{componentCls:ge,siderBg:Qe,motionDurationMid:we,motionDurationSlow:se,antCls:ft,triggerHeight:$e,triggerColor:tt,triggerBg:Nt,headerHeight:Le,zeroTriggerWidth:ye,zeroTriggerHeight:Et,borderRadiusLG:Zt,lightSiderBg:pt,lightTriggerColor:Ce,lightTriggerBg:at,bodyBg:qe}=et;return{[ge]:{position:"relative",minWidth:0,background:Qe,transition:`all ${we}, background 0s`,"&-has-trigger":{paddingBottom:$e},"&-right":{order:1},[`${ge}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ft}-menu${ft}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ge}-children`]:{overflow:"hidden"},[`${ge}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:$e,color:tt,lineHeight:(0,Ee.unit)($e),textAlign:"center",background:Nt,cursor:"pointer",transition:`all ${we}`},[`${ge}-zero-width-trigger`]:{position:"absolute",top:Le,insetInlineEnd:et.calc(ye).mul(-1).equal(),zIndex:1,width:ye,height:Et,color:tt,fontSize:et.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Qe,borderRadius:`0 ${(0,Ee.unit)(Zt)} ${(0,Ee.unit)(Zt)} 0`,cursor:"pointer",transition:`background ${se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:et.calc(ye).mul(-1).equal(),borderRadius:`${(0,Ee.unit)(Zt)} 0 0 ${(0,Ee.unit)(Zt)}`}},"&-light":{background:pt,[`${ge}-trigger`]:{color:Ce,background:at},[`${ge}-zero-width-trigger`]:{color:Ce,background:at,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var dt=(0,Fe.I$)(["Layout","Sider"],et=>[Ve(et)],Pe.eh,{deprecatedTokens:Pe.jn}),Se=function(et,ge){var Qe={};for(var we in et)Object.prototype.hasOwnProperty.call(et,we)&&ge.indexOf(we)<0&&(Qe[we]=et[we]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,we=Object.getOwnPropertySymbols(et);se<we.length;se++)ge.indexOf(we[se])<0&&Object.prototype.propertyIsEnumerable.call(et,we[se])&&(Qe[we[se]]=et[we[se]]);return Qe};const Ie={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Xe=et=>!Number.isNaN(Number.parseFloat(et))&&isFinite(et),He=y.createContext({}),rt=(()=>{let et=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return et+=1,`${ge}${et}`}})();var Je=y.forwardRef((et,ge)=>{const{prefixCls:Qe,className:we,trigger:se,children:ft,defaultCollapsed:$e=!1,theme:tt="dark",style:Nt={},collapsible:Le=!1,reverseArrow:ye=!1,width:Et=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:pt,breakpoint:Ce,onCollapse:at,onBreakpoint:qe}=et,zt=Se(et,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ut}=(0,y.useContext)(Oe.V),[ct,lt]=(0,y.useState)("collapsed"in et?et.collapsed:$e),[nn,kt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in et&&lt(et.collapsed)},[et.collapsed]);const ae=(fn,qt)=>{"collapsed"in et||lt(fn),at==null||at(fn,qt)},{getPrefixCls:ne,direction:te}=(0,y.useContext)(ze.E_),ie=ne("layout-sider",Qe),[fe,re,ue]=dt(ie),Me=(0,y.useRef)(null);Me.current=fn=>{kt(fn.matches),qe==null||qe(fn.matches),ct!==fn.matches&&ae(fn.matches,"responsive")},(0,y.useEffect)(()=>{function fn(Ye){return Me.current(Ye)}let qt;if(typeof window!="undefined"){const{matchMedia:Ye}=window;if(Ye&&Ce&&Ce in Ie){qt=Ye(`screen and (max-width: ${Ie[Ce]})`);try{qt.addEventListener("change",fn)}catch(Ot){qt.addListener(fn)}fn(qt)}}return()=>{try{qt==null||qt.removeEventListener("change",fn)}catch(Ye){qt==null||qt.removeListener(fn)}}},[Ce]),(0,y.useEffect)(()=>{const fn=rt("ant-sider-");return ut.addSider(fn),()=>ut.removeSider(fn)},[]);const gt=()=>{ae(!ct,"clickTrigger")},_e=(0,it.Z)(zt,["collapsed"]),ke=ct?Zt:Et,ot=Xe(ke)?`${ke}px`:String(ke),ht=parseFloat(String(Zt||0))===0?y.createElement("span",{onClick:gt,className:Ae()(`${ie}-zero-width-trigger`,`${ie}-zero-width-trigger-${ye?"right":"left"}`),style:pt},se||y.createElement(Ne,null)):null,wt=te==="rtl"==!ye,Mt={expanded:wt?y.createElement(le.Z,null):y.createElement(be.Z,null),collapsed:wt?y.createElement(be.Z,null):y.createElement(le.Z,null)}[ct?"collapsed":"expanded"],Ut=se!==null?ht||y.createElement("div",{className:`${ie}-trigger`,onClick:gt,style:{width:ot}},se||Mt):null,cn=Object.assign(Object.assign({},Nt),{flex:`0 0 ${ot}`,maxWidth:ot,minWidth:ot,width:ot}),ln=Ae()(ie,`${ie}-${tt}`,{[`${ie}-collapsed`]:!!ct,[`${ie}-has-trigger`]:Le&&se!==null&&!ht,[`${ie}-below`]:!!nn,[`${ie}-zero-width`]:parseFloat(ot)===0},we,re,ue),_t=y.useMemo(()=>({siderCollapsed:ct}),[ct]);return fe(y.createElement(He.Provider,{value:_t},y.createElement("aside",Object.assign({className:ln},_e,{style:cn,ref:ge}),y.createElement("div",{className:`${ie}-children`},ft),Le||nn&&ht?Ut:null)))})},6989:function(En,Vt,z){"use strict";z.d(Vt,{V:function(){return he}});var y=z(59301);const he=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(En,Vt,z){"use strict";z.d(Vt,{eh:function(){return Re},jn:function(){return ve}});var y=z(36237),he=z(16931);const ce=me=>{const{antCls:pe,componentCls:Ne,colorText:be,footerBg:le,headerHeight:je,headerPadding:Ae,headerColor:it,footerPadding:ze,fontSize:Oe,bodyBg:Ee,headerBg:Pe}=me;return{[Ne]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ee,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ne}-header`]:{height:je,padding:Ae,color:it,lineHeight:(0,y.unit)(je),background:Pe,[`${pe}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:ze,color:be,fontSize:Oe,background:le},[`${Ne}-content`]:{flex:"auto",color:be,minHeight:0}}},Re=me=>{const{colorBgLayout:pe,controlHeight:Ne,controlHeightLG:be,colorText:le,controlHeightSM:je,marginXXS:Ae,colorTextLightSolid:it,colorBgContainer:ze}=me,Oe=be*1.25;return{colorBgHeader:"#001529",colorBgBody:pe,colorBgTrigger:"#002140",bodyBg:pe,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${Oe}px`,headerColor:le,footerPadding:`${je}px ${Oe}px`,footerBg:pe,siderBg:"#001529",triggerHeight:be+Ae*2,triggerBg:"#002140",triggerColor:it,zeroTriggerWidth:be,zeroTriggerHeight:be,lightSiderBg:ze,lightTriggerBg:ze,lightTriggerColor:le}},ve=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vt.ZP=(0,he.I$)("Layout",me=>[ce(me)],Re,{deprecatedTokens:ve})},78857:function(En,Vt,z){"use strict";z.d(Vt,{J:function(){return me}});var y=z(59301),he=z(8654),ce=z(62487),Re=function(pe,Ne){var be={};for(var le in pe)Object.prototype.hasOwnProperty.call(pe,le)&&Ne.indexOf(le)<0&&(be[le]=pe[le]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,le=Object.getOwnPropertySymbols(pe);je<le.length;je++)Ne.indexOf(le[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,le[je])&&(be[le[je]]=pe[le[je]]);return be};const ve=y.createContext(null),me=y.forwardRef((pe,Ne)=>{const{children:be}=pe,le=Re(pe,["children"]),je=y.useContext(ve),Ae=y.useMemo(()=>Object.assign(Object.assign({},je),le),[je,le.prefixCls,le.mode,le.selectable,le.rootClassName]),it=(0,he.t4)(be),ze=(0,he.x1)(Ne,it?(0,he.C4)(be):null);return y.createElement(ve.Provider,{value:Ae},y.createElement(ce.Z,{space:!0},it?y.cloneElement(be,{ref:ze}):be))});Vt.Z=ve},93041:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return fe}});var y=z(59301),he=z(28321),ce=z(24303),Re=z(18785),ve=z(92310),me=z.n(ve),pe=z(6089),Ne=z(2738),be=z(86641),le=z(22703),je=z(48755),Ae=z(83397),ze=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Oe=function(re,ue){var Me={};for(var gt in re)Object.prototype.hasOwnProperty.call(re,gt)&&ue.indexOf(gt)<0&&(Me[gt]=re[gt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,gt=Object.getOwnPropertySymbols(re);_e<gt.length;_e++)ue.indexOf(gt[_e])<0&&Object.prototype.propertyIsEnumerable.call(re,gt[_e])&&(Me[gt[_e]]=re[gt[_e]]);return Me},Pe=re=>{const{prefixCls:ue,className:Me,dashed:gt}=re,_e=Oe(re,["prefixCls","className","dashed"]),{getPrefixCls:ke}=y.useContext(je.E_),ot=ke("menu",ue),ht=me()({[`${ot}-item-divider-dashed`]:!!gt},Me);return y.createElement(he.iz,Object.assign({className:ht},_e))},Fe=z(11592),Ve=z(25399),Se=re=>{var ue;const{className:Me,children:gt,icon:_e,title:ke,danger:ot,extra:ht}=re,{prefixCls:wt,firstLevel:Ze,direction:We,disableMenuItemTitleTooltip:Mt,inlineCollapsed:Ut}=y.useContext(ze),cn=Ot=>{const Jt=gt==null?void 0:gt[0],on=y.createElement("span",{className:me()(`${wt}-title-content`,{[`${wt}-title-content-with-extra`]:!!ht||ht===0})},gt);return(!_e||y.isValidElement(gt)&&gt.type==="span")&&gt&&Ot&&Ze&&typeof Jt=="string"?y.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Jt.charAt(0)):on},{siderCollapsed:ln}=y.useContext(ce.D);let _t=ke;typeof ke=="undefined"?_t=Ze?gt:"":ke===!1&&(_t="");const fn={title:_t};!ln&&!Ut&&(fn.title=null,fn.open=!1);const qt=(0,Fe.Z)(gt).length;let Ye=y.createElement(he.ck,Object.assign({},(0,Ne.Z)(re,["title","icon","danger"]),{className:me()({[`${wt}-item-danger`]:ot,[`${wt}-item-only-child`]:(_e?qt+1:qt)===1},Me),title:typeof ke=="string"?ke:void 0}),(0,le.Tm)(_e,{className:me()(y.isValidElement(_e)?(ue=_e.props)===null||ue===void 0?void 0:ue.className:"",`${wt}-item-icon`)}),cn(Ut));return Mt||(Ye=y.createElement(Ve.Z,Object.assign({},fn,{placement:We==="rtl"?"left":"right",classNames:{root:`${wt}-inline-collapsed-tooltip`}}),Ye)),Ye},Ie=z(78857),Xe=z(36237),He=z(17835),rt=z(63356),st=z(34961),Je=z(46e3),et=z(34925),ge=z(16931),Qe=z(51636),se=re=>{const{componentCls:ue,motionDurationSlow:Me,horizontalLineHeight:gt,colorSplit:_e,lineWidth:ke,lineType:ot,itemPaddingInline:ht}=re;return{[`${ue}-horizontal`]:{lineHeight:gt,border:0,borderBottom:`${(0,Xe.unit)(ke)} ${ot} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ue}-item, ${ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ht},[`> ${ue}-item:hover,
> ${ue}-item-active,
> ${ue}-submenu ${ue}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ue}-item, ${ue}-submenu-title`]:{transition:[`border-color ${Me}`,`background ${Me}`].join(",")},[`${ue}-submenu-arrow`]:{display:"none"}}}},$e=re=>{let{componentCls:ue,menuArrowOffset:Me,calc:gt}=re;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(${(0,Xe.unit)(gt(Me).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Xe.unit)(Me)})`}}}}};const tt=re=>Object.assign({},(0,rt.oN)(re));var Le=(re,ue)=>{const{componentCls:Me,itemColor:gt,itemSelectedColor:_e,subMenuItemSelectedColor:ke,groupTitleColor:ot,itemBg:ht,subMenuItemBg:wt,itemSelectedBg:Ze,activeBarHeight:We,activeBarWidth:Mt,activeBarBorderWidth:Ut,motionDurationSlow:cn,motionEaseInOut:ln,motionEaseOut:_t,itemPaddingInline:fn,motionDurationMid:qt,itemHoverColor:Ye,lineType:Ot,colorSplit:Jt,itemDisabledColor:on,dangerItemColor:Ge,dangerItemHoverColor:Pt,dangerItemSelectedColor:jt,dangerItemActiveBg:vt,dangerItemSelectedBg:Lt,popupBg:Rt,itemHoverBg:sn,itemActiveBg:Sn,menuSubMenuBg:un,horizontalItemSelectedColor:Cn,horizontalItemSelectedBg:Ct,horizontalItemBorderRadius:It,horizontalItemHoverBg:Gt}=re;return{[`${Me}-${ue}, ${Me}-${ue} > ${Me}`]:{color:gt,background:ht,[`&${Me}-root:focus-visible`]:Object.assign({},tt(re)),[`${Me}-item`]:{"&-group-title, &-extra":{color:ot}},[`${Me}-submenu-selected > ${Me}-submenu-title`]:{color:ke},[`${Me}-item, ${Me}-submenu-title`]:{color:gt,[`&:not(${Me}-item-disabled):focus-visible`]:Object.assign({},tt(re))},[`${Me}-item-disabled, ${Me}-submenu-disabled`]:{color:`${on} !important`},[`${Me}-item:not(${Me}-item-selected):not(${Me}-submenu-selected)`]:{[`&:hover, > ${Me}-submenu-title:hover`]:{color:Ye}},[`&:not(${Me}-horizontal)`]:{[`${Me}-item:not(${Me}-item-selected)`]:{"&:hover":{backgroundColor:sn},"&:active":{backgroundColor:Sn}},[`${Me}-submenu-title`]:{"&:hover":{backgroundColor:sn},"&:active":{backgroundColor:Sn}}},[`${Me}-item-danger`]:{color:Ge,[`&${Me}-item:hover`]:{[`&:not(${Me}-item-selected):not(${Me}-submenu-selected)`]:{color:Pt}},[`&${Me}-item:active`]:{background:vt}},[`${Me}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Me}-item-selected`]:{color:_e,[`&${Me}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${Me}-item-selected`]:{backgroundColor:Ze,[`&${Me}-item-danger`]:{backgroundColor:Lt}},[`&${Me}-submenu > ${Me}`]:{backgroundColor:un},[`&${Me}-popup > ${Me}`]:{backgroundColor:Rt},[`&${Me}-submenu-popup > ${Me}`]:{backgroundColor:Rt},[`&${Me}-horizontal`]:Object.assign(Object.assign({},ue==="dark"?{borderBottom:0}:{}),{[`> ${Me}-item, > ${Me}-submenu`]:{top:Ut,marginTop:re.calc(Ut).mul(-1).equal(),marginBottom:0,borderRadius:It,"&::after":{position:"absolute",insetInline:fn,bottom:0,borderBottom:`${(0,Xe.unit)(We)} solid transparent`,transition:`border-color ${cn} ${ln}`,content:'""'},"&:hover, &-active, &-open":{background:Gt,"&::after":{borderBottomWidth:We,borderBottomColor:Cn}},"&-selected":{color:Cn,backgroundColor:Ct,"&:hover":{backgroundColor:Ct},"&::after":{borderBottomWidth:We,borderBottomColor:Cn}}}}),[`&${Me}-root`]:{[`&${Me}-inline, &${Me}-vertical`]:{borderInlineEnd:`${(0,Xe.unit)(Ut)} ${Ot} ${Jt}`}},[`&${Me}-inline`]:{[`${Me}-sub${Me}-inline`]:{background:wt},[`${Me}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Xe.unit)(Mt)} solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qt} ${_t}`,`opacity ${qt} ${_t}`].join(","),content:'""'},[`&${Me}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${Me}-selected, ${Me}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qt} ${ln}`,`opacity ${qt} ${ln}`].join(",")}}}}}};const ye=re=>{const{componentCls:ue,itemHeight:Me,itemMarginInline:gt,padding:_e,menuArrowSize:ke,marginXS:ot,itemMarginBlock:ht,itemWidth:wt,itemPaddingInline:Ze}=re,We=re.calc(ke).add(_e).add(ot).equal();return{[`${ue}-item`]:{position:"relative",overflow:"hidden"},[`${ue}-item, ${ue}-submenu-title`]:{height:Me,lineHeight:(0,Xe.unit)(Me),paddingInline:Ze,overflow:"hidden",textOverflow:"ellipsis",marginInline:gt,marginBlock:ht,width:wt},[`> ${ue}-item,
> ${ue}-submenu > ${ue}-submenu-title`]:{height:Me,lineHeight:(0,Xe.unit)(Me)},[`${ue}-item-group-list ${ue}-submenu-title,
${ue}-submenu-title`]:{paddingInlineEnd:We}}};var Zt=re=>{const{componentCls:ue,iconCls:Me,itemHeight:gt,colorTextLightSolid:_e,dropdownWidth:ke,controlHeightLG:ot,motionEaseOut:ht,paddingXL:wt,itemMarginInline:Ze,fontSizeLG:We,motionDurationFast:Mt,motionDurationSlow:Ut,paddingXS:cn,boxShadowSecondary:ln,collapsedWidth:_t,collapsedIconSize:fn}=re,qt={height:gt,lineHeight:(0,Xe.unit)(gt),listStylePosition:"inside",listStyleType:"disc"};return[{[ue]:{"&-inline, &-vertical":Object.assign({[`&${ue}-root`]:{boxShadow:"none"}},ye(re))},[`${ue}-submenu-popup`]:{[`${ue}-vertical`]:Object.assign(Object.assign({},ye(re)),{boxShadow:ln})}},{[`${ue}-submenu-popup ${ue}-vertical${ue}-sub`]:{minWidth:ke,maxHeight:`calc(100vh - ${(0,Xe.unit)(re.calc(ot).mul(2.5).equal())})`,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 ${Ut}`,`background ${Ut}`,`padding ${Mt} ${ht}`].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`]:qt,[`& ${ue}-item-group-title`]:{paddingInlineStart:wt}},[`${ue}-item`]:qt}},{[`${ue}-inline-collapsed`]:{width:_t,[`&${ue}-root`]:{[`${ue}-item, ${ue}-submenu ${ue}-submenu-title`]:{[`> ${ue}-inline-collapsed-noicon`]:{fontSize:We,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% - ${(0,Xe.unit)(re.calc(fn).div(2).equal())} - ${(0,Xe.unit)(Ze)})`,textOverflow:"clip",[`
${ue}-submenu-arrow,
${ue}-submenu-expand-icon
`]:{opacity:0},[`${ue}-item-icon, ${Me}`]:{margin:0,fontSize:fn,lineHeight:(0,Xe.unit)(gt),"+ span":{display:"inline-block",opacity:0}}},[`${ue}-item-icon, ${Me}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ue}-item-icon, ${Me}`]:{display:"none"},"a, a:hover":{color:_e}},[`${ue}-item-group-title`]:Object.assign(Object.assign({},rt.vS),{paddingInline:cn})}}]};const pt=re=>{const{componentCls:ue,motionDurationSlow:Me,motionDurationMid:gt,motionEaseInOut:_e,motionEaseOut:ke,iconCls:ot,iconSize:ht,iconMarginInlineEnd:wt}=re;return{[`${ue}-item, ${ue}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Me}`,`background ${Me}`,`padding calc(${Me} + 0.1s) ${_e}`].join(","),[`${ue}-item-icon, ${ot}`]:{minWidth:ht,fontSize:ht,transition:[`font-size ${gt} ${ke}`,`margin ${Me} ${_e}`,`color ${Me}`].join(","),"+ span":{marginInlineStart:wt,opacity:1,transition:[`opacity ${Me} ${_e}`,`margin ${Me}`,`color ${Me}`].join(",")}},[`${ue}-item-icon`]:Object.assign({},(0,rt.Ro)()),[`&${ue}-item-only-child`]:{[`> ${ot}, > ${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${ue}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ce=re=>{const{componentCls:ue,motionDurationSlow:Me,motionEaseInOut:gt,borderRadius:_e,menuArrowSize:ke,menuArrowOffset:ot}=re;return{[`${ue}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Me} ${gt}, opacity ${Me}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(ke).mul(.6).equal(),height:re.calc(ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${Me} ${gt}`,`transform ${Me} ${gt}`,`top ${Me} ${gt}`,`color ${Me} ${gt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Xe.unit)(re.calc(ot).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Xe.unit)(ot)})`}}}}},at=re=>{const{antCls:ue,componentCls:Me,fontSize:gt,motionDurationSlow:_e,motionDurationMid:ke,motionEaseInOut:ot,paddingXS:ht,padding:wt,colorSplit:Ze,lineWidth:We,zIndexPopup:Mt,borderRadiusLG:Ut,subMenuItemBorderRadius:cn,menuArrowSize:ln,menuArrowOffset:_t,lineType:fn,groupTitleLineHeight:qt,groupTitleFontSize:Ye}=re;return[{"":{[Me]:Object.assign(Object.assign({},(0,rt.dF)()),{"&-hidden":{display:"none"}})},[`${Me}-submenu-hidden`]:{display:"none"}},{[Me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rt.Wf)(re)),(0,rt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:gt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Me}-item`]:{flex:"none"}},[`${Me}-item, ${Me}-submenu, ${Me}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${Me}-item-group-title`]:{padding:`${(0,Xe.unit)(ht)} ${(0,Xe.unit)(wt)}`,fontSize:Ye,lineHeight:qt,transition:`all ${_e}`},[`&-horizontal ${Me}-submenu`]:{transition:[`border-color ${_e} ${ot}`,`background ${_e} ${ot}`].join(",")},[`${Me}-submenu, ${Me}-submenu-inline`]:{transition:[`border-color ${_e} ${ot}`,`background ${_e} ${ot}`,`padding ${ke} ${ot}`].join(",")},[`${Me}-submenu ${Me}-sub`]:{cursor:"initial",transition:[`background ${_e} ${ot}`,`padding ${_e} ${ot}`].join(",")},[`${Me}-title-content`]:{transition:`color ${_e}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ue}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Me}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${Me}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Me}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ze,borderStyle:fn,borderWidth:0,borderTopWidth:We,marginBlock:We,padding:0,"&-dashed":{borderStyle:"dashed"}}}),pt(re)),{[`${Me}-item-group`]:{[`${Me}-item-group-list`]:{margin:0,padding:0,[`${Me}-item, ${Me}-submenu-title`]:{paddingInline:`${(0,Xe.unit)(re.calc(gt).mul(2).equal())} ${(0,Xe.unit)(wt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Mt,borderRadius:Ut,boxShadow:"none",transformOrigin:"0 0",[`&${Me}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Me}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ut},pt(re)),Ce(re)),{[`${Me}-item, ${Me}-submenu > ${Me}-submenu-title`]:{borderRadius:cn},[`${Me}-submenu-title::after`]:{transition:`transform ${_e} ${ot}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),Ce(re)),{[`&-inline-collapsed ${Me}-submenu-arrow,
&-inline ${Me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Xe.unit)(_t)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Xe.unit)(re.calc(_t).mul(-1).equal())})`}},[`${Me}-submenu-open${Me}-submenu-inline > ${Me}-submenu-title > ${Me}-submenu-arrow`]:{transform:`translateY(${(0,Xe.unit)(re.calc(ln).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Xe.unit)(re.calc(_t).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Xe.unit)(_t)})`}}})},{[`${ue}-layout-header`]:{[Me]:{lineHeight:"inherit"}}}]},qe=re=>{var ue,Me,gt;const{colorPrimary:_e,colorError:ke,colorTextDisabled:ot,colorErrorBg:ht,colorText:wt,colorTextDescription:Ze,colorBgContainer:We,colorFillAlter:Mt,colorFillContent:Ut,lineWidth:cn,lineWidthBold:ln,controlItemBgActive:_t,colorBgTextHover:fn,controlHeightLG:qt,lineHeight:Ye,colorBgElevated:Ot,marginXXS:Jt,padding:on,fontSize:Ge,controlHeightSM:Pt,fontSizeLG:jt,colorTextLightSolid:vt,colorErrorHover:Lt}=re,Rt=(ue=re.activeBarWidth)!==null&&ue!==void 0?ue:0,sn=(Me=re.activeBarBorderWidth)!==null&&Me!==void 0?Me:cn,Sn=(gt=re.itemMarginInline)!==null&&gt!==void 0?gt:re.marginXXS,un=new He.FastColor(vt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:wt,itemColor:wt,colorItemTextHover:wt,itemHoverColor:wt,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:Ze,groupTitleColor:Ze,colorItemTextSelected:_e,itemSelectedColor:_e,subMenuItemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:We,itemBg:We,colorItemBgHover:fn,itemHoverBg:fn,colorItemBgActive:Ut,itemActiveBg:_t,colorSubItemBg:Mt,subMenuItemBg:Mt,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Rt,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:cn,activeBarBorderWidth:sn,colorItemTextDisabled:ot,itemDisabledColor:ot,colorDangerItemText:ke,dangerItemColor:ke,colorDangerItemTextHover:ke,dangerItemHoverColor:ke,colorDangerItemTextSelected:ke,dangerItemSelectedColor:ke,colorDangerItemBgActive:ht,dangerItemActiveBg:ht,colorDangerItemBgSelected:ht,dangerItemSelectedBg:ht,itemMarginInline:Sn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:qt,groupTitleLineHeight:Ye,collapsedWidth:qt*2,popupBg:Ot,itemMarginBlock:Jt,itemPaddingInline:on,horizontalLineHeight:`${qt*1.15}px`,iconSize:Ge,iconMarginInlineEnd:Pt-Ge,collapsedIconSize:jt,groupTitleFontSize:Ge,darkItemDisabledColor:new He.FastColor(vt).setA(.25).toRgbString(),darkItemColor:un,darkDangerItemColor:ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vt,darkItemSelectedBg:_e,darkDangerItemSelectedBg:ke,darkItemHoverBg:"transparent",darkGroupTitleColor:un,darkItemHoverColor:vt,darkDangerItemHoverColor:Lt,darkDangerItemSelectedColor:vt,darkDangerItemActiveBg:ke,itemWidth:Rt?`calc(100% + ${sn}px)`:`calc(100% - ${Sn*2}px)`}};var zt=function(re){let ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,ge.I$)("Menu",_e=>{const{colorBgElevated:ke,controlHeightLG:ot,fontSize:ht,darkItemColor:wt,darkDangerItemColor:Ze,darkItemBg:We,darkSubMenuItemBg:Mt,darkItemSelectedColor:Ut,darkItemSelectedBg:cn,darkDangerItemSelectedBg:ln,darkItemHoverBg:_t,darkGroupTitleColor:fn,darkItemHoverColor:qt,darkItemDisabledColor:Ye,darkDangerItemHoverColor:Ot,darkDangerItemSelectedColor:Jt,darkDangerItemActiveBg:on,popupBg:Ge,darkPopupBg:Pt}=_e,jt=_e.calc(ht).div(7).mul(5).equal(),vt=(0,Qe.mergeToken)(_e,{menuArrowSize:jt,menuHorizontalHeight:_e.calc(ot).mul(1.15).equal(),menuArrowOffset:_e.calc(jt).mul(.25).equal(),menuSubMenuBg:ke,calc:_e.calc,popupBg:Ge}),Lt=(0,Qe.mergeToken)(vt,{itemColor:wt,itemHoverColor:qt,groupTitleColor:fn,itemSelectedColor:Ut,subMenuItemSelectedColor:Ut,itemBg:We,popupBg:Pt,subMenuItemBg:Mt,itemActiveBg:"transparent",itemSelectedBg:cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:_t,itemDisabledColor:Ye,dangerItemColor:Ze,dangerItemHoverColor:Ot,dangerItemSelectedColor:Jt,dangerItemActiveBg:on,dangerItemSelectedBg:ln,menuSubMenuBg:Mt,horizontalItemSelectedColor:Ut,horizontalItemSelectedBg:cn});return[at(vt),se(vt),Zt(vt),Le(vt,"light"),Le(Lt,"dark"),$e(vt),(0,st.Z)(vt),(0,Je.oN)(vt,"slide-up"),(0,Je.oN)(vt,"slide-down"),(0,et._y)(vt,"zoom-big")]},qe,{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"]],injectStyle:Me,unitless:{groupTitleLineHeight:!0}})(re,ue)},ut=z(75030),lt=re=>{var ue;const{popupClassName:Me,icon:gt,title:_e,theme:ke}=re,ot=y.useContext(ze),{prefixCls:ht,inlineCollapsed:wt,theme:Ze}=ot,We=(0,he.Xl)();let Mt;if(!gt)Mt=wt&&!We.length&&_e&&typeof _e=="string"?y.createElement("div",{className:`${ht}-inline-collapsed-noicon`},_e.charAt(0)):y.createElement("span",{className:`${ht}-title-content`},_e);else{const ln=y.isValidElement(_e)&&_e.type==="span";Mt=y.createElement(y.Fragment,null,(0,le.Tm)(gt,{className:me()(y.isValidElement(gt)?(ue=gt.props)===null||ue===void 0?void 0:ue.className:"",`${ht}-item-icon`)}),ln?_e:y.createElement("span",{className:`${ht}-title-content`},_e))}const Ut=y.useMemo(()=>Object.assign(Object.assign({},ot),{firstLevel:!1}),[ot]),[cn]=(0,ut.Cn)("Menu");return y.createElement(ze.Provider,{value:Ut},y.createElement(he.Wd,Object.assign({},(0,Ne.Z)(re,["icon"]),{title:Mt,popupClassName:me()(ht,Me,`${ht}-${ke||Ze}`),popupStyle:Object.assign({zIndex:cn},re.popupStyle)})))},nn=function(re,ue){var Me={};for(var gt in re)Object.prototype.hasOwnProperty.call(re,gt)&&ue.indexOf(gt)<0&&(Me[gt]=re[gt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,gt=Object.getOwnPropertySymbols(re);_e<gt.length;_e++)ue.indexOf(gt[_e])<0&&Object.prototype.propertyIsEnumerable.call(re,gt[_e])&&(Me[gt[_e]]=re[gt[_e]]);return Me};function kt(re){return re===null||re===!1}const ae={item:Se,submenu:lt,divider:Pe};var te=(0,y.forwardRef)((re,ue)=>{var Me;const gt=y.useContext(Ie.Z),_e=gt||{},{getPrefixCls:ke,getPopupContainer:ot,direction:ht,menu:wt}=y.useContext(je.E_),Ze=ke(),{prefixCls:We,className:Mt,style:Ut,theme:cn="light",expandIcon:ln,_internalDisableMenuItemTitleTooltip:_t,inlineCollapsed:fn,siderCollapsed:qt,rootClassName:Ye,mode:Ot,selectable:Jt,onClick:on,overflowedIndicatorPopupClassName:Ge}=re,Pt=nn(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jt=(0,Ne.Z)(Pt,["collapsedWidth"]);(Me=_e.validator)===null||Me===void 0||Me.call(_e,{mode:Ot});const vt=(0,pe.Z)(function(){var an;on==null||on.apply(void 0,arguments),(an=_e.onClick)===null||an===void 0||an.call(_e)}),Lt=_e.mode||Ot,Rt=Jt!=null?Jt:_e.selectable,sn=fn!=null?fn:qt,Sn={horizontal:{motionName:`${Ze}-slide-up`},inline:(0,be.Z)(Ze),other:{motionName:`${Ze}-zoom-big`}},un=ke("menu",We||_e.prefixCls),Cn=(0,Ae.Z)(un),[Ct,It,Gt]=zt(un,Cn,!gt),tn=me()(`${un}-${cn}`,wt==null?void 0:wt.className,Mt),Wt=y.useMemo(()=>{var an,yn;if(typeof ln=="function"||kt(ln))return ln||null;if(typeof _e.expandIcon=="function"||kt(_e.expandIcon))return _e.expandIcon||null;if(typeof(wt==null?void 0:wt.expandIcon)=="function"||kt(wt==null?void 0:wt.expandIcon))return(wt==null?void 0:wt.expandIcon)||null;const jn=(an=ln!=null?ln:_e==null?void 0:_e.expandIcon)!==null&&an!==void 0?an:wt==null?void 0:wt.expandIcon;return(0,le.Tm)(jn,{className:me()(`${un}-submenu-expand-icon`,y.isValidElement(jn)?(yn=jn.props)===null||yn===void 0?void 0:yn.className:void 0)})},[ln,_e==null?void 0:_e.expandIcon,wt==null?void 0:wt.expandIcon,un]),mn=y.useMemo(()=>({prefixCls:un,inlineCollapsed:sn||!1,direction:ht,firstLevel:!0,theme:cn,mode:Lt,disableMenuItemTitleTooltip:_t}),[un,sn,ht,_t,cn]);return Ct(y.createElement(Ie.Z.Provider,{value:null},y.createElement(ze.Provider,{value:mn},y.createElement(he.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:y.createElement(Re.Z,null),overflowedIndicatorPopupClassName:me()(un,`${un}-${cn}`,Ge),mode:Lt,selectable:Rt,onClick:vt},jt,{inlineCollapsed:sn,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Ut),className:tn,prefixCls:un,direction:ht,defaultMotions:Sn,expandIcon:Wt,ref:ue,rootClassName:me()(Ye,It,_e.rootClassName,Gt,Cn),_internalComponents:ae})))))});const ie=(0,y.forwardRef)((re,ue)=>{const Me=(0,y.useRef)(null),gt=y.useContext(ce.D);return(0,y.useImperativeHandle)(ue,()=>({menu:Me.current,focus:_e=>{var ke;(ke=Me.current)===null||ke===void 0||ke.focus(_e)}})),y.createElement(te,Object.assign({ref:Me},re,gt))});ie.Item=Se,ie.SubMenu=lt,ie.Divider=Pe,ie.ItemGroup=he.BW;var fe=ie},31709:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return wt}});var y=z(59301),he=z(60499),ce={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"},Re=ce,ve=z(7657),me=function(We,Mt){return y.createElement(ve.Z,(0,he.Z)({},We,{ref:Mt,icon:Re}))},pe=y.forwardRef(me),Ne=pe,be=z(49198),le=z(33853),je=z(38819),Ae=z(92310),it=z.n(Ae),ze=z(18642),Oe=z(43749),Ee=z(85899),Pe=z(72190),Fe=z(18929),Ve=z(10228),dt=z(26112),Se=z(48736),Ie=z(17119),Xe=[10,20,50,100],He=function(We){var Mt=We.pageSizeOptions,Ut=Mt===void 0?Xe:Mt,cn=We.locale,ln=We.changeSize,_t=We.pageSize,fn=We.goButton,qt=We.quickGo,Ye=We.rootPrefixCls,Ot=We.disabled,Jt=We.buildOptionText,on=We.showSizeChanger,Ge=We.sizeChangerRender,Pt=y.useState(""),jt=(0,Pe.Z)(Pt,2),vt=jt[0],Lt=jt[1],Rt=function(){return!vt||Number.isNaN(vt)?void 0:Number(vt)},sn=typeof Jt=="function"?Jt:function(mn){return"".concat(mn," ").concat(cn.items_per_page)},Sn=function(an){Lt(an.target.value)},un=function(an){fn||vt===""||(Lt(""),!(an.relatedTarget&&(an.relatedTarget.className.indexOf("".concat(Ye,"-item-link"))>=0||an.relatedTarget.className.indexOf("".concat(Ye,"-item"))>=0))&&(qt==null||qt(Rt())))},Cn=function(an){vt!==""&&(an.keyCode===Ve.Z.ENTER||an.type==="click")&&(Lt(""),qt==null||qt(Rt()))},Ct=function(){return Ut.some(function(an){return an.toString()===_t.toString()})?Ut:Ut.concat([_t]).sort(function(an,yn){var jn=Number.isNaN(Number(an))?0:Number(an),Nn=Number.isNaN(Number(yn))?0:Number(yn);return jn-Nn})},It="".concat(Ye,"-options");if(!on&&!qt)return null;var Gt=null,tn=null,Wt=null;return on&&Ge&&(Gt=Ge({disabled:Ot,size:_t,onSizeChange:function(an){ln==null||ln(Number(an))},"aria-label":cn.page_size,className:"".concat(It,"-size-changer"),options:Ct().map(function(mn){return{label:sn(mn),value:mn}})})),qt&&(fn&&(Wt=typeof fn=="boolean"?y.createElement("button",{type:"button",onClick:Cn,onKeyUp:Cn,disabled:Ot,className:"".concat(It,"-quick-jumper-button")},cn.jump_to_confirm):y.createElement("span",{onClick:Cn,onKeyUp:Cn},fn)),tn=y.createElement("div",{className:"".concat(It,"-quick-jumper")},cn.jump_to,y.createElement("input",{disabled:Ot,type:"text",value:vt,onChange:Sn,onKeyUp:Cn,onBlur:un,"aria-label":cn.page}),cn.page,Wt)),y.createElement("li",{className:It},Gt,tn)},rt=He,st=function(We){var Mt=We.rootPrefixCls,Ut=We.page,cn=We.active,ln=We.className,_t=We.showTitle,fn=We.onClick,qt=We.onKeyPress,Ye=We.itemRender,Ot="".concat(Mt,"-item"),Jt=it()(Ot,"".concat(Ot,"-").concat(Ut),(0,ze.Z)((0,ze.Z)({},"".concat(Ot,"-active"),cn),"".concat(Ot,"-disabled"),!Ut),ln),on=function(){fn(Ut)},Ge=function(vt){qt(vt,fn,Ut)},Pt=Ye(Ut,"page",y.createElement("a",{rel:"nofollow"},Ut));return Pt?y.createElement("li",{title:_t?String(Ut):null,className:Jt,onClick:on,onKeyDown:Ge,tabIndex:0},Pt):null},Je=st,et=function(We,Mt,Ut){return Ut};function ge(){}function Qe(Ze){var We=Number(Ze);return typeof We=="number"&&!Number.isNaN(We)&&isFinite(We)&&Math.floor(We)===We}function we(Ze,We,Mt){var Ut=typeof Ze=="undefined"?We:Ze;return Math.floor((Mt-1)/Ut)+1}var se=function(We){var Mt=We.prefixCls,Ut=Mt===void 0?"rc-pagination":Mt,cn=We.selectPrefixCls,ln=cn===void 0?"rc-select":cn,_t=We.className,fn=We.current,qt=We.defaultCurrent,Ye=qt===void 0?1:qt,Ot=We.total,Jt=Ot===void 0?0:Ot,on=We.pageSize,Ge=We.defaultPageSize,Pt=Ge===void 0?10:Ge,jt=We.onChange,vt=jt===void 0?ge:jt,Lt=We.hideOnSinglePage,Rt=We.align,sn=We.showPrevNextJumpers,Sn=sn===void 0?!0:sn,un=We.showQuickJumper,Cn=We.showLessItems,Ct=We.showTitle,It=Ct===void 0?!0:Ct,Gt=We.onShowSizeChange,tn=Gt===void 0?ge:Gt,Wt=We.locale,mn=Wt===void 0?Ie.Z:Wt,an=We.style,yn=We.totalBoundaryShowSizeChanger,jn=yn===void 0?50:yn,Nn=We.disabled,$n=We.simple,Vn=We.showTotal,Wn=We.showSizeChanger,ur=Wn===void 0?Jt>jn:Wn,rr=We.sizeChangerRender,hn=We.pageSizeOptions,Bn=We.itemRender,zn=Bn===void 0?et:Bn,Hn=We.jumpPrevIcon,St=We.jumpNextIcon,$t=We.prevIcon,nt=We.nextIcon,Ft=y.useRef(null),Ke=(0,Fe.Z)(10,{value:on,defaultValue:Pt}),Tt=(0,Pe.Z)(Ke,2),Yt=Tt[0],Rn=Tt[1],Zn=(0,Fe.Z)(1,{value:fn,defaultValue:Ye,postState:function(co){return Math.max(1,Math.min(co,we(void 0,Yt,Jt)))}}),yt=(0,Pe.Z)(Zn,2),xt=yt[0],Bt=yt[1],At=y.useState(xt),pn=(0,Pe.Z)(At,2),Pn=pn[0],In=pn[1];(0,y.useEffect)(function(){In(xt)},[xt]);var Mn=vt!==ge,qn="current"in We,nr=Math.max(1,xt-(Cn?3:5)),ir=Math.min(we(void 0,Yt,Jt),xt+(Cn?3:5));function lr(Lo,co){var wi=Lo||y.createElement("button",{type:"button","aria-label":co,className:"".concat(Ut,"-item-link")});return typeof Lo=="function"&&(wi=y.createElement(Lo,(0,Ee.Z)({},We))),wi}function Qn(Lo){var co=Lo.target.value,wi=we(void 0,Yt,Jt),wo;return co===""?wo=co:Number.isNaN(Number(co))?wo=Pn:co>=wi?wo=wi:wo=Number(co),wo}function ar(Lo){return Qe(Lo)&&Lo!==xt&&Qe(Jt)&&Jt>0}var fr=Jt>Yt?un:!1;function Sr(Lo){(Lo.keyCode===Ve.Z.UP||Lo.keyCode===Ve.Z.DOWN)&&Lo.preventDefault()}function br(Lo){var co=Qn(Lo);switch(co!==Pn&&In(co),Lo.keyCode){case Ve.Z.ENTER:hr(co);break;case Ve.Z.UP:hr(co-1);break;case Ve.Z.DOWN:hr(co+1);break;default:break}}function Zr(Lo){hr(Qn(Lo))}function jr(Lo){var co=we(Lo,Yt,Jt),wi=xt>co&&co!==0?co:xt;Rn(Lo),In(wi),tn==null||tn(xt,Lo),Bt(wi),vt==null||vt(wi,Lo)}function hr(Lo){if(ar(Lo)&&!Nn){var co=we(void 0,Yt,Jt),wi=Lo;return Lo>co?wi=co:Lo<1&&(wi=1),wi!==Pn&&In(wi),Bt(wi),vt==null||vt(wi,Yt),wi}return xt}var Nr=xt>1,eo=xt<we(void 0,Yt,Jt);function Tr(){Nr&&hr(xt-1)}function Pr(){eo&&hr(xt+1)}function or(){hr(nr)}function Ur(){hr(ir)}function Rr(Lo,co){if(Lo.key==="Enter"||Lo.charCode===Ve.Z.ENTER||Lo.keyCode===Ve.Z.ENTER){for(var wi=arguments.length,wo=new Array(wi>2?wi-2:0),aa=2;aa<wi;aa++)wo[aa-2]=arguments[aa];co.apply(void 0,wo)}}function Br(Lo){Rr(Lo,Tr)}function Cr(Lo){Rr(Lo,Pr)}function so(Lo){Rr(Lo,or)}function Ho(Lo){Rr(Lo,Ur)}function ti(Lo){var co=zn(Lo,"prev",lr($t,"prev page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!Nr}):co}function Eo(Lo){var co=zn(Lo,"next",lr(nt,"next page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!eo}):co}function No(Lo){(Lo.type==="click"||Lo.keyCode===Ve.Z.ENTER)&&hr(Pn)}var To=null,Xo=(0,dt.Z)(We,{aria:!0,data:!0}),ko=Vn&&y.createElement("li",{className:"".concat(Ut,"-total-text")},Vn(Jt,[Jt===0?0:(xt-1)*Yt+1,xt*Yt>Jt?Jt:xt*Yt])),vo=null,dr=we(void 0,Yt,Jt);if(Lt&&Jt<=Yt)return null;var Tn=[],Gn={rootPrefixCls:Ut,onClick:hr,onKeyPress:Rr,showTitle:It,itemRender:zn,page:-1},Yn=xt-1>0?xt-1:0,Ln=xt+1<dr?xt+1:dr,mr=un&&un.goButton,wr=(0,Oe.Z)($n)==="object"?$n.readOnly:!$n,Un=mr,Jn=null;$n&&(mr&&(typeof mr=="boolean"?Un=y.createElement("button",{type:"button",onClick:No,onKeyUp:No},mn.jump_to_confirm):Un=y.createElement("span",{onClick:No,onKeyUp:No},mr),Un=y.createElement("li",{title:It?"".concat(mn.jump_to).concat(xt,"/").concat(dr):null,className:"".concat(Ut,"-simple-pager")},Un)),Jn=y.createElement("li",{title:It?"".concat(xt,"/").concat(dr):null,className:"".concat(Ut,"-simple-pager")},wr?Pn:y.createElement("input",{type:"text","aria-label":mn.jump_to,value:Pn,disabled:Nn,onKeyDown:Sr,onKeyUp:br,onChange:br,onBlur:Zr,size:3}),y.createElement("span",{className:"".concat(Ut,"-slash")},"/"),dr));var sr=Cn?1:2;if(dr<=3+sr*2){dr||Tn.push(y.createElement(Je,(0,he.Z)({},Gn,{key:"noPager",page:1,className:"".concat(Ut,"-item-disabled")})));for(var pr=1;pr<=dr;pr+=1)Tn.push(y.createElement(Je,(0,he.Z)({},Gn,{key:pr,page:pr,active:xt===pr})))}else{var _r=Cn?mn.prev_3:mn.prev_5,Yr=Cn?mn.next_3:mn.next_5,to=zn(nr,"jump-prev",lr(Hn,"prev page")),Po=zn(ir,"jump-next",lr(St,"next page"));Sn&&(To=to?y.createElement("li",{title:It?_r:null,key:"prev",onClick:or,tabIndex:0,onKeyDown:so,className:it()("".concat(Ut,"-jump-prev"),(0,ze.Z)({},"".concat(Ut,"-jump-prev-custom-icon"),!!Hn))},to):null,vo=Po?y.createElement("li",{title:It?Yr:null,key:"next",onClick:Ur,tabIndex:0,onKeyDown:Ho,className:it()("".concat(Ut,"-jump-next"),(0,ze.Z)({},"".concat(Ut,"-jump-next-custom-icon"),!!St))},Po):null);var Mo=Math.max(1,xt-sr),Yo=Math.min(xt+sr,dr);xt-1<=sr&&(Yo=1+sr*2),dr-xt<=sr&&(Mo=dr-sr*2);for(var Jo=Mo;Jo<=Yo;Jo+=1)Tn.push(y.createElement(Je,(0,he.Z)({},Gn,{key:Jo,page:Jo,active:xt===Jo})));if(xt-1>=sr*2&&xt!==3&&(Tn[0]=y.cloneElement(Tn[0],{className:it()("".concat(Ut,"-item-after-jump-prev"),Tn[0].props.className)}),Tn.unshift(To)),dr-xt>=sr*2&&xt!==dr-2){var ni=Tn[Tn.length-1];Tn[Tn.length-1]=y.cloneElement(ni,{className:it()("".concat(Ut,"-item-before-jump-next"),ni.props.className)}),Tn.push(vo)}Mo!==1&&Tn.unshift(y.createElement(Je,(0,he.Z)({},Gn,{key:1,page:1}))),Yo!==dr&&Tn.push(y.createElement(Je,(0,he.Z)({},Gn,{key:dr,page:dr})))}var ri=ti(Yn);if(ri){var Mi=!Nr||!dr;ri=y.createElement("li",{title:It?mn.prev_page:null,onClick:Tr,tabIndex:Mi?null:0,onKeyDown:Br,className:it()("".concat(Ut,"-prev"),(0,ze.Z)({},"".concat(Ut,"-disabled"),Mi)),"aria-disabled":Mi},ri)}var $i=Eo(Ln);if($i){var Xi,Yi;$n?(Xi=!eo,Yi=Nr?0:null):(Xi=!eo||!dr,Yi=Xi?null:0),$i=y.createElement("li",{title:It?mn.next_page:null,onClick:Pr,tabIndex:Yi,onKeyDown:Cr,className:it()("".concat(Ut,"-next"),(0,ze.Z)({},"".concat(Ut,"-disabled"),Xi)),"aria-disabled":Xi},$i)}var ta=it()(Ut,_t,(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(Ut,"-start"),Rt==="start"),"".concat(Ut,"-center"),Rt==="center"),"".concat(Ut,"-end"),Rt==="end"),"".concat(Ut,"-simple"),$n),"".concat(Ut,"-disabled"),Nn));return y.createElement("ul",(0,he.Z)({className:ta,style:an,ref:Ft},Xo),ko,ri,$n?Jn:Tn,$i,y.createElement(rt,{locale:mn,rootPrefixCls:Ut,disabled:Nn,selectPrefixCls:ln,changeSize:jr,pageSize:Yt,pageSizeOptions:hn,quickGo:fr?hr:null,goButton:Un,showSizeChanger:ur,sizeChangerRender:rr}))},ft=se,$e=z(61852),tt=z(48755),Nt=z(31756),Le=z(13783),ye=z(9017),Et=z(82326),Zt=z(57700),pt=z(36237),Ce=z(53075),at=z(64910),qe=z(39082),zt=z(63356),ut=z(51636),ct=z(16931);const lt=Ze=>{const{componentCls:We}=Ze;return{[`${We}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ze.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${We}-item-link`]:{color:Ze.colorTextDisabled,cursor:"not-allowed"}}},[`&${We}-disabled`]:{cursor:"not-allowed",[`${We}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ze.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ze.colorBorder,backgroundColor:Ze.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ze.itemActiveBgDisabled},a:{color:Ze.itemActiveColorDisabled}}},[`${We}-item-link`]:{color:Ze.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${We}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${We}-simple-pager`]:{color:Ze.colorTextDisabled},[`${We}-jump-prev, ${We}-jump-next`]:{[`${We}-item-link-icon`]:{opacity:0},[`${We}-item-ellipsis`]:{opacity:1}}},[`&${We}-simple`]:{[`${We}-prev, ${We}-next`]:{[`&${We}-disabled ${We}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},nn=Ze=>{const{componentCls:We}=Ze;return{[`&${We}-mini ${We}-total-text, &${We}-mini ${We}-simple-pager`]:{height:Ze.itemSizeSM,lineHeight:(0,pt.unit)(Ze.itemSizeSM)},[`&${We}-mini ${We}-item`]:{minWidth:Ze.itemSizeSM,height:Ze.itemSizeSM,margin:0,lineHeight:(0,pt.unit)(Ze.calc(Ze.itemSizeSM).sub(2).equal())},[`&${We}-mini ${We}-prev, &${We}-mini ${We}-next`]:{minWidth:Ze.itemSizeSM,height:Ze.itemSizeSM,margin:0,lineHeight:(0,pt.unit)(Ze.itemSizeSM)},[`&${We}-mini:not(${We}-disabled)`]:{[`${We}-prev, ${We}-next`]:{[`&:hover ${We}-item-link`]:{backgroundColor:Ze.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ze.colorBgTextActive},[`&${We}-disabled:hover ${We}-item-link`]:{backgroundColor:"transparent"}}},[`
&${We}-mini ${We}-prev ${We}-item-link,
&${We}-mini ${We}-next ${We}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ze.itemSizeSM,lineHeight:(0,pt.unit)(Ze.itemSizeSM)}},[`&${We}-mini ${We}-jump-prev, &${We}-mini ${We}-jump-next`]:{height:Ze.itemSizeSM,marginInlineEnd:0,lineHeight:(0,pt.unit)(Ze.itemSizeSM)},[`&${We}-mini ${We}-options`]:{marginInlineStart:Ze.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ze.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ze.itemSizeSM,lineHeight:(0,pt.unit)(Ze.itemSizeSM),input:Object.assign(Object.assign({},(0,Ce.x0)(Ze)),{width:Ze.paginationMiniQuickJumperInputWidth,height:Ze.controlHeightSM})}}}},kt=Ze=>{const{componentCls:We}=Ze;return{[`
&${We}-simple ${We}-prev,
&${We}-simple ${We}-next
`]:{height:Ze.itemSizeSM,lineHeight:(0,pt.unit)(Ze.itemSizeSM),verticalAlign:"top",[`${We}-item-link`]:{height:Ze.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ze.colorBgTextHover},"&:active":{backgroundColor:Ze.colorBgTextActive},"&::after":{height:Ze.itemSizeSM,lineHeight:(0,pt.unit)(Ze.itemSizeSM)}}},[`&${We}-simple ${We}-simple-pager`]:{display:"inline-block",height:Ze.itemSizeSM,marginInlineEnd:Ze.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,pt.unit)(Ze.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ze.itemInputBg,border:`${(0,pt.unit)(Ze.lineWidth)} ${Ze.lineType} ${Ze.colorBorder}`,borderRadius:Ze.borderRadius,outline:"none",transition:`border-color ${Ze.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ze.colorPrimary},"&:focus":{borderColor:Ze.colorPrimaryHover,boxShadow:`${(0,pt.unit)(Ze.inputOutlineOffset)} 0 ${(0,pt.unit)(Ze.controlOutlineWidth)} ${Ze.controlOutline}`},"&[disabled]":{color:Ze.colorTextDisabled,backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,cursor:"not-allowed"}}}}},ae=Ze=>{const{componentCls:We}=Ze;return{[`${We}-jump-prev, ${We}-jump-next`]:{outline:0,[`${We}-item-container`]:{position:"relative",[`${We}-item-link-icon`]:{color:Ze.colorPrimary,fontSize:Ze.fontSizeSM,opacity:0,transition:`all ${Ze.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${We}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ze.colorTextDisabled,letterSpacing:Ze.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ze.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ze.motionDurationMid}`}},"&:hover":{[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}}},[`
${We}-prev,
${We}-jump-prev,
${We}-jump-next
`]:{marginInlineEnd:Ze.marginXS},[`
${We}-prev,
${We}-next,
${We}-jump-prev,
${We}-jump-next
`]:{display:"inline-block",minWidth:Ze.itemSize,height:Ze.itemSize,color:Ze.colorText,fontFamily:Ze.fontFamily,lineHeight:(0,pt.unit)(Ze.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ze.borderRadius,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`},[`${We}-prev, ${We}-next`]:{outline:0,button:{color:Ze.colorText,cursor:"pointer",userSelect:"none"},[`${We}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ze.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,pt.unit)(Ze.lineWidth)} ${Ze.lineType} transparent`,borderRadius:Ze.borderRadius,outline:"none",transition:`all ${Ze.motionDurationMid}`},[`&:hover ${We}-item-link`]:{backgroundColor:Ze.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Ze.colorBgTextActive},[`&${We}-disabled:hover`]:{[`${We}-item-link`]:{backgroundColor:"transparent"}}},[`${We}-slash`]:{marginInlineEnd:Ze.paginationSlashMarginInlineEnd,marginInlineStart:Ze.paginationSlashMarginInlineStart},[`${We}-options`]:{display:"inline-block",marginInlineStart:Ze.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ze.controlHeight,marginInlineStart:Ze.marginXS,lineHeight:(0,pt.unit)(Ze.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ce.ik)(Ze)),(0,qe.$U)(Ze,{borderColor:Ze.colorBorder,hoverBorderColor:Ze.colorPrimaryHover,activeBorderColor:Ze.colorPrimary,activeShadow:Ze.activeShadow})),{"&[disabled]":Object.assign({},(0,qe.Xy)(Ze)),width:Ze.calc(Ze.controlHeightLG).mul(1.25).equal(),height:Ze.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ze.marginXS,marginInlineEnd:Ze.marginXS})}}}},ne=Ze=>{const{componentCls:We}=Ze;return{[`${We}-item`]:{display:"inline-block",minWidth:Ze.itemSize,height:Ze.itemSize,marginInlineEnd:Ze.marginXS,fontFamily:Ze.fontFamily,lineHeight:(0,pt.unit)(Ze.calc(Ze.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Ze.itemBg,border:`${(0,pt.unit)(Ze.lineWidth)} ${Ze.lineType} transparent`,borderRadius:Ze.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,pt.unit)(Ze.paginationItemPaddingInline)}`,color:Ze.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${We}-item-active)`]:{"&:hover":{transition:`all ${Ze.motionDurationMid}`,backgroundColor:Ze.colorBgTextHover},"&:active":{backgroundColor:Ze.colorBgTextActive}},"&-active":{fontWeight:Ze.fontWeightStrong,backgroundColor:Ze.itemActiveBg,borderColor:Ze.colorPrimary,a:{color:Ze.colorPrimary},"&:hover":{borderColor:Ze.colorPrimaryHover},"&:hover a":{color:Ze.colorPrimaryHover}}}}},te=Ze=>{const{componentCls:We}=Ze;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(Ze)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${We}-total-text`]:{display:"inline-block",height:Ze.itemSize,marginInlineEnd:Ze.marginXS,lineHeight:(0,pt.unit)(Ze.calc(Ze.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(Ze)),ae(Ze)),kt(Ze)),nn(Ze)),lt(Ze)),{[`@media only screen and (max-width: ${Ze.screenLG}px)`]:{[`${We}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ze.screenSM}px)`]:{[`${We}-options`]:{display:"none"}}}),[`&${Ze.componentCls}-rtl`]:{direction:"rtl"}}},ie=Ze=>{const{componentCls:We}=Ze;return{[`${We}:not(${We}-disabled)`]:{[`${We}-item`]:Object.assign({},(0,zt.Qy)(Ze)),[`${We}-jump-prev, ${We}-jump-next`]:{"&:focus-visible":Object.assign({[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}},(0,zt.oN)(Ze))},[`${We}-prev, ${We}-next`]:{[`&:focus-visible ${We}-item-link`]:Object.assign({},(0,zt.oN)(Ze))}}}},fe=Ze=>Object.assign({itemBg:Ze.colorBgContainer,itemSize:Ze.controlHeight,itemSizeSM:Ze.controlHeightSM,itemActiveBg:Ze.colorBgContainer,itemLinkBg:Ze.colorBgContainer,itemActiveColorDisabled:Ze.colorTextDisabled,itemActiveBgDisabled:Ze.controlItemBgActiveDisabled,itemInputBg:Ze.colorBgContainer,miniOptionsSizeChangerTop:0},(0,at.T)(Ze)),re=Ze=>(0,ut.mergeToken)(Ze,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ze.calc(Ze.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ze.calc(Ze.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ze.calc(Ze.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ze.calc(Ze.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ze.marginSM,paginationSlashMarginInlineEnd:Ze.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,at.e)(Ze));var ue=(0,ct.I$)("Pagination",Ze=>{const We=re(Ze);return[te(We),ie(We)]},fe);const Me=Ze=>{const{componentCls:We}=Ze;return{[`${We}${We}-bordered${We}-disabled:not(${We}-mini)`]:{"&, &:hover":{[`${We}-item-link`]:{borderColor:Ze.colorBorder}},"&:focus-visible":{[`${We}-item-link`]:{borderColor:Ze.colorBorder}},[`${We}-item, ${We}-item-link`]:{backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,[`&:hover:not(${We}-item-active)`]:{backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,a:{color:Ze.colorTextDisabled}},[`&${We}-item-active`]:{backgroundColor:Ze.itemActiveBgDisabled}},[`${We}-prev, ${We}-next`]:{"&:hover button":{backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder,color:Ze.colorTextDisabled},[`${We}-item-link`]:{backgroundColor:Ze.colorBgContainerDisabled,borderColor:Ze.colorBorder}}},[`${We}${We}-bordered:not(${We}-mini)`]:{[`${We}-prev, ${We}-next`]:{"&:hover button":{borderColor:Ze.colorPrimaryHover,backgroundColor:Ze.itemBg},[`${We}-item-link`]:{backgroundColor:Ze.itemLinkBg,borderColor:Ze.colorBorder},[`&:hover ${We}-item-link`]:{borderColor:Ze.colorPrimary,backgroundColor:Ze.itemBg,color:Ze.colorPrimary},[`&${We}-disabled`]:{[`${We}-item-link`]:{borderColor:Ze.colorBorder,color:Ze.colorTextDisabled}}},[`${We}-item`]:{backgroundColor:Ze.itemBg,border:`${(0,pt.unit)(Ze.lineWidth)} ${Ze.lineType} ${Ze.colorBorder}`,[`&:hover:not(${We}-item-active)`]:{borderColor:Ze.colorPrimary,backgroundColor:Ze.itemBg,a:{color:Ze.colorPrimary}},"&-active":{borderColor:Ze.colorPrimary}}}}};var gt=(0,ct.bk)(["Pagination","bordered"],Ze=>{const We=re(Ze);return[Me(We)]},fe);function _e(Ze){return(0,y.useMemo)(()=>typeof Ze=="boolean"?[Ze,{}]:Ze&&typeof Ze=="object"?[!0,Ze]:[void 0,void 0],[Ze])}var ke=function(Ze,We){var Mt={};for(var Ut in Ze)Object.prototype.hasOwnProperty.call(Ze,Ut)&&We.indexOf(Ut)<0&&(Mt[Ut]=Ze[Ut]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Ut=Object.getOwnPropertySymbols(Ze);cn<Ut.length;cn++)We.indexOf(Ut[cn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Ut[cn])&&(Mt[Ut[cn]]=Ze[Ut[cn]]);return Mt},ht=Ze=>{const{align:We,prefixCls:Mt,selectPrefixCls:Ut,className:cn,rootClassName:ln,style:_t,size:fn,locale:qt,responsive:Ye,showSizeChanger:Ot,selectComponentClass:Jt,pageSizeOptions:on}=Ze,Ge=ke(Ze,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Pt}=(0,Le.Z)(Ye),[,jt]=(0,Zt.ZP)(),{getPrefixCls:vt,direction:Lt,showSizeChanger:Rt,className:sn,style:Sn}=(0,tt.dj)("pagination"),un=vt("pagination",Mt),[Cn,Ct,It]=ue(un),Gt=(0,Nt.Z)(fn),tn=Gt==="small"||!!(Pt&&!Gt&&Ye),[Wt]=(0,ye.Z)("Pagination",$e.Z),mn=Object.assign(Object.assign({},Wt),qt),[an,yn]=_e(Ot),[jn,Nn]=_e(Rt),$n=an!=null?an:jn,Vn=yn!=null?yn:Nn,Wn=Jt||Et.default,ur=y.useMemo(()=>on?on.map(St=>Number(St)):void 0,[on]),rr=St=>{var $t;const{disabled:nt,size:Ft,onSizeChange:Ke,"aria-label":Tt,className:Yt,options:Rn}=St,{className:Zn,onChange:yt}=Vn||{},xt=($t=Rn.find(Bt=>String(Bt.value)===String(Ft)))===null||$t===void 0?void 0:$t.value;return y.createElement(Wn,Object.assign({disabled:nt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Bt=>Bt.parentNode,"aria-label":Tt,options:Rn},Vn,{value:xt,onChange:(Bt,At)=>{Ke==null||Ke(Bt),yt==null||yt(Bt,At)},size:tn?"small":"middle",className:it()(Yt,Zn)}))},hn=y.useMemo(()=>{const St=y.createElement("span",{className:`${un}-item-ellipsis`},"\u2022\u2022\u2022"),$t=y.createElement("button",{className:`${un}-item-link`,type:"button",tabIndex:-1},Lt==="rtl"?y.createElement(je.Z,null):y.createElement(le.Z,null)),nt=y.createElement("button",{className:`${un}-item-link`,type:"button",tabIndex:-1},Lt==="rtl"?y.createElement(le.Z,null):y.createElement(je.Z,null)),Ft=y.createElement("a",{className:`${un}-item-link`},y.createElement("div",{className:`${un}-item-container`},Lt==="rtl"?y.createElement(be.Z,{className:`${un}-item-link-icon`}):y.createElement(Ne,{className:`${un}-item-link-icon`}),St)),Ke=y.createElement("a",{className:`${un}-item-link`},y.createElement("div",{className:`${un}-item-container`},Lt==="rtl"?y.createElement(Ne,{className:`${un}-item-link-icon`}):y.createElement(be.Z,{className:`${un}-item-link-icon`}),St));return{prevIcon:$t,nextIcon:nt,jumpPrevIcon:Ft,jumpNextIcon:Ke}},[Lt,un]),Bn=vt("select",Ut),zn=it()({[`${un}-${We}`]:!!We,[`${un}-mini`]:tn,[`${un}-rtl`]:Lt==="rtl",[`${un}-bordered`]:jt.wireframe},sn,cn,ln,Ct,It),Hn=Object.assign(Object.assign({},Sn),_t);return Cn(y.createElement(y.Fragment,null,jt.wireframe&&y.createElement(gt,{prefixCls:un}),y.createElement(ft,Object.assign({},hn,Ge,{style:Hn,prefixCls:un,selectPrefixCls:Bn,className:zn,locale:mn,pageSizeOptions:ur,showSizeChanger:$n,sizeChangerRender:rr}))))},wt=ht},93725:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Je}});var y=z(59301),he=z(96512),ce=z(92310),Re=z.n(ce),ve=z(18929),me=z(2738),pe=z(48755),Ne=z(37639),be=z(15565),le=z(54500),je=z(7939),Ae=z(61670),it=z(9017),ze=z(85981),Oe=z(69106),Ee=z(16931);const Pe=et=>{const{componentCls:ge,iconCls:Qe,antCls:we,zIndexPopup:se,colorText:ft,colorWarning:$e,marginXXS:tt,marginXS:Nt,fontSize:Le,fontWeightStrong:ye,colorTextHeading:Et}=et;return{[ge]:{zIndex:se,[`&${we}-popover`]:{fontSize:Le},[`${ge}-message`]:{marginBottom:Nt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ge}-message-icon ${Qe}`]:{color:$e,fontSize:Le,lineHeight:1,marginInlineEnd:Nt},[`${ge}-title`]:{fontWeight:ye,color:Et,"&:only-child":{fontWeight:"normal"}},[`${ge}-description`]:{marginTop:tt,color:ft}},[`${ge}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Nt}}}}},Fe=et=>{const{zIndexPopupBase:ge}=et;return{zIndexPopup:ge+60}};var Ve=(0,Ee.I$)("Popconfirm",et=>Pe(et),Fe,{resetStyle:!1}),dt=function(et,ge){var Qe={};for(var we in et)Object.prototype.hasOwnProperty.call(et,we)&&ge.indexOf(we)<0&&(Qe[we]=et[we]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,we=Object.getOwnPropertySymbols(et);se<we.length;se++)ge.indexOf(we[se])<0&&Object.prototype.propertyIsEnumerable.call(et,we[se])&&(Qe[we[se]]=et[we[se]]);return Qe};const Se=et=>{const{prefixCls:ge,okButtonProps:Qe,cancelButtonProps:we,title:se,description:ft,cancelText:$e,okText:tt,okType:Nt="primary",icon:Le=y.createElement(he.Z,null),showCancel:ye=!0,close:Et,onConfirm:Zt,onCancel:pt,onPopupClick:Ce}=et,{getPrefixCls:at}=y.useContext(pe.E_),[qe]=(0,it.Z)("Popconfirm",ze.Z.Popconfirm),zt=(0,le.Z)(se),ut=(0,le.Z)(ft);return y.createElement("div",{className:`${ge}-inner-content`,onClick:Ce},y.createElement("div",{className:`${ge}-message`},Le&&y.createElement("span",{className:`${ge}-message-icon`},Le),y.createElement("div",{className:`${ge}-message-text`},zt&&y.createElement("div",{className:`${ge}-title`},zt),ut&&y.createElement("div",{className:`${ge}-description`},ut))),y.createElement("div",{className:`${ge}-buttons`},ye&&y.createElement(je.ZP,Object.assign({onClick:pt,size:"small"},we),$e||(qe==null?void 0:qe.cancelText)),y.createElement(be.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Ae.nx)(Nt)),Qe),actionFn:Zt,close:Et,prefixCls:at("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},tt||(qe==null?void 0:qe.okText))))};var Xe=et=>{const{prefixCls:ge,placement:Qe,className:we,style:se}=et,ft=dt(et,["prefixCls","placement","className","style"]),{getPrefixCls:$e}=y.useContext(pe.E_),tt=$e("popconfirm",ge),[Nt]=Ve(tt);return Nt(y.createElement(Oe.ZP,{placement:Qe,className:Re()(tt,we),style:se,content:y.createElement(Se,Object.assign({prefixCls:tt},ft))}))},He=function(et,ge){var Qe={};for(var we in et)Object.prototype.hasOwnProperty.call(et,we)&&ge.indexOf(we)<0&&(Qe[we]=et[we]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,we=Object.getOwnPropertySymbols(et);se<we.length;se++)ge.indexOf(we[se])<0&&Object.prototype.propertyIsEnumerable.call(et,we[se])&&(Qe[we[se]]=et[we[se]]);return Qe};const st=y.forwardRef((et,ge)=>{var Qe,we;const{prefixCls:se,placement:ft="top",trigger:$e="click",okType:tt="primary",icon:Nt=y.createElement(he.Z,null),children:Le,overlayClassName:ye,onOpenChange:Et,onVisibleChange:Zt,overlayStyle:pt,styles:Ce,classNames:at}=et,qe=He(et,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:zt,className:ut,style:ct,classNames:lt,styles:nn}=(0,pe.dj)("popconfirm"),[kt,ae]=(0,ve.Z)(!1,{value:(Qe=et.open)!==null&&Qe!==void 0?Qe:et.visible,defaultValue:(we=et.defaultOpen)!==null&&we!==void 0?we:et.defaultVisible}),ne=(ke,ot)=>{ae(ke,!0),Zt==null||Zt(ke),Et==null||Et(ke,ot)},te=ke=>{ne(!1,ke)},ie=ke=>{var ot;return(ot=et.onConfirm)===null||ot===void 0?void 0:ot.call(void 0,ke)},fe=ke=>{var ot;ne(!1,ke),(ot=et.onCancel)===null||ot===void 0||ot.call(void 0,ke)},re=(ke,ot)=>{const{disabled:ht=!1}=et;ht||ne(ke,ot)},ue=zt("popconfirm",se),Me=Re()(ue,ut,ye,lt.root,at==null?void 0:at.root),gt=Re()(lt.body,at==null?void 0:at.body),[_e]=Ve(ue);return _e(y.createElement(Ne.Z,Object.assign({},(0,me.Z)(qe,["title"]),{trigger:$e,placement:ft,onOpenChange:re,open:kt,ref:ge,classNames:{root:Me,body:gt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},nn.root),ct),pt),Ce==null?void 0:Ce.root),body:Object.assign(Object.assign({},nn.body),Ce==null?void 0:Ce.body)},content:y.createElement(Se,Object.assign({okType:tt,icon:Nt},et,{prefixCls:ue,close:te,onConfirm:ie,onCancel:fe})),"data-popover-inject":!0}),Le))});st._InternalPanelDoNotUseOrYouWillBeFired=Xe;var Je=st},69106:function(En,Vt,z){"use strict";z.d(Vt,{aV:function(){return be},t5:function(){return le}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(29125),ve=z(54500),me=z(48755),pe=z(85074),Ne=function(Ae,it){var ze={};for(var Oe in Ae)Object.prototype.hasOwnProperty.call(Ae,Oe)&&it.indexOf(Oe)<0&&(ze[Oe]=Ae[Oe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Oe=Object.getOwnPropertySymbols(Ae);Ee<Oe.length;Ee++)it.indexOf(Oe[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Oe[Ee])&&(ze[Oe[Ee]]=Ae[Oe[Ee]]);return ze};const be=Ae=>{let{title:it,content:ze,prefixCls:Oe}=Ae;return!it&&!ze?null:y.createElement(y.Fragment,null,it&&y.createElement("div",{className:`${Oe}-title`},it),ze&&y.createElement("div",{className:`${Oe}-inner-content`},ze))},le=Ae=>{const{hashId:it,prefixCls:ze,className:Oe,style:Ee,placement:Pe="top",title:Fe,content:Ve,children:dt}=Ae,Se=(0,ve.Z)(Fe),Ie=(0,ve.Z)(Ve),Xe=ce()(it,ze,`${ze}-pure`,`${ze}-placement-${Pe}`,Oe);return y.createElement("div",{className:Xe,style:Ee},y.createElement("div",{className:`${ze}-arrow`}),y.createElement(Re.G,Object.assign({},Ae,{className:it,prefixCls:ze}),dt||y.createElement(be,{prefixCls:ze,title:Se,content:Ie})))},je=Ae=>{const{prefixCls:it,className:ze}=Ae,Oe=Ne(Ae,["prefixCls","className"]),{getPrefixCls:Ee}=y.useContext(me.E_),Pe=Ee("popover",it),[Fe,Ve,dt]=(0,pe.Z)(Pe);return Fe(y.createElement(le,Object.assign({},Oe,{prefixCls:Pe,hashId:Ve,className:ce()(ze,dt)})))};Vt.ZP=je},37639:function(En,Vt,z){"use strict";var y=z(59301),he=z(92310),ce=z.n(he),Re=z(18929),ve=z(10228),me=z(54500),pe=z(86641),Ne=z(22703),be=z(25399),le=z(69106),je=z(48755),Ae=z(85074),it=function(Ee,Pe){var Fe={};for(var Ve in Ee)Object.prototype.hasOwnProperty.call(Ee,Ve)&&Pe.indexOf(Ve)<0&&(Fe[Ve]=Ee[Ve]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ve=Object.getOwnPropertySymbols(Ee);dt<Ve.length;dt++)Pe.indexOf(Ve[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ve[dt])&&(Fe[Ve[dt]]=Ee[Ve[dt]]);return Fe};const Oe=y.forwardRef((Ee,Pe)=>{var Fe,Ve;const{prefixCls:dt,title:Se,content:Ie,overlayClassName:Xe,placement:He="top",trigger:rt="hover",children:st,mouseEnterDelay:Je=.1,mouseLeaveDelay:et=.1,onOpenChange:ge,overlayStyle:Qe={},styles:we,classNames:se}=Ee,ft=it(Ee,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$e,className:tt,style:Nt,classNames:Le,styles:ye}=(0,je.dj)("popover"),Et=$e("popover",dt),[Zt,pt,Ce]=(0,Ae.Z)(Et),at=$e(),qe=ce()(Xe,pt,Ce,tt,Le.root,se==null?void 0:se.root),zt=ce()(Le.body,se==null?void 0:se.body),[ut,ct]=(0,Re.Z)(!1,{value:(Fe=Ee.open)!==null&&Fe!==void 0?Fe:Ee.visible,defaultValue:(Ve=Ee.defaultOpen)!==null&&Ve!==void 0?Ve:Ee.defaultVisible}),lt=(te,ie)=>{ct(te,!0),ge==null||ge(te,ie)},nn=te=>{te.keyCode===ve.Z.ESC&&lt(!1,te)},kt=te=>{lt(te)},ae=(0,me.Z)(Se),ne=(0,me.Z)(Ie);return Zt(y.createElement(be.Z,Object.assign({placement:He,trigger:rt,mouseEnterDelay:Je,mouseLeaveDelay:et},ft,{prefixCls:Et,classNames:{root:qe,body:zt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),Nt),Qe),we==null?void 0:we.root),body:Object.assign(Object.assign({},ye.body),we==null?void 0:we.body)},ref:Pe,open:ut,onOpenChange:kt,overlay:ae||ne?y.createElement(le.aV,{prefixCls:Et,title:ae,content:ne}):null,transitionName:(0,pe.m)(at,"zoom-big",ft.transitionName),"data-popover-inject":!0}),(0,Ne.Tm)(st,{onKeyDown:te=>{var ie,fe;y.isValidElement(st)&&((fe=st==null?void 0:(ie=st.props).onKeyDown)===null||fe===void 0||fe.call(ie,te)),nn(te)}})))});Oe._InternalPanelDoNotUseOrYouWillBeFired=le.ZP,Vt.Z=Oe},85074:function(En,Vt,z){"use strict";var y=z(63356),he=z(34925),ce=z(37645),Re=z(36305),ve=z(34998),me=z(16931),pe=z(51636);const Ne=je=>{const{componentCls:Ae,popoverColor:it,titleMinWidth:ze,fontWeightStrong:Oe,innerPadding:Ee,boxShadowSecondary:Pe,colorTextHeading:Fe,borderRadiusLG:Ve,zIndexPopup:dt,titleMarginBottom:Se,colorBgElevated:Ie,popoverBg:Xe,titleBorderBottom:He,innerContentPadding:rt,titlePadding:st}=je;return[{[Ae]:Object.assign(Object.assign({},(0,y.Wf)(je)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:dt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Ie,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ae}-content`]:{position:"relative"},[`${Ae}-inner`]:{backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:Ve,boxShadow:Pe,padding:Ee},[`${Ae}-title`]:{minWidth:ze,marginBottom:Se,color:Fe,fontWeight:Oe,borderBottom:He,padding:st},[`${Ae}-inner-content`]:{color:it,padding:rt}})},(0,ce.ZP)(je,"var(--antd-arrow-background-color)"),{[`${Ae}-pure`]:{position:"relative",maxWidth:"none",margin:je.sizePopupArrow,display:"inline-block",[`${Ae}-content`]:{display:"inline-block"}}}]},be=je=>{const{componentCls:Ae}=je;return{[Ae]:ve.i.map(it=>{const ze=je[`${it}6`];return{[`&${Ae}-${it}`]:{"--antd-arrow-background-color":ze,[`${Ae}-inner`]:{backgroundColor:ze},[`${Ae}-arrow`]:{background:"transparent"}}}})}},le=je=>{const{lineWidth:Ae,controlHeight:it,fontHeight:ze,padding:Oe,wireframe:Ee,zIndexPopupBase:Pe,borderRadiusLG:Fe,marginXS:Ve,lineType:dt,colorSplit:Se,paddingSM:Ie}=je,Xe=it-ze,He=Xe/2,rt=Xe/2-Ae,st=Oe;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Pe+30},(0,Re.w)(je)),(0,ce.wZ)({contentRadius:Fe,limitVerticalRadius:!0})),{innerPadding:Ee?0:12,titleMarginBottom:Ee?0:Ve,titlePadding:Ee?`${He}px ${st}px ${rt}px`:0,titleBorderBottom:Ee?`${Ae}px ${dt} ${Se}`:"none",innerContentPadding:Ee?`${Ie}px ${st}px`:0})};Vt.Z=(0,me.I$)("Popover",je=>{const{colorBgElevated:Ae,colorText:it}=je,ze=(0,pe.mergeToken)(je,{popoverBg:Ae,popoverColor:it});return[Ne(ze),be(ze),(0,he._y)(ze,"zoom-big")]},le,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return qt}});var y=z(59301),he=z(17835),ce=z(29679),Re=z(40001),ve=z(19248),me=z(99267),pe=z(92310),Ne=z.n(pe),be=z(2738),le=z(48755),je=z(60499),Ae=z(85899),it=z(42244),ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Oe=function(){var Ot=(0,y.useRef)([]),Jt=(0,y.useRef)(null);return(0,y.useEffect)(function(){var on=Date.now(),Ge=!1;Ot.current.forEach(function(Pt){if(Pt){Ge=!0;var jt=Pt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",Jt.current&&on-Jt.current<100&&(jt.transitionDuration="0s, 0s")}}),Ge&&(Jt.current=Date.now())}),Ot.current},Ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Pe=function(Ot){var Jt=(0,Ae.Z)((0,Ae.Z)({},ze),Ot),on=Jt.className,Ge=Jt.percent,Pt=Jt.prefixCls,jt=Jt.strokeColor,vt=Jt.strokeLinecap,Lt=Jt.strokeWidth,Rt=Jt.style,sn=Jt.trailColor,Sn=Jt.trailWidth,un=Jt.transition,Cn=(0,it.Z)(Jt,Ee);delete Cn.gapPosition;var Ct=Array.isArray(Ge)?Ge:[Ge],It=Array.isArray(jt)?jt:[jt],Gt=Oe(),tn=Lt/2,Wt=100-Lt/2,mn="M ".concat(vt==="round"?tn:0,",").concat(tn,`
L `).concat(vt==="round"?Wt:100,",").concat(tn),an="0 0 100 ".concat(Lt),yn=0;return y.createElement("svg",(0,je.Z)({className:Ne()("".concat(Pt,"-line"),on),viewBox:an,preserveAspectRatio:"none",style:Rt},Cn),y.createElement("path",{className:"".concat(Pt,"-line-trail"),d:mn,strokeLinecap:vt,stroke:sn,strokeWidth:Sn||Lt,fillOpacity:"0"}),Ct.map(function(jn,Nn){var $n=1;switch(vt){case"round":$n=1-Lt/100;break;case"square":$n=1-Lt/2/100;break;default:$n=1;break}var Vn={strokeDasharray:"".concat(jn*$n,"px, 100px"),strokeDashoffset:"-".concat(yn,"px"),transition:un||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Wn=It[Nn]||It[It.length-1];return yn+=jn,y.createElement("path",{key:Nn,className:"".concat(Pt,"-line-path"),d:mn,strokeLinecap:vt,stroke:Wn,strokeWidth:Lt,fillOpacity:"0",ref:function(rr){Gt[Nn]=rr},style:Vn})}))},Fe=Pe,Ve=z(43749),dt=z(72190),Se=z(47273),Ie=0,Xe=(0,Se.Z)();function He(){var Ye;return Xe?(Ye=Ie,Ie+=1):Ye="TEST_OR_SSR",Ye}var rt=function(Ye){var Ot=y.useState(),Jt=(0,dt.Z)(Ot,2),on=Jt[0],Ge=Jt[1];return y.useEffect(function(){Ge("rc_progress_".concat(He()))},[]),Ye||on},st=function(Ot){var Jt=Ot.bg,on=Ot.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:Jt}},on)};function Je(Ye,Ot){return Object.keys(Ye).map(function(Jt){var on=parseFloat(Jt),Ge="".concat(Math.floor(on*Ot),"%");return"".concat(Ye[Jt]," ").concat(Ge)})}var et=y.forwardRef(function(Ye,Ot){var Jt=Ye.prefixCls,on=Ye.color,Ge=Ye.gradientId,Pt=Ye.radius,jt=Ye.style,vt=Ye.ptg,Lt=Ye.strokeLinecap,Rt=Ye.strokeWidth,sn=Ye.size,Sn=Ye.gapDegree,un=on&&(0,Ve.Z)(on)==="object",Cn=un?"#FFF":void 0,Ct=sn/2,It=y.createElement("circle",{className:"".concat(Jt,"-circle-path"),r:Pt,cx:Ct,cy:Ct,stroke:Cn,strokeLinecap:Lt,strokeWidth:Rt,opacity:vt===0?0:1,style:jt,ref:Ot});if(!un)return It;var Gt="".concat(Ge,"-conic"),tn=Sn?"".concat(180+Sn/2,"deg"):"0deg",Wt=Je(on,(360-Sn)/360),mn=Je(on,1),an="conic-gradient(from ".concat(tn,", ").concat(Wt.join(", "),")"),yn="linear-gradient(to ".concat(Sn?"bottom":"top",", ").concat(mn.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Gt},It),y.createElement("foreignObject",{x:0,y:0,width:sn,height:sn,mask:"url(#".concat(Gt,")")},y.createElement(st,{bg:yn},y.createElement(st,{bg:an}))))}),ge=et,Qe=100,we=function(Ot,Jt,on,Ge,Pt,jt,vt,Lt,Rt,sn){var Sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,un=on/100*360*((360-jt)/360),Cn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[vt],Ct=(100-Ge)/100*Jt;Rt==="round"&&Ge!==100&&(Ct+=sn/2,Ct>=Jt&&(Ct=Jt-.01));var It=Qe/2;return{stroke:typeof Lt=="string"?Lt:void 0,strokeDasharray:"".concat(Jt,"px ").concat(Ot),strokeDashoffset:Ct+Sn,transform:"rotate(".concat(Pt+un+Cn,"deg)"),transformOrigin:"".concat(It,"px ").concat(It,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ft(Ye){var Ot=Ye!=null?Ye:[];return Array.isArray(Ot)?Ot:[Ot]}var $e=function(Ot){var Jt=(0,Ae.Z)((0,Ae.Z)({},ze),Ot),on=Jt.id,Ge=Jt.prefixCls,Pt=Jt.steps,jt=Jt.strokeWidth,vt=Jt.trailWidth,Lt=Jt.gapDegree,Rt=Lt===void 0?0:Lt,sn=Jt.gapPosition,Sn=Jt.trailColor,un=Jt.strokeLinecap,Cn=Jt.style,Ct=Jt.className,It=Jt.strokeColor,Gt=Jt.percent,tn=(0,it.Z)(Jt,se),Wt=Qe/2,mn=rt(on),an="".concat(mn,"-gradient"),yn=Wt-jt/2,jn=Math.PI*2*yn,Nn=Rt>0?90+Rt/2:-90,$n=jn*((360-Rt)/360),Vn=(0,Ve.Z)(Pt)==="object"?Pt:{count:Pt,gap:2},Wn=Vn.count,ur=Vn.gap,rr=ft(Gt),hn=ft(It),Bn=hn.find(function(Ke){return Ke&&(0,Ve.Z)(Ke)==="object"}),zn=Bn&&(0,Ve.Z)(Bn)==="object",Hn=zn?"butt":un,St=we(jn,$n,0,100,Nn,Rt,sn,Sn,Hn,jt),$t=Oe(),nt=function(){var Tt=0;return rr.map(function(Yt,Rn){var Zn=hn[Rn]||hn[hn.length-1],yt=we(jn,$n,Tt,Yt,Nn,Rt,sn,Zn,Hn,jt);return Tt+=Yt,y.createElement(ge,{key:Rn,color:Zn,ptg:Yt,radius:yn,prefixCls:Ge,gradientId:an,style:yt,strokeLinecap:Hn,strokeWidth:jt,gapDegree:Rt,ref:function(Bt){$t[Rn]=Bt},size:Qe})}).reverse()},Ft=function(){var Tt=Math.round(Wn*(rr[0]/100)),Yt=100/Wn,Rn=0;return new Array(Wn).fill(null).map(function(Zn,yt){var xt=yt<=Tt-1?hn[0]:Sn,Bt=xt&&(0,Ve.Z)(xt)==="object"?"url(#".concat(an,")"):void 0,At=we(jn,$n,Rn,Yt,Nn,Rt,sn,xt,"butt",jt,ur);return Rn+=($n-At.strokeDashoffset+ur)*100/$n,y.createElement("circle",{key:yt,className:"".concat(Ge,"-circle-path"),r:yn,cx:Wt,cy:Wt,stroke:Bt,strokeWidth:jt,opacity:1,style:At,ref:function(Pn){$t[yt]=Pn}})})};return y.createElement("svg",(0,je.Z)({className:Ne()("".concat(Ge,"-circle"),Ct),viewBox:"0 0 ".concat(Qe," ").concat(Qe),style:Cn,id:on,role:"presentation"},tn),!Wn&&y.createElement("circle",{className:"".concat(Ge,"-circle-trail"),r:yn,cx:Wt,cy:Wt,stroke:Sn,strokeLinecap:Hn,strokeWidth:vt||jt,style:St}),Wn?Ft():nt())},tt=$e,Nt={Line:Fe,Circle:tt},Le=z(25399),ye=z(68361);function Et(Ye){return!Ye||Ye<0?0:Ye>100?100:Ye}function Zt(Ye){let{success:Ot,successPercent:Jt}=Ye,on=Jt;return Ot&&"progress"in Ot&&(on=Ot.progress),Ot&&"percent"in Ot&&(on=Ot.percent),on}const pt=Ye=>{let{percent:Ot,success:Jt,successPercent:on}=Ye;const Ge=Et(Zt({success:Jt,successPercent:on}));return[Ge,Et(Et(Ot)-Ge)]},Ce=Ye=>{let{success:Ot={},strokeColor:Jt}=Ye;const{strokeColor:on}=Ot;return[on||ye.presetPrimaryColors.green,Jt||null]},at=(Ye,Ot,Jt)=>{var on,Ge,Pt,jt;let vt=-1,Lt=-1;if(Ot==="step"){const Rt=Jt.steps,sn=Jt.strokeWidth;typeof Ye=="string"||typeof Ye=="undefined"?(vt=Ye==="small"?2:14,Lt=sn!=null?sn:8):typeof Ye=="number"?[vt,Lt]=[Ye,Ye]:[vt=14,Lt=8]=Array.isArray(Ye)?Ye:[Ye.width,Ye.height],vt*=Rt}else if(Ot==="line"){const Rt=Jt==null?void 0:Jt.strokeWidth;typeof Ye=="string"||typeof Ye=="undefined"?Lt=Rt||(Ye==="small"?6:8):typeof Ye=="number"?[vt,Lt]=[Ye,Ye]:[vt=-1,Lt=8]=Array.isArray(Ye)?Ye:[Ye.width,Ye.height]}else(Ot==="circle"||Ot==="dashboard")&&(typeof Ye=="string"||typeof Ye=="undefined"?[vt,Lt]=Ye==="small"?[60,60]:[120,120]:typeof Ye=="number"?[vt,Lt]=[Ye,Ye]:Array.isArray(Ye)&&(vt=(Ge=(on=Ye[0])!==null&&on!==void 0?on:Ye[1])!==null&&Ge!==void 0?Ge:120,Lt=(jt=(Pt=Ye[0])!==null&&Pt!==void 0?Pt:Ye[1])!==null&&jt!==void 0?jt:120));return[vt,Lt]},qe=3,zt=Ye=>qe/Ye*100;var ct=Ye=>{const{prefixCls:Ot,trailColor:Jt=null,strokeLinecap:on="round",gapPosition:Ge,gapDegree:Pt,width:jt=120,type:vt,children:Lt,success:Rt,size:sn=jt,steps:Sn}=Ye,[un,Cn]=at(sn,"circle");let{strokeWidth:Ct}=Ye;Ct===void 0&&(Ct=Math.max(zt(un),6));const It={width:un,height:Cn,fontSize:un*.15+6},Gt=y.useMemo(()=>{if(Pt||Pt===0)return Pt;if(vt==="dashboard")return 75},[Pt,vt]),tn=pt(Ye),Wt=Ge||vt==="dashboard"&&"bottom"||void 0,mn=Object.prototype.toString.call(Ye.strokeColor)==="[object Object]",an=Ce({success:Rt,strokeColor:Ye.strokeColor}),yn=Ne()(`${Ot}-inner`,{[`${Ot}-circle-gradient`]:mn}),jn=y.createElement(tt,{steps:Sn,percent:Sn?tn[1]:tn,strokeWidth:Ct,trailWidth:Ct,strokeColor:Sn?an[1]:an,strokeLinecap:on,trailColor:Jt,prefixCls:Ot,gapDegree:Gt,gapPosition:Wt}),Nn=un<=20,$n=y.createElement("div",{className:yn,style:It},jn,!Nn&&Lt);return Nn?y.createElement(Le.Z,{title:Lt},$n):$n},lt=z(36237),nn=z(63356),kt=z(16931),ae=z(51636);const ne="--progress-line-stroke-color",te="--progress-percent",ie=Ye=>{const Ot=Ye?"100%":"-100%";return new lt.Keyframes(`antProgress${Ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ot}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ot}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},fe=Ye=>{const{componentCls:Ot,iconCls:Jt}=Ye;return{[Ot]:Object.assign(Object.assign({},(0,nn.Wf)(Ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ye.fontSize},[`${Ot}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Ot}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ye.remainingColor,borderRadius:Ye.lineBorderRadius},[`${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Ye.defaultColor}},[`${Ot}-success-bg, ${Ot}-bg`]:{position:"relative",background:Ye.defaultColor,borderRadius:Ye.lineBorderRadius,transition:`all ${Ye.motionDurationSlow} ${Ye.motionEaseInOutCirc}`},[`${Ot}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Ot}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ye.marginXXS}},[`${Ot}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${Ot}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Ot}-text-inner`]:{color:Ye.colorWhite,[`&${Ot}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Ot}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ye.colorSuccess},[`${Ot}-text`]:{display:"inline-block",marginInlineStart:Ye.marginXS,color:Ye.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Jt]:{fontSize:Ye.fontSize},[`&${Ot}-text-outer`]:{width:"max-content"},[`&${Ot}-text-outer${Ot}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ye.marginXS}},[`${Ot}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,lt.unit)(Ye.paddingXXS)}`,[`&${Ot}-text-start`]:{justifyContent:"start"},[`&${Ot}-text-end`]:{justifyContent:"end"}},[`&${Ot}-status-active`]:{[`${Ot}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ye.colorBgContainer,borderRadius:Ye.lineBorderRadius,opacity:0,animationName:ie(),animationDuration:Ye.progressActiveMotionDuration,animationTimingFunction:Ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ot}-rtl${Ot}-status-active`]:{[`${Ot}-bg::before`]:{animationName:ie(!0)}},[`&${Ot}-status-exception`]:{[`${Ot}-bg`]:{backgroundColor:Ye.colorError},[`${Ot}-text`]:{color:Ye.colorError}},[`&${Ot}-status-exception ${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Ye.colorError}},[`&${Ot}-status-success`]:{[`${Ot}-bg`]:{backgroundColor:Ye.colorSuccess},[`${Ot}-text`]:{color:Ye.colorSuccess}},[`&${Ot}-status-success ${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Ye.colorSuccess}}})}},re=Ye=>{const{componentCls:Ot,iconCls:Jt}=Ye;return{[Ot]:{[`${Ot}-circle-trail`]:{stroke:Ye.remainingColor},[`&${Ot}-circle ${Ot}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ot}-circle ${Ot}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ye.circleTextColor,fontSize:Ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Jt]:{fontSize:Ye.circleIconFontSize}},[`${Ot}-circle&-status-exception`]:{[`${Ot}-text`]:{color:Ye.colorError}},[`${Ot}-circle&-status-success`]:{[`${Ot}-text`]:{color:Ye.colorSuccess}}},[`${Ot}-inline-circle`]:{lineHeight:1,[`${Ot}-inner`]:{verticalAlign:"bottom"}}}},ue=Ye=>{const{componentCls:Ot}=Ye;return{[Ot]:{[`${Ot}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ye.progressStepMinWidth,marginInlineEnd:Ye.progressStepMarginInlineEnd,backgroundColor:Ye.remainingColor,transition:`all ${Ye.motionDurationSlow}`,"&-active":{backgroundColor:Ye.defaultColor}}}}}},Me=Ye=>{const{componentCls:Ot,iconCls:Jt}=Ye;return{[Ot]:{[`${Ot}-small&-line, ${Ot}-small&-line ${Ot}-text ${Jt}`]:{fontSize:Ye.fontSizeSM}}}},gt=Ye=>({circleTextColor:Ye.colorText,defaultColor:Ye.colorInfo,remainingColor:Ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ye.fontSize/Ye.fontSizeSM}em`});var _e=(0,kt.I$)("Progress",Ye=>{const Ot=Ye.calc(Ye.marginXXS).div(2).equal(),Jt=(0,ae.mergeToken)(Ye,{progressStepMarginInlineEnd:Ot,progressStepMinWidth:Ot,progressActiveMotionDuration:"2.4s"});return[fe(Jt),re(Jt),ue(Jt),Me(Jt)]},gt),ke=function(Ye,Ot){var Jt={};for(var on in Ye)Object.prototype.hasOwnProperty.call(Ye,on)&&Ot.indexOf(on)<0&&(Jt[on]=Ye[on]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,on=Object.getOwnPropertySymbols(Ye);Ge<on.length;Ge++)Ot.indexOf(on[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ye,on[Ge])&&(Jt[on[Ge]]=Ye[on[Ge]]);return Jt};const ot=Ye=>{let Ot=[];return Object.keys(Ye).forEach(Jt=>{const on=parseFloat(Jt.replace(/%/g,""));Number.isNaN(on)||Ot.push({key:on,value:Ye[Jt]})}),Ot=Ot.sort((Jt,on)=>Jt.key-on.key),Ot.map(Jt=>{let{key:on,value:Ge}=Jt;return`${Ge} ${on}%`}).join(", ")},ht=(Ye,Ot)=>{const{from:Jt=ye.presetPrimaryColors.blue,to:on=ye.presetPrimaryColors.blue,direction:Ge=Ot==="rtl"?"to left":"to right"}=Ye,Pt=ke(Ye,["from","to","direction"]);if(Object.keys(Pt).length!==0){const vt=ot(Pt),Lt=`linear-gradient(${Ge}, ${vt})`;return{background:Lt,[ne]:Lt}}const jt=`linear-gradient(${Ge}, ${Jt}, ${on})`;return{background:jt,[ne]:jt}};var Ze=Ye=>{const{prefixCls:Ot,direction:Jt,percent:on,size:Ge,strokeWidth:Pt,strokeColor:jt,strokeLinecap:vt="round",children:Lt,trailColor:Rt=null,percentPosition:sn,success:Sn}=Ye,{align:un,type:Cn}=sn,Ct=jt&&typeof jt!="string"?ht(jt,Jt):{[ne]:jt,background:jt},It=vt==="square"||vt==="butt"?0:void 0,Gt=Ge!=null?Ge:[-1,Pt||(Ge==="small"?6:8)],[tn,Wt]=at(Gt,"line",{strokeWidth:Pt}),mn={backgroundColor:Rt||void 0,borderRadius:It},an=Object.assign(Object.assign({width:`${Et(on)}%`,height:Wt,borderRadius:It},Ct),{[te]:Et(on)/100}),yn=Zt(Ye),jn={width:`${Et(yn)}%`,height:Wt,borderRadius:It,backgroundColor:Sn==null?void 0:Sn.strokeColor},Nn={width:tn<0?"100%":tn},$n=y.createElement("div",{className:`${Ot}-inner`,style:mn},y.createElement("div",{className:Ne()(`${Ot}-bg`,`${Ot}-bg-${Cn}`),style:an},Cn==="inner"&&Lt),yn!==void 0&&y.createElement("div",{className:`${Ot}-success-bg`,style:jn})),Vn=Cn==="outer"&&un==="start",Wn=Cn==="outer"&&un==="end";return Cn==="outer"&&un==="center"?y.createElement("div",{className:`${Ot}-layout-bottom`},$n,Lt):y.createElement("div",{className:`${Ot}-outer`,style:Nn},Vn&&Lt,$n,Wn&&Lt)},Mt=Ye=>{const{size:Ot,steps:Jt,rounding:on=Math.round,percent:Ge=0,strokeWidth:Pt=8,strokeColor:jt,trailColor:vt=null,prefixCls:Lt,children:Rt}=Ye,sn=on(Jt*(Ge/100)),Sn=Ot==="small"?2:14,un=Ot!=null?Ot:[Sn,Pt],[Cn,Ct]=at(un,"step",{steps:Jt,strokeWidth:Pt}),It=Cn/Jt,Gt=Array.from({length:Jt});for(let tn=0;tn<Jt;tn++){const Wt=Array.isArray(jt)?jt[tn]:jt;Gt[tn]=y.createElement("div",{key:tn,className:Ne()(`${Lt}-steps-item`,{[`${Lt}-steps-item-active`]:tn<=sn-1}),style:{backgroundColor:tn<=sn-1?Wt:vt,width:It,height:Ct}})}return y.createElement("div",{className:`${Lt}-steps-outer`},Gt,Rt)},Ut=function(Ye,Ot){var Jt={};for(var on in Ye)Object.prototype.hasOwnProperty.call(Ye,on)&&Ot.indexOf(on)<0&&(Jt[on]=Ye[on]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,on=Object.getOwnPropertySymbols(Ye);Ge<on.length;Ge++)Ot.indexOf(on[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ye,on[Ge])&&(Jt[on[Ge]]=Ye[on[Ge]]);return Jt};const cn=null,ln=["normal","exception","active","success"];var fn=y.forwardRef((Ye,Ot)=>{const{prefixCls:Jt,className:on,rootClassName:Ge,steps:Pt,strokeColor:jt,percent:vt=0,size:Lt="default",showInfo:Rt=!0,type:sn="line",status:Sn,format:un,style:Cn,percentPosition:Ct={}}=Ye,It=Ut(Ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Gt="end",type:tn="outer"}=Ct,Wt=Array.isArray(jt)?jt[0]:jt,mn=typeof jt=="string"||Array.isArray(jt)?jt:void 0,an=y.useMemo(()=>{if(Wt){const nt=typeof Wt=="string"?Wt:Object.values(Wt)[0];return new he.FastColor(nt).isLight()}return!1},[jt]),yn=y.useMemo(()=>{var nt,Ft;const Ke=Zt(Ye);return parseInt(Ke!==void 0?(nt=Ke!=null?Ke:0)===null||nt===void 0?void 0:nt.toString():(Ft=vt!=null?vt:0)===null||Ft===void 0?void 0:Ft.toString(),10)},[vt,Ye.success,Ye.successPercent]),jn=y.useMemo(()=>!ln.includes(Sn)&&yn>=100?"success":Sn||"normal",[Sn,yn]),{getPrefixCls:Nn,direction:$n,progress:Vn}=y.useContext(le.E_),Wn=Nn("progress",Jt),[ur,rr,hn]=_e(Wn),Bn=sn==="line",zn=Bn&&!Pt,Hn=y.useMemo(()=>{if(!Rt)return null;const nt=Zt(Ye);let Ft;const Ke=un||(Yt=>`${Yt}%`),Tt=Bn&&an&&tn==="inner";return tn==="inner"||un||jn!=="exception"&&jn!=="success"?Ft=Ke(Et(vt),Et(nt)):jn==="exception"?Ft=Bn?y.createElement(ve.Z,null):y.createElement(me.Z,null):jn==="success"&&(Ft=Bn?y.createElement(ce.Z,null):y.createElement(Re.Z,null)),y.createElement("span",{className:Ne()(`${Wn}-text`,{[`${Wn}-text-bright`]:Tt,[`${Wn}-text-${Gt}`]:zn,[`${Wn}-text-${tn}`]:zn}),title:typeof Ft=="string"?Ft:void 0},Ft)},[Rt,vt,yn,jn,sn,Wn,un]);let St;sn==="line"?St=Pt?y.createElement(Mt,Object.assign({},Ye,{strokeColor:mn,prefixCls:Wn,steps:typeof Pt=="object"?Pt.count:Pt}),Hn):y.createElement(Ze,Object.assign({},Ye,{strokeColor:Wt,prefixCls:Wn,direction:$n,percentPosition:{align:Gt,type:tn}}),Hn):(sn==="circle"||sn==="dashboard")&&(St=y.createElement(ct,Object.assign({},Ye,{strokeColor:Wt,prefixCls:Wn,progressStatus:jn}),Hn));const $t=Ne()(Wn,`${Wn}-status-${jn}`,{[`${Wn}-${sn==="dashboard"&&"circle"||sn}`]:sn!=="line",[`${Wn}-inline-circle`]:sn==="circle"&&at(Lt,"circle")[0]<=20,[`${Wn}-line`]:zn,[`${Wn}-line-align-${Gt}`]:zn,[`${Wn}-line-position-${tn}`]:zn,[`${Wn}-steps`]:Pt,[`${Wn}-show-info`]:Rt,[`${Wn}-${Lt}`]:typeof Lt=="string",[`${Wn}-rtl`]:$n==="rtl"},Vn==null?void 0:Vn.className,on,Ge,rr,hn);return ur(y.createElement("div",Object.assign({ref:Ot,style:Object.assign(Object.assign({},Vn==null?void 0:Vn.style),Cn),className:$t,role:"progressbar","aria-valuenow":yn,"aria-valuemin":0,"aria-valuemax":100},(0,be.Z)(It,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),St))}),qt=fn},63139:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return pt}});var y=z(59301),he=z(60499),ce={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"},Re=ce,ve=z(7657),me=function(at,qe){return y.createElement(ve.Z,(0,he.Z)({},at,{ref:qe,icon:Re}))},pe=y.forwardRef(me),Ne=pe,be=z(92310),le=z.n(be),je=z(18642),Ae=z(72190),it=z(42244),ze=z(18929),Oe=z(10228),Ee=z(26112);function Pe(Ce,at){var qe=Ce.disabled,zt=Ce.prefixCls,ut=Ce.character,ct=Ce.characterRender,lt=Ce.index,nn=Ce.count,kt=Ce.value,ae=Ce.allowHalf,ne=Ce.focused,te=Ce.onHover,ie=Ce.onClick,fe=function(ht){te(ht,lt)},re=function(ht){ie(ht,lt)},ue=function(ht){ht.keyCode===Oe.Z.ENTER&&ie(ht,lt)},Me=lt+1,gt=new Set([zt]);kt===0&&lt===0&&ne?gt.add("".concat(zt,"-focused")):ae&&kt+.5>=Me&&kt<Me?(gt.add("".concat(zt,"-half")),gt.add("".concat(zt,"-active")),ne&&gt.add("".concat(zt,"-focused"))):(Me<=kt?gt.add("".concat(zt,"-full")):gt.add("".concat(zt,"-zero")),Me===kt&&ne&&gt.add("".concat(zt,"-focused")));var _e=typeof ut=="function"?ut(Ce):ut,ke=y.createElement("li",{className:le()(Array.from(gt)),ref:at},y.createElement("div",{onClick:qe?null:re,onKeyDown:qe?null:ue,onMouseMove:qe?null:fe,role:"radio","aria-checked":kt>lt?"true":"false","aria-posinset":lt+1,"aria-setsize":nn,tabIndex:qe?-1:0},y.createElement("div",{className:"".concat(zt,"-first")},_e),y.createElement("div",{className:"".concat(zt,"-second")},_e)));return ct&&(ke=ct(ke,Ce)),ke}var Fe=y.forwardRef(Pe);function Ve(){var Ce=y.useRef({});function at(zt){return Ce.current[zt]}function qe(zt){return function(ut){Ce.current[zt]=ut}}return[at,qe]}function dt(Ce){var at=Ce.pageXOffset,qe="scrollLeft";if(typeof at!="number"){var zt=Ce.document;at=zt.documentElement[qe],typeof at!="number"&&(at=zt.body[qe])}return at}function Se(Ce){var at,qe,zt=Ce.ownerDocument,ut=zt.body,ct=zt&&zt.documentElement,lt=Ce.getBoundingClientRect();return at=lt.left,qe=lt.top,at-=ct.clientLeft||ut.clientLeft||0,qe-=ct.clientTop||ut.clientTop||0,{left:at,top:qe}}function Ie(Ce){var at=Se(Ce),qe=Ce.ownerDocument,zt=qe.defaultView||qe.parentWindow;return at.left+=dt(zt),at.left}var Xe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function He(Ce,at){var qe=Ce.prefixCls,zt=qe===void 0?"rc-rate":qe,ut=Ce.className,ct=Ce.defaultValue,lt=Ce.value,nn=Ce.count,kt=nn===void 0?5:nn,ae=Ce.allowHalf,ne=ae===void 0?!1:ae,te=Ce.allowClear,ie=te===void 0?!0:te,fe=Ce.keyboard,re=fe===void 0?!0:fe,ue=Ce.character,Me=ue===void 0?"\u2605":ue,gt=Ce.characterRender,_e=Ce.disabled,ke=Ce.direction,ot=ke===void 0?"ltr":ke,ht=Ce.tabIndex,wt=ht===void 0?0:ht,Ze=Ce.autoFocus,We=Ce.onHoverChange,Mt=Ce.onChange,Ut=Ce.onFocus,cn=Ce.onBlur,ln=Ce.onKeyDown,_t=Ce.onMouseLeave,fn=(0,it.Z)(Ce,Xe),qt=Ve(),Ye=(0,Ae.Z)(qt,2),Ot=Ye[0],Jt=Ye[1],on=y.useRef(null),Ge=function(){if(!_e){var Hn;(Hn=on.current)===null||Hn===void 0||Hn.focus()}};y.useImperativeHandle(at,function(){return{focus:Ge,blur:function(){if(!_e){var Hn;(Hn=on.current)===null||Hn===void 0||Hn.blur()}}}});var Pt=(0,ze.Z)(ct||0,{value:lt}),jt=(0,Ae.Z)(Pt,2),vt=jt[0],Lt=jt[1],Rt=(0,ze.Z)(null),sn=(0,Ae.Z)(Rt,2),Sn=sn[0],un=sn[1],Cn=function(Hn,St){var $t=ot==="rtl",nt=Hn+1;if(ne){var Ft=Ot(Hn),Ke=Ie(Ft),Tt=Ft.clientWidth;($t&&St-Ke>Tt/2||!$t&&St-Ke<Tt/2)&&(nt-=.5)}return nt},Ct=function(Hn){Lt(Hn),Mt==null||Mt(Hn)},It=y.useState(!1),Gt=(0,Ae.Z)(It,2),tn=Gt[0],Wt=Gt[1],mn=function(){Wt(!0),Ut==null||Ut()},an=function(){Wt(!1),cn==null||cn()},yn=y.useState(null),jn=(0,Ae.Z)(yn,2),Nn=jn[0],$n=jn[1],Vn=function(Hn,St){var $t=Cn(St,Hn.pageX);$t!==Sn&&($n($t),un(null)),We==null||We($t)},Wn=function(Hn){_e||($n(null),un(null),We==null||We(void 0)),Hn&&(_t==null||_t(Hn))},ur=function(Hn,St){var $t=Cn(St,Hn.pageX),nt=!1;ie&&(nt=$t===vt),Wn(),Ct(nt?0:$t),un(nt?$t:null)},rr=function(Hn){var St=Hn.keyCode,$t=ot==="rtl",nt=ne?.5:1;re&&(St===Oe.Z.RIGHT&&vt<kt&&!$t?(Ct(vt+nt),Hn.preventDefault()):St===Oe.Z.LEFT&&vt>0&&!$t||St===Oe.Z.RIGHT&&vt>0&&$t?(Ct(vt-nt),Hn.preventDefault()):St===Oe.Z.LEFT&&vt<kt&&$t&&(Ct(vt+nt),Hn.preventDefault())),ln==null||ln(Hn)};y.useEffect(function(){Ze&&!_e&&Ge()},[]);var hn=new Array(kt).fill(0).map(function(zn,Hn){return y.createElement(Fe,{ref:Jt(Hn),index:Hn,count:kt,disabled:_e,prefixCls:"".concat(zt,"-star"),allowHalf:ne,value:Nn===null?vt:Nn,onClick:ur,onHover:Vn,key:zn||Hn,character:Me,characterRender:gt,focused:tn})}),Bn=le()(zt,ut,(0,je.Z)((0,je.Z)({},"".concat(zt,"-disabled"),_e),"".concat(zt,"-rtl"),ot==="rtl"));return y.createElement("ul",(0,he.Z)({className:Bn,onMouseLeave:Wn,tabIndex:_e?-1:wt,onFocus:_e?null:mn,onBlur:_e?null:an,onKeyDown:_e?null:rr,ref:on},(0,Ee.Z)(fn,{aria:!0,data:!0,attr:!0})),hn)}var rt=y.forwardRef(He),st=rt,Je=z(48755),et=z(25399),ge=z(36237),Qe=z(63356),we=z(16931),se=z(51636);const ft=Ce=>{const{componentCls:at}=Ce;return{[`${at}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ce.marginXS},"> div":{transition:`all ${Ce.motionDurationMid}, outline 0s`,"&:hover":{transform:Ce.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,ge.unit)(Ce.lineWidth)} dashed ${Ce.starColor}`,transform:Ce.starHoverScale}},"&-first, &-second":{color:Ce.starBg,transition:`all ${Ce.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${at}-star-first, &-half ${at}-star-second`]:{opacity:1},[`&-half ${at}-star-first, &-full ${at}-star-second`]:{color:"inherit"}}}},$e=Ce=>({[`&-rtl${Ce.componentCls}`]:{direction:"rtl"}}),tt=Ce=>{const{componentCls:at}=Ce;return{[at]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ce)),{display:"inline-block",margin:0,padding:0,color:Ce.starColor,fontSize:Ce.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${at} ${at}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ft(Ce)),$e(Ce))}},Nt=Ce=>({starColor:Ce.yellow6,starSize:Ce.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ce.colorFillContent});var Le=(0,we.I$)("Rate",Ce=>{const at=(0,se.mergeToken)(Ce,{});return[tt(at)]},Nt),ye=z(2171),Et=function(Ce,at){var qe={};for(var zt in Ce)Object.prototype.hasOwnProperty.call(Ce,zt)&&at.indexOf(zt)<0&&(qe[zt]=Ce[zt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,zt=Object.getOwnPropertySymbols(Ce);ut<zt.length;ut++)at.indexOf(zt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ce,zt[ut])&&(qe[zt[ut]]=Ce[zt[ut]]);return qe},pt=y.forwardRef((Ce,at)=>{const{prefixCls:qe,className:zt,rootClassName:ut,style:ct,tooltips:lt,character:nn=y.createElement(Ne,null),disabled:kt}=Ce,ae=Et(Ce,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(ht,wt)=>{let{index:Ze}=wt;return lt?y.createElement(et.Z,{title:lt[Ze]},ht):ht},{getPrefixCls:te,direction:ie,rate:fe}=y.useContext(Je.E_),re=te("rate",qe),[ue,Me,gt]=Le(re),_e=Object.assign(Object.assign({},fe==null?void 0:fe.style),ct),ke=y.useContext(ye.Z),ot=kt!=null?kt:ke;return ue(y.createElement(st,Object.assign({ref:at,character:nn,characterRender:ne,disabled:ot},ae,{className:le()(zt,ut,Me,gt,fe==null?void 0:fe.className),style:_e,prefixCls:re,direction:ie})))})},82326:function(En,Vt,z){"use strict";var y=z(59301),he=z(92310),ce=z.n(he),Re=z(37463),ve=z(2738),me=z(75030),pe=z(86641),Ne=z(45915),be=z(82855),le=z(48755),je=z(38406),Ae=z(2171),it=z(83397),ze=z(31756),Oe=z(56553),Ee=z(24971),Pe=z(70045),Fe=z(57700),Ve=z(1722),dt=z(90376),Se=z(68525),Ie=z(90005),Xe=function(et,ge){var Qe={};for(var we in et)Object.prototype.hasOwnProperty.call(et,we)&&ge.indexOf(we)<0&&(Qe[we]=et[we]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,we=Object.getOwnPropertySymbols(et);se<we.length;se++)ge.indexOf(we[se])<0&&Object.prototype.propertyIsEnumerable.call(et,we[se])&&(Qe[we[se]]=et[we[se]]);return Qe};const He="SECRET_COMBOBOX_MODE_DO_NOT_USE",rt=(et,ge)=>{var Qe;const{prefixCls:we,bordered:se,className:ft,rootClassName:$e,getPopupContainer:tt,popupClassName:Nt,dropdownClassName:Le,listHeight:ye=256,placement:Et,listItemHeight:Zt,size:pt,disabled:Ce,notFoundContent:at,status:qe,builtinPlacements:zt,dropdownMatchSelectWidth:ut,popupMatchSelectWidth:ct,direction:lt,style:nn,allowClear:kt,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:ie,maxCount:fe,prefix:re}=et,ue=Xe(et,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Me,getPrefixCls:gt,renderEmpty:_e,direction:ke,virtual:ot,popupMatchSelectWidth:ht,popupOverflow:wt}=y.useContext(le.E_),Ze=(0,le.dj)("select"),[,We]=(0,Fe.ZP)(),Mt=Zt!=null?Zt:We==null?void 0:We.controlHeight,Ut=gt("select",we),cn=gt(),ln=lt!=null?lt:ke,{compactSize:_t,compactItemClassnames:fn}=(0,Pe.ri)(Ut,ln),[qt,Ye]=(0,Ee.Z)("select",ae,se),Ot=(0,it.Z)(Ut),[Jt,on,Ge]=(0,dt.Z)(Ut,Ot),Pt=y.useMemo(()=>{const{mode:rr}=et;if(rr!=="combobox")return rr===He?"combobox":rr},[et.mode]),jt=Pt==="multiple"||Pt==="tags",vt=(0,Ie.Z)(et.suffixIcon,et.showArrow),Lt=(Qe=ct!=null?ct:ut)!==null&&Qe!==void 0?Qe:ht,{status:Rt,hasFeedback:sn,isFormItemInput:Sn,feedbackIcon:un}=y.useContext(Oe.aM),Cn=(0,be.F)(Rt,qe);let Ct;at!==void 0?Ct=at:Pt==="combobox"?Ct=null:Ct=(_e==null?void 0:_e("Select"))||y.createElement(je.Z,{componentName:"Select"});const{suffixIcon:It,itemIcon:Gt,removeIcon:tn,clearIcon:Wt}=(0,Se.Z)(Object.assign(Object.assign({},ue),{multiple:jt,hasFeedback:sn,feedbackIcon:un,showSuffixIcon:vt,prefixCls:Ut,componentName:"Select"})),mn=kt===!0?{clearIcon:Wt}:kt,an=(0,ve.Z)(ue,["suffixIcon","itemIcon"]),yn=ce()(Nt||Le,{[`${Ut}-dropdown-${ln}`]:ln==="rtl"},$e,Ge,Ot,on),jn=(0,ze.Z)(rr=>{var hn;return(hn=pt!=null?pt:_t)!==null&&hn!==void 0?hn:rr}),Nn=y.useContext(Ae.Z),$n=Ce!=null?Ce:Nn,Vn=ce()({[`${Ut}-lg`]:jn==="large",[`${Ut}-sm`]:jn==="small",[`${Ut}-rtl`]:ln==="rtl",[`${Ut}-${qt}`]:Ye,[`${Ut}-in-form-item`]:Sn},(0,be.Z)(Ut,Cn,sn),fn,Ze.className,ft,$e,Ge,Ot,on),Wn=y.useMemo(()=>Et!==void 0?Et:ln==="rtl"?"bottomRight":"bottomLeft",[Et,ln]),[ur]=(0,me.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return Jt(y.createElement(Re.ZP,Object.assign({ref:ge,virtual:ot,showSearch:Ze.showSearch},an,{style:Object.assign(Object.assign({},Ze.style),nn),dropdownMatchSelectWidth:Lt,transitionName:(0,pe.m)(cn,"slide-up",te),builtinPlacements:(0,Ve.Z)(zt,wt),listHeight:ye,listItemHeight:Mt,mode:Pt,prefixCls:Ut,placement:Wn,direction:ln,prefix:re,suffixIcon:It,menuItemSelectedIcon:Gt,removeIcon:tn,allowClear:mn,notFoundContent:Ct,className:Vn,getPopupContainer:tt||Me,dropdownClassName:yn,disabled:$n,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:ur}),maxCount:jt?fe:void 0,tagRender:jt?ie:void 0})))},st=y.forwardRef(rt),Je=(0,Ne.Z)(st,"dropdownAlign");st.SECRET_COMBOBOX_MODE_DO_NOT_USE=He,st.Option=Re.Wx,st.OptGroup=Re.Xo,st._InternalPanelDoNotUseOrYouWillBeFired=Je,Vt.default=st},1722:function(En,Vt){"use strict";const z=he=>{const Re={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:he==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Re),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Re),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Re),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Re),{points:["br","tr"],offset:[0,-4]})}};function y(he,ce){return he||z(ce)}Vt.Z=y},90376:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return we}});var y=z(63356),he=z(56119),ce=z(16931),Re=z(51636),ve=z(46e3),me=z(93873);const pe=se=>{const{optionHeight:ft,optionFontSize:$e,optionLineHeight:tt,optionPadding:Nt}=se;return{position:"relative",display:"block",minHeight:ft,padding:Nt,color:se.colorText,fontWeight:"normal",fontSize:$e,lineHeight:tt,boxSizing:"border-box"}};var be=se=>{const{antCls:ft,componentCls:$e}=se,tt=`${$e}-item`,Nt=`&${ft}-slide-up-enter${ft}-slide-up-enter-active`,Le=`&${ft}-slide-up-appear${ft}-slide-up-appear-active`,ye=`&${ft}-slide-up-leave${ft}-slide-up-leave-active`,Et=`${$e}-dropdown-placement-`,Zt=`${tt}-option-selected`;return[{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(se)),{position:"absolute",top:-9999,zIndex:se.zIndexPopup,boxSizing:"border-box",padding:se.paddingXXS,overflow:"hidden",fontSize:se.fontSize,fontVariant:"initial",backgroundColor:se.colorBgElevated,borderRadius:se.borderRadiusLG,outline:"none",boxShadow:se.boxShadowSecondary,[`
${Nt}${Et}bottomLeft,
${Le}${Et}bottomLeft
`]:{animationName:ve.fJ},[`
${Nt}${Et}topLeft,
${Le}${Et}topLeft,
${Nt}${Et}topRight,
${Le}${Et}topRight
`]:{animationName:ve.Qt},[`${ye}${Et}bottomLeft`]:{animationName:ve.Uw},[`
${ye}${Et}topLeft,
${ye}${Et}topRight
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[tt]:Object.assign(Object.assign({},pe(se)),{cursor:"pointer",transition:`background ${se.motionDurationSlow} ease`,borderRadius:se.borderRadiusSM,"&-group":{color:se.colorTextDescription,fontSize:se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${tt}-option-disabled)`]:{backgroundColor:se.optionActiveBg},[`&-selected:not(${tt}-option-disabled)`]:{color:se.optionSelectedColor,fontWeight:se.optionSelectedFontWeight,backgroundColor:se.optionSelectedBg,[`${tt}-option-state`]:{color:se.colorPrimary}},"&-disabled":{[`&${tt}-option-selected`]:{backgroundColor:se.colorBgContainerDisabled},color:se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:se.calc(se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},pe(se)),{color:se.colorTextDisabled})}),[`${Zt}:has(+ ${Zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ve.oN)(se,"slide-up"),(0,ve.oN)(se,"slide-down"),(0,me.Fm)(se,"move-up"),(0,me.Fm)(se,"move-down")]},le=z(26743),je=z(36237);function Ae(se,ft){const{componentCls:$e,inputPaddingHorizontalBase:tt,borderRadius:Nt}=se,Le=se.calc(se.controlHeight).sub(se.calc(se.lineWidth).mul(2)).equal(),ye=ft?`${$e}-${ft}`:"";return{[`${$e}-single${ye}`]:{fontSize:se.fontSize,height:se.controlHeight,[`${$e}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(se,!0)),{display:"flex",borderRadius:Nt,flex:"1 1 auto",[`${$e}-selection-wrap:after`]:{lineHeight:(0,je.unit)(Le)},[`${$e}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${$e}-selection-item,
${$e}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,je.unit)(Le),transition:`all ${se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${$e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${$e}-selection-item:empty:after`,`${$e}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${$e}-show-arrow ${$e}-selection-item,
&${$e}-show-arrow ${$e}-selection-search,
&${$e}-show-arrow ${$e}-selection-placeholder
`]:{paddingInlineEnd:se.showArrowPaddingInlineEnd},[`&${$e}-open ${$e}-selection-item`]:{color:se.colorTextPlaceholder},[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,je.unit)(tt)}`,[`${$e}-selection-search-input`]:{height:Le,fontSize:se.fontSize},"&:after":{lineHeight:(0,je.unit)(Le)}}},[`&${$e}-customize-input`]:{[`${$e}-selector`]:{"&:after":{display:"none"},[`${$e}-selection-search`]:{position:"static",width:"100%"},[`${$e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,je.unit)(tt)}`,"&:after":{display:"none"}}}}}}}function it(se){const{componentCls:ft}=se,$e=se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal();return[Ae(se),Ae((0,Re.mergeToken)(se,{controlHeight:se.controlHeightSM,borderRadius:se.borderRadiusSM}),"sm"),{[`${ft}-single${ft}-sm`]:{[`&:not(${ft}-customize-input)`]:{[`${ft}-selector`]:{padding:`0 ${(0,je.unit)($e)}`},[`&${ft}-show-arrow ${ft}-selection-search`]:{insetInlineEnd:se.calc($e).add(se.calc(se.fontSize).mul(1.5)).equal()},[`
&${ft}-show-arrow ${ft}-selection-item,
&${ft}-show-arrow ${ft}-selection-placeholder
`]:{paddingInlineEnd:se.calc(se.fontSize).mul(1.5).equal()}}}},Ae((0,Re.mergeToken)(se,{controlHeight:se.singleItemHeightLG,fontSize:se.fontSizeLG,borderRadius:se.borderRadiusLG}),"lg")]}const ze=se=>{const{fontSize:ft,lineHeight:$e,lineWidth:tt,controlHeight:Nt,controlHeightSM:Le,controlHeightLG:ye,paddingXXS:Et,controlPaddingHorizontal:Zt,zIndexPopupBase:pt,colorText:Ce,fontWeightStrong:at,controlItemBgActive:qe,controlItemBgHover:zt,colorBgContainer:ut,colorFillSecondary:ct,colorBgContainerDisabled:lt,colorTextDisabled:nn,colorPrimaryHover:kt,colorPrimary:ae,controlOutline:ne}=se,te=Et*2,ie=tt*2,fe=Math.min(Nt-te,Nt-ie),re=Math.min(Le-te,Le-ie),ue=Math.min(ye-te,ye-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Et/2),zIndexPopup:pt+50,optionSelectedColor:Ce,optionSelectedFontWeight:at,optionSelectedBg:qe,optionActiveBg:zt,optionPadding:`${(Nt-ft*$e)/2}px ${Zt}px`,optionFontSize:ft,optionLineHeight:$e,optionHeight:Nt,selectorBg:ut,clearBg:ut,singleItemHeightLG:ye,multipleItemBg:ct,multipleItemBorderColor:"transparent",multipleItemHeight:fe,multipleItemHeightSM:re,multipleItemHeightLG:ue,multipleSelectorBgDisabled:lt,multipleItemColorDisabled:nn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(se.fontSize*1.25),hoverBorderColor:kt,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:Et}},Oe=(se,ft)=>{const{componentCls:$e,antCls:tt,controlOutlineWidth:Nt}=se;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} ${ft.borderColor}`,background:se.selectorBg},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{borderColor:ft.hoverBorderHover},[`${$e}-focused& ${$e}-selector`]:{borderColor:ft.activeBorderColor,boxShadow:`0 0 0 ${(0,je.unit)(Nt)} ${ft.activeOutlineColor}`,outline:0},[`${$e}-prefix`]:{color:ft.color}}}},Ee=(se,ft)=>({[`&${se.componentCls}-status-${ft.status}`]:Object.assign({},Oe(se,ft))}),Pe=se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oe(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Ee(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Ee(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})}),Fe=(se,ft)=>{const{componentCls:$e,antCls:tt}=se;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{background:ft.bg,border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} transparent`,color:ft.color},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{background:ft.hoverBg},[`${$e}-focused& ${$e}-selector`]:{background:se.selectorBg,borderColor:ft.activeBorderColor,outline:0}}}},Ve=(se,ft)=>({[`&${se.componentCls}-status-${ft.status}`]:Object.assign({},Fe(se,ft))}),dt=se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(se,{bg:se.colorFillTertiary,hoverBg:se.colorFillSecondary,activeBorderColor:se.activeBorderColor,color:se.colorText})),Ve(se,{status:"error",bg:se.colorErrorBg,hoverBg:se.colorErrorBgHover,activeBorderColor:se.colorError,color:se.colorError})),Ve(se,{status:"warning",bg:se.colorWarningBg,hoverBg:se.colorWarningBgHover,activeBorderColor:se.colorWarning,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{borderColor:se.colorBorder,background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.colorBgContainer,border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} ${se.colorSplit}`}})}),Se=se=>({"&-borderless":{[`${se.componentCls}-selector`]:{background:"transparent",border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} transparent`},[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`},[`&${se.componentCls}-status-error`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorError}},[`&${se.componentCls}-status-warning`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorWarning}}}}),Ie=(se,ft)=>{const{componentCls:$e,antCls:tt}=se;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{borderWidth:`0 0 ${(0,je.unit)(se.lineWidth)} 0`,borderStyle:`none none ${se.lineType} none`,borderColor:ft.borderColor,background:se.selectorBg,borderRadius:0},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{borderColor:ft.hoverBorderHover},[`${$e}-focused& ${$e}-selector`]:{borderColor:ft.activeBorderColor,outline:0},[`${$e}-prefix`]:{color:ft.color}}}},Xe=(se,ft)=>({[`&${se.componentCls}-status-${ft.status}`]:Object.assign({},Ie(se,ft))}),He=se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ie(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Xe(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Xe(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})});var st=se=>({[se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Pe(se)),dt(se)),Se(se)),He(se))});const Je=se=>{const{componentCls:ft}=se;return{position:"relative",transition:`all ${se.motionDurationMid} ${se.motionEaseInOut}`,input:{cursor:"pointer"},[`${ft}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ft}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},et=se=>{const{componentCls:ft}=se;return{[`${ft}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ge=se=>{const{antCls:ft,componentCls:$e,inputPaddingHorizontalBase:tt,iconCls:Nt}=se;return{[$e]:Object.assign(Object.assign({},(0,y.Wf)(se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${$e}-customize-input) ${$e}-selector`]:Object.assign(Object.assign({},Je(se)),et(se)),[`${$e}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${ft}-typography`]:{display:"inline"}}),[`${$e}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:se.colorTextPlaceholder,pointerEvents:"none"}),[`${$e}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${se.motionDurationSlow} ease`,[Nt]:{verticalAlign:"top",transition:`transform ${se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$e}-suffix)`]:{pointerEvents:"auto"}},[`${$e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$e}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${$e}-prefix`]:{flex:"none",marginInlineEnd:se.selectAffixPadding},[`${$e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,zIndex:1,display:"inline-block",width:se.fontSizeIcon,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${se.motionDurationMid} ease, opacity ${se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:se.colorTextTertiary}},[`&:hover ${$e}-clear`]:{opacity:1,background:se.colorBgBase,borderRadius:"50%"}}),[`${$e}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${$e}-has-feedback`]:{[`${$e}-clear`]:{insetInlineEnd:se.calc(tt).add(se.fontSize).add(se.paddingXS).equal()}}}}}},Qe=se=>{const{componentCls:ft}=se;return[{[ft]:{[`&${ft}-in-form-item`]:{width:"100%"}}},ge(se),it(se),(0,le.ZP)(se),be(se),{[`${ft}-rtl`]:{direction:"rtl"}},(0,he.c)(se,{borderElCls:`${ft}-selector`,focusElCls:`${ft}-focused`})]};var we=(0,ce.I$)("Select",(se,ft)=>{let{rootPrefixCls:$e}=ft;const tt=(0,Re.mergeToken)(se,{rootPrefixCls:$e,inputPaddingHorizontalBase:se.calc(se.paddingSM).sub(1).equal(),multipleSelectItemHeight:se.multipleItemHeight,selectHeight:se.controlHeight});return[Qe(tt),st(tt)]},ze,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(En,Vt,z){"use strict";z.d(Vt,{_z:function(){return me},gp:function(){return Re}});var y=z(36237),he=z(63356),ce=z(51636);const Re=le=>{const{multipleSelectItemHeight:je,paddingXXS:Ae,lineWidth:it,INTERNAL_FIXED_ITEM_MARGIN:ze}=le,Oe=le.max(le.calc(Ae).sub(it).equal(),0),Ee=le.max(le.calc(Oe).sub(ze).equal(),0);return{basePadding:Oe,containerPadding:Ee,itemHeight:(0,y.unit)(je),itemLineHeight:(0,y.unit)(le.calc(je).sub(le.calc(le.lineWidth).mul(2)).equal())}},ve=le=>{const{multipleSelectItemHeight:je,selectHeight:Ae,lineWidth:it}=le;return le.calc(Ae).sub(je).div(2).sub(it).equal()},me=le=>{const{componentCls:je,iconCls:Ae,borderRadiusSM:it,motionDurationSlow:ze,paddingXS:Oe,multipleItemColorDisabled:Ee,multipleItemBorderColorDisabled:Pe,colorIcon:Fe,colorIconHover:Ve,INTERNAL_FIXED_ITEM_MARGIN:dt}=le;return{[`${je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:dt,borderRadius:it,cursor:"default",transition:`font-size ${ze}, line-height ${ze}, height ${ze}`,marginInlineEnd:le.calc(dt).mul(2).equal(),paddingInlineStart:Oe,paddingInlineEnd:le.calc(Oe).div(2).equal(),[`${je}-disabled&`]:{color:Ee,borderColor:Pe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:le.calc(Oe).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,he.Ro)()),{display:"inline-flex",alignItems:"center",color:Fe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ae}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ve}})}}}},pe=(le,je)=>{const{componentCls:Ae,INTERNAL_FIXED_ITEM_MARGIN:it}=le,ze=`${Ae}-selection-overflow`,Oe=le.multipleSelectItemHeight,Ee=ve(le),Pe=je?`${Ae}-${je}`:"",Fe=Re(le);return{[`${Ae}-multiple${Pe}`]:Object.assign(Object.assign({},me(le)),{[`${Ae}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Fe.basePadding,paddingBlock:Fe.containerPadding,borderRadius:le.borderRadius,[`${Ae}-disabled&`]:{background:le.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(it)} 0`,lineHeight:(0,y.unit)(Oe),visibility:"hidden",content:'"\\a0"'}},[`${Ae}-selection-item`]:{height:Fe.itemHeight,lineHeight:(0,y.unit)(Fe.itemLineHeight)},[`${Ae}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Oe),marginBlock:it}},[`${Ae}-prefix`]:{marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Fe.basePadding).equal()},[`${ze}-item + ${ze}-item,
${Ae}-prefix + ${Ae}-selection-wrap
`]:{[`${Ae}-selection-search`]:{marginInlineStart:0},[`${Ae}-selection-placeholder`]:{insetInlineStart:0}},[`${ze}-item-suffix`]:{minHeight:Fe.itemHeight,marginBlock:it},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Ee).equal(),"\n &-input,\n &-mirror\n ":{height:Oe,fontFamily:le.fontFamily,lineHeight:(0,y.unit)(Oe),transition:`all ${le.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ae}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Fe.basePadding).equal(),insetInlineEnd:le.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${le.motionDurationSlow}`}})}};function Ne(le,je){const{componentCls:Ae}=le,it=je?`${Ae}-${je}`:"",ze={[`${Ae}-multiple${it}`]:{fontSize:le.fontSize,[`${Ae}-selector`]:{[`${Ae}-show-search&`]:{cursor:"text"}},[`
&${Ae}-show-arrow ${Ae}-selector,
&${Ae}-allow-clear ${Ae}-selector
`]:{paddingInlineEnd:le.calc(le.fontSizeIcon).add(le.controlPaddingHorizontal).equal()}}};return[pe(le,je),ze]}const be=le=>{const{componentCls:je}=le,Ae=(0,ce.mergeToken)(le,{selectHeight:le.controlHeightSM,multipleSelectItemHeight:le.multipleItemHeightSM,borderRadius:le.borderRadiusSM,borderRadiusSM:le.borderRadiusXS}),it=(0,ce.mergeToken)(le,{fontSize:le.fontSizeLG,selectHeight:le.controlHeightLG,multipleSelectItemHeight:le.multipleItemHeightLG,borderRadius:le.borderRadiusLG,borderRadiusSM:le.borderRadius});return[Ne(le),Ne(Ae,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:le.calc(le.controlPaddingHorizontalSM).sub(le.lineWidth).equal()},[`${je}-selection-search`]:{marginInlineStart:2}}},Ne(it,"lg")]};Vt.ZP=be},68525:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});var y=z(59301),he=z(40001),ce=z(19248),Re=z(99267),ve=z(84105),me=z(58617),pe=z(47472);function Ne(be){let{suffixIcon:le,clearIcon:je,menuItemSelectedIcon:Ae,removeIcon:it,loading:ze,multiple:Oe,hasFeedback:Ee,prefixCls:Pe,showSuffixIcon:Fe,feedbackIcon:Ve,showArrow:dt,componentName:Se}=be;const Ie=je!=null?je:y.createElement(ce.Z,null),Xe=Je=>le===null&&!Ee&&!dt?null:y.createElement(y.Fragment,null,Fe!==!1&&Je,Ee&&Ve);let He=null;if(le!==void 0)He=Xe(le);else if(ze)He=Xe(y.createElement(me.Z,{spin:!0}));else{const Je=`${Pe}-suffix`;He=et=>{let{open:ge,showSearch:Qe}=et;return Xe(ge&&Qe?y.createElement(pe.Z,{className:Je}):y.createElement(ve.Z,{className:Je}))}}let rt=null;Ae!==void 0?rt=Ae:Oe?rt=y.createElement(he.Z,null):rt=null;let st=null;return it!==void 0?st=it:st=y.createElement(Re.Z,null),{clearIcon:Ie,suffixIcon:He,itemIcon:rt,removeIcon:st}}},90005:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return y}});function y(he,ce){return ce!==void 0?ce:he!==null}},11938:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return et}});var y=z(59301),he=z(40192),ce=z(22703),Re=z(92310),ve=z.n(Re),me=z(26112),pe=z(48755),Ne=z(458),le=ge=>{const{value:Qe,formatter:we,precision:se,decimalSeparator:ft,groupSeparator:$e="",prefixCls:tt}=ge;let Nt;if(typeof we=="function")Nt=we(Qe);else{const Le=String(Qe),ye=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ye||Le==="-")Nt=Le;else{const Et=ye[1];let Zt=ye[2]||"0",pt=ye[4]||"";Zt=Zt.replace(/\B(?=(\d{3})+(?!\d))/g,$e),typeof se=="number"&&(pt=pt.padEnd(se,"0").slice(0,se>0?se:0)),pt&&(pt=`${ft}${pt}`),Nt=[y.createElement("span",{key:"int",className:`${tt}-content-value-int`},Et,Zt),pt&&y.createElement("span",{key:"decimal",className:`${tt}-content-value-decimal`},pt)]}}return y.createElement("span",{className:`${tt}-content-value`},Nt)},je=z(63356),Ae=z(16931),it=z(51636);const ze=ge=>{const{componentCls:Qe,marginXXS:we,padding:se,colorTextDescription:ft,titleFontSize:$e,colorTextHeading:tt,contentFontSize:Nt,fontFamily:Le}=ge;return{[Qe]:Object.assign(Object.assign({},(0,je.Wf)(ge)),{[`${Qe}-title`]:{marginBottom:we,color:ft,fontSize:$e},[`${Qe}-skeleton`]:{paddingTop:se},[`${Qe}-content`]:{color:tt,fontSize:Nt,fontFamily:Le,[`${Qe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Qe}-content-prefix, ${Qe}-content-suffix`]:{display:"inline-block"},[`${Qe}-content-prefix`]:{marginInlineEnd:we},[`${Qe}-content-suffix`]:{marginInlineStart:we}}})}},Oe=ge=>{const{fontSizeHeading3:Qe,fontSize:we}=ge;return{titleFontSize:we,contentFontSize:Qe}};var Ee=(0,Ae.I$)("Statistic",ge=>{const Qe=(0,it.mergeToken)(ge,{});return[ze(Qe)]},Oe),Pe=function(ge,Qe){var we={};for(var se in ge)Object.prototype.hasOwnProperty.call(ge,se)&&Qe.indexOf(se)<0&&(we[se]=ge[se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,se=Object.getOwnPropertySymbols(ge);ft<se.length;ft++)Qe.indexOf(se[ft])<0&&Object.prototype.propertyIsEnumerable.call(ge,se[ft])&&(we[se[ft]]=ge[se[ft]]);return we},Ve=ge=>{const{prefixCls:Qe,className:we,rootClassName:se,style:ft,valueStyle:$e,value:tt=0,title:Nt,valueRender:Le,prefix:ye,suffix:Et,loading:Zt=!1,formatter:pt,precision:Ce,decimalSeparator:at=".",groupSeparator:qe=",",onMouseEnter:zt,onMouseLeave:ut}=ge,ct=Pe(ge,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:lt,direction:nn,className:kt,style:ae}=(0,pe.dj)("statistic"),ne=lt("statistic",Qe),[te,ie,fe]=Ee(ne),re=y.createElement(le,{decimalSeparator:at,groupSeparator:qe,prefixCls:ne,formatter:pt,precision:Ce,value:tt}),ue=ve()(ne,{[`${ne}-rtl`]:nn==="rtl"},kt,we,se,ie,fe),Me=(0,me.Z)(ct,{aria:!0,data:!0});return te(y.createElement("div",Object.assign({},Me,{className:ue,style:Object.assign(Object.assign({},ae),ft),onMouseEnter:zt,onMouseLeave:ut}),Nt&&y.createElement("div",{className:`${ne}-title`},Nt),y.createElement(Ne.Z,{paragraph:!1,loading:Zt,className:`${ne}-skeleton`},y.createElement("div",{style:$e,className:`${ne}-content`},ye&&y.createElement("span",{className:`${ne}-content-prefix`},ye),Le?Le(re):re,Et&&y.createElement("span",{className:`${ne}-content-suffix`},Et)))))};const dt=[["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 Se(ge,Qe){let we=ge;const se=/\[[^\]]*]/g,ft=(Qe.match(se)||[]).map(Le=>Le.slice(1,-1)),$e=Qe.replace(se,"[]"),tt=dt.reduce((Le,ye)=>{let[Et,Zt]=ye;if(Le.includes(Et)){const pt=Math.floor(we/Zt);return we-=pt*Zt,Le.replace(new RegExp(`${Et}+`,"g"),Ce=>{const at=Ce.length;return pt.toString().padStart(at,"0")})}return Le},$e);let Nt=0;return tt.replace(se,()=>{const Le=ft[Nt];return Nt+=1,Le})}function Ie(ge,Qe){const{format:we=""}=Qe,se=new Date(ge).getTime(),ft=Date.now(),$e=Math.max(se-ft,0);return Se($e,we)}var Xe=function(ge,Qe){var we={};for(var se in ge)Object.prototype.hasOwnProperty.call(ge,se)&&Qe.indexOf(se)<0&&(we[se]=ge[se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,se=Object.getOwnPropertySymbols(ge);ft<se.length;ft++)Qe.indexOf(se[ft])<0&&Object.prototype.propertyIsEnumerable.call(ge,se[ft])&&(we[se[ft]]=ge[se[ft]]);return we};const He=1e3/30;function rt(ge){return new Date(ge).getTime()}const st=ge=>{const{value:Qe,format:we="HH:mm:ss",onChange:se,onFinish:ft}=ge,$e=Xe(ge,["value","format","onChange","onFinish"]),tt=(0,he.Z)(),Nt=y.useRef(null),Le=()=>{ft==null||ft(),Nt.current&&(clearInterval(Nt.current),Nt.current=null)},ye=()=>{const pt=rt(Qe);pt>=Date.now()&&(Nt.current=setInterval(()=>{tt(),se==null||se(pt-Date.now()),pt<Date.now()&&Le()},He))};y.useEffect(()=>(ye(),()=>{Nt.current&&(clearInterval(Nt.current),Nt.current=null)}),[Qe]);const Et=(pt,Ce)=>Ie(pt,Object.assign(Object.assign({},Ce),{format:we})),Zt=pt=>(0,ce.Tm)(pt,{title:void 0});return y.createElement(Ve,Object.assign({},$e,{value:Qe,valueRender:Zt,formatter:Et}))};var Je=y.memo(st);Ve.Countdown=Je;var et=Ve},58755:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return ft}});var y=z(59301),he=z(58617),ce=z(92310),Re=z.n(ce),ve=z(60499),me=z(18642),pe=z(72190),Ne=z(42244),be=z(18929),le=z(10228),je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ae=y.forwardRef(function($e,tt){var Nt,Le=$e.prefixCls,ye=Le===void 0?"rc-switch":Le,Et=$e.className,Zt=$e.checked,pt=$e.defaultChecked,Ce=$e.disabled,at=$e.loadingIcon,qe=$e.checkedChildren,zt=$e.unCheckedChildren,ut=$e.onClick,ct=$e.onChange,lt=$e.onKeyDown,nn=(0,Ne.Z)($e,je),kt=(0,be.Z)(!1,{value:Zt,defaultValue:pt}),ae=(0,pe.Z)(kt,2),ne=ae[0],te=ae[1];function ie(Me,gt){var _e=ne;return Ce||(_e=Me,te(_e),ct==null||ct(_e,gt)),_e}function fe(Me){Me.which===le.Z.LEFT?ie(!1,Me):Me.which===le.Z.RIGHT&&ie(!0,Me),lt==null||lt(Me)}function re(Me){var gt=ie(!ne,Me);ut==null||ut(gt,Me)}var ue=Re()(ye,Et,(Nt={},(0,me.Z)(Nt,"".concat(ye,"-checked"),ne),(0,me.Z)(Nt,"".concat(ye,"-disabled"),Ce),Nt));return y.createElement("button",(0,ve.Z)({},nn,{type:"button",role:"switch","aria-checked":ne,disabled:Ce,className:ue,ref:tt,onKeyDown:fe,onClick:re}),at,y.createElement("span",{className:"".concat(ye,"-inner")},y.createElement("span",{className:"".concat(ye,"-inner-checked")},qe),y.createElement("span",{className:"".concat(ye,"-inner-unchecked")},zt)))});Ae.displayName="Switch";var it=Ae,ze=z(12919),Oe=z(48755),Ee=z(2171),Pe=z(31756),Fe=z(36237),Ve=z(17835),dt=z(63356),Se=z(16931),Ie=z(51636);const Xe=$e=>{const{componentCls:tt,trackHeightSM:Nt,trackPadding:Le,trackMinWidthSM:ye,innerMinMarginSM:Et,innerMaxMarginSM:Zt,handleSizeSM:pt,calc:Ce}=$e,at=`${tt}-inner`,qe=(0,Fe.unit)(Ce(pt).add(Ce(Le).mul(2)).equal()),zt=(0,Fe.unit)(Ce(Zt).mul(2).equal());return{[tt]:{[`&${tt}-small`]:{minWidth:ye,height:Nt,lineHeight:(0,Fe.unit)(Nt),[`${tt}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:Et,[`${at}-checked, ${at}-unchecked`]:{minHeight:Nt},[`${at}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${zt})`,marginInlineEnd:`calc(100% - ${qe} + ${zt})`},[`${at}-unchecked`]:{marginTop:Ce(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${tt}-handle`]:{width:pt,height:pt},[`${tt}-loading-icon`]:{top:Ce(Ce(pt).sub($e.switchLoadingIconSize)).div(2).equal(),fontSize:$e.switchLoadingIconSize},[`&${tt}-checked`]:{[`${tt}-inner`]:{paddingInlineStart:Et,paddingInlineEnd:Zt,[`${at}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${at}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${zt})`,marginInlineEnd:`calc(-100% + ${qe} - ${zt})`}},[`${tt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Fe.unit)(Ce(pt).add(Le).equal())})`}},[`&:not(${tt}-disabled):active`]:{[`&:not(${tt}-checked) ${at}`]:{[`${at}-unchecked`]:{marginInlineStart:Ce($e.marginXXS).div(2).equal(),marginInlineEnd:Ce($e.marginXXS).mul(-1).div(2).equal()}},[`&${tt}-checked ${at}`]:{[`${at}-checked`]:{marginInlineStart:Ce($e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ce($e.marginXXS).div(2).equal()}}}}}}},He=$e=>{const{componentCls:tt,handleSize:Nt,calc:Le}=$e;return{[tt]:{[`${tt}-loading-icon${$e.iconCls}`]:{position:"relative",top:Le(Le(Nt).sub($e.fontSize)).div(2).equal(),color:$e.switchLoadingIconColor,verticalAlign:"top"},[`&${tt}-checked ${tt}-loading-icon`]:{color:$e.switchColor}}}},rt=$e=>{const{componentCls:tt,trackPadding:Nt,handleBg:Le,handleShadow:ye,handleSize:Et,calc:Zt}=$e,pt=`${tt}-handle`;return{[tt]:{[pt]:{position:"absolute",top:Nt,insetInlineStart:Nt,width:Et,height:Et,transition:`all ${$e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Le,borderRadius:Zt(Et).div(2).equal(),boxShadow:ye,transition:`all ${$e.switchDuration} ease-in-out`,content:'""'}},[`&${tt}-checked ${pt}`]:{insetInlineStart:`calc(100% - ${(0,Fe.unit)(Zt(Et).add(Nt).equal())})`},[`&:not(${tt}-disabled):active`]:{[`${pt}::before`]:{insetInlineEnd:$e.switchHandleActiveInset,insetInlineStart:0},[`&${tt}-checked ${pt}::before`]:{insetInlineEnd:0,insetInlineStart:$e.switchHandleActiveInset}}}}},st=$e=>{const{componentCls:tt,trackHeight:Nt,trackPadding:Le,innerMinMargin:ye,innerMaxMargin:Et,handleSize:Zt,calc:pt}=$e,Ce=`${tt}-inner`,at=(0,Fe.unit)(pt(Zt).add(pt(Le).mul(2)).equal()),qe=(0,Fe.unit)(pt(Et).mul(2).equal());return{[tt]:{[Ce]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Et,paddingInlineEnd:ye,transition:`padding-inline-start ${$e.switchDuration} ease-in-out, padding-inline-end ${$e.switchDuration} ease-in-out`,[`${Ce}-checked, ${Ce}-unchecked`]:{display:"block",color:$e.colorTextLightSolid,fontSize:$e.fontSizeSM,transition:`margin-inline-start ${$e.switchDuration} ease-in-out, margin-inline-end ${$e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Nt},[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${at} - ${qe})`,marginInlineEnd:`calc(100% - ${at} + ${qe})`},[`${Ce}-unchecked`]:{marginTop:pt(Nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${tt}-checked ${Ce}`]:{paddingInlineStart:ye,paddingInlineEnd:Et,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${at} + ${qe})`,marginInlineEnd:`calc(-100% + ${at} - ${qe})`}},[`&:not(${tt}-disabled):active`]:{[`&:not(${tt}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:pt(Le).mul(2).equal(),marginInlineEnd:pt(Le).mul(-1).mul(2).equal()}},[`&${tt}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:pt(Le).mul(-1).mul(2).equal(),marginInlineEnd:pt(Le).mul(2).equal()}}}}}},Je=$e=>{const{componentCls:tt,trackHeight:Nt,trackMinWidth:Le}=$e;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)($e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Le,height:Nt,lineHeight:(0,Fe.unit)(Nt),verticalAlign:"middle",background:$e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${$e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${tt}-disabled)`]:{background:$e.colorTextTertiary}}),(0,dt.Qy)($e)),{[`&${tt}-checked`]:{background:$e.switchColor,[`&:hover:not(${tt}-disabled)`]:{background:$e.colorPrimaryHover}},[`&${tt}-loading, &${tt}-disabled`]:{cursor:"not-allowed",opacity:$e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${tt}-rtl`]:{direction:"rtl"}})}},et=$e=>{const{fontSize:tt,lineHeight:Nt,controlHeight:Le,colorWhite:ye}=$e,Et=tt*Nt,Zt=Le/2,pt=2,Ce=Et-pt*2,at=Zt-pt*2;return{trackHeight:Et,trackHeightSM:Zt,trackMinWidth:Ce*2+pt*4,trackMinWidthSM:at*2+pt*2,trackPadding:pt,handleBg:ye,handleSize:Ce,handleSizeSM:at,handleShadow:`0 2px 4px 0 ${new Ve.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ce/2,innerMaxMargin:Ce+pt+pt*2,innerMinMarginSM:at/2,innerMaxMarginSM:at+pt+pt*2}};var ge=(0,Se.I$)("Switch",$e=>{const tt=(0,Ie.mergeToken)($e,{switchDuration:$e.motionDurationMid,switchColor:$e.colorPrimary,switchDisabledOpacity:$e.opacityLoading,switchLoadingIconSize:$e.calc($e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${$e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Je(tt),st(tt),rt(tt),He(tt),Xe(tt)]},et),Qe=function($e,tt){var Nt={};for(var Le in $e)Object.prototype.hasOwnProperty.call($e,Le)&&tt.indexOf(Le)<0&&(Nt[Le]=$e[Le]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Le=Object.getOwnPropertySymbols($e);ye<Le.length;ye++)tt.indexOf(Le[ye])<0&&Object.prototype.propertyIsEnumerable.call($e,Le[ye])&&(Nt[Le[ye]]=$e[Le[ye]]);return Nt};const se=y.forwardRef(($e,tt)=>{const{prefixCls:Nt,size:Le,disabled:ye,loading:Et,className:Zt,rootClassName:pt,style:Ce,checked:at,value:qe,defaultChecked:zt,defaultValue:ut,onChange:ct}=$e,lt=Qe($e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[nn,kt]=(0,be.Z)(!1,{value:at!=null?at:qe,defaultValue:zt!=null?zt:ut}),{getPrefixCls:ae,direction:ne,switch:te}=y.useContext(Oe.E_),ie=y.useContext(Ee.Z),fe=(ye!=null?ye:ie)||Et,re=ae("switch",Nt),ue=y.createElement("div",{className:`${re}-handle`},Et&&y.createElement(he.Z,{className:`${re}-loading-icon`})),[Me,gt,_e]=ge(re),ke=(0,Pe.Z)(Le),ot=Re()(te==null?void 0:te.className,{[`${re}-small`]:ke==="small",[`${re}-loading`]:Et,[`${re}-rtl`]:ne==="rtl"},Zt,pt,gt,_e),ht=Object.assign(Object.assign({},te==null?void 0:te.style),Ce),wt=function(){kt(arguments.length<=0?void 0:arguments[0]),ct==null||ct.apply(void 0,arguments)};return Me(y.createElement(ze.Z,{component:"Switch"},y.createElement(it,Object.assign({},lt,{checked:nn,onChange:wt,prefixCls:re,className:ot,style:ht,disabled:fe,ref:tt,loadingIcon:ue}))))});se.__ANT_SWITCH=!0;var ft=se},70858:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return La}});var y=z(59301),he={},ce="rc-table-internal-hook",Re=z(72190),ve=z(6089),me=z(34280),pe=z(13697),Ne=z(4676);function be(De){var Be=y.createContext(void 0),mt=function(Kt){var en=Kt.value,vn=Kt.children,dn=y.useRef(en);dn.current=en;var wn=y.useState(function(){return{getValue:function(){return dn.current},listeners:new Set}}),bn=(0,Re.Z)(wn,1),Kn=bn[0];return(0,me.Z)(function(){(0,Ne.unstable_batchedUpdates)(function(){Kn.listeners.forEach(function(_n){_n(en)})})},[en]),y.createElement(Be.Provider,{value:Kn},vn)};return{Context:Be,Provider:mt,defaultValue:De}}function le(De,Be){var mt=(0,ve.Z)(typeof Be=="function"?Be:function(_n){if(Be===void 0)return _n;if(!Array.isArray(Be))return _n[Be];var kn={};return Be.forEach(function(On){kn[On]=_n[On]}),kn}),Dt=y.useContext(De==null?void 0:De.Context),Kt=Dt||{},en=Kt.listeners,vn=Kt.getValue,dn=y.useRef();dn.current=mt(Dt?vn():De==null?void 0:De.defaultValue);var wn=y.useState({}),bn=(0,Re.Z)(wn,2),Kn=bn[1];return(0,me.Z)(function(){if(!Dt)return;function _n(kn){var On=mt(kn);(0,pe.Z)(dn.current,On,!0)||Kn({})}return en.add(_n),function(){en.delete(_n)}},[Dt]),dn.current}var je=z(60499),Ae=z(8654);function it(){var De=y.createContext(null);function Be(){return y.useContext(De)}function mt(Kt,en){var vn=(0,Ae.Yr)(Kt),dn=function(bn,Kn){var _n=vn?{ref:Kn}:{},kn=y.useRef(0),On=y.useRef(bn),Fn=Be();return Fn!==null?y.createElement(Kt,(0,je.Z)({},bn,_n)):((!en||en(On.current,bn))&&(kn.current+=1),On.current=bn,y.createElement(De.Provider,{value:kn.current},y.createElement(Kt,(0,je.Z)({},bn,_n))))};return vn?y.forwardRef(dn):dn}function Dt(Kt,en){var vn=(0,Ae.Yr)(Kt),dn=function(bn,Kn){var _n=vn?{ref:Kn}:{};return Be(),y.createElement(Kt,(0,je.Z)({},bn,_n))};return vn?y.memo(y.forwardRef(dn),en):y.memo(dn,en)}return{makeImmutable:mt,responseImmutable:Dt,useImmutableMark:Be}}var ze=it(),Oe=ze.makeImmutable,Ee=ze.responseImmutable,Pe=ze.useImmutableMark,Fe=it(),Ve=Fe.makeImmutable,dt=Fe.responseImmutable,Se=Fe.useImmutableMark,Ie=be(),Xe=Ie;function He(De,Be){var mt=React.useRef(0);mt.current+=1;var Dt=React.useRef(De),Kt=[];Object.keys(De||{}).map(function(vn){var dn;(De==null?void 0:De[vn])!==((dn=Dt.current)===null||dn===void 0?void 0:dn[vn])&&Kt.push(vn)}),Dt.current=De;var en=React.useRef([]);return Kt.length&&(en.current=Kt),React.useDebugValue(mt.current),React.useDebugValue(en.current.join(", ")),Be&&console.log("".concat(Be,":"),mt.current,en.current),mt.current}var rt=null,st=null,Je=z(43749),et=z(85899),ge=z(18642),Qe=z(92310),we=z.n(Qe),se=z(80547),ft=z(97938),$e=z(48736),tt=y.createContext({renderWithProps:!1}),Nt=tt,Le="RC_TABLE_KEY";function ye(De){return De==null?[]:Array.isArray(De)?De:[De]}function Et(De){var Be=[],mt={};return De.forEach(function(Dt){for(var Kt=Dt||{},en=Kt.key,vn=Kt.dataIndex,dn=en||ye(vn).join("-")||Le;mt[dn];)dn="".concat(dn,"_next");mt[dn]=!0,Be.push(dn)}),Be}function Zt(De){return De!=null}function pt(De){return typeof De=="number"&&!Number.isNaN(De)}function Ce(De){return De&&(0,Je.Z)(De)==="object"&&!Array.isArray(De)&&!y.isValidElement(De)}function at(De,Be,mt,Dt,Kt,en){var vn=y.useContext(Nt),dn=Se(),wn=(0,se.Z)(function(){if(Zt(Dt))return[Dt];var bn=Be==null||Be===""?[]:Array.isArray(Be)?Be:[Be],Kn=(0,ft.Z)(De,bn),_n=Kn,kn=void 0;if(Kt){var On=Kt(Kn,De,mt);Ce(On)?(_n=On.children,kn=On.props,vn.renderWithProps=!0):_n=On}return[_n,kn]},[dn,De,Dt,Be,Kt,mt],function(bn,Kn){if(en){var _n=(0,Re.Z)(bn,2),kn=_n[1],On=(0,Re.Z)(Kn,2),Fn=On[1];return en(Fn,kn)}return vn.renderWithProps?!0:!(0,pe.Z)(bn,Kn,!0)});return wn}function qe(De,Be,mt,Dt){var Kt=De+Be-1;return De<=Dt&&Kt>=mt}function zt(De,Be){return le(Xe,function(mt){var Dt=qe(De,Be||1,mt.hoverStartRow,mt.hoverEndRow);return[Dt,mt.onHover]})}var ut=z(70425),ct=function(Be){var mt=Be.ellipsis,Dt=Be.rowType,Kt=Be.children,en,vn=mt===!0?{showTitle:!0}:mt;return vn&&(vn.showTitle||Dt==="header")&&(typeof Kt=="string"||typeof Kt=="number"?en=Kt.toString():y.isValidElement(Kt)&&typeof Kt.props.children=="string"&&(en=Kt.props.children)),en};function lt(De){var Be,mt,Dt,Kt,en,vn,dn,wn,bn=De.component,Kn=De.children,_n=De.ellipsis,kn=De.scope,On=De.prefixCls,Fn=De.className,yr=De.align,er=De.record,Er=De.render,Dr=De.dataIndex,xr=De.renderIndex,Mr=De.shouldCellUpdate,Wr=De.index,ro=De.rowType,Qr=De.colSpan,si=De.rowSpan,Oo=De.fixLeft,Co=De.fixRight,Vo=De.firstFixLeft,oo=De.lastFixLeft,lo=De.firstFixRight,$r=De.lastFixRight,Or=De.appendNode,qr=De.additionalProps,uo=qr===void 0?{}:qr,Io=De.isSticky,Hr="".concat(On,"-cell"),di=le(Xe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),hi=di.supportSticky,ha=di.allColumnsFixedLeft,na=di.rowHoverable,Vi=at(er,Dr,xr,Kn,Er,Mr),ra=(0,Re.Z)(Vi,2),ya=ra[0],mi=ra[1],vi={},ba=typeof Oo=="number"&&hi,Ba=typeof Co=="number"&&hi;ba&&(vi.position="sticky",vi.left=Oo),Ba&&(vi.position="sticky",vi.right=Co);var So=(Be=(mt=(Dt=mi==null?void 0:mi.colSpan)!==null&&Dt!==void 0?Dt:uo.colSpan)!==null&&mt!==void 0?mt:Qr)!==null&&Be!==void 0?Be:1,ei=(Kt=(en=(vn=mi==null?void 0:mi.rowSpan)!==null&&vn!==void 0?vn:uo.rowSpan)!==null&&en!==void 0?en:si)!==null&&Kt!==void 0?Kt:1,po=zt(Wr,ei),Jr=(0,Re.Z)(po,2),xi=Jr[0],Ii=Jr[1],qi=(0,ut.zX)(function(ji){var _i;er&&Ii(Wr,Wr+ei-1),uo==null||(_i=uo.onMouseEnter)===null||_i===void 0||_i.call(uo,ji)}),Hi=(0,ut.zX)(function(ji){var _i;er&&Ii(-1,-1),uo==null||(_i=uo.onMouseLeave)===null||_i===void 0||_i.call(uo,ji)});if(So===0||ei===0)return null;var Ca=(dn=uo.title)!==null&&dn!==void 0?dn:ct({rowType:ro,ellipsis:_n,children:ya}),Oa=we()(Hr,Fn,(wn={},(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(wn,"".concat(Hr,"-fix-left"),ba&&hi),"".concat(Hr,"-fix-left-first"),Vo&&hi),"".concat(Hr,"-fix-left-last"),oo&&hi),"".concat(Hr,"-fix-left-all"),oo&&ha&&hi),"".concat(Hr,"-fix-right"),Ba&&hi),"".concat(Hr,"-fix-right-first"),lo&&hi),"".concat(Hr,"-fix-right-last"),$r&&hi),"".concat(Hr,"-ellipsis"),_n),"".concat(Hr,"-with-append"),Or),"".concat(Hr,"-fix-sticky"),(ba||Ba)&&Io&&hi),(0,ge.Z)(wn,"".concat(Hr,"-row-hover"),!mi&&xi)),uo.className,mi==null?void 0:mi.className),Fo={};yr&&(Fo.textAlign=yr);var Zo=(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({},mi==null?void 0:mi.style),vi),Fo),uo.style),Ni=ya;return(0,Je.Z)(Ni)==="object"&&!Array.isArray(Ni)&&!y.isValidElement(Ni)&&(Ni=null),_n&&(oo||lo)&&(Ni=y.createElement("span",{className:"".concat(Hr,"-content")},Ni)),y.createElement(bn,(0,je.Z)({},mi,uo,{className:Oa,style:Zo,title:Ca,scope:kn,onMouseEnter:na?qi:void 0,onMouseLeave:na?Hi:void 0,colSpan:So!==1?So:null,rowSpan:ei!==1?ei:null}),Or,Ni)}var nn=y.memo(lt);function kt(De,Be,mt,Dt,Kt){var en=mt[De]||{},vn=mt[Be]||{},dn,wn;en.fixed==="left"?dn=Dt.left[Kt==="rtl"?Be:De]:vn.fixed==="right"&&(wn=Dt.right[Kt==="rtl"?De:Be]);var bn=!1,Kn=!1,_n=!1,kn=!1,On=mt[Be+1],Fn=mt[De-1],yr=On&&!On.fixed||Fn&&!Fn.fixed||mt.every(function(Mr){return Mr.fixed==="left"});if(Kt==="rtl"){if(dn!==void 0){var er=Fn&&Fn.fixed==="left";kn=!er&&yr}else if(wn!==void 0){var Er=On&&On.fixed==="right";_n=!Er&&yr}}else if(dn!==void 0){var Dr=On&&On.fixed==="left";bn=!Dr&&yr}else if(wn!==void 0){var xr=Fn&&Fn.fixed==="right";Kn=!xr&&yr}return{fixLeft:dn,fixRight:wn,lastFixLeft:bn,firstFixRight:Kn,lastFixRight:_n,firstFixLeft:kn,isSticky:Dt.isSticky}}var ae=y.createContext({}),ne=ae;function te(De){var Be=De.className,mt=De.index,Dt=De.children,Kt=De.colSpan,en=Kt===void 0?1:Kt,vn=De.rowSpan,dn=De.align,wn=le(Xe,["prefixCls","direction"]),bn=wn.prefixCls,Kn=wn.direction,_n=y.useContext(ne),kn=_n.scrollColumnIndex,On=_n.stickyOffsets,Fn=_n.flattenColumns,yr=mt+en-1,er=yr+1===kn?en+1:en,Er=kt(mt,mt+er-1,Fn,On,Kn);return y.createElement(nn,(0,je.Z)({className:Be,index:mt,component:"td",prefixCls:bn,record:null,dataIndex:null,align:dn,colSpan:er,rowSpan:vn,render:function(){return Dt}},Er))}var ie=z(42244),fe=["children"];function re(De){var Be=De.children,mt=(0,ie.Z)(De,fe);return y.createElement("tr",mt,Be)}function ue(De){var Be=De.children;return Be}ue.Row=re,ue.Cell=te;var Me=ue;function gt(De){var Be=De.children,mt=De.stickyOffsets,Dt=De.flattenColumns,Kt=le(Xe,"prefixCls"),en=Dt.length-1,vn=Dt[en],dn=y.useMemo(function(){return{stickyOffsets:mt,flattenColumns:Dt,scrollColumnIndex:vn!=null&&vn.scrollbar?en:null}},[vn,Dt,en,mt]);return y.createElement(ne.Provider,{value:dn},y.createElement("tfoot",{className:"".concat(Kt,"-summary")},Be))}var _e=dt(gt),ke=Me,ot=z(29301),ht=z(24514),wt=z(75152),Ze=z(26112);function We(De,Be,mt,Dt,Kt,en,vn){De.push({record:Be,indent:mt,index:vn});var dn=en(Be),wn=Kt==null?void 0:Kt.has(dn);if(Be&&Array.isArray(Be[Dt])&&wn)for(var bn=0;bn<Be[Dt].length;bn+=1)We(De,Be[Dt][bn],mt+1,Dt,Kt,en,bn)}function Mt(De,Be,mt,Dt){var Kt=y.useMemo(function(){if(mt!=null&&mt.size){for(var en=[],vn=0;vn<(De==null?void 0:De.length);vn+=1){var dn=De[vn];We(en,dn,0,Be,mt,Dt,vn)}return en}return De==null?void 0:De.map(function(wn,bn){return{record:wn,indent:0,index:bn}})},[De,Be,mt,Dt]);return Kt}function Ut(De,Be,mt,Dt){var Kt=le(Xe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),en=Kt.flattenColumns,vn=Kt.expandableType,dn=Kt.expandedKeys,wn=Kt.childrenColumnName,bn=Kt.onTriggerExpand,Kn=Kt.rowExpandable,_n=Kt.onRow,kn=Kt.expandRowByClick,On=Kt.rowClassName,Fn=vn==="nest",yr=vn==="row"&&(!Kn||Kn(De)),er=yr||Fn,Er=dn&&dn.has(Be),Dr=wn&&De&&De[wn],xr=(0,ut.zX)(bn),Mr=_n==null?void 0:_n(De,mt),Wr=Mr==null?void 0:Mr.onClick,ro=function(Co){kn&&er&&bn(De,Co);for(var Vo=arguments.length,oo=new Array(Vo>1?Vo-1:0),lo=1;lo<Vo;lo++)oo[lo-1]=arguments[lo];Wr==null||Wr.apply(void 0,[Co].concat(oo))},Qr;typeof On=="string"?Qr=On:typeof On=="function"&&(Qr=On(De,mt,Dt));var si=Et(en);return(0,et.Z)((0,et.Z)({},Kt),{},{columnsKey:si,nestExpandable:Fn,expanded:Er,hasNestChildren:Dr,record:De,onTriggerExpand:xr,rowSupportExpand:yr,expandable:er,rowProps:(0,et.Z)((0,et.Z)({},Mr),{},{className:we()(Qr,Mr==null?void 0:Mr.className),onClick:ro})})}function cn(De){var Be=De.prefixCls,mt=De.children,Dt=De.component,Kt=De.cellComponent,en=De.className,vn=De.expanded,dn=De.colSpan,wn=De.isEmpty,bn=le(Xe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Kn=bn.scrollbarSize,_n=bn.fixHeader,kn=bn.fixColumn,On=bn.componentWidth,Fn=bn.horizonScroll,yr=mt;return(wn?Fn&&On:kn)&&(yr=y.createElement("div",{style:{width:On-(_n&&!wn?Kn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Be,"-expanded-row-fixed")},yr)),y.createElement(Dt,{className:en,style:{display:vn?null:"none"}},y.createElement(nn,{component:Kt,prefixCls:Be,colSpan:dn},yr))}var ln=cn;function _t(De){var Be=De.prefixCls,mt=De.record,Dt=De.onExpand,Kt=De.expanded,en=De.expandable,vn="".concat(Be,"-row-expand-icon");if(!en)return y.createElement("span",{className:we()(vn,"".concat(Be,"-row-spaced"))});var dn=function(bn){Dt(mt,bn),bn.stopPropagation()};return y.createElement("span",{className:we()(vn,(0,ge.Z)((0,ge.Z)({},"".concat(Be,"-row-expanded"),Kt),"".concat(Be,"-row-collapsed"),!Kt)),onClick:dn})}function fn(De,Be,mt){var Dt=[];function Kt(en){(en||[]).forEach(function(vn,dn){Dt.push(Be(vn,dn)),Kt(vn[mt])})}return Kt(De),Dt}function qt(De,Be,mt,Dt){return typeof De=="string"?De:typeof De=="function"?De(Be,mt,Dt):""}function Ye(De,Be,mt,Dt,Kt){var en=De.record,vn=De.prefixCls,dn=De.columnsKey,wn=De.fixedInfoList,bn=De.expandIconColumnIndex,Kn=De.nestExpandable,_n=De.indentSize,kn=De.expandIcon,On=De.expanded,Fn=De.hasNestChildren,yr=De.onTriggerExpand,er=dn[mt],Er=wn[mt],Dr;mt===(bn||0)&&Kn&&(Dr=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(_n*Dt,"px")},className:"".concat(vn,"-row-indent indent-level-").concat(Dt)}),kn({prefixCls:vn,expanded:On,expandable:Fn,record:en,onExpand:yr})));var xr;return Be.onCell&&(xr=Be.onCell(en,Kt)),{key:er,fixedInfo:Er,appendCellNode:Dr,additionalCellProps:xr||{}}}function Ot(De){var Be=De.className,mt=De.style,Dt=De.record,Kt=De.index,en=De.renderIndex,vn=De.rowKey,dn=De.indent,wn=dn===void 0?0:dn,bn=De.rowComponent,Kn=De.cellComponent,_n=De.scopeCellComponent,kn=Ut(Dt,vn,Kt,wn),On=kn.prefixCls,Fn=kn.flattenColumns,yr=kn.expandedRowClassName,er=kn.expandedRowRender,Er=kn.rowProps,Dr=kn.expanded,xr=kn.rowSupportExpand,Mr=y.useRef(!1);Mr.current||(Mr.current=Dr);var Wr=qt(yr,Dt,Kt,wn),ro=y.createElement(bn,(0,je.Z)({},Er,{"data-row-key":vn,className:we()(Be,"".concat(On,"-row"),"".concat(On,"-row-level-").concat(wn),Er==null?void 0:Er.className,(0,ge.Z)({},Wr,wn>=1)),style:(0,et.Z)((0,et.Z)({},mt),Er==null?void 0:Er.style)}),Fn.map(function(Oo,Co){var Vo=Oo.render,oo=Oo.dataIndex,lo=Oo.className,$r=Ye(kn,Oo,Co,wn,Kt),Or=$r.key,qr=$r.fixedInfo,uo=$r.appendCellNode,Io=$r.additionalCellProps;return y.createElement(nn,(0,je.Z)({className:lo,ellipsis:Oo.ellipsis,align:Oo.align,scope:Oo.rowScope,component:Oo.rowScope?_n:Kn,prefixCls:On,key:Or,record:Dt,index:Kt,renderIndex:en,dataIndex:oo,render:Vo,shouldCellUpdate:Oo.shouldCellUpdate},qr,{appendNode:uo,additionalProps:Io}))})),Qr;if(xr&&(Mr.current||Dr)){var si=er(Dt,Kt,wn+1,Dr);Qr=y.createElement(ln,{expanded:Dr,className:we()("".concat(On,"-expanded-row"),"".concat(On,"-expanded-row-level-").concat(wn+1),Wr),prefixCls:On,component:bn,cellComponent:Kn,colSpan:Fn.length,isEmpty:!1},si)}return y.createElement(y.Fragment,null,ro,Qr)}var Jt=dt(Ot);function on(De){var Be=De.columnKey,mt=De.onColumnResize,Dt=y.useRef();return(0,me.Z)(function(){Dt.current&&mt(Be,Dt.current.offsetWidth)},[]),y.createElement(ot.Z,{data:Be},y.createElement("td",{ref:Dt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ge=z(29194);function Pt(De){var Be=De.prefixCls,mt=De.columnsKey,Dt=De.onColumnResize,Kt=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(Be,"-measure-row"),style:{height:0,fontSize:0},ref:Kt},y.createElement(ot.Z.Collection,{onBatchResize:function(vn){(0,Ge.Z)(Kt.current)&&vn.forEach(function(dn){var wn=dn.data,bn=dn.size;Dt(wn,bn.offsetWidth)})}},mt.map(function(en){return y.createElement(on,{key:en,columnKey:en,onColumnResize:Dt})})))}function jt(De){var Be=De.data,mt=De.measureColumnWidth,Dt=le(Xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Kt=Dt.prefixCls,en=Dt.getComponent,vn=Dt.onColumnResize,dn=Dt.flattenColumns,wn=Dt.getRowKey,bn=Dt.expandedKeys,Kn=Dt.childrenColumnName,_n=Dt.emptyNode,kn=Mt(Be,Kn,bn,wn),On=y.useRef({renderWithProps:!1}),Fn=en(["body","wrapper"],"tbody"),yr=en(["body","row"],"tr"),er=en(["body","cell"],"td"),Er=en(["body","cell"],"th"),Dr;Be.length?Dr=kn.map(function(Mr,Wr){var ro=Mr.record,Qr=Mr.indent,si=Mr.index,Oo=wn(ro,Wr);return y.createElement(Jt,{key:Oo,rowKey:Oo,record:ro,index:Wr,renderIndex:si,rowComponent:yr,cellComponent:er,scopeCellComponent:Er,indent:Qr})}):Dr=y.createElement(ln,{expanded:!0,className:"".concat(Kt,"-placeholder"),prefixCls:Kt,component:yr,cellComponent:er,colSpan:dn.length,isEmpty:!0},_n);var xr=Et(dn);return y.createElement(Nt.Provider,{value:On.current},y.createElement(Fn,{className:"".concat(Kt,"-tbody")},mt&&y.createElement(Pt,{prefixCls:Kt,columnsKey:xr,onColumnResize:vn}),Dr))}var vt=dt(jt),Lt=["expandable"],Rt="RC_TABLE_INTERNAL_COL_DEFINE";function sn(De){var Be=De.expandable,mt=(0,ie.Z)(De,Lt),Dt;return"expandable"in De?Dt=(0,et.Z)((0,et.Z)({},mt),Be):Dt=mt,Dt.showExpandColumn===!1&&(Dt.expandIconColumnIndex=-1),Dt}var Sn=["columnType"];function un(De){for(var Be=De.colWidths,mt=De.columns,Dt=De.columCount,Kt=le(Xe,["tableLayout"]),en=Kt.tableLayout,vn=[],dn=Dt||mt.length,wn=!1,bn=dn-1;bn>=0;bn-=1){var Kn=Be[bn],_n=mt&&mt[bn],kn=void 0,On=void 0;if(_n&&(kn=_n[Rt],en==="auto"&&(On=_n.minWidth)),Kn||On||kn||wn){var Fn=kn||{},yr=Fn.columnType,er=(0,ie.Z)(Fn,Sn);vn.unshift(y.createElement("col",(0,je.Z)({key:bn,style:{width:Kn,minWidth:On}},er))),wn=!0}}return y.createElement("colgroup",null,vn)}var Cn=un,Ct=z(77654),It=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Gt(De,Be){return(0,y.useMemo)(function(){for(var mt=[],Dt=0;Dt<Be;Dt+=1){var Kt=De[Dt];if(Kt!==void 0)mt[Dt]=Kt;else return null}return mt},[De.join("_"),Be])}var tn=y.forwardRef(function(De,Be){var mt=De.className,Dt=De.noData,Kt=De.columns,en=De.flattenColumns,vn=De.colWidths,dn=De.columCount,wn=De.stickyOffsets,bn=De.direction,Kn=De.fixHeader,_n=De.stickyTopOffset,kn=De.stickyBottomOffset,On=De.stickyClassName,Fn=De.onScroll,yr=De.maxContentScroll,er=De.children,Er=(0,ie.Z)(De,It),Dr=le(Xe,["prefixCls","scrollbarSize","isSticky","getComponent"]),xr=Dr.prefixCls,Mr=Dr.scrollbarSize,Wr=Dr.isSticky,ro=Dr.getComponent,Qr=ro(["header","table"],"table"),si=Wr&&!Kn?0:Mr,Oo=y.useRef(null),Co=y.useCallback(function(Io){(0,Ae.mH)(Be,Io),(0,Ae.mH)(Oo,Io)},[]);y.useEffect(function(){var Io;function Hr(di){var hi=di,ha=hi.currentTarget,na=hi.deltaX;na&&(Fn({currentTarget:ha,scrollLeft:ha.scrollLeft+na}),di.preventDefault())}return(Io=Oo.current)===null||Io===void 0||Io.addEventListener("wheel",Hr,{passive:!1}),function(){var di;(di=Oo.current)===null||di===void 0||di.removeEventListener("wheel",Hr)}},[]);var Vo=y.useMemo(function(){return en.every(function(Io){return Io.width})},[en]),oo=en[en.length-1],lo={fixed:oo?oo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(xr,"-cell-scrollbar")}}},$r=(0,y.useMemo)(function(){return si?[].concat((0,Ct.Z)(Kt),[lo]):Kt},[si,Kt]),Or=(0,y.useMemo)(function(){return si?[].concat((0,Ct.Z)(en),[lo]):en},[si,en]),qr=(0,y.useMemo)(function(){var Io=wn.right,Hr=wn.left;return(0,et.Z)((0,et.Z)({},wn),{},{left:bn==="rtl"?[].concat((0,Ct.Z)(Hr.map(function(di){return di+si})),[0]):Hr,right:bn==="rtl"?Io:[].concat((0,Ct.Z)(Io.map(function(di){return di+si})),[0]),isSticky:Wr})},[si,wn,Wr]),uo=Gt(vn,dn);return y.createElement("div",{style:(0,et.Z)({overflow:"hidden"},Wr?{top:_n,bottom:kn}:{}),ref:Co,className:we()(mt,(0,ge.Z)({},On,!!On))},y.createElement(Qr,{style:{tableLayout:"fixed",visibility:Dt||uo?null:"hidden"}},(!Dt||!yr||Vo)&&y.createElement(Cn,{colWidths:uo?[].concat((0,Ct.Z)(uo),[si]):[],columCount:dn+1,columns:Or}),er((0,et.Z)((0,et.Z)({},Er),{},{stickyOffsets:qr,columns:$r,flattenColumns:Or}))))}),Wt=y.memo(tn),mn=function(Be){var mt=Be.cells,Dt=Be.stickyOffsets,Kt=Be.flattenColumns,en=Be.rowComponent,vn=Be.cellComponent,dn=Be.onHeaderRow,wn=Be.index,bn=le(Xe,["prefixCls","direction"]),Kn=bn.prefixCls,_n=bn.direction,kn;dn&&(kn=dn(mt.map(function(Fn){return Fn.column}),wn));var On=Et(mt.map(function(Fn){return Fn.column}));return y.createElement(en,kn,mt.map(function(Fn,yr){var er=Fn.column,Er=kt(Fn.colStart,Fn.colEnd,Kt,Dt,_n),Dr;return er&&er.onHeaderCell&&(Dr=Fn.column.onHeaderCell(er)),y.createElement(nn,(0,je.Z)({},Fn,{scope:er.title?Fn.colSpan>1?"colgroup":"col":null,ellipsis:er.ellipsis,align:er.align,component:vn,prefixCls:Kn,key:On[yr]},Er,{additionalProps:Dr,rowType:"header"}))}))},an=mn;function yn(De){var Be=[];function mt(vn,dn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Be[wn]=Be[wn]||[];var bn=dn,Kn=vn.filter(Boolean).map(function(_n){var kn={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:bn},On=1,Fn=_n.children;return Fn&&Fn.length>0&&(On=mt(Fn,bn,wn+1).reduce(function(yr,er){return yr+er},0),kn.hasSubColumns=!0),"colSpan"in _n&&(On=_n.colSpan),"rowSpan"in _n&&(kn.rowSpan=_n.rowSpan),kn.colSpan=On,kn.colEnd=kn.colStart+On-1,Be[wn].push(kn),bn+=On,On});return Kn}mt(De,0);for(var Dt=Be.length,Kt=function(dn){Be[dn].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Dt-dn)})},en=0;en<Dt;en+=1)Kt(en);return Be}var jn=function(Be){var mt=Be.stickyOffsets,Dt=Be.columns,Kt=Be.flattenColumns,en=Be.onHeaderRow,vn=le(Xe,["prefixCls","getComponent"]),dn=vn.prefixCls,wn=vn.getComponent,bn=y.useMemo(function(){return yn(Dt)},[Dt]),Kn=wn(["header","wrapper"],"thead"),_n=wn(["header","row"],"tr"),kn=wn(["header","cell"],"th");return y.createElement(Kn,{className:"".concat(dn,"-thead")},bn.map(function(On,Fn){var yr=y.createElement(an,{key:Fn,flattenColumns:Kt,cells:On,stickyOffsets:mt,rowComponent:_n,cellComponent:kn,onHeaderRow:en,index:Fn});return yr}))},Nn=dt(jn),$n=z(11592);function Vn(De){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Be=="number"?Be:Be.endsWith("%")?De*parseFloat(Be)/100:null}function Wn(De,Be,mt){return y.useMemo(function(){if(Be&&Be>0){var Dt=0,Kt=0;De.forEach(function(kn){var On=Vn(Be,kn.width);On?Dt+=On:Kt+=1});var en=Math.max(Be,mt),vn=Math.max(en-Dt,Kt),dn=Kt,wn=vn/Kt,bn=0,Kn=De.map(function(kn){var On=(0,et.Z)({},kn),Fn=Vn(Be,On.width);if(Fn)On.width=Fn;else{var yr=Math.floor(wn);On.width=dn===1?vn:yr,vn-=yr,dn-=1}return bn+=On.width,On});if(bn<en){var _n=en/bn;vn=en,Kn.forEach(function(kn,On){var Fn=Math.floor(kn.width*_n);kn.width=On===Kn.length-1?vn:Fn,vn-=Fn})}return[Kn,Math.max(bn,en)]}return[De,Be]},[De,Be,mt])}var ur=["children"],rr=["fixed"];function hn(De){return(0,$n.Z)(De).filter(function(Be){return y.isValidElement(Be)}).map(function(Be){var mt=Be.key,Dt=Be.props,Kt=Dt.children,en=(0,ie.Z)(Dt,ur),vn=(0,et.Z)({key:mt},en);return Kt&&(vn.children=hn(Kt)),vn})}function Bn(De){return De.filter(function(Be){return Be&&(0,Je.Z)(Be)==="object"&&!Be.hidden}).map(function(Be){var mt=Be.children;return mt&&mt.length>0?(0,et.Z)((0,et.Z)({},Be),{},{children:Bn(mt)}):Be})}function zn(De){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(mt){return mt&&(0,Je.Z)(mt)==="object"}).reduce(function(mt,Dt,Kt){var en=Dt.fixed,vn=en===!0?"left":en,dn="".concat(Be,"-").concat(Kt),wn=Dt.children;return wn&&wn.length>0?[].concat((0,Ct.Z)(mt),(0,Ct.Z)(zn(wn,dn).map(function(bn){return(0,et.Z)({fixed:vn},bn)}))):[].concat((0,Ct.Z)(mt),[(0,et.Z)((0,et.Z)({key:dn},Dt),{},{fixed:vn})])},[])}function Hn(De){return De.map(function(Be){var mt=Be.fixed,Dt=(0,ie.Z)(Be,rr),Kt=mt;return mt==="left"?Kt="right":mt==="right"&&(Kt="left"),(0,et.Z)({fixed:Kt},Dt)})}function St(De,Be){var mt=De.prefixCls,Dt=De.columns,Kt=De.children,en=De.expandable,vn=De.expandedKeys,dn=De.columnTitle,wn=De.getRowKey,bn=De.onTriggerExpand,Kn=De.expandIcon,_n=De.rowExpandable,kn=De.expandIconColumnIndex,On=De.direction,Fn=De.expandRowByClick,yr=De.columnWidth,er=De.fixed,Er=De.scrollWidth,Dr=De.clientWidth,xr=y.useMemo(function(){var oo=Dt||hn(Kt)||[];return Bn(oo.slice())},[Dt,Kt]),Mr=y.useMemo(function(){if(en){var oo=xr.slice();if(!oo.includes(he)){var lo=kn||0;lo>=0&&(lo||er==="left"||!er)&&oo.splice(lo,0,he),er==="right"&&oo.splice(xr.length,0,he)}var $r=oo.indexOf(he);oo=oo.filter(function(Io,Hr){return Io!==he||Hr===$r});var Or=xr[$r],qr;er?qr=er:qr=Or?Or.fixed:null;var uo=(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},Rt,{className:"".concat(mt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",dn),"fixed",qr),"className","".concat(mt,"-row-expand-icon-cell")),"width",yr),"render",function(Hr,di,hi){var ha=wn(di,hi),na=vn.has(ha),Vi=_n?_n(di):!0,ra=Kn({prefixCls:mt,expanded:na,expandable:Vi,record:di,onExpand:bn});return Fn?y.createElement("span",{onClick:function(mi){return mi.stopPropagation()}},ra):ra});return oo.map(function(Io){return Io===he?uo:Io})}return xr.filter(function(Io){return Io!==he})},[en,xr,wn,vn,Kn,On]),Wr=y.useMemo(function(){var oo=Mr;return Be&&(oo=Be(oo)),oo.length||(oo=[{render:function(){return null}}]),oo},[Be,Mr,On]),ro=y.useMemo(function(){return On==="rtl"?Hn(zn(Wr)):zn(Wr)},[Wr,On,Er]),Qr=y.useMemo(function(){for(var oo=-1,lo=ro.length-1;lo>=0;lo-=1){var $r=ro[lo].fixed;if($r==="left"||$r===!0){oo=lo;break}}if(oo>=0)for(var Or=0;Or<=oo;Or+=1){var qr=ro[Or].fixed;if(qr!=="left"&&qr!==!0)return!0}var uo=ro.findIndex(function(di){var hi=di.fixed;return hi==="right"});if(uo>=0)for(var Io=uo;Io<ro.length;Io+=1){var Hr=ro[Io].fixed;if(Hr!=="right")return!0}return!1},[ro]),si=Wn(ro,Er,Dr),Oo=(0,Re.Z)(si,2),Co=Oo[0],Vo=Oo[1];return[Wr,Co,Vo,Qr]}var $t=St;function nt(De,Be,mt){var Dt=sn(De),Kt=Dt.expandIcon,en=Dt.expandedRowKeys,vn=Dt.defaultExpandedRowKeys,dn=Dt.defaultExpandAllRows,wn=Dt.expandedRowRender,bn=Dt.onExpand,Kn=Dt.onExpandedRowsChange,_n=Dt.childrenColumnName,kn=Kt||_t,On=_n||"children",Fn=y.useMemo(function(){return wn?"row":De.expandable&&De.internalHooks===ce&&De.expandable.__PARENT_RENDER_ICON__||Be.some(function(Wr){return Wr&&(0,Je.Z)(Wr)==="object"&&Wr[On]})?"nest":!1},[!!wn,Be]),yr=y.useState(function(){return vn||(dn?fn(Be,mt,On):[])}),er=(0,Re.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useMemo(function(){return new Set(en||Er||[])},[en,Er]),Mr=y.useCallback(function(Wr){var ro=mt(Wr,Be.indexOf(Wr)),Qr,si=xr.has(ro);si?(xr.delete(ro),Qr=(0,Ct.Z)(xr)):Qr=[].concat((0,Ct.Z)(xr),[ro]),Dr(Qr),bn&&bn(!si,Wr),Kn&&Kn(Qr)},[mt,xr,Be,bn,Kn]);return[Dt,Fn,xr,kn,On,Mr]}function Ft(De,Be,mt){var Dt=De.map(function(Kt,en){return kt(en,en,De,Be,mt)});return(0,se.Z)(function(){return Dt},[Dt],function(Kt,en){return!(0,pe.Z)(Kt,en)})}function Ke(De){var Be=(0,y.useRef)(De),mt=(0,y.useState)({}),Dt=(0,Re.Z)(mt,2),Kt=Dt[1],en=(0,y.useRef)(null),vn=(0,y.useRef)([]);function dn(wn){vn.current.push(wn);var bn=Promise.resolve();en.current=bn,bn.then(function(){if(en.current===bn){var Kn=vn.current,_n=Be.current;vn.current=[],Kn.forEach(function(kn){Be.current=kn(Be.current)}),en.current=null,_n!==Be.current&&Kt({})}})}return(0,y.useEffect)(function(){return function(){en.current=null}},[]),[Be.current,dn]}function Tt(De){var Be=(0,y.useRef)(De||null),mt=(0,y.useRef)();function Dt(){window.clearTimeout(mt.current)}function Kt(vn){Be.current=vn,Dt(),mt.current=window.setTimeout(function(){Be.current=null,mt.current=void 0},100)}function en(){return Be.current}return(0,y.useEffect)(function(){return Dt},[]),[Kt,en]}function Yt(){var De=y.useState(-1),Be=(0,Re.Z)(De,2),mt=Be[0],Dt=Be[1],Kt=y.useState(-1),en=(0,Re.Z)(Kt,2),vn=en[0],dn=en[1],wn=y.useCallback(function(bn,Kn){Dt(bn),dn(Kn)},[]);return[mt,vn,wn]}var Rn=z(47273),Zn=(0,Rn.Z)()?window:null;function yt(De,Be){var mt=(0,Je.Z)(De)==="object"?De:{},Dt=mt.offsetHeader,Kt=Dt===void 0?0:Dt,en=mt.offsetSummary,vn=en===void 0?0:en,dn=mt.offsetScroll,wn=dn===void 0?0:dn,bn=mt.getContainer,Kn=bn===void 0?function(){return Zn}:bn,_n=Kn()||Zn,kn=!!De;return y.useMemo(function(){return{isSticky:kn,stickyClassName:kn?"".concat(Be,"-sticky-holder"):"",offsetHeader:Kt,offsetSummary:vn,offsetScroll:wn,container:_n}},[kn,wn,Kt,vn,Be,_n])}function xt(De,Be,mt){var Dt=(0,y.useMemo)(function(){var Kt=Be.length,en=function(bn,Kn,_n){for(var kn=[],On=0,Fn=bn;Fn!==Kn;Fn+=_n)kn.push(On),Be[Fn].fixed&&(On+=De[Fn]||0);return kn},vn=en(0,Kt,1),dn=en(Kt-1,-1,-1).reverse();return mt==="rtl"?{left:dn,right:vn}:{left:vn,right:dn}},[De,Be,mt]);return Dt}var Bt=xt;function At(De){var Be=De.className,mt=De.children;return y.createElement("div",{className:Be},mt)}var pn=At,Pn=z(8224),In=z(16089),Mn=z(76846);function qn(De){var Be=(0,Mn.bn)(De),mt=Be.getBoundingClientRect(),Dt=document.documentElement;return{left:mt.left+(window.pageXOffset||Dt.scrollLeft)-(Dt.clientLeft||document.body.clientLeft||0),top:mt.top+(window.pageYOffset||Dt.scrollTop)-(Dt.clientTop||document.body.clientTop||0)}}var nr=function(Be,mt){var Dt,Kt,en=Be.scrollBodyRef,vn=Be.onScroll,dn=Be.offsetScroll,wn=Be.container,bn=Be.direction,Kn=le(Xe,"prefixCls"),_n=((Dt=en.current)===null||Dt===void 0?void 0:Dt.scrollWidth)||0,kn=((Kt=en.current)===null||Kt===void 0?void 0:Kt.clientWidth)||0,On=_n&&kn*(kn/_n),Fn=y.useRef(),yr=Ke({scrollLeft:0,isHiddenScrollBar:!0}),er=(0,Re.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useRef({delta:0,x:0}),Mr=y.useState(!1),Wr=(0,Re.Z)(Mr,2),ro=Wr[0],Qr=Wr[1],si=y.useRef(null);y.useEffect(function(){return function(){In.Z.cancel(si.current)}},[]);var Oo=function(){Qr(!1)},Co=function(Or){Or.persist(),xr.current.delta=Or.pageX-Er.scrollLeft,xr.current.x=0,Qr(!0),Or.preventDefault()},Vo=function(Or){var qr,uo=Or||((qr=window)===null||qr===void 0?void 0:qr.event),Io=uo.buttons;if(!ro||Io===0){ro&&Qr(!1);return}var Hr=xr.current.x+Or.pageX-xr.current.x-xr.current.delta,di=bn==="rtl";Hr=Math.max(di?On-kn:0,Math.min(di?0:kn-On,Hr));var hi=!di||Math.abs(Hr)+Math.abs(On)<kn;hi&&(vn({scrollLeft:Hr/kn*(_n+2)}),xr.current.x=Or.pageX)},oo=function(){In.Z.cancel(si.current),si.current=(0,In.Z)(function(){if(en.current){var Or=qn(en.current).top,qr=Or+en.current.offsetHeight,uo=wn===window?document.documentElement.scrollTop+window.innerHeight:qn(wn).top+wn.clientHeight;qr-(0,wt.Z)()<=uo||Or>=uo-dn?Dr(function(Io){return(0,et.Z)((0,et.Z)({},Io),{},{isHiddenScrollBar:!0})}):Dr(function(Io){return(0,et.Z)((0,et.Z)({},Io),{},{isHiddenScrollBar:!1})})}})},lo=function(Or){Dr(function(qr){return(0,et.Z)((0,et.Z)({},qr),{},{scrollLeft:Or/_n*kn||0})})};return y.useImperativeHandle(mt,function(){return{setScrollLeft:lo,checkScrollBarVisible:oo}}),y.useEffect(function(){var $r=(0,Pn.Z)(document.body,"mouseup",Oo,!1),Or=(0,Pn.Z)(document.body,"mousemove",Vo,!1);return oo(),function(){$r.remove(),Or.remove()}},[On,ro]),y.useEffect(function(){if(en.current){for(var $r=[],Or=(0,Mn.bn)(en.current);Or;)$r.push(Or),Or=Or.parentElement;return $r.forEach(function(qr){return qr.addEventListener("scroll",oo,!1)}),window.addEventListener("resize",oo,!1),window.addEventListener("scroll",oo,!1),wn.addEventListener("scroll",oo,!1),function(){$r.forEach(function(qr){return qr.removeEventListener("scroll",oo)}),window.removeEventListener("resize",oo),window.removeEventListener("scroll",oo),wn.removeEventListener("scroll",oo)}}},[wn]),y.useEffect(function(){Er.isHiddenScrollBar||Dr(function($r){var Or=en.current;return Or?(0,et.Z)((0,et.Z)({},$r),{},{scrollLeft:Or.scrollLeft/Or.scrollWidth*Or.clientWidth}):$r})},[Er.isHiddenScrollBar]),_n<=kn||!On||Er.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,wt.Z)(),width:kn,bottom:dn},className:"".concat(Kn,"-sticky-scroll")},y.createElement("div",{onMouseDown:Co,ref:Fn,className:we()("".concat(Kn,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(Kn,"-sticky-scroll-bar-active"),ro)),style:{width:"".concat(On,"px"),transform:"translate3d(".concat(Er.scrollLeft,"px, 0, 0)")}}))},ir=y.forwardRef(nr);function lr(De){return null}var Qn=lr;function ar(De){return null}var fr=ar,Sr="rc-table",br=[],Zr={};function jr(){return"No Data"}function hr(De,Be){var mt=(0,et.Z)({rowKey:"key",prefixCls:Sr,emptyText:jr},De),Dt=mt.prefixCls,Kt=mt.className,en=mt.rowClassName,vn=mt.style,dn=mt.data,wn=mt.rowKey,bn=mt.scroll,Kn=mt.tableLayout,_n=mt.direction,kn=mt.title,On=mt.footer,Fn=mt.summary,yr=mt.caption,er=mt.id,Er=mt.showHeader,Dr=mt.components,xr=mt.emptyText,Mr=mt.onRow,Wr=mt.onHeaderRow,ro=mt.onScroll,Qr=mt.internalHooks,si=mt.transformColumns,Oo=mt.internalRefs,Co=mt.tailor,Vo=mt.getContainerWidth,oo=mt.sticky,lo=mt.rowHoverable,$r=lo===void 0?!0:lo,Or=dn||br,qr=!!Or.length,uo=Qr===ce,Io=y.useCallback(function(Oi,Ai){return(0,ft.Z)(Dr,Oi)||Ai},[Dr]),Hr=y.useMemo(function(){return typeof wn=="function"?wn:function(Oi){var Ai=Oi&&Oi[wn];return Ai}},[wn]),di=Io(["body"]),hi=Yt(),ha=(0,Re.Z)(hi,3),na=ha[0],Vi=ha[1],ra=ha[2],ya=nt(mt,Or,Hr),mi=(0,Re.Z)(ya,6),vi=mi[0],ba=mi[1],Ba=mi[2],So=mi[3],ei=mi[4],po=mi[5],Jr=bn==null?void 0:bn.x,xi=y.useState(0),Ii=(0,Re.Z)(xi,2),qi=Ii[0],Hi=Ii[1],Ca=$t((0,et.Z)((0,et.Z)((0,et.Z)({},mt),vi),{},{expandable:!!vi.expandedRowRender,columnTitle:vi.columnTitle,expandedKeys:Ba,getRowKey:Hr,onTriggerExpand:po,expandIcon:So,expandIconColumnIndex:vi.expandIconColumnIndex,direction:_n,scrollWidth:uo&&Co&&typeof Jr=="number"?Jr:null,clientWidth:qi}),uo?si:null),Oa=(0,Re.Z)(Ca,4),Fo=Oa[0],Zo=Oa[1],Ni=Oa[2],ji=Oa[3],_i=Ni!=null?Ni:Jr,Na=y.useMemo(function(){return{columns:Fo,flattenColumns:Zo}},[Fo,Zo]),Ea=y.useRef(),al=y.useRef(),oa=y.useRef(),Pi=y.useRef();y.useImperativeHandle(Be,function(){return{nativeElement:Ea.current,scrollTo:function(Ai){var Ua;if(oa.current instanceof HTMLElement){var gl=Ai.index,Ga=Ai.top,ws=Ai.key;if(pt(Ga)){var rs;(rs=oa.current)===null||rs===void 0||rs.scrollTo({top:Ga})}else{var Kl,Bs=ws!=null?ws:Hr(Or[gl]);(Kl=oa.current.querySelector('[data-row-key="'.concat(Bs,'"]')))===null||Kl===void 0||Kl.scrollIntoView()}}else(Ua=oa.current)!==null&&Ua!==void 0&&Ua.scrollTo&&oa.current.scrollTo(Ai)}}});var Wi=y.useRef(),Ki=y.useState(!1),Ia=(0,Re.Z)(Ki,2),ma=Ia[0],Fi=Ia[1],ia=y.useState(!1),Li=(0,Re.Z)(ia,2),ja=Li[0],Da=Li[1],el=y.useState(new Map),ll=(0,Re.Z)(el,2),$l=ll[0],Ui=ll[1],Fs=Et(Zo),tl=Fs.map(function(Oi){return $l.get(Oi)}),Dl=y.useMemo(function(){return tl},[tl.join("_")]),pl=Bt(Dl,Zo,_n),sl=bn&&Zt(bn.y),Gi=bn&&Zt(_i)||!!vi.fixed,vl=Gi&&Zo.some(function(Oi){var Ai=Oi.fixed;return Ai}),ts=y.useRef(),Zl=yt(oo,Dt),jl=Zl.isSticky,Zs=Zl.offsetHeader,js=Zl.offsetSummary,zs=Zl.offsetScroll,Hs=Zl.stickyClassName,qs=Zl.container,ui=y.useMemo(function(){return Fn==null?void 0:Fn(Or)},[Fn,Or]),gi=(sl||jl)&&y.isValidElement(ui)&&ui.type===Me&&ui.props.fixed,ua,xa,Ra;sl&&(xa={overflowY:qr?"scroll":"auto",maxHeight:bn.y}),Gi&&(ua={overflowX:"auto"},sl||(xa={overflowY:"hidden"}),Ra={width:_i===!0?"auto":_i,minWidth:"100%"});var Ma=y.useCallback(function(Oi,Ai){Ui(function(Ua){if(Ua.get(Oi)!==Ai){var gl=new Map(Ua);return gl.set(Oi,Ai),gl}return Ua})},[]),Tl=Tt(null),Ka=(0,Re.Z)(Tl,2),xs=Ka[0],eu=Ka[1];function Os(Oi,Ai){Ai&&(typeof Ai=="function"?Ai(Oi):Ai.scrollLeft!==Oi&&(Ai.scrollLeft=Oi,Ai.scrollLeft!==Oi&&setTimeout(function(){Ai.scrollLeft=Oi},0)))}var ps=(0,ve.Z)(function(Oi){var Ai=Oi.currentTarget,Ua=Oi.scrollLeft,gl=_n==="rtl",Ga=typeof Ua=="number"?Ua:Ai.scrollLeft,ws=Ai||Zr;if(!eu()||eu()===ws){var rs;xs(ws),Os(Ga,al.current),Os(Ga,oa.current),Os(Ga,Wi.current),Os(Ga,(rs=ts.current)===null||rs===void 0?void 0:rs.setScrollLeft)}var Kl=Ai||al.current;if(Kl){var Bs=uo&&Co&&typeof _i=="number"?_i:Kl.scrollWidth,fu=Kl.clientWidth;if(Bs===fu){Fi(!1),Da(!1);return}gl?(Fi(-Ga<Bs-fu),Da(-Ga>0)):(Fi(Ga>0),Da(Ga<Bs-fu))}}),Ws=(0,ve.Z)(function(Oi){ps(Oi),ro==null||ro(Oi)}),vs=function(){if(Gi&&oa.current){var Ai;ps({currentTarget:(0,Mn.bn)(oa.current),scrollLeft:(Ai=oa.current)===null||Ai===void 0?void 0:Ai.scrollLeft})}else Fi(!1),Da(!1)},tu=function(Ai){var Ua,gl=Ai.width;(Ua=ts.current)===null||Ua===void 0||Ua.checkScrollBarVisible();var Ga=Ea.current?Ea.current.offsetWidth:gl;uo&&Vo&&Ea.current&&(Ga=Vo(Ea.current,Ga)||Ga),Ga!==qi&&(vs(),Hi(Ga))},Vs=y.useRef(!1);y.useEffect(function(){Vs.current&&vs()},[Gi,dn,Fo.length]),y.useEffect(function(){Vs.current=!0},[]);var nu=y.useState(0),vu=(0,Re.Z)(nu,2),ns=vu[0],ru=vu[1],xu=y.useState(!0),ou=(0,Re.Z)(xu,2),Is=ou[0],Su=ou[1];(0,me.Z)(function(){(!Co||!uo)&&(oa.current instanceof Element?ru((0,wt.o)(oa.current).width):ru((0,wt.o)(Pi.current).width)),Su((0,ht.G)("position","sticky"))},[]),y.useEffect(function(){uo&&Oo&&(Oo.body.current=oa.current)});var wu=y.useCallback(function(Oi){return y.createElement(y.Fragment,null,y.createElement(Nn,Oi),gi==="top"&&y.createElement(_e,Oi,ui))},[gi,ui]),As=y.useCallback(function(Oi){return y.createElement(_e,Oi,ui)},[ui]),iu=Io(["table"],"table"),Ns=y.useMemo(function(){return Kn||(vl?_i==="max-content"?"auto":"fixed":sl||jl||Zo.some(function(Oi){var Ai=Oi.ellipsis;return Ai})?"fixed":"auto")},[sl,vl,Zo,Kn,jl]),au,Ms={colWidths:Dl,columCount:Zo.length,stickyOffsets:pl,onHeaderRow:Wr,fixHeader:sl,scroll:bn},lu=y.useMemo(function(){return qr?null:typeof xr=="function"?xr():xr},[qr,xr]),gu=y.createElement(vt,{data:Or,measureColumnWidth:sl||Gi||jl}),su=y.createElement(Cn,{colWidths:Zo.map(function(Oi){var Ai=Oi.width;return Ai}),columns:Zo}),uu=yr!=null?y.createElement("caption",{className:"".concat(Dt,"-caption")},yr):void 0,Bu=(0,Ze.Z)(mt,{data:!0}),Ks=(0,Ze.Z)(mt,{aria:!0});if(sl||jl){var gs;typeof di=="function"?(gs=di(Or,{scrollbarSize:ns,ref:oa,onScroll:ps}),Ms.colWidths=Zo.map(function(Oi,Ai){var Ua=Oi.width,gl=Ai===Zo.length-1?Ua-ns:Ua;return typeof gl=="number"&&!Number.isNaN(gl)?gl:0})):gs=y.createElement("div",{style:(0,et.Z)((0,et.Z)({},ua),xa),onScroll:Ws,ref:oa,className:we()("".concat(Dt,"-body"))},y.createElement(iu,(0,je.Z)({style:(0,et.Z)((0,et.Z)({},Ra),{},{tableLayout:Ns})},Ks),uu,su,gu,!gi&&ui&&y.createElement(_e,{stickyOffsets:pl,flattenColumns:Zo},ui)));var Ss=(0,et.Z)((0,et.Z)((0,et.Z)({noData:!Or.length,maxContentScroll:Gi&&_i==="max-content"},Ms),Na),{},{direction:_n,stickyClassName:Hs,onScroll:ps});au=y.createElement(y.Fragment,null,Er!==!1&&y.createElement(Wt,(0,je.Z)({},Ss,{stickyTopOffset:Zs,className:"".concat(Dt,"-header"),ref:al}),wu),gs,gi&&gi!=="top"&&y.createElement(Wt,(0,je.Z)({},Ss,{stickyBottomOffset:js,className:"".concat(Dt,"-summary"),ref:Wi}),As),jl&&oa.current&&oa.current instanceof Element&&y.createElement(ir,{ref:ts,offsetScroll:zs,scrollBodyRef:oa,onScroll:ps,container:qs,direction:_n}))}else au=y.createElement("div",{style:(0,et.Z)((0,et.Z)({},ua),xa),className:we()("".concat(Dt,"-content")),onScroll:ps,ref:oa},y.createElement(iu,(0,je.Z)({style:(0,et.Z)((0,et.Z)({},Ra),{},{tableLayout:Ns})},Ks),uu,su,Er!==!1&&y.createElement(Nn,(0,je.Z)({},Ms,Na)),gu,ui&&y.createElement(_e,{stickyOffsets:pl,flattenColumns:Zo},ui)));var cu=y.createElement("div",(0,je.Z)({className:we()(Dt,Kt,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Dt,"-rtl"),_n==="rtl"),"".concat(Dt,"-ping-left"),ma),"".concat(Dt,"-ping-right"),ja),"".concat(Dt,"-layout-fixed"),Kn==="fixed"),"".concat(Dt,"-fixed-header"),sl),"".concat(Dt,"-fixed-column"),vl),"".concat(Dt,"-fixed-column-gapped"),vl&&ji),"".concat(Dt,"-scroll-horizontal"),Gi),"".concat(Dt,"-has-fix-left"),Zo[0]&&Zo[0].fixed),"".concat(Dt,"-has-fix-right"),Zo[Zo.length-1]&&Zo[Zo.length-1].fixed==="right")),style:vn,id:er,ref:Ea},Bu),kn&&y.createElement(pn,{className:"".concat(Dt,"-title")},kn(Or)),y.createElement("div",{ref:Pi,className:"".concat(Dt,"-container")},au),On&&y.createElement(pn,{className:"".concat(Dt,"-footer")},On(Or)));Gi&&(cu=y.createElement(ot.Z,{onResize:tu},cu));var du=Ft(Zo,pl,_n),Du=y.useMemo(function(){return{scrollX:_i,prefixCls:Dt,getComponent:Io,scrollbarSize:ns,direction:_n,fixedInfoList:du,isSticky:jl,supportSticky:Is,componentWidth:qi,fixHeader:sl,fixColumn:vl,horizonScroll:Gi,tableLayout:Ns,rowClassName:en,expandedRowClassName:vi.expandedRowClassName,expandIcon:So,expandableType:ba,expandRowByClick:vi.expandRowByClick,expandedRowRender:vi.expandedRowRender,onTriggerExpand:po,expandIconColumnIndex:vi.expandIconColumnIndex,indentSize:vi.indentSize,allColumnsFixedLeft:Zo.every(function(Oi){return Oi.fixed==="left"}),emptyNode:lu,columns:Fo,flattenColumns:Zo,onColumnResize:Ma,hoverStartRow:na,hoverEndRow:Vi,onHover:ra,rowExpandable:vi.rowExpandable,onRow:Mr,getRowKey:Hr,expandedKeys:Ba,childrenColumnName:ei,rowHoverable:$r}},[_i,Dt,Io,ns,_n,du,jl,Is,qi,sl,vl,Gi,Ns,en,vi.expandedRowClassName,So,ba,vi.expandRowByClick,vi.expandedRowRender,po,vi.expandIconColumnIndex,vi.indentSize,lu,Fo,Zo,Ma,na,Vi,ra,vi.rowExpandable,Mr,Hr,Ba,ei,$r]);return y.createElement(Xe.Provider,{value:Du},cu)}var Nr=y.forwardRef(hr);function eo(De){return Ve(Nr,De)}var Tr=eo();Tr.EXPAND_COLUMN=he,Tr.INTERNAL_HOOKS=ce,Tr.Column=Qn,Tr.ColumnGroup=fr,Tr.Summary=ke;var Pr=Tr,or=z(48911),Ur=be(null),Rr=be(null);function Br(De,Be,mt){var Dt=Be||1;return mt[De+Dt]-(mt[De]||0)}function Cr(De){var Be=De.rowInfo,mt=De.column,Dt=De.colIndex,Kt=De.indent,en=De.index,vn=De.component,dn=De.renderIndex,wn=De.record,bn=De.style,Kn=De.className,_n=De.inverse,kn=De.getHeight,On=mt.render,Fn=mt.dataIndex,yr=mt.className,er=mt.width,Er=le(Rr,["columnsOffset"]),Dr=Er.columnsOffset,xr=Ye(Be,mt,Dt,Kt,en),Mr=xr.key,Wr=xr.fixedInfo,ro=xr.appendCellNode,Qr=xr.additionalCellProps,si=Qr.style,Oo=Qr.colSpan,Co=Oo===void 0?1:Oo,Vo=Qr.rowSpan,oo=Vo===void 0?1:Vo,lo=Dt-1,$r=Br(lo,Co,Dr),Or=Co>1?er-$r:0,qr=(0,et.Z)((0,et.Z)((0,et.Z)({},si),bn),{},{flex:"0 0 ".concat($r,"px"),width:"".concat($r,"px"),marginRight:Or,pointerEvents:"auto"}),uo=y.useMemo(function(){return _n?oo<=1:Co===0||oo===0||oo>1},[oo,Co,_n]);uo?qr.visibility="hidden":_n&&(qr.height=kn==null?void 0:kn(oo));var Io=uo?function(){return null}:On,Hr={};return(oo===0||Co===0)&&(Hr.rowSpan=1,Hr.colSpan=1),y.createElement(nn,(0,je.Z)({className:we()(yr,Kn),ellipsis:mt.ellipsis,align:mt.align,scope:mt.rowScope,component:vn,prefixCls:Be.prefixCls,key:Mr,record:wn,index:en,renderIndex:dn,dataIndex:Fn,render:Io,shouldCellUpdate:mt.shouldCellUpdate},Wr,{appendNode:ro,additionalProps:(0,et.Z)((0,et.Z)({},Qr),{},{style:qr},Hr)}))}var so=Cr,Ho=["data","index","className","rowKey","style","extra","getHeight"],ti=y.forwardRef(function(De,Be){var mt=De.data,Dt=De.index,Kt=De.className,en=De.rowKey,vn=De.style,dn=De.extra,wn=De.getHeight,bn=(0,ie.Z)(De,Ho),Kn=mt.record,_n=mt.indent,kn=mt.index,On=le(Xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Fn=On.scrollX,yr=On.flattenColumns,er=On.prefixCls,Er=On.fixColumn,Dr=On.componentWidth,xr=le(Ur,["getComponent"]),Mr=xr.getComponent,Wr=Ut(Kn,en,Dt,_n),ro=Mr(["body","row"],"div"),Qr=Mr(["body","cell"],"div"),si=Wr.rowSupportExpand,Oo=Wr.expanded,Co=Wr.rowProps,Vo=Wr.expandedRowRender,oo=Wr.expandedRowClassName,lo;if(si&&Oo){var $r=Vo(Kn,Dt,_n+1,Oo),Or=qt(oo,Kn,Dt,_n),qr={};Er&&(qr={style:(0,ge.Z)({},"--virtual-width","".concat(Dr,"px"))});var uo="".concat(er,"-expanded-row-cell");lo=y.createElement(ro,{className:we()("".concat(er,"-expanded-row"),"".concat(er,"-expanded-row-level-").concat(_n+1),Or)},y.createElement(nn,{component:Qr,prefixCls:er,className:we()(uo,(0,ge.Z)({},"".concat(uo,"-fixed"),Er)),additionalProps:qr},$r))}var Io=(0,et.Z)((0,et.Z)({},vn),{},{width:Fn});dn&&(Io.position="absolute",Io.pointerEvents="none");var Hr=y.createElement(ro,(0,je.Z)({},Co,bn,{"data-row-key":en,ref:si?null:Be,className:we()(Kt,"".concat(er,"-row"),Co==null?void 0:Co.className,(0,ge.Z)({},"".concat(er,"-row-extra"),dn)),style:(0,et.Z)((0,et.Z)({},Io),Co==null?void 0:Co.style)}),yr.map(function(di,hi){return y.createElement(so,{key:hi,component:Qr,rowInfo:Wr,column:di,colIndex:hi,indent:_n,index:Dt,renderIndex:kn,record:Kn,inverse:dn,getHeight:wn})}));return si?y.createElement("div",{ref:Be},Hr,lo):Hr}),Eo=dt(ti),No=Eo,To=y.forwardRef(function(De,Be){var mt=De.data,Dt=De.onScroll,Kt=le(Xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),en=Kt.flattenColumns,vn=Kt.onColumnResize,dn=Kt.getRowKey,wn=Kt.expandedKeys,bn=Kt.prefixCls,Kn=Kt.childrenColumnName,_n=Kt.scrollX,kn=Kt.direction,On=le(Ur),Fn=On.sticky,yr=On.scrollY,er=On.listItemHeight,Er=On.getComponent,Dr=On.onScroll,xr=y.useRef(),Mr=Mt(mt,Kn,wn,dn),Wr=y.useMemo(function(){var lo=0;return en.map(function($r){var Or=$r.width,qr=$r.key;return lo+=Or,[qr,Or,lo]})},[en]),ro=y.useMemo(function(){return Wr.map(function(lo){return lo[2]})},[Wr]);y.useEffect(function(){Wr.forEach(function(lo){var $r=(0,Re.Z)(lo,2),Or=$r[0],qr=$r[1];vn(Or,qr)})},[Wr]),y.useImperativeHandle(Be,function(){var lo,$r={scrollTo:function(qr){var uo;(uo=xr.current)===null||uo===void 0||uo.scrollTo(qr)},nativeElement:(lo=xr.current)===null||lo===void 0?void 0:lo.nativeElement};return Object.defineProperty($r,"scrollLeft",{get:function(){var qr;return((qr=xr.current)===null||qr===void 0?void 0:qr.getScrollInfo().x)||0},set:function(qr){var uo;(uo=xr.current)===null||uo===void 0||uo.scrollTo({left:qr})}}),$r});var Qr=function($r,Or){var qr,uo=(qr=Mr[Or])===null||qr===void 0?void 0:qr.record,Io=$r.onCell;if(Io){var Hr,di=Io(uo,Or);return(Hr=di==null?void 0:di.rowSpan)!==null&&Hr!==void 0?Hr:1}return 1},si=function($r){var Or=$r.start,qr=$r.end,uo=$r.getSize,Io=$r.offsetY;if(qr<0)return null;for(var Hr=en.filter(function(So){return Qr(So,Or)===0}),di=Or,hi=function(ei){if(Hr=Hr.filter(function(po){return Qr(po,ei)===0}),!Hr.length)return di=ei,1},ha=Or;ha>=0&&!hi(ha);ha-=1);for(var na=en.filter(function(So){return Qr(So,qr)!==1}),Vi=qr,ra=function(ei){if(na=na.filter(function(po){return Qr(po,ei)!==1}),!na.length)return Vi=Math.max(ei-1,qr),1},ya=qr;ya<Mr.length&&!ra(ya);ya+=1);for(var mi=[],vi=function(ei){var po=Mr[ei];if(!po)return 1;en.some(function(Jr){return Qr(Jr,ei)>1})&&mi.push(ei)},ba=di;ba<=Vi;ba+=1)vi(ba);var Ba=mi.map(function(So){var ei=Mr[So],po=dn(ei.record,So),Jr=function(qi){var Hi=So+qi-1,Ca=dn(Mr[Hi].record,Hi),Oa=uo(po,Ca);return Oa.bottom-Oa.top},xi=uo(po);return y.createElement(No,{key:So,data:ei,rowKey:po,index:So,style:{top:-Io+xi.top},extra:!0,getHeight:Jr})});return Ba},Oo=y.useMemo(function(){return{columnsOffset:ro}},[ro]),Co="".concat(bn,"-tbody"),Vo=Er(["body","wrapper"]),oo={};return Fn&&(oo.position="sticky",oo.bottom=0,(0,Je.Z)(Fn)==="object"&&Fn.offsetScroll&&(oo.bottom=Fn.offsetScroll)),y.createElement(Rr.Provider,{value:Oo},y.createElement(or.Z,{fullHeight:!1,ref:xr,prefixCls:"".concat(Co,"-virtual"),styles:{horizontalScrollBar:oo},className:Co,height:yr,itemHeight:er||24,data:Mr,itemKey:function($r){return dn($r.record)},component:Vo,scrollWidth:_n,direction:kn,onVirtualScroll:function($r){var Or,qr=$r.x;Dt({currentTarget:(Or=xr.current)===null||Or===void 0?void 0:Or.nativeElement,scrollLeft:qr})},onScroll:Dr,extraRender:si},function(lo,$r,Or){var qr=dn(lo.record,$r);return y.createElement(No,{data:lo,rowKey:qr,index:$r,style:Or.style})}))}),Xo=dt(To),ko=Xo,vo=function(Be,mt){var Dt=mt.ref,Kt=mt.onScroll;return y.createElement(ko,{ref:Dt,data:Be,onScroll:Kt})};function dr(De,Be){var mt=De.data,Dt=De.columns,Kt=De.scroll,en=De.sticky,vn=De.prefixCls,dn=vn===void 0?Sr:vn,wn=De.className,bn=De.listItemHeight,Kn=De.components,_n=De.onScroll,kn=Kt||{},On=kn.x,Fn=kn.y;typeof On!="number"&&(On=1),typeof Fn!="number"&&(Fn=500);var yr=(0,ut.zX)(function(Dr,xr){return(0,ft.Z)(Kn,Dr)||xr}),er=(0,ut.zX)(_n),Er=y.useMemo(function(){return{sticky:en,scrollY:Fn,listItemHeight:bn,getComponent:yr,onScroll:er}},[en,Fn,bn,yr,er]);return y.createElement(Ur.Provider,{value:Er},y.createElement(Pr,(0,je.Z)({},De,{className:we()(wn,"".concat(dn,"-virtual")),scroll:(0,et.Z)((0,et.Z)({},Kt),{},{x:On}),components:(0,et.Z)((0,et.Z)({},Kn),{},{body:mt!=null&&mt.length?vo:void 0}),columns:Dt,internalHooks:ce,tailor:!0,ref:Be})))}var Tn=y.forwardRef(dr);function Gn(De){return Ve(Tn,De)}var Yn=Gn(),Ln=null,wr=De=>null,Jn=De=>null,sr=z(84105),pr=z(82661),_r=z(34643),Yr=z(34061),to=z(18929);function Po(De){const[Be,mt]=(0,y.useState)(null);return[(0,y.useCallback)((en,vn,dn)=>{const wn=Be!=null?Be:en,bn=Math.min(wn||0,en),Kn=Math.max(wn||0,en),_n=vn.slice(bn,Kn+1).map(Fn=>De(Fn)),kn=_n.some(Fn=>!dn.has(Fn)),On=[];return _n.forEach(Fn=>{kn?(dn.has(Fn)||On.push(Fn),dn.add(Fn)):(dn.delete(Fn),On.push(Fn))}),mt(kn?Kn:null),On},[Be]),en=>{mt(en)}]}var Mo=z(32383),Yo=z(62673),Jo=z(75727),ni=z(47889);const ri={},Mi="SELECT_ALL",$i="SELECT_INVERT",Xi="SELECT_NONE",Yi=[],ta=(De,Be)=>{let mt=[];return(Be||[]).forEach(Dt=>{mt.push(Dt),Dt&&typeof Dt=="object"&&De in Dt&&(mt=[].concat((0,Ct.Z)(mt),(0,Ct.Z)(ta(De,Dt[De]))))}),mt};var co=(De,Be)=>{const{preserveSelectedRowKeys:mt,selectedRowKeys:Dt,defaultSelectedRowKeys:Kt,getCheckboxProps:en,onChange:vn,onSelect:dn,onSelectAll:wn,onSelectInvert:bn,onSelectNone:Kn,onSelectMultiple:_n,columnWidth:kn,type:On,selections:Fn,fixed:yr,renderCell:er,hideSelectAll:Er,checkStrictly:Dr=!0}=Be||{},{prefixCls:xr,data:Mr,pageData:Wr,getRecordByKey:ro,getRowKey:Qr,expandType:si,childrenColumnName:Oo,locale:Co,getPopupContainer:Vo}=De,oo=(0,Mo.ln)("Table"),[lo,$r]=Po(So=>So),[Or,qr]=(0,to.Z)(Dt||Kt||Yi,{value:Dt}),uo=y.useRef(new Map),Io=(0,y.useCallback)(So=>{if(mt){const ei=new Map;So.forEach(po=>{let Jr=ro(po);!Jr&&uo.current.has(po)&&(Jr=uo.current.get(po)),ei.set(po,Jr)}),uo.current=ei}},[ro,mt]);y.useEffect(()=>{Io(Or)},[Or]);const Hr=(0,y.useMemo)(()=>ta(Oo,Wr),[Oo,Wr]),{keyEntities:di}=(0,y.useMemo)(()=>{if(Dr)return{keyEntities:null};let So=Mr;if(mt){const ei=new Set(Hr.map((Jr,xi)=>Qr(Jr,xi))),po=Array.from(uo.current).reduce((Jr,xi)=>{let[Ii,qi]=xi;return ei.has(Ii)?Jr:Jr.concat(qi)},[]);So=[].concat((0,Ct.Z)(So),(0,Ct.Z)(po))}return(0,Yr.I8)(So,{externalGetKey:Qr,childrenPropName:Oo})},[Mr,Qr,Dr,Oo,mt,Hr]),hi=(0,y.useMemo)(()=>{const So=new Map;return Hr.forEach((ei,po)=>{const Jr=Qr(ei,po),xi=(en?en(ei):null)||{};So.set(Jr,xi)}),So},[Hr,Qr,en]),ha=(0,y.useCallback)(So=>{const ei=Qr(So);let po;return hi.has(ei)?po=hi.get(Qr(So)):po=en?en(So):void 0,!!(po!=null&&po.disabled)},[hi,Qr]),[na,Vi]=(0,y.useMemo)(()=>{if(Dr)return[Or||[],[]];const{checkedKeys:So,halfCheckedKeys:ei}=(0,_r.S)(Or,!0,di,ha);return[So||[],ei]},[Or,Dr,di,ha]),ra=(0,y.useMemo)(()=>{const So=On==="radio"?na.slice(0,1):na;return new Set(So)},[na,On]),ya=(0,y.useMemo)(()=>On==="radio"?new Set:new Set(Vi),[Vi,On]);y.useEffect(()=>{Be||qr(Yi)},[!!Be]);const mi=(0,y.useCallback)((So,ei)=>{let po,Jr;Io(So),mt?(po=So,Jr=So.map(xi=>uo.current.get(xi))):(po=[],Jr=[],So.forEach(xi=>{const Ii=ro(xi);Ii!==void 0&&(po.push(xi),Jr.push(Ii))})),qr(po),vn==null||vn(po,Jr,{type:ei})},[qr,ro,vn,mt]),vi=(0,y.useCallback)((So,ei,po,Jr)=>{if(dn){const xi=po.map(Ii=>ro(Ii));dn(ro(So),ei,xi,Jr)}mi(po,"single")},[dn,ro,mi]),ba=(0,y.useMemo)(()=>!Fn||Er?null:(Fn===!0?[Mi,$i,Xi]:Fn).map(ei=>ei===Mi?{key:"all",text:Co.selectionAll,onSelect(){mi(Mr.map((po,Jr)=>Qr(po,Jr)).filter(po=>{const Jr=hi.get(po);return!(Jr!=null&&Jr.disabled)||ra.has(po)}),"all")}}:ei===$i?{key:"invert",text:Co.selectInvert,onSelect(){const po=new Set(ra);Wr.forEach((xi,Ii)=>{const qi=Qr(xi,Ii),Hi=hi.get(qi);Hi!=null&&Hi.disabled||(po.has(qi)?po.delete(qi):po.add(qi))});const Jr=Array.from(po);bn&&(oo.deprecated(!1,"onSelectInvert","onChange"),bn(Jr)),mi(Jr,"invert")}}:ei===Xi?{key:"none",text:Co.selectNone,onSelect(){Kn==null||Kn(),mi(Array.from(ra).filter(po=>{const Jr=hi.get(po);return Jr==null?void 0:Jr.disabled}),"none")}}:ei).map(ei=>Object.assign(Object.assign({},ei),{onSelect:function(){for(var po,Jr,xi=arguments.length,Ii=new Array(xi),qi=0;qi<xi;qi++)Ii[qi]=arguments[qi];(Jr=ei.onSelect)===null||Jr===void 0||(po=Jr).call.apply(po,[ei].concat(Ii)),$r(null)}})),[Fn,ra,Wr,Qr,bn,mi]);return[(0,y.useCallback)(So=>{var ei;if(!Be)return So.filter(Pi=>Pi!==ri);let po=(0,Ct.Z)(So);const Jr=new Set(ra),xi=Hr.map(Qr).filter(Pi=>!hi.get(Pi).disabled),Ii=xi.every(Pi=>Jr.has(Pi)),qi=xi.some(Pi=>Jr.has(Pi)),Hi=()=>{const Pi=[];Ii?xi.forEach(Ki=>{Jr.delete(Ki),Pi.push(Ki)}):xi.forEach(Ki=>{Jr.has(Ki)||(Jr.add(Ki),Pi.push(Ki))});const Wi=Array.from(Jr);wn==null||wn(!Ii,Wi.map(Ki=>ro(Ki)),Pi.map(Ki=>ro(Ki))),mi(Wi,"all"),$r(null)};let Ca,Oa;if(On!=="radio"){let Pi;if(ba){const Fi={getPopupContainer:Vo,items:ba.map((ia,Li)=>{const{key:ja,text:Da,onSelect:el}=ia;return{key:ja!=null?ja:Li,onClick:()=>{el==null||el(xi)},label:Da}})};Pi=y.createElement("div",{className:`${xr}-selection-extra`},y.createElement(Jo.Z,{menu:Fi,getPopupContainer:Vo},y.createElement("span",null,y.createElement(sr.Z,null))))}const Wi=Hr.map((Fi,ia)=>{const Li=Qr(Fi,ia),ja=hi.get(Li)||{};return Object.assign({checked:Jr.has(Li)},ja)}).filter(Fi=>{let{disabled:ia}=Fi;return ia}),Ki=!!Wi.length&&Wi.length===Hr.length,Ia=Ki&&Wi.every(Fi=>{let{checked:ia}=Fi;return ia}),ma=Ki&&Wi.some(Fi=>{let{checked:ia}=Fi;return ia});Oa=y.createElement(Yo.default,{checked:Ki?Ia:!!Hr.length&&Ii,indeterminate:Ki?!Ia&&ma:!Ii&&qi,onChange:Hi,disabled:Hr.length===0||Ki,"aria-label":Pi?"Custom selection":"Select all",skipGroup:!0}),Ca=!Er&&y.createElement("div",{className:`${xr}-selection`},Oa,Pi)}let Fo;On==="radio"?Fo=(Pi,Wi,Ki)=>{const Ia=Qr(Wi,Ki),ma=Jr.has(Ia),Fi=hi.get(Ia);return{node:y.createElement(ni.ZP,Object.assign({},Fi,{checked:ma,onClick:ia=>{var Li;ia.stopPropagation(),(Li=Fi==null?void 0:Fi.onClick)===null||Li===void 0||Li.call(Fi,ia)},onChange:ia=>{var Li;Jr.has(Ia)||vi(Ia,!0,[Ia],ia.nativeEvent),(Li=Fi==null?void 0:Fi.onChange)===null||Li===void 0||Li.call(Fi,ia)}})),checked:ma}}:Fo=(Pi,Wi,Ki)=>{var Ia;const ma=Qr(Wi,Ki),Fi=Jr.has(ma),ia=ya.has(ma),Li=hi.get(ma);let ja;return si==="nest"?ja=ia:ja=(Ia=Li==null?void 0:Li.indeterminate)!==null&&Ia!==void 0?Ia:ia,{node:y.createElement(Yo.default,Object.assign({},Li,{indeterminate:ja,checked:Fi,skipGroup:!0,onClick:Da=>{var el;Da.stopPropagation(),(el=Li==null?void 0:Li.onClick)===null||el===void 0||el.call(Li,Da)},onChange:Da=>{var el;const{nativeEvent:ll}=Da,{shiftKey:$l}=ll,Ui=xi.findIndex(tl=>tl===ma),Fs=na.some(tl=>xi.includes(tl));if($l&&Dr&&Fs){const tl=lo(Ui,xi,Jr),Dl=Array.from(Jr);_n==null||_n(!Fi,Dl.map(pl=>ro(pl)),tl.map(pl=>ro(pl))),mi(Dl,"multiple")}else{const tl=na;if(Dr){const Dl=Fi?(0,pr._5)(tl,ma):(0,pr.L0)(tl,ma);vi(ma,!Fi,Dl,ll)}else{const Dl=(0,_r.S)([].concat((0,Ct.Z)(tl),[ma]),!0,di,ha),{checkedKeys:pl,halfCheckedKeys:sl}=Dl;let Gi=pl;if(Fi){const vl=new Set(pl);vl.delete(ma),Gi=(0,_r.S)(Array.from(vl),{checked:!1,halfCheckedKeys:sl},di,ha).checkedKeys}vi(ma,!Fi,Gi,ll)}}$r(Fi?null:Ui),(el=Li==null?void 0:Li.onChange)===null||el===void 0||el.call(Li,Da)}})),checked:Fi}};const Zo=(Pi,Wi,Ki)=>{const{node:Ia,checked:ma}=Fo(Pi,Wi,Ki);return er?er(ma,Wi,Ki,Ia):Ia};if(!po.includes(ri))if(po.findIndex(Pi=>{var Wi;return((Wi=Pi[Rt])===null||Wi===void 0?void 0:Wi.columnType)==="EXPAND_COLUMN"})===0){const[Pi,...Wi]=po;po=[Pi,ri].concat((0,Ct.Z)(Wi))}else po=[ri].concat((0,Ct.Z)(po));const Ni=po.indexOf(ri);po=po.filter((Pi,Wi)=>Pi!==ri||Wi===Ni);const ji=po[Ni-1],_i=po[Ni+1];let Na=yr;Na===void 0&&((_i==null?void 0:_i.fixed)!==void 0?Na=_i.fixed:(ji==null?void 0:ji.fixed)!==void 0&&(Na=ji.fixed)),Na&&ji&&((ei=ji[Rt])===null||ei===void 0?void 0:ei.columnType)==="EXPAND_COLUMN"&&ji.fixed===void 0&&(ji.fixed=Na);const Ea=we()(`${xr}-selection-col`,{[`${xr}-selection-col-with-dropdown`]:Fn&&On==="checkbox"}),al=()=>Be!=null&&Be.columnTitle?typeof Be.columnTitle=="function"?Be.columnTitle(Oa):Be.columnTitle:Ca,oa={fixed:Na,width:kn,className:`${xr}-selection-column`,title:al(),render:Zo,onCell:Be.onCell,[Rt]:{className:Ea}};return po.map(Pi=>Pi===ri?oa:Pi)},[Qr,Hr,Be,na,ra,ya,kn,ba,si,hi,_n,vi,ha]),ra]},wi=z(2738);function wo(De,Be){return De._antProxy=De._antProxy||{},Object.keys(Be).forEach(mt=>{if(!(mt in De._antProxy)){const Dt=De[mt];De._antProxy[mt]=Dt,De[mt]=Be[mt]}}),De}function aa(De,Be){return(0,y.useImperativeHandle)(De,()=>{const mt=Be(),{nativeElement:Dt}=mt;return typeof Proxy!="undefined"?new Proxy(Dt,{get(Kt,en){return mt[en]?mt[en]:Reflect.get(Kt,en)}}):wo(Dt,mt)})}var Qa=z(83010),Ha=z(48755),da=z(38406),fa=z(83397),Ti=z(31756),ka=z(13783),rl=z(85981),Ja=z(31709),la=z(29787),Fl=z(57700);function El(De){return Be=>{const{prefixCls:mt,onExpand:Dt,record:Kt,expanded:en,expandable:vn}=Be,dn=`${mt}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:wn=>{Dt(Kt,wn),wn.stopPropagation()},className:we()(dn,{[`${dn}-spaced`]:!vn,[`${dn}-expanded`]:vn&&en,[`${dn}-collapsed`]:vn&&!en}),"aria-label":en?De.collapse:De.expand,"aria-expanded":en})}}var jo=El;function ai(De){return(mt,Dt)=>{const Kt=mt.querySelector(`.${De}-container`);let en=Dt;if(Kt){const vn=getComputedStyle(Kt),dn=parseInt(vn.borderLeftWidth,10),wn=parseInt(vn.borderRightWidth,10);en=Dt-dn-wn}return en}}const Ro=(De,Be)=>"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Be;function Bo(De,Be){return Be?`${Be}-${De}`:`${De}`}const qo=(De,Be)=>typeof De=="function"?De(Be):De,Bi=(De,Be)=>{const mt=qo(De,Be);return Object.prototype.toString.call(mt)==="[object Object]"?"":mt};var Wa={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"},zi=Wa,Qi=z(7657),sa=function(Be,mt){return y.createElement(Qi.Z,(0,je.Z)({},Be,{ref:mt,icon:zi}))},cl=y.forwardRef(sa),xl=cl,Va=z(9981),Sl=z(40192);function kl(De){const Be=y.useRef(De),mt=(0,Sl.Z)();return[()=>Be.current,Dt=>{Be.current=Dt,mt()}]}var dl=z(7939),zl=z(584),Ps=z(93041),Gl=z(78857),Ol=z(18287),Ll=z(47472),fl=z(49397),Xl=De=>{const{value:Be,filterSearch:mt,tablePrefixCls:Dt,locale:Kt,onChange:en}=De;return mt?y.createElement("div",{className:`${Dt}-filter-dropdown-search`},y.createElement(fl.Z,{prefix:y.createElement(Ll.Z,null),placeholder:Kt.filterSearchPlaceholder,onChange:en,value:Be,htmlSize:1,className:`${Dt}-filter-dropdown-search-input`})):null},bs=z(10228);const Il=De=>{const{keyCode:Be}=De;Be===bs.Z.ENTER&&De.stopPropagation()};var as=y.forwardRef((De,Be)=>y.createElement("div",{className:De.className,onClick:mt=>mt.stopPropagation(),onKeyDown:Il,ref:Be},De.children));function wl(De){let Be=[];return(De||[]).forEach(mt=>{let{value:Dt,children:Kt}=mt;Be.push(Dt),Kt&&(Be=[].concat((0,Ct.Z)(Be),(0,Ct.Z)(wl(Kt))))}),Be}function Hl(De){return De.some(Be=>{let{children:mt}=Be;return mt})}function Wl(De,Be){return typeof Be=="string"||typeof Be=="number"?Be==null?void 0:Be.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function ls(De){let{filters:Be,prefixCls:mt,filteredKeys:Dt,filterMultiple:Kt,searchValue:en,filterSearch:vn}=De;return Be.map((dn,wn)=>{const bn=String(dn.value);if(dn.children)return{key:bn||wn,label:dn.text,popupClassName:`${mt}-dropdown-submenu`,children:ls({filters:dn.children,prefixCls:mt,filteredKeys:Dt,filterMultiple:Kt,searchValue:en,filterSearch:vn})};const Kn=Kt?Yo.default:ni.ZP,_n={key:dn.value!==void 0?bn:wn,label:y.createElement(y.Fragment,null,y.createElement(Kn,{checked:Dt.includes(bn)}),y.createElement("span",null,dn.text))};return en.trim()?typeof vn=="function"?vn(en,dn)?_n:null:Wl(en,dn.text)?_n:null:_n})}function Vl(De){return De||[]}var ol=De=>{var Be,mt,Dt,Kt;const{tablePrefixCls:en,prefixCls:vn,column:dn,dropdownPrefixCls:wn,columnKey:bn,filterOnClose:Kn,filterMultiple:_n,filterMode:kn="menu",filterSearch:On=!1,filterState:Fn,triggerFilter:yr,locale:er,children:Er,getPopupContainer:Dr,rootClassName:xr}=De,{filterResetToDefaultFilteredValue:Mr,defaultFilteredValue:Wr,filterDropdownProps:ro={},filterDropdownOpen:Qr,filterDropdownVisible:si,onFilterDropdownVisibleChange:Oo,onFilterDropdownOpenChange:Co}=dn,[Vo,oo]=y.useState(!1),lo=!!(Fn&&(!((Be=Fn.filteredKeys)===null||Be===void 0)&&Be.length||Fn.forceFiltered)),$r=Fo=>{var Zo;oo(Fo),(Zo=ro.onOpenChange)===null||Zo===void 0||Zo.call(ro,Fo),Co==null||Co(Fo),Oo==null||Oo(Fo)},Or=(Kt=(Dt=(mt=ro.open)!==null&&mt!==void 0?mt:Qr)!==null&&Dt!==void 0?Dt:si)!==null&&Kt!==void 0?Kt:Vo,qr=Fn==null?void 0:Fn.filteredKeys,[uo,Io]=kl(Vl(qr)),Hr=Fo=>{let{selectedKeys:Zo}=Fo;Io(Zo)},di=(Fo,Zo)=>{let{node:Ni,checked:ji}=Zo;Hr(_n?{selectedKeys:Fo}:{selectedKeys:ji&&Ni.key?[Ni.key]:[]})};y.useEffect(()=>{Vo&&Hr({selectedKeys:Vl(qr)})},[qr]);const[hi,ha]=y.useState([]),na=Fo=>{ha(Fo)},[Vi,ra]=y.useState(""),ya=Fo=>{const{value:Zo}=Fo.target;ra(Zo)};y.useEffect(()=>{Vo||ra("")},[Vo]);const mi=Fo=>{const Zo=Fo!=null&&Fo.length?Fo:null;if(Zo===null&&(!Fn||!Fn.filteredKeys)||(0,pe.Z)(Zo,Fn==null?void 0:Fn.filteredKeys,!0))return null;yr({column:dn,key:bn,filteredKeys:Zo})},vi=()=>{$r(!1),mi(uo())},ba=function(){let{confirm:Fo,closeDropdown:Zo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Fo&&mi([]),Zo&&$r(!1),ra(""),Io(Mr?(Wr||[]).map(Ni=>String(Ni)):[])},Ba=function(){let{closeDropdown:Fo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Fo&&$r(!1),mi(uo())},So=(Fo,Zo)=>{Zo.source==="trigger"&&(Fo&&qr!==void 0&&Io(Vl(qr)),$r(Fo),!Fo&&!dn.filterDropdown&&Kn&&vi())},ei=we()({[`${wn}-menu-without-submenu`]:!Hl(dn.filters||[])}),po=Fo=>{if(Fo.target.checked){const Zo=wl(dn==null?void 0:dn.filters).map(Ni=>String(Ni));Io(Zo)}else Io([])},Jr=Fo=>{let{filters:Zo}=Fo;return(Zo||[]).map((Ni,ji)=>{const _i=String(Ni.value),Na={title:Ni.text,key:Ni.value!==void 0?_i:String(ji)};return Ni.children&&(Na.children=Jr({filters:Ni.children})),Na})},xi=Fo=>{var Zo;return Object.assign(Object.assign({},Fo),{text:Fo.title,value:Fo.key,children:((Zo=Fo.children)===null||Zo===void 0?void 0:Zo.map(Ni=>xi(Ni)))||[]})};let Ii;const{direction:qi,renderEmpty:Hi}=y.useContext(Ha.E_);if(typeof dn.filterDropdown=="function")Ii=dn.filterDropdown({prefixCls:`${wn}-custom`,setSelectedKeys:Fo=>Hr({selectedKeys:Fo}),selectedKeys:uo(),confirm:Ba,clearFilters:ba,filters:dn.filters,visible:Or,close:()=>{$r(!1)}});else if(dn.filterDropdown)Ii=dn.filterDropdown;else{const Fo=uo()||[],Zo=()=>{var ji,_i;const Na=(ji=Hi==null?void 0:Hi("Table.filter"))!==null&&ji!==void 0?ji:y.createElement(zl.Z,{image:zl.Z.PRESENTED_IMAGE_SIMPLE,description:er.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((dn.filters||[]).length===0)return Na;if(kn==="tree")return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:On,value:Vi,onChange:ya,tablePrefixCls:en,locale:er}),y.createElement("div",{className:`${en}-filter-dropdown-tree`},_n?y.createElement(Yo.default,{checked:Fo.length===wl(dn.filters).length,indeterminate:Fo.length>0&&Fo.length<wl(dn.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:po},(_i=er==null?void 0:er.filterCheckall)!==null&&_i!==void 0?_i:er==null?void 0:er.filterCheckAll):null,y.createElement(Ol.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:_n,checkStrictly:!_n,className:`${wn}-menu`,onCheck:di,checkedKeys:Fo,selectedKeys:Fo,showIcon:!1,treeData:Jr({filters:dn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Vi.trim()?oa=>typeof On=="function"?On(Vi,xi(oa)):Wl(Vi,oa.title):void 0})));const Ea=ls({filters:dn.filters||[],filterSearch:On,prefixCls:vn,filteredKeys:uo(),filterMultiple:_n,searchValue:Vi}),al=Ea.every(oa=>oa===null);return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:On,value:Vi,onChange:ya,tablePrefixCls:en,locale:er}),al?Na:y.createElement(Ps.default,{selectable:!0,multiple:_n,prefixCls:`${wn}-menu`,className:ei,onSelect:Hr,onDeselect:Hr,selectedKeys:Fo,getPopupContainer:Dr,openKeys:hi,onOpenChange:na,items:Ea}))},Ni=()=>Mr?(0,pe.Z)((Wr||[]).map(ji=>String(ji)),Fo,!0):Fo.length===0;Ii=y.createElement(y.Fragment,null,Zo(),y.createElement("div",{className:`${vn}-dropdown-btns`},y.createElement(dl.ZP,{type:"link",size:"small",disabled:Ni(),onClick:()=>ba()},er.filterReset),y.createElement(dl.ZP,{type:"primary",size:"small",onClick:vi},er.filterConfirm)))}dn.filterDropdown&&(Ii=y.createElement(Gl.J,{selectable:void 0},Ii)),Ii=y.createElement(as,{className:`${vn}-dropdown`},Ii);const Ca=()=>{let Fo;return typeof dn.filterIcon=="function"?Fo=dn.filterIcon(lo):dn.filterIcon?Fo=dn.filterIcon:Fo=y.createElement(xl,null),y.createElement("span",{role:"button",tabIndex:-1,className:we()(`${vn}-trigger`,{active:lo}),onClick:Zo=>{Zo.stopPropagation()}},Fo)},Oa=(0,Va.Z)({trigger:["click"],placement:qi==="rtl"?"bottomLeft":"bottomRight",children:Ca(),getPopupContainer:Dr},Object.assign(Object.assign({},ro),{rootClassName:we()(xr,ro.rootClassName),open:Or,onOpenChange:So,dropdownRender:()=>typeof(ro==null?void 0:ro.dropdownRender)=="function"?ro.dropdownRender(Ii):Ii}));return y.createElement("div",{className:`${vn}-column`},y.createElement("span",{className:`${en}-column-title`},Er),y.createElement(Jo.Z,Object.assign({},Oa)))};const qa=(De,Be,mt)=>{let Dt=[];return(De||[]).forEach((Kt,en)=>{var vn;const dn=Bo(en,mt);if(Kt.filters||"filterDropdown"in Kt||"onFilter"in Kt)if("filteredValue"in Kt){let wn=Kt.filteredValue;"filterDropdown"in Kt||(wn=(vn=wn==null?void 0:wn.map(String))!==null&&vn!==void 0?vn:wn),Dt.push({column:Kt,key:Ro(Kt,dn),filteredKeys:wn,forceFiltered:Kt.filtered})}else Dt.push({column:Kt,key:Ro(Kt,dn),filteredKeys:Be&&Kt.defaultFilteredValue?Kt.defaultFilteredValue:void 0,forceFiltered:Kt.filtered});"children"in Kt&&(Dt=[].concat((0,Ct.Z)(Dt),(0,Ct.Z)(qa(Kt.children,Be,dn))))}),Dt};function Zi(De,Be,mt,Dt,Kt,en,vn,dn,wn){return mt.map((bn,Kn)=>{const _n=Bo(Kn,dn),{filterOnClose:kn=!0,filterMultiple:On=!0,filterMode:Fn,filterSearch:yr}=bn;let er=bn;if(er.filters||er.filterDropdown){const Er=Ro(er,_n),Dr=Dt.find(xr=>{let{key:Mr}=xr;return Er===Mr});er=Object.assign(Object.assign({},er),{title:xr=>y.createElement(ol,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:Be,column:er,columnKey:Er,filterState:Dr,filterOnClose:kn,filterMultiple:On,filterMode:Fn,filterSearch:yr,triggerFilter:en,locale:Kt,getPopupContainer:vn,rootClassName:wn},qo(bn.title,xr))})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:Zi(De,Be,er.children,Dt,Kt,en,vn,_n,wn)})),er})}const yi=De=>{const Be={};return De.forEach(mt=>{let{key:Dt,filteredKeys:Kt,column:en}=mt;const vn=Dt,{filters:dn,filterDropdown:wn}=en;if(wn)Be[vn]=Kt||null;else if(Array.isArray(Kt)){const bn=wl(dn);Be[vn]=bn.filter(Kn=>Kt.includes(String(Kn)))}else Be[vn]=null}),Be},ci=(De,Be,mt)=>Be.reduce((Kt,en)=>{const{column:{onFilter:vn,filters:dn},filteredKeys:wn}=en;return vn&&wn&&wn.length?Kt.map(bn=>Object.assign({},bn)).filter(bn=>wn.some(Kn=>{const _n=wl(dn),kn=_n.findIndex(Fn=>String(Fn)===String(Kn)),On=kn!==-1?_n[kn]:Kn;return bn[mt]&&(bn[mt]=ci(bn[mt],Be,mt)),vn(On,bn)})):Kt},De),bt=De=>De.flatMap(Be=>"children"in Be?[Be].concat((0,Ct.Z)(bt(Be.children||[]))):[Be]);var Qt=De=>{const{prefixCls:Be,dropdownPrefixCls:mt,mergedColumns:Dt,onFilterChange:Kt,getPopupContainer:en,locale:vn,rootClassName:dn}=De,wn=(0,Mo.ln)("Table"),bn=y.useMemo(()=>bt(Dt||[]),[Dt]),[Kn,_n]=y.useState(()=>qa(bn,!0)),kn=y.useMemo(()=>{const er=qa(bn,!1);if(er.length===0)return er;let Er=!0,Dr=!0;if(er.forEach(xr=>{let{filteredKeys:Mr}=xr;Mr!==void 0?Er=!1:Dr=!1}),Er){const xr=(bn||[]).map((Mr,Wr)=>Ro(Mr,Bo(Wr)));return Kn.filter(Mr=>{let{key:Wr}=Mr;return xr.includes(Wr)}).map(Mr=>{const Wr=bn[xr.findIndex(ro=>ro===Mr.key)];return Object.assign(Object.assign({},Mr),{column:Object.assign(Object.assign({},Mr.column),Wr),forceFiltered:Wr.filtered})})}return er},[bn,Kn]),On=y.useMemo(()=>yi(kn),[kn]),Fn=er=>{const Er=kn.filter(Dr=>{let{key:xr}=Dr;return xr!==er.key});Er.push(er),_n(Er),Kt(yi(Er),Er)};return[er=>Zi(Be,mt,er,kn,vn,Fn,en,void 0,dn),kn,On]},go=(De,Be,mt)=>{const Dt=y.useRef({});function Kt(en){var vn;if(!Dt.current||Dt.current.data!==De||Dt.current.childrenColumnName!==Be||Dt.current.getRowKey!==mt){let wn=function(bn){bn.forEach((Kn,_n)=>{const kn=mt(Kn,_n);dn.set(kn,Kn),Kn&&typeof Kn=="object"&&Be in Kn&&wn(Kn[Be]||[])})};const dn=new Map;wn(De),Dt.current={data:De,childrenColumnName:Be,kvMap:dn,getRowKey:mt}}return(vn=Dt.current.kvMap)===null||vn===void 0?void 0:vn.get(en)}return[Kt]},Kr=function(De,Be){var mt={};for(var Dt in De)Object.prototype.hasOwnProperty.call(De,Dt)&&Be.indexOf(Dt)<0&&(mt[Dt]=De[Dt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Dt=Object.getOwnPropertySymbols(De);Kt<Dt.length;Kt++)Be.indexOf(Dt[Kt])<0&&Object.prototype.propertyIsEnumerable.call(De,Dt[Kt])&&(mt[Dt[Kt]]=De[Dt[Kt]]);return mt};const fo=10;function Fr(De,Be){const mt={current:De.current,pageSize:De.pageSize};return Object.keys(Be&&typeof Be=="object"?Be:{}).forEach(Kt=>{const en=De[Kt];typeof en!="function"&&(mt[Kt]=en)}),mt}function Vr(De,Be,mt){const Dt=mt&&typeof mt=="object"?mt:{},{total:Kt=0}=Dt,en=Kr(Dt,["total"]),[vn,dn]=(0,y.useState)(()=>({current:"defaultCurrent"in en?en.defaultCurrent:1,pageSize:"defaultPageSize"in en?en.defaultPageSize:fo})),wn=(0,Va.Z)(vn,en,{total:Kt>0?Kt:De}),bn=Math.ceil((Kt||De)/wn.pageSize);wn.current>bn&&(wn.current=bn||1);const Kn=(kn,On)=>{dn({current:kn!=null?kn:1,pageSize:On||wn.pageSize})},_n=(kn,On)=>{var Fn;mt&&((Fn=mt.onChange)===null||Fn===void 0||Fn.call(mt,kn,On)),Kn(kn,On),Be(kn,On||(wn==null?void 0:wn.pageSize))};return mt===!1?[{},()=>{}]:[Object.assign(Object.assign({},wn),{onChange:_n}),Kn]}var _o=Vr,ho=z(89489),oi=z(59477),pi=z(25399);const Qo="ascend",gr="descend",io=De=>typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1,yo=De=>typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1,Ao=(De,Be)=>Be?De[De.indexOf(Be)+1]:De[0],zr=(De,Be,mt)=>{let Dt=[];const Kt=(en,vn)=>{Dt.push({column:en,key:Ro(en,vn),multiplePriority:io(en),sortOrder:en.sortOrder})};return(De||[]).forEach((en,vn)=>{const dn=Bo(vn,mt);en.children?("sortOrder"in en&&Kt(en,dn),Dt=[].concat((0,Ct.Z)(Dt),(0,Ct.Z)(zr(en.children,Be,dn)))):en.sorter&&("sortOrder"in en?Kt(en,dn):Be&&en.defaultSortOrder&&Dt.push({column:en,key:Ro(en,dn),multiplePriority:io(en),sortOrder:en.defaultSortOrder}))}),Dt},Go=(De,Be,mt,Dt,Kt,en,vn,dn)=>(Be||[]).map((bn,Kn)=>{const _n=Bo(Kn,dn);let kn=bn;if(kn.sorter){const On=kn.sortDirections||Kt,Fn=kn.showSorterTooltip===void 0?vn:kn.showSorterTooltip,yr=Ro(kn,_n),er=mt.find(Oo=>{let{key:Co}=Oo;return Co===yr}),Er=er?er.sortOrder:null,Dr=Ao(On,Er);let xr;if(bn.sortIcon)xr=bn.sortIcon({sortOrder:Er});else{const Oo=On.includes(Qo)&&y.createElement(oi.Z,{className:we()(`${De}-column-sorter-up`,{active:Er===Qo})}),Co=On.includes(gr)&&y.createElement(ho.Z,{className:we()(`${De}-column-sorter-down`,{active:Er===gr})});xr=y.createElement("span",{className:we()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(Oo&&Co)})},y.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},Oo,Co))}const{cancelSort:Mr,triggerAsc:Wr,triggerDesc:ro}=en||{};let Qr=Mr;Dr===gr?Qr=ro:Dr===Qo&&(Qr=Wr);const si=typeof Fn=="object"?Object.assign({title:Qr},Fn):{title:Qr};kn=Object.assign(Object.assign({},kn),{className:we()(kn.className,{[`${De}-column-sort`]:Er}),title:Oo=>{const Co=`${De}-column-sorters`,Vo=y.createElement("span",{className:`${De}-column-title`},qo(bn.title,Oo)),oo=y.createElement("div",{className:Co},Vo,xr);return Fn?typeof Fn!="boolean"&&(Fn==null?void 0:Fn.target)==="sorter-icon"?y.createElement("div",{className:`${Co} ${De}-column-sorters-tooltip-target-sorter`},Vo,y.createElement(pi.Z,Object.assign({},si),xr)):y.createElement(pi.Z,Object.assign({},si),oo):oo},onHeaderCell:Oo=>{var Co;const Vo=((Co=bn.onHeaderCell)===null||Co===void 0?void 0:Co.call(bn,Oo))||{},oo=Vo.onClick,lo=Vo.onKeyDown;Vo.onClick=qr=>{Dt({column:bn,key:yr,sortOrder:Dr,multiplePriority:io(bn)}),oo==null||oo(qr)},Vo.onKeyDown=qr=>{qr.keyCode===bs.Z.ENTER&&(Dt({column:bn,key:yr,sortOrder:Dr,multiplePriority:io(bn)}),lo==null||lo(qr))};const $r=Bi(bn.title,{}),Or=$r==null?void 0:$r.toString();return Er&&(Vo["aria-sort"]=Er==="ascend"?"ascending":"descending"),Vo["aria-label"]=Or||"",Vo.className=we()(Vo.className,`${De}-column-has-sorters`),Vo.tabIndex=0,bn.ellipsis&&(Vo.title=($r!=null?$r:"").toString()),Vo}})}return"children"in kn&&(kn=Object.assign(Object.assign({},kn),{children:Go(De,kn.children,mt,Dt,Kt,en,vn,_n)})),kn}),fi=De=>{const{column:Be,sortOrder:mt}=De;return{column:Be,order:mt,field:Be.dataIndex,columnKey:Be.key}},ao=De=>{const Be=De.filter(mt=>{let{sortOrder:Dt}=mt;return Dt}).map(fi);if(Be.length===0&&De.length){const mt=De.length-1;return Object.assign(Object.assign({},fi(De[mt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Be.length<=1?Be[0]||{}:Be},bo=(De,Be,mt)=>{const Dt=Be.slice().sort((vn,dn)=>dn.multiplePriority-vn.multiplePriority),Kt=De.slice(),en=Dt.filter(vn=>{let{column:{sorter:dn},sortOrder:wn}=vn;return yo(dn)&&wn});return en.length?Kt.sort((vn,dn)=>{for(let wn=0;wn<en.length;wn+=1){const bn=en[wn],{column:{sorter:Kn},sortOrder:_n}=bn,kn=yo(Kn);if(kn&&_n){const On=kn(vn,dn,_n);if(On!==0)return _n===Qo?On:-On}}return 0}).map(vn=>{const dn=vn[mt];return dn?Object.assign(Object.assign({},vn),{[mt]:bo(dn,Be,mt)}):vn}):Kt};var no=De=>{const{prefixCls:Be,mergedColumns:mt,sortDirections:Dt,tableLocale:Kt,showSorterTooltip:en,onSorterChange:vn}=De,[dn,wn]=y.useState(zr(mt,!0)),bn=(yr,er)=>{const Er=[];return yr.forEach((Dr,xr)=>{const Mr=Bo(xr,er);if(Er.push(Ro(Dr,Mr)),Array.isArray(Dr.children)){const Wr=bn(Dr.children,Mr);Er.push.apply(Er,(0,Ct.Z)(Wr))}}),Er},Kn=y.useMemo(()=>{let yr=!0;const er=zr(mt,!1);if(!er.length){const Mr=bn(mt);return dn.filter(Wr=>{let{key:ro}=Wr;return Mr.includes(ro)})}const Er=[];function Dr(Mr){yr?Er.push(Mr):Er.push(Object.assign(Object.assign({},Mr),{sortOrder:null}))}let xr=null;return er.forEach(Mr=>{xr===null?(Dr(Mr),Mr.sortOrder&&(Mr.multiplePriority===!1?yr=!1:xr=!0)):(xr&&Mr.multiplePriority!==!1||(yr=!1),Dr(Mr))}),Er},[mt,dn]),_n=y.useMemo(()=>{var yr,er;const Er=Kn.map(Dr=>{let{column:xr,sortOrder:Mr}=Dr;return{column:xr,order:Mr}});return{sortColumns:Er,sortColumn:(yr=Er[0])===null||yr===void 0?void 0:yr.column,sortOrder:(er=Er[0])===null||er===void 0?void 0:er.order}},[Kn]),kn=yr=>{let er;yr.multiplePriority===!1||!Kn.length||Kn[0].multiplePriority===!1?er=[yr]:er=[].concat((0,Ct.Z)(Kn.filter(Er=>{let{key:Dr}=Er;return Dr!==yr.key})),[yr]),wn(er),vn(ao(er),er)};return[yr=>Go(Be,yr,Kn,kn,Dt,Kt,en),Kn,_n,()=>ao(Kn)]};const bi=(De,Be)=>De.map(Dt=>{const Kt=Object.assign({},Dt);return Kt.title=qo(Dt.title,Be),"children"in Kt&&(Kt.children=bi(Kt.children,Be)),Kt});var Ji=De=>[y.useCallback(mt=>bi(mt,De),[De])],zo=eo((De,Be)=>{const{_renderTimes:mt}=De,{_renderTimes:Dt}=Be;return mt!==Dt}),Fa=Gn((De,Be)=>{const{_renderTimes:mt}=De,{_renderTimes:Dt}=Be;return mt!==Dt}),cr=z(36237),Ci=z(17835),Di=z(63356),Ei=z(16931),wa=z(51636),Jl=De=>{const{componentCls:Be,lineWidth:mt,lineType:Dt,tableBorderColor:Kt,tableHeaderBg:en,tablePaddingVertical:vn,tablePaddingHorizontal:dn,calc:wn}=De,bn=`${(0,cr.unit)(mt)} ${Dt} ${Kt}`,Kn=(_n,kn,On)=>({[`&${Be}-${_n}`]:{[`> ${Be}-container`]:{[`> ${Be}-content, > ${Be}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(wn(kn).mul(-1).equal())}
${(0,cr.unit)(wn(wn(On).add(mt)).mul(-1).equal())}`}}}}}});return{[`${Be}-wrapper`]:{[`${Be}${Be}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Be}-title`]:{border:bn,borderBottom:0},[`> ${Be}-container`]:{borderInlineStart:bn,borderTop:bn,[`
> ${Be}-content,
> ${Be}-header,
> ${Be}-body,
> ${Be}-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:bn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:bn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Be}-cell-fix-right-first::after`]:{borderInlineEnd:bn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(wn(vn).mul(-1).equal())} ${(0,cr.unit)(wn(wn(dn).add(mt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:mt,bottom:0,borderInlineEnd:bn,content:'""'}}}}}},[`&${Be}-scroll-horizontal`]:{[`> ${Be}-container > ${Be}-body`]:{"> table > tbody":{[`
> tr${Be}-expanded-row,
> tr${Be}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Kn("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),Kn("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Be}-footer`]:{border:bn,borderTop:0}}),[`${Be}-cell`]:{[`${Be}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,cr.unit)(mt)} 0 ${(0,cr.unit)(mt)} ${en}`}},[`${Be}-bordered ${Be}-cell-scrollbar`]:{borderInlineEnd:bn}}}},Al=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper`]:{[`${Be}-cell-ellipsis`]:Object.assign(Object.assign({},Di.vS),{wordBreak:"keep-all",[`
&${Be}-cell-fix-left-last,
&${Be}-cell-fix-right-first
`]:{overflow:"visible",[`${Be}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Be}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Cs=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper`]:{[`${Be}-tbody > tr${Be}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},us=De=>{const{componentCls:Be,antCls:mt,motionDurationSlow:Dt,lineWidth:Kt,paddingXS:en,lineType:vn,tableBorderColor:dn,tableExpandIconBg:wn,tableExpandColumnWidth:bn,borderRadius:Kn,tablePaddingVertical:_n,tablePaddingHorizontal:kn,tableExpandedRowBg:On,paddingXXS:Fn,expandIconMarginTop:yr,expandIconSize:er,expandIconHalfInner:Er,expandIconScale:Dr,calc:xr}=De,Mr=`${(0,cr.unit)(Kt)} ${vn} ${dn}`,Wr=xr(Fn).sub(Kt).equal();return{[`${Be}-wrapper`]:{[`${Be}-expand-icon-col`]:{width:bn},[`${Be}-row-expand-icon-cell`]:{textAlign:"center",[`${Be}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Be}-row-indent`]:{height:1,float:"left"},[`${Be}-row-expand-icon`]:Object.assign(Object.assign({},(0,Di.Nd)(De)),{position:"relative",float:"left",width:er,height:er,color:"inherit",lineHeight:(0,cr.unit)(er),background:wn,border:Mr,borderRadius:Kn,transform:`scale(${Dr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Dt} ease-out`,content:'""'},"&::before":{top:Er,insetInlineEnd:Wr,insetInlineStart:Wr,height:Kt},"&::after":{top:Wr,bottom:Wr,insetInlineStart:Er,width:Kt,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"}}),[`${Be}-row-indent + ${Be}-row-expand-icon`]:{marginTop:yr,marginInlineEnd:en},[`tr${Be}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:On}},[`${mt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Be}-expanded-row-fixed`]:{position:"relative",margin:`${(0,cr.unit)(xr(_n).mul(-1).equal())} ${(0,cr.unit)(xr(kn).mul(-1).equal())}`,padding:`${(0,cr.unit)(_n)} ${(0,cr.unit)(kn)}`}}}},Rs=De=>{const{componentCls:Be,antCls:mt,iconCls:Dt,tableFilterDropdownWidth:Kt,tableFilterDropdownSearchWidth:en,paddingXXS:vn,paddingXS:dn,colorText:wn,lineWidth:bn,lineType:Kn,tableBorderColor:_n,headerIconColor:kn,fontSizeSM:On,tablePaddingHorizontal:Fn,borderRadius:yr,motionDurationSlow:er,colorTextDescription:Er,colorPrimary:Dr,tableHeaderFilterActiveBg:xr,colorTextDisabled:Mr,tableFilterDropdownBg:Wr,tableFilterDropdownHeight:ro,controlItemBgHover:Qr,controlItemBgActive:si,boxShadowSecondary:Oo,filterDropdownMenuBg:Co,calc:Vo}=De,oo=`${mt}-dropdown`,lo=`${Be}-filter-dropdown`,$r=`${mt}-tree`,Or=`${(0,cr.unit)(bn)} ${Kn} ${_n}`;return[{[`${Be}-wrapper`]:{[`${Be}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Be}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Vo(vn).mul(-1).equal(),marginInline:`${(0,cr.unit)(vn)} ${(0,cr.unit)(Vo(Fn).div(2).mul(-1).equal())}`,padding:`0 ${(0,cr.unit)(vn)}`,color:kn,fontSize:On,borderRadius:yr,cursor:"pointer",transition:`all ${er}`,"&:hover":{color:Er,background:xr},"&.active":{color:Dr}}}},{[`${mt}-dropdown`]:{[lo]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{minWidth:Kt,backgroundColor:Wr,borderRadius:yr,boxShadow:Oo,overflow:"hidden",[`${oo}-menu`]:{maxHeight:ro,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Co,"&:empty::after":{display:"block",padding:`${(0,cr.unit)(dn)} 0`,color:Mr,fontSize:On,textAlign:"center",content:'"Not Found"'}},[`${lo}-tree`]:{paddingBlock:`${(0,cr.unit)(dn)} 0`,paddingInline:dn,[$r]:{padding:0},[`${$r}-treenode ${$r}-node-content-wrapper:hover`]:{backgroundColor:Qr},[`${$r}-treenode-checkbox-checked ${$r}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:si}}},[`${lo}-search`]:{padding:dn,borderBottom:Or,"&-input":{input:{minWidth:en},[Dt]:{color:Mr}}},[`${lo}-checkall`]:{width:"100%",marginBottom:vn,marginInlineStart:vn},[`${lo}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,cr.unit)(Vo(dn).sub(bn).equal())} ${(0,cr.unit)(dn)}`,overflow:"hidden",borderTop:Or}})}},{[`${mt}-dropdown ${lo}, ${lo}-submenu`]:{[`${mt}-checkbox-wrapper + span`]:{paddingInlineStart:dn,color:wn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},cs=De=>{const{componentCls:Be,lineWidth:mt,colorSplit:Dt,motionDurationSlow:Kt,zIndexTableFixed:en,tableBg:vn,zIndexTableSticky:dn,calc:wn}=De,bn=Dt;return{[`${Be}-wrapper`]:{[`
${Be}-cell-fix-left,
${Be}-cell-fix-right
`]:{position:"sticky !important",zIndex:en,background:vn},[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:wn(mt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},[`${Be}-cell-fix-left-all::after`]:{display:"none"},[`
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:wn(mt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},[`${Be}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:wn(dn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Be}-ping-left`]:{[`&:not(${Be}-has-fix-left) ${Be}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${bn}`},[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${bn}`},[`${Be}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Be}-ping-right`]:{[`&:not(${Be}-has-fix-right) ${Be}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${bn}`},[`
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${bn}`}},[`${Be}-fixed-column-gapped`]:{[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after,
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},ds=De=>{const{componentCls:Be,antCls:mt,margin:Dt}=De;return{[`${Be}-wrapper`]:{[`${Be}-pagination${mt}-pagination`]:{margin:`${(0,cr.unit)(Dt)} 0`},[`${Be}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},hs=De=>{const{componentCls:Be,tableRadius:mt}=De;return{[`${Be}-wrapper`]:{[Be]:{[`${Be}-title, ${Be}-header`]:{borderRadius:`${(0,cr.unit)(mt)} ${(0,cr.unit)(mt)} 0 0`},[`${Be}-title + ${Be}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Be}-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:mt,borderStartEndRadius:mt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:mt},"> *:last-child":{borderStartEndRadius:mt}}},"&-footer":{borderRadius:`0 0 ${(0,cr.unit)(mt)} ${(0,cr.unit)(mt)}`}}}}},_s=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Be}-pagination-left`]:{justifyContent:"flex-end"},[`${Be}-pagination-right`]:{justifyContent:"flex-start"},[`${Be}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Be}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Be}-row-indent`]:{float:"right"}}}}},_l=De=>{const{componentCls:Be,antCls:mt,iconCls:Dt,fontSizeIcon:Kt,padding:en,paddingXS:vn,headerIconColor:dn,headerIconHoverColor:wn,tableSelectionColumnWidth:bn,tableSelectedRowBg:Kn,tableSelectedRowHoverBg:_n,tableRowHoverBg:kn,tablePaddingHorizontal:On,calc:Fn}=De;return{[`${Be}-wrapper`]:{[`${Be}-selection-col`]:{width:bn,[`&${Be}-selection-col-with-dropdown`]:{width:Fn(bn).add(Kt).add(Fn(en).div(4)).equal()}},[`${Be}-bordered ${Be}-selection-col`]:{width:Fn(bn).add(Fn(vn).mul(2)).equal(),[`&${Be}-selection-col-with-dropdown`]:{width:Fn(bn).add(Kt).add(Fn(en).div(4)).add(Fn(vn).mul(2)).equal()}},[`
table tr th${Be}-selection-column,
table tr td${Be}-selection-column,
${Be}-selection-column
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${mt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Be}-selection-column${Be}-cell-fix-left`]:{zIndex:Fn(De.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Be}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Be}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Be}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,cr.unit)(Fn(On).div(4).equal()),[Dt]:{color:dn,fontSize:Kt,verticalAlign:"baseline","&:hover":{color:wn}}},[`${Be}-tbody`]:{[`${Be}-row`]:{[`&${Be}-row-selected`]:{[`> ${Be}-cell`]:{background:Kn,"&-row-hover":{background:_n}}},[`> ${Be}-cell-row-hover`]:{background:kn}}}}}},$s=De=>{const{componentCls:Be,tableExpandColumnWidth:mt,calc:Dt}=De,Kt=(en,vn,dn,wn)=>({[`${Be}${Be}-${en}`]:{fontSize:wn,[`
${Be}-title,
${Be}-footer,
${Be}-cell,
${Be}-thead > tr > th,
${Be}-tbody > tr > th,
${Be}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,cr.unit)(vn)} ${(0,cr.unit)(dn)}`},[`${Be}-filter-trigger`]:{marginInlineEnd:(0,cr.unit)(Dt(dn).div(2).mul(-1).equal())},[`${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(Dt(vn).mul(-1).equal())} ${(0,cr.unit)(Dt(dn).mul(-1).equal())}`},[`${Be}-tbody`]:{[`${Be}-wrapper:only-child ${Be}`]:{marginBlock:(0,cr.unit)(Dt(vn).mul(-1).equal()),marginInline:`${(0,cr.unit)(Dt(mt).sub(dn).equal())} ${(0,cr.unit)(Dt(dn).mul(-1).equal())}`}},[`${Be}-selection-extra`]:{paddingInlineStart:(0,cr.unit)(Dt(dn).div(4).equal())}}});return{[`${Be}-wrapper`]:Object.assign(Object.assign({},Kt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),Kt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},Js=De=>{const{componentCls:Be,marginXXS:mt,fontSizeIcon:Dt,headerIconColor:Kt,headerIconHoverColor:en}=De;return{[`${Be}-wrapper`]:{[`${Be}-thead th${Be}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}, left 0s`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
&${Be}-cell-fix-left:hover,
&${Be}-cell-fix-right:hover
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Be}-thead th${Be}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Be}-column-sort`]:{background:De.tableBodySortBg},[`${Be}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Be}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Be}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Be}-column-sorter`]:{marginInlineStart:mt,color:Kt,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Dt,"&.active":{color:De.colorPrimary}},[`${Be}-column-sorter-up + ${Be}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Be}-column-sorters:hover ${Be}-column-sorter`]:{color:en}}}},kr=De=>{const{componentCls:Be,opacityLoading:mt,tableScrollThumbBg:Dt,tableScrollThumbBgHover:Kt,tableScrollThumbSize:en,tableScrollBg:vn,zIndexTableSticky:dn,stickyScrollBarBorderRadius:wn,lineWidth:bn,lineType:Kn,tableBorderColor:_n}=De,kn=`${(0,cr.unit)(bn)} ${Kn} ${_n}`;return{[`${Be}-wrapper`]:{[`${Be}-sticky`]:{"&-holder":{position:"sticky",zIndex:dn,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,cr.unit)(en)} !important`,zIndex:dn,display:"flex",alignItems:"center",background:vn,borderTop:kn,opacity:mt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:en,backgroundColor:Dt,borderRadius:wn,transition:`all ${De.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Kt}}}}}}},Lr=De=>{const{componentCls:Be,lineWidth:mt,tableBorderColor:Dt,calc:Kt}=De,en=`${(0,cr.unit)(mt)} ${De.lineType} ${Dt}`;return{[`${Be}-wrapper`]:{[`${Be}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:en}}},[`div${Be}-summary`]:{boxShadow:`0 ${(0,cr.unit)(Kt(mt).mul(-1).equal())} 0 ${Dt}`}}}},$o=De=>{const{componentCls:Be,motionDurationMid:mt,lineWidth:Dt,lineType:Kt,tableBorderColor:en,calc:vn}=De,dn=`${(0,cr.unit)(Dt)} ${Kt} ${en}`,wn=`${Be}-expanded-row-cell`;return{[`${Be}-wrapper`]:{[`${Be}-tbody-virtual`]:{[`${Be}-tbody-virtual-holder-inner`]:{[`
& > ${Be}-row,
& > div:not(${Be}-row) > ${Be}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Be}-cell`]:{borderBottom:dn,transition:`background ${mt}`},[`${Be}-expanded-row`]:{[`${wn}${wn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,cr.unit)(Dt)})`,borderInlineEnd:"none"}}},[`${Be}-bordered`]:{[`${Be}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:dn,position:"absolute"},[`${Be}-cell`]:{borderInlineEnd:dn,[`&${Be}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:vn(Dt).mul(-1).equal(),borderInlineStart:dn}}},[`&${Be}-virtual`]:{[`${Be}-placeholder ${Be}-cell`]:{borderInlineEnd:dn,borderBottom:dn}}}}}};const Ko=De=>{const{componentCls:Be,fontWeightStrong:mt,tablePaddingVertical:Dt,tablePaddingHorizontal:Kt,tableExpandColumnWidth:en,lineWidth:vn,lineType:dn,tableBorderColor:wn,tableFontSize:bn,tableBg:Kn,tableRadius:_n,tableHeaderTextColor:kn,motionDurationMid:On,tableHeaderBg:Fn,tableHeaderCellSplitColor:yr,tableFooterTextColor:er,tableFooterBg:Er,calc:Dr}=De,xr=`${(0,cr.unit)(vn)} ${dn} ${wn}`;return{[`${Be}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Di.dF)()),{[Be]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{fontSize:bn,background:Kn,borderRadius:`${(0,cr.unit)(_n)} ${(0,cr.unit)(_n)} 0 0`,scrollbarColor:`${De.tableScrollThumbBg} ${De.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,cr.unit)(_n)} ${(0,cr.unit)(_n)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Be}-cell,
${Be}-thead > tr > th,
${Be}-tbody > tr > th,
${Be}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,cr.unit)(Dt)} ${(0,cr.unit)(Kt)}`,overflowWrap:"break-word"},[`${Be}-title`]:{padding:`${(0,cr.unit)(Dt)} ${(0,cr.unit)(Kt)}`},[`${Be}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:kn,fontWeight:mt,textAlign:"start",background:Fn,borderBottom:xr,transition:`background ${On} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Be}-selection-column):not(${Be}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:yr,transform:"translateY(-50%)",transition:`background-color ${On}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Be}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${On}, border-color ${On}`,borderBottom:xr,[`
> ${Be}-wrapper:only-child,
> ${Be}-expanded-row-fixed > ${Be}-wrapper:only-child
`]:{[Be]:{marginBlock:(0,cr.unit)(Dr(Dt).mul(-1).equal()),marginInline:`${(0,cr.unit)(Dr(en).sub(Kt).equal())}
${(0,cr.unit)(Dr(Kt).mul(-1).equal())}`,[`${Be}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:kn,fontWeight:mt,textAlign:"start",background:Fn,borderBottom:xr,transition:`background ${On} ease`}}},[`${Be}-footer`]:{padding:`${(0,cr.unit)(Dt)} ${(0,cr.unit)(Kt)}`,color:er,background:Er}})}},ki=De=>{const{colorFillAlter:Be,colorBgContainer:mt,colorTextHeading:Dt,colorFillSecondary:Kt,colorFillContent:en,controlItemBgActive:vn,controlItemBgActiveHover:dn,padding:wn,paddingSM:bn,paddingXS:Kn,colorBorderSecondary:_n,borderRadiusLG:kn,controlHeight:On,colorTextPlaceholder:Fn,fontSize:yr,fontSizeSM:er,lineHeight:Er,lineWidth:Dr,colorIcon:xr,colorIconHover:Mr,opacityLoading:Wr,controlInteractiveSize:ro}=De,Qr=new Ci.FastColor(Kt).onBackground(mt).toHexString(),si=new Ci.FastColor(en).onBackground(mt).toHexString(),Oo=new Ci.FastColor(Be).onBackground(mt).toHexString(),Co=new Ci.FastColor(xr),Vo=new Ci.FastColor(Mr),oo=ro/2-Dr,lo=oo*2+Dr*3;return{headerBg:Oo,headerColor:Dt,headerSortActiveBg:Qr,headerSortHoverBg:si,bodySortBg:Oo,rowHoverBg:Oo,rowSelectedBg:vn,rowSelectedHoverBg:dn,rowExpandedBg:Be,cellPaddingBlock:wn,cellPaddingInline:wn,cellPaddingBlockMD:bn,cellPaddingInlineMD:Kn,cellPaddingBlockSM:Kn,cellPaddingInlineSM:Kn,borderColor:_n,headerBorderRadius:kn,footerBg:Oo,footerColor:Dt,cellFontSize:yr,cellFontSizeMD:yr,cellFontSizeSM:yr,headerSplitColor:_n,fixedHeaderSortActiveBg:Qr,headerFilterHoverBg:en,filterDropdownMenuBg:mt,filterDropdownBg:mt,expandIconBg:mt,selectionColumnWidth:On,stickyScrollBarBg:Fn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(yr*Er-Dr*3)/2-Math.ceil((er*1.4-Dr*3)/2),headerIconColor:Co.clone().setA(Co.a*Wr).toRgbString(),headerIconHoverColor:Vo.clone().setA(Vo.a*Wr).toRgbString(),expandIconHalfInner:oo,expandIconSize:lo,expandIconScale:ro/lo}},li=2;var va=(0,Ei.I$)("Table",De=>{const{colorTextHeading:Be,colorSplit:mt,colorBgContainer:Dt,controlInteractiveSize:Kt,headerBg:en,headerColor:vn,headerSortActiveBg:dn,headerSortHoverBg:wn,bodySortBg:bn,rowHoverBg:Kn,rowSelectedBg:_n,rowSelectedHoverBg:kn,rowExpandedBg:On,cellPaddingBlock:Fn,cellPaddingInline:yr,cellPaddingBlockMD:er,cellPaddingInlineMD:Er,cellPaddingBlockSM:Dr,cellPaddingInlineSM:xr,borderColor:Mr,footerBg:Wr,footerColor:ro,headerBorderRadius:Qr,cellFontSize:si,cellFontSizeMD:Oo,cellFontSizeSM:Co,headerSplitColor:Vo,fixedHeaderSortActiveBg:oo,headerFilterHoverBg:lo,filterDropdownBg:$r,expandIconBg:Or,selectionColumnWidth:qr,stickyScrollBarBg:uo,calc:Io}=De,Hr=(0,wa.mergeToken)(De,{tableFontSize:si,tableBg:Dt,tableRadius:Qr,tablePaddingVertical:Fn,tablePaddingHorizontal:yr,tablePaddingVerticalMiddle:er,tablePaddingHorizontalMiddle:Er,tablePaddingVerticalSmall:Dr,tablePaddingHorizontalSmall:xr,tableBorderColor:Mr,tableHeaderTextColor:vn,tableHeaderBg:en,tableFooterTextColor:ro,tableFooterBg:Wr,tableHeaderCellSplitColor:Vo,tableHeaderSortBg:dn,tableHeaderSortHoverBg:wn,tableBodySortBg:bn,tableFixedHeaderSortActiveBg:oo,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:$r,tableRowHoverBg:Kn,tableSelectedRowBg:_n,tableSelectedRowHoverBg:kn,zIndexTableFixed:li,zIndexTableSticky:Io(li).add(1).equal({unit:!1}),tableFontSizeMiddle:Oo,tableFontSizeSmall:Co,tableSelectionColumnWidth:qr,tableExpandIconBg:Or,tableExpandColumnWidth:Io(Kt).add(Io(De.padding).mul(2)).equal(),tableExpandedRowBg:On,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:uo,tableScrollThumbBgHover:Be,tableScrollBg:mt});return[Ko(Hr),ds(Hr),Lr(Hr),Js(Hr),Rs(Hr),Jl(Hr),hs(Hr),us(Hr),Lr(Hr),Cs(Hr),_l(Hr),cs(Hr),kr(Hr),Al(Hr),$s(Hr),_s(Hr),$o(Hr)]},ki,{unitless:{expandIconScale:!0}});const Ri=[],Bl=(De,Be)=>{var mt,Dt;const{prefixCls:Kt,className:en,rootClassName:vn,style:dn,size:wn,bordered:bn,dropdownPrefixCls:Kn,dataSource:_n,pagination:kn,rowSelection:On,rowKey:Fn="key",rowClassName:yr,columns:er,children:Er,childrenColumnName:Dr,onChange:xr,getPopupContainer:Mr,loading:Wr,expandIcon:ro,expandable:Qr,expandedRowRender:si,expandIconColumnIndex:Oo,indentSize:Co,scroll:Vo,sortDirections:oo,locale:lo,showSorterTooltip:$r={target:"full-header"},virtual:Or}=De,qr=(0,Mo.ln)("Table"),uo=y.useMemo(()=>er||hn(Er),[er,Er]),Io=y.useMemo(()=>uo.some(ui=>ui.responsive),[uo]),Hr=(0,ka.Z)(Io),di=y.useMemo(()=>{const ui=new Set(Object.keys(Hr).filter(gi=>Hr[gi]));return uo.filter(gi=>!gi.responsive||gi.responsive.some(ua=>ui.has(ua)))},[uo,Hr]),hi=(0,wi.Z)(De,["className","style","columns"]),{locale:ha=rl.Z,direction:na,table:Vi,renderEmpty:ra,getPrefixCls:ya,getPopupContainer:mi}=y.useContext(Ha.E_),vi=(0,Ti.Z)(wn),ba=Object.assign(Object.assign({},ha.Table),lo),Ba=_n||Ri,So=ya("table",Kt),ei=ya("dropdown",Kn),[,po]=(0,Fl.ZP)(),Jr=(0,fa.Z)(So),[xi,Ii,qi]=va(So,Jr),Hi=Object.assign(Object.assign({childrenColumnName:Dr,expandIconColumnIndex:Oo},Qr),{expandIcon:(mt=Qr==null?void 0:Qr.expandIcon)!==null&&mt!==void 0?mt:(Dt=Vi==null?void 0:Vi.expandable)===null||Dt===void 0?void 0:Dt.expandIcon}),{childrenColumnName:Ca="children"}=Hi,Oa=y.useMemo(()=>Ba.some(ui=>ui==null?void 0:ui[Ca])?"nest":si||Qr!=null&&Qr.expandedRowRender?"row":null,[Ba]),Fo={body:y.useRef(null)},Zo=ai(So),Ni=y.useRef(null),ji=y.useRef(null);aa(Be,()=>Object.assign(Object.assign({},ji.current),{nativeElement:Ni.current}));const _i=y.useMemo(()=>typeof Fn=="function"?Fn:ui=>ui==null?void 0:ui[Fn],[Fn]),[Na]=go(Ba,Ca,_i),Ea={},al=function(ui,gi){let ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xa,Ra,Ma,Tl;const Ka=Object.assign(Object.assign({},Ea),ui);ua&&((xa=Ea.resetPagination)===null||xa===void 0||xa.call(Ea),!((Ra=Ka.pagination)===null||Ra===void 0)&&Ra.current&&(Ka.pagination.current=1),kn&&((Ma=kn.onChange)===null||Ma===void 0||Ma.call(kn,1,(Tl=Ka.pagination)===null||Tl===void 0?void 0:Tl.pageSize))),Vo&&Vo.scrollToFirstRowOnChange!==!1&&Fo.body.current&&(0,Qa.Z)(0,{getContainer:()=>Fo.body.current}),xr==null||xr(Ka.pagination,Ka.filters,Ka.sorter,{currentDataSource:ci(bo(Ba,Ka.sorterStates,Ca),Ka.filterStates,Ca),action:gi})},oa=(ui,gi)=>{al({sorter:ui,sorterStates:gi},"sort",!1)},[Pi,Wi,Ki,Ia]=no({prefixCls:So,mergedColumns:di,onSorterChange:oa,sortDirections:oo||["ascend","descend"],tableLocale:ba,showSorterTooltip:$r}),ma=y.useMemo(()=>bo(Ba,Wi,Ca),[Ba,Wi]);Ea.sorter=Ia(),Ea.sorterStates=Wi;const Fi=(ui,gi)=>{al({filters:ui,filterStates:gi},"filter",!0)},[ia,Li,ja]=Qt({prefixCls:So,locale:ba,dropdownPrefixCls:ei,mergedColumns:di,onFilterChange:Fi,getPopupContainer:Mr||mi,rootClassName:we()(vn,Jr)}),Da=ci(ma,Li,Ca);Ea.filters=ja,Ea.filterStates=Li;const el=y.useMemo(()=>{const ui={};return Object.keys(ja).forEach(gi=>{ja[gi]!==null&&(ui[gi]=ja[gi])}),Object.assign(Object.assign({},Ki),{filters:ui})},[Ki,ja]),[ll]=Ji(el),$l=(ui,gi)=>{al({pagination:Object.assign(Object.assign({},Ea.pagination),{current:ui,pageSize:gi})},"paginate")},[Ui,Fs]=_o(Da.length,$l,kn);Ea.pagination=kn===!1?{}:Fr(Ui,kn),Ea.resetPagination=Fs;const tl=y.useMemo(()=>{if(kn===!1||!Ui.pageSize)return Da;const{current:ui=1,total:gi,pageSize:ua=fo}=Ui;return Da.length<gi?Da.length>ua?Da.slice((ui-1)*ua,ui*ua):Da:Da.slice((ui-1)*ua,ui*ua)},[!!kn,Da,Ui==null?void 0:Ui.current,Ui==null?void 0:Ui.pageSize,Ui==null?void 0:Ui.total]),[Dl,pl]=co({prefixCls:So,data:Da,pageData:tl,getRowKey:_i,getRecordByKey:Na,expandType:Oa,childrenColumnName:Ca,locale:ba,getPopupContainer:Mr||mi},On),sl=(ui,gi,ua)=>{let xa;return typeof yr=="function"?xa=we()(yr(ui,gi,ua)):xa=we()(yr),we()({[`${So}-row-selected`]:pl.has(_i(ui,gi))},xa)};Hi.__PARENT_RENDER_ICON__=Hi.expandIcon,Hi.expandIcon=Hi.expandIcon||ro||jo(ba),Oa==="nest"&&Hi.expandIconColumnIndex===void 0?Hi.expandIconColumnIndex=On?1:0:Hi.expandIconColumnIndex>0&&On&&(Hi.expandIconColumnIndex-=1),typeof Hi.indentSize!="number"&&(Hi.indentSize=typeof Co=="number"?Co:15);const Gi=y.useCallback(ui=>ll(Dl(ia(Pi(ui)))),[Pi,ia,Dl]);let vl,ts;if(kn!==!1&&(Ui!=null&&Ui.total)){let ui;Ui.size?ui=Ui.size:ui=vi==="small"||vi==="middle"?"small":void 0;const gi=Ra=>y.createElement(Ja.Z,Object.assign({},Ui,{className:we()(`${So}-pagination ${So}-pagination-${Ra}`,Ui.className),size:ui})),ua=na==="rtl"?"left":"right",{position:xa}=Ui;if(xa!==null&&Array.isArray(xa)){const Ra=xa.find(Ka=>Ka.includes("top")),Ma=xa.find(Ka=>Ka.includes("bottom")),Tl=xa.every(Ka=>`${Ka}`=="none");!Ra&&!Ma&&!Tl&&(ts=gi(ua)),Ra&&(vl=gi(Ra.toLowerCase().replace("top",""))),Ma&&(ts=gi(Ma.toLowerCase().replace("bottom","")))}else ts=gi(ua)}let Zl;typeof Wr=="boolean"?Zl={spinning:Wr}:typeof Wr=="object"&&(Zl=Object.assign({spinning:!0},Wr));const jl=we()(qi,Jr,`${So}-wrapper`,Vi==null?void 0:Vi.className,{[`${So}-wrapper-rtl`]:na==="rtl"},en,vn,Ii),Zs=Object.assign(Object.assign({},Vi==null?void 0:Vi.style),dn),js=typeof(lo==null?void 0:lo.emptyText)!="undefined"?lo.emptyText:(ra==null?void 0:ra("Table"))||y.createElement(da.Z,{componentName:"Table"}),zs=Or?Fa:zo,Hs={},qs=y.useMemo(()=>{const{fontSize:ui,lineHeight:gi,lineWidth:ua,padding:xa,paddingXS:Ra,paddingSM:Ma}=po,Tl=Math.floor(ui*gi);switch(vi){case"middle":return Ma*2+Tl+ua;case"small":return Ra*2+Tl+ua;default:return xa*2+Tl+ua}},[po,vi]);return Or&&(Hs.listItemHeight=qs),xi(y.createElement("div",{ref:Ni,className:jl,style:Zs},y.createElement(la.Z,Object.assign({spinning:!1},Zl),vl,y.createElement(zs,Object.assign({},Hs,hi,{ref:ji,columns:di,direction:na,expandable:Hi,prefixCls:So,className:we()({[`${So}-middle`]:vi==="middle",[`${So}-small`]:vi==="small",[`${So}-bordered`]:bn,[`${So}-empty`]:Ba.length===0},qi,Jr,Ii),data:tl,rowKey:_i,rowClassName:sl,emptyText:js,internalHooks:ce,internalRefs:Fo,transformColumns:Gi,getContainerWidth:Zo})),ts)))};var ms=y.forwardRef(Bl);const xo=(De,Be)=>{const mt=y.useRef(0);return mt.current+=1,y.createElement(ms,Object.assign({},De,{ref:Be,_renderTimes:mt.current}))},ga=y.forwardRef(xo);ga.SELECTION_COLUMN=ri,ga.EXPAND_COLUMN=he,ga.SELECTION_ALL=Mi,ga.SELECTION_INVERT=$i,ga.SELECTION_NONE=Xi,ga.Column=wr,ga.ColumnGroup=Jn,ga.Summary=ke;var il=ga,La=il},96599:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return we}});var y=z(59301),he=z(92310),ce=z.n(he),Re=z(2738),ve=z(29509),me=z(78776),pe=z(22703),Ne=z(12919),be=z(48755),le=z(36237),je=z(17835),Ae=z(63356),it=z(51636),ze=z(16931);const Oe=se=>{const{paddingXXS:ft,lineWidth:$e,tagPaddingHorizontal:tt,componentCls:Nt,calc:Le}=se,ye=Le(tt).sub($e).equal(),Et=Le(ft).sub($e).equal();return{[Nt]:Object.assign(Object.assign({},(0,Ae.Wf)(se)),{display:"inline-block",height:"auto",marginInlineEnd:se.marginXS,paddingInline:ye,fontSize:se.tagFontSize,lineHeight:se.tagLineHeight,whiteSpace:"nowrap",background:se.defaultBg,border:`${(0,le.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,opacity:1,transition:`all ${se.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Nt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:se.defaultColor},[`${Nt}-close-icon`]:{marginInlineStart:Et,fontSize:se.tagIconSize,color:se.colorTextDescription,cursor:"pointer",transition:`all ${se.motionDurationMid}`,"&:hover":{color:se.colorTextHeading}},[`&${Nt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${se.iconCls}-close, ${se.iconCls}-close:hover`]:{color:se.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Nt}-checkable-checked):hover`]:{color:se.colorPrimary,backgroundColor:se.colorFillSecondary},"&:active, &-checked":{color:se.colorTextLightSolid},"&-checked":{backgroundColor:se.colorPrimary,"&:hover":{backgroundColor:se.colorPrimaryHover}},"&:active":{backgroundColor:se.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${se.iconCls} + span, > span + ${se.iconCls}`]:{marginInlineStart:ye}}),[`${Nt}-borderless`]:{borderColor:"transparent",background:se.tagBorderlessBg}}},Ee=se=>{const{lineWidth:ft,fontSizeIcon:$e,calc:tt}=se,Nt=se.fontSizeSM;return(0,it.mergeToken)(se,{tagFontSize:Nt,tagLineHeight:(0,le.unit)(tt(se.lineHeightSM).mul(Nt).equal()),tagIconSize:tt($e).sub(tt(ft).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:se.defaultBg})},Pe=se=>({defaultBg:new je.FastColor(se.colorFillQuaternary).onBackground(se.colorBgContainer).toHexString(),defaultColor:se.colorText});var Fe=(0,ze.I$)("Tag",se=>{const ft=Ee(se);return Oe(ft)},Pe),Ve=function(se,ft){var $e={};for(var tt in se)Object.prototype.hasOwnProperty.call(se,tt)&&ft.indexOf(tt)<0&&($e[tt]=se[tt]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,tt=Object.getOwnPropertySymbols(se);Nt<tt.length;Nt++)ft.indexOf(tt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(se,tt[Nt])&&($e[tt[Nt]]=se[tt[Nt]]);return $e},Se=y.forwardRef((se,ft)=>{const{prefixCls:$e,style:tt,className:Nt,checked:Le,onChange:ye,onClick:Et}=se,Zt=Ve(se,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:pt,tag:Ce}=y.useContext(be.E_),at=nn=>{ye==null||ye(!Le),Et==null||Et(nn)},qe=pt("tag",$e),[zt,ut,ct]=Fe(qe),lt=ce()(qe,`${qe}-checkable`,{[`${qe}-checkable-checked`]:Le},Ce==null?void 0:Ce.className,Nt,ut,ct);return zt(y.createElement("span",Object.assign({},Zt,{ref:ft,style:Object.assign(Object.assign({},tt),Ce==null?void 0:Ce.style),className:lt,onClick:at})))}),Ie=z(93427);const Xe=se=>(0,Ie.Z)(se,(ft,$e)=>{let{textColor:tt,lightBorderColor:Nt,lightColor:Le,darkColor:ye}=$e;return{[`${se.componentCls}${se.componentCls}-${ft}`]:{color:tt,background:Le,borderColor:Nt,"&-inverse":{color:se.colorTextLightSolid,background:ye,borderColor:ye},[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}});var He=(0,ze.bk)(["Tag","preset"],se=>{const ft=Ee(se);return Xe(ft)},Pe);function rt(se){return typeof se!="string"?se:se.charAt(0).toUpperCase()+se.slice(1)}const st=(se,ft,$e)=>{const tt=rt($e);return{[`${se.componentCls}${se.componentCls}-${ft}`]:{color:se[`color${$e}`],background:se[`color${tt}Bg`],borderColor:se[`color${tt}Border`],[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Je=(0,ze.bk)(["Tag","status"],se=>{const ft=Ee(se);return[st(ft,"success","Success"),st(ft,"processing","Info"),st(ft,"error","Error"),st(ft,"warning","Warning")]},Pe),et=function(se,ft){var $e={};for(var tt in se)Object.prototype.hasOwnProperty.call(se,tt)&&ft.indexOf(tt)<0&&($e[tt]=se[tt]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,tt=Object.getOwnPropertySymbols(se);Nt<tt.length;Nt++)ft.indexOf(tt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(se,tt[Nt])&&($e[tt[Nt]]=se[tt[Nt]]);return $e};const Qe=y.forwardRef((se,ft)=>{const{prefixCls:$e,className:tt,rootClassName:Nt,style:Le,children:ye,icon:Et,color:Zt,onClose:pt,bordered:Ce=!0,visible:at}=se,qe=et(se,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:zt,direction:ut,tag:ct}=y.useContext(be.E_),[lt,nn]=y.useState(!0),kt=(0,Re.Z)(qe,["closeIcon","closable"]);y.useEffect(()=>{at!==void 0&&nn(at)},[at]);const ae=(0,ve.o2)(Zt),ne=(0,ve.yT)(Zt),te=ae||ne,ie=Object.assign(Object.assign({backgroundColor:Zt&&!te?Zt:void 0},ct==null?void 0:ct.style),Le),fe=zt("tag",$e),[re,ue,Me]=Fe(fe),gt=ce()(fe,ct==null?void 0:ct.className,{[`${fe}-${Zt}`]:te,[`${fe}-has-color`]:Zt&&!te,[`${fe}-hidden`]:!lt,[`${fe}-rtl`]:ut==="rtl",[`${fe}-borderless`]:!Ce},tt,Nt,ue,Me),_e=We=>{We.stopPropagation(),pt==null||pt(We),!We.defaultPrevented&&nn(!1)},[,ke]=(0,me.Z)((0,me.w)(se),(0,me.w)(ct),{closable:!1,closeIconRender:We=>{const Mt=y.createElement("span",{className:`${fe}-close-icon`,onClick:_e},We);return(0,pe.wm)(We,Mt,Ut=>({onClick:cn=>{var ln;(ln=Ut==null?void 0:Ut.onClick)===null||ln===void 0||ln.call(Ut,cn),_e(cn)},className:ce()(Ut==null?void 0:Ut.className,`${fe}-close-icon`)}))}}),ot=typeof qe.onClick=="function"||ye&&ye.type==="a",ht=Et||null,wt=ht?y.createElement(y.Fragment,null,ht,ye&&y.createElement("span",null,ye)):ye,Ze=y.createElement("span",Object.assign({},kt,{ref:ft,className:gt,style:ie}),wt,ke,ae&&y.createElement(He,{key:"preset",prefixCls:fe}),ne&&y.createElement(Je,{key:"status",prefixCls:fe}));return re(ot?y.createElement(Ne.Z,{component:"Tag"},Ze):Ze)});Qe.CheckableTag=Se;var we=Qe},18287:function(En,Vt,z){"use strict";z.d(Vt,{default:function(){return pt}});var y=z(87632),he=z(77654),ce=z(59301),Re=z(52671),ve=z(8657),me=z(60499),pe={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"},Ne=pe,be=z(7657),le=function(at,qe){return ce.createElement(be.Z,(0,me.Z)({},at,{ref:qe,icon:Ne}))},je=ce.forwardRef(le),Ae=je,it=z(92310),ze=z.n(it),Oe=z(82661),Ee=z(34061),Pe=z(48755),Fe=z(56082),Ve=z(86641),dt=z(57700),Se=z(12425);const Ie=4;function Xe(Ce){const{dropPosition:at,dropLevelOffset:qe,prefixCls:zt,indent:ut,direction:ct="ltr"}=Ce,lt=ct==="ltr"?"left":"right",nn=ct==="ltr"?"right":"left",kt={[lt]:-qe*ut+Ie,[nn]:0};switch(at){case-1:kt.top=-3;break;case 1:kt.bottom=-3;break;default:kt.bottom=-3,kt[lt]=ut+Ie;break}return ce.createElement("div",{style:kt,className:`${zt}-drop-indicator`})}var He=Xe,rt=z(85278),Je=ce.forwardRef((Ce,at)=>{var qe;const{getPrefixCls:zt,direction:ut,virtual:ct,tree:lt}=ce.useContext(Pe.E_),{prefixCls:nn,className:kt,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:ie,blockNode:fe=!1,children:re,checkable:ue=!1,selectable:Me=!0,draggable:gt,motion:_e,style:ke}=Ce,ot=zt("tree",nn),ht=zt(),wt=_e!=null?_e:Object.assign(Object.assign({},(0,Ve.Z)(ht)),{motionAppear:!1}),Ze=Object.assign(Object.assign({},Ce),{checkable:ue,selectable:Me,showIcon:ae,motion:wt,blockNode:fe,showLine:!!ne,dropIndicatorRender:He}),[We,Mt,Ut]=(0,Se.ZP)(ot),[,cn]=(0,dt.ZP)(),ln=cn.paddingXS/2+(((qe=cn.Tree)===null||qe===void 0?void 0:qe.titleHeight)||cn.controlHeightSM),_t=ce.useMemo(()=>{if(!gt)return!1;let qt={};switch(typeof gt){case"function":qt.nodeDraggable=gt;break;case"object":qt=Object.assign({},gt);break;default:break}return qt.icon!==!1&&(qt.icon=qt.icon||ce.createElement(Fe.Z,null)),qt},[gt]),fn=qt=>ce.createElement(rt.Z,{prefixCls:ot,switcherIcon:te,switcherLoadingIcon:ie,treeNodeProps:qt,showLine:ne});return We(ce.createElement(y.ZP,Object.assign({itemHeight:ln,ref:at,virtual:ct},Ze,{style:Object.assign(Object.assign({},lt==null?void 0:lt.style),ke),prefixCls:ot,className:ze()({[`${ot}-icon-hide`]:!ae,[`${ot}-block-node`]:fe,[`${ot}-unselectable`]:!Me,[`${ot}-rtl`]:ut==="rtl"},lt==null?void 0:lt.className,kt,Mt,Ut),direction:ut,checkable:ue&&ce.createElement("span",{className:`${ot}-checkbox-inner`}),selectable:Me,switcherIcon:fn,draggable:_t}),re))});const et=0,ge=1,Qe=2;function we(Ce,at,qe){const{key:zt,children:ut}=qe;function ct(lt){const nn=lt[zt],kt=lt[ut];at(nn,lt)!==!1&&we(kt||[],at,qe)}Ce.forEach(ct)}function se(Ce){let{treeData:at,expandedKeys:qe,startKey:zt,endKey:ut,fieldNames:ct}=Ce;const lt=[];let nn=et;if(zt&&zt===ut)return[zt];if(!zt||!ut)return[];function kt(ae){return ae===zt||ae===ut}return we(at,ae=>{if(nn===Qe)return!1;if(kt(ae)){if(lt.push(ae),nn===et)nn=ge;else if(nn===ge)return nn=Qe,!1}else nn===ge&&lt.push(ae);return qe.includes(ae)},(0,Ee.w$)(ct)),lt}function ft(Ce,at,qe){const zt=(0,he.Z)(at),ut=[];return we(Ce,(ct,lt)=>{const nn=zt.indexOf(ct);return nn!==-1&&(ut.push(lt),zt.splice(nn,1)),!!zt.length},(0,Ee.w$)(qe)),ut}var $e=function(Ce,at){var qe={};for(var zt in Ce)Object.prototype.hasOwnProperty.call(Ce,zt)&&at.indexOf(zt)<0&&(qe[zt]=Ce[zt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,zt=Object.getOwnPropertySymbols(Ce);ut<zt.length;ut++)at.indexOf(zt[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ce,zt[ut])&&(qe[zt[ut]]=Ce[zt[ut]]);return qe};function tt(Ce){const{isLeaf:at,expanded:qe}=Ce;return at?ce.createElement(Re.Z,null):qe?ce.createElement(ve.Z,null):ce.createElement(Ae,null)}function Nt(Ce){let{treeData:at,children:qe}=Ce;return at||(0,Ee.zn)(qe)}const Le=(Ce,at)=>{var{defaultExpandAll:qe,defaultExpandParent:zt,defaultExpandedKeys:ut}=Ce,ct=$e(Ce,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const lt=ce.useRef(null),nn=ce.useRef(null),kt=()=>{const{keyEntities:We}=(0,Ee.I8)(Nt(ct));let Mt;return qe?Mt=Object.keys(We):zt?Mt=(0,Oe.r7)(ct.expandedKeys||ut||[],We):Mt=ct.expandedKeys||ut||[],Mt},[ae,ne]=ce.useState(ct.selectedKeys||ct.defaultSelectedKeys||[]),[te,ie]=ce.useState(()=>kt());ce.useEffect(()=>{"selectedKeys"in ct&&ne(ct.selectedKeys)},[ct.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in ct&&ie(ct.expandedKeys)},[ct.expandedKeys]);const fe=(We,Mt)=>{var Ut;return"expandedKeys"in ct||ie(We),(Ut=ct.onExpand)===null||Ut===void 0?void 0:Ut.call(ct,We,Mt)},re=(We,Mt)=>{var Ut;const{multiple:cn,fieldNames:ln}=ct,{node:_t,nativeEvent:fn}=Mt,{key:qt=""}=_t,Ye=Nt(ct),Ot=Object.assign(Object.assign({},Mt),{selected:!0}),Jt=(fn==null?void 0:fn.ctrlKey)||(fn==null?void 0:fn.metaKey),on=fn==null?void 0:fn.shiftKey;let Ge;cn&&Jt?(Ge=We,lt.current=qt,nn.current=Ge,Ot.selectedNodes=ft(Ye,Ge,ln)):cn&&on?(Ge=Array.from(new Set([].concat((0,he.Z)(nn.current||[]),(0,he.Z)(se({treeData:Ye,expandedKeys:te,startKey:qt,endKey:lt.current,fieldNames:ln}))))),Ot.selectedNodes=ft(Ye,Ge,ln)):(Ge=[qt],lt.current=qt,nn.current=Ge,Ot.selectedNodes=ft(Ye,Ge,ln)),(Ut=ct.onSelect)===null||Ut===void 0||Ut.call(ct,Ge,Ot),"selectedKeys"in ct||ne(Ge)},{getPrefixCls:ue,direction:Me}=ce.useContext(Pe.E_),{prefixCls:gt,className:_e,showIcon:ke=!0,expandAction:ot="click"}=ct,ht=$e(ct,["prefixCls","className","showIcon","expandAction"]),wt=ue("tree",gt),Ze=ze()(`${wt}-directory`,{[`${wt}-directory-rtl`]:Me==="rtl"},_e);return ce.createElement(Je,Object.assign({icon:tt,ref:at,blockNode:!0},ht,{showIcon:ke,expandAction:ot,prefixCls:wt,className:Ze,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:fe}))};var Et=ce.forwardRef(Le);const Zt=Je;Zt.DirectoryTree=Et,Zt.TreeNode=y.OF;var pt=Zt},12425:function(En,Vt,z){"use strict";z.d(Vt,{ZP:function(){return Oe},Yk:function(){return Ae},TM:function(){return it}});var y=z(36237),he=z(36170),ce=z(63356),Re=z(34961),ve=z(51636),me=z(16931);const pe=Ee=>{let{treeCls:Pe,treeNodeCls:Fe,directoryNodeSelectedBg:Ve,directoryNodeSelectedColor:dt,motionDurationMid:Se,borderRadius:Ie,controlItemBgHover:Xe}=Ee;return{[`${Pe}${Pe}-directory ${Fe}`]:{[`${Pe}-node-content-wrapper`]:{position:"static",[`> *:not(${Pe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Se}`,content:'""',borderRadius:Ie},"&:hover:before":{background:Xe}},[`${Pe}-switcher, ${Pe}-checkbox, ${Pe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Pe}-switcher, ${Pe}-draggable-icon`]:{color:dt},[`${Pe}-node-content-wrapper`]:{color:dt,background:"transparent","&:before, &:hover:before":{background:Ve}}}}}},Ne=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),be=(Ee,Pe)=>({[`.${Ee}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Pe.motionDurationSlow}`}}}),le=(Ee,Pe)=>({[`.${Ee}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Pe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Pe.lineWidthBold)} solid ${Pe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),je=(Ee,Pe)=>{const{treeCls:Fe,treeNodeCls:Ve,treeNodePadding:dt,titleHeight:Se,indentSize:Ie,nodeSelectedBg:Xe,nodeHoverBg:He,colorTextQuaternary:rt,controlItemBgActiveDisabled:st}=Pe;return{[Fe]:Object.assign(Object.assign({},(0,ce.Wf)(Pe)),{background:Pe.colorBgContainer,borderRadius:Pe.borderRadius,transition:`background-color ${Pe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Fe}-rtl ${Fe}-switcher_close ${Fe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Fe}-active-focused)`]:Object.assign({},(0,ce.oN)(Pe)),[`${Fe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Fe}-block-node`]:{[`${Fe}-list-holder-inner`]:{alignItems:"stretch",[`${Fe}-node-content-wrapper`]:{flex:"auto"},[`${Ve}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Pe.colorPrimary}`,opacity:0,animationName:Ne,animationDuration:Pe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Pe.borderRadius}}},[Ve]:{display:"flex",alignItems:"flex-start",marginBottom:dt,lineHeight:(0,y.unit)(Se),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:dt},[`&-disabled ${Fe}-node-content-wrapper`]:{color:Pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Fe}-checkbox-disabled + ${Fe}-node-selected,&${Ve}-disabled${Ve}-selected ${Fe}-node-content-wrapper`]:{backgroundColor:st},[`${Fe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${Ve}-disabled)`]:{[`${Fe}-node-content-wrapper`]:{"&:hover":{color:Pe.nodeHoverColor}}},[`&-active ${Fe}-node-content-wrapper`]:{background:Pe.controlItemBgHover},[`&:not(${Ve}-disabled).filter-node ${Fe}-title`]:{color:Pe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Fe}-draggable-icon`]:{flexShrink:0,width:Se,textAlign:"center",visibility:"visible",color:rt},[`&${Ve}-disabled ${Fe}-draggable-icon`]:{visibility:"hidden"}}},[`${Fe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ie}},[`${Fe}-draggable-icon`]:{visibility:"hidden"},[`${Fe}-switcher, ${Fe}-checkbox`]:{marginInlineEnd:Pe.calc(Pe.calc(Se).sub(Pe.controlInteractiveSize)).div(2).equal()},[`${Fe}-switcher`]:Object.assign(Object.assign({},be(Ee,Pe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Se,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Pe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Se,height:Se,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Pe.borderRadius,transition:`all ${Pe.motionDurationSlow}`},[`&:not(${Fe}-switcher-noop):hover:before`]:{backgroundColor:Pe.colorBgTextHover},[`&_close ${Fe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Pe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pe.calc(Se).div(2).equal(),bottom:Pe.calc(dt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Pe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Pe.calc(Pe.calc(Se).div(2).equal()).mul(.8).equal(),height:Pe.calc(Se).div(2).equal(),borderBottom:`1px solid ${Pe.colorBorder}`,content:'""'}}}),[`${Fe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Se,paddingBlock:0,paddingInline:Pe.paddingXS,background:"transparent",borderRadius:Pe.borderRadius,cursor:"pointer",transition:`all ${Pe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},le(Ee,Pe)),{"&:hover":{backgroundColor:He},[`&${Fe}-node-selected`]:{color:Pe.nodeSelectedColor,backgroundColor:Xe},[`${Fe}-iconEle`]:{display:"inline-block",width:Se,height:Se,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Fe}-unselectable ${Fe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ve}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Pe.colorPrimary}`},"&-show-line":{[`${Fe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pe.calc(Se).div(2).equal(),bottom:Pe.calc(dt).mul(-1).equal(),borderInlineEnd:`1px solid ${Pe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Fe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ve}-leaf-last ${Fe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Pe.calc(Se).div(2).equal())} !important`}})}},Ae=function(Ee,Pe){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const Ve=`.${Ee}`,dt=`${Ve}-treenode`,Se=Pe.calc(Pe.paddingXS).div(2).equal(),Ie=(0,ve.mergeToken)(Pe,{treeCls:Ve,treeNodeCls:dt,treeNodePadding:Se});return[je(Ee,Ie),Fe&&pe(Ie)].filter(Boolean)},it=Ee=>{const{controlHeightSM:Pe,controlItemBgHover:Fe,controlItemBgActive:Ve}=Ee,dt=Pe;return{titleHeight:dt,indentSize:dt,nodeHoverBg:Fe,nodeHoverColor:Ee.colorText,nodeSelectedBg:Ve,nodeSelectedColor:Ee.colorText}},ze=Ee=>{const{colorTextLightSolid:Pe,colorPrimary:Fe}=Ee;return Object.assign(Object.assign({},it(Ee)),{directoryNodeSelectedColor:Pe,directoryNodeSelectedBg:Fe})};var Oe=(0,me.I$)("Tree",(Ee,Pe)=>{let{prefixCls:Fe}=Pe;return[{[Ee.componentCls]:(0,he.C2)(`${Fe}-checkbox`,Ee)},Ae(Fe,Ee),(0,Re.Z)(Ee)]},ze)},85278:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Pe}});var y=z(59301),he=z(60499),ce={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"},Re=ce,ve=z(7657),me=function(Ve,dt){return y.createElement(ve.Z,(0,he.Z)({},Ve,{ref:dt,icon:Re}))},pe=y.forwardRef(me),Ne=pe,be=z(52671),le=z(58617),je=z(15075),Ae=z(43531),it=z(92310),ze=z.n(it),Oe=z(22703),Pe=Fe=>{const{prefixCls:Ve,switcherIcon:dt,treeNodeProps:Se,showLine:Ie,switcherLoadingIcon:Xe}=Fe,{isLeaf:He,expanded:rt,loading:st}=Se;if(st)return y.isValidElement(Xe)?Xe:y.createElement(le.Z,{className:`${Ve}-switcher-loading-icon`});let Je;if(Ie&&typeof Ie=="object"&&(Je=Ie.showLeafIcon),He){if(!Ie)return null;if(typeof Je!="boolean"&&Je){const Qe=typeof Je=="function"?Je(Se):Je,we=`${Ve}-switcher-line-custom-icon`;return y.isValidElement(Qe)?(0,Oe.Tm)(Qe,{className:ze()(Qe.props.className||"",we)}):Qe}return Je?y.createElement(be.Z,{className:`${Ve}-switcher-line-icon`}):y.createElement("span",{className:`${Ve}-switcher-leaf-line`})}const et=`${Ve}-switcher-icon`,ge=typeof dt=="function"?dt(Se):dt;return y.isValidElement(ge)?(0,Oe.Tm)(ge,{className:ze()(ge.props.className||"",et)}):ge!==void 0?ge:Ie?rt?y.createElement(je.Z,{className:`${Ve}-switcher-line-icon`}):y.createElement(Ae.Z,{className:`${Ve}-switcher-line-icon`}):y.createElement(Ne,{className:et})}},99498:function(En,Vt,z){(function(y){y(z(89780))})(function(y){y.defineOption("placeholder","",function(Ne,be,le){var je=le&&le!=y.Init;if(be&&!je)Ne.on("blur",ve),Ne.on("change",me),Ne.on("swapDoc",me),y.on(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose=function(){Re(Ne)}),me(Ne);else if(!be&&je){Ne.off("blur",ve),Ne.off("change",me),Ne.off("swapDoc",me),y.off(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose),he(Ne);var Ae=Ne.getWrapperElement();Ae.className=Ae.className.replace(" CodeMirror-empty","")}be&&!Ne.hasFocus()&&ve(Ne)});function he(Ne){Ne.state.placeholder&&(Ne.state.placeholder.parentNode.removeChild(Ne.state.placeholder),Ne.state.placeholder=null)}function ce(Ne){he(Ne);var be=Ne.state.placeholder=document.createElement("pre");be.style.cssText="height: 0; overflow: visible",be.style.direction=Ne.getOption("direction"),be.className="CodeMirror-placeholder CodeMirror-line-like";var le=Ne.getOption("placeholder");typeof le=="string"&&(le=document.createTextNode(le)),be.appendChild(le),Ne.display.lineSpace.insertBefore(be,Ne.display.lineSpace.firstChild)}function Re(Ne){setTimeout(function(){var be=!1,le=Ne.getInputField();le.nodeName=="TEXTAREA"?be=!le.value:Ne.lineCount()==1&&(be=!/[^\u200b]/.test(le.querySelector(".CodeMirror-line").textContent)),be?ce(Ne):he(Ne)},20)}function ve(Ne){pe(Ne)&&ce(Ne)}function me(Ne){var be=Ne.getWrapperElement(),le=pe(Ne);be.className=be.className.replace(" CodeMirror-empty","")+(le?" CodeMirror-empty":""),le?ce(Ne):he(Ne)}function pe(Ne){return Ne.lineCount()===1&&Ne.getLine(0)===""}})},25717:function(En,Vt,z){(function(y){y(z(89780))})(function(y){var he={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ce=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Oe,Ee,Pe){Pe&&Pe!=y.Init&&(Oe.removeKeyMap(ve),Oe.state.closeBrackets=null),Ee&&(me(Re(Ee,"pairs")),Oe.state.closeBrackets=Ee,Oe.addKeyMap(ve))});function Re(Oe,Ee){return Ee=="pairs"&&typeof Oe=="string"?Oe:typeof Oe=="object"&&Oe[Ee]!=null?Oe[Ee]:he[Ee]}var ve={Backspace:be,Enter:le};function me(Oe){for(var Ee=0;Ee<Oe.length;Ee++){var Pe=Oe.charAt(Ee),Fe="'"+Pe+"'";ve[Fe]||(ve[Fe]=pe(Pe))}}me(he.pairs+"`");function pe(Oe){return function(Ee){return Ae(Ee,Oe)}}function Ne(Oe){var Ee=Oe.state.closeBrackets;if(!Ee||Ee.override)return Ee;var Pe=Oe.getModeAt(Oe.getCursor());return Pe.closeBrackets||Ee}function be(Oe){var Ee=Ne(Oe);if(!Ee||Oe.getOption("disableInput"))return y.Pass;for(var Pe=Re(Ee,"pairs"),Fe=Oe.listSelections(),Ve=0;Ve<Fe.length;Ve++){if(!Fe[Ve].empty())return y.Pass;var dt=it(Oe,Fe[Ve].head);if(!dt||Pe.indexOf(dt)%2!=0)return y.Pass}for(var Ve=Fe.length-1;Ve>=0;Ve--){var Se=Fe[Ve].head;Oe.replaceRange("",ce(Se.line,Se.ch-1),ce(Se.line,Se.ch+1),"+delete")}}function le(Oe){var Ee=Ne(Oe),Pe=Ee&&Re(Ee,"explode");if(!Pe||Oe.getOption("disableInput"))return y.Pass;for(var Fe=Oe.listSelections(),Ve=0;Ve<Fe.length;Ve++){if(!Fe[Ve].empty())return y.Pass;var dt=it(Oe,Fe[Ve].head);if(!dt||Pe.indexOf(dt)%2!=0)return y.Pass}Oe.operation(function(){var Se=Oe.lineSeparator()||`
`;Oe.replaceSelection(Se+Se,null),Oe.execCommand("goCharLeft"),Fe=Oe.listSelections();for(var Ie=0;Ie<Fe.length;Ie++){var Xe=Fe[Ie].head.line;Oe.indentLine(Xe,null,!0),Oe.indentLine(Xe+1,null,!0)}})}function je(Oe){var Ee=y.cmpPos(Oe.anchor,Oe.head)>0;return{anchor:new ce(Oe.anchor.line,Oe.anchor.ch+(Ee?-1:1)),head:new ce(Oe.head.line,Oe.head.ch+(Ee?1:-1))}}function Ae(Oe,Ee){var Pe=Ne(Oe);if(!Pe||Oe.getOption("disableInput"))return y.Pass;var Fe=Re(Pe,"pairs"),Ve=Fe.indexOf(Ee);if(Ve==-1)return y.Pass;for(var dt=Re(Pe,"closeBefore"),Se=Re(Pe,"triples"),Ie=Fe.charAt(Ve+1)==Ee,Xe=Oe.listSelections(),He=Ve%2==0,rt,st=0;st<Xe.length;st++){var Je=Xe[st],et=Je.head,ge,Qe=Oe.getRange(et,ce(et.line,et.ch+1));if(He&&!Je.empty())ge="surround";else if((Ie||!He)&&Qe==Ee)Ie&&ze(Oe,et)?ge="both":Se.indexOf(Ee)>=0&&Oe.getRange(et,ce(et.line,et.ch+3))==Ee+Ee+Ee?ge="skipThree":ge="skip";else if(Ie&&et.ch>1&&Se.indexOf(Ee)>=0&&Oe.getRange(ce(et.line,et.ch-2),et)==Ee+Ee){if(et.ch>2&&/\bstring/.test(Oe.getTokenTypeAt(ce(et.line,et.ch-2))))return y.Pass;ge="addFour"}else if(Ie){var we=et.ch==0?" ":Oe.getRange(ce(et.line,et.ch-1),et);if(!y.isWordChar(Qe)&&we!=Ee&&!y.isWordChar(we))ge="both";else return y.Pass}else if(He&&(Qe.length===0||/\s/.test(Qe)||dt.indexOf(Qe)>-1))ge="both";else return y.Pass;if(!rt)rt=ge;else if(rt!=ge)return y.Pass}var se=Ve%2?Fe.charAt(Ve-1):Ee,ft=Ve%2?Ee:Fe.charAt(Ve+1);Oe.operation(function(){if(rt=="skip")Oe.execCommand("goCharRight");else if(rt=="skipThree")for(var $e=0;$e<3;$e++)Oe.execCommand("goCharRight");else if(rt=="surround"){for(var tt=Oe.getSelections(),$e=0;$e<tt.length;$e++)tt[$e]=se+tt[$e]+ft;Oe.replaceSelections(tt,"around"),tt=Oe.listSelections().slice();for(var $e=0;$e<tt.length;$e++)tt[$e]=je(tt[$e]);Oe.setSelections(tt)}else rt=="both"?(Oe.replaceSelection(se+ft,null),Oe.triggerElectric(se+ft),Oe.execCommand("goCharLeft")):rt=="addFour"&&(Oe.replaceSelection(se+se+se+se,"before"),Oe.execCommand("goCharRight"))})}function it(Oe,Ee){var Pe=Oe.getRange(ce(Ee.line,Ee.ch-1),ce(Ee.line,Ee.ch+1));return Pe.length==2?Pe:null}function ze(Oe,Ee){var Pe=Oe.getTokenAt(ce(Ee.line,Ee.ch+1));return/\bstring/.test(Pe.type)&&Pe.start==Ee.ch&&(Ee.ch==0||!/\bstring/.test(Oe.getTokenTypeAt(Ee)))}})},6313:function(En,Vt,z){(function(y){y(z(89780),z(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(be,le,je){if(je!=y.Init&&je&&be.removeKeyMap("autoCloseTags"),!!le){var Ae={name:"autoCloseTags"};(typeof le!="object"||le.whenClosing!==!1)&&(Ae["'/'"]=function(it){return me(it)}),(typeof le!="object"||le.whenOpening!==!1)&&(Ae["'>'"]=function(it){return Re(it)}),be.addKeyMap(Ae)}});var he=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ce=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Re(be){if(be.getOption("disableInput"))return y.Pass;for(var le=be.listSelections(),je=[],Ae=be.getOption("autoCloseTags"),it=0;it<le.length;it++){if(!le[it].empty())return y.Pass;var ze=le[it].head,Oe=be.getTokenAt(ze),Ee=y.innerMode(be.getMode(),Oe.state),Pe=Ee.state,Fe=Ee.mode.xmlCurrentTag&&Ee.mode.xmlCurrentTag(Pe),Ve=Fe&&Fe.name;if(!Ve)return y.Pass;var dt=Ee.mode.configuration=="html",Se=typeof Ae=="object"&&Ae.dontCloseTags||dt&&he,Ie=typeof Ae=="object"&&Ae.indentTags||dt&&ce;Oe.end>ze.ch&&(Ve=Ve.slice(0,Ve.length-Oe.end+ze.ch));var Xe=Ve.toLowerCase();if(!Ve||Oe.type=="string"&&(Oe.end!=ze.ch||!/[\"\']/.test(Oe.string.charAt(Oe.string.length-1))||Oe.string.length==1)||Oe.type=="tag"&&Fe.close||Oe.string.indexOf("/")==ze.ch-Oe.start-1||Se&&pe(Se,Xe)>-1||Ne(be,Ee.mode.xmlCurrentContext&&Ee.mode.xmlCurrentContext(Pe)||[],Ve,ze,!0))return y.Pass;var He=typeof Ae=="object"&&Ae.emptyTags;if(He&&pe(He,Ve)>-1){je[it]={text:"/>",newPos:y.Pos(ze.line,ze.ch+2)};continue}var rt=Ie&&pe(Ie,Xe)>-1;je[it]={indent:rt,text:">"+(rt?`
`:"")+"</"+Ve+">",newPos:rt?y.Pos(ze.line+1,0):y.Pos(ze.line,ze.ch+1)}}for(var st=typeof Ae=="object"&&Ae.dontIndentOnAutoClose,it=le.length-1;it>=0;it--){var Je=je[it];be.replaceRange(Je.text,le[it].head,le[it].anchor,"+insert");var et=be.listSelections().slice(0);et[it]={head:Je.newPos,anchor:Je.newPos},be.setSelections(et),!st&&Je.indent&&(be.indentLine(Je.newPos.line,null,!0),be.indentLine(Je.newPos.line+1,null,!0))}}function ve(be,le){for(var je=be.listSelections(),Ae=[],it=le?"/":"</",ze=be.getOption("autoCloseTags"),Oe=typeof ze=="object"&&ze.dontIndentOnSlash,Ee=0;Ee<je.length;Ee++){if(!je[Ee].empty())return y.Pass;var Pe=je[Ee].head,Fe=be.getTokenAt(Pe),Ve=y.innerMode(be.getMode(),Fe.state),dt=Ve.state;if(le&&(Fe.type=="string"||Fe.string.charAt(0)!="<"||Fe.start!=Pe.ch-1))return y.Pass;var Se,Ie=Ve.mode.name!="xml"&&be.getMode().name=="htmlmixed";if(Ie&&Ve.mode.name=="javascript")Se=it+"script";else if(Ie&&Ve.mode.name=="css")Se=it+"style";else{var Xe=Ve.mode.xmlCurrentContext&&Ve.mode.xmlCurrentContext(dt);if(!Xe||Xe.length&&Ne(be,Xe,Xe[Xe.length-1],Pe))return y.Pass;Se=it+Xe[Xe.length-1]}be.getLine(Pe.line).charAt(Fe.end)!=">"&&(Se+=">"),Ae[Ee]=Se}if(be.replaceSelections(Ae),je=be.listSelections(),!Oe)for(var Ee=0;Ee<je.length;Ee++)(Ee==je.length-1||je[Ee].head.line<je[Ee+1].head.line)&&be.indentLine(je[Ee].head.line)}function me(be){return be.getOption("disableInput")?y.Pass:ve(be,!0)}y.commands.closeTag=function(be){return ve(be)};function pe(be,le){if(be.indexOf)return be.indexOf(le);for(var je=0,Ae=be.length;je<Ae;++je)if(be[je]==le)return je;return-1}function Ne(be,le,je,Ae,it){if(!y.scanForClosingTag)return!1;var ze=Math.min(be.lastLine()+1,Ae.line+500),Oe=y.scanForClosingTag(be,Ae,null,ze);if(!Oe||Oe.tag!=je)return!1;for(var Ee=it?1:0,Pe=le.length-1;Pe>=0&&le[Pe]==je;Pe--)++Ee;Ae=Oe.to;for(var Pe=1;Pe<Ee;Pe++){var Fe=y.scanForClosingTag(be,Ae,null,ze);if(!Fe||Fe.tag!=je)return!1;Ae=Fe.to}return!0}})},32855:function(En,Vt,z){(function(y){y(z(89780))})(function(y){"use strict";var he=y.Pos;function ce(Pe,Fe){return Pe.line-Fe.line||Pe.ch-Fe.ch}var Re="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ve=Re+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+Re+"]["+ve+"]*)","g");function pe(Pe,Fe,Ve,dt){this.line=Fe,this.ch=Ve,this.cm=Pe,this.text=Pe.getLine(Fe),this.min=dt?Math.max(dt.from,Pe.firstLine()):Pe.firstLine(),this.max=dt?Math.min(dt.to-1,Pe.lastLine()):Pe.lastLine()}function Ne(Pe,Fe){var Ve=Pe.cm.getTokenTypeAt(he(Pe.line,Fe));return Ve&&/\btag\b/.test(Ve)}function be(Pe){if(!(Pe.line>=Pe.max))return Pe.ch=0,Pe.text=Pe.cm.getLine(++Pe.line),!0}function le(Pe){if(!(Pe.line<=Pe.min))return Pe.text=Pe.cm.getLine(--Pe.line),Pe.ch=Pe.text.length,!0}function je(Pe){for(;;){var Fe=Pe.text.indexOf(">",Pe.ch);if(Fe==-1){if(be(Pe))continue;return}if(!Ne(Pe,Fe+1)){Pe.ch=Fe+1;continue}var Ve=Pe.text.lastIndexOf("/",Fe),dt=Ve>-1&&!/\S/.test(Pe.text.slice(Ve+1,Fe));return Pe.ch=Fe+1,dt?"selfClose":"regular"}}function Ae(Pe){for(;;){var Fe=Pe.ch?Pe.text.lastIndexOf("<",Pe.ch-1):-1;if(Fe==-1){if(le(Pe))continue;return}if(!Ne(Pe,Fe+1)){Pe.ch=Fe;continue}me.lastIndex=Fe,Pe.ch=Fe;var Ve=me.exec(Pe.text);if(Ve&&Ve.index==Fe)return Ve}}function it(Pe){for(;;){me.lastIndex=Pe.ch;var Fe=me.exec(Pe.text);if(!Fe){if(be(Pe))continue;return}if(!Ne(Pe,Fe.index+1)){Pe.ch=Fe.index+1;continue}return Pe.ch=Fe.index+Fe[0].length,Fe}}function ze(Pe){for(;;){var Fe=Pe.ch?Pe.text.lastIndexOf(">",Pe.ch-1):-1;if(Fe==-1){if(le(Pe))continue;return}if(!Ne(Pe,Fe+1)){Pe.ch=Fe;continue}var Ve=Pe.text.lastIndexOf("/",Fe),dt=Ve>-1&&!/\S/.test(Pe.text.slice(Ve+1,Fe));return Pe.ch=Fe+1,dt?"selfClose":"regular"}}function Oe(Pe,Fe){for(var Ve=[];;){var dt=it(Pe),Se,Ie=Pe.line,Xe=Pe.ch-(dt?dt[0].length:0);if(!dt||!(Se=je(Pe)))return;if(Se!="selfClose")if(dt[1]){for(var He=Ve.length-1;He>=0;--He)if(Ve[He]==dt[2]){Ve.length=He;break}if(He<0&&(!Fe||Fe==dt[2]))return{tag:dt[2],from:he(Ie,Xe),to:he(Pe.line,Pe.ch)}}else Ve.push(dt[2])}}function Ee(Pe,Fe){for(var Ve=[];;){var dt=ze(Pe);if(!dt)return;if(dt=="selfClose"){Ae(Pe);continue}var Se=Pe.line,Ie=Pe.ch,Xe=Ae(Pe);if(!Xe)return;if(Xe[1])Ve.push(Xe[2]);else{for(var He=Ve.length-1;He>=0;--He)if(Ve[He]==Xe[2]){Ve.length=He;break}if(He<0&&(!Fe||Fe==Xe[2]))return{tag:Xe[2],from:he(Pe.line,Pe.ch),to:he(Se,Ie)}}}}y.registerHelper("fold","xml",function(Pe,Fe){for(var Ve=new pe(Pe,Fe.line,0);;){var dt=it(Ve);if(!dt||Ve.line!=Fe.line)return;var Se=je(Ve);if(!Se)return;if(!dt[1]&&Se!="selfClose"){var Ie=he(Ve.line,Ve.ch),Xe=Oe(Ve,dt[2]);return Xe&&ce(Xe.from,Ie)>0?{from:Ie,to:Xe.from}:null}}}),y.findMatchingTag=function(Pe,Fe,Ve){var dt=new pe(Pe,Fe.line,Fe.ch,Ve);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var Se=je(dt),Ie=Se&&he(dt.line,dt.ch),Xe=Se&&Ae(dt);if(!(!Se||!Xe||ce(dt,Fe)>0)){var He={from:he(dt.line,dt.ch),to:Ie,tag:Xe[2]};return Se=="selfClose"?{open:He,close:null,at:"open"}:Xe[1]?{open:Ee(dt,Xe[2]),close:He,at:"close"}:(dt=new pe(Pe,Ie.line,Ie.ch,Ve),{open:He,close:Oe(dt,Xe[2]),at:"open"})}}},y.findEnclosingTag=function(Pe,Fe,Ve,dt){for(var Se=new pe(Pe,Fe.line,Fe.ch,Ve);;){var Ie=Ee(Se,dt);if(!Ie)break;var Xe=new pe(Pe,Fe.line,Fe.ch,Ve),He=Oe(Xe,Ie.tag);if(He)return{open:Ie,close:He}}},y.scanForClosingTag=function(Pe,Fe,Ve,dt){var Se=new pe(Pe,Fe.line,Fe.ch,dt?{from:0,to:dt}:null);return Oe(Se,Ve)}})},89780:function(En){(function(Vt,z){En.exports=z()})(this,function(){"use strict";var Vt=navigator.userAgent,z=navigator.platform,y=/gecko\/\d/i.test(Vt),he=/MSIE \d/.test(Vt),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vt),Re=/Edge\/(\d+)/.exec(Vt),ve=he||ce||Re,me=ve&&(he?document.documentMode||6:+(Re||ce)[1]),pe=!Re&&/WebKit\//.test(Vt),Ne=pe&&/Qt\/\d+\.\d+/.test(Vt),be=!Re&&/Chrome\//.test(Vt),le=/Opera\//.test(Vt),je=/Apple Computer/.test(navigator.vendor),Ae=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Vt),it=/PhantomJS/.test(Vt),ze=!Re&&/AppleWebKit/.test(Vt)&&/Mobile\/\w+/.test(Vt),Oe=/Android/.test(Vt),Ee=ze||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Vt),Pe=ze||/Mac/.test(z),Fe=/\bCrOS\b/.test(Vt),Ve=/win/i.test(z),dt=le&&Vt.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(le=!1,pe=!0);var Se=Pe&&(Ne||le&&(dt==null||dt<12.11)),Ie=y||ve&&me>=9;function Xe(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var He=function(a,b){var x=a.className,E=Xe(b).exec(x);if(E){var ee=x.slice(E.index+E[0].length);a.className=x.slice(0,E.index)+(ee?E[1]+ee:"")}};function rt(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function st(a,b){return rt(a).appendChild(b)}function Je(a,b,x,E){var ee=document.createElement(a);if(x&&(ee.className=x),E&&(ee.style.cssText=E),typeof b=="string")ee.appendChild(document.createTextNode(b));else if(b)for(var oe=0;oe<b.length;++oe)ee.appendChild(b[oe]);return ee}function et(a,b,x,E){var ee=Je(a,b,x,E);return ee.setAttribute("role","presentation"),ee}var ge;document.createRange?ge=function(a,b,x,E){var ee=document.createRange();return ee.setEnd(E||a,x),ee.setStart(a,b),ee}:ge=function(a,b,x){var E=document.body.createTextRange();try{E.moveToElementText(a.parentNode)}catch(ee){return E}return E.collapse(!0),E.moveEnd("character",x),E.moveStart("character",b),E};function Qe(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function we(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function se(a,b){var x=a.className;Xe(b).test(x)||(a.className+=(x?" ":"")+b)}function ft(a,b){for(var x=a.split(" "),E=0;E<x.length;E++)x[E]&&!Xe(x[E]).test(b)&&(b+=" "+x[E]);return b}var $e=function(a){a.select()};ze?$e=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ve&&($e=function(a){try{a.select()}catch(b){}});function tt(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Nt(a,b,x){b||(b={});for(var E in a)a.hasOwnProperty(E)&&(x!==!1||!b.hasOwnProperty(E))&&(b[E]=a[E]);return b}function Le(a,b,x,E,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var oe=E||0,de=ee||0;;){var xe=a.indexOf(" ",oe);if(xe<0||xe>=b)return de+(b-oe);de+=xe-oe,de+=x-de%x,oe=xe+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=tt(this.onTimeout,this)};ye.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ye.prototype.set=function(a,b){this.f=b;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Et(a,b){for(var x=0;x<a.length;++x)if(a[x]==b)return x;return-1}var Zt=50,pt={toString:function(){return"CodeMirror.Pass"}},Ce={scroll:!1},at={origin:"*mouse"},qe={origin:"+move"};function zt(a,b,x){for(var E=0,ee=0;;){var oe=a.indexOf(" ",E);oe==-1&&(oe=a.length);var de=oe-E;if(oe==a.length||ee+de>=b)return E+Math.min(de,b-ee);if(ee+=oe-E,ee+=x-ee%x,E=oe+1,ee>=b)return E}}var ut=[""];function ct(a){for(;ut.length<=a;)ut.push(lt(ut)+" ");return ut[a]}function lt(a){return a[a.length-1]}function nn(a,b){for(var x=[],E=0;E<a.length;E++)x[E]=b(a[E],E);return x}function kt(a,b,x){for(var E=0,ee=x(b);E<a.length&&x(a[E])<=ee;)E++;a.splice(E,0,b)}function ae(){}function ne(a,b){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),b&&Nt(b,x),x}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function fe(a,b){return b?b.source.indexOf("\\w")>-1&&ie(a)?!0:b.test(a):ie(a)}function re(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Me(a){return a.charCodeAt(0)>=768&&ue.test(a)}function gt(a,b,x){for(;(x<0?b>0:b<a.length)&&Me(a.charAt(b));)b+=x;return b}function _e(a,b,x){for(var E=b>x?-1:1;;){if(b==x)return b;var ee=(b+x)/2,oe=E<0?Math.ceil(ee):Math.floor(ee);if(oe==b)return a(oe)?b:x;a(oe)?x=oe:b=oe+E}}function ke(a,b,x,E){if(!a)return E(b,x,"ltr",0);for(var ee=!1,oe=0;oe<a.length;++oe){var de=a[oe];(de.from<x&&de.to>b||b==x&&de.to==b)&&(E(Math.max(de.from,b),Math.min(de.to,x),de.level==1?"rtl":"ltr",oe),ee=!0)}ee||E(b,x,"ltr")}var ot=null;function ht(a,b,x){var E;ot=null;for(var ee=0;ee<a.length;++ee){var oe=a[ee];if(oe.from<b&&oe.to>b)return ee;oe.to==b&&(oe.from!=oe.to&&x=="before"?E=ee:ot=ee),oe.from==b&&(oe.from!=oe.to&&x!="before"?E=ee:ot=ee)}return E!=null?E:ot}var wt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Ue){return Ue<=247?a.charAt(Ue):1424<=Ue&&Ue<=1524?"R":1536<=Ue&&Ue<=1785?b.charAt(Ue-1536):1774<=Ue&&Ue<=2220?"r":8192<=Ue&&Ue<=8203?"w":Ue==8204?"b":"L"}var E=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,oe=/[LRr]/,de=/[Lb1n]/,xe=/[1n]/;function Te(Ue,Xt,rn){this.level=Ue,this.from=Xt,this.to=rn}return function(Ue,Xt){var rn=Xt=="ltr"?"L":"R";if(Ue.length==0||Xt=="ltr"&&!E.test(Ue))return!1;for(var An=Ue.length,Dn=[],tr=0;tr<An;++tr)Dn.push(x(Ue.charCodeAt(tr)));for(var vr=0,Ir=rn;vr<An;++vr){var Gr=Dn[vr];Gr=="m"?Dn[vr]=Ir:Ir=Gr}for(var mo=0,Xr=rn;mo<An;++mo){var Do=Dn[mo];Do=="1"&&Xr=="r"?Dn[mo]="n":oe.test(Do)&&(Xr=Do,Do=="r"&&(Dn[mo]="R"))}for(var ii=1,Uo=Dn[0];ii<An-1;++ii){var Si=Dn[ii];Si=="+"&&Uo=="1"&&Dn[ii+1]=="1"?Dn[ii]="1":Si==","&&Uo==Dn[ii+1]&&(Uo=="1"||Uo=="n")&&(Dn[ii]=Uo),Uo=Si}for(var ca=0;ca<An;++ca){var Xa=Dn[ca];if(Xa==",")Dn[ca]="N";else if(Xa=="%"){var Pa=void 0;for(Pa=ca+1;Pa<An&&Dn[Pa]=="%";++Pa);for(var Pl=ca&&Dn[ca-1]=="!"||Pa<An&&Dn[Pa]=="1"?"1":"N",yl=ca;yl<Pa;++yl)Dn[yl]=Pl;ca=Pa-1}}for(var _a=0,bl=rn;_a<An;++_a){var nl=Dn[_a];bl=="L"&&nl=="1"?Dn[_a]="L":oe.test(nl)&&(bl=nl)}for(var za=0;za<An;++za)if(ee.test(Dn[za])){var $a=void 0;for($a=za+1;$a<An&&ee.test(Dn[$a]);++$a);for(var Aa=(za?Dn[za-1]:rn)=="L",Cl=($a<An?Dn[$a]:rn)=="L",Xs=Aa==Cl?Aa?"L":"R":rn,Ds=za;Ds<$a;++Ds)Dn[Ds]=Xs;za=$a-1}for(var ul=[],os,Ya=0;Ya<An;)if(de.test(Dn[Ya])){var Iu=Ya;for(++Ya;Ya<An&&de.test(Dn[Ya]);++Ya);ul.push(new Te(0,Iu,Ya))}else{var ys=Ya,Ts=ul.length,ks=Xt=="rtl"?1:0;for(++Ya;Ya<An&&Dn[Ya]!="L";++Ya);for(var ml=ys;ml<Ya;)if(xe.test(Dn[ml])){ys<ml&&(ul.splice(Ts,0,new Te(1,ys,ml)),Ts+=ks);var Ys=ml;for(++ml;ml<Ya&&xe.test(Dn[ml]);++ml);ul.splice(Ts,0,new Te(2,Ys,ml)),Ts+=ks,ys=ml}else++ml;ys<Ya&&ul.splice(Ts,0,new Te(1,ys,Ya))}return Xt=="ltr"&&(ul[0].level==1&&(os=Ue.match(/^\s+/))&&(ul[0].from=os[0].length,ul.unshift(new Te(0,0,os[0].length))),lt(ul).level==1&&(os=Ue.match(/\s+$/))&&(lt(ul).to-=os[0].length,ul.push(new Te(0,An-os[0].length,An)))),Xt=="rtl"?ul.reverse():ul}}();function Ze(a,b){var x=a.order;return x==null&&(x=a.order=wt(a.text,b)),x}var We=[],Mt=function(a,b,x){if(a.addEventListener)a.addEventListener(b,x,!1);else if(a.attachEvent)a.attachEvent("on"+b,x);else{var E=a._handlers||(a._handlers={});E[b]=(E[b]||We).concat(x)}};function Ut(a,b){return a._handlers&&a._handlers[b]||We}function cn(a,b,x){if(a.removeEventListener)a.removeEventListener(b,x,!1);else if(a.detachEvent)a.detachEvent("on"+b,x);else{var E=a._handlers,ee=E&&E[b];if(ee){var oe=Et(ee,x);oe>-1&&(E[b]=ee.slice(0,oe).concat(ee.slice(oe+1)))}}}function ln(a,b){var x=Ut(a,b);if(x.length)for(var E=Array.prototype.slice.call(arguments,2),ee=0;ee<x.length;++ee)x[ee].apply(null,E)}function _t(a,b,x){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),ln(a,x||b.type,a,b),on(b)||b.codemirrorIgnore}function fn(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),E=0;E<b.length;++E)Et(x,b[E])==-1&&x.push(b[E])}function qt(a,b){return Ut(a,b).length>0}function Ye(a){a.prototype.on=function(b,x){Mt(this,b,x)},a.prototype.off=function(b,x){cn(this,b,x)}}function Ot(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Jt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function on(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ge(a){Ot(a),Jt(a)}function Pt(a){return a.target||a.srcElement}function jt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Pe&&a.ctrlKey&&b==1&&(b=3),b}var vt=function(){if(ve&&me<9)return!1;var a=Je("div");return"draggable"in a||"dragDrop"in a}(),Lt;function Rt(a){if(Lt==null){var b=Je("span","\u200B");st(a,Je("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Lt=b.offsetWidth<=1&&b.offsetHeight>2&&!(ve&&me<8))}var x=Lt?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var sn;function Sn(a){if(sn!=null)return sn;var b=st(a,document.createTextNode("A\u062EA")),x=ge(b,0,1).getBoundingClientRect(),E=ge(b,1,2).getBoundingClientRect();return rt(a),!x||x.left==x.right?!1:sn=E.right-x.right<3}var un=`
b`.split(/\n/).length!=3?function(a){for(var b=0,x=[],E=a.length;b<=E;){var ee=a.indexOf(`
`,b);ee==-1&&(ee=a.length);var oe=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),de=oe.indexOf("\r");de!=-1?(x.push(oe.slice(0,de)),b+=de+1):(x.push(oe),b=ee+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Cn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(x){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Ct=function(){var a=Je("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),It=null;function Gt(a){if(It!=null)return It;var b=st(a,Je("span","x")),x=b.getBoundingClientRect(),E=ge(b,0,1).getBoundingClientRect();return It=Math.abs(x.left-E.left)>1}var tn={},Wt={};function mn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),tn[a]=b}function an(a,b){Wt[a]=b}function yn(a){if(typeof a=="string"&&Wt.hasOwnProperty(a))a=Wt[a];else if(a&&typeof a.name=="string"&&Wt.hasOwnProperty(a.name)){var b=Wt[a.name];typeof b=="string"&&(b={name:b}),a=ne(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return yn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return yn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jn(a,b){b=yn(b);var x=tn[b.name];if(!x)return jn(a,"text/plain");var E=x(a,b);if(Nn.hasOwnProperty(b.name)){var ee=Nn[b.name];for(var oe in ee)ee.hasOwnProperty(oe)&&(E.hasOwnProperty(oe)&&(E["_"+oe]=E[oe]),E[oe]=ee[oe])}if(E.name=b.name,b.helperType&&(E.helperType=b.helperType),b.modeProps)for(var de in b.modeProps)E[de]=b.modeProps[de];return E}var Nn={};function $n(a,b){var x=Nn.hasOwnProperty(a)?Nn[a]:Nn[a]={};Nt(b,x)}function Vn(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var x={};for(var E in b){var ee=b[E];ee instanceof Array&&(ee=ee.concat([])),x[E]=ee}return x}function Wn(a,b){for(var x;a.innerMode&&(x=a.innerMode(b),!(!x||x.mode==a));)b=x.state,a=x.mode;return x||{mode:a,state:b}}function ur(a,b,x){return a.startState?a.startState(b,x):!0}var rr=function(a,b,x){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};rr.prototype.eol=function(){return this.pos>=this.string.length},rr.prototype.sol=function(){return this.pos==this.lineStart},rr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rr.prototype.eat=function(a){var b=this.string.charAt(this.pos),x;if(typeof a=="string"?x=b==a:x=b&&(a.test?a.test(b):a(b)),x)return++this.pos,b},rr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},rr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},rr.prototype.skipToEnd=function(){this.pos=this.string.length},rr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},rr.prototype.backUp=function(a){this.pos-=a},rr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},rr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},rr.prototype.match=function(a,b,x){if(typeof a=="string"){var E=function(de){return x?de.toLowerCase():de},ee=this.string.substr(this.pos,a.length);if(E(ee)==E(a))return b!==!1&&(this.pos+=a.length),!0}else{var oe=this.string.slice(this.pos).match(a);return oe&&oe.index>0?null:(oe&&b!==!1&&(this.pos+=oe[0].length),oe)}},rr.prototype.current=function(){return this.string.slice(this.start,this.pos)},rr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},rr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},rr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function hn(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var x=a;!x.lines;)for(var E=0;;++E){var ee=x.children[E],oe=ee.chunkSize();if(b<oe){x=ee;break}b-=oe}return x.lines[b]}function Bn(a,b,x){var E=[],ee=b.line;return a.iter(b.line,x.line+1,function(oe){var de=oe.text;ee==x.line&&(de=de.slice(0,x.ch)),ee==b.line&&(de=de.slice(b.ch)),E.push(de),++ee}),E}function zn(a,b,x){var E=[];return a.iter(b,x,function(ee){E.push(ee.text)}),E}function Hn(a,b){var x=b-a.height;if(x)for(var E=a;E;E=E.parent)E.height+=x}function St(a){if(a.parent==null)return null;for(var b=a.parent,x=Et(b.lines,a),E=b.parent;E;b=E,E=E.parent)for(var ee=0;E.children[ee]!=b;++ee)x+=E.children[ee].chunkSize();return x+b.first}function $t(a,b){var x=a.first;e:do{for(var E=0;E<a.children.length;++E){var ee=a.children[E],oe=ee.height;if(b<oe){a=ee;continue e}b-=oe,x+=ee.chunkSize()}return x}while(!a.lines);for(var de=0;de<a.lines.length;++de){var xe=a.lines[de],Te=xe.height;if(b<Te)break;b-=Te}return x+de}function nt(a,b){return b>=a.first&&b<a.first+a.size}function Ft(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ke(a,b,x){if(x===void 0&&(x=null),!(this instanceof Ke))return new Ke(a,b,x);this.line=a,this.ch=b,this.sticky=x}function Tt(a,b){return a.line-b.line||a.ch-b.ch}function Yt(a,b){return a.sticky==b.sticky&&Tt(a,b)==0}function Rn(a){return Ke(a.line,a.ch)}function Zn(a,b){return Tt(a,b)<0?b:a}function yt(a,b){return Tt(a,b)<0?a:b}function xt(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Bt(a,b){if(b.line<a.first)return Ke(a.first,0);var x=a.first+a.size-1;return b.line>x?Ke(x,hn(a,x).text.length):At(b,hn(a,b.line).text.length)}function At(a,b){var x=a.ch;return x==null||x>b?Ke(a.line,b):x<0?Ke(a.line,0):a}function pn(a,b){for(var x=[],E=0;E<b.length;E++)x[E]=Bt(a,b[E]);return x}var Pn=function(a,b){this.state=a,this.lookAhead=b},In=function(a,b,x,E){this.state=b,this.doc=a,this.line=x,this.maxLookAhead=E||0,this.baseTokens=null,this.baseTokenPos=1};In.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},In.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},In.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},In.fromSaved=function(a,b,x){return b instanceof Pn?new In(a,Vn(a.mode,b.state),x,b.lookAhead):new In(a,Vn(a.mode,b),x)},In.prototype.save=function(a){var b=a!==!1?Vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pn(b,this.maxLookAhead):b};function Mn(a,b,x,E){var ee=[a.state.modeGen],oe={};br(a,b.text,a.doc.mode,x,function(Ue,Xt){return ee.push(Ue,Xt)},oe,E);for(var de=x.state,xe=function(Ue){x.baseTokens=ee;var Xt=a.state.overlays[Ue],rn=1,An=0;x.state=!0,br(a,b.text,Xt.mode,x,function(Dn,tr){for(var vr=rn;An<Dn;){var Ir=ee[rn];Ir>Dn&&ee.splice(rn,1,Dn,ee[rn+1],Ir),rn+=2,An=Math.min(Dn,Ir)}if(tr)if(Xt.opaque)ee.splice(vr,rn-vr,Dn,"overlay "+tr),rn=vr+2;else for(;vr<rn;vr+=2){var Gr=ee[vr+1];ee[vr+1]=(Gr?Gr+" ":"")+"overlay "+tr}},oe),x.state=de,x.baseTokens=null,x.baseTokenPos=1},Te=0;Te<a.state.overlays.length;++Te)xe(Te);return{styles:ee,classes:oe.bgClass||oe.textClass?oe:null}}function qn(a,b,x){if(!b.styles||b.styles[0]!=a.state.modeGen){var E=nr(a,St(b)),ee=b.text.length>a.options.maxHighlightLength&&Vn(a.doc.mode,E.state),oe=Mn(a,b,E);ee&&(E.state=ee),b.stateAfter=E.save(!ee),b.styles=oe.styles,oe.classes?b.styleClasses=oe.classes:b.styleClasses&&(b.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function nr(a,b,x){var E=a.doc,ee=a.display;if(!E.mode.startState)return new In(E,!0,b);var oe=Zr(a,b,x),de=oe>E.first&&hn(E,oe-1).stateAfter,xe=de?In.fromSaved(E,de,oe):new In(E,ur(E.mode),oe);return E.iter(oe,b,function(Te){ir(a,Te.text,xe);var Ue=xe.line;Te.stateAfter=Ue==b-1||Ue%5==0||Ue>=ee.viewFrom&&Ue<ee.viewTo?xe.save():null,xe.nextLine()}),x&&(E.modeFrontier=xe.line),xe}function ir(a,b,x,E){var ee=a.doc.mode,oe=new rr(b,a.options.tabSize,x);for(oe.start=oe.pos=E||0,b==""&&lr(ee,x.state);!oe.eol();)Qn(ee,oe,x.state),oe.start=oe.pos}function lr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var x=Wn(a,b);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Qn(a,b,x,E){for(var ee=0;ee<10;ee++){E&&(E[0]=Wn(a,x).mode);var oe=a.token(b,x);if(b.pos>b.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var ar=function(a,b,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=x};function fr(a,b,x,E){var ee=a.doc,oe=ee.mode,de;b=Bt(ee,b);var xe=hn(ee,b.line),Te=nr(a,b.line,x),Ue=new rr(xe.text,a.options.tabSize,Te),Xt;for(E&&(Xt=[]);(E||Ue.pos<b.ch)&&!Ue.eol();)Ue.start=Ue.pos,de=Qn(oe,Ue,Te.state),E&&Xt.push(new ar(Ue,de,Vn(ee.mode,Te.state)));return E?Xt:new ar(Ue,de,Te.state)}function Sr(a,b){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var E=x[1]?"bgClass":"textClass";b[E]==null?b[E]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(b[E])||(b[E]+=" "+x[2])}return a}function br(a,b,x,E,ee,oe,de){var xe=x.flattenSpans;xe==null&&(xe=a.options.flattenSpans);var Te=0,Ue=null,Xt=new rr(b,a.options.tabSize,E),rn,An=a.options.addModeClass&&[null];for(b==""&&Sr(lr(x,E.state),oe);!Xt.eol();){if(Xt.pos>a.options.maxHighlightLength?(xe=!1,de&&ir(a,b,E,Xt.pos),Xt.pos=b.length,rn=null):rn=Sr(Qn(x,Xt,E.state,An),oe),An){var Dn=An[0].name;Dn&&(rn="m-"+(rn?Dn+" "+rn:Dn))}if(!xe||Ue!=rn){for(;Te<Xt.start;)Te=Math.min(Xt.start,Te+5e3),ee(Te,Ue);Ue=rn}Xt.start=Xt.pos}for(;Te<Xt.pos;){var tr=Math.min(Xt.pos,Te+5e3);ee(tr,Ue),Te=tr}}function Zr(a,b,x){for(var E,ee,oe=a.doc,de=x?-1:b-(a.doc.mode.innerMode?1e3:100),xe=b;xe>de;--xe){if(xe<=oe.first)return oe.first;var Te=hn(oe,xe-1),Ue=Te.stateAfter;if(Ue&&(!x||xe+(Ue instanceof Pn?Ue.lookAhead:0)<=oe.modeFrontier))return xe;var Xt=Le(Te.text,null,a.options.tabSize);(ee==null||E>Xt)&&(ee=xe-1,E=Xt)}return ee}function jr(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var x=a.first,E=b-1;E>x;E--){var ee=hn(a,E).stateAfter;if(ee&&(!(ee instanceof Pn)||E+ee.lookAhead<b)){x=E+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var hr=!1,Nr=!1;function eo(){hr=!0}function Tr(){Nr=!0}function Pr(a,b,x){this.marker=a,this.from=b,this.to=x}function or(a,b){if(a)for(var x=0;x<a.length;++x){var E=a[x];if(E.marker==b)return E}}function Ur(a,b){for(var x,E=0;E<a.length;++E)a[E]!=b&&(x||(x=[])).push(a[E]);return x}function Rr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Br(a,b,x){var E;if(a)for(var ee=0;ee<a.length;++ee){var oe=a[ee],de=oe.marker,xe=oe.from==null||(de.inclusiveLeft?oe.from<=b:oe.from<b);if(xe||oe.from==b&&de.type=="bookmark"&&(!x||!oe.marker.insertLeft)){var Te=oe.to==null||(de.inclusiveRight?oe.to>=b:oe.to>b);(E||(E=[])).push(new Pr(de,oe.from,Te?null:oe.to))}}return E}function Cr(a,b,x){var E;if(a)for(var ee=0;ee<a.length;++ee){var oe=a[ee],de=oe.marker,xe=oe.to==null||(de.inclusiveRight?oe.to>=b:oe.to>b);if(xe||oe.from==b&&de.type=="bookmark"&&(!x||oe.marker.insertLeft)){var Te=oe.from==null||(de.inclusiveLeft?oe.from<=b:oe.from<b);(E||(E=[])).push(new Pr(de,Te?null:oe.from-b,oe.to==null?null:oe.to-b))}}return E}function so(a,b){if(b.full)return null;var x=nt(a,b.from.line)&&hn(a,b.from.line).markedSpans,E=nt(a,b.to.line)&&hn(a,b.to.line).markedSpans;if(!x&&!E)return null;var ee=b.from.ch,oe=b.to.ch,de=Tt(b.from,b.to)==0,xe=Br(x,ee,de),Te=Cr(E,oe,de),Ue=b.text.length==1,Xt=lt(b.text).length+(Ue?ee:0);if(xe)for(var rn=0;rn<xe.length;++rn){var An=xe[rn];if(An.to==null){var Dn=or(Te,An.marker);Dn?Ue&&(An.to=Dn.to==null?null:Dn.to+Xt):An.to=ee}}if(Te)for(var tr=0;tr<Te.length;++tr){var vr=Te[tr];if(vr.to!=null&&(vr.to+=Xt),vr.from==null){var Ir=or(xe,vr.marker);Ir||(vr.from=Xt,Ue&&(xe||(xe=[])).push(vr))}else vr.from+=Xt,Ue&&(xe||(xe=[])).push(vr)}xe&&(xe=Ho(xe)),Te&&Te!=xe&&(Te=Ho(Te));var Gr=[xe];if(!Ue){var mo=b.text.length-2,Xr;if(mo>0&&xe)for(var Do=0;Do<xe.length;++Do)xe[Do].to==null&&(Xr||(Xr=[])).push(new Pr(xe[Do].marker,null,null));for(var ii=0;ii<mo;++ii)Gr.push(Xr);Gr.push(Te)}return Gr}function Ho(a){for(var b=0;b<a.length;++b){var x=a[b];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function ti(a,b,x){var E=null;if(a.iter(b.line,x.line+1,function(Dn){if(Dn.markedSpans)for(var tr=0;tr<Dn.markedSpans.length;++tr){var vr=Dn.markedSpans[tr].marker;vr.readOnly&&(!E||Et(E,vr)==-1)&&(E||(E=[])).push(vr)}}),!E)return null;for(var ee=[{from:b,to:x}],oe=0;oe<E.length;++oe)for(var de=E[oe],xe=de.find(0),Te=0;Te<ee.length;++Te){var Ue=ee[Te];if(!(Tt(Ue.to,xe.from)<0||Tt(Ue.from,xe.to)>0)){var Xt=[Te,1],rn=Tt(Ue.from,xe.from),An=Tt(Ue.to,xe.to);(rn<0||!de.inclusiveLeft&&!rn)&&Xt.push({from:Ue.from,to:xe.from}),(An>0||!de.inclusiveRight&&!An)&&Xt.push({from:xe.to,to:Ue.to}),ee.splice.apply(ee,Xt),Te+=Xt.length-3}}return ee}function Eo(a){var b=a.markedSpans;if(b){for(var x=0;x<b.length;++x)b[x].marker.detachLine(a);a.markedSpans=null}}function No(a,b){if(b){for(var x=0;x<b.length;++x)b[x].marker.attachLine(a);a.markedSpans=b}}function To(a){return a.inclusiveLeft?-1:0}function Xo(a){return a.inclusiveRight?1:0}function ko(a,b){var x=a.lines.length-b.lines.length;if(x!=0)return x;var E=a.find(),ee=b.find(),oe=Tt(E.from,ee.from)||To(a)-To(b);if(oe)return-oe;var de=Tt(E.to,ee.to)||Xo(a)-Xo(b);return de||b.id-a.id}function vo(a,b){var x=Nr&&a.markedSpans,E;if(x)for(var ee=void 0,oe=0;oe<x.length;++oe)ee=x[oe],ee.marker.collapsed&&(b?ee.from:ee.to)==null&&(!E||ko(E,ee.marker)<0)&&(E=ee.marker);return E}function dr(a){return vo(a,!0)}function Tn(a){return vo(a,!1)}function Gn(a,b){var x=Nr&&a.markedSpans,E;if(x)for(var ee=0;ee<x.length;++ee){var oe=x[ee];oe.marker.collapsed&&(oe.from==null||oe.from<b)&&(oe.to==null||oe.to>b)&&(!E||ko(E,oe.marker)<0)&&(E=oe.marker)}return E}function Yn(a,b,x,E,ee){var oe=hn(a,b),de=Nr&&oe.markedSpans;if(de)for(var xe=0;xe<de.length;++xe){var Te=de[xe];if(Te.marker.collapsed){var Ue=Te.marker.find(0),Xt=Tt(Ue.from,x)||To(Te.marker)-To(ee),rn=Tt(Ue.to,E)||Xo(Te.marker)-Xo(ee);if(!(Xt>=0&&rn<=0||Xt<=0&&rn>=0)&&(Xt<=0&&(Te.marker.inclusiveRight&&ee.inclusiveLeft?Tt(Ue.to,x)>=0:Tt(Ue.to,x)>0)||Xt>=0&&(Te.marker.inclusiveRight&&ee.inclusiveLeft?Tt(Ue.from,E)<=0:Tt(Ue.from,E)<0)))return!0}}}function Ln(a){for(var b;b=dr(a);)a=b.find(-1,!0).line;return a}function mr(a){for(var b;b=Tn(a);)a=b.find(1,!0).line;return a}function wr(a){for(var b,x;b=Tn(a);)a=b.find(1,!0).line,(x||(x=[])).push(a);return x}function Un(a,b){var x=hn(a,b),E=Ln(x);return x==E?b:St(E)}function Jn(a,b){if(b>a.lastLine())return b;var x=hn(a,b),E;if(!sr(a,x))return b;for(;E=Tn(x);)x=E.find(1,!0).line;return St(x)+1}function sr(a,b){var x=Nr&&b.markedSpans;if(x){for(var E=void 0,ee=0;ee<x.length;++ee)if(E=x[ee],!!E.marker.collapsed){if(E.from==null)return!0;if(!E.marker.widgetNode&&E.from==0&&E.marker.inclusiveLeft&&pr(a,b,E))return!0}}}function pr(a,b,x){if(x.to==null){var E=x.marker.find(1,!0);return pr(a,E.line,or(E.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==b.text.length)return!0;for(var ee=void 0,oe=0;oe<b.markedSpans.length;++oe)if(ee=b.markedSpans[oe],ee.marker.collapsed&&!ee.marker.widgetNode&&ee.from==x.to&&(ee.to==null||ee.to!=x.from)&&(ee.marker.inclusiveLeft||x.marker.inclusiveRight)&&pr(a,b,ee))return!0}function _r(a){a=Ln(a);for(var b=0,x=a.parent,E=0;E<x.lines.length;++E){var ee=x.lines[E];if(ee==a)break;b+=ee.height}for(var oe=x.parent;oe;x=oe,oe=x.parent)for(var de=0;de<oe.children.length;++de){var xe=oe.children[de];if(xe==x)break;b+=xe.height}return b}function Yr(a){if(a.height==0)return 0;for(var b=a.text.length,x,E=a;x=dr(E);){var ee=x.find(0,!0);E=ee.from.line,b+=ee.from.ch-ee.to.ch}for(E=a;x=Tn(E);){var oe=x.find(0,!0);b-=E.text.length-oe.from.ch,E=oe.to.line,b+=E.text.length-oe.to.ch}return b}function to(a){var b=a.display,x=a.doc;b.maxLine=hn(x,x.first),b.maxLineLength=Yr(b.maxLine),b.maxLineChanged=!0,x.iter(function(E){var ee=Yr(E);ee>b.maxLineLength&&(b.maxLineLength=ee,b.maxLine=E)})}var Po=function(a,b,x){this.text=a,No(this,b),this.height=x?x(this):1};Po.prototype.lineNo=function(){return St(this)},Ye(Po);function Mo(a,b,x,E){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Eo(a),No(a,x);var ee=E?E(a):1;ee!=a.height&&Hn(a,ee)}function Yo(a){a.parent=null,Eo(a)}var Jo={},ni={};function ri(a,b){if(!a||/^\s*$/.test(a))return null;var x=b.addModeClass?ni:Jo;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Mi(a,b){var x=et("span",null,null,pe?"padding-right: .1px":null),E={pre:et("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ee=0;ee<=(b.rest?b.rest.length:0);ee++){var oe=ee?b.rest[ee-1]:b.line,de=void 0;E.pos=0,E.addToken=Xi,Sn(a.display.measure)&&(de=Ze(oe,a.doc.direction))&&(E.addToken=ta(E.addToken,de)),E.map=[];var xe=b!=a.display.externalMeasured&&St(oe);co(oe,E,qn(a,oe,xe)),oe.styleClasses&&(oe.styleClasses.bgClass&&(E.bgClass=ft(oe.styleClasses.bgClass,E.bgClass||"")),oe.styleClasses.textClass&&(E.textClass=ft(oe.styleClasses.textClass,E.textClass||""))),E.map.length==0&&E.map.push(0,0,E.content.appendChild(Rt(a.display.measure))),ee==0?(b.measure.map=E.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(E.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(pe){var Te=E.content.lastChild;(/\bcm-tab\b/.test(Te.className)||Te.querySelector&&Te.querySelector(".cm-tab"))&&(E.content.className="cm-tab-wrap-hack")}return ln(a,"renderLine",a,b.line,E.pre),E.pre.className&&(E.textClass=ft(E.pre.className,E.textClass||"")),E}function $i(a){var b=Je("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Xi(a,b,x,E,ee,oe,de){if(b){var xe=a.splitSpaces?Yi(b,a.trailingSpace):b,Te=a.cm.state.specialChars,Ue=!1,Xt;if(!Te.test(b))a.col+=b.length,Xt=document.createTextNode(xe),a.map.push(a.pos,a.pos+b.length,Xt),ve&&me<9&&(Ue=!0),a.pos+=b.length;else{Xt=document.createDocumentFragment();for(var rn=0;;){Te.lastIndex=rn;var An=Te.exec(b),Dn=An?An.index-rn:b.length-rn;if(Dn){var tr=document.createTextNode(xe.slice(rn,rn+Dn));ve&&me<9?Xt.appendChild(Je("span",[tr])):Xt.appendChild(tr),a.map.push(a.pos,a.pos+Dn,tr),a.col+=Dn,a.pos+=Dn}if(!An)break;rn+=Dn+1;var vr=void 0;if(An[0]==" "){var Ir=a.cm.options.tabSize,Gr=Ir-a.col%Ir;vr=Xt.appendChild(Je("span",ct(Gr),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=Gr}else An[0]=="\r"||An[0]==`
`?(vr=Xt.appendChild(Je("span",An[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",An[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(An[0]),vr.setAttribute("cm-text",An[0]),ve&&me<9?Xt.appendChild(Je("span",[vr])):Xt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=xe.charCodeAt(b.length-1)==32,x||E||ee||Ue||oe||de){var mo=x||"";E&&(mo+=E),ee&&(mo+=ee);var Xr=Je("span",[Xt],mo,oe);if(de)for(var Do in de)de.hasOwnProperty(Do)&&Do!="style"&&Do!="class"&&Xr.setAttribute(Do,de[Do]);return a.content.appendChild(Xr)}a.content.appendChild(Xt)}}function Yi(a,b){if(a.length>1&&!/ /.test(a))return a;for(var x=b,E="",ee=0;ee<a.length;ee++){var oe=a.charAt(ee);oe==" "&&x&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(oe="\xA0"),E+=oe,x=oe==" "}return E}function ta(a,b){return function(x,E,ee,oe,de,xe,Te){ee=ee?ee+" cm-force-border":"cm-force-border";for(var Ue=x.pos,Xt=Ue+E.length;;){for(var rn=void 0,An=0;An<b.length&&(rn=b[An],!(rn.to>Ue&&rn.from<=Ue));An++);if(rn.to>=Xt)return a(x,E,ee,oe,de,xe,Te);a(x,E.slice(0,rn.to-Ue),ee,oe,null,xe,Te),oe=null,E=E.slice(rn.to-Ue),Ue=rn.to}}}function Lo(a,b,x,E){var ee=!E&&x.widgetNode;ee&&a.map.push(a.pos,a.pos+b,ee),!E&&a.cm.display.input.needsContentAttribute&&(ee||(ee=a.content.appendChild(document.createElement("span"))),ee.setAttribute("cm-marker",x.id)),ee&&(a.cm.display.input.setUneditable(ee),a.content.appendChild(ee)),a.pos+=b,a.trailingSpace=!1}function co(a,b,x){var E=a.markedSpans,ee=a.text,oe=0;if(!E){for(var de=1;de<x.length;de+=2)b.addToken(b,ee.slice(oe,oe=x[de]),ri(x[de+1],b.cm.options));return}for(var xe=ee.length,Te=0,Ue=1,Xt="",rn,An,Dn=0,tr,vr,Ir,Gr,mo;;){if(Dn==Te){tr=vr=Ir=An="",mo=null,Gr=null,Dn=1/0;for(var Xr=[],Do=void 0,ii=0;ii<E.length;++ii){var Uo=E[ii],Si=Uo.marker;if(Si.type=="bookmark"&&Uo.from==Te&&Si.widgetNode)Xr.push(Si);else if(Uo.from<=Te&&(Uo.to==null||Uo.to>Te||Si.collapsed&&Uo.to==Te&&Uo.from==Te)){if(Uo.to!=null&&Uo.to!=Te&&Dn>Uo.to&&(Dn=Uo.to,vr=""),Si.className&&(tr+=" "+Si.className),Si.css&&(An=(An?An+";":"")+Si.css),Si.startStyle&&Uo.from==Te&&(Ir+=" "+Si.startStyle),Si.endStyle&&Uo.to==Dn&&(Do||(Do=[])).push(Si.endStyle,Uo.to),Si.title&&((mo||(mo={})).title=Si.title),Si.attributes)for(var ca in Si.attributes)(mo||(mo={}))[ca]=Si.attributes[ca];Si.collapsed&&(!Gr||ko(Gr.marker,Si)<0)&&(Gr=Uo)}else Uo.from>Te&&Dn>Uo.from&&(Dn=Uo.from)}if(Do)for(var Xa=0;Xa<Do.length;Xa+=2)Do[Xa+1]==Dn&&(vr+=" "+Do[Xa]);if(!Gr||Gr.from==Te)for(var Pa=0;Pa<Xr.length;++Pa)Lo(b,0,Xr[Pa]);if(Gr&&(Gr.from||0)==Te){if(Lo(b,(Gr.to==null?xe+1:Gr.to)-Te,Gr.marker,Gr.from==null),Gr.to==null)return;Gr.to==Te&&(Gr=!1)}}if(Te>=xe)break;for(var Pl=Math.min(xe,Dn);;){if(Xt){var yl=Te+Xt.length;if(!Gr){var _a=yl>Pl?Xt.slice(0,Pl-Te):Xt;b.addToken(b,_a,rn?rn+tr:tr,Ir,Te+_a.length==Dn?vr:"",An,mo)}if(yl>=Pl){Xt=Xt.slice(Pl-Te),Te=Pl;break}Te=yl,Ir=""}Xt=ee.slice(oe,oe=x[Ue++]),rn=ri(x[Ue++],b.cm.options)}}}function wi(a,b,x){this.line=b,this.rest=wr(b),this.size=this.rest?St(lt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=sr(a,b)}function wo(a,b,x){for(var E=[],ee,oe=b;oe<x;oe=ee){var de=new wi(a.doc,hn(a.doc,oe),oe);ee=oe+de.size,E.push(de)}return E}var aa=null;function Qa(a){aa?aa.ops.push(a):a.ownsGroup=aa={ops:[a],delayedCallbacks:[]}}function Ha(a){var b=a.delayedCallbacks,x=0;do{for(;x<b.length;x++)b[x].call(null);for(var E=0;E<a.ops.length;E++){var ee=a.ops[E];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(x<b.length)}function da(a,b){var x=a.ownsGroup;if(x)try{Ha(x)}finally{aa=null,b(x)}}var fa=null;function Ti(a,b){var x=Ut(a,b);if(x.length){var E=Array.prototype.slice.call(arguments,2),ee;aa?ee=aa.delayedCallbacks:fa?ee=fa:(ee=fa=[],setTimeout(ka,0));for(var oe=function(xe){ee.push(function(){return x[xe].apply(null,E)})},de=0;de<x.length;++de)oe(de)}}function ka(){var a=fa;fa=null;for(var b=0;b<a.length;++b)a[b]()}function rl(a,b,x,E){for(var ee=0;ee<b.changes.length;ee++){var oe=b.changes[ee];oe=="text"?El(a,b):oe=="gutter"?ai(a,b,x,E):oe=="class"?jo(a,b):oe=="widget"&&Ro(a,b,E)}b.changes=null}function Ja(a){return a.node==a.text&&(a.node=Je("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ve&&me<8&&(a.node.style.zIndex=2)),a.node}function la(a,b){var x=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),b.background)x?b.background.className=x:(b.background.parentNode.removeChild(b.background),b.background=null);else if(x){var E=Ja(b);b.background=E.insertBefore(Je("div",null,x),E.firstChild),a.display.input.setUneditable(b.background)}}function Fl(a,b){var x=a.display.externalMeasured;return x&&x.line==b.line?(a.display.externalMeasured=null,b.measure=x.measure,x.built):Mi(a,b)}function El(a,b){var x=b.text.className,E=Fl(a,b);b.text==b.node&&(b.node=E.pre),b.text.parentNode.replaceChild(E.pre,b.text),b.text=E.pre,E.bgClass!=b.bgClass||E.textClass!=b.textClass?(b.bgClass=E.bgClass,b.textClass=E.textClass,jo(a,b)):x&&(b.text.className=x)}function jo(a,b){la(a,b),b.line.wrapClass?Ja(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var x=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=x||""}function ai(a,b,x,E){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ee=Ja(b);b.gutterBackground=Je("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px; width: "+E.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ee.insertBefore(b.gutterBackground,b.text)}var oe=b.line.gutterMarkers;if(a.options.lineNumbers||oe){var de=Ja(b),xe=b.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px");if(a.display.input.setUneditable(xe),de.insertBefore(xe,b.text),b.line.gutterClass&&(xe.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!oe||!oe["CodeMirror-linenumbers"])&&(b.lineNumber=xe.appendChild(Je("div",Ft(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+E.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),oe)for(var Te=0;Te<a.display.gutterSpecs.length;++Te){var Ue=a.display.gutterSpecs[Te].className,Xt=oe.hasOwnProperty(Ue)&&oe[Ue];Xt&&xe.appendChild(Je("div",[Xt],"CodeMirror-gutter-elt","left: "+E.gutterLeft[Ue]+"px; width: "+E.gutterWidth[Ue]+"px"))}}}function Ro(a,b,x){b.alignable&&(b.alignable=null);for(var E=Xe("CodeMirror-linewidget"),ee=b.node.firstChild,oe=void 0;ee;ee=oe)oe=ee.nextSibling,E.test(ee.className)&&b.node.removeChild(ee);qo(a,b,x)}function Bo(a,b,x,E){var ee=Fl(a,b);return b.text=b.node=ee.pre,ee.bgClass&&(b.bgClass=ee.bgClass),ee.textClass&&(b.textClass=ee.textClass),jo(a,b),ai(a,b,x,E),qo(a,b,E),b.node}function qo(a,b,x){if(Bi(a,b.line,b,x,!0),b.rest)for(var E=0;E<b.rest.length;E++)Bi(a,b.rest[E],b,x,!1)}function Bi(a,b,x,E,ee){if(b.widgets)for(var oe=Ja(x),de=0,xe=b.widgets;de<xe.length;++de){var Te=xe[de],Ue=Je("div",[Te.node],"CodeMirror-linewidget"+(Te.className?" "+Te.className:""));Te.handleMouseEvents||Ue.setAttribute("cm-ignore-events","true"),Wa(Te,Ue,x,E),a.display.input.setUneditable(Ue),ee&&Te.above?oe.insertBefore(Ue,x.gutter||x.text):oe.appendChild(Ue),Ti(Te,"redraw")}}function Wa(a,b,x,E){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(b);var ee=E.wrapperWidth;b.style.left=E.fixedPos+"px",a.coverGutter||(ee-=E.gutterTotalWidth,b.style.paddingLeft=E.gutterTotalWidth+"px"),b.style.width=ee+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-E.gutterTotalWidth+"px"))}function zi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Qe(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+b.display.wrapper.clientWidth+"px;"),st(b.display.measure,Je("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Qi(a,b){for(var x=Pt(b);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function sa(a){return a.lineSpace.offsetTop}function cl(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function xl(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=st(a.measure,Je("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,E={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(E.left)&&!isNaN(E.right)&&(a.cachedPaddingH=E),E}function Va(a){return Zt-a.display.nativeBarWidth}function Sl(a){return a.display.scroller.clientWidth-Va(a)-a.display.barWidth}function kl(a){return a.display.scroller.clientHeight-Va(a)-a.display.barHeight}function dl(a,b,x){var E=a.options.lineWrapping,ee=E&&Sl(a);if(!b.measure.heights||E&&b.measure.width!=ee){var oe=b.measure.heights=[];if(E){b.measure.width=ee;for(var de=b.text.firstChild.getClientRects(),xe=0;xe<de.length-1;xe++){var Te=de[xe],Ue=de[xe+1];Math.abs(Te.bottom-Ue.bottom)>2&&oe.push((Te.bottom+Ue.top)/2-x.top)}}oe.push(x.bottom-x.top)}}function zl(a,b,x){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var E=0;E<a.rest.length;E++)if(a.rest[E]==b)return{map:a.measure.maps[E],cache:a.measure.caches[E]};for(var ee=0;ee<a.rest.length;ee++)if(St(a.rest[ee])>x)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function Ps(a,b){b=Ln(b);var x=St(b),E=a.display.externalMeasured=new wi(a.doc,b,x);E.lineN=x;var ee=E.built=Mi(a,E);return E.text=ee.pre,st(a.display.lineMeasure,ee.pre),E}function Gl(a,b,x,E){return fl(a,Ll(a,b),x,E)}function Ol(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[io(a,b)];var x=a.display.externalMeasured;if(x&&b>=x.lineN&&b<x.lineN+x.size)return x}function Ll(a,b){var x=St(b),E=Ol(a,x);E&&!E.text?E=null:E&&E.changes&&(rl(a,E,x,ho(a)),a.curOp.forceUpdate=!0),E||(E=Ps(a,b));var ee=zl(E,b,x);return{line:b,view:E,rect:null,map:ee.map,cache:ee.cache,before:ee.before,hasHeights:!1}}function fl(a,b,x,E,ee){b.before&&(x=-1);var oe=x+(E||""),de;return b.cache.hasOwnProperty(oe)?de=b.cache[oe]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(dl(a,b.view,b.rect),b.hasHeights=!0),de=Il(a,b,x,E),de.bogus||(b.cache[oe]=de)),{left:de.left,right:de.right,top:ee?de.rtop:de.top,bottom:ee?de.rbottom:de.bottom}}var is={left:0,right:0,top:0,bottom:0};function Xl(a,b,x){for(var E,ee,oe,de,xe,Te,Ue=0;Ue<a.length;Ue+=3)if(xe=a[Ue],Te=a[Ue+1],b<xe?(ee=0,oe=1,de="left"):b<Te?(ee=b-xe,oe=ee+1):(Ue==a.length-3||b==Te&&a[Ue+3]>b)&&(oe=Te-xe,ee=oe-1,b>=Te&&(de="right")),ee!=null){if(E=a[Ue+2],xe==Te&&x==(E.insertLeft?"left":"right")&&(de=x),x=="left"&&ee==0)for(;Ue&&a[Ue-2]==a[Ue-3]&&a[Ue-1].insertLeft;)E=a[(Ue-=3)+2],de="left";if(x=="right"&&ee==Te-xe)for(;Ue<a.length-3&&a[Ue+3]==a[Ue+4]&&!a[Ue+5].insertLeft;)E=a[(Ue+=3)+2],de="right";break}return{node:E,start:ee,end:oe,collapse:de,coverStart:xe,coverEnd:Te}}function bs(a,b){var x=is;if(b=="left")for(var E=0;E<a.length&&(x=a[E]).left==x.right;E++);else for(var ee=a.length-1;ee>=0&&(x=a[ee]).left==x.right;ee--);return x}function Il(a,b,x,E){var ee=Xl(b.map,x,E),oe=ee.node,de=ee.start,xe=ee.end,Te=ee.collapse,Ue;if(oe.nodeType==3){for(var Xt=0;Xt<4;Xt++){for(;de&&Me(b.line.text.charAt(ee.coverStart+de));)--de;for(;ee.coverStart+xe<ee.coverEnd&&Me(b.line.text.charAt(ee.coverStart+xe));)++xe;if(ve&&me<9&&de==0&&xe==ee.coverEnd-ee.coverStart?Ue=oe.parentNode.getBoundingClientRect():Ue=bs(ge(oe,de,xe).getClientRects(),E),Ue.left||Ue.right||de==0)break;xe=de,de=de-1,Te="right"}ve&&me<11&&(Ue=Ls(a.display.measure,Ue))}else{de>0&&(Te=E="right");var rn;a.options.lineWrapping&&(rn=oe.getClientRects()).length>1?Ue=rn[E=="right"?rn.length-1:0]:Ue=oe.getBoundingClientRect()}if(ve&&me<9&&!de&&(!Ue||!Ue.left&&!Ue.right)){var An=oe.parentNode.getClientRects()[0];An?Ue={left:An.left,right:An.left+_o(a.display),top:An.top,bottom:An.bottom}:Ue=is}for(var Dn=Ue.top-b.rect.top,tr=Ue.bottom-b.rect.top,vr=(Dn+tr)/2,Ir=b.view.measure.heights,Gr=0;Gr<Ir.length-1&&!(vr<Ir[Gr]);Gr++);var mo=Gr?Ir[Gr-1]:0,Xr=Ir[Gr],Do={left:(Te=="right"?Ue.right:Ue.left)-b.rect.left,right:(Te=="left"?Ue.left:Ue.right)-b.rect.left,top:mo,bottom:Xr};return!Ue.left&&!Ue.right&&(Do.bogus=!0),a.options.singleCursorHeightPerLine||(Do.rtop=Dn,Do.rbottom=tr),Do}function Ls(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gt(a))return b;var x=screen.logicalXDPI/screen.deviceXDPI,E=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*x,right:b.right*x,top:b.top*E,bottom:b.bottom*E}}function as(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function wl(a){a.display.externalMeasure=null,rt(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)as(a.display.view[b])}function Hl(a){wl(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Wl(){return be&&Oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ls(){return be&&Oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vl(a){var b=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(b+=zi(a.widgets[x]));return b}function Yl(a,b,x,E,ee){if(!ee){var oe=Vl(b);x.top+=oe,x.bottom+=oe}if(E=="line")return x;E||(E="local");var de=_r(b);if(E=="local"?de+=sa(a.display):de-=a.display.viewOffset,E=="page"||E=="window"){var xe=a.display.lineSpace.getBoundingClientRect();de+=xe.top+(E=="window"?0:ls());var Te=xe.left+(E=="window"?0:Wl());x.left+=Te,x.right+=Te}return x.top+=de,x.bottom+=de,x}function ol(a,b,x){if(x=="div")return b;var E=b.left,ee=b.top;if(x=="page")E-=Wl(),ee-=ls();else if(x=="local"||!x){var oe=a.display.sizer.getBoundingClientRect();E+=oe.left,ee+=oe.top}var de=a.display.lineSpace.getBoundingClientRect();return{left:E-de.left,top:ee-de.top}}function qa(a,b,x,E,ee){return E||(E=hn(a.doc,b.line)),Yl(a,E,Gl(a,E,b.ch,ee),x)}function Zi(a,b,x,E,ee,oe){E=E||hn(a.doc,b.line),ee||(ee=Ll(a,E));function de(tr,vr){var Ir=fl(a,ee,tr,vr?"right":"left",oe);return vr?Ir.left=Ir.right:Ir.right=Ir.left,Yl(a,E,Ir,x)}var xe=Ze(E,a.doc.direction),Te=b.ch,Ue=b.sticky;if(Te>=E.text.length?(Te=E.text.length,Ue="before"):Te<=0&&(Te=0,Ue="after"),!xe)return de(Ue=="before"?Te-1:Te,Ue=="before");function Xt(tr,vr,Ir){var Gr=xe[vr],mo=Gr.level==1;return de(Ir?tr-1:tr,mo!=Ir)}var rn=ht(xe,Te,Ue),An=ot,Dn=Xt(Te,rn,Ue=="before");return An!=null&&(Dn.other=Xt(Te,An,Ue!="before")),Dn}function yi(a,b){var x=0;b=Bt(a.doc,b),a.options.lineWrapping||(x=_o(a.display)*b.ch);var E=hn(a.doc,b.line),ee=_r(E)+sa(a.display);return{left:x,right:x,top:ee,bottom:ee+E.height}}function ci(a,b,x,E,ee){var oe=Ke(a,b,x);return oe.xRel=ee,E&&(oe.outside=E),oe}function bt(a,b,x){var E=a.doc;if(x+=a.display.viewOffset,x<0)return ci(E.first,0,null,-1,-1);var ee=$t(E,x),oe=E.first+E.size-1;if(ee>oe)return ci(E.first+E.size-1,hn(E,oe).text.length,null,1,1);b<0&&(b=0);for(var de=hn(E,ee);;){var xe=go(a,de,ee,b,x),Te=Gn(de,xe.ch+(xe.xRel>0||xe.outside>0?1:0));if(!Te)return xe;var Ue=Te.find(1);if(Ue.line==ee)return Ue;de=hn(E,ee=Ue.line)}}function Ht(a,b,x,E){E-=Vl(b);var ee=b.text.length,oe=_e(function(de){return fl(a,x,de-1).bottom<=E},ee,0);return ee=_e(function(de){return fl(a,x,de).top>E},oe,ee),{begin:oe,end:ee}}function Qt(a,b,x,E){x||(x=Ll(a,b));var ee=Yl(a,b,fl(a,x,E),"line").top;return Ht(a,b,x,ee)}function gn(a,b,x,E){return a.bottom<=x?!1:a.top>x?!0:(E?a.left:a.right)>b}function go(a,b,x,E,ee){ee-=_r(b);var oe=Ll(a,b),de=Vl(b),xe=0,Te=b.text.length,Ue=!0,Xt=Ze(b,a.doc.direction);if(Xt){var rn=(a.options.lineWrapping?fo:Kr)(a,b,x,oe,Xt,E,ee);Ue=rn.level!=1,xe=Ue?rn.from:rn.to-1,Te=Ue?rn.to:rn.from-1}var An=null,Dn=null,tr=_e(function(ii){var Uo=fl(a,oe,ii);return Uo.top+=de,Uo.bottom+=de,gn(Uo,E,ee,!1)?(Uo.top<=ee&&Uo.left<=E&&(An=ii,Dn=Uo),!0):!1},xe,Te),vr,Ir,Gr=!1;if(Dn){var mo=E-Dn.left<Dn.right-E,Xr=mo==Ue;tr=An+(Xr?0:1),Ir=Xr?"after":"before",vr=mo?Dn.left:Dn.right}else{!Ue&&(tr==Te||tr==xe)&&tr++,Ir=tr==0?"after":tr==b.text.length?"before":fl(a,oe,tr-(Ue?1:0)).bottom+de<=ee==Ue?"after":"before";var Do=Zi(a,Ke(x,tr,Ir),"line",b,oe);vr=Do.left,Gr=ee<Do.top?-1:ee>=Do.bottom?1:0}return tr=gt(b.text,tr,1),ci(x,tr,Ir,Gr,E-vr)}function Kr(a,b,x,E,ee,oe,de){var xe=_e(function(rn){var An=ee[rn],Dn=An.level!=1;return gn(Zi(a,Ke(x,Dn?An.to:An.from,Dn?"before":"after"),"line",b,E),oe,de,!0)},0,ee.length-1),Te=ee[xe];if(xe>0){var Ue=Te.level!=1,Xt=Zi(a,Ke(x,Ue?Te.from:Te.to,Ue?"after":"before"),"line",b,E);gn(Xt,oe,de,!0)&&Xt.top>de&&(Te=ee[xe-1])}return Te}function fo(a,b,x,E,ee,oe,de){var xe=Ht(a,b,E,de),Te=xe.begin,Ue=xe.end;/\s/.test(b.text.charAt(Ue-1))&&Ue--;for(var Xt=null,rn=null,An=0;An<ee.length;An++){var Dn=ee[An];if(!(Dn.from>=Ue||Dn.to<=Te)){var tr=Dn.level!=1,vr=fl(a,E,tr?Math.min(Ue,Dn.to)-1:Math.max(Te,Dn.from)).right,Ir=vr<oe?oe-vr+1e9:vr-oe;(!Xt||rn>Ir)&&(Xt=Dn,rn=Ir)}}return Xt||(Xt=ee[ee.length-1]),Xt.from<Te&&(Xt={from:Te,to:Xt.to,level:Xt.level}),Xt.to>Ue&&(Xt={from:Xt.from,to:Ue,level:Xt.level}),Xt}var Fr;function Vr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Fr==null){Fr=Je("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Fr.appendChild(document.createTextNode("x")),Fr.appendChild(Je("br"));Fr.appendChild(document.createTextNode("x"))}st(a.measure,Fr);var x=Fr.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),rt(a.measure),x||1}function _o(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=Je("span","xxxxxxxxxx"),x=Je("pre",[b],"CodeMirror-line-like");st(a.measure,x);var E=b.getBoundingClientRect(),ee=(E.right-E.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function ho(a){for(var b=a.display,x={},E={},ee=b.gutters.clientLeft,oe=b.gutters.firstChild,de=0;oe;oe=oe.nextSibling,++de){var xe=a.display.gutterSpecs[de].className;x[xe]=oe.offsetLeft+oe.clientLeft+ee,E[xe]=oe.clientWidth}return{fixedPos:oi(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:x,gutterWidth:E,wrapperWidth:b.wrapper.clientWidth}}function oi(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function pi(a){var b=Vr(a.display),x=a.options.lineWrapping,E=x&&Math.max(5,a.display.scroller.clientWidth/_o(a.display)-3);return function(ee){if(sr(a.doc,ee))return 0;var oe=0;if(ee.widgets)for(var de=0;de<ee.widgets.length;de++)ee.widgets[de].height&&(oe+=ee.widgets[de].height);return x?oe+(Math.ceil(ee.text.length/E)||1)*b:oe+b}}function Qo(a){var b=a.doc,x=pi(a);b.iter(function(E){var ee=x(E);ee!=E.height&&Hn(E,ee)})}function gr(a,b,x,E){var ee=a.display;if(!x&&Pt(b).getAttribute("cm-not-content")=="true")return null;var oe,de,xe=ee.lineSpace.getBoundingClientRect();try{oe=b.clientX-xe.left,de=b.clientY-xe.top}catch(rn){return null}var Te=bt(a,oe,de),Ue;if(E&&Te.xRel>0&&(Ue=hn(a.doc,Te.line).text).length==Te.ch){var Xt=Le(Ue,Ue.length,a.options.tabSize)-Ue.length;Te=Ke(Te.line,Math.max(0,Math.round((oe-xl(a.display).left)/_o(a.display))-Xt))}return Te}function io(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var x=a.display.view,E=0;E<x.length;E++)if(b-=x[E].size,b<0)return E}function yo(a,b,x,E){b==null&&(b=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),E||(E=0);var ee=a.display;if(E&&x<ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>b)&&(ee.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ee.viewTo)Nr&&Un(a.doc,b)<ee.viewTo&&zr(a);else if(x<=ee.viewFrom)Nr&&Jn(a.doc,x+E)>ee.viewFrom?zr(a):(ee.viewFrom+=E,ee.viewTo+=E);else if(b<=ee.viewFrom&&x>=ee.viewTo)zr(a);else if(b<=ee.viewFrom){var oe=Go(a,x,x+E,1);oe?(ee.view=ee.view.slice(oe.index),ee.viewFrom=oe.lineN,ee.viewTo+=E):zr(a)}else if(x>=ee.viewTo){var de=Go(a,b,b,-1);de?(ee.view=ee.view.slice(0,de.index),ee.viewTo=de.lineN):zr(a)}else{var xe=Go(a,b,b,-1),Te=Go(a,x,x+E,1);xe&&Te?(ee.view=ee.view.slice(0,xe.index).concat(wo(a,xe.lineN,Te.lineN)).concat(ee.view.slice(Te.index)),ee.viewTo+=E):zr(a)}var Ue=ee.externalMeasured;Ue&&(x<Ue.lineN?Ue.lineN+=E:b<Ue.lineN+Ue.size&&(ee.externalMeasured=null))}function Ao(a,b,x){a.curOp.viewChanged=!0;var E=a.display,ee=a.display.externalMeasured;if(ee&&b>=ee.lineN&&b<ee.lineN+ee.size&&(E.externalMeasured=null),!(b<E.viewFrom||b>=E.viewTo)){var oe=E.view[io(a,b)];if(oe.node!=null){var de=oe.changes||(oe.changes=[]);Et(de,x)==-1&&de.push(x)}}}function zr(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Go(a,b,x,E){var ee=io(a,b),oe,de=a.display.view;if(!Nr||x==a.doc.first+a.doc.size)return{index:ee,lineN:x};for(var xe=a.display.viewFrom,Te=0;Te<ee;Te++)xe+=de[Te].size;if(xe!=b){if(E>0){if(ee==de.length-1)return null;oe=xe+de[ee].size-b,ee++}else oe=xe-b;b+=oe,x+=oe}for(;Un(a.doc,x)!=x;){if(ee==(E<0?0:de.length-1))return null;x+=E*de[ee-(E<0?1:0)].size,ee+=E}return{index:ee,lineN:x}}function fi(a,b,x){var E=a.display,ee=E.view;ee.length==0||b>=E.viewTo||x<=E.viewFrom?(E.view=wo(a,b,x),E.viewFrom=b):(E.viewFrom>b?E.view=wo(a,b,E.viewFrom).concat(E.view):E.viewFrom<b&&(E.view=E.view.slice(io(a,b))),E.viewFrom=b,E.viewTo<x?E.view=E.view.concat(wo(a,E.viewTo,x)):E.viewTo>x&&(E.view=E.view.slice(0,io(a,x)))),E.viewTo=x}function ao(a){for(var b=a.display.view,x=0,E=0;E<b.length;E++){var ee=b[E];!ee.hidden&&(!ee.node||ee.changes)&&++x}return x}function bo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Ar(a,b){b===void 0&&(b=!0);for(var x=a.doc,E={},ee=E.cursors=document.createDocumentFragment(),oe=E.selection=document.createDocumentFragment(),de=0;de<x.sel.ranges.length;de++)if(!(!b&&de==x.sel.primIndex)){var xe=x.sel.ranges[de];if(!(xe.from().line>=a.display.viewTo||xe.to().line<a.display.viewFrom)){var Te=xe.empty();(Te||a.options.showCursorWhenSelecting)&&no(a,xe.head,ee),Te||pa(a,xe,oe)}}return E}function no(a,b,x){var E=Zi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ee=x.appendChild(Je("div","\xA0","CodeMirror-cursor"));if(ee.style.left=E.left+"px",ee.style.top=E.top+"px",ee.style.height=Math.max(0,E.bottom-E.top)*a.options.cursorHeight+"px",E.other){var oe=x.appendChild(Je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));oe.style.display="",oe.style.left=E.other.left+"px",oe.style.top=E.other.top+"px",oe.style.height=(E.other.bottom-E.other.top)*.85+"px"}}function bi(a,b){return a.top-b.top||a.left-b.left}function pa(a,b,x){var E=a.display,ee=a.doc,oe=document.createDocumentFragment(),de=xl(a.display),xe=de.left,Te=Math.max(E.sizerWidth,Sl(a)-E.sizer.offsetLeft)-de.right,Ue=ee.direction=="ltr";function Xt(Xr,Do,ii,Uo){Do<0&&(Do=0),Do=Math.round(Do),Uo=Math.round(Uo),oe.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+Xr+`px;
top: `+Do+"px; width: "+(ii==null?Te-Xr:ii)+`px;
height: `+(Uo-Do)+"px"))}function rn(Xr,Do,ii){var Uo=hn(ee,Xr),Si=Uo.text.length,ca,Xa;function Pa(_a,bl){return qa(a,Ke(Xr,_a),"div",Uo,bl)}function Pl(_a,bl,nl){var za=Qt(a,Uo,null,_a),$a=bl=="ltr"==(nl=="after")?"left":"right",Aa=nl=="after"?za.begin:za.end-(/\s/.test(Uo.text.charAt(za.end-1))?2:1);return Pa(Aa,$a)[$a]}var yl=Ze(Uo,ee.direction);return ke(yl,Do||0,ii==null?Si:ii,function(_a,bl,nl,za){var $a=nl=="ltr",Aa=Pa(_a,$a?"left":"right"),Cl=Pa(bl-1,$a?"right":"left"),Xs=Do==null&&_a==0,Ds=ii==null&&bl==Si,ul=za==0,os=!yl||za==yl.length-1;if(Cl.top-Aa.top<=3){var Ya=(Ue?Xs:Ds)&&ul,Iu=(Ue?Ds:Xs)&&os,ys=Ya?xe:($a?Aa:Cl).left,Ts=Iu?Te:($a?Cl:Aa).right;Xt(ys,Aa.top,Ts-ys,Aa.bottom)}else{var ks,ml,Ys,Au;$a?(ks=Ue&&Xs&&ul?xe:Aa.left,ml=Ue?Te:Pl(_a,nl,"before"),Ys=Ue?xe:Pl(bl,nl,"after"),Au=Ue&&Ds&&os?Te:Cl.right):(ks=Ue?Pl(_a,nl,"before"):xe,ml=!Ue&&Xs&&ul?Te:Aa.right,Ys=!Ue&&Ds&&os?xe:Cl.left,Au=Ue?Pl(bl,nl,"after"):Te),Xt(ks,Aa.top,ml-ks,Aa.bottom),Aa.bottom<Cl.top&&Xt(xe,Aa.bottom,null,Cl.top),Xt(Ys,Cl.top,Au-Ys,Cl.bottom)}(!ca||bi(Aa,ca)<0)&&(ca=Aa),bi(Cl,ca)<0&&(ca=Cl),(!Xa||bi(Aa,Xa)<0)&&(Xa=Aa),bi(Cl,Xa)<0&&(Xa=Cl)}),{start:ca,end:Xa}}var An=b.from(),Dn=b.to();if(An.line==Dn.line)rn(An.line,An.ch,Dn.ch);else{var tr=hn(ee,An.line),vr=hn(ee,Dn.line),Ir=Ln(tr)==Ln(vr),Gr=rn(An.line,An.ch,Ir?tr.text.length+1:null).end,mo=rn(Dn.line,Ir?0:null,Dn.ch).start;Ir&&(Gr.top<mo.top-2?(Xt(Gr.right,Gr.top,null,Gr.bottom),Xt(xe,mo.top,mo.left,mo.bottom)):Xt(Gr.right,Gr.top,mo.left-Gr.right,Gr.bottom)),Gr.bottom<mo.top&&Xt(xe,Gr.bottom,null,mo.top)}x.appendChild(oe)}function Ji(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var x=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Fa(a),b.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function hl(a){a.state.focused||(a.display.input.focus(),Za(a))}function zo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Fa(a))},100)}function Za(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ln(a,"focus",a,b),a.state.focused=!0,se(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),pe&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ji(a))}function Fa(a,b){a.state.delayingBlurEvent||(a.state.focused&&(ln(a,"blur",a,b),a.state.focused=!1,He(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function cr(a){for(var b=a.display,x=b.lineDiv.offsetTop,E=0;E<b.view.length;E++){var ee=b.view[E],oe=a.options.lineWrapping,de=void 0,xe=0;if(!ee.hidden){if(ve&&me<8){var Te=ee.node.offsetTop+ee.node.offsetHeight;de=Te-x,x=Te}else{var Ue=ee.node.getBoundingClientRect();de=Ue.bottom-Ue.top,!oe&&ee.text.firstChild&&(xe=ee.text.firstChild.getBoundingClientRect().right-Ue.left-1)}var Xt=ee.line.height-de;if((Xt>.005||Xt<-.005)&&(Hn(ee.line,de),Ci(ee.line),ee.rest))for(var rn=0;rn<ee.rest.length;rn++)Ci(ee.rest[rn]);if(xe>a.display.sizerWidth){var An=Math.ceil(xe/_o(a.display));An>a.display.maxLineLength&&(a.display.maxLineLength=An,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function Ci(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var x=a.widgets[b],E=x.node.parentNode;E&&(x.height=E.offsetHeight)}}function Di(a,b,x){var E=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;E=Math.floor(E-sa(a));var ee=x&&x.bottom!=null?x.bottom:E+a.wrapper.clientHeight,oe=$t(b,E),de=$t(b,ee);if(x&&x.ensure){var xe=x.ensure.from.line,Te=x.ensure.to.line;xe<oe?(oe=xe,de=$t(b,_r(hn(b,xe))+a.wrapper.clientHeight)):Math.min(Te,b.lastLine())>=de&&(oe=$t(b,_r(hn(b,Te))-a.wrapper.clientHeight),de=Te)}return{from:oe,to:Math.max(de,oe+1)}}function Ei(a,b){if(!_t(a,"scrollCursorIntoView")){var x=a.display,E=x.sizer.getBoundingClientRect(),ee=null;if(b.top+E.top<0?ee=!0:b.bottom+E.top>(window.innerHeight||document.documentElement.clientHeight)&&(ee=!1),ee!=null&&!it){var oe=Je("div","\u200B",null,`position: absolute;
top: `+(b.top-x.viewOffset-sa(a.display))+`px;
height: `+(b.bottom-b.top+Va(a)+x.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(ee),a.display.lineSpace.removeChild(oe)}}}function wa(a,b,x,E){E==null&&(E=0);var ee;!a.options.lineWrapping&&b==x&&(b=b.ch?Ke(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,x=b.sticky=="before"?Ke(b.line,b.ch+1,"before"):b);for(var oe=0;oe<5;oe++){var de=!1,xe=Zi(a,b),Te=!x||x==b?xe:Zi(a,x);ee={left:Math.min(xe.left,Te.left),top:Math.min(xe.top,Te.top)-E,right:Math.max(xe.left,Te.left),bottom:Math.max(xe.bottom,Te.bottom)+E};var Ue=Jl(a,ee),Xt=a.doc.scrollTop,rn=a.doc.scrollLeft;if(Ue.scrollTop!=null&&(Es(a,Ue.scrollTop),Math.abs(a.doc.scrollTop-Xt)>1&&(de=!0)),Ue.scrollLeft!=null&&(ql(a,Ue.scrollLeft),Math.abs(a.doc.scrollLeft-rn)>1&&(de=!0)),!de)break}return ee}function Ql(a,b){var x=Jl(a,b);x.scrollTop!=null&&Es(a,x.scrollTop),x.scrollLeft!=null&&ql(a,x.scrollLeft)}function Jl(a,b){var x=a.display,E=Vr(a.display);b.top<0&&(b.top=0);var ee=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,oe=kl(a),de={};b.bottom-b.top>oe&&(b.bottom=b.top+oe);var xe=a.doc.height+cl(x),Te=b.top<E,Ue=b.bottom>xe-E;if(b.top<ee)de.scrollTop=Te?0:b.top;else if(b.bottom>ee+oe){var Xt=Math.min(b.top,(Ue?xe:b.bottom)-oe);Xt!=ee&&(de.scrollTop=Xt)}var rn=a.options.fixedGutter?0:x.gutters.offsetWidth,An=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-rn,Dn=Sl(a)-x.gutters.offsetWidth,tr=b.right-b.left>Dn;return tr&&(b.right=b.left+Dn),b.left<10?de.scrollLeft=0:b.left<An?de.scrollLeft=Math.max(0,b.left+rn-(tr?0:10)):b.right>Dn+An-3&&(de.scrollLeft=b.right+(tr?0:10)-Dn),de}function ss(a,b){b!=null&&(Nl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Al(a){Nl(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Rl(a,b,x){(b!=null||x!=null)&&Nl(a),b!=null&&(a.curOp.scrollLeft=b),x!=null&&(a.curOp.scrollTop=x)}function Cs(a,b){Nl(a),a.curOp.scrollToPos=b}function Nl(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var x=yi(a,b.from),E=yi(a,b.to);us(a,x,E,b.margin)}}function us(a,b,x,E){var ee=Jl(a,{left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-E,right:Math.max(b.right,x.right),bottom:Math.max(b.bottom,x.bottom)+E});Rl(a,ee.scrollLeft,ee.scrollTop)}function Es(a,b){Math.abs(a.doc.scrollTop-b)<2||(y||il(a,{top:b}),Rs(a,b,!0),y&&il(a),ki(a,100))}function Rs(a,b,x){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!x)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function ql(a,b,x,E){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!E)&&(a.doc.scrollLeft=b,mt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function cs(a){var b=a.display,x=b.gutters.offsetWidth,E=Math.round(a.doc.height+cl(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:E,scrollHeight:E+Va(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:x}}var es=function(a,b,x){this.cm=x;var E=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=ee.tabIndex=-1,a(E),a(ee),Mt(E,"scroll",function(){E.clientHeight&&b(E.scrollTop,"vertical")}),Mt(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,E=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=b?E+"px":"0";var ee=a.viewHeight-(b?E:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=x?E+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(x?E:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?E:0,bottom:b?E:0}},es.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},es.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},es.prototype.zeroWidthHack=function(){var a=Pe&&!Ae?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},es.prototype.enableZeroWidthBar=function(a,b,x){a.style.pointerEvents="auto";function E(){var ee=a.getBoundingClientRect(),oe=x=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);oe!=a?a.style.pointerEvents="none":b.set(1e3,E)}b.set(1e3,E)},es.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ds=function(){};ds.prototype.update=function(){return{bottom:0,right:0}},ds.prototype.setScrollLeft=function(){},ds.prototype.setScrollTop=function(){},ds.prototype.clear=function(){};function fs(a,b){b||(b=cs(a));var x=a.display.barWidth,E=a.display.barHeight;hs(a,b);for(var ee=0;ee<4&&x!=a.display.barWidth||E!=a.display.barHeight;ee++)x!=a.display.barWidth&&a.options.lineWrapping&&cr(a),hs(a,cs(a)),x=a.display.barWidth,E=a.display.barHeight}function hs(a,b){var x=a.display,E=x.scrollbars.update(b);x.sizer.style.paddingRight=(x.barWidth=E.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=E.bottom)+"px",x.heightForcer.style.borderBottom=E.bottom+"px solid transparent",E.right&&E.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=E.bottom+"px",x.scrollbarFiller.style.width=E.right+"px"):x.scrollbarFiller.style.display="",E.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=E.bottom+"px",x.gutterFiller.style.width=b.gutterWidth+"px"):x.gutterFiller.style.display=""}var Qs={native:es,null:ds};function _s(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&He(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Qs[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Mt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,x){x=="horizontal"?ql(a,b):Es(a,b)},a),a.display.scrollbars.addClass&&se(a.display.wrapper,a.display.scrollbars.addClass)}var mu=0;function _l(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++mu},Qa(a.curOp)}function Ml(a){var b=a.curOp;b&&da(b,function(x){for(var E=0;E<x.ops.length;E++)x.ops[E].cm.curOp=null;$s(x)})}function $s(a){for(var b=a.ops,x=0;x<b.length;x++)pu(b[x]);for(var E=0;E<b.length;E++)Js(b[E]);for(var ee=0;ee<b.length;ee++)xn(b[ee]);for(var oe=0;oe<b.length;oe++)kr(b[oe]);for(var de=0;de<b.length;de++)Wo(b[de])}function pu(a){var b=a.cm,x=b.display;Ri(b),a.updateMaxLine&&to(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new va(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Js(a){a.updatedDisplay=a.mustUpdate&&xo(a.cm,a.update)}function xn(a){var b=a.cm,x=b.display;a.updatedDisplay&&cr(b),a.barMeasure=cs(b),x.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Gl(b,x.maxLine,x.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Va(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Sl(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function kr(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&ql(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var x=a.focus&&a.focus==we();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=b.doc.height)&&fs(b,a.barMeasure),a.updatedDisplay&&Be(b,a.barMeasure),a.selectionChanged&&Ji(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),x&&hl(a.cm)}function Wo(a){var b=a.cm,x=b.display,E=b.doc;if(a.updatedDisplay&&ga(b,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Rs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&ql(b,a.scrollLeft,!0,!0),a.scrollToPos){var ee=wa(b,Bt(E,a.scrollToPos.from),Bt(E,a.scrollToPos.to),a.scrollToPos.margin);Ei(b,ee)}var oe=a.maybeHiddenMarkers,de=a.maybeUnhiddenMarkers;if(oe)for(var xe=0;xe<oe.length;++xe)oe[xe].lines.length||ln(oe[xe],"hide");if(de)for(var Te=0;Te<de.length;++Te)de[Te].lines.length&&ln(de[Te],"unhide");x.wrapper.offsetHeight&&(E.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&ln(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Lr(a,b){if(a.curOp)return b();_l(a);try{return b()}finally{Ml(a)}}function Xn(a,b){return function(){if(a.curOp)return b.apply(a,arguments);_l(a);try{return b.apply(a,arguments)}finally{Ml(a)}}}function $o(a){return function(){if(this.curOp)return a.apply(this,arguments);_l(this);try{return a.apply(this,arguments)}finally{Ml(this)}}}function Ko(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);_l(b);try{return a.apply(this,arguments)}finally{Ml(b)}}}function ki(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,tt(li,a))}function li(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,E=nr(a,b.highlightFrontier),ee=[];b.iter(E.line,Math.min(b.first+b.size,a.display.viewTo+500),function(oe){if(E.line>=a.display.viewFrom){var de=oe.styles,xe=oe.text.length>a.options.maxHighlightLength?Vn(b.mode,E.state):null,Te=Mn(a,oe,E,!0);xe&&(E.state=xe),oe.styles=Te.styles;var Ue=oe.styleClasses,Xt=Te.classes;Xt?oe.styleClasses=Xt:Ue&&(oe.styleClasses=null);for(var rn=!de||de.length!=oe.styles.length||Ue!=Xt&&(!Ue||!Xt||Ue.bgClass!=Xt.bgClass||Ue.textClass!=Xt.textClass),An=0;!rn&&An<de.length;++An)rn=de[An]!=oe.styles[An];rn&&ee.push(E.line),oe.stateAfter=E.save(),E.nextLine()}else oe.text.length<=a.options.maxHighlightLength&&ir(a,oe.text,E),oe.stateAfter=E.line%5==0?E.save():null,E.nextLine();if(+new Date>x)return ki(a,a.options.workDelay),!0}),b.highlightFrontier=E.line,b.modeFrontier=Math.max(b.modeFrontier,E.line),ee.length&&Lr(a,function(){for(var oe=0;oe<ee.length;oe++)Ao(a,ee[oe],"text")})}}var va=function(a,b,x){var E=a.display;this.viewport=b,this.visible=Di(E,a.doc,b),this.editorIsHidden=!E.wrapper.offsetWidth,this.wrapperHeight=E.wrapper.clientHeight,this.wrapperWidth=E.wrapper.clientWidth,this.oldDisplayWidth=Sl(a),this.force=x,this.dims=ho(a),this.events=[]};va.prototype.signal=function(a,b){qt(a,b)&&this.events.push(arguments)},va.prototype.finish=function(){for(var a=0;a<this.events.length;a++)ln.apply(null,this.events[a])};function Ri(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Va(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Va(a)+"px",b.scrollbarsClipped=!0)}function Bl(a){if(a.hasFocus())return null;var b=we();if(!b||!Qe(a.display.lineDiv,b))return null;var x={activeElt:b};if(window.getSelection){var E=window.getSelection();E.anchorNode&&E.extend&&Qe(a.display.lineDiv,E.anchorNode)&&(x.anchorNode=E.anchorNode,x.anchorOffset=E.anchorOffset,x.focusNode=E.focusNode,x.focusOffset=E.focusOffset)}return x}function ms(a){if(!(!a||!a.activeElt||a.activeElt==we())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Qe(document.body,a.anchorNode)&&Qe(document.body,a.focusNode))){var b=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),b.removeAllRanges(),b.addRange(x),b.extend(a.focusNode,a.focusOffset)}}function xo(a,b){var x=a.display,E=a.doc;if(b.editorIsHidden)return zr(a),!1;if(!b.force&&b.visible.from>=x.viewFrom&&b.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&ao(a)==0)return!1;Dt(a)&&(zr(a),b.dims=ho(a));var ee=E.first+E.size,oe=Math.max(b.visible.from-a.options.viewportMargin,E.first),de=Math.min(ee,b.visible.to+a.options.viewportMargin);x.viewFrom<oe&&oe-x.viewFrom<20&&(oe=Math.max(E.first,x.viewFrom)),x.viewTo>de&&x.viewTo-de<20&&(de=Math.min(ee,x.viewTo)),Nr&&(oe=Un(a.doc,oe),de=Jn(a.doc,de));var xe=oe!=x.viewFrom||de!=x.viewTo||x.lastWrapHeight!=b.wrapperHeight||x.lastWrapWidth!=b.wrapperWidth;fi(a,oe,de),x.viewOffset=_r(hn(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var Te=ao(a);if(!xe&&Te==0&&!b.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Ue=Bl(a);return Te>4&&(x.lineDiv.style.display="none"),La(a,x.updateLineNumbers,b.dims),Te>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,ms(Ue),rt(x.cursorDiv),rt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,xe&&(x.lastWrapHeight=b.wrapperHeight,x.lastWrapWidth=b.wrapperWidth,ki(a,400)),x.updateLineNumbers=null,!0}function ga(a,b){for(var x=b.viewport,E=!0;;E=!1){if(!E||!a.options.lineWrapping||b.oldDisplayWidth==Sl(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+cl(a.display)-kl(a),x.top)}),b.visible=Di(a.display,a.doc,x),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else E&&(b.visible=Di(a.display,a.doc,x));if(!xo(a,b))break;cr(a);var ee=cs(a);bo(a),fs(a,ee),Be(a,ee),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function il(a,b){var x=new va(a,b);if(xo(a,x)){cr(a),ga(a,x);var E=cs(a);bo(a),fs(a,E),Be(a,E),x.finish()}}function La(a,b,x){var E=a.display,ee=a.options.lineNumbers,oe=E.lineDiv,de=oe.firstChild;function xe(tr){var vr=tr.nextSibling;return pe&&Pe&&a.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),vr}for(var Te=E.view,Ue=E.viewFrom,Xt=0;Xt<Te.length;Xt++){var rn=Te[Xt];if(!rn.hidden)if(!rn.node||rn.node.parentNode!=oe){var An=Bo(a,rn,Ue,x);oe.insertBefore(An,de)}else{for(;de!=rn.node;)de=xe(de);var Dn=ee&&b!=null&&b<=Ue&&rn.lineNumber;rn.changes&&(Et(rn.changes,"gutter")>-1&&(Dn=!1),rl(a,rn,Ue,x)),Dn&&(rt(rn.lineNumber),rn.lineNumber.appendChild(document.createTextNode(Ft(a.options,Ue)))),de=rn.node.nextSibling}Ue+=rn.size}for(;de;)de=xe(de)}function De(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Be(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Va(a)+"px"}function mt(a){var b=a.display,x=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var E=oi(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ee=b.gutters.offsetWidth,oe=E+"px",de=0;de<x.length;de++)if(!x[de].hidden){a.options.fixedGutter&&(x[de].gutter&&(x[de].gutter.style.left=oe),x[de].gutterBackground&&(x[de].gutterBackground.style.left=oe));var xe=x[de].alignable;if(xe)for(var Te=0;Te<xe.length;Te++)xe[Te].style.left=oe}a.options.fixedGutter&&(b.gutters.style.left=E+ee+"px")}}function Dt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,x=Ft(a.options,b.first+b.size-1),E=a.display;if(x.length!=E.lineNumChars){var ee=E.measure.appendChild(Je("div",[Je("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),oe=ee.firstChild.offsetWidth,de=ee.offsetWidth-oe;return E.lineGutter.style.width="",E.lineNumInnerWidth=Math.max(oe,E.lineGutter.offsetWidth-de)+1,E.lineNumWidth=E.lineNumInnerWidth+de,E.lineNumChars=E.lineNumInnerWidth?x.length:-1,E.lineGutter.style.width=E.lineNumWidth+"px",De(a.display),!0}return!1}function Kt(a,b){for(var x=[],E=!1,ee=0;ee<a.length;ee++){var oe=a[ee],de=null;if(typeof oe!="string"&&(de=oe.style,oe=oe.className),oe=="CodeMirror-linenumbers")if(b)E=!0;else continue;x.push({className:oe,style:de})}return b&&!E&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function en(a){var b=a.gutters,x=a.gutterSpecs;rt(b),a.lineGutter=null;for(var E=0;E<x.length;++E){var ee=x[E],oe=ee.className,de=ee.style,xe=b.appendChild(Je("div",null,"CodeMirror-gutter "+oe));de&&(xe.style.cssText=de),oe=="CodeMirror-linenumbers"&&(a.lineGutter=xe,xe.style.width=(a.lineNumWidth||1)+"px")}b.style.display=x.length?"":"none",De(a)}function vn(a){en(a.display),yo(a),mt(a)}function dn(a,b,x,E){var ee=this;this.input=x,ee.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=et("div",null,"CodeMirror-code"),ee.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=Je("div",null,"CodeMirror-cursors"),ee.measure=Je("div",null,"CodeMirror-measure"),ee.lineMeasure=Je("div",null,"CodeMirror-measure"),ee.lineSpace=et("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var oe=et("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=Je("div",[oe],null,"position: relative"),ee.sizer=Je("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=Je("div",null,null,"position: absolute; height: "+Zt+"px; width: 1px;"),ee.gutters=Je("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=Je("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=Je("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),ve&&me<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!pe&&!(y&&Ee)&&(ee.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ee.wrapper):a(ee.wrapper)),ee.viewFrom=ee.viewTo=b.first,ee.reportedViewFrom=ee.reportedViewTo=b.first,ee.view=[],ee.renderedView=null,ee.externalMeasured=null,ee.viewOffset=0,ee.lastWrapHeight=ee.lastWrapWidth=0,ee.updateLineNumbers=null,ee.nativeBarWidth=ee.barHeight=ee.barWidth=0,ee.scrollbarsClipped=!1,ee.lineNumWidth=ee.lineNumInnerWidth=ee.lineNumChars=null,ee.alignWidgets=!1,ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.maxLine=null,ee.maxLineLength=0,ee.maxLineChanged=!1,ee.wheelDX=ee.wheelDY=ee.wheelStartX=ee.wheelStartY=null,ee.shift=!1,ee.selForContextMenu=null,ee.activeTouch=null,ee.gutterSpecs=Kt(E.gutters,E.lineNumbers),en(ee),x.init(ee)}var wn=0,bn=null;ve?bn=-.53:y?bn=15:be?bn=-.7:je&&(bn=-1/3);function Kn(a){var b=a.wheelDeltaX,x=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:b,y:x}}function _n(a){var b=Kn(a);return b.x*=bn,b.y*=bn,b}function kn(a,b){var x=Kn(b),E=x.x,ee=x.y,oe=a.display,de=oe.scroller,xe=de.scrollWidth>de.clientWidth,Te=de.scrollHeight>de.clientHeight;if(E&&xe||ee&&Te){if(ee&&Pe&&pe){e:for(var Ue=b.target,Xt=oe.view;Ue!=de;Ue=Ue.parentNode)for(var rn=0;rn<Xt.length;rn++)if(Xt[rn].node==Ue){a.display.currentWheelTarget=Ue;break e}}if(E&&!y&&!le&&bn!=null){ee&&Te&&Es(a,Math.max(0,de.scrollTop+ee*bn)),ql(a,Math.max(0,de.scrollLeft+E*bn)),(!ee||ee&&Te)&&Ot(b),oe.wheelStartX=null;return}if(ee&&bn!=null){var An=ee*bn,Dn=a.doc.scrollTop,tr=Dn+oe.wrapper.clientHeight;An<0?Dn=Math.max(0,Dn+An-50):tr=Math.min(a.doc.height,tr+An+50),il(a,{top:Dn,bottom:tr})}wn<20&&(oe.wheelStartX==null?(oe.wheelStartX=de.scrollLeft,oe.wheelStartY=de.scrollTop,oe.wheelDX=E,oe.wheelDY=ee,setTimeout(function(){if(oe.wheelStartX!=null){var vr=de.scrollLeft-oe.wheelStartX,Ir=de.scrollTop-oe.wheelStartY,Gr=Ir&&oe.wheelDY&&Ir/oe.wheelDY||vr&&oe.wheelDX&&vr/oe.wheelDX;oe.wheelStartX=oe.wheelStartY=null,Gr&&(bn=(bn*wn+Gr)/(wn+1),++wn)}},200)):(oe.wheelDX+=E,oe.wheelDY+=ee))}}var On=function(a,b){this.ranges=a,this.primIndex=b};On.prototype.primary=function(){return this.ranges[this.primIndex]},On.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var x=this.ranges[b],E=a.ranges[b];if(!Yt(x.anchor,E.anchor)||!Yt(x.head,E.head))return!1}return!0},On.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Fn(Rn(this.ranges[b].anchor),Rn(this.ranges[b].head));return new On(a,this.primIndex)},On.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},On.prototype.contains=function(a,b){b||(b=a);for(var x=0;x<this.ranges.length;x++){var E=this.ranges[x];if(Tt(b,E.from())>=0&&Tt(a,E.to())<=0)return x}return-1};var Fn=function(a,b){this.anchor=a,this.head=b};Fn.prototype.from=function(){return yt(this.anchor,this.head)},Fn.prototype.to=function(){return Zn(this.anchor,this.head)},Fn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yr(a,b,x){var E=a&&a.options.selectionsMayTouch,ee=b[x];b.sort(function(An,Dn){return Tt(An.from(),Dn.from())}),x=Et(b,ee);for(var oe=1;oe<b.length;oe++){var de=b[oe],xe=b[oe-1],Te=Tt(xe.to(),de.from());if(E&&!de.empty()?Te>0:Te>=0){var Ue=yt(xe.from(),de.from()),Xt=Zn(xe.to(),de.to()),rn=xe.empty()?de.from()==de.head:xe.from()==xe.head;oe<=x&&--x,b.splice(--oe,2,new Fn(rn?Xt:Ue,rn?Ue:Xt))}}return new On(b,x)}function er(a,b){return new On([new Fn(a,b||a)],0)}function Er(a){return a.text?Ke(a.from.line+a.text.length-1,lt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Dr(a,b){if(Tt(a,b.from)<0)return a;if(Tt(a,b.to)<=0)return Er(b);var x=a.line+b.text.length-(b.to.line-b.from.line)-1,E=a.ch;return a.line==b.to.line&&(E+=Er(b).ch-b.to.ch),Ke(x,E)}function xr(a,b){for(var x=[],E=0;E<a.sel.ranges.length;E++){var ee=a.sel.ranges[E];x.push(new Fn(Dr(ee.anchor,b),Dr(ee.head,b)))}return yr(a.cm,x,a.sel.primIndex)}function Mr(a,b,x){return a.line==b.line?Ke(x.line,a.ch-b.ch+x.ch):Ke(x.line+(a.line-b.line),a.ch)}function Wr(a,b,x){for(var E=[],ee=Ke(a.first,0),oe=ee,de=0;de<b.length;de++){var xe=b[de],Te=Mr(xe.from,ee,oe),Ue=Mr(Er(xe),ee,oe);if(ee=xe.to,oe=Ue,x=="around"){var Xt=a.sel.ranges[de],rn=Tt(Xt.head,Xt.anchor)<0;E[de]=new Fn(rn?Ue:Te,rn?Te:Ue)}else E[de]=new Fn(Te,Te)}return new On(E,a.sel.primIndex)}function ro(a){a.doc.mode=jn(a.options,a.doc.modeOption),Qr(a)}function Qr(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,ki(a,100),a.state.modeGen++,a.curOp&&yo(a)}function si(a,b){return b.from.ch==0&&b.to.ch==0&&lt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Oo(a,b,x,E){function ee(mo){return x?x[mo]:null}function oe(mo,Xr,Do){Mo(mo,Xr,Do,E),Ti(mo,"change",mo,b)}function de(mo,Xr){for(var Do=[],ii=mo;ii<Xr;++ii)Do.push(new Po(Ue[ii],ee(ii),E));return Do}var xe=b.from,Te=b.to,Ue=b.text,Xt=hn(a,xe.line),rn=hn(a,Te.line),An=lt(Ue),Dn=ee(Ue.length-1),tr=Te.line-xe.line;if(b.full)a.insert(0,de(0,Ue.length)),a.remove(Ue.length,a.size-Ue.length);else if(si(a,b)){var vr=de(0,Ue.length-1);oe(rn,rn.text,Dn),tr&&a.remove(xe.line,tr),vr.length&&a.insert(xe.line,vr)}else if(Xt==rn)if(Ue.length==1)oe(Xt,Xt.text.slice(0,xe.ch)+An+Xt.text.slice(Te.ch),Dn);else{var Ir=de(1,Ue.length-1);Ir.push(new Po(An+Xt.text.slice(Te.ch),Dn,E)),oe(Xt,Xt.text.slice(0,xe.ch)+Ue[0],ee(0)),a.insert(xe.line+1,Ir)}else if(Ue.length==1)oe(Xt,Xt.text.slice(0,xe.ch)+Ue[0]+rn.text.slice(Te.ch),ee(0)),a.remove(xe.line+1,tr);else{oe(Xt,Xt.text.slice(0,xe.ch)+Ue[0],ee(0)),oe(rn,An+rn.text.slice(Te.ch),Dn);var Gr=de(1,Ue.length-1);tr>1&&a.remove(xe.line+1,tr-1),a.insert(xe.line+1,Gr)}Ti(a,"change",a,b)}function Co(a,b,x){function E(ee,oe,de){if(ee.linked)for(var xe=0;xe<ee.linked.length;++xe){var Te=ee.linked[xe];if(Te.doc!=oe){var Ue=de&&Te.sharedHist;x&&!Ue||(b(Te.doc,Ue),E(Te.doc,ee,Ue))}}}E(a,null,!0)}function Vo(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,Qo(a),ro(a),oo(a),a.options.lineWrapping||to(a),a.options.mode=b.modeOption,yo(a)}function oo(a){(a.doc.direction=="rtl"?se:He)(a.display.lineDiv,"CodeMirror-rtl")}function lo(a){Lr(a,function(){oo(a),yo(a)})}function $r(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Or(a,b){var x={from:Rn(b.from),to:Er(b),text:Bn(a,b.from,b.to)};return ha(a,x,b.from.line,b.to.line+1),Co(a,function(E){return ha(E,x,b.from.line,b.to.line+1)},!0),x}function qr(a){for(;a.length;){var b=lt(a);if(b.ranges)a.pop();else break}}function uo(a,b){if(b)return qr(a.done),lt(a.done);if(a.done.length&&!lt(a.done).ranges)return lt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),lt(a.done)}function Io(a,b,x,E){var ee=a.history;ee.undone.length=0;var oe=+new Date,de,xe;if((ee.lastOp==E||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(de=uo(ee,ee.lastOp==E)))xe=lt(de.changes),Tt(b.from,b.to)==0&&Tt(b.from,xe.to)==0?xe.to=Er(b):de.changes.push(Or(a,b));else{var Te=lt(ee.done);for((!Te||!Te.ranges)&&hi(a.sel,ee.done),de={changes:[Or(a,b)],generation:ee.generation},ee.done.push(de);ee.done.length>ee.undoDepth;)ee.done.shift(),ee.done[0].ranges||ee.done.shift()}ee.done.push(x),ee.generation=++ee.maxGeneration,ee.lastModTime=ee.lastSelTime=oe,ee.lastOp=ee.lastSelOp=E,ee.lastOrigin=ee.lastSelOrigin=b.origin,xe||ln(a,"historyAdded")}function Hr(a,b,x,E){var ee=b.charAt(0);return ee=="*"||ee=="+"&&x.ranges.length==E.ranges.length&&x.somethingSelected()==E.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function di(a,b,x,E){var ee=a.history,oe=E&&E.origin;x==ee.lastSelOp||oe&&ee.lastSelOrigin==oe&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==oe||Hr(a,oe,lt(ee.done),b))?ee.done[ee.done.length-1]=b:hi(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=oe,ee.lastSelOp=x,E&&E.clearRedo!==!1&&qr(ee.undone)}function hi(a,b){var x=lt(b);x&&x.ranges&&x.equals(a)||b.push(a)}function ha(a,b,x,E){var ee=b["spans_"+a.id],oe=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,E),function(de){de.markedSpans&&((ee||(ee=b["spans_"+a.id]={}))[oe]=de.markedSpans),++oe})}function na(a){if(!a)return null;for(var b,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?b||(b=a.slice(0,x)):b&&b.push(a[x]);return b?b.length?b:null:a}function Vi(a,b){var x=b["spans_"+a.id];if(!x)return null;for(var E=[],ee=0;ee<b.text.length;++ee)E.push(na(x[ee]));return E}function ra(a,b){var x=Vi(a,b),E=so(a,b);if(!x)return E;if(!E)return x;for(var ee=0;ee<x.length;++ee){var oe=x[ee],de=E[ee];if(oe&&de)e:for(var xe=0;xe<de.length;++xe){for(var Te=de[xe],Ue=0;Ue<oe.length;++Ue)if(oe[Ue].marker==Te.marker)continue e;oe.push(Te)}else de&&(x[ee]=de)}return x}function ya(a,b,x){for(var E=[],ee=0;ee<a.length;++ee){var oe=a[ee];if(oe.ranges){E.push(x?On.prototype.deepCopy.call(oe):oe);continue}var de=oe.changes,xe=[];E.push({changes:xe});for(var Te=0;Te<de.length;++Te){var Ue=de[Te],Xt=void 0;if(xe.push({from:Ue.from,to:Ue.to,text:Ue.text}),b)for(var rn in Ue)(Xt=rn.match(/^spans_(\d+)$/))&&Et(b,Number(Xt[1]))>-1&&(lt(xe)[rn]=Ue[rn],delete Ue[rn])}}return E}function mi(a,b,x,E){if(E){var ee=a.anchor;if(x){var oe=Tt(b,ee)<0;oe!=Tt(x,ee)<0?(ee=b,b=x):oe!=Tt(b,x)<0&&(b=x)}return new Fn(ee,b)}else return new Fn(x||b,b)}function vi(a,b,x,E,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),Jr(a,new On([mi(a.sel.primary(),b,x,ee)],0),E)}function ba(a,b,x){for(var E=[],ee=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe<a.sel.ranges.length;oe++)E[oe]=mi(a.sel.ranges[oe],b[oe],null,ee);var de=yr(a.cm,E,a.sel.primIndex);Jr(a,de,x)}function Ba(a,b,x,E){var ee=a.sel.ranges.slice(0);ee[b]=x,Jr(a,yr(a.cm,ee,a.sel.primIndex),E)}function So(a,b,x,E){Jr(a,er(b,x),E)}function ei(a,b,x){var E={ranges:b.ranges,update:function(ee){this.ranges=[];for(var oe=0;oe<ee.length;oe++)this.ranges[oe]=new Fn(Bt(a,ee[oe].anchor),Bt(a,ee[oe].head))},origin:x&&x.origin};return ln(a,"beforeSelectionChange",a,E),a.cm&&ln(a.cm,"beforeSelectionChange",a.cm,E),E.ranges!=b.ranges?yr(a.cm,E.ranges,E.ranges.length-1):b}function po(a,b,x){var E=a.history.done,ee=lt(E);ee&&ee.ranges?(E[E.length-1]=b,xi(a,b,x)):Jr(a,b,x)}function Jr(a,b,x){xi(a,b,x),di(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function xi(a,b,x){(qt(a,"beforeSelectionChange")||a.cm&&qt(a.cm,"beforeSelectionChange"))&&(b=ei(a,b,x));var E=x&&x.bias||(Tt(b.primary().head,a.sel.primary().head)<0?-1:1);Ii(a,Hi(a,b,E,!0)),!(x&&x.scroll===!1)&&a.cm&&Al(a.cm)}function Ii(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,fn(a.cm)),Ti(a,"cursorActivity",a))}function qi(a){Ii(a,Hi(a,a.sel,null,!1))}function Hi(a,b,x,E){for(var ee,oe=0;oe<b.ranges.length;oe++){var de=b.ranges[oe],xe=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[oe],Te=Oa(a,de.anchor,xe&&xe.anchor,x,E),Ue=Oa(a,de.head,xe&&xe.head,x,E);(ee||Te!=de.anchor||Ue!=de.head)&&(ee||(ee=b.ranges.slice(0,oe)),ee[oe]=new Fn(Te,Ue))}return ee?yr(a.cm,ee,b.primIndex):b}function Ca(a,b,x,E,ee){var oe=hn(a,b.line);if(oe.markedSpans)for(var de=0;de<oe.markedSpans.length;++de){var xe=oe.markedSpans[de],Te=xe.marker,Ue="selectLeft"in Te?!Te.selectLeft:Te.inclusiveLeft,Xt="selectRight"in Te?!Te.selectRight:Te.inclusiveRight;if((xe.from==null||(Ue?xe.from<=b.ch:xe.from<b.ch))&&(xe.to==null||(Xt?xe.to>=b.ch:xe.to>b.ch))){if(ee&&(ln(Te,"beforeCursorEnter"),Te.explicitlyCleared))if(oe.markedSpans){--de;continue}else break;if(!Te.atomic)continue;if(x){var rn=Te.find(E<0?1:-1),An=void 0;if((E<0?Xt:Ue)&&(rn=Fo(a,rn,-E,rn&&rn.line==b.line?oe:null)),rn&&rn.line==b.line&&(An=Tt(rn,x))&&(E<0?An<0:An>0))return Ca(a,rn,b,E,ee)}var Dn=Te.find(E<0?-1:1);return(E<0?Ue:Xt)&&(Dn=Fo(a,Dn,E,Dn.line==b.line?oe:null)),Dn?Ca(a,Dn,b,E,ee):null}}return b}function Oa(a,b,x,E,ee){var oe=E||1,de=Ca(a,b,x,oe,ee)||!ee&&Ca(a,b,x,oe,!0)||Ca(a,b,x,-oe,ee)||!ee&&Ca(a,b,x,-oe,!0);return de||(a.cantEdit=!0,Ke(a.first,0))}function Fo(a,b,x,E){return x<0&&b.ch==0?b.line>a.first?Bt(a,Ke(b.line-1)):null:x>0&&b.ch==(E||hn(a,b.line)).text.length?b.line<a.first+a.size-1?Ke(b.line+1,0):null:new Ke(b.line,b.ch+x)}function Zo(a){a.setSelection(Ke(a.firstLine(),0),Ke(a.lastLine()),Ce)}function Ni(a,b,x){var E={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return E.canceled=!0}};return x&&(E.update=function(ee,oe,de,xe){ee&&(E.from=Bt(a,ee)),oe&&(E.to=Bt(a,oe)),de&&(E.text=de),xe!==void 0&&(E.origin=xe)}),ln(a,"beforeChange",a,E),a.cm&&ln(a.cm,"beforeChange",a.cm,E),E.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:E.from,to:E.to,text:E.text,origin:E.origin}}function ji(a,b,x){if(a.cm){if(!a.cm.curOp)return Xn(a.cm,ji)(a,b,x);if(a.cm.state.suppressEdits)return}if(!((qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"))&&(b=Ni(a,b,!0),!b))){var E=hr&&!x&&ti(a,b.from,b.to);if(E)for(var ee=E.length-1;ee>=0;--ee)_i(a,{from:E[ee].from,to:E[ee].to,text:ee?[""]:b.text,origin:b.origin});else _i(a,b)}}function _i(a,b){if(!(b.text.length==1&&b.text[0]==""&&Tt(b.from,b.to)==0)){var x=xr(a,b);Io(a,b,x,a.cm?a.cm.curOp.id:NaN),al(a,b,x,so(a,b));var E=[];Co(a,function(ee,oe){!oe&&Et(E,ee.history)==-1&&(Ia(ee.history,b),E.push(ee.history)),al(ee,b,null,so(ee,b))})}}function Na(a,b,x){var E=a.cm&&a.cm.state.suppressEdits;if(!(E&&!x)){for(var ee=a.history,oe,de=a.sel,xe=b=="undo"?ee.done:ee.undone,Te=b=="undo"?ee.undone:ee.done,Ue=0;Ue<xe.length&&(oe=xe[Ue],!(x?oe.ranges&&!oe.equals(a.sel):!oe.ranges));Ue++);if(Ue!=xe.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(oe=xe.pop(),oe.ranges){if(hi(oe,Te),x&&!oe.equals(a.sel)){Jr(a,oe,{clearRedo:!1});return}de=oe}else if(E){xe.push(oe);return}else break;var Xt=[];hi(de,Te),Te.push({changes:Xt,generation:ee.generation}),ee.generation=oe.generation||++ee.maxGeneration;for(var rn=qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"),An=function(vr){var Ir=oe.changes[vr];if(Ir.origin=b,rn&&!Ni(a,Ir,!1))return xe.length=0,{};Xt.push(Or(a,Ir));var Gr=vr?xr(a,Ir):lt(xe);al(a,Ir,Gr,ra(a,Ir)),!vr&&a.cm&&a.cm.scrollIntoView({from:Ir.from,to:Er(Ir)});var mo=[];Co(a,function(Xr,Do){!Do&&Et(mo,Xr.history)==-1&&(Ia(Xr.history,Ir),mo.push(Xr.history)),al(Xr,Ir,null,ra(Xr,Ir))})},Dn=oe.changes.length-1;Dn>=0;--Dn){var tr=An(Dn);if(tr)return tr.v}}}}function Ea(a,b){if(b!=0&&(a.first+=b,a.sel=new On(nn(a.sel.ranges,function(ee){return new Fn(Ke(ee.anchor.line+b,ee.anchor.ch),Ke(ee.head.line+b,ee.head.ch))}),a.sel.primIndex),a.cm)){yo(a.cm,a.first,a.first-b,b);for(var x=a.cm.display,E=x.viewFrom;E<x.viewTo;E++)Ao(a.cm,E,"gutter")}}function al(a,b,x,E){if(a.cm&&!a.cm.curOp)return Xn(a.cm,al)(a,b,x,E);if(b.to.line<a.first){Ea(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ee=b.text.length-1-(a.first-b.from.line);Ea(a,ee),b={from:Ke(a.first,0),to:Ke(b.to.line+ee,b.to.ch),text:[lt(b.text)],origin:b.origin}}var oe=a.lastLine();b.to.line>oe&&(b={from:b.from,to:Ke(oe,hn(a,oe).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Bn(a,b.from,b.to),x||(x=xr(a,b)),a.cm?oa(a.cm,b,E):Oo(a,b,E),xi(a,x,Ce),a.cantEdit&&Oa(a,Ke(a.firstLine(),0))&&(a.cantEdit=!1)}}function oa(a,b,x){var E=a.doc,ee=a.display,oe=b.from,de=b.to,xe=!1,Te=oe.line;a.options.lineWrapping||(Te=St(Ln(hn(E,oe.line))),E.iter(Te,de.line+1,function(Dn){if(Dn==ee.maxLine)return xe=!0,!0})),E.sel.contains(b.from,b.to)>-1&&fn(a),Oo(E,b,x,pi(a)),a.options.lineWrapping||(E.iter(Te,oe.line+b.text.length,function(Dn){var tr=Yr(Dn);tr>ee.maxLineLength&&(ee.maxLine=Dn,ee.maxLineLength=tr,ee.maxLineChanged=!0,xe=!1)}),xe&&(a.curOp.updateMaxLine=!0)),jr(E,oe.line),ki(a,400);var Ue=b.text.length-(de.line-oe.line)-1;b.full?yo(a):oe.line==de.line&&b.text.length==1&&!si(a.doc,b)?Ao(a,oe.line,"text"):yo(a,oe.line,de.line+1,Ue);var Xt=qt(a,"changes"),rn=qt(a,"change");if(rn||Xt){var An={from:oe,to:de,text:b.text,removed:b.removed,origin:b.origin};rn&&Ti(a,"change",a,An),Xt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(An)}a.display.selForContextMenu=null}function Pi(a,b,x,E,ee){var oe;E||(E=x),Tt(E,x)<0&&(oe=[E,x],x=oe[0],E=oe[1]),typeof b=="string"&&(b=a.splitLines(b)),ji(a,{from:x,to:E,text:b,origin:ee})}function Wi(a,b,x,E){x<a.line?a.line+=E:b<a.line&&(a.line=b,a.ch=0)}function Ki(a,b,x,E){for(var ee=0;ee<a.length;++ee){var oe=a[ee],de=!0;if(oe.ranges){oe.copied||(oe=a[ee]=oe.deepCopy(),oe.copied=!0);for(var xe=0;xe<oe.ranges.length;xe++)Wi(oe.ranges[xe].anchor,b,x,E),Wi(oe.ranges[xe].head,b,x,E);continue}for(var Te=0;Te<oe.changes.length;++Te){var Ue=oe.changes[Te];if(x<Ue.from.line)Ue.from=Ke(Ue.from.line+E,Ue.from.ch),Ue.to=Ke(Ue.to.line+E,Ue.to.ch);else if(b<=Ue.to.line){de=!1;break}}de||(a.splice(0,ee+1),ee=0)}}function Ia(a,b){var x=b.from.line,E=b.to.line,ee=b.text.length-(E-x)-1;Ki(a.done,x,E,ee),Ki(a.undone,x,E,ee)}function ma(a,b,x,E){var ee=b,oe=b;return typeof b=="number"?oe=hn(a,xt(a,b)):ee=St(b),ee==null?null:(E(oe,ee)&&a.cm&&Ao(a.cm,ee,x),oe)}function Fi(a){this.lines=a,this.parent=null;for(var b=0,x=0;x<a.length;++x)a[x].parent=this,b+=a[x].height;this.height=b}Fi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var x=a,E=a+b;x<E;++x){var ee=this.lines[x];this.height-=ee.height,Yo(ee),Ti(ee,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var E=0;E<b.length;++E)b[E].parent=this},iterN:function(a,b,x){for(var E=a+b;a<E;++a)if(x(this.lines[a]))return!0}};function ia(a){this.children=a;for(var b=0,x=0,E=0;E<a.length;++E){var ee=a[E];b+=ee.chunkSize(),x+=ee.height,ee.parent=this}this.size=b,this.height=x,this.parent=null}ia.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var x=0;x<this.children.length;++x){var E=this.children[x],ee=E.chunkSize();if(a<ee){var oe=Math.min(b,ee-a),de=E.height;if(E.removeInner(a,oe),this.height-=de-E.height,ee==oe&&(this.children.splice(x--,1),E.parent=null),(b-=oe)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Fi))){var xe=[];this.collapse(xe),this.children=[new Fi(xe)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,x){this.size+=b.length,this.height+=x;for(var E=0;E<this.children.length;++E){var ee=this.children[E],oe=ee.chunkSize();if(a<=oe){if(ee.insertInner(a,b,x),ee.lines&&ee.lines.length>50){for(var de=ee.lines.length%25+25,xe=de;xe<ee.lines.length;){var Te=new Fi(ee.lines.slice(xe,xe+=25));ee.height-=Te.height,this.children.splice(++E,0,Te),Te.parent=this}ee.lines=ee.lines.slice(0,de),this.maybeSpill()}break}a-=oe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),x=new ia(b);if(a.parent){a.size-=x.size,a.height-=x.height;var ee=Et(a.parent.children,a);a.parent.children.splice(ee+1,0,x)}else{var E=new ia(a.children);E.parent=a,a.children=[E,x],a=E}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,x){for(var E=0;E<this.children.length;++E){var ee=this.children[E],oe=ee.chunkSize();if(a<oe){var de=Math.min(b,oe-a);if(ee.iterN(a,de,x))return!0;if((b-=de)==0)break;a=0}else a-=oe}}};var Li=function(a,b,x){if(x)for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);this.doc=a,this.node=b};Li.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,x=this.line,E=St(x);if(!(E==null||!b)){for(var ee=0;ee<b.length;++ee)b[ee]==this&&b.splice(ee--,1);b.length||(x.widgets=null);var oe=zi(this);Hn(x,Math.max(0,x.height-oe)),a&&(Lr(a,function(){ja(a,x,-oe),Ao(a,E,"widget")}),Ti(a,"lineWidgetCleared",a,this,E))}},Li.prototype.changed=function(){var a=this,b=this.height,x=this.doc.cm,E=this.line;this.height=null;var ee=zi(this)-b;ee&&(sr(this.doc,E)||Hn(E,E.height+ee),x&&Lr(x,function(){x.curOp.forceUpdate=!0,ja(x,E,ee),Ti(x,"lineWidgetChanged",x,a,St(E))}))},Ye(Li);function ja(a,b,x){_r(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&ss(a,x)}function Da(a,b,x,E){var ee=new Li(a,x,E),oe=a.cm;return oe&&ee.noHScroll&&(oe.display.alignWidgets=!0),ma(a,b,"widget",function(de){var xe=de.widgets||(de.widgets=[]);if(ee.insertAt==null?xe.push(ee):xe.splice(Math.min(xe.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=de,oe&&!sr(a,de)){var Te=_r(de)<a.scrollTop;Hn(de,de.height+zi(ee)),Te&&ss(oe,ee.height),oe.curOp.forceUpdate=!0}return!0}),oe&&Ti(oe,"lineWidgetAdded",oe,ee,typeof b=="number"?b:St(b)),ee}var el=0,ll=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++el};ll.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&_l(a),qt(this,"clear")){var x=this.find();x&&Ti(this,"clear",x.from,x.to)}for(var E=null,ee=null,oe=0;oe<this.lines.length;++oe){var de=this.lines[oe],xe=or(de.markedSpans,this);a&&!this.collapsed?Ao(a,St(de),"text"):a&&(xe.to!=null&&(ee=St(de)),xe.from!=null&&(E=St(de))),de.markedSpans=Ur(de.markedSpans,xe),xe.from==null&&this.collapsed&&!sr(this.doc,de)&&a&&Hn(de,Vr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Te=0;Te<this.lines.length;++Te){var Ue=Ln(this.lines[Te]),Xt=Yr(Ue);Xt>a.display.maxLineLength&&(a.display.maxLine=Ue,a.display.maxLineLength=Xt,a.display.maxLineChanged=!0)}E!=null&&a&&this.collapsed&&yo(a,E,ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&qi(a.doc)),a&&Ti(a,"markerCleared",a,this,E,ee),b&&Ml(a),this.parent&&this.parent.clear()}},ll.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var x,E,ee=0;ee<this.lines.length;++ee){var oe=this.lines[ee],de=or(oe.markedSpans,this);if(de.from!=null&&(x=Ke(b?oe:St(oe),de.from),a==-1))return x;if(de.to!=null&&(E=Ke(b?oe:St(oe),de.to),a==1))return E}return x&&{from:x,to:E}},ll.prototype.changed=function(){var a=this,b=this.find(-1,!0),x=this,E=this.doc.cm;!b||!E||Lr(E,function(){var ee=b.line,oe=St(b.line),de=Ol(E,oe);if(de&&(as(de),E.curOp.selectionChanged=E.curOp.forceUpdate=!0),E.curOp.updateMaxLine=!0,!sr(x.doc,ee)&&x.height!=null){var xe=x.height;x.height=null;var Te=zi(x)-xe;Te&&Hn(ee,ee.height+Te)}Ti(E,"markerChanged",E,a)})},ll.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||Et(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ll.prototype.detachLine=function(a){if(this.lines.splice(Et(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Ye(ll);function $l(a,b,x,E,ee){if(E&&E.shared)return Fs(a,b,x,E,ee);if(a.cm&&!a.cm.curOp)return Xn(a.cm,$l)(a,b,x,E,ee);var oe=new ll(a,ee),de=Tt(b,x);if(E&&Nt(E,oe,!1),de>0||de==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=et("span",[oe.replacedWith],"CodeMirror-widget"),E.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),E.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Yn(a,b.line,b,x,oe)||b.line!=x.line&&Yn(a,x.line,b,x,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tr()}oe.addToHistory&&Io(a,{from:b,to:x,origin:"markText"},a.sel,NaN);var xe=b.line,Te=a.cm,Ue;if(a.iter(xe,x.line+1,function(rn){Te&&oe.collapsed&&!Te.options.lineWrapping&&Ln(rn)==Te.display.maxLine&&(Ue=!0),oe.collapsed&&xe!=b.line&&Hn(rn,0),Rr(rn,new Pr(oe,xe==b.line?b.ch:null,xe==x.line?x.ch:null)),++xe}),oe.collapsed&&a.iter(b.line,x.line+1,function(rn){sr(a,rn)&&Hn(rn,0)}),oe.clearOnEnter&&Mt(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(eo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++el,oe.atomic=!0),Te){if(Ue&&(Te.curOp.updateMaxLine=!0),oe.collapsed)yo(Te,b.line,x.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var Xt=b.line;Xt<=x.line;Xt++)Ao(Te,Xt,"text");oe.atomic&&qi(Te.doc),Ti(Te,"markerAdded",Te,oe)}return oe}var Ui=function(a,b){this.markers=a,this.primary=b;for(var x=0;x<a.length;++x)a[x].parent=this};Ui.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ti(this,"clear")}},Ui.prototype.find=function(a,b){return this.primary.find(a,b)},Ye(Ui);function Fs(a,b,x,E,ee){E=Nt(E),E.shared=!1;var oe=[$l(a,b,x,E,ee)],de=oe[0],xe=E.widgetNode;return Co(a,function(Te){xe&&(E.widgetNode=xe.cloneNode(!0)),oe.push($l(Te,Bt(Te,b),Bt(Te,x),E,ee));for(var Ue=0;Ue<Te.linked.length;++Ue)if(Te.linked[Ue].isParent)return;de=lt(oe)}),new Ui(oe,de)}function tl(a){return a.findMarks(Ke(a.first,0),a.clipPos(Ke(a.lastLine())),function(b){return b.parent})}function Dl(a,b){for(var x=0;x<b.length;x++){var E=b[x],ee=E.find(),oe=a.clipPos(ee.from),de=a.clipPos(ee.to);if(Tt(oe,de)){var xe=$l(a,oe,de,E.primary,E.primary.type);E.markers.push(xe),xe.parent=E}}}function pl(a){for(var b=function(E){var ee=a[E],oe=[ee.primary.doc];Co(ee.primary.doc,function(Te){return oe.push(Te)});for(var de=0;de<ee.markers.length;de++){var xe=ee.markers[de];Et(oe,xe.doc)==-1&&(xe.parent=null,ee.markers.splice(de--,1))}},x=0;x<a.length;x++)b(x)}var sl=0,Gi=function(a,b,x,E,ee){if(!(this instanceof Gi))return new Gi(a,b,x,E,ee);x==null&&(x=0),ia.call(this,[new Fi([new Po("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var oe=Ke(x,0);this.sel=er(oe),this.history=new $r(null),this.id=++sl,this.modeOption=b,this.lineSep=E,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Oo(this,{from:oe,to:oe,text:a}),Jr(this,er(oe),Ce)};Gi.prototype=ne(ia.prototype,{constructor:Gi,iter:function(a,b,x){x?this.iterN(a-this.first,b-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var x=0,E=0;E<b.length;++E)x+=b[E].height;this.insertInner(a-this.first,b,x)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=zn(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ko(function(a){var b=Ke(this.first,0),x=this.first+this.size-1;ji(this,{from:b,to:Ke(x,hn(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Rl(this.cm,0,0),Jr(this,er(b),Ce)}),replaceRange:function(a,b,x,E){b=Bt(this,b),x=x?Bt(this,x):b,Pi(this,a,b,x,E)},getRange:function(a,b,x){var E=Bn(this,Bt(this,a),Bt(this,b));return x===!1?E:E.join(x||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(nt(this,a))return hn(this,a)},getLineNumber:function(a){return St(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=hn(this,a)),Ln(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Bt(this,a)},getCursor:function(a){var b=this.sel.primary(),x;return a==null||a=="head"?x=b.head:a=="anchor"?x=b.anchor:a=="end"||a=="to"||a===!1?x=b.to():x=b.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(a,b,x){So(this,Bt(this,typeof a=="number"?Ke(a,b||0):a),null,x)}),setSelection:Ko(function(a,b,x){So(this,Bt(this,a),Bt(this,b||a),x)}),extendSelection:Ko(function(a,b,x){vi(this,Bt(this,a),b&&Bt(this,b),x)}),extendSelections:Ko(function(a,b){ba(this,pn(this,a),b)}),extendSelectionsBy:Ko(function(a,b){var x=nn(this.sel.ranges,a);ba(this,pn(this,x),b)}),setSelections:Ko(function(a,b,x){if(a.length){for(var E=[],ee=0;ee<a.length;ee++)E[ee]=new Fn(Bt(this,a[ee].anchor),Bt(this,a[ee].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Jr(this,yr(this.cm,E,b),x)}}),addSelection:Ko(function(a,b,x){var E=this.sel.ranges.slice(0);E.push(new Fn(Bt(this,a),Bt(this,b||a))),Jr(this,yr(this.cm,E,E.length-1),x)}),getSelection:function(a){for(var b=this.sel.ranges,x,E=0;E<b.length;E++){var ee=Bn(this,b[E].from(),b[E].to());x=x?x.concat(ee):ee}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],x=this.sel.ranges,E=0;E<x.length;E++){var ee=Bn(this,x[E].from(),x[E].to());a!==!1&&(ee=ee.join(a||this.lineSeparator())),b[E]=ee}return b},replaceSelection:function(a,b,x){for(var E=[],ee=0;ee<this.sel.ranges.length;ee++)E[ee]=a;this.replaceSelections(E,b,x||"+input")},replaceSelections:Ko(function(a,b,x){for(var E=[],ee=this.sel,oe=0;oe<ee.ranges.length;oe++){var de=ee.ranges[oe];E[oe]={from:de.from(),to:de.to(),text:this.splitLines(a[oe]),origin:x}}for(var xe=b&&b!="end"&&Wr(this,E,b),Te=E.length-1;Te>=0;Te--)ji(this,E[Te]);xe?po(this,xe):this.cm&&Al(this.cm)}),undo:Ko(function(){Na(this,"undo")}),redo:Ko(function(){Na(this,"redo")}),undoSelection:Ko(function(){Na(this,"undo",!0)}),redoSelection:Ko(function(){Na(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,x=0,E=0;E<a.done.length;E++)a.done[E].ranges||++b;for(var ee=0;ee<a.undone.length;ee++)a.undone[ee].ranges||++x;return{undo:b,redo:x}},clearHistory:function(){var a=this;this.history=new $r(this.history.maxGeneration),Co(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:ya(this.history.done),undone:ya(this.history.undone)}},setHistory:function(a){var b=this.history=new $r(this.history.maxGeneration);b.done=ya(a.done.slice(0),null,!0),b.undone=ya(a.undone.slice(0),null,!0)},setGutterMarker:Ko(function(a,b,x){return ma(this,a,"gutter",function(E){var ee=E.gutterMarkers||(E.gutterMarkers={});return ee[b]=x,!x&&re(ee)&&(E.gutterMarkers=null),!0})}),clearGutter:Ko(function(a){var b=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&ma(b,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!nt(this,a)||(b=a,a=hn(this,a),!a))return null}else if(b=St(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Ko(function(a,b,x){return ma(this,a,b=="gutter"?"gutter":"class",function(E){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!E[ee])E[ee]=x;else{if(Xe(x).test(E[ee]))return!1;E[ee]+=" "+x}return!0})}),removeLineClass:Ko(function(a,b,x){return ma(this,a,b=="gutter"?"gutter":"class",function(E){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",oe=E[ee];if(oe)if(x==null)E[ee]=null;else{var de=oe.match(Xe(x));if(!de)return!1;var xe=de.index+de[0].length;E[ee]=oe.slice(0,de.index)+(!de.index||xe==oe.length?"":" ")+oe.slice(xe)||null}else return!1;return!0})}),addLineWidget:Ko(function(a,b,x){return Da(this,a,b,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,x){return $l(this,Bt(this,a),Bt(this,b),x,x&&x.type||"range")},setBookmark:function(a,b){var x={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=Bt(this,a),$l(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Bt(this,a);var b=[],x=hn(this,a.line).markedSpans;if(x)for(var E=0;E<x.length;++E){var ee=x[E];(ee.from==null||ee.from<=a.ch)&&(ee.to==null||ee.to>=a.ch)&&b.push(ee.marker.parent||ee.marker)}return b},findMarks:function(a,b,x){a=Bt(this,a),b=Bt(this,b);var E=[],ee=a.line;return this.iter(a.line,b.line+1,function(oe){var de=oe.markedSpans;if(de)for(var xe=0;xe<de.length;xe++){var Te=de[xe];!(Te.to!=null&&ee==a.line&&a.ch>=Te.to||Te.from==null&&ee!=a.line||Te.from!=null&&ee==b.line&&Te.from>=b.ch)&&(!x||x(Te.marker))&&E.push(Te.marker.parent||Te.marker)}++ee}),E},getAllMarks:function(){var a=[];return this.iter(function(b){var x=b.markedSpans;if(x)for(var E=0;E<x.length;++E)x[E].from!=null&&a.push(x[E].marker)}),a},posFromIndex:function(a){var b,x=this.first,E=this.lineSeparator().length;return this.iter(function(ee){var oe=ee.text.length+E;if(oe>a)return b=a,!0;a-=oe,++x}),Bt(this,Ke(x,b))},indexFromPos:function(a){a=Bt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(E){b+=E.text.length+x}),b},copy:function(a){var b=new Gi(zn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,x=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<x&&(x=a.to);var E=new Gi(zn(this,b,x),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(E.history=this.history),(this.linked||(this.linked=[])).push({doc:E,sharedHist:a.sharedHist}),E.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Dl(E,tl(this)),E},unlinkDoc:function(a){if(a instanceof Sa&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var x=this.linked[b];if(x.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),pl(tl(this));break}}if(a.history==this.history){var E=[a.id];Co(a,function(ee){return E.push(ee.id)},!0),a.history=new $r(null),a.history.done=ya(this.history.done,E),a.history.undone=ya(this.history.undone,E)}},iterLinkedDocs:function(a){Co(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):un(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ko(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&lo(this.cm))})}),Gi.prototype.eachLine=Gi.prototype.iter;var vl=0;function ts(a){var b=this;if(Zs(b),!(_t(b,a)||Qi(b.display,a))){Ot(a),ve&&(vl=+new Date);var x=gr(b,a,!0),E=a.dataTransfer.files;if(!(!x||b.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var ee=E.length,oe=Array(ee),de=0,xe=function(){++de==ee&&Xn(b,function(){x=Bt(b.doc,x);var Dn={from:x,to:x,text:b.doc.splitLines(oe.filter(function(tr){return tr!=null}).join(b.doc.lineSeparator())),origin:"paste"};ji(b.doc,Dn),po(b.doc,er(Bt(b.doc,x),Bt(b.doc,Er(Dn))))})()},Te=function(Dn,tr){if(b.options.allowDropFileTypes&&Et(b.options.allowDropFileTypes,Dn.type)==-1){xe();return}var vr=new FileReader;vr.onerror=function(){return xe()},vr.onload=function(){var Ir=vr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ir)){xe();return}oe[tr]=Ir,xe()},vr.readAsText(Dn)},Ue=0;Ue<E.length;Ue++)Te(E[Ue],Ue);else{if(b.state.draggingText&&b.doc.sel.contains(x)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Xt=a.dataTransfer.getData("Text");if(Xt){var rn;if(b.state.draggingText&&!b.state.draggingText.copy&&(rn=b.listSelections()),xi(b.doc,er(x,x)),rn)for(var An=0;An<rn.length;++An)Pi(b.doc,"",rn[An].anchor,rn[An].head,"drag");b.replaceSelection(Xt,"around","paste"),b.display.input.focus()}}catch(Dn){}}}}function Zl(a,b){if(ve&&(!a.state.draggingText||+new Date-vl<100)){Ge(b);return}if(!(_t(a,b)||Qi(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!je)){var x=Je("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",le&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),b.dataTransfer.setDragImage(x,0,0),le&&x.parentNode.removeChild(x)}}function jl(a,b){var x=gr(a,b);if(x){var E=document.createDocumentFragment();no(a,x,E),a.display.dragCursor||(a.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),st(a.display.dragCursor,E)}}function Zs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function js(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),x=[],E=0;E<b.length;E++){var ee=b[E].CodeMirror;ee&&x.push(ee)}x.length&&x[0].operation(function(){for(var oe=0;oe<x.length;oe++)a(x[oe])})}}var zs=!1;function Hs(){zs||(qs(),zs=!0)}function qs(){var a;Mt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,js(ui)},100))}),Mt(window,"blur",function(){return js(Fa)})}function ui(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var gi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ua=0;ua<10;ua++)gi[ua+48]=gi[ua+96]=String(ua);for(var xa=65;xa<=90;xa++)gi[xa]=String.fromCharCode(xa);for(var Ra=1;Ra<=12;Ra++)gi[Ra+111]=gi[Ra+63235]="F"+Ra;var Ma={};Ma.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ma.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ma.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ma.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ma.default=Pe?Ma.macDefault:Ma.pcDefault;function Tl(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var x,E,ee,oe,de=0;de<b.length-1;de++){var xe=b[de];if(/^(cmd|meta|m)$/i.test(xe))oe=!0;else if(/^a(lt)?$/i.test(xe))x=!0;else if(/^(c|ctrl|control)$/i.test(xe))E=!0;else if(/^s(hift)?$/i.test(xe))ee=!0;else throw new Error("Unrecognized modifier name: "+xe)}return x&&(a="Alt-"+a),E&&(a="Ctrl-"+a),oe&&(a="Cmd-"+a),ee&&(a="Shift-"+a),a}function Ka(a){var b={};for(var x in a)if(a.hasOwnProperty(x)){var E=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(E=="..."){delete a[x];continue}for(var ee=nn(x.split(" "),Tl),oe=0;oe<ee.length;oe++){var de=void 0,xe=void 0;oe==ee.length-1?(xe=ee.join(" "),de=E):(xe=ee.slice(0,oe+1).join(" "),de="...");var Te=b[xe];if(!Te)b[xe]=de;else if(Te!=de)throw new Error("Inconsistent bindings for "+xe)}delete a[x]}for(var Ue in b)a[Ue]=b[Ue];return a}function xs(a,b,x,E){b=Ws(b);var ee=b.call?b.call(a,E):b[a];if(ee===!1)return"nothing";if(ee==="...")return"multi";if(ee!=null&&x(ee))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return xs(a,b.fallthrough,x,E);for(var oe=0;oe<b.fallthrough.length;oe++){var de=xs(a,b.fallthrough[oe],x,E);if(de)return de}}}function eu(a){var b=typeof a=="string"?a:gi[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Os(a,b,x){var E=a;return b.altKey&&E!="Alt"&&(a="Alt-"+a),(Se?b.metaKey:b.ctrlKey)&&E!="Ctrl"&&(a="Ctrl-"+a),(Se?b.ctrlKey:b.metaKey)&&E!="Mod"&&(a="Cmd-"+a),!x&&b.shiftKey&&E!="Shift"&&(a="Shift-"+a),a}function ps(a,b){if(le&&a.keyCode==34&&a.char)return!1;var x=gi[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),Os(x,a,b))}function Ws(a){return typeof a=="string"?Ma[a]:a}function vs(a,b){for(var x=a.doc.sel.ranges,E=[],ee=0;ee<x.length;ee++){for(var oe=b(x[ee]);E.length&&Tt(oe.from,lt(E).to)<=0;){var de=E.pop();if(Tt(de.from,oe.from)<0){oe.from=de.from;break}}E.push(oe)}Lr(a,function(){for(var xe=E.length-1;xe>=0;xe--)Pi(a.doc,"",E[xe].from,E[xe].to,"+delete");Al(a)})}function tu(a,b,x){var E=gt(a.text,b+x,x);return E<0||E>a.text.length?null:E}function Vs(a,b,x){var E=tu(a,b.ch,x);return E==null?null:new Ke(b.line,E,x<0?"after":"before")}function nu(a,b,x,E,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var oe=Ze(x,b.doc.direction);if(oe){var de=ee<0?lt(oe):oe[0],xe=ee<0==(de.level==1),Te=xe?"after":"before",Ue;if(de.level>0||b.doc.direction=="rtl"){var Xt=Ll(b,x);Ue=ee<0?x.text.length-1:0;var rn=fl(b,Xt,Ue).top;Ue=_e(function(An){return fl(b,Xt,An).top==rn},ee<0==(de.level==1)?de.from:de.to-1,Ue),Te=="before"&&(Ue=tu(x,Ue,1))}else Ue=ee<0?de.to:de.from;return new Ke(E,Ue,Te)}}return new Ke(E,ee<0?x.text.length:0,ee<0?"before":"after")}function vu(a,b,x,E){var ee=Ze(b,a.doc.direction);if(!ee)return Vs(b,x,E);x.ch>=b.text.length?(x.ch=b.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var oe=ht(ee,x.ch,x.sticky),de=ee[oe];if(a.doc.direction=="ltr"&&de.level%2==0&&(E>0?de.to>x.ch:de.from<x.ch))return Vs(b,x,E);var xe=function(Gr,mo){return tu(b,Gr instanceof Ke?Gr.ch:Gr,mo)},Te,Ue=function(Gr){return a.options.lineWrapping?(Te=Te||Ll(a,b),Qt(a,b,Te,Gr)):{begin:0,end:b.text.length}},Xt=Ue(x.sticky=="before"?xe(x,-1):x.ch);if(a.doc.direction=="rtl"||de.level==1){var rn=de.level==1==E<0,An=xe(x,rn?1:-1);if(An!=null&&(rn?An<=de.to&&An<=Xt.end:An>=de.from&&An>=Xt.begin)){var Dn=rn?"before":"after";return new Ke(x.line,An,Dn)}}var tr=function(Gr,mo,Xr){for(var Do=function(ca,Xa){return Xa?new Ke(x.line,xe(ca,1),"before"):new Ke(x.line,ca,"after")};Gr>=0&&Gr<ee.length;Gr+=mo){var ii=ee[Gr],Uo=mo>0==(ii.level!=1),Si=Uo?Xr.begin:xe(Xr.end,-1);if(ii.from<=Si&&Si<ii.to||(Si=Uo?ii.from:xe(ii.to,-1),Xr.begin<=Si&&Si<Xr.end))return Do(Si,Uo)}},vr=tr(oe+E,E,Xt);if(vr)return vr;var Ir=E>0?Xt.end:xe(Xt.begin,-1);return Ir!=null&&!(E>0&&Ir==b.text.length)&&(vr=tr(E>0?0:ee.length-1,E,Ue(Ir)),vr)?vr:null}var ns={selectAll:Zo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ce)},killLine:function(a){return vs(a,function(b){if(b.empty()){var x=hn(a.doc,b.head.line).text.length;return b.head.ch==x&&b.head.line<a.lastLine()?{from:b.head,to:Ke(b.head.line+1,0)}:{from:b.head,to:Ke(b.head.line,x)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return vs(a,function(b){return{from:Ke(b.from().line,0),to:Bt(a.doc,Ke(b.to().line+1,0))}})},delLineLeft:function(a){return vs(a,function(b){return{from:Ke(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return vs(a,function(b){var x=a.charCoords(b.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return{from:E,to:b.from()}})},delWrappedLineRight:function(a){return vs(a,function(b){var x=a.charCoords(b.head,"div").top+5,E=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:b.from(),to:E}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ke(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ke(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return ru(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return ou(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return xu(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},qe)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},qe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return E.ch<a.getLine(E.line).search(/\S/)?ou(a,b.head):E},qe)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],x=a.listSelections(),E=a.options.tabSize,ee=0;ee<x.length;ee++){var oe=x[ee].from(),de=Le(a.getLine(oe.line),oe.ch,E);b.push(ct(E-de%E))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Lr(a,function(){for(var b=a.listSelections(),x=[],E=0;E<b.length;E++)if(b[E].empty()){var ee=b[E].head,oe=hn(a.doc,ee.line).text;if(oe){if(ee.ch==oe.length&&(ee=new Ke(ee.line,ee.ch-1)),ee.ch>0)ee=new Ke(ee.line,ee.ch+1),a.replaceRange(oe.charAt(ee.ch-1)+oe.charAt(ee.ch-2),Ke(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var de=hn(a.doc,ee.line-1).text;de&&(ee=new Ke(ee.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+de.charAt(de.length-1),Ke(ee.line-1,de.length-1),ee,"+transpose"))}}x.push(new Fn(ee,ee))}a.setSelections(x)})},newlineAndIndent:function(a){return Lr(a,function(){for(var b=a.listSelections(),x=b.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),b[x].anchor,b[x].head,"+input");b=a.listSelections();for(var E=0;E<b.length;E++)a.indentLine(b[E].from().line,null,!0);Al(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ru(a,b){var x=hn(a.doc,b),E=Ln(x);return E!=x&&(b=St(E)),nu(!0,a,E,b,1)}function xu(a,b){var x=hn(a.doc,b),E=mr(x);return E!=x&&(b=St(E)),nu(!0,a,x,b,-1)}function ou(a,b){var x=ru(a,b.line),E=hn(a.doc,x.line),ee=Ze(E,a.doc.direction);if(!ee||ee[0].level==0){var oe=Math.max(x.ch,E.text.search(/\S/)),de=b.line==x.line&&b.ch<=oe&&b.ch;return Ke(x.line,de?0:oe,x.sticky)}return x}function Is(a,b,x){if(typeof b=="string"&&(b=ns[b],!b))return!1;a.display.input.ensurePolled();var E=a.display.shift,ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),ee=b(a)!=pt}finally{a.display.shift=E,a.state.suppressEdits=!1}return ee}function Su(a,b,x){for(var E=0;E<a.state.keyMaps.length;E++){var ee=xs(b,a.state.keyMaps[E],x,a);if(ee)return ee}return a.options.extraKeys&&xs(b,a.options.extraKeys,x,a)||xs(b,a.options.keyMap,x,a)}var wu=new ye;function As(a,b,x,E){var ee=a.state.keySeq;if(ee){if(eu(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:wu.set(50,function(){a.state.keySeq==ee&&(a.state.keySeq=null,a.display.input.reset())}),iu(a,ee+" "+b,x,E))return!0}return iu(a,b,x,E)}function iu(a,b,x,E){var ee=Su(a,b,E);return ee=="multi"&&(a.state.keySeq=b),ee=="handled"&&Ti(a,"keyHandled",a,b,x),(ee=="handled"||ee=="multi")&&(Ot(x),Ji(a)),!!ee}function Ns(a,b){var x=ps(b,!0);return x?b.shiftKey&&!a.state.keySeq?As(a,"Shift-"+x,b,function(E){return Is(a,E,!0)})||As(a,x,b,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return Is(a,E)}):As(a,x,b,function(E){return Is(a,E)}):!1}function au(a,b,x){return As(a,"'"+x+"'",b,function(E){return Is(a,E,!0)})}var Ms=null;function lu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=we(),!_t(b,a))){ve&&me<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;b.display.shift=x==16||a.shiftKey;var E=Ns(b,a);le&&(Ms=E?x:null,!E&&x==88&&!Ct&&(Pe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Pe&&!E&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&gu(b)}}function gu(a){var b=a.display.lineDiv;se(b,"CodeMirror-crosshair");function x(E){(E.keyCode==18||!E.altKey)&&(He(b,"CodeMirror-crosshair"),cn(document,"keyup",x),cn(document,"mouseover",x))}Mt(document,"keyup",x),Mt(document,"mouseover",x)}function su(a){a.keyCode==16&&(this.doc.sel.shift=!1),_t(this,a)}function uu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qi(b.display,a)||_t(b,a)||a.ctrlKey&&!a.altKey||Pe&&a.metaKey)){var x=a.keyCode,E=a.charCode;if(le&&x==Ms){Ms=null,Ot(a);return}if(!(le&&(!a.which||a.which<10)&&Ns(b,a))){var ee=String.fromCharCode(E==null?x:E);ee!="\b"&&(au(b,a,ee)||b.display.input.onKeyPress(a))}}}var Bu=400,Ks=function(a,b,x){this.time=a,this.pos=b,this.button=x};Ks.prototype.compare=function(a,b,x){return this.time+Bu>a&&Tt(b,this.pos)==0&&x==this.button};var gs,Ss;function cu(a,b){var x=+new Date;return Ss&&Ss.compare(x,a,b)?(gs=Ss=null,"triple"):gs&&gs.compare(x,a,b)?(Ss=new Ks(x,a,b),gs=null,"double"):(gs=new Ks(x,a,b),Ss=null,"single")}function du(a){var b=this,x=b.display;if(!(_t(b,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Qi(x,a)){pe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Kl(b,a)){var E=gr(b,a),ee=jt(a),oe=E?cu(E,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(E&&Du(b,ee,E,oe,a))&&(ee==1?E?Ai(b,E,oe,a):Pt(a)==x.scroller&&Ot(a):ee==2?(E&&vi(b.doc,E),setTimeout(function(){return x.input.focus()},20)):ee==3&&(Ie?b.display.input.onContextMenu(a):zo(b)))}}}function Du(a,b,x,E,ee){var oe="Click";return E=="double"?oe="Double"+oe:E=="triple"&&(oe="Triple"+oe),oe=(b==1?"Left":b==2?"Middle":"Right")+oe,As(a,Os(oe,ee),ee,function(de){if(typeof de=="string"&&(de=ns[de]),!de)return!1;var xe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),xe=de(a,x)!=pt}finally{a.state.suppressEdits=!1}return xe})}function Oi(a,b,x){var E=a.getOption("configureMouse"),ee=E?E(a,b,x):{};if(ee.unit==null){var oe=Fe?x.shiftKey&&x.metaKey:x.altKey;ee.unit=oe?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ee.extend==null||a.doc.extend)&&(ee.extend=a.doc.extend||x.shiftKey),ee.addNew==null&&(ee.addNew=Pe?x.metaKey:x.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Pe?x.altKey:x.ctrlKey)),ee}function Ai(a,b,x,E){ve?setTimeout(tt(hl,a),0):a.curOp.focus=we();var ee=Oi(a,x,E),oe=a.doc.sel,de;a.options.dragDrop&&vt&&!a.isReadOnly()&&x=="single"&&(de=oe.contains(b))>-1&&(Tt((de=oe.ranges[de]).from(),b)<0||b.xRel>0)&&(Tt(de.to(),b)>0||b.xRel<0)?Ua(a,E,b,ee):Ga(a,E,b,ee)}function Ua(a,b,x,E){var ee=a.display,oe=!1,de=Xn(a,function(Ue){pe&&(ee.scroller.draggable=!1),a.state.draggingText=!1,cn(ee.wrapper.ownerDocument,"mouseup",de),cn(ee.wrapper.ownerDocument,"mousemove",xe),cn(ee.scroller,"dragstart",Te),cn(ee.scroller,"drop",de),oe||(Ot(Ue),E.addNew||vi(a.doc,x,null,null,E.extend),pe&&!je||ve&&me==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),xe=function(Ue){oe=oe||Math.abs(b.clientX-Ue.clientX)+Math.abs(b.clientY-Ue.clientY)>=10},Te=function(){return oe=!0};pe&&(ee.scroller.draggable=!0),a.state.draggingText=de,de.copy=!E.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Mt(ee.wrapper.ownerDocument,"mouseup",de),Mt(ee.wrapper.ownerDocument,"mousemove",xe),Mt(ee.scroller,"dragstart",Te),Mt(ee.scroller,"drop",de),zo(a),setTimeout(function(){return ee.input.focus()},20)}function gl(a,b,x){if(x=="char")return new Fn(b,b);if(x=="word")return a.findWordAt(b);if(x=="line")return new Fn(Ke(b.line,0),Bt(a.doc,Ke(b.line+1,0)));var E=x(a,b);return new Fn(E.from,E.to)}function Ga(a,b,x,E){var ee=a.display,oe=a.doc;Ot(b);var de,xe,Te=oe.sel,Ue=Te.ranges;if(E.addNew&&!E.extend?(xe=oe.sel.contains(x),xe>-1?de=Ue[xe]:de=new Fn(x,x)):(de=oe.sel.primary(),xe=oe.sel.primIndex),E.unit=="rectangle")E.addNew||(de=new Fn(x,x)),x=gr(a,b,!0,!0),xe=-1;else{var Xt=gl(a,x,E.unit);E.extend?de=mi(de,Xt.anchor,Xt.head,E.extend):de=Xt}E.addNew?xe==-1?(xe=Ue.length,Jr(oe,yr(a,Ue.concat([de]),xe),{scroll:!1,origin:"*mouse"})):Ue.length>1&&Ue[xe].empty()&&E.unit=="char"&&!E.extend?(Jr(oe,yr(a,Ue.slice(0,xe).concat(Ue.slice(xe+1)),0),{scroll:!1,origin:"*mouse"}),Te=oe.sel):Ba(oe,xe,de,at):(xe=0,Jr(oe,new On([de],0),at),Te=oe.sel);var rn=x;function An(Xr){if(Tt(rn,Xr)!=0)if(rn=Xr,E.unit=="rectangle"){for(var Do=[],ii=a.options.tabSize,Uo=Le(hn(oe,x.line).text,x.ch,ii),Si=Le(hn(oe,Xr.line).text,Xr.ch,ii),ca=Math.min(Uo,Si),Xa=Math.max(Uo,Si),Pa=Math.min(x.line,Xr.line),Pl=Math.min(a.lastLine(),Math.max(x.line,Xr.line));Pa<=Pl;Pa++){var yl=hn(oe,Pa).text,_a=zt(yl,ca,ii);ca==Xa?Do.push(new Fn(Ke(Pa,_a),Ke(Pa,_a))):yl.length>_a&&Do.push(new Fn(Ke(Pa,_a),Ke(Pa,zt(yl,Xa,ii))))}Do.length||Do.push(new Fn(x,x)),Jr(oe,yr(a,Te.ranges.slice(0,xe).concat(Do),xe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Xr)}else{var bl=de,nl=gl(a,Xr,E.unit),za=bl.anchor,$a;Tt(nl.anchor,za)>0?($a=nl.head,za=yt(bl.from(),nl.anchor)):($a=nl.anchor,za=Zn(bl.to(),nl.head));var Aa=Te.ranges.slice(0);Aa[xe]=ws(a,new Fn(Bt(oe,za),$a)),Jr(oe,yr(a,Aa,xe),at)}}var Dn=ee.wrapper.getBoundingClientRect(),tr=0;function vr(Xr){var Do=++tr,ii=gr(a,Xr,!0,E.unit=="rectangle");if(ii)if(Tt(ii,rn)!=0){a.curOp.focus=we(),An(ii);var Uo=Di(ee,oe);(ii.line>=Uo.to||ii.line<Uo.from)&&setTimeout(Xn(a,function(){tr==Do&&vr(Xr)}),150)}else{var Si=Xr.clientY<Dn.top?-20:Xr.clientY>Dn.bottom?20:0;Si&&setTimeout(Xn(a,function(){tr==Do&&(ee.scroller.scrollTop+=Si,vr(Xr))}),50)}}function Ir(Xr){a.state.selectingText=!1,tr=1/0,Xr&&(Ot(Xr),ee.input.focus()),cn(ee.wrapper.ownerDocument,"mousemove",Gr),cn(ee.wrapper.ownerDocument,"mouseup",mo),oe.history.lastSelOrigin=null}var Gr=Xn(a,function(Xr){Xr.buttons===0||!jt(Xr)?Ir(Xr):vr(Xr)}),mo=Xn(a,Ir);a.state.selectingText=mo,Mt(ee.wrapper.ownerDocument,"mousemove",Gr),Mt(ee.wrapper.ownerDocument,"mouseup",mo)}function ws(a,b){var x=b.anchor,E=b.head,ee=hn(a.doc,x.line);if(Tt(x,E)==0&&x.sticky==E.sticky)return b;var oe=Ze(ee);if(!oe)return b;var de=ht(oe,x.ch,x.sticky),xe=oe[de];if(xe.from!=x.ch&&xe.to!=x.ch)return b;var Te=de+(xe.from==x.ch==(xe.level!=1)?0:1);if(Te==0||Te==oe.length)return b;var Ue;if(E.line!=x.line)Ue=(E.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Xt=ht(oe,E.ch,E.sticky),rn=Xt-de||(E.ch-x.ch)*(xe.level==1?-1:1);Xt==Te-1||Xt==Te?Ue=rn<0:Ue=rn>0}var An=oe[Te+(Ue?-1:0)],Dn=Ue==(An.level==1),tr=Dn?An.from:An.to,vr=Dn?"after":"before";return x.ch==tr&&x.sticky==vr?b:new Fn(new Ke(x.line,tr,vr),E)}function rs(a,b,x,E){var ee,oe;if(b.touches)ee=b.touches[0].clientX,oe=b.touches[0].clientY;else try{ee=b.clientX,oe=b.clientY}catch(An){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;E&&Ot(b);var de=a.display,xe=de.lineDiv.getBoundingClientRect();if(oe>xe.bottom||!qt(a,x))return on(b);oe-=xe.top-de.viewOffset;for(var Te=0;Te<a.display.gutterSpecs.length;++Te){var Ue=de.gutters.childNodes[Te];if(Ue&&Ue.getBoundingClientRect().right>=ee){var Xt=$t(a.doc,oe),rn=a.display.gutterSpecs[Te];return ln(a,x,a,Xt,rn.className,b),on(b)}}}function Kl(a,b){return rs(a,b,"gutterClick",!0)}function Bs(a,b){Qi(a.display,b)||fu(a,b)||_t(a,b,"contextmenu")||Ie||a.display.input.onContextMenu(b)}function fu(a,b){return qt(a,"gutterContextMenu")?rs(a,b,"gutterContextMenu",!1):!1}function Nu(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hl(a)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},yu={};function zu(a){var b=a.optionHandlers;function x(E,ee,oe,de){a.defaults[E]=ee,oe&&(b[E]=de?function(xe,Te,Ue){Ue!=Us&&oe(xe,Te,Ue)}:oe)}a.defineOption=x,a.Init=Us,x("value","",function(E,ee){return E.setValue(ee)},!0),x("mode",null,function(E,ee){E.doc.modeOption=ee,ro(E)},!0),x("indentUnit",2,ro,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(E){Qr(E),Hl(E),yo(E)},!0),x("lineSeparator",null,function(E,ee){if(E.doc.lineSep=ee,!!ee){var oe=[],de=E.doc.first;E.doc.iter(function(Te){for(var Ue=0;;){var Xt=Te.text.indexOf(ee,Ue);if(Xt==-1)break;Ue=Xt+ee.length,oe.push(Ke(de,Xt))}de++});for(var xe=oe.length-1;xe>=0;xe--)Pi(E.doc,ee,oe[xe],Ke(oe[xe].line,oe[xe].ch+ee.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(E,ee,oe){E.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),oe!=Us&&E.refresh()}),x("specialCharPlaceholder",$i,function(E){return E.refresh()},!0),x("electricChars",!0),x("inputStyle",Ee?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(E,ee){return E.getInputField().spellcheck=ee},!0),x("autocorrect",!1,function(E,ee){return E.getInputField().autocorrect=ee},!0),x("autocapitalize",!1,function(E,ee){return E.getInputField().autocapitalize=ee},!0),x("rtlMoveVisually",!Ve),x("wholeLineUpdateBefore",!0),x("theme","default",function(E){Nu(E),vn(E)},!0),x("keyMap","default",function(E,ee,oe){var de=Ws(ee),xe=oe!=Us&&Ws(oe);xe&&xe.detach&&xe.detach(E,de),de.attach&&de.attach(E,xe||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Wu,!0),x("gutters",[],function(E,ee){E.display.gutterSpecs=Kt(ee,E.options.lineNumbers),vn(E)},!0),x("fixedGutter",!0,function(E,ee){E.display.gutters.style.left=ee?oi(E.display)+"px":"0",E.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(E){return fs(E)},!0),x("scrollbarStyle","native",function(E){_s(E),fs(E),E.display.scrollbars.setScrollTop(E.doc.scrollTop),E.display.scrollbars.setScrollLeft(E.doc.scrollLeft)},!0),x("lineNumbers",!1,function(E,ee){E.display.gutterSpecs=Kt(E.options.gutters,ee),vn(E)},!0),x("firstLineNumber",1,vn,!0),x("lineNumberFormatter",function(E){return E},vn,!0),x("showCursorWhenSelecting",!1,bo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(E,ee){ee=="nocursor"&&(Fa(E),E.display.input.blur()),E.display.input.readOnlyChanged(ee)}),x("screenReaderLabel",null,function(E,ee){ee=ee===""?null:ee,E.display.input.screenReaderLabelChanged(ee)}),x("disableInput",!1,function(E,ee){ee||E.display.input.reset()},!0),x("dragDrop",!0,Hu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,bo,!0),x("singleCursorHeightPerLine",!0,bo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Qr,!0),x("addModeClass",!1,Qr,!0),x("pollInterval",100),x("undoDepth",200,function(E,ee){return E.doc.history.undoDepth=ee}),x("historyEventDelay",1250),x("viewportMargin",10,function(E){return E.refresh()},!0),x("maxHighlightLength",1e4,Qr,!0),x("moveInputWithCursor",!0,function(E,ee){ee||E.display.input.resetPosition()}),x("tabindex",null,function(E,ee){return E.display.input.getField().tabIndex=ee||""}),x("autofocus",null),x("direction","ltr",function(E,ee){return E.doc.setDirection(ee)},!0),x("phrases",null)}function Hu(a,b,x){var E=x&&x!=Us;if(!b!=!E){var ee=a.display.dragFunctions,oe=b?Mt:cn;oe(a.display.scroller,"dragstart",ee.start),oe(a.display.scroller,"dragenter",ee.enter),oe(a.display.scroller,"dragover",ee.over),oe(a.display.scroller,"dragleave",ee.leave),oe(a.display.scroller,"drop",ee.drop)}}function Wu(a){a.options.lineWrapping?(se(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(He(a.display.wrapper,"CodeMirror-wrap"),to(a)),Qo(a),yo(a),Hl(a),setTimeout(function(){return fs(a)},100)}function Sa(a,b){var x=this;if(!(this instanceof Sa))return new Sa(a,b);this.options=b=b?Nt(b):{},Nt(Mu,b,!1);var E=b.value;typeof E=="string"?E=new Gi(E,b.mode,null,b.lineSeparator,b.direction):b.mode&&(E.modeOption=b.mode),this.doc=E;var ee=new Sa.inputStyles[b.inputStyle](this),oe=this.display=new dn(a,E,ee,b);oe.wrapper.CodeMirror=this,Nu(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_s(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ye,keySeq:null,specialChars:null},b.autofocus&&!Ee&&oe.input.focus(),ve&&me<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Hs(),_l(this),this.curOp.forceUpdate=!0,Vo(this,E),b.autofocus&&!Ee||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Za(x)},20):Fa(this);for(var de in yu)yu.hasOwnProperty(de)&&yu[de](this,b[de],Us);Dt(this),b.finishInit&&b.finishInit(this);for(var xe=0;xe<Pu.length;++xe)Pu[xe](this);Ml(this),pe&&b.lineWrapping&&getComputedStyle(oe.lineDiv).textRendering=="optimizelegibility"&&(oe.lineDiv.style.textRendering="auto")}Sa.defaults=Mu,Sa.optionHandlers=yu;function Vu(a){var b=a.display;Mt(b.scroller,"mousedown",Xn(a,du)),ve&&me<11?Mt(b.scroller,"dblclick",Xn(a,function(Te){if(!_t(a,Te)){var Ue=gr(a,Te);if(!(!Ue||Kl(a,Te)||Qi(a.display,Te))){Ot(Te);var Xt=a.findWordAt(Ue);vi(a.doc,Xt.anchor,Xt.head)}}})):Mt(b.scroller,"dblclick",function(Te){return _t(a,Te)||Ot(Te)}),Mt(b.scroller,"contextmenu",function(Te){return Bs(a,Te)}),Mt(b.input.getField(),"contextmenu",function(Te){b.scroller.contains(Te.target)||Bs(a,Te)});var x,E={end:0};function ee(){b.activeTouch&&(x=setTimeout(function(){return b.activeTouch=null},1e3),E=b.activeTouch,E.end=+new Date)}function oe(Te){if(Te.touches.length!=1)return!1;var Ue=Te.touches[0];return Ue.radiusX<=1&&Ue.radiusY<=1}function de(Te,Ue){if(Ue.left==null)return!0;var Xt=Ue.left-Te.left,rn=Ue.top-Te.top;return Xt*Xt+rn*rn>20*20}Mt(b.scroller,"touchstart",function(Te){if(!_t(a,Te)&&!oe(Te)&&!Kl(a,Te)){b.input.ensurePolled(),clearTimeout(x);var Ue=+new Date;b.activeTouch={start:Ue,moved:!1,prev:Ue-E.end<=300?E:null},Te.touches.length==1&&(b.activeTouch.left=Te.touches[0].pageX,b.activeTouch.top=Te.touches[0].pageY)}}),Mt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Mt(b.scroller,"touchend",function(Te){var Ue=b.activeTouch;if(Ue&&!Qi(b,Te)&&Ue.left!=null&&!Ue.moved&&new Date-Ue.start<300){var Xt=a.coordsChar(b.activeTouch,"page"),rn;!Ue.prev||de(Ue,Ue.prev)?rn=new Fn(Xt,Xt):!Ue.prev.prev||de(Ue,Ue.prev.prev)?rn=a.findWordAt(Xt):rn=new Fn(Ke(Xt.line,0),Bt(a.doc,Ke(Xt.line+1,0))),a.setSelection(rn.anchor,rn.head),a.focus(),Ot(Te)}ee()}),Mt(b.scroller,"touchcancel",ee),Mt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Es(a,b.scroller.scrollTop),ql(a,b.scroller.scrollLeft,!0),ln(a,"scroll",a))}),Mt(b.scroller,"mousewheel",function(Te){return kn(a,Te)}),Mt(b.scroller,"DOMMouseScroll",function(Te){return kn(a,Te)}),Mt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Te){_t(a,Te)||Ge(Te)},over:function(Te){_t(a,Te)||(jl(a,Te),Ge(Te))},start:function(Te){return Zl(a,Te)},drop:Xn(a,ts),leave:function(Te){_t(a,Te)||Zs(a)}};var xe=b.input.getField();Mt(xe,"keyup",function(Te){return su.call(a,Te)}),Mt(xe,"keydown",Xn(a,lu)),Mt(xe,"keypress",Xn(a,uu)),Mt(xe,"focus",function(Te){return Za(a,Te)}),Mt(xe,"blur",function(Te){return Fa(a,Te)})}var Pu=[];Sa.defineInitHook=function(a){return Pu.push(a)};function hu(a,b,x,E){var ee=a.doc,oe;x==null&&(x="add"),x=="smart"&&(ee.mode.indent?oe=nr(a,b).state:x="prev");var de=a.options.tabSize,xe=hn(ee,b),Te=Le(xe.text,null,de);xe.stateAfter&&(xe.stateAfter=null);var Ue=xe.text.match(/^\s*/)[0],Xt;if(!E&&!/\S/.test(xe.text))Xt=0,x="not";else if(x=="smart"&&(Xt=ee.mode.indent(oe,xe.text.slice(Ue.length),xe.text),Xt==pt||Xt>150)){if(!E)return;x="prev"}x=="prev"?b>ee.first?Xt=Le(hn(ee,b-1).text,null,de):Xt=0:x=="add"?Xt=Te+a.options.indentUnit:x=="subtract"?Xt=Te-a.options.indentUnit:typeof x=="number"&&(Xt=Te+x),Xt=Math.max(0,Xt);var rn="",An=0;if(a.options.indentWithTabs)for(var Dn=Math.floor(Xt/de);Dn;--Dn)An+=de,rn+=" ";if(An<Xt&&(rn+=ct(Xt-An)),rn!=Ue)return Pi(ee,rn,Ke(b,0),Ke(b,Ue.length),"+input"),xe.stateAfter=null,!0;for(var tr=0;tr<ee.sel.ranges.length;tr++){var vr=ee.sel.ranges[tr];if(vr.head.line==b&&vr.head.ch<Ue.length){var Ir=Ke(b,Ue.length);Ba(ee,tr,new Fn(Ir,Ir));break}}}var Ul=null;function bu(a){Ul=a}function Fu(a,b,x,E,ee){var oe=a.doc;a.display.shift=!1,E||(E=oe.sel);var de=+new Date-200,xe=ee=="paste"||a.state.pasteIncoming>de,Te=un(b),Ue=null;if(xe&&E.ranges.length>1)if(Ul&&Ul.text.join(`
`)==b){if(E.ranges.length%Ul.text.length==0){Ue=[];for(var Xt=0;Xt<Ul.text.length;Xt++)Ue.push(oe.splitLines(Ul.text[Xt]))}}else Te.length==E.ranges.length&&a.options.pasteLinesPerSelection&&(Ue=nn(Te,function(Gr){return[Gr]}));for(var rn=a.curOp.updateInput,An=E.ranges.length-1;An>=0;An--){var Dn=E.ranges[An],tr=Dn.from(),vr=Dn.to();Dn.empty()&&(x&&x>0?tr=Ke(tr.line,tr.ch-x):a.state.overwrite&&!xe?vr=Ke(vr.line,Math.min(hn(oe,vr.line).text.length,vr.ch+lt(Te).length)):xe&&Ul&&Ul.lineWise&&Ul.text.join(`
`)==Te.join(`
`)&&(tr=vr=Ke(tr.line,0)));var Ir={from:tr,to:vr,text:Ue?Ue[An%Ue.length]:Te,origin:ee||(xe?"paste":a.state.cutIncoming>de?"cut":"+input")};ji(a.doc,Ir),Ti(a,"inputRead",a,Ir)}b&&!xe&&ku(a,b),Al(a),a.curOp.updateInput<2&&(a.curOp.updateInput=rn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Tu(a,b){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Lr(b,function(){return Fu(b,x,0,null,"paste")}),!0}function ku(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,E=x.ranges.length-1;E>=0;E--){var ee=x.ranges[E];if(!(ee.head.ch>100||E&&x.ranges[E-1].head.line==ee.head.line)){var oe=a.getModeAt(ee.head),de=!1;if(oe.electricChars){for(var xe=0;xe<oe.electricChars.length;xe++)if(b.indexOf(oe.electricChars.charAt(xe))>-1){de=hu(a,ee.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(hn(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(de=hu(a,ee.head.line,"smart"));de&&Ti(a,"electricInput",a,ee.head.line)}}}function Lu(a){for(var b=[],x=[],E=0;E<a.doc.sel.ranges.length;E++){var ee=a.doc.sel.ranges[E].head.line,oe={anchor:Ke(ee,0),head:Ke(ee+1,0)};x.push(oe),b.push(a.getRange(oe.anchor,oe.head))}return{text:b,ranges:x}}function Ru(a,b,x,E){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",E?"":"off"),a.setAttribute("spellcheck",!!b)}function _u(){var a=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Je("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return pe?a.style.width="1000px":a.setAttribute("wrap","off"),ze&&(a.style.border="1px solid black"),Ru(a),b}function Ku(a){var b=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(E,ee){var oe=this.options,de=oe[E];oe[E]==ee&&E!="mode"||(oe[E]=ee,b.hasOwnProperty(E)&&Xn(this,b[E])(this,ee,de),ln(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,ee){this.state.keyMaps[ee?"push":"unshift"](Ws(E))},removeKeyMap:function(E){for(var ee=this.state.keyMaps,oe=0;oe<ee.length;++oe)if(ee[oe]==E||ee[oe].name==E)return ee.splice(oe,1),!0},addOverlay:$o(function(E,ee){var oe=E.token?E:a.getMode(this.options,E);if(oe.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:oe,modeSpec:E,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(de){return de.priority}),this.state.modeGen++,yo(this)}),removeOverlay:$o(function(E){for(var ee=this.state.overlays,oe=0;oe<ee.length;++oe){var de=ee[oe].modeSpec;if(de==E||typeof E=="string"&&de.name==E){ee.splice(oe,1),this.state.modeGen++,yo(this);return}}}),indentLine:$o(function(E,ee,oe){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),nt(this.doc,E)&&hu(this,E,ee,oe)}),indentSelection:$o(function(E){for(var ee=this.doc.sel.ranges,oe=-1,de=0;de<ee.length;de++){var xe=ee[de];if(xe.empty())xe.head.line>oe&&(hu(this,xe.head.line,E,!0),oe=xe.head.line,de==this.doc.sel.primIndex&&Al(this));else{var Te=xe.from(),Ue=xe.to(),Xt=Math.max(oe,Te.line);oe=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var rn=Xt;rn<oe;++rn)hu(this,rn,E);var An=this.doc.sel.ranges;Te.ch==0&&ee.length==An.length&&An[de].from().ch>0&&Ba(this.doc,de,new Fn(Te,An[de].to()),Ce)}}}),getTokenAt:function(E,ee){return fr(this,E,ee)},getLineTokens:function(E,ee){return fr(this,Ke(E),ee,!0)},getTokenTypeAt:function(E){E=Bt(this.doc,E);var ee=qn(this,hn(this.doc,E.line)),oe=0,de=(ee.length-1)/2,xe=E.ch,Te;if(xe==0)Te=ee[2];else for(;;){var Ue=oe+de>>1;if((Ue?ee[Ue*2-1]:0)>=xe)de=Ue;else if(ee[Ue*2+1]<xe)oe=Ue+1;else{Te=ee[Ue*2+2];break}}var Xt=Te?Te.indexOf("overlay "):-1;return Xt<0?Te:Xt==0?null:Te.slice(0,Xt-1)},getModeAt:function(E){var ee=this.doc.mode;return ee.innerMode?a.innerMode(ee,this.getTokenAt(E).state).mode:ee},getHelper:function(E,ee){return this.getHelpers(E,ee)[0]},getHelpers:function(E,ee){var oe=[];if(!x.hasOwnProperty(ee))return oe;var de=x[ee],xe=this.getModeAt(E);if(typeof xe[ee]=="string")de[xe[ee]]&&oe.push(de[xe[ee]]);else if(xe[ee])for(var Te=0;Te<xe[ee].length;Te++){var Ue=de[xe[ee][Te]];Ue&&oe.push(Ue)}else xe.helperType&&de[xe.helperType]?oe.push(de[xe.helperType]):de[xe.name]&&oe.push(de[xe.name]);for(var Xt=0;Xt<de._global.length;Xt++){var rn=de._global[Xt];rn.pred(xe,this)&&Et(oe,rn.val)==-1&&oe.push(rn.val)}return oe},getStateAfter:function(E,ee){var oe=this.doc;return E=xt(oe,E==null?oe.first+oe.size-1:E),nr(this,E+1,ee).state},cursorCoords:function(E,ee){var oe,de=this.doc.sel.primary();return E==null?oe=de.head:typeof E=="object"?oe=Bt(this.doc,E):oe=E?de.from():de.to(),Zi(this,oe,ee||"page")},charCoords:function(E,ee){return qa(this,Bt(this.doc,E),ee||"page")},coordsChar:function(E,ee){return E=ol(this,E,ee||"page"),bt(this,E.left,E.top)},lineAtHeight:function(E,ee){return E=ol(this,{top:E,left:0},ee||"page").top,$t(this.doc,E+this.display.viewOffset)},heightAtLine:function(E,ee,oe){var de=!1,xe;if(typeof E=="number"){var Te=this.doc.first+this.doc.size-1;E<this.doc.first?E=this.doc.first:E>Te&&(E=Te,de=!0),xe=hn(this.doc,E)}else xe=E;return Yl(this,xe,{top:0,left:0},ee||"page",oe||de).top+(de?this.doc.height-_r(xe):0)},defaultTextHeight:function(){return Vr(this.display)},defaultCharWidth:function(){return _o(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(E,ee,oe,de,xe){var Te=this.display;E=Zi(this,Bt(this.doc,E));var Ue=E.bottom,Xt=E.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Te.sizer.appendChild(ee),de=="over")Ue=E.top;else if(de=="above"||de=="near"){var rn=Math.max(Te.wrapper.clientHeight,this.doc.height),An=Math.max(Te.sizer.clientWidth,Te.lineSpace.clientWidth);(de=="above"||E.bottom+ee.offsetHeight>rn)&&E.top>ee.offsetHeight?Ue=E.top-ee.offsetHeight:E.bottom+ee.offsetHeight<=rn&&(Ue=E.bottom),Xt+ee.offsetWidth>An&&(Xt=An-ee.offsetWidth)}ee.style.top=Ue+"px",ee.style.left=ee.style.right="",xe=="right"?(Xt=Te.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(xe=="left"?Xt=0:xe=="middle"&&(Xt=(Te.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=Xt+"px"),oe&&Ql(this,{left:Xt,top:Ue,right:Xt+ee.offsetWidth,bottom:Ue+ee.offsetHeight})},triggerOnKeyDown:$o(lu),triggerOnKeyPress:$o(uu),triggerOnKeyUp:su,triggerOnMouseDown:$o(du),execCommand:function(E){if(ns.hasOwnProperty(E))return ns[E].call(null,this)},triggerElectric:$o(function(E){ku(this,E)}),findPosH:function(E,ee,oe,de){var xe=1;ee<0&&(xe=-1,ee=-ee);for(var Te=Bt(this.doc,E),Ue=0;Ue<ee&&(Te=Ou(this.doc,Te,xe,oe,de),!Te.hitSide);++Ue);return Te},moveH:$o(function(E,ee){var oe=this;this.extendSelectionsBy(function(de){return oe.display.shift||oe.doc.extend||de.empty()?Ou(oe.doc,de.head,E,ee,oe.options.rtlMoveVisually):E<0?de.from():de.to()},qe)}),deleteH:$o(function(E,ee){var oe=this.doc.sel,de=this.doc;oe.somethingSelected()?de.replaceSelection("",null,"+delete"):vs(this,function(xe){var Te=Ou(de,xe.head,E,ee,!1);return E<0?{from:Te,to:xe.head}:{from:xe.head,to:Te}})}),findPosV:function(E,ee,oe,de){var xe=1,Te=de;ee<0&&(xe=-1,ee=-ee);for(var Ue=Bt(this.doc,E),Xt=0;Xt<ee;++Xt){var rn=Zi(this,Ue,"div");if(Te==null?Te=rn.left:rn.left=Te,Ue=$u(this,rn,xe,oe),Ue.hitSide)break}return Ue},moveV:$o(function(E,ee){var oe=this,de=this.doc,xe=[],Te=!this.display.shift&&!de.extend&&de.sel.somethingSelected();if(de.extendSelectionsBy(function(Xt){if(Te)return E<0?Xt.from():Xt.to();var rn=Zi(oe,Xt.head,"div");Xt.goalColumn!=null&&(rn.left=Xt.goalColumn),xe.push(rn.left);var An=$u(oe,rn,E,ee);return ee=="page"&&Xt==de.sel.primary()&&ss(oe,qa(oe,An,"div").top-rn.top),An},qe),xe.length)for(var Ue=0;Ue<de.sel.ranges.length;Ue++)de.sel.ranges[Ue].goalColumn=xe[Ue]}),findWordAt:function(E){var ee=this.doc,oe=hn(ee,E.line).text,de=E.ch,xe=E.ch;if(oe){var Te=this.getHelper(E,"wordChars");(E.sticky=="before"||xe==oe.length)&&de?--de:++xe;for(var Ue=oe.charAt(de),Xt=fe(Ue,Te)?function(rn){return fe(rn,Te)}:/\s/.test(Ue)?function(rn){return/\s/.test(rn)}:function(rn){return!/\s/.test(rn)&&!fe(rn)};de>0&&Xt(oe.charAt(de-1));)--de;for(;xe<oe.length&&Xt(oe.charAt(xe));)++xe}return new Fn(Ke(E.line,de),Ke(E.line,xe))},toggleOverwrite:function(E){E!=null&&E==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?se(this.display.cursorDiv,"CodeMirror-overwrite"):He(this.display.cursorDiv,"CodeMirror-overwrite"),ln(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==we()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$o(function(E,ee){Rl(this,E,ee)}),getScrollInfo:function(){var E=this.display.scroller;return{left:E.scrollLeft,top:E.scrollTop,height:E.scrollHeight-Va(this)-this.display.barHeight,width:E.scrollWidth-Va(this)-this.display.barWidth,clientHeight:kl(this),clientWidth:Sl(this)}},scrollIntoView:$o(function(E,ee){E==null?(E={from:this.doc.sel.primary().head,to:null},ee==null&&(ee=this.options.cursorScrollMargin)):typeof E=="number"?E={from:Ke(E,0),to:null}:E.from==null&&(E={from:E,to:null}),E.to||(E.to=E.from),E.margin=ee||0,E.from.line!=null?Cs(this,E):us(this,E.from,E.to,E.margin)}),setSize:$o(function(E,ee){var oe=this,de=function(Te){return typeof Te=="number"||/^\d+$/.test(String(Te))?Te+"px":Te};E!=null&&(this.display.wrapper.style.width=de(E)),ee!=null&&(this.display.wrapper.style.height=de(ee)),this.options.lineWrapping&&wl(this);var xe=this.display.viewFrom;this.doc.iter(xe,this.display.viewTo,function(Te){if(Te.widgets){for(var Ue=0;Ue<Te.widgets.length;Ue++)if(Te.widgets[Ue].noHScroll){Ao(oe,xe,"widget");break}}++xe}),this.curOp.forceUpdate=!0,ln(this,"refresh",this)}),operation:function(E){return Lr(this,E)},startOperation:function(){return _l(this)},endOperation:function(){return Ml(this)},refresh:$o(function(){var E=this.display.cachedTextHeight;yo(this),this.curOp.forceUpdate=!0,Hl(this),Rl(this,this.doc.scrollLeft,this.doc.scrollTop),De(this.display),(E==null||Math.abs(E-Vr(this.display))>.5||this.options.lineWrapping)&&Qo(this),ln(this,"refresh",this)}),swapDoc:$o(function(E){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),Vo(this,E),Hl(this),this.display.input.reset(),Rl(this,E.scrollLeft,E.scrollTop),this.curOp.forceScroll=!0,Ti(this,"swapDoc",this,ee),ee}),phrase:function(E){var ee=this.options.phrases;return ee&&Object.prototype.hasOwnProperty.call(ee,E)?ee[E]:E},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ye(a),a.registerHelper=function(E,ee,oe){x.hasOwnProperty(E)||(x[E]=a[E]={_global:[]}),x[E][ee]=oe},a.registerGlobalHelper=function(E,ee,oe,de){a.registerHelper(E,ee,de),x[E]._global.push({pred:oe,val:de})}}function Ou(a,b,x,E,ee){var oe=b,de=x,xe=hn(a,b.line),Te=ee&&a.direction=="rtl"?-x:x;function Ue(){var mo=b.line+Te;return mo<a.first||mo>=a.first+a.size?!1:(b=new Ke(mo,b.ch,b.sticky),xe=hn(a,mo))}function Xt(mo){var Xr;if(E=="codepoint"){var Do=xe.text.charCodeAt(b.ch+(E>0?0:-1));isNaN(Do)?Xr=null:Xr=new Ke(b.line,Math.max(0,Math.min(xe.text.length,b.ch+x*(Do>=55296&&Do<56320?2:1))),-x)}else ee?Xr=vu(a.cm,xe,b,x):Xr=Vs(xe,b,x);if(Xr==null)if(!mo&&Ue())b=nu(ee,a.cm,xe,b.line,Te);else return!1;else b=Xr;return!0}if(E=="char"||E=="codepoint")Xt();else if(E=="column")Xt(!0);else if(E=="word"||E=="group")for(var rn=null,An=E=="group",Dn=a.cm&&a.cm.getHelper(b,"wordChars"),tr=!0;!(x<0&&!Xt(!tr));tr=!1){var vr=xe.text.charAt(b.ch)||`
`,Ir=fe(vr,Dn)?"w":An&&vr==`
`?"n":!An||/\s/.test(vr)?null:"p";if(An&&!tr&&!Ir&&(Ir="s"),rn&&rn!=Ir){x<0&&(x=1,Xt(),b.sticky="after");break}if(Ir&&(rn=Ir),x>0&&!Xt(!tr))break}var Gr=Oa(a,b,oe,de,!0);return Yt(oe,Gr)&&(Gr.hitSide=!0),Gr}function $u(a,b,x,E){var ee=a.doc,oe=b.left,de;if(E=="page"){var xe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Te=Math.max(xe-.5*Vr(a.display),3);de=(x>0?b.bottom:b.top)+x*Te}else E=="line"&&(de=x>0?b.bottom+3:b.top-3);for(var Ue;Ue=bt(a,oe,de),!!Ue.outside;){if(x<0?de<=0:de>=ee.height){Ue.hitSide=!0;break}de+=x*5}return Ue}var ea=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(a){var b=this,x=this,E=x.cm,ee=x.div=a.lineDiv;Ru(ee,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function oe(xe){for(var Te=xe.target;Te;Te=Te.parentNode){if(Te==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Te.className))break}return!1}Mt(ee,"paste",function(xe){!oe(xe)||_t(E,xe)||Tu(xe,E)||me<=11&&setTimeout(Xn(E,function(){return b.updateFromDOM()}),20)}),Mt(ee,"compositionstart",function(xe){b.composing={data:xe.data,done:!1}}),Mt(ee,"compositionupdate",function(xe){b.composing||(b.composing={data:xe.data,done:!1})}),Mt(ee,"compositionend",function(xe){b.composing&&(xe.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Mt(ee,"touchstart",function(){return x.forceCompositionEnd()}),Mt(ee,"input",function(){b.composing||b.readFromDOMSoon()});function de(xe){if(!(!oe(xe)||_t(E,xe))){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()}),xe.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var Te=Lu(E);bu({lineWise:!0,text:Te.text}),xe.type=="cut"&&E.operation(function(){E.setSelections(Te.ranges,0,Ce),E.replaceSelection("",null,"cut")})}else return;if(xe.clipboardData){xe.clipboardData.clearData();var Ue=Ul.text.join(`
`);if(xe.clipboardData.setData("Text",Ue),xe.clipboardData.getData("Text")==Ue){xe.preventDefault();return}}var Xt=_u(),rn=Xt.firstChild;E.display.lineSpace.insertBefore(Xt,E.display.lineSpace.firstChild),rn.value=Ul.text.join(`
`);var An=document.activeElement;$e(rn),setTimeout(function(){E.display.lineSpace.removeChild(Xt),An.focus(),An==ee&&x.showPrimarySelection()},50)}}Mt(ee,"copy",de),Mt(ee,"cut",de)},ea.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var a=Ar(this.cm,!1);return a.focus=document.activeElement==this.div,a},ea.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,x=b.doc.sel.primary(),E=x.from(),ee=x.to();if(b.display.viewTo==b.display.viewFrom||E.line>=b.display.viewTo||ee.line<b.display.viewFrom){a.removeAllRanges();return}var oe=Cu(b,a.anchorNode,a.anchorOffset),de=Cu(b,a.focusNode,a.focusOffset);if(!(oe&&!oe.bad&&de&&!de.bad&&Tt(yt(oe,de),E)==0&&Tt(Zn(oe,de),ee)==0)){var xe=b.display.view,Te=E.line>=b.display.viewFrom&&Zu(b,E)||{node:xe[0].measure.map[2],offset:0},Ue=ee.line<b.display.viewTo&&Zu(b,ee);if(!Ue){var Xt=xe[xe.length-1].measure,rn=Xt.maps?Xt.maps[Xt.maps.length-1]:Xt.map;Ue={node:rn[rn.length-1],offset:rn[rn.length-2]-rn[rn.length-3]}}if(!Te||!Ue){a.removeAllRanges();return}var An=a.rangeCount&&a.getRangeAt(0),Dn;try{Dn=ge(Te.node,Te.offset,Ue.offset,Ue.node)}catch(tr){}Dn&&(!y&&b.state.focused?(a.collapse(Te.node,Te.offset),Dn.collapsed||(a.removeAllRanges(),a.addRange(Dn))):(a.removeAllRanges(),a.addRange(Dn)),An&&a.anchorNode==null?a.addRange(An):y&&this.startGracePeriod()),this.rememberSelection()}},ea.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},ea.prototype.showMultipleSelections=function(a){st(this.cm.display.cursorDiv,a.cursors),st(this.cm.display.selectionDiv,a.selection)},ea.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},ea.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Qe(this.div,b)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Lr(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},ea.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Oe&&be&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Cu(b,a.anchorNode,a.anchorOffset),E=Cu(b,a.focusNode,a.focusOffset);x&&E&&Lr(b,function(){Jr(b.doc,er(x,E),Ce),(x.bad||E.bad)&&(b.curOp.selectionChanged=!0)})}}},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,x=a.doc.sel.primary(),E=x.from(),ee=x.to();if(E.ch==0&&E.line>a.firstLine()&&(E=Ke(E.line-1,hn(a.doc,E.line-1).length)),ee.ch==hn(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=Ke(ee.line+1,0)),E.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var oe,de,xe;E.line==b.viewFrom||(oe=io(a,E.line))==0?(de=St(b.view[0].line),xe=b.view[0].node):(de=St(b.view[oe].line),xe=b.view[oe-1].node.nextSibling);var Te=io(a,ee.line),Ue,Xt;if(Te==b.view.length-1?(Ue=b.viewTo-1,Xt=b.lineDiv.lastChild):(Ue=St(b.view[Te+1].line)-1,Xt=b.view[Te+1].node.previousSibling),!xe)return!1;for(var rn=a.doc.splitLines(Gu(a,xe,Xt,de,Ue)),An=Bn(a.doc,Ke(de,0),Ke(Ue,hn(a.doc,Ue).text.length));rn.length>1&&An.length>1;)if(lt(rn)==lt(An))rn.pop(),An.pop(),Ue--;else if(rn[0]==An[0])rn.shift(),An.shift(),de++;else break;for(var Dn=0,tr=0,vr=rn[0],Ir=An[0],Gr=Math.min(vr.length,Ir.length);Dn<Gr&&vr.charCodeAt(Dn)==Ir.charCodeAt(Dn);)++Dn;for(var mo=lt(rn),Xr=lt(An),Do=Math.min(mo.length-(rn.length==1?Dn:0),Xr.length-(An.length==1?Dn:0));tr<Do&&mo.charCodeAt(mo.length-tr-1)==Xr.charCodeAt(Xr.length-tr-1);)++tr;if(rn.length==1&&An.length==1&&de==E.line)for(;Dn&&Dn>E.ch&&mo.charCodeAt(mo.length-tr-1)==Xr.charCodeAt(Xr.length-tr-1);)Dn--,tr++;rn[rn.length-1]=mo.slice(0,mo.length-tr).replace(/^\u200b+/,""),rn[0]=rn[0].slice(Dn).replace(/\u200b+$/,"");var ii=Ke(de,Dn),Uo=Ke(Ue,An.length?lt(An).length-tr:0);if(rn.length>1||rn[0]||Tt(ii,Uo))return Pi(a.doc,rn,ii,Uo,"+input"),!0},ea.prototype.ensurePolled=function(){this.forceCompositionEnd()},ea.prototype.reset=function(){this.forceCompositionEnd()},ea.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ea.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},ea.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Lr(this.cm,function(){return yo(a.cm)})},ea.prototype.setUneditable=function(a){a.contentEditable="false"},ea.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Xn(this.cm,Fu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},ea.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},ea.prototype.onContextMenu=function(){},ea.prototype.resetPosition=function(){},ea.prototype.needsContentAttribute=!0;function Zu(a,b){var x=Ol(a,b.line);if(!x||x.hidden)return null;var E=hn(a.doc,b.line),ee=zl(x,E,b.line),oe=Ze(E,a.doc.direction),de="left";if(oe){var xe=ht(oe,b.ch);de=xe%2?"right":"left"}var Te=Xl(ee.map,b.ch,de);return Te.offset=Te.collapse=="right"?Te.end:Te.start,Te}function Uu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Gs(a,b){return b&&(a.bad=!0),a}function Gu(a,b,x,E,ee){var oe="",de=!1,xe=a.doc.lineSeparator(),Te=!1;function Ue(Dn){return function(tr){return tr.id==Dn}}function Xt(){de&&(oe+=xe,Te&&(oe+=xe),de=Te=!1)}function rn(Dn){Dn&&(Xt(),oe+=Dn)}function An(Dn){if(Dn.nodeType==1){var tr=Dn.getAttribute("cm-text");if(tr){rn(tr);return}var vr=Dn.getAttribute("cm-marker"),Ir;if(vr){var Gr=a.findMarks(Ke(E,0),Ke(ee+1,0),Ue(+vr));Gr.length&&(Ir=Gr[0].find(0))&&rn(Bn(a.doc,Ir.from,Ir.to).join(xe));return}if(Dn.getAttribute("contenteditable")=="false")return;var mo=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;mo&&Xt();for(var Xr=0;Xr<Dn.childNodes.length;Xr++)An(Dn.childNodes[Xr]);/^(pre|p)$/i.test(Dn.nodeName)&&(Te=!0),mo&&(de=!0)}else Dn.nodeType==3&&rn(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;An(b),b!=x;)b=b.nextSibling,Te=!1;return oe}function Cu(a,b,x){var E;if(b==a.display.lineDiv){if(E=a.display.lineDiv.childNodes[x],!E)return Gs(a.clipPos(Ke(a.display.viewTo-1)),!0);b=null,x=0}else for(E=b;;E=E.parentNode){if(!E||E==a.display.lineDiv)return null;if(E.parentNode&&E.parentNode==a.display.lineDiv)break}for(var ee=0;ee<a.display.view.length;ee++){var oe=a.display.view[ee];if(oe.node==E)return Xu(oe,b,x)}}function Xu(a,b,x){var E=a.text.firstChild,ee=!1;if(!b||!Qe(E,b))return Gs(Ke(St(a.line),0),!0);if(b==E&&(ee=!0,b=E.childNodes[x],x=0,!b)){var oe=a.rest?lt(a.rest):a.line;return Gs(Ke(St(oe),oe.text.length),ee)}var de=b.nodeType==3?b:null,xe=b;for(!de&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(de=b.firstChild,x&&(x=de.nodeValue.length));xe.parentNode!=E;)xe=xe.parentNode;var Te=a.measure,Ue=Te.maps;function Xt(Ir,Gr,mo){for(var Xr=-1;Xr<(Ue?Ue.length:0);Xr++)for(var Do=Xr<0?Te.map:Ue[Xr],ii=0;ii<Do.length;ii+=3){var Uo=Do[ii+2];if(Uo==Ir||Uo==Gr){var Si=St(Xr<0?a.line:a.rest[Xr]),ca=Do[ii]+mo;return(mo<0||Uo!=Ir)&&(ca=Do[ii+(mo?1:0)]),Ke(Si,ca)}}}var rn=Xt(de,xe,x);if(rn)return Gs(rn,ee);for(var An=xe.nextSibling,Dn=de?de.nodeValue.length-x:0;An;An=An.nextSibling){if(rn=Xt(An,An.firstChild,0),rn)return Gs(Ke(rn.line,rn.ch-Dn),ee);Dn+=An.textContent.length}for(var tr=xe.previousSibling,vr=x;tr;tr=tr.previousSibling){if(rn=Xt(tr,tr.firstChild,-1),rn)return Gs(Ke(rn.line,rn.ch+vr),ee);vr+=tr.textContent.length}}var Ta=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ye,this.hasSelection=!1,this.composing=null};Ta.prototype.init=function(a){var b=this,x=this,E=this.cm;this.createField(a);var ee=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),ze&&(ee.style.width="0px"),Mt(ee,"input",function(){ve&&me>=9&&b.hasSelection&&(b.hasSelection=null),x.poll()}),Mt(ee,"paste",function(de){_t(E,de)||Tu(de,E)||(E.state.pasteIncoming=+new Date,x.fastPoll())});function oe(de){if(!_t(E,de)){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()});else if(E.options.lineWiseCopyCut){var xe=Lu(E);bu({lineWise:!0,text:xe.text}),de.type=="cut"?E.setSelections(xe.ranges,null,Ce):(x.prevInput="",ee.value=xe.text.join(`
`),$e(ee))}else return;de.type=="cut"&&(E.state.cutIncoming=+new Date)}}Mt(ee,"cut",oe),Mt(ee,"copy",oe),Mt(a.scroller,"paste",function(de){if(!(Qi(a,de)||_t(E,de))){if(!ee.dispatchEvent){E.state.pasteIncoming=+new Date,x.focus();return}var xe=new Event("paste");xe.clipboardData=de.clipboardData,ee.dispatchEvent(xe)}}),Mt(a.lineSpace,"selectstart",function(de){Qi(a,de)||Ot(de)}),Mt(ee,"compositionstart",function(){var de=E.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:de,range:E.markText(de,E.getCursor("to"),{className:"CodeMirror-composing"})}}),Mt(ee,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ta.prototype.createField=function(a){this.wrapper=_u(),this.textarea=this.wrapper.firstChild},Ta.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var a=this.cm,b=a.display,x=a.doc,E=Ar(a);if(a.options.moveInputWithCursor){var ee=Zi(a,x.sel.primary().head,"div"),oe=b.wrapper.getBoundingClientRect(),de=b.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+de.top-oe.top)),E.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+de.left-oe.left))}return E},Ta.prototype.showSelection=function(a){var b=this.cm,x=b.display;st(x.cursorDiv,a.cursors),st(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ta.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var x=b.getSelection();this.textarea.value=x,b.state.focused&&$e(this.textarea),ve&&me>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",ve&&me>=9&&(this.hasSelection=null))}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ee||we()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ta.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function x(){var E=b.poll();!E&&!a?(a=!0,b.polling.set(60,x)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,x)},Ta.prototype.poll=function(){var a=this,b=this.cm,x=this.textarea,E=this.prevInput;if(this.contextMenuPending||!b.state.focused||Cn(x)&&!E&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ee=x.value;if(ee==E&&!b.somethingSelected())return!1;if(ve&&me>=9&&this.hasSelection===ee||Pe&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var oe=ee.charCodeAt(0);if(oe==8203&&!E&&(E="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var de=0,xe=Math.min(E.length,ee.length);de<xe&&E.charCodeAt(de)==ee.charCodeAt(de);)++de;return Lr(b,function(){Fu(b,ee.slice(de),E.length-de,null,a.composing?"*compose":null),ee.length>1e3||ee.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=ee,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){ve&&me>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(a){var b=this,x=b.cm,E=x.display,ee=b.textarea;b.contextMenuPending&&b.contextMenuPending();var oe=gr(x,a),de=E.scroller.scrollTop;if(!oe||le)return;var xe=x.options.resetSelectionOnContextMenu;xe&&x.doc.sel.contains(oe)==-1&&Xn(x,Jr)(x.doc,er(oe),Ce);var Te=ee.style.cssText,Ue=b.wrapper.style.cssText,Xt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Xt.top-5)+"px; left: "+(a.clientX-Xt.left-5)+`px;
z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rn;pe&&(rn=window.scrollY),E.input.focus(),pe&&window.scrollTo(null,rn),E.input.reset(),x.somethingSelected()||(ee.value=b.prevInput=" "),b.contextMenuPending=Dn,E.selForContextMenu=x.doc.sel,clearTimeout(E.detectingSelectAll);function An(){if(ee.selectionStart!=null){var vr=x.somethingSelected(),Ir="\u200B"+(vr?ee.value:"");ee.value="\u21DA",ee.value=Ir,b.prevInput=vr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Ir.length,E.selForContextMenu=x.doc.sel}}function Dn(){if(b.contextMenuPending==Dn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Ue,ee.style.cssText=Te,ve&&me<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=de),ee.selectionStart!=null)){(!ve||ve&&me<9)&&An();var vr=0,Ir=function(){E.selForContextMenu==x.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Xn(x,Zo)(x):vr++<10?E.detectingSelectAll=setTimeout(Ir,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(Ir,200)}}if(ve&&me>=9&&An(),Ie){Ge(a);var tr=function(){cn(window,"mouseup",tr),setTimeout(Dn,20)};Mt(window,"mouseup",tr)}else setTimeout(Dn,50)},Ta.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function Yu(a,b){if(b=b?Nt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var x=we();b.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function E(){a.value=xe.getValue()}var ee;if(a.form&&(Mt(a.form,"submit",E),!b.leaveSubmitMethodAlone)){var oe=a.form;ee=oe.submit;try{var de=oe.submit=function(){E(),oe.submit=ee,oe.submit(),oe.submit=de}}catch(Te){}}b.finishInit=function(Te){Te.save=E,Te.getTextArea=function(){return a},Te.toTextArea=function(){Te.toTextArea=isNaN,E(),a.parentNode.removeChild(Te.getWrapperElement()),a.style.display="",a.form&&(cn(a.form,"submit",E),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var xe=Sa(function(Te){return a.parentNode.insertBefore(Te,a.nextSibling)},b);return xe}function Qu(a){a.off=cn,a.on=Mt,a.wheelEventPixels=_n,a.Doc=Gi,a.splitLines=un,a.countColumn=Le,a.findColumn=zt,a.isWordChar=ie,a.Pass=pt,a.signal=ln,a.Line=Po,a.changeEnd=Er,a.scrollbarModel=Qs,a.Pos=Ke,a.cmpPos=Tt,a.modes=tn,a.mimeModes=Wt,a.resolveMode=yn,a.getMode=jn,a.modeExtensions=Nn,a.extendMode=$n,a.copyState=Vn,a.startState=ur,a.innerMode=Wn,a.commands=ns,a.keyMap=Ma,a.keyName=ps,a.isModifierKey=eu,a.lookupKey=xs,a.normalizeKeyMap=Ka,a.StringStream=rr,a.SharedTextMarker=Ui,a.TextMarker=ll,a.LineWidget=Li,a.e_preventDefault=Ot,a.e_stopPropagation=Jt,a.e_stop=Ge,a.addClass=se,a.contains=Qe,a.rmClass=He,a.keyNames=gi}zu(Sa),Ku(Sa);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Eu in Gi.prototype)Gi.prototype.hasOwnProperty(Eu)&&Et(Ju,Eu)<0&&(Sa.prototype[Eu]=function(a){return function(){return a.apply(this.doc,arguments)}}(Gi.prototype[Eu]));return Ye(Gi),Sa.inputStyles={textarea:Ta,contenteditable:ea},Sa.defineMode=function(a){!Sa.defaults.mode&&a!="null"&&(Sa.defaults.mode=a),mn.apply(this,arguments)},Sa.defineMIME=an,Sa.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Sa.defineMIME("text/plain","null"),Sa.defineExtension=function(a,b){Sa.prototype[a]=b},Sa.defineDocExtension=function(a,b){Gi.prototype[a]=b},Sa.fromTextArea=Yu,Qu(Sa),Sa.version="5.58.2",Sa})},25419:function(En,Vt,z){(function(y){y(z(89780),z(15525),z(98101))})(function(y){"use strict";y.defineMode("markdown",function(he,ce){var Re=y.getMode(he,"text/html"),ve=Re.name=="null";function me(Le){if(y.findModeByName){var ye=y.findModeByName(Le);ye&&(Le=ye.mime||ye.mimes[0])}var Et=y.getMode(he,Le);return Et.name=="null"?null:Et}ce.highlightFormatting===void 0&&(ce.highlightFormatting=!1),ce.maxBlockquoteDepth===void 0&&(ce.maxBlockquoteDepth=0),ce.taskLists===void 0&&(ce.taskLists=!1),ce.strikethrough===void 0&&(ce.strikethrough=!1),ce.emoji===void 0&&(ce.emoji=!1),ce.fencedCodeBlockHighlighting===void 0&&(ce.fencedCodeBlockHighlighting=!0),ce.fencedCodeBlockDefaultMode===void 0&&(ce.fencedCodeBlockDefaultMode="text/plain"),ce.xml===void 0&&(ce.xml=!0),ce.tokenTypeOverrides===void 0&&(ce.tokenTypeOverrides={});var pe={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ne in pe)pe.hasOwnProperty(Ne)&&ce.tokenTypeOverrides[Ne]&&(pe[Ne]=ce.tokenTypeOverrides[Ne]);var be=/^([*\-_])(?:\s*\1){2,}\s*$/,le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,je=/^\[(x| )\](?=\s)/i,Ae=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,it=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ze=/^[^#!\[\]*_\\<>` "'(~:]+/,Oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ee=/^\s*\[[^\]]+?\]:.*$/,Pe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Fe=" ";function Ve(Le,ye,Et){return ye.f=ye.inline=Et,Et(Le,ye)}function dt(Le,ye,Et){return ye.f=ye.block=Et,Et(Le,ye)}function Se(Le){return!Le||!/\S/.test(Le.string)}function Ie(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==He){var ye=ve;if(!ye){var Et=y.innerMode(Re,Le.htmlState);ye=Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText}ye&&(Le.f=et,Le.block=Xe,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function Xe(Le,ye){var Et=Le.column()===ye.indentation,Zt=Se(ye.prevLine.stream),pt=ye.indentedCode,Ce=ye.prevLine.hr,at=ye.list!==!1,qe=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var zt=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,at)){for(ye.list=null;zt<ye.listStack[ye.listStack.length-1];)ye.listStack.pop(),ye.listStack.length?ye.indentation=ye.listStack[ye.listStack.length-1]:ye.list=!1;ye.list!==!1&&(ye.indentationDiff=zt-ye.listStack[ye.listStack.length-1])}var ut=!Zt&&!Ce&&!ye.prevLine.header&&(!at||!pt)&&!ye.prevLine.fencedCodeEnd,ct=(ye.list===!1||Ce||Zt)&&ye.indentation<=qe&&Le.match(be),lt=null;if(ye.indentationDiff>=4&&(pt||ye.prevLine.fencedCodeEnd||ye.prevLine.header||Zt))return Le.skipToEnd(),ye.indentedCode=!0,pe.code;if(Le.eatSpace())return null;if(Et&&ye.indentation<=qe&&(lt=Le.match(Ae))&&lt[1].length<=6)return ye.quote=0,ye.header=lt[1].length,ye.thisLine.header=!0,ce.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,st(ye);if(ye.indentation<=qe&&Le.eat(">"))return ye.quote=Et?1:ye.quote+1,ce.highlightFormatting&&(ye.formatting="quote"),Le.eatSpace(),st(ye);if(!ct&&!ye.setext&&Et&&ye.indentation<=qe&&(lt=Le.match(le))){var nn=lt[1]?"ol":"ul";return ye.indentation=zt+Le.current().length,ye.list=!0,ye.quote=0,ye.listStack.push(ye.indentation),ye.em=!1,ye.strong=!1,ye.code=!1,ye.strikethrough=!1,ce.taskLists&&Le.match(je,!1)&&(ye.taskList=!0),ye.f=ye.inline,ce.highlightFormatting&&(ye.formatting=["list","list-"+nn]),st(ye)}else{if(Et&&ye.indentation<=qe&&(lt=Le.match(Oe,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(lt[1]+"+ *$"),ye.localMode=ce.fencedCodeBlockHighlighting&&me(lt[2]||ce.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=y.startState(ye.localMode)),ye.f=ye.block=rt,ce.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,st(ye);if(ye.setext||(!ut||!at)&&!ye.quote&&ye.list===!1&&!ye.code&&!ct&&!Ee.test(Le.string)&&(lt=Le.lookAhead(1))&&(lt=lt.match(it)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Le.skipToEnd(),ce.highlightFormatting&&(ye.formatting="header")):(ye.header=lt[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,st(ye);if(ct)return Le.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,pe.hr;if(Le.peek()==="[")return Ve(Le,ye,ft)}return Ve(Le,ye,ye.inline)}function He(Le,ye){var Et=Re.token(Le,ye.htmlState);if(!ve){var Zt=y.innerMode(Re,ye.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||ye.md_inside&&Le.current().indexOf(">")>-1)&&(ye.f=et,ye.block=Xe,ye.htmlState=null)}return Et}function rt(Le,ye){var Et=ye.listStack[ye.listStack.length-1]||0,Zt=ye.indentation<Et,pt=Et+3;if(ye.fencedEndRE&&ye.indentation<=pt&&(Zt||Le.match(ye.fencedEndRE))){ce.highlightFormatting&&(ye.formatting="code-block");var Ce;return Zt||(Ce=st(ye)),ye.localMode=ye.localState=null,ye.block=Xe,ye.f=et,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,Zt?dt(Le,ye,ye.block):Ce}else return ye.localMode?ye.localMode.token(Le,ye.localState):(Le.skipToEnd(),pe.code)}function st(Le){var ye=[];if(Le.formatting){ye.push(pe.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var Et=0;Et<Le.formatting.length;Et++)ye.push(pe.formatting+"-"+Le.formatting[Et]),Le.formatting[Et]==="header"&&ye.push(pe.formatting+"-"+Le.formatting[Et]+"-"+Le.header),Le.formatting[Et]==="quote"&&(!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Le.quote?ye.push(pe.formatting+"-"+Le.formatting[Et]+"-"+Le.quote):ye.push("error"))}if(Le.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Le.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Le.linkHref?ye.push(pe.linkHref,"url"):(Le.strong&&ye.push(pe.strong),Le.em&&ye.push(pe.em),Le.strikethrough&&ye.push(pe.strikethrough),Le.emoji&&ye.push(pe.emoji),Le.linkText&&ye.push(pe.linkText),Le.code&&ye.push(pe.code),Le.image&&ye.push(pe.image),Le.imageAltText&&ye.push(pe.imageAltText,"link"),Le.imageMarker&&ye.push(pe.imageMarker)),Le.header&&ye.push(pe.header,pe.header+"-"+Le.header),Le.quote&&(ye.push(pe.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Le.quote?ye.push(pe.quote+"-"+Le.quote):ye.push(pe.quote+"-"+ce.maxBlockquoteDepth)),Le.list!==!1){var Zt=(Le.listStack.length-1)%3;Zt?Zt===1?ye.push(pe.list2):ye.push(pe.list3):ye.push(pe.list1)}return Le.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Le.trailingSpace&&ye.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function Je(Le,ye){if(Le.match(ze,!0))return st(ye)}function et(Le,ye){var Et=ye.text(Le,ye);if(typeof Et!="undefined")return Et;if(ye.list)return ye.list=null,st(ye);if(ye.taskList){var Zt=Le.match(je,!0)[1]===" ";return Zt?ye.taskOpen=!0:ye.taskClosed=!0,ce.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,st(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Le.match(/^#+$/,!0))return ce.highlightFormatting&&(ye.formatting="header"),st(ye);var pt=Le.next();if(ye.linkTitle){ye.linkTitle=!1;var Ce=pt;pt==="("&&(Ce=")"),Ce=(Ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var at="^\\s*(?:[^"+Ce+"\\\\]+|\\\\\\\\|\\\\.)"+Ce;if(Le.match(new RegExp(at),!0))return pe.linkHref}if(pt==="`"){var qe=ye.formatting;ce.highlightFormatting&&(ye.formatting="code"),Le.eatWhile("`");var zt=Le.current().length;if(ye.code==0&&(!ye.quote||zt==1))return ye.code=zt,st(ye);if(zt==ye.code){var ut=st(ye);return ye.code=0,ut}else return ye.formatting=qe,st(ye)}else if(ye.code)return st(ye);if(pt==="\\"&&(Le.next(),ce.highlightFormatting)){var ct=st(ye),lt=pe.formatting+"-escape";return ct?ct+" "+lt:lt}if(pt==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,ce.highlightFormatting&&(ye.formatting="image"),st(ye);if(pt==="["&&ye.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,ce.highlightFormatting&&(ye.formatting="image"),st(ye);if(pt==="]"&&ye.imageAltText){ce.highlightFormatting&&(ye.formatting="image");var ct=st(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=Qe,ct}if(pt==="["&&!ye.image)return ye.linkText&&Le.match(/^.*?\]/)||(ye.linkText=!0,ce.highlightFormatting&&(ye.formatting="link")),st(ye);if(pt==="]"&&ye.linkText){ce.highlightFormatting&&(ye.formatting="link");var ct=st(ye);return ye.linkText=!1,ye.inline=ye.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?Qe:et,ct}if(pt==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=ge,ce.highlightFormatting&&(ye.formatting="link");var ct=st(ye);return ct?ct+=" ":ct="",ct+pe.linkInline}if(pt==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=ge,ce.highlightFormatting&&(ye.formatting="link");var ct=st(ye);return ct?ct+=" ":ct="",ct+pe.linkEmail}if(ce.xml&&pt==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var nn=Le.string.indexOf(">",Le.pos);if(nn!=-1){var kt=Le.string.substring(Le.start,nn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(kt)&&(ye.md_inside=!0)}return Le.backUp(1),ye.htmlState=y.startState(Re),dt(Le,ye,He)}if(ce.xml&&pt==="<"&&Le.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if(pt==="*"||pt==="_"){for(var ae=1,ne=Le.pos==1?" ":Le.string.charAt(Le.pos-2);ae<3&&Le.eat(pt);)ae++;var te=Le.peek()||" ",ie=!/\s/.test(te)&&(!Pe.test(te)||/\s/.test(ne)||Pe.test(ne)),fe=!/\s/.test(ne)&&(!Pe.test(ne)||/\s/.test(te)||Pe.test(te)),re=null,ue=null;if(ae%2&&(!ye.em&&ie&&(pt==="*"||!fe||Pe.test(ne))?re=!0:ye.em==pt&&fe&&(pt==="*"||!ie||Pe.test(te))&&(re=!1)),ae>1&&(!ye.strong&&ie&&(pt==="*"||!fe||Pe.test(ne))?ue=!0:ye.strong==pt&&fe&&(pt==="*"||!ie||Pe.test(te))&&(ue=!1)),ue!=null||re!=null){ce.highlightFormatting&&(ye.formatting=re==null?"strong":ue==null?"em":"strong em"),re===!0&&(ye.em=pt),ue===!0&&(ye.strong=pt);var ut=st(ye);return re===!1&&(ye.em=!1),ue===!1&&(ye.strong=!1),ut}}else if(pt===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return st(ye);Le.backUp(1)}if(ce.strikethrough){if(pt==="~"&&Le.eatWhile(pt)){if(ye.strikethrough){ce.highlightFormatting&&(ye.formatting="strikethrough");var ut=st(ye);return ye.strikethrough=!1,ut}else if(Le.match(/^[^\s]/,!1))return ye.strikethrough=!0,ce.highlightFormatting&&(ye.formatting="strikethrough"),st(ye)}else if(pt===" "&&Le.match(/^~~/,!0)){if(Le.peek()===" ")return st(ye);Le.backUp(2)}}if(ce.emoji&&pt===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,ce.highlightFormatting&&(ye.formatting="emoji");var Me=st(ye);return ye.emoji=!1,Me}return pt===" "&&(Le.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),st(ye)}function ge(Le,ye){var Et=Le.next();if(Et===">"){ye.f=ye.inline=et,ce.highlightFormatting&&(ye.formatting="link");var Zt=st(ye);return Zt?Zt+=" ":Zt="",Zt+pe.linkInline}return Le.match(/^[^>]+/,!0),pe.linkInline}function Qe(Le,ye){if(Le.eatSpace())return null;var Et=Le.next();return Et==="("||Et==="["?(ye.f=ye.inline=se(Et==="("?")":"]"),ce.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,st(ye)):"error"}var we={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function se(Le){return function(ye,Et){var Zt=ye.next();if(Zt===Le){Et.f=Et.inline=et,ce.highlightFormatting&&(Et.formatting="link-string");var pt=st(Et);return Et.linkHref=!1,pt}return ye.match(we[Le]),Et.linkHref=!0,st(Et)}}function ft(Le,ye){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=$e,Le.next(),ce.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,st(ye)):Ve(Le,ye,et)}function $e(Le,ye){if(Le.match(/^\]:/,!0)){ye.f=ye.inline=tt,ce.highlightFormatting&&(ye.formatting="link");var Et=st(ye);return ye.linkText=!1,Et}return Le.match(/^([^\]\\]|\\.)+/,!0),pe.linkText}function tt(Le,ye){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?ye.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=et,pe.linkHref+" url")}var Nt={startState:function(){return{f:Xe,prevLine:{stream:null},thisLine:{stream:null},block:Xe,htmlState:null,indentation:0,inline:et,text:Je,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&y.copyState(Re,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?y.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,ye){if(ye.formatting=!1,Le!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Le.match(/^\s*$/,!0))return Ie(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Le},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=He)){var Et=Le.match(/^\s*/,!0)[0].replace(/\t/g,Fe).length;if(ye.indentation=Et,ye.indentationDiff=null,Et>0)return null}}return ye.f(Le,ye)},innerMode:function(Le){return Le.block==He?{state:Le.htmlState,mode:Re}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:Nt}},indent:function(Le,ye,Et){return Le.block==He&&Re.indent?Re.indent(Le.htmlState,ye,Et):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,ye,Et):y.Pass},blankLine:Ie,getType:st,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Nt},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(En,Vt,z){(function(y){y(z(89780))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var he=0;he<y.modeInfo.length;he++){var ce=y.modeInfo[he];ce.mimes&&(ce.mime=ce.mimes[0])}y.findModeByMIME=function(Re){Re=Re.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.mime==Re)return me;if(me.mimes){for(var pe=0;pe<me.mimes.length;pe++)if(me.mimes[pe]==Re)return me}}if(/\+xml$/.test(Re))return y.findModeByMIME("application/xml");if(/\+json$/.test(Re))return y.findModeByMIME("application/json")},y.findModeByExtension=function(Re){Re=Re.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.ext){for(var pe=0;pe<me.ext.length;pe++)if(me.ext[pe]==Re)return me}}},y.findModeByFileName=function(Re){for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.file&&me.file.test(Re))return me}var pe=Re.lastIndexOf("."),Ne=pe>-1&&Re.substring(pe+1,Re.length);if(Ne)return y.findModeByExtension(Ne)},y.findModeByName=function(Re){Re=Re.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.name.toLowerCase()==Re)return me;if(me.alias){for(var pe=0;pe<me.alias.length;pe++)if(me.alias[pe].toLowerCase()==Re)return me}}}})},67549:function(En,Vt,z){(function(y){y(z(89780))})(function(y){"use strict";y.defineMode("stex",function(he,ce){"use strict";function Re(ze,Oe){ze.cmdState.push(Oe)}function ve(ze){return ze.cmdState.length>0?ze.cmdState[ze.cmdState.length-1]:null}function me(ze){var Oe=ze.cmdState.pop();Oe&&Oe.closeBracket()}function pe(ze){for(var Oe=ze.cmdState,Ee=Oe.length-1;Ee>=0;Ee--){var Pe=Oe[Ee];if(Pe.name!="DEFAULT")return Pe}return{styleIdentifier:function(){return null}}}function Ne(ze,Oe,Ee){return function(){this.name=ze,this.bracketNo=0,this.style=Oe,this.styles=Ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var be={};be.importmodule=Ne("importmodule","tag",["string","builtin"]),be.documentclass=Ne("documentclass","tag",["","atom"]),be.usepackage=Ne("usepackage","tag",["atom"]),be.begin=Ne("begin","tag",["atom"]),be.end=Ne("end","tag",["atom"]),be.label=Ne("label","tag",["atom"]),be.ref=Ne("ref","tag",["atom"]),be.eqref=Ne("eqref","tag",["atom"]),be.cite=Ne("cite","tag",["atom"]),be.bibitem=Ne("bibitem","tag",["atom"]),be.Bibitem=Ne("Bibitem","tag",["atom"]),be.RBibitem=Ne("RBibitem","tag",["atom"]),be.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function le(ze,Oe){ze.f=Oe}function je(ze,Oe){var Ee;if(ze.match(/^\\[a-zA-Z@]+/)){var Pe=ze.current().slice(1);return Ee=be.hasOwnProperty(Pe)?be[Pe]:be.DEFAULT,Ee=new Ee,Re(Oe,Ee),le(Oe,it),Ee.style}if(ze.match(/^\\[$&%#{}_]/)||ze.match(/^\\[,;!\/\\]/))return"tag";if(ze.match("\\["))return le(Oe,function(Ve,dt){return Ae(Ve,dt,"\\]")}),"keyword";if(ze.match("\\("))return le(Oe,function(Ve,dt){return Ae(Ve,dt,"\\)")}),"keyword";if(ze.match("$$"))return le(Oe,function(Ve,dt){return Ae(Ve,dt,"$$")}),"keyword";if(ze.match("$"))return le(Oe,function(Ve,dt){return Ae(Ve,dt,"$")}),"keyword";var Fe=ze.next();if(Fe=="%")return ze.skipToEnd(),"comment";if(Fe=="}"||Fe=="]"){if(Ee=ve(Oe),Ee)Ee.closeBracket(Fe),le(Oe,it);else return"error";return"bracket"}else return Fe=="{"||Fe=="["?(Ee=be.DEFAULT,Ee=new Ee,Re(Oe,Ee),"bracket"):/\d/.test(Fe)?(ze.eatWhile(/[\w.%]/),"atom"):(ze.eatWhile(/[\w\-_]/),Ee=pe(Oe),Ee.name=="begin"&&(Ee.argument=ze.current()),Ee.styleIdentifier())}function Ae(ze,Oe,Ee){if(ze.eatSpace())return null;if(Ee&&ze.match(Ee))return le(Oe,je),"keyword";if(ze.match(/^\\[a-zA-Z@]+/))return"tag";if(ze.match(/^[a-zA-Z]+/))return"variable-2";if(ze.match(/^\\[$&%#{}_]/)||ze.match(/^\\[,;!\/]/)||ze.match(/^[\^_&]/))return"tag";if(ze.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ze.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Pe=ze.next();return Pe=="{"||Pe=="}"||Pe=="["||Pe=="]"||Pe=="("||Pe==")"?"bracket":Pe=="%"?(ze.skipToEnd(),"comment"):"error"}function it(ze,Oe){var Ee=ze.peek(),Pe;return Ee=="{"||Ee=="["?(Pe=ve(Oe),Pe.openBracket(Ee),ze.eat(Ee),le(Oe,je),"bracket"):/[ \t\r]/.test(Ee)?(ze.eat(Ee),null):(le(Oe,je),me(Oe),je(ze,Oe))}return{startState:function(){var ze=ce.inMathMode?function(Oe,Ee){return Ae(Oe,Ee)}:je;return{cmdState:[],f:ze}},copyState:function(ze){return{cmdState:ze.cmdState.slice(),f:ze.f}},token:function(ze,Oe){return Oe.f(ze,Oe)},blankLine:function(ze){ze.f=je,ze.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(En,Vt,z){(function(y){y(z(89780))})(function(y){"use strict";var he={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(Re,ve){var me=Re.indentUnit,pe={},Ne=ve.htmlMode?he:ce;for(var be in Ne)pe[be]=Ne[be];for(var be in ve)pe[be]=ve[be];var le,je;function Ae(ge,Qe){function we($e){return Qe.tokenize=$e,$e(ge,Qe)}var se=ge.next();if(se=="<")return ge.eat("!")?ge.eat("[")?ge.match("CDATA[")?we(Oe("atom","]]>")):null:ge.match("--")?we(Oe("comment","-->")):ge.match("DOCTYPE",!0,!0)?(ge.eatWhile(/[\w\._\-]/),we(Ee(1))):null:ge.eat("?")?(ge.eatWhile(/[\w\._\-]/),Qe.tokenize=Oe("meta","?>"),"meta"):(le=ge.eat("/")?"closeTag":"openTag",Qe.tokenize=it,"tag bracket");if(se=="&"){var ft;return ge.eat("#")?ge.eat("x")?ft=ge.eatWhile(/[a-fA-F\d]/)&&ge.eat(";"):ft=ge.eatWhile(/[\d]/)&&ge.eat(";"):ft=ge.eatWhile(/[\w\.\-:]/)&&ge.eat(";"),ft?"atom":"error"}else return ge.eatWhile(/[^&<]/),null}Ae.isInText=!0;function it(ge,Qe){var we=ge.next();if(we==">"||we=="/"&&ge.eat(">"))return Qe.tokenize=Ae,le=we==">"?"endTag":"selfcloseTag","tag bracket";if(we=="=")return le="equals",null;if(we=="<"){Qe.tokenize=Ae,Qe.state=dt,Qe.tagName=Qe.tagStart=null;var se=Qe.tokenize(ge,Qe);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(we)?(Qe.tokenize=ze(we),Qe.stringStartCol=ge.column(),Qe.tokenize(ge,Qe)):(ge.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ze(ge){var Qe=function(we,se){for(;!we.eol();)if(we.next()==ge){se.tokenize=it;break}return"string"};return Qe.isInAttribute=!0,Qe}function Oe(ge,Qe){return function(we,se){for(;!we.eol();){if(we.match(Qe)){se.tokenize=Ae;break}we.next()}return ge}}function Ee(ge){return function(Qe,we){for(var se;(se=Qe.next())!=null;){if(se=="<")return we.tokenize=Ee(ge+1),we.tokenize(Qe,we);if(se==">")if(ge==1){we.tokenize=Ae;break}else return we.tokenize=Ee(ge-1),we.tokenize(Qe,we)}return"meta"}}function Pe(ge,Qe,we){this.prev=ge.context,this.tagName=Qe,this.indent=ge.indented,this.startOfLine=we,(pe.doNotIndent.hasOwnProperty(Qe)||ge.context&&ge.context.noIndent)&&(this.noIndent=!0)}function Fe(ge){ge.context&&(ge.context=ge.context.prev)}function Ve(ge,Qe){for(var we;;){if(!ge.context||(we=ge.context.tagName,!pe.contextGrabbers.hasOwnProperty(we)||!pe.contextGrabbers[we].hasOwnProperty(Qe)))return;Fe(ge)}}function dt(ge,Qe,we){return ge=="openTag"?(we.tagStart=Qe.column(),Se):ge=="closeTag"?Ie:dt}function Se(ge,Qe,we){return ge=="word"?(we.tagName=Qe.current(),je="tag",rt):pe.allowMissingTagName&&ge=="endTag"?(je="tag bracket",rt(ge,Qe,we)):(je="error",Se)}function Ie(ge,Qe,we){if(ge=="word"){var se=Qe.current();return we.context&&we.context.tagName!=se&&pe.implicitlyClosed.hasOwnProperty(we.context.tagName)&&Fe(we),we.context&&we.context.tagName==se||pe.matchClosing===!1?(je="tag",Xe):(je="tag error",He)}else return pe.allowMissingTagName&&ge=="endTag"?(je="tag bracket",Xe(ge,Qe,we)):(je="error",He)}function Xe(ge,Qe,we){return ge!="endTag"?(je="error",Xe):(Fe(we),dt)}function He(ge,Qe,we){return je="error",Xe(ge,Qe,we)}function rt(ge,Qe,we){if(ge=="word")return je="attribute",st;if(ge=="endTag"||ge=="selfcloseTag"){var se=we.tagName,ft=we.tagStart;return we.tagName=we.tagStart=null,ge=="selfcloseTag"||pe.autoSelfClosers.hasOwnProperty(se)?Ve(we,se):(Ve(we,se),we.context=new Pe(we,se,ft==we.indented)),dt}return je="error",rt}function st(ge,Qe,we){return ge=="equals"?Je:(pe.allowMissing||(je="error"),rt(ge,Qe,we))}function Je(ge,Qe,we){return ge=="string"?et:ge=="word"&&pe.allowUnquoted?(je="string",rt):(je="error",rt(ge,Qe,we))}function et(ge,Qe,we){return ge=="string"?et:rt(ge,Qe,we)}return{startState:function(ge){var Qe={tokenize:Ae,state:dt,indented:ge||0,tagName:null,tagStart:null,context:null};return ge!=null&&(Qe.baseIndent=ge),Qe},token:function(ge,Qe){if(!Qe.tagName&&ge.sol()&&(Qe.indented=ge.indentation()),ge.eatSpace())return null;le=null;var we=Qe.tokenize(ge,Qe);return(we||le)&&we!="comment"&&(je=null,Qe.state=Qe.state(le||we,ge,Qe),je&&(we=je=="error"?we+" error":je)),we},indent:function(ge,Qe,we){var se=ge.context;if(ge.tokenize.isInAttribute)return ge.tagStart==ge.indented?ge.stringStartCol+1:ge.indented+me;if(se&&se.noIndent)return y.Pass;if(ge.tokenize!=it&&ge.tokenize!=Ae)return we?we.match(/^(\s*)/)[0].length:0;if(ge.tagName)return pe.multilineTagIndentPastTag!==!1?ge.tagStart+ge.tagName.length+2:ge.tagStart+me*(pe.multilineTagIndentFactor||1);if(pe.alignCDATA&&/<!\[CDATA\[/.test(Qe))return 0;var ft=Qe&&/^<(\/)?([\w_:\.-]*)/.exec(Qe);if(ft&&ft[1])for(;se;)if(se.tagName==ft[2]){se=se.prev;break}else if(pe.implicitlyClosed.hasOwnProperty(se.tagName))se=se.prev;else break;else if(ft)for(;se;){var $e=pe.contextGrabbers[se.tagName];if($e&&$e.hasOwnProperty(ft[2]))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+me:ge.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:pe.htmlMode?"html":"xml",helperType:pe.htmlMode?"html":"xml",skipAttribute:function(ge){ge.state==Je&&(ge.state=rt)},xmlCurrentTag:function(ge){return ge.tagName?{name:ge.tagName,close:ge.type=="closeTag"}:null},xmlCurrentContext:function(ge){for(var Qe=[],we=ge.context;we;we=we.prev)we.tagName&&Qe.push(we.tagName);return Qe.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(En,Vt,z){var y,he;(function(ce,Re){En.exports=Re(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z.g!="undefined"?z.g:this,function(ce){"use strict";ce=ce||{};var Re=ce.Base64,ve="2.6.4",me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=function(we){for(var se={},ft=0,$e=we.length;ft<$e;ft++)se[we.charAt(ft)]=ft;return se}(me),Ne=String.fromCharCode,be=function(we){if(we.length<2){var se=we.charCodeAt(0);return se<128?we:se<2048?Ne(192|se>>>6)+Ne(128|se&63):Ne(224|se>>>12&15)+Ne(128|se>>>6&63)+Ne(128|se&63)}else{var se=65536+(we.charCodeAt(0)-55296)*1024+(we.charCodeAt(1)-56320);return Ne(240|se>>>18&7)+Ne(128|se>>>12&63)+Ne(128|se>>>6&63)+Ne(128|se&63)}},le=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,je=function(we){return we.replace(le,be)},Ae=function(we){var se=[0,2,1][we.length%3],ft=we.charCodeAt(0)<<16|(we.length>1?we.charCodeAt(1):0)<<8|(we.length>2?we.charCodeAt(2):0),$e=[me.charAt(ft>>>18),me.charAt(ft>>>12&63),se>=2?"=":me.charAt(ft>>>6&63),se>=1?"=":me.charAt(ft&63)];return $e.join("")},it=ce.btoa&&typeof ce.btoa=="function"?function(we){return ce.btoa(we)}:function(we){if(we.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return we.replace(/[\s\S]{1,3}/g,Ae)},ze=function(we){return it(je(String(we)))},Oe=function(we){return we.replace(/[+\/]/g,function(se){return se=="+"?"-":"_"}).replace(/=/g,"")},Ee=function(we,se){return se?Oe(ze(we)):ze(we)},Pe=function(we){return Ee(we,!0)},Fe;ce.Uint8Array&&(Fe=function(we,se){for(var ft="",$e=0,tt=we.length;$e<tt;$e+=3){var Nt=we[$e],Le=we[$e+1],ye=we[$e+2],Et=Nt<<16|Le<<8|ye;ft+=me.charAt(Et>>>18)+me.charAt(Et>>>12&63)+(typeof Le!="undefined"?me.charAt(Et>>>6&63):"=")+(typeof ye!="undefined"?me.charAt(Et&63):"=")}return se?Oe(ft):ft});var Ve=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,dt=function(we){switch(we.length){case 4:var se=(7&we.charCodeAt(0))<<18|(63&we.charCodeAt(1))<<12|(63&we.charCodeAt(2))<<6|63&we.charCodeAt(3),ft=se-65536;return Ne((ft>>>10)+55296)+Ne((ft&1023)+56320);case 3:return Ne((15&we.charCodeAt(0))<<12|(63&we.charCodeAt(1))<<6|63&we.charCodeAt(2));default:return Ne((31&we.charCodeAt(0))<<6|63&we.charCodeAt(1))}},Se=function(we){return we.replace(Ve,dt)},Ie=function(we){var se=we.length,ft=se%4,$e=(se>0?pe[we.charAt(0)]<<18:0)|(se>1?pe[we.charAt(1)]<<12:0)|(se>2?pe[we.charAt(2)]<<6:0)|(se>3?pe[we.charAt(3)]:0),tt=[Ne($e>>>16),Ne($e>>>8&255),Ne($e&255)];return tt.length-=[0,0,2,1][ft],tt.join("")},Xe=ce.atob&&typeof ce.atob=="function"?function(we){return ce.atob(we)}:function(we){return we.replace(/\S{1,4}/g,Ie)},He=function(we){return Xe(String(we).replace(/[^A-Za-z0-9\+\/]/g,""))},rt=function(we){return Se(Xe(we))},st=function(we){return String(we).replace(/[-_]/g,function(se){return se=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Je=function(we){return rt(st(we))},et;ce.Uint8Array&&(et=function(we){return Uint8Array.from(He(st(we)),function(se){return se.charCodeAt(0)})});var ge=function(){var we=ce.Base64;return ce.Base64=Re,we};if(ce.Base64={VERSION:ve,atob:He,btoa:it,fromBase64:Je,toBase64:Ee,utob:je,encode:Ee,encodeURI:Pe,btou:Se,decode:Je,noConflict:ge,fromUint8Array:Fe,toUint8Array:et},typeof Object.defineProperty=="function"){var Qe=function(we){return{value:we,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Qe(function(){return Je(this)})),Object.defineProperty(String.prototype,"toBase64",Qe(function(we){return Ee(this,we)})),Object.defineProperty(String.prototype,"toBase64URI",Qe(function(){return Ee(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),En.exports?En.exports.Base64=ce.Base64:(y=[],he=function(){return ce.Base64}.apply(Vt,y),he!==void 0&&(En.exports=he)),{Base64:ce.Base64}})},2859:function(En,Vt,z){"use strict";z.d(Vt,{hP:function(){return kt}});var y=function(ae,ne){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var fe in ie)Object.prototype.hasOwnProperty.call(ie,fe)&&(te[fe]=ie[fe])})(ae,ne)};function he(ae,ne){function te(){this.constructor=ae}y(ae,ne),ae.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function ce(ae,ne,te,ie){return new(te||(te=Promise))(function(fe,re){function ue(_e){try{gt(ie.next(_e))}catch(ke){re(ke)}}function Me(_e){try{gt(ie.throw(_e))}catch(ke){re(ke)}}function gt(_e){var ke;_e.done?fe(_e.value):(ke=_e.value,ke instanceof te?ke:new te(function(ot){ot(ke)})).then(ue,Me)}gt((ie=ie.apply(ae,ne||[])).next())})}function Re(ae,ne){var te,ie,fe,re,ue={label:0,sent:function(){if(1&fe[0])throw fe[1];return fe[1]},trys:[],ops:[]};return re={next:Me(0),throw:Me(1),return:Me(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function Me(gt){return function(_e){return function(ke){if(te)throw new TypeError("Generator is already executing.");for(;ue;)try{if(te=1,ie&&(fe=2&ke[0]?ie.return:ke[0]?ie.throw||((fe=ie.return)&&fe.call(ie),0):ie.next)&&!(fe=fe.call(ie,ke[1])).done)return fe;switch(ie=0,fe&&(ke=[2&ke[0],fe.value]),ke[0]){case 0:case 1:fe=ke;break;case 4:return ue.label++,{value:ke[1],done:!1};case 5:ue.label++,ie=ke[1],ke=[0];continue;case 7:ke=ue.ops.pop(),ue.trys.pop();continue;default:if(fe=ue.trys,!((fe=fe.length>0&&fe[fe.length-1])||ke[0]!==6&&ke[0]!==2)){ue=0;continue}if(ke[0]===3&&(!fe||ke[1]>fe[0]&&ke[1]<fe[3])){ue.label=ke[1];break}if(ke[0]===6&&ue.label<fe[1]){ue.label=fe[1],fe=ke;break}if(fe&&ue.label<fe[2]){ue.label=fe[2],ue.ops.push(ke);break}fe[2]&&ue.ops.pop(),ue.trys.pop();continue}ke=ne.call(ae,ue)}catch(ot){ke=[6,ot],ie=0}finally{te=fe=0}if(5&ke[0])throw ke[1];return{value:ke[0]?ke[1]:void 0,done:!0}}([gt,_e])}}}function ve(){for(var ae=0,ne=0,te=arguments.length;ne<te;ne++)ae+=arguments[ne].length;var ie=Array(ae),fe=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],ue=0,Me=re.length;ue<Me;ue++,fe++)ie[fe]=re[ue];return ie}var me=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ne,te){for(var ie=0,fe=te;ie<fe.length;ie++){var re=fe[ie],ue=re[0],Me=re[1];ne.setAttribute(ue,Me)}},ae.createRect=function(ne,te,ie){var fe=document.createElementNS("http://www.w3.org/2000/svg","rect");return fe.setAttribute("width",ne.toString()),fe.setAttribute("height",te.toString()),ie&&ae.setAttributes(fe,ie),fe},ae.createLine=function(ne,te,ie,fe,re){var ue=document.createElementNS("http://www.w3.org/2000/svg","line");return ue.setAttribute("x1",ne.toString()),ue.setAttribute("y1",te.toString()),ue.setAttribute("x2",ie.toString()),ue.setAttribute("y2",fe.toString()),re&&ae.setAttributes(ue,re),ue},ae.createPolygon=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",ne),te&&ae.setAttributes(ie,te),ie},ae.createCircle=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(ne/2).toString()),ie.setAttribute("cy",(ne/2).toString()),ie.setAttribute("r",ne.toString()),te&&ae.setAttributes(ie,te),ie},ae.createEllipse=function(ne,te,ie){var fe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return fe.setAttribute("cx",(ne/2).toString()),fe.setAttribute("cy",(te/2).toString()),fe.setAttribute("rx",(ne/2).toString()),fe.setAttribute("ry",(te/2).toString()),ie&&ae.setAttributes(fe,ie),fe},ae.createGroup=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&ae.setAttributes(te,ne),te},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ne,te,ie,fe,re,ue,Me){var gt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(gt,[["id",ne],["orient",te],["markerWidth",ie.toString()],["markerHeight",fe.toString()],["refX",re.toString()],["refY",ue.toString()]]),gt.appendChild(Me),gt},ae.createText=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),ne&&ae.setAttributes(te,ne),te},ae.createTSpan=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=ne,te&&ae.setAttributes(ie,te),ie},ae.createImage=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&ae.setAttributes(te,ne),te},ae.createPoint=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=ne,ie.y=te,ie},ae.createPath=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",ne),te&&ae.setAttributes(ie,te),ie},ae}(),pe=function(){function ae(){}return ae.addKey=function(ne){ae.key=ne},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Ne=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ne,te,ie){var fe=this;return new Promise(function(re){var ue=ie!==void 0?ie:document.createElement("canvas");ne===null&&(fe.markersOnly=!0,fe.naturalSize=!1);var Me=document.createElementNS("http://www.w3.org/2000/svg","svg");Me.setAttribute("xmlns","http://www.w3.org/2000/svg"),Me.setAttribute("width",te.width.baseVal.valueAsString),Me.setAttribute("height",te.height.baseVal.valueAsString),Me.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),Me.innerHTML=te.innerHTML,fe.naturalSize===!0?(Me.width.baseVal.value=ne.naturalWidth,Me.height.baseVal.value=ne.naturalHeight):fe.width!==void 0&&fe.height!==void 0&&(Me.width.baseVal.value=fe.width,Me.height.baseVal.value=fe.height),ue.width=Me.width.baseVal.value,ue.height=Me.height.baseVal.value;var gt=Me.outerHTML,_e=ue.getContext("2d");fe.markersOnly!==!0&&_e.drawImage(ne,0,0,ue.width,ue.height);var ke=window.URL,ot=new Image(ue.width,ue.height);ot.setAttribute("crossOrigin","anonymous");var ht=new Blob([gt],{type:"image/svg+xml"}),wt=ke.createObjectURL(ht);ot.onload=function(){_e.drawImage(ot,0,0),ke.revokeObjectURL(wt);var Ze=ue.toDataURL(fe.imageType,fe.imageQuality);re(Ze)},ot.src=wt})},ae}(),be=function(){},le=function(){function ae(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ne){return this.styleSheet===void 0&&this.addStyleSheet(),ne.name=""+this.classNamePrefix+ne.localName,this.classes.push(ne),this.styleSheet.sheet.insertRule("."+ne.name+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length),ne},ae.prototype.addRule=function(ne){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ne),this.styleSheet.sheet.insertRule(ne.selector+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ne;this.styleSheet=document.createElement("style"),((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).appendChild(this.styleSheet),this.addRule(new je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ae("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ae("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),je=function(ae,ne){this.selector=ae,this.style=ne},Ae=function(ae,ne){this.localName=ae,this.style=ne},it=function(){function ae(ne,te,ie,fe,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=ie,this.uiStyleSettings=fe,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ne){var te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(re){var ue=document.createElement("div");ue.className=""+te.toolbarButtonStyleClass.name,ue.setAttribute("data-type-name",re.typeName),ue.innerHTML=re.icon,ue.addEventListener("click",function(){te.markerToolbarButtonClicked(ue,re)}),te.buttons.push(ue),te.markerButtons.push(ue)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var fe=document.createElement("div");fe.className=this.toolbarBlockStyleClass.name,fe.style.whiteSpace="nowrap",fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(fe),this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(fe,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ae.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var te=0;te<this.markerButtons.length;te++)te<ne||te===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[te]):(te===ne&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[te]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var ne=this;this.buttons.forEach(function(te){te.className=te.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),te.className=te.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),te.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ne,te,ie){var fe=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",ie),re.addEventListener("click",function(){fe.actionToolbarButtonClicked(re,ie)}),ie){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ae("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ae("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ae("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ae("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ae("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ae("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
padding: `+ne+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ae("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ae("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(ne,te){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){te.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),ze=function(){function ae(ne,te,ie,fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=ie,this.styles=fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new Ae("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ae("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ae("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ae("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ae("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ae("toolbox-panel-row_colors",`
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ae("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ae("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ae("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(ne){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ne){var te,ie,fe=this;this.panels=ne,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var ue;re.uiStyleSettings=fe.uiStyleSettings;var Me=document.createElement("div");Me.className=fe.toolboxButtonStyleClass.name+" "+((ue=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ue!==void 0?ue:fe.toolboxButtonStyleColorsClass.name),Me.innerHTML=re.icon,Me.title=re.title,Me.addEventListener("click",function(){fe.panelButtonClick(re)}),fe.panelButtons.push(Me),fe.buttonRow.appendChild(Me)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,ie=-1;if(ne!==this.activePanel){ie=this.panels.indexOf(ne),this.panelRow.innerHTML="";var fe=ne.getUi();fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(fe),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ne}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){te.displayMode==="inline"?te.panelRow.style.display="none":te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,ue){var Me,gt;re.className=te.toolboxButtonStyleClass.name+" "+(ue===ie?""+((Me=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Me!==void 0?Me:te.toolboxActiveButtonStyleColorsClass.name):""+((gt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&gt!==void 0?gt:te.toolboxButtonStyleColorsClass.name))})},ae}(),Oe=function(ae,ne){this.title=ae,this.icon=ne},Ee=function(ae){function ne(te,ie,fe,re){var ue=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ue.colors=[],ue.addTransparent=!1,ue.colorBoxes=[],ue.colors=ie,ue.currentColor=fe,ue.setCurrentColor=ue.setCurrentColor.bind(ue),ue.getColorBox=ue.getColorBox.bind(ue),ue}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(fe){var re=te.getColorBox(fe);ie.appendChild(re),te.colorBoxes.push(re)}),ie},ne.prototype.getColorBox=function(te){var ie=this,fe=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-fe,ue=document.createElement("div");ue.style.display="inline-block",ue.style.boxSizing="content-box",ue.style.width=re-2+"px",ue.style.height=re-2+"px",ue.style.padding="1px",ue.style.marginRight="2px",ue.style.marginBottom="2px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.borderRadius=(re+2)/2+"px",ue.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){ie.setCurrentColor(te,ue)});var Me=document.createElement("div");return Me.style.display="inline-block",Me.style.width=re-2+"px",Me.style.height=re-2+"px",Me.style.backgroundColor=te,Me.style.borderRadius=re/2+"px",te==="transparent"&&(Me.style.fill=this.uiStyleSettings.toolboxAccentColor,Me.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ue.appendChild(Me),ue},ne.prototype.setCurrentColor=function(te,ie){var fe=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(Oe),Pe=function(){function ae(ne,te,ie){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=te,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ne,te){},ae.prototype.dblClick=function(ne,te){},ae.prototype.manipulate=function(ne){},ae.prototype.pointerUp=function(ne){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ae.prototype.scale=function(ne,te){},ae.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ae.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Fe=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},ae}(),Ve=function(){function ae(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ae}(),dt=function(){function ae(){}return ae.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ae.toSVGMatrix=function(ne,te){return ne.a=te.a,ne.b=te.b,ne.c=te.c,ne.d=te.d,ne.e=te.e,ne.f=te.f,ne},ae}(),Se=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(me.createTransform()),re.setupControlBox(),re}return he(ne,ae),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var ie=me.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!!(this.controlGrips.findGripByVisual(te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te))},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.left=te.x,this.top=te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var fe=this.unrotatePoint(te);if(this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.offsetX=fe.x-this.left,this.offsetY=fe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},ne.prototype.manipulate=function(te){var ie=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(te)},ne.prototype.resize=function(te){var ie=this.manipulationStartLeft,fe=this.manipulationStartWidth,re=this.manipulationStartTop,ue=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+te.x-this.manipulationStartX,fe=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:fe=this.manipulationStartWidth+te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+te.y-this.manipulationStartY,ue=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ue=this.manipulationStartHeight+te.y-this.manipulationStartY}fe>=0?(this.left=ie,this.width=fe):(this.left=ie+fe,this.width=-fe),ue>=0?(this.top=re,this.height=ue):(this.top=re+ue,this.height=-ue),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.prototype.rotate=function(te){if(Math.abs(te.x-this.centerX)>.1){var ie=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},ne.prototype.applyRotation=function(){var te=this.container.transform.baseVal.getItem(0);te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(te,0)},ne.prototype.rotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM(),fe=me.createPoint(te.x,te.y);return{x:(fe=fe.matrixTransform(ie)).x,y:fe.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM();ie=ie.inverse();var fe=me.createPoint(te.x,te.y);return{x:(fe=fe.matrixTransform(ie)).x,y:fe.y}},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var te=me.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Fe,this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){var te=this.controlBox.transform.baseVal.getItem(0);te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(te,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ne.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ne.prototype.createGrip=function(){var te=new Ve;return te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,ie=-te/2,fe=ie,re=(this.width+this.CB_DISTANCE)/2-te/2,ue=(this.height+this.CB_DISTANCE)/2-te/2,Me=this.height+this.CB_DISTANCE-te/2,gt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,fe),this.positionGrip(this.controlGrips.topCenter.visual,re,fe),this.positionGrip(this.controlGrips.topRight.visual,gt,fe),this.positionGrip(this.controlGrips.centerLeft.visual,ie,ue),this.positionGrip(this.controlGrips.centerRight.visual,gt,ue),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Me),this.positionGrip(this.controlGrips.bottomCenter.visual,re,Me),this.positionGrip(this.controlGrips.bottomRight.visual,gt,Me),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,fe-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,ie,fe){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,fe),te.transform.baseVal.replaceItem(re,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie);var fe=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:fe.x*te,y:fe.y*ie});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*ie,this.adjustControlBox()},ne}(Pe),Ie=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.title="Rectangle marker",ne}(Se),Xe=function(ae){function ne(te,ie,fe,re){var ue=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ue.widths=[],ue.widthBoxes=[],ue.widths=ie,ue.currentWidth=fe,ue.setCurrentWidth=ue.setCurrentWidth.bind(ue),ue}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(fe){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=fe===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(fe,re)}),ie.appendChild(re);var ue=document.createElement("div");ue.innerText=fe.toString(),ue.style.marginRight="5px",re.appendChild(ue);var Me=document.createElement("div");Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.display="flex",Me.style.alignItems="center";var gt=document.createElement("hr");gt.style.minWidth="20px",gt.style.border="0px",gt.style.borderTop=fe+"px solid "+te.uiStyleSettings.toolboxColor,gt.style.flexGrow="2",Me.appendChild(gt),re.appendChild(Me),te.widthBoxes.push(re)}),ie},ne.prototype.setCurrentWidth=function(te,ie){var fe=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(Oe),He=function(ae){function ne(te,ie,fe,re){var ue=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ue.styles=[],ue.styleBoxes=[],ue.styles=ie,ue.currentStyle=fe,ue.setCurrentStyle=ue.setCurrentStyle.bind(ue),ue}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(fe){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.styles.length-5+"%",re.style.borderColor=fe===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(fe,re)}),ie.appendChild(re);var ue=document.createElement("div");ue.style.minHeight="20px",ue.style.flexGrow="2",ue.style.overflow="hidden";var Me=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(fe!==""?'stroke-dasharray="'+fe+'"':"")+` />
</svg>`;ue.innerHTML=Me,re.appendChild(ue),te.styleBoxes.push(re)}),ie},ne.prototype.setCurrentStyle=function(te,ie){var fe=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(Oe),rt=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.strokeColor=fe.defaultColor,re.strokeWidth=fe.defaultStrokeWidth,re.strokeDasharray=fe.defaultStrokeDasharray,re.strokePanel=new Ee("Line color",fe.defaultColorSet,fe.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new He("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return he(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(Ie),st=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Je=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.state==="new"&&(this.x1=te.x,this.y1=te.y,this.x2=te.x,this.y2=te.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(te){this.state==="creating"?this.resize(te):this.state==="move"?(this.x1=this.manipulationStartX1+te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(te)},ne.prototype.resize=function(te){switch(this.activeGrip){case this.grip1:this.x1=te.x,this.y1=te.y;break;case this.grip2:case void 0:this.x2=te.x,this.y2=te.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){this.positionGrips()},ne.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ne.prototype.createGrip=function(){var te=new Ve;return te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-te/2,this.y1-te/2),this.positionGrip(this.grip2.visual,this.x2-te/2,this.y2-te/2)},ne.prototype.positionGrip=function(te,ie,fe){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,fe),te.transform.baseVal.replaceItem(re,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.x1=this.x1*te,this.y1=this.y1*ie,this.x2=this.x2*te,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ne}(Pe),et=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=fe.defaultColor,re.strokeWidth=fe.defaultStrokeWidth,re.strokeDasharray=fe.defaultStrokeDasharray,re.strokePanel=new Ee("Line color",fe.defaultColorSet,fe.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new He("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(Je),ge=function(ae){function ne(te,ie,fe,re){var ue=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ue.fonts=[],ue.fontBoxes=[],ue.fonts=ie,ue.currentFont=fe,ue.setCurrentFont=ue.setCurrentFont.bind(ue),ue}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(fe){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.fonts.length-5+"%",re.style.borderColor=fe===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(fe,re)}),ie.appendChild(re);var ue=document.createElement("div");ue.style.display="flex",ue.style.minHeight="20px",ue.style.flexGrow="2",ue.style.fontFamily=fe,ue.style.overflow="hidden";var Me=document.createElement("div");Me.style.whiteSpace="nowrap",Me.style.overflow="hidden",Me.style.textOverflow="ellipsis",Me.innerHTML="The quick brown fox jumps over the lazy dog",ue.appendChild(Me),re.appendChild(ue),te.fontBoxes.push(re)}),ie},ne.prototype.setCurrentFont=function(te,ie){var fe=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(Oe),Qe=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=fe.defaultColor,re.fontFamily=fe.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Ee("Color",fe.defaultColorSet,fe.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new ge("Font",fe.defaultFontFamilies,fe.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){if(ae.prototype.ownsTarget.call(this,te)||te===this.visual||te===this.textElement||te===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(fe){fe===te&&(ie=!0)}),ie},ne.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.renderText=function(){var te=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ie){te.textElement.appendChild(me.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var te=this.textElement.getBBox(),ie=1;if(te.width>0&&te.height>0){var fe=(1*this.width-this.width*this.padding*2/100)/te.width,re=(1*this.height-this.height*this.padding*2/100)/te.height;ie=Math.min(fe,re)}return ie},ne.prototype.getTextPosition=function(te){var ie=this.textElement.getBBox(),fe=0,re=0;return ie.width>0&&ie.height>0&&(fe=(this.width-ie.width*te)/2,re=this.height/2-ie.height*te/2),{x:fe,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),ie=this.getTextScale(),fe=this.getTextPosition(ie);fe.y-=te.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+fe.x+"px, "+fe.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(fe.x,fe.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var te=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,te.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var fe=ie.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(fe)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){te.textEditDivClicked(te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ne.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var te=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),fe=this.textElement.getBBox(),re={x:fe.width*te,y:fe.height*te};ie.x-=re.x/2,ie.y-=re.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*te,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(te){this.text=te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&me.setAttributes(this.textElement,[["fill",te]]),this.color=te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(te)},ne.prototype.setFont=function(te){this.textElement&&me.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ne}(Se),we=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=fe.defaultColor,re.lineWidth=fe.defaultStrokeWidth,re.pixelRatio=fe.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Ee("Color",fe.defaultColorSet,fe.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var te=me.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,ie)},ne.prototype.manipulate=function(te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(te.x,te.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,te)},ne.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],fe=ie[0],re=ie[1],ue=ie[2],Me=ie[3],gt=!1,_e=0;_e<this.canvasElement.height;_e++)for(var ke=0;ke<this.canvasElement.width;ke++)te.data[_e*this.canvasElement.width*4+4*ke+3]>0&&(gt=!0,_e<re&&(re=_e),ke<fe&&(fe=ke),_e>Me&&(Me=_e),ke>ue&&(ue=ke));if(gt){this.left=fe/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(ue-fe)/this.pixelRatio,this.height=(Me-re)/this.pixelRatio;var ot=document.createElement("canvas");ot.width=ue-fe,ot.height=Me-re,ot.getContext("2d").putImageData(this.canvasContext.getImageData(fe,re,ue-fe,Me-re),0,0),this.drawingImgUrl=ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},ne.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ne}(Se),se=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,fe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=ie,re.setCurrentType=re.setCurrentType.bind(re),re}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var fe=function(Me){var gt="both";switch(Me){case 0:gt="both";break;case 1:gt="start";break;case 2:gt="end";break;case 3:gt="none"}var _e=document.createElement("div");if(_e.style.display="flex",_e.style.flexGrow="2",_e.style.alignItems="center",_e.style.justifyContent="space-between",_e.style.padding="5px",_e.style.borderWidth="2px",_e.style.borderStyle="solid",_e.style.borderColor=gt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",_e.addEventListener("click",function(){te.setCurrentType(gt,_e)}),ie.appendChild(_e),gt==="both"||gt==="start"){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.minHeight="20px",ke.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ke.style.marginLeft="5px",_e.appendChild(ke)}var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.style.flexGrow="2";var ht=document.createElement("hr");if(ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),ht.style.flexGrow="2",ot.appendChild(ht),_e.appendChild(ot),gt==="both"||gt==="end"){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.minHeight="20px",wt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,wt.style.marginRight="5px",_e.appendChild(wt)}re.typeBoxes.push(_e)},re=this,ue=0;ue<4;ue++)fe(ue);return ie},ne.prototype.setCurrentType=function(te,ie){var fe=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings!==void 0?fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(Oe),ft=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new se("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,ie){var fe=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-fe/2+","+(ie+re/2)+" "+te+","+(ie-re/2)+" "+(te+fe/2)+","+(ie+re/2)},ne.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var te=0;Math.abs(this.x1-this.x2)>.1&&(te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var fe=this.arrow2.transform.baseVal.getItem(0);fe.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(fe,0)}},ne.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ne}(et),$e=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.fillColor=fe.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Ee("Color",fe.defaultColorSet,fe.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return he(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(Ie),tt=function(ae){function ne(te,ie,fe,re){var ue=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ue.opacities=[],ue.opacityBoxes=[],ue.opacities=ie,ue.currentOpacity=fe,ue.setCurrentOpacity=ue.setCurrentOpacity.bind(ue),ue}return he(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(fe){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=fe===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(fe,re)}),ie.appendChild(re);var ue=document.createElement("div");ue.innerText=100*fe+"%",re.appendChild(ue),te.opacityBoxes.push(re)}),ie},ne.prototype.setCurrentOpacity=function(te,ie){var fe=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===ie?fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(Oe),Nt=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=fe.defaultHighlightColor,re.strokeWidth=0,re.opacity=fe.defaultHighlightOpacity,re.fillPanel=new Ee("Color",fe.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new tt("Opacity",fe.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return he(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ne}($e),Le='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ye='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Et=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=fe.defaultStrokeColor,re.bgColor=fe.defaultFillColor,re.fontFamily=fe.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Ee("Text color",fe.defaultColorSet,re.color,Le),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Ee("Fill color",fe.defaultColorSet,re.bgColor,ye),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new ge("Font",fe.defaultFontFamilies,fe.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new Ve,re.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,ie)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(ie),this.positionTip()}},ne.prototype.manipulate=function(te){if(this.tipMoving){var ie=this.unrotatePoint(te);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",te]]),me.setAttributes(this.tip,[["fill",te]])),this.bgColor=te,this.fillColorChanged(te)},ne.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ne.prototype.setTipPoints=function(te){te===void 0&&(te=!1);var ie=Math.min(this.height/2,15),fe=this.height/5;te&&(this.tipPosition={x:ie+fe/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+fe,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-fe,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(fe=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-fe,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-fe},this.tipBase2Position={x:this.width,y:this.height-ie}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(fe=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+fe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-fe})},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var te=this.tipGrip.visual.transform.baseVal.getItem(0);te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(te,0)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ne.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*ie},this.positionTip()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ne}(Qe),Zt=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=fe.defaultColor,re.strokeWidth=fe.defaultStrokeWidth,re.strokeDasharray=fe.defaultStrokeDasharray,re.fillColor=fe.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new Ee("Line color",ve(fe.defaultColorSet,["transparent"]),fe.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ee("Fill color",ve(fe.defaultColorSet,["transparent"]),re.fillColor,ye),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new He("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new tt("Opacity",fe.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=me.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.typeName="EllipseMarker",ne.title="Ellipse marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ne}(Se),pt=function(ae){function ne(te,ie,fe){return ae.call(this,te,ie,fe)||this}return he(ne,ae),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},ne.prototype.createTips=function(){this.tip1=me.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var fe=this.tip2.transform.baseVal.getItem(0);fe.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(fe,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ne}(et),Ce=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.strokePanel.colors=fe.defaultColorSet,re.fillColor="transparent",re}return he(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ne}(Zt),at=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),qe=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=fe.defaultColor,re.strokeWidth=fe.defaultStrokeWidth,re.strokeDasharray=fe.defaultStrokeDasharray,re.strokePanel=new Ee("Line color",fe.defaultColorSet,fe.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new He("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=te.x,this.curveY=te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-te/2,this.curveY-te/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ne.prototype.manipulate=function(te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+te.y-this.manipulationStartY),ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ae.prototype.resize.call(this,te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},ne.prototype.scale=function(te,ie){this.curveX=this.curveX*te,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,te,ie)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ne}(Je),zt=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,ie,fe)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=fe.defaultColor,re.strokeWidth=fe.defaultStrokeWidth,re.strokeDasharray=fe.defaultStrokeDasharray,re.fillColor=fe.defaultFillColor,re.textColor=fe.defaultStrokeColor,re.fontFamily=fe.defaultFontFamily,re.fontSize=fe.defaultCaptionFontSize,re.captionText=fe.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Ee("Line color",ve(fe.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ee("Fill color",ve(fe.defaultColorSet,["transparent"]),re.fillColor,ye),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Xe("Line width",fe.defaultStrokeWidths,fe.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new He("Line style",fe.defaultStrokeDasharrays,fe.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new ge("Font",fe.defaultFontFamilies,fe.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Ee("Text color",fe.defaultColorSet,re.textColor,Le),re.textColorPanel.onColorChanged=re.setTextColor,re}return he(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=me.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=me.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.sizeCaption=function(){var te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=te.width+2*this.PADDING,this.captionBoxHeight=te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),me.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),me.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ne.prototype.showTextEditor=function(){var te=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){te.finishTextEditing(te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){te.finishTextEditing(te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ne.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ne.prototype.finishTextEditing=function(te){this.setCaptionText(te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(te){this.captionElement&&me.setAttributes(this.captionElement,[["font-family",te]]),this.fontFamily=te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(te){this.captionElement&&me.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return te.typeName=this.typeName,te},ne.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ne}(Se),ut=function(){function ae(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=te}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),ct=function(ae){function ne(te,ie,fe){var re=ae.call(this,te,!1)||this;return re.dataUrl=ie,re.state=fe,re}return he(ne,ae),ne}(ut),lt=function(ae){function ne(te,ie,fe){fe===void 0&&(fe=!1);var re=ae.call(this,te,fe)||this;return re.marker=ie,re}return he(ne,ae),ne}(ut),nn=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(ne,te){this[ne].push(te)},ae.prototype.removeEventListener=function(ne,te){var ie=this[ne].indexOf(te);ie>-1&&this[ne].splice(ie,1)},ae}(),kt=function(){function ae(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new st,this._isOpen=!1,this.undoRedoManager=new at,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new nn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new le(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[rt,we,ft,Qe,Ce,Zt,Nt,Et,pt,$e,et,qe,zt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[rt,we,ft,Qe,Zt,Nt,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[rt,we,ft,Qe,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var te=this;this._availableMarkerTypes.splice(0),ne.forEach(function(ie){if(typeof ie=="string"){var fe=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===ie});fe!==void 0&&te._availableMarkerTypes.push(fe)}else te._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ne){this._zoomLevel=ne,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&be.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=be.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new ut(ne))})},ae.prototype.render=function(){return ce(this,void 0,void 0,function(){var ne;return Re(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Ne).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var ie=!1;ne||this.eventListeners.beforeclose.forEach(function(fe){var re=new ut(te,!0);fe(re),re.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(fe){return fe(new ut(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];(ne=this._availableMarkerTypes).push.apply(ne,te)},ae.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(te){ne(te.dataUrl,te.state)})},ae.prototype.removeRenderEventListener=function(ne){},ae.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},ae.prototype.removeCloseEventListener=function(ne){},ae.prototype.setupResizeObserver=function(){var ne=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ne.resize(ne.target.clientWidth,ne.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ne.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,te=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,ie=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(te,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ne,te){this._isResizing=!0;var ie=ne/this.imageWidth,fe=te/this.imageHeight;this.imageWidth=Math.round(ne),this.imageHeight=Math.round(te),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ie,fe),this._isResizing=!1},ae.prototype.scaleMarkers=function(ne,te){var ie,fe=this;this._currentMarker&&this._currentMarker instanceof Qe?this._currentMarker.scale(ne,te):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==fe._currentMarker&&re.scale(ne,te)}),ie!==void 0&&this.setCurrentMarker(ie)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=ne.left-te.left,this.top=ne.top-te.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var ne,te=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];this.defs=me.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,te)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ne=document.createElement("a");ne.href="https://markerjs.com/",ne.target="_blank",ne.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ne=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new it(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ze(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(ne,te){if(ne==="marker"&&te!==void 0)this.createNewMarker(te);else if(ne==="action")switch(te){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(fe){var re=new lt(ne,ne._currentMarker,!0);fe(re),re.defaultPrevented&&(te=!0)}),!te){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(fe){return fe(new lt(ne,ie))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ue){var Me=new lt(ne,void 0,!0);ue(Me),Me.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var ie=function(ue){var Me=fe.markers[ue];fe.setCurrentMarker(fe.markers[ue]),fe._currentMarker.dispose(),fe.markerImage.removeChild(fe._currentMarker.container),fe.markers.splice(fe.markers.indexOf(fe._currentMarker),1),fe.eventListeners.markerdelete.forEach(function(gt){return gt(new lt(ne,Me))})},fe=this,re=this.markers.length-1;re>=0;re--)ie(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ne;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var te=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===te.width&&ie.height===te.height){var fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),fe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new ut(ne))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(re){return re(new ut(ne))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ne=this,te=this.undoRedoManager.undo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ut(ne))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ne=this,te=this.undoRedoManager.redo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ut(ne))}))},ae.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},ae.prototype.startRenderAndClose=function(){return ce(this,void 0,void 0,function(){var ne,te,ie=this;return Re(this,function(fe){switch(fe.label){case 0:return[4,this.render()];case 1:return ne=fe.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new ct(ie,ne,te))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ne){ne===!0&&this.setCurrentMarker();var te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return te.markers.push(ie.getState())}),te},ae.prototype.restoreState=function(ne){var te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(ie){var fe=te._availableMarkerTypes.find(function(ue){return ue.typeName===ie.typeName});if(fe!==void 0){var re=te.addNewMarker(fe);re.restoreState(ie),te.markers.push(re)}}),ne.width&&ne.height&&(ne.width!==this.imageWidth||ne.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ne.width,this.imageHeight/ne.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new ut(te))})},ae.prototype.addNewMarker=function(ne){var te=me.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ne){var te,ie=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(fe){return fe.typeName===ne}):ne)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(te),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(fe){return fe(new lt(ie,ie._currentMarker))}))},ae.prototype.markerCreated=function(ne){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof we&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(we):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new lt(te,te._currentMarker))})},ae.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},ae.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},ae.prototype.markerStateChanged=function(ne){var te=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new lt(te,ne))})},ae.prototype.setCurrentMarker=function(ne){var te=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new lt(te,te._currentMarker))})),this._currentMarker=ne,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ie){return ie(new lt(te,te._currentMarker))}))},ae.prototype.onPointerDown=function(ne){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ne.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var te=this.markers.find(function(ie){return ie.ownsTarget(ne.target)});te!==void 0?(this.setCurrentMarker(te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ne.clientX,y:ne.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY))},ae.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var te=this.markers.find(function(ie){return ie.ownsTarget(ne.target)});te!==void 0&&te!==this._currentMarker&&this.setCurrentMarker(te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ne){this.touchPoints!==1&&ne.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ne.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ne.clientX,ne.clientY)):this.zoomLevel>1&&this.panTo({x:ne.clientX,y:ne.clientY}))},ae.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ne,te){var ie=this.markerImage.getBoundingClientRect();return{x:(ne-ie.left)/this.zoomLevel,y:(te-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(ne){pe.addKey(ne)},ae.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ae.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ae.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ne=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(te){return te(new ut(ne))}))},ae.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new ut(ne))}))},ae.instanceCounter=0,ae}()},6551:function(En,Vt,z){"use strict";z.d(Vt,{ZP:function(){return pe}});var y=z(72190),he=z(59301),ce=z(47273),Re=0,ve=(0,ce.Z)();function me(){var Ne;return ve?(Ne=Re,Re+=1):Ne="TEST_OR_SSR",Ne}function pe(Ne){var be=he.useState(),le=(0,y.Z)(be,2),je=le[0],Ae=le[1];return he.useEffect(function(){Ae("rc_select_".concat(me()))},[]),Ne||je}},37463:function(En,Vt,z){"use strict";z.d(Vt,{Ac:function(){return _t},Xo:function(){return qt},Wx:function(){return Ot},ZP:function(){return Hn},lk:function(){return dt}});var y=z(60499),he=z(77654),ce=z(18642),Re=z(85899),ve=z(72190),me=z(42244),pe=z(43749),Ne=z(18929),be=z(48736),le=z(59301),je=z(92310),Ae=z.n(je),it=z(34280),ze=z(49658),Oe=z(8654),Ee=function($t){var nt=$t.className,Ft=$t.customizeIcon,Ke=$t.customizeIconProps,Tt=$t.children,Yt=$t.onMouseDown,Rn=$t.onClick,Zn=typeof Ft=="function"?Ft(Ke):Ft;return le.createElement("span",{className:nt,onMouseDown:function(xt){xt.preventDefault(),Yt==null||Yt(xt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Rn,"aria-hidden":!0},Zn!==void 0?Zn:le.createElement("span",{className:Ae()(nt.split(/\s+/).map(function(yt){return"".concat(yt,"-icon")}))},Tt))},Pe=Ee,Fe=function($t,nt,Ft,Ke,Tt){var Yt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Rn=arguments.length>6?arguments[6]:void 0,Zn=arguments.length>7?arguments[7]:void 0,yt=le.useMemo(function(){if((0,pe.Z)(Ke)==="object")return Ke.clearIcon;if(Tt)return Tt},[Ke,Tt]),xt=le.useMemo(function(){return!!(!Yt&&Ke&&(Ft.length||Rn)&&!(Zn==="combobox"&&Rn===""))},[Ke,Yt,Ft.length,Rn,Zn]);return{allowClear:xt,clearIcon:le.createElement(Pe,{className:"".concat($t,"-clear"),onMouseDown:nt,customizeIcon:yt},"\xD7")}},Ve=le.createContext(null);function dt(){return le.useContext(Ve)}function Se(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$t=le.useState(!1),nt=(0,ve.Z)($t,2),Ft=nt[0],Ke=nt[1],Tt=le.useRef(null),Yt=function(){window.clearTimeout(Tt.current)};le.useEffect(function(){return Yt},[]);var Rn=function(yt,xt){Yt(),Tt.current=window.setTimeout(function(){Ke(yt),xt&&xt()},St)};return[Ft,Rn,Yt]}function Ie(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$t=le.useRef(null),nt=le.useRef(null);le.useEffect(function(){return function(){window.clearTimeout(nt.current)}},[]);function Ft(Ke){(Ke||$t.current===null)&&($t.current=Ke),window.clearTimeout(nt.current),nt.current=window.setTimeout(function(){$t.current=null},St)}return[function(){return $t.current},Ft]}function Xe(St,$t,nt,Ft){var Ke=le.useRef(null);Ke.current={open:$t,triggerOpen:nt,customizedTrigger:Ft},le.useEffect(function(){function Tt(Yt){var Rn;if(!((Rn=Ke.current)!==null&&Rn!==void 0&&Rn.customizedTrigger)){var Zn=Yt.target;Zn.shadowRoot&&Yt.composed&&(Zn=Yt.composedPath()[0]||Zn),Ke.current.open&&St().filter(function(yt){return yt}).every(function(yt){return!yt.contains(Zn)&&yt!==Zn})&&Ke.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Tt),function(){return window.removeEventListener("mousedown",Tt)}},[])}var He=z(10228);function rt(St){return St&&![He.Z.ESC,He.Z.SHIFT,He.Z.BACKSPACE,He.Z.TAB,He.Z.WIN_KEY,He.Z.ALT,He.Z.META,He.Z.WIN_KEY_RIGHT,He.Z.CTRL,He.Z.SEMICOLON,He.Z.EQUALS,He.Z.CAPS_LOCK,He.Z.CONTEXT_MENU,He.Z.F1,He.Z.F2,He.Z.F3,He.Z.F4,He.Z.F5,He.Z.F6,He.Z.F7,He.Z.F8,He.Z.F9,He.Z.F10,He.Z.F11,He.Z.F12].includes(St)}var st=z(26112),Je=z(83836);function et(St,$t,nt){var Ft=(0,Re.Z)((0,Re.Z)({},St),nt?$t:{});return Object.keys($t).forEach(function(Ke){var Tt=$t[Ke];typeof Tt=="function"&&(Ft[Ke]=function(){for(var Yt,Rn=arguments.length,Zn=new Array(Rn),yt=0;yt<Rn;yt++)Zn[yt]=arguments[yt];return Tt.apply(void 0,Zn),(Yt=St[Ke])===null||Yt===void 0?void 0:Yt.call.apply(Yt,[St].concat(Zn))})}),Ft}var ge=et,Qe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],we=function($t,nt){var Ft=$t.prefixCls,Ke=$t.id,Tt=$t.inputElement,Yt=$t.autoFocus,Rn=$t.autoComplete,Zn=$t.editable,yt=$t.activeDescendantId,xt=$t.value,Bt=$t.open,At=$t.attrs,pn=(0,me.Z)($t,Qe),Pn=Tt||le.createElement("input",null),In=Pn,Mn=In.ref,qn=In.props;return(0,be.Kp)(!("maxLength"in Pn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Pn=le.cloneElement(Pn,(0,Re.Z)((0,Re.Z)((0,Re.Z)({type:"search"},ge(pn,qn,!0)),{},{id:Ke,ref:(0,Oe.sQ)(nt,Mn),autoComplete:Rn||"off",autoFocus:Yt,className:Ae()("".concat(Ft,"-selection-search-input"),qn==null?void 0:qn.className),role:"combobox","aria-expanded":Bt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ke,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ke,"_list"),"aria-activedescendant":Bt?yt:void 0},At),{},{value:Zn?xt:"",readOnly:!Zn,unselectable:Zn?null:"on",style:(0,Re.Z)((0,Re.Z)({},qn.style),{},{opacity:Zn?null:0})})),Pn},se=le.forwardRef(we),ft=se;function $e(St){return Array.isArray(St)?St:St!==void 0?[St]:[]}var tt=typeof window!="undefined"&&window.document&&window.document.documentElement,Nt=tt;function Le(St){return St!=null}function ye(St){return!St&&St!==0}function Et(St){return["string","number"].includes((0,pe.Z)(St))}function Zt(St){var $t=void 0;return St&&(Et(St.title)?$t=St.title.toString():Et(St.label)&&($t=St.label.toString())),$t}function pt(St,$t){Nt?le.useLayoutEffect(St,$t):le.useEffect(St,$t)}function Ce(St){var $t;return($t=St.key)!==null&&$t!==void 0?$t:St.value}var at=function($t){$t.preventDefault(),$t.stopPropagation()},qe=function($t){var nt=$t.id,Ft=$t.prefixCls,Ke=$t.values,Tt=$t.open,Yt=$t.searchValue,Rn=$t.autoClearSearchValue,Zn=$t.inputRef,yt=$t.placeholder,xt=$t.disabled,Bt=$t.mode,At=$t.showSearch,pn=$t.autoFocus,Pn=$t.autoComplete,In=$t.activeDescendantId,Mn=$t.tabIndex,qn=$t.removeIcon,nr=$t.maxTagCount,ir=$t.maxTagTextLength,lr=$t.maxTagPlaceholder,Qn=lr===void 0?function(Yn){return"+ ".concat(Yn.length," ...")}:lr,ar=$t.tagRender,fr=$t.onToggleOpen,Sr=$t.onRemove,br=$t.onInputChange,Zr=$t.onInputPaste,jr=$t.onInputKeyDown,hr=$t.onInputMouseDown,Nr=$t.onInputCompositionStart,eo=$t.onInputCompositionEnd,Tr=$t.onInputBlur,Pr=le.useRef(null),or=(0,le.useState)(0),Ur=(0,ve.Z)(or,2),Rr=Ur[0],Br=Ur[1],Cr=(0,le.useState)(!1),so=(0,ve.Z)(Cr,2),Ho=so[0],ti=so[1],Eo="".concat(Ft,"-selection"),No=Tt||Bt==="multiple"&&Rn===!1||Bt==="tags"?Yt:"",To=Bt==="tags"||Bt==="multiple"&&Rn===!1||At&&(Tt||Ho);pt(function(){Br(Pr.current.scrollWidth)},[No]);var Xo=function(Ln,mr,wr,Un,Jn){return le.createElement("span",{title:Zt(Ln),className:Ae()("".concat(Eo,"-item"),(0,ce.Z)({},"".concat(Eo,"-item-disabled"),wr))},le.createElement("span",{className:"".concat(Eo,"-item-content")},mr),Un&&le.createElement(Pe,{className:"".concat(Eo,"-item-remove"),onMouseDown:at,onClick:Jn,customizeIcon:qn},"\xD7"))},ko=function(Ln,mr,wr,Un,Jn,sr){var pr=function(Yr){at(Yr),fr(!Tt)};return le.createElement("span",{onMouseDown:pr},ar({label:mr,value:Ln,disabled:wr,closable:Un,onClose:Jn,isMaxTag:!!sr}))},vo=function(Ln){var mr=Ln.disabled,wr=Ln.label,Un=Ln.value,Jn=!xt&&!mr,sr=wr;if(typeof ir=="number"&&(typeof wr=="string"||typeof wr=="number")){var pr=String(sr);pr.length>ir&&(sr="".concat(pr.slice(0,ir),"..."))}var _r=function(to){to&&to.stopPropagation(),Sr(Ln)};return typeof ar=="function"?ko(Un,sr,mr,Jn,_r):Xo(Ln,sr,mr,Jn,_r)},dr=function(Ln){if(!Ke.length)return null;var mr=typeof Qn=="function"?Qn(Ln):Qn;return typeof ar=="function"?ko(void 0,mr,!1,!1,void 0,!0):Xo({title:mr},mr,!1)},Tn=le.createElement("div",{className:"".concat(Eo,"-search"),style:{width:Rr},onFocus:function(){ti(!0)},onBlur:function(){ti(!1)}},le.createElement(ft,{ref:Zn,open:Tt,prefixCls:Ft,id:nt,inputElement:null,disabled:xt,autoFocus:pn,autoComplete:Pn,editable:To,activeDescendantId:In,value:No,onKeyDown:jr,onMouseDown:hr,onChange:br,onPaste:Zr,onCompositionStart:Nr,onCompositionEnd:eo,onBlur:Tr,tabIndex:Mn,attrs:(0,st.Z)($t,!0)}),le.createElement("span",{ref:Pr,className:"".concat(Eo,"-search-mirror"),"aria-hidden":!0},No,"\xA0")),Gn=le.createElement(Je.Z,{prefixCls:"".concat(Eo,"-overflow"),data:Ke,renderItem:vo,renderRest:dr,suffix:Tn,itemKey:Ce,maxCount:nr});return le.createElement("span",{className:"".concat(Eo,"-wrap")},Gn,!Ke.length&&!No&&le.createElement("span",{className:"".concat(Eo,"-placeholder")},yt))},zt=qe,ut=function($t){var nt=$t.inputElement,Ft=$t.prefixCls,Ke=$t.id,Tt=$t.inputRef,Yt=$t.disabled,Rn=$t.autoFocus,Zn=$t.autoComplete,yt=$t.activeDescendantId,xt=$t.mode,Bt=$t.open,At=$t.values,pn=$t.placeholder,Pn=$t.tabIndex,In=$t.showSearch,Mn=$t.searchValue,qn=$t.activeValue,nr=$t.maxLength,ir=$t.onInputKeyDown,lr=$t.onInputMouseDown,Qn=$t.onInputChange,ar=$t.onInputPaste,fr=$t.onInputCompositionStart,Sr=$t.onInputCompositionEnd,br=$t.onInputBlur,Zr=$t.title,jr=le.useState(!1),hr=(0,ve.Z)(jr,2),Nr=hr[0],eo=hr[1],Tr=xt==="combobox",Pr=Tr||In,or=At[0],Ur=Mn||"";Tr&&qn&&!Nr&&(Ur=qn),le.useEffect(function(){Tr&&eo(!1)},[Tr,qn]);var Rr=xt!=="combobox"&&!Bt&&!In?!1:!!Ur,Br=Zr===void 0?Zt(or):Zr,Cr=le.useMemo(function(){return or?null:le.createElement("span",{className:"".concat(Ft,"-selection-placeholder"),style:Rr?{visibility:"hidden"}:void 0},pn)},[or,Rr,pn,Ft]);return le.createElement("span",{className:"".concat(Ft,"-selection-wrap")},le.createElement("span",{className:"".concat(Ft,"-selection-search")},le.createElement(ft,{ref:Tt,prefixCls:Ft,id:Ke,open:Bt,inputElement:nt,disabled:Yt,autoFocus:Rn,autoComplete:Zn,editable:Pr,activeDescendantId:yt,value:Ur,onKeyDown:ir,onMouseDown:lr,onChange:function(Ho){eo(!0),Qn(Ho)},onPaste:ar,onCompositionStart:fr,onCompositionEnd:Sr,onBlur:br,tabIndex:Pn,attrs:(0,st.Z)($t,!0),maxLength:Tr?nr:void 0})),!Tr&&or?le.createElement("span",{className:"".concat(Ft,"-selection-item"),title:Br,style:Rr?{visibility:"hidden"}:void 0},or.label):null,Cr)},ct=ut,lt=function($t,nt){var Ft=(0,le.useRef)(null),Ke=(0,le.useRef)(!1),Tt=$t.prefixCls,Yt=$t.open,Rn=$t.mode,Zn=$t.showSearch,yt=$t.tokenWithEnter,xt=$t.disabled,Bt=$t.prefix,At=$t.autoClearSearchValue,pn=$t.onSearch,Pn=$t.onSearchSubmit,In=$t.onToggleOpen,Mn=$t.onInputKeyDown,qn=$t.onInputBlur,nr=$t.domRef;le.useImperativeHandle(nt,function(){return{focus:function(Br){Ft.current.focus(Br)},blur:function(){Ft.current.blur()}}});var ir=Ie(0),lr=(0,ve.Z)(ir,2),Qn=lr[0],ar=lr[1],fr=function(Br){var Cr=Br.which,so=Ft.current instanceof HTMLTextAreaElement;!so&&Yt&&(Cr===He.Z.UP||Cr===He.Z.DOWN)&&Br.preventDefault(),Mn&&Mn(Br),Cr===He.Z.ENTER&&Rn==="tags"&&!Ke.current&&!Yt&&(Pn==null||Pn(Br.target.value)),!(so&&!Yt&&~[He.Z.UP,He.Z.DOWN,He.Z.LEFT,He.Z.RIGHT].indexOf(Cr))&&rt(Cr)&&In(!0)},Sr=function(){ar(!0)},br=(0,le.useRef)(null),Zr=function(Br){pn(Br,!0,Ke.current)!==!1&&In(!0)},jr=function(){Ke.current=!0},hr=function(Br){Ke.current=!1,Rn!=="combobox"&&Zr(Br.target.value)},Nr=function(Br){var Cr=Br.target.value;if(yt&&br.current&&/[\r\n]/.test(br.current)){var so=br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Cr=Cr.replace(so,br.current)}br.current=null,Zr(Cr)},eo=function(Br){var Cr=Br.clipboardData,so=Cr==null?void 0:Cr.getData("text");br.current=so||""},Tr=function(Br){var Cr=Br.target;if(Cr!==Ft.current){var so=document.body.style.msTouchAction!==void 0;so?setTimeout(function(){Ft.current.focus()}):Ft.current.focus()}},Pr=function(Br){var Cr=Qn();Br.target!==Ft.current&&!Cr&&!(Rn==="combobox"&&xt)&&Br.preventDefault(),(Rn!=="combobox"&&(!Zn||!Cr)||!Yt)&&(Yt&&At!==!1&&pn("",!0,!1),In())},or={inputRef:Ft,onInputKeyDown:fr,onInputMouseDown:Sr,onInputChange:Nr,onInputPaste:eo,onInputCompositionStart:jr,onInputCompositionEnd:hr,onInputBlur:qn},Ur=Rn==="multiple"||Rn==="tags"?le.createElement(zt,(0,y.Z)({},$t,or)):le.createElement(ct,(0,y.Z)({},$t,or));return le.createElement("div",{ref:nr,className:"".concat(Tt,"-selector"),onClick:Tr,onMouseDown:Pr},Bt&&le.createElement("div",{className:"".concat(Tt,"-prefix")},Bt),Ur)},nn=le.forwardRef(lt),kt=nn,ae=z(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function($t){var nt=$t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"}}},ie=function($t,nt){var Ft=$t.prefixCls,Ke=$t.disabled,Tt=$t.visible,Yt=$t.children,Rn=$t.popupElement,Zn=$t.animation,yt=$t.transitionName,xt=$t.dropdownStyle,Bt=$t.dropdownClassName,At=$t.direction,pn=At===void 0?"ltr":At,Pn=$t.placement,In=$t.builtinPlacements,Mn=$t.dropdownMatchSelectWidth,qn=$t.dropdownRender,nr=$t.dropdownAlign,ir=$t.getPopupContainer,lr=$t.empty,Qn=$t.getTriggerDOMNode,ar=$t.onPopupVisibleChange,fr=$t.onPopupMouseEnter,Sr=(0,me.Z)($t,ne),br="".concat(Ft,"-dropdown"),Zr=Rn;qn&&(Zr=qn(Rn));var jr=le.useMemo(function(){return In||te(Mn)},[In,Mn]),hr=Zn?"".concat(br,"-").concat(Zn):yt,Nr=typeof Mn=="number",eo=le.useMemo(function(){return Nr?null:Mn===!1?"minWidth":"width"},[Mn,Nr]),Tr=xt;Nr&&(Tr=(0,Re.Z)((0,Re.Z)({},Tr),{},{width:Mn}));var Pr=le.useRef(null);return le.useImperativeHandle(nt,function(){return{getPopupElement:function(){var Ur;return(Ur=Pr.current)===null||Ur===void 0?void 0:Ur.popupElement}}}),le.createElement(ae.Z,(0,y.Z)({},Sr,{showAction:ar?["click"]:[],hideAction:ar?["click"]:[],popupPlacement:Pn||(pn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:jr,prefixCls:br,popupTransitionName:hr,popup:le.createElement("div",{onMouseEnter:fr},Zr),ref:Pr,stretch:eo,popupAlign:nr,popupVisible:Tt,getPopupContainer:ir,popupClassName:Ae()(Bt,(0,ce.Z)({},"".concat(br,"-empty"),lr)),popupStyle:Tr,getTriggerDOMNode:Qn,onPopupVisibleChange:ar}),Yt)},fe=le.forwardRef(ie),re=fe,ue=z(48745);function Me(St,$t){var nt=St.key,Ft;return"value"in St&&(Ft=St.value),nt!=null?nt:Ft!==void 0?Ft:"rc-index-key-".concat($t)}function gt(St){return typeof St!="undefined"&&!Number.isNaN(St)}function _e(St,$t){var nt=St||{},Ft=nt.label,Ke=nt.value,Tt=nt.options,Yt=nt.groupLabel,Rn=Ft||($t?"children":"label");return{label:Rn,value:Ke||"value",options:Tt||"options",groupLabel:Yt||Rn}}function ke(St){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=$t.fieldNames,Ft=$t.childrenAsData,Ke=[],Tt=_e(nt,!1),Yt=Tt.label,Rn=Tt.value,Zn=Tt.options,yt=Tt.groupLabel;function xt(Bt,At){Array.isArray(Bt)&&Bt.forEach(function(pn){if(At||!(Zn in pn)){var Pn=pn[Rn];Ke.push({key:Me(pn,Ke.length),groupOption:At,data:pn,label:pn[Yt],value:Pn})}else{var In=pn[yt];In===void 0&&Ft&&(In=pn.label),Ke.push({key:Me(pn,Ke.length),group:!0,data:pn,label:In}),xt(pn[Zn],!0)}})}return xt(St,!1),Ke}function ot(St){var $t=(0,Re.Z)({},St);return"props"in $t||Object.defineProperty($t,"props",{get:function(){return(0,be.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$t}}),$t}var ht=function($t,nt,Ft){if(!nt||!nt.length)return null;var Ke=!1,Tt=function Rn(Zn,yt){var xt=(0,ue.Z)(yt),Bt=xt[0],At=xt.slice(1);if(!Bt)return[Zn];var pn=Zn.split(Bt);return Ke=Ke||pn.length>1,pn.reduce(function(Pn,In){return[].concat((0,he.Z)(Pn),(0,he.Z)(Rn(In,At)))},[]).filter(Boolean)},Yt=Tt($t,nt);return Ke?typeof Ft!="undefined"?Yt.slice(0,Ft):Yt:null},wt=le.createContext(null),Ze=wt;function We(St){var $t=St.visible,nt=St.values;if(!$t)return null;var Ft=50;return le.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(nt.slice(0,Ft).map(function(Ke){var Tt=Ke.label,Yt=Ke.value;return["number","string"].includes((0,pe.Z)(Tt))?Tt:Yt}).join(", ")),nt.length>Ft?", ...":null)}var Mt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ut=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],cn=function($t){return $t==="tags"||$t==="multiple"},ln=le.forwardRef(function(St,$t){var nt,Ft=St.id,Ke=St.prefixCls,Tt=St.className,Yt=St.showSearch,Rn=St.tagRender,Zn=St.direction,yt=St.omitDomProps,xt=St.displayValues,Bt=St.onDisplayValuesChange,At=St.emptyOptions,pn=St.notFoundContent,Pn=pn===void 0?"Not Found":pn,In=St.onClear,Mn=St.mode,qn=St.disabled,nr=St.loading,ir=St.getInputElement,lr=St.getRawInputElement,Qn=St.open,ar=St.defaultOpen,fr=St.onDropdownVisibleChange,Sr=St.activeValue,br=St.onActiveValueChange,Zr=St.activeDescendantId,jr=St.searchValue,hr=St.autoClearSearchValue,Nr=St.onSearch,eo=St.onSearchSplit,Tr=St.tokenSeparators,Pr=St.allowClear,or=St.prefix,Ur=St.suffixIcon,Rr=St.clearIcon,Br=St.OptionList,Cr=St.animation,so=St.transitionName,Ho=St.dropdownStyle,ti=St.dropdownClassName,Eo=St.dropdownMatchSelectWidth,No=St.dropdownRender,To=St.dropdownAlign,Xo=St.placement,ko=St.builtinPlacements,vo=St.getPopupContainer,dr=St.showAction,Tn=dr===void 0?[]:dr,Gn=St.onFocus,Yn=St.onBlur,Ln=St.onKeyUp,mr=St.onKeyDown,wr=St.onMouseDown,Un=(0,me.Z)(St,Mt),Jn=cn(Mn),sr=(Yt!==void 0?Yt:Jn)||Mn==="combobox",pr=(0,Re.Z)({},Un);Ut.forEach(function(yi){delete pr[yi]}),yt==null||yt.forEach(function(yi){delete pr[yi]});var _r=le.useState(!1),Yr=(0,ve.Z)(_r,2),to=Yr[0],Po=Yr[1];le.useEffect(function(){Po((0,ze.Z)())},[]);var Mo=le.useRef(null),Yo=le.useRef(null),Jo=le.useRef(null),ni=le.useRef(null),ri=le.useRef(null),Mi=le.useRef(!1),$i=Se(),Xi=(0,ve.Z)($i,3),Yi=Xi[0],ta=Xi[1],Lo=Xi[2];le.useImperativeHandle($t,function(){var yi,ci;return{focus:(yi=ni.current)===null||yi===void 0?void 0:yi.focus,blur:(ci=ni.current)===null||ci===void 0?void 0:ci.blur,scrollTo:function(Ht){var Qt;return(Qt=ri.current)===null||Qt===void 0?void 0:Qt.scrollTo(Ht)},nativeElement:Mo.current||Yo.current}});var co=le.useMemo(function(){var yi;if(Mn!=="combobox")return jr;var ci=(yi=xt[0])===null||yi===void 0?void 0:yi.value;return typeof ci=="string"||typeof ci=="number"?String(ci):""},[jr,Mn,xt]),wi=Mn==="combobox"&&typeof ir=="function"&&ir()||null,wo=typeof lr=="function"&&lr(),aa=(0,Oe.x1)(Yo,wo==null||(nt=wo.props)===null||nt===void 0?void 0:nt.ref),Qa=le.useState(!1),Ha=(0,ve.Z)(Qa,2),da=Ha[0],fa=Ha[1];(0,it.Z)(function(){fa(!0)},[]);var Ti=(0,Ne.Z)(!1,{defaultValue:ar,value:Qn}),ka=(0,ve.Z)(Ti,2),rl=ka[0],Ja=ka[1],la=da?rl:!1,Fl=!Pn&&At;(qn||Fl&&la&&Mn==="combobox")&&(la=!1);var El=Fl?!1:la,jo=le.useCallback(function(yi){var ci=yi!==void 0?yi:!la;qn||(Ja(ci),la!==ci&&(fr==null||fr(ci)))},[qn,la,Ja,fr]),ai=le.useMemo(function(){return(Tr||[]).some(function(yi){return[`
`,`\r
`].includes(yi)})},[Tr]),Ro=le.useContext(Ze)||{},Bo=Ro.maxCount,qo=Ro.rawValues,Bi=function(ci,bt,Ht){if(!(Jn&&gt(Bo)&&(qo==null?void 0:qo.size)>=Bo)){var Qt=!0,gn=ci;br==null||br(null);var go=ht(ci,Tr,gt(Bo)?Bo-qo.size:void 0),Kr=Ht?null:go;return Mn!=="combobox"&&Kr&&(gn="",eo==null||eo(Kr),jo(!1),Qt=!1),Nr&&co!==gn&&Nr(gn,{source:bt?"typing":"effect"}),Qt}},Wa=function(ci){!ci||!ci.trim()||Nr(ci,{source:"submit"})};le.useEffect(function(){!la&&!Jn&&Mn!=="combobox"&&Bi("",!1,!1)},[la]),le.useEffect(function(){rl&&qn&&Ja(!1),qn&&!Mi.current&&ta(!1)},[qn]);var zi=Ie(),Qi=(0,ve.Z)(zi,2),sa=Qi[0],cl=Qi[1],xl=le.useRef(!1),Va=function(ci){var bt=sa(),Ht=ci.key,Qt=Ht==="Enter";if(Qt&&(Mn!=="combobox"&&ci.preventDefault(),la||jo(!0)),cl(!!co),Ht==="Backspace"&&!bt&&Jn&&!co&&xt.length){for(var gn=(0,he.Z)(xt),go=null,Kr=gn.length-1;Kr>=0;Kr-=1){var fo=gn[Kr];if(!fo.disabled){gn.splice(Kr,1),go=fo;break}}go&&Bt(gn,{type:"remove",values:[go]})}for(var Fr=arguments.length,Vr=new Array(Fr>1?Fr-1:0),_o=1;_o<Fr;_o++)Vr[_o-1]=arguments[_o];if(la&&(!Qt||!xl.current)){var ho;Qt&&(xl.current=!0),(ho=ri.current)===null||ho===void 0||ho.onKeyDown.apply(ho,[ci].concat(Vr))}mr==null||mr.apply(void 0,[ci].concat(Vr))},Sl=function(ci){for(var bt=arguments.length,Ht=new Array(bt>1?bt-1:0),Qt=1;Qt<bt;Qt++)Ht[Qt-1]=arguments[Qt];if(la){var gn;(gn=ri.current)===null||gn===void 0||gn.onKeyUp.apply(gn,[ci].concat(Ht))}ci.key==="Enter"&&(xl.current=!1),Ln==null||Ln.apply(void 0,[ci].concat(Ht))},kl=function(ci){var bt=xt.filter(function(Ht){return Ht!==ci});Bt(bt,{type:"remove",values:[ci]})},dl=function(){xl.current=!1},zl=le.useRef(!1),Ps=function(){ta(!0),qn||(Gn&&!zl.current&&Gn.apply(void 0,arguments),Tn.includes("focus")&&jo(!0)),zl.current=!0},Gl=function(){Mi.current=!0,ta(!1,function(){zl.current=!1,Mi.current=!1,jo(!1)}),!qn&&(co&&(Mn==="tags"?Nr(co,{source:"submit"}):Mn==="multiple"&&Nr("",{source:"blur"})),Yn&&Yn.apply(void 0,arguments))},Ol=[];le.useEffect(function(){return function(){Ol.forEach(function(yi){return clearTimeout(yi)}),Ol.splice(0,Ol.length)}},[]);var Ll=function(ci){var bt,Ht=ci.target,Qt=(bt=Jo.current)===null||bt===void 0?void 0:bt.getPopupElement();if(Qt&&Qt.contains(Ht)){var gn=setTimeout(function(){var Fr=Ol.indexOf(gn);if(Fr!==-1&&Ol.splice(Fr,1),Lo(),!to&&!Qt.contains(document.activeElement)){var Vr;(Vr=ni.current)===null||Vr===void 0||Vr.focus()}});Ol.push(gn)}for(var go=arguments.length,Kr=new Array(go>1?go-1:0),fo=1;fo<go;fo++)Kr[fo-1]=arguments[fo];wr==null||wr.apply(void 0,[ci].concat(Kr))},fl=le.useState({}),is=(0,ve.Z)(fl,2),Xl=is[1];function bs(){Xl({})}var Il;wo&&(Il=function(ci){jo(ci)}),Xe(function(){var yi;return[Mo.current,(yi=Jo.current)===null||yi===void 0?void 0:yi.getPopupElement()]},El,jo,!!wo);var Ls=le.useMemo(function(){return(0,Re.Z)((0,Re.Z)({},St),{},{notFoundContent:Pn,open:la,triggerOpen:El,id:Ft,showSearch:sr,multiple:Jn,toggleOpen:jo})},[St,Pn,El,la,Ft,sr,Jn,jo]),as=!!Ur||nr,wl;as&&(wl=le.createElement(Pe,{className:Ae()("".concat(Ke,"-arrow"),(0,ce.Z)({},"".concat(Ke,"-arrow-loading"),nr)),customizeIcon:Ur,customizeIconProps:{loading:nr,searchValue:co,open:la,focused:Yi,showSearch:sr}}));var Hl=function(){var ci;In==null||In(),(ci=ni.current)===null||ci===void 0||ci.focus(),Bt([],{type:"clear",values:xt}),Bi("",!1,!1)},Wl=Fe(Ke,Hl,xt,Pr,Rr,qn,co,Mn),ls=Wl.allowClear,Vl=Wl.clearIcon,Yl=le.createElement(Br,{ref:ri}),ol=Ae()(Ke,Tt,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Ke,"-focused"),Yi),"".concat(Ke,"-multiple"),Jn),"".concat(Ke,"-single"),!Jn),"".concat(Ke,"-allow-clear"),Pr),"".concat(Ke,"-show-arrow"),as),"".concat(Ke,"-disabled"),qn),"".concat(Ke,"-loading"),nr),"".concat(Ke,"-open"),la),"".concat(Ke,"-customize-input"),wi),"".concat(Ke,"-show-search"),sr)),qa=le.createElement(re,{ref:Jo,disabled:qn,prefixCls:Ke,visible:El,popupElement:Yl,animation:Cr,transitionName:so,dropdownStyle:Ho,dropdownClassName:ti,direction:Zn,dropdownMatchSelectWidth:Eo,dropdownRender:No,dropdownAlign:To,placement:Xo,builtinPlacements:ko,getPopupContainer:vo,empty:At,getTriggerDOMNode:function(ci){return Yo.current||ci},onPopupVisibleChange:Il,onPopupMouseEnter:bs},wo?le.cloneElement(wo,{ref:aa}):le.createElement(kt,(0,y.Z)({},St,{domRef:Yo,prefixCls:Ke,inputElement:wi,ref:ni,id:Ft,prefix:or,showSearch:sr,autoClearSearchValue:hr,mode:Mn,activeDescendantId:Zr,tagRender:Rn,values:xt,open:la,onToggleOpen:jo,activeValue:Sr,searchValue:co,onSearch:Bi,onSearchSubmit:Wa,onRemove:kl,tokenWithEnter:ai,onInputBlur:dl}))),Zi;return wo?Zi=qa:Zi=le.createElement("div",(0,y.Z)({className:ol},pr,{ref:Mo,onMouseDown:Ll,onKeyDown:Va,onKeyUp:Sl,onFocus:Ps,onBlur:Gl}),le.createElement(We,{visible:Yi&&!la,values:xt}),qa,wl,ls&&Vl),le.createElement(Ve.Provider,{value:Ls},Zi)}),_t=ln,fn=function(){return null};fn.isSelectOptGroup=!0;var qt=fn,Ye=function(){return null};Ye.isSelectOption=!0;var Ot=Ye,Jt=z(80547),on=z(2738),Ge=z(48911);function Pt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jt=["disabled","title","children","style","className"];function vt(St){return typeof St=="string"||typeof St=="number"}var Lt=function($t,nt){var Ft=dt(),Ke=Ft.prefixCls,Tt=Ft.id,Yt=Ft.open,Rn=Ft.multiple,Zn=Ft.mode,yt=Ft.searchValue,xt=Ft.toggleOpen,Bt=Ft.notFoundContent,At=Ft.onPopupScroll,pn=le.useContext(Ze),Pn=pn.maxCount,In=pn.flattenOptions,Mn=pn.onActiveValue,qn=pn.defaultActiveFirstOption,nr=pn.onSelect,ir=pn.menuItemSelectedIcon,lr=pn.rawValues,Qn=pn.fieldNames,ar=pn.virtual,fr=pn.direction,Sr=pn.listHeight,br=pn.listItemHeight,Zr=pn.optionRender,jr="".concat(Ke,"-item"),hr=(0,Jt.Z)(function(){return In},[Yt,In],function(dr,Tn){return Tn[0]&&dr[1]!==Tn[1]}),Nr=le.useRef(null),eo=le.useMemo(function(){return Rn&&gt(Pn)&&(lr==null?void 0:lr.size)>=Pn},[Rn,Pn,lr==null?void 0:lr.size]),Tr=function(Tn){Tn.preventDefault()},Pr=function(Tn){var Gn;(Gn=Nr.current)===null||Gn===void 0||Gn.scrollTo(typeof Tn=="number"?{index:Tn}:Tn)},or=le.useCallback(function(dr){return Zn==="combobox"?!1:lr.has(dr)},[Zn,(0,he.Z)(lr).toString(),lr.size]),Ur=function(Tn){for(var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yn=hr.length,Ln=0;Ln<Yn;Ln+=1){var mr=(Tn+Ln*Gn+Yn)%Yn,wr=hr[mr]||{},Un=wr.group,Jn=wr.data;if(!Un&&!(Jn!=null&&Jn.disabled)&&(or(Jn.value)||!eo))return mr}return-1},Rr=le.useState(function(){return Ur(0)}),Br=(0,ve.Z)(Rr,2),Cr=Br[0],so=Br[1],Ho=function(Tn){var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;so(Tn);var Yn={source:Gn?"keyboard":"mouse"},Ln=hr[Tn];if(!Ln){Mn(null,-1,Yn);return}Mn(Ln.value,Tn,Yn)};(0,le.useEffect)(function(){Ho(qn!==!1?Ur(0):-1)},[hr.length,yt]);var ti=le.useCallback(function(dr){return Zn==="combobox"?String(dr).toLowerCase()===yt.toLowerCase():lr.has(dr)},[Zn,yt,(0,he.Z)(lr).toString(),lr.size]);(0,le.useEffect)(function(){var dr=setTimeout(function(){if(!Rn&&Yt&&lr.size===1){var Gn=Array.from(lr)[0],Yn=hr.findIndex(function(Ln){var mr=Ln.data;return yt?String(mr.value).startsWith(yt):mr.value===Gn});Yn!==-1&&(Ho(Yn),Pr(Yn))}});if(Yt){var Tn;(Tn=Nr.current)===null||Tn===void 0||Tn.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[Yt,yt]);var Eo=function(Tn){Tn!==void 0&&nr(Tn,{selected:!lr.has(Tn)}),Rn||xt(!1)};if(le.useImperativeHandle(nt,function(){return{onKeyDown:function(Tn){var Gn=Tn.which,Yn=Tn.ctrlKey;switch(Gn){case He.Z.N:case He.Z.P:case He.Z.UP:case He.Z.DOWN:{var Ln=0;if(Gn===He.Z.UP?Ln=-1:Gn===He.Z.DOWN?Ln=1:Pt()&&Yn&&(Gn===He.Z.N?Ln=1:Gn===He.Z.P&&(Ln=-1)),Ln!==0){var mr=Ur(Cr+Ln,Ln);Pr(mr),Ho(mr,!0)}break}case He.Z.TAB:case He.Z.ENTER:{var wr,Un=hr[Cr];Un&&!(Un!=null&&(wr=Un.data)!==null&&wr!==void 0&&wr.disabled)&&!eo?Eo(Un.value):Eo(void 0),Yt&&Tn.preventDefault();break}case He.Z.ESC:xt(!1),Yt&&Tn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Tn){Pr(Tn)}}}),hr.length===0)return le.createElement("div",{role:"listbox",id:"".concat(Tt,"_list"),className:"".concat(jr,"-empty"),onMouseDown:Tr},Bt);var No=Object.keys(Qn).map(function(dr){return Qn[dr]}),To=function(Tn){return Tn.label};function Xo(dr,Tn){var Gn=dr.group;return{role:Gn?"presentation":"option",id:"".concat(Tt,"_list_").concat(Tn)}}var ko=function(Tn){var Gn=hr[Tn];if(!Gn)return null;var Yn=Gn.data||{},Ln=Yn.value,mr=Gn.group,wr=(0,st.Z)(Yn,!0),Un=To(Gn);return Gn?le.createElement("div",(0,y.Z)({"aria-label":typeof Un=="string"&&!mr?Un:null},wr,{key:Tn},Xo(Gn,Tn),{"aria-selected":ti(Ln)}),Ln):null},vo={role:"listbox",id:"".concat(Tt,"_list")};return le.createElement(le.Fragment,null,ar&&le.createElement("div",(0,y.Z)({},vo,{style:{height:0,width:0,overflow:"hidden"}}),ko(Cr-1),ko(Cr),ko(Cr+1)),le.createElement(Ge.Z,{itemKey:"key",ref:Nr,data:hr,height:Sr,itemHeight:br,fullHeight:!1,onMouseDown:Tr,onScroll:At,virtual:ar,direction:fr,innerProps:ar?null:vo},function(dr,Tn){var Gn=dr.group,Yn=dr.groupOption,Ln=dr.data,mr=dr.label,wr=dr.value,Un=Ln.key;if(Gn){var Jn,sr=(Jn=Ln.title)!==null&&Jn!==void 0?Jn:vt(mr)?mr.toString():void 0;return le.createElement("div",{className:Ae()(jr,"".concat(jr,"-group"),Ln.className),title:sr},mr!==void 0?mr:Un)}var pr=Ln.disabled,_r=Ln.title,Yr=Ln.children,to=Ln.style,Po=Ln.className,Mo=(0,me.Z)(Ln,jt),Yo=(0,on.Z)(Mo,No),Jo=or(wr),ni=pr||!Jo&&eo,ri="".concat(jr,"-option"),Mi=Ae()(jr,ri,Po,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(ri,"-grouped"),Yn),"".concat(ri,"-active"),Cr===Tn&&!ni),"".concat(ri,"-disabled"),ni),"".concat(ri,"-selected"),Jo)),$i=To(dr),Xi=!ir||typeof ir=="function"||Jo,Yi=typeof $i=="number"?$i:$i||wr,ta=vt(Yi)?Yi.toString():void 0;return _r!==void 0&&(ta=_r),le.createElement("div",(0,y.Z)({},(0,st.Z)(Yo),ar?{}:Xo(dr,Tn),{"aria-selected":ti(wr),className:Mi,title:ta,onMouseMove:function(){Cr===Tn||ni||Ho(Tn)},onClick:function(){ni||Eo(wr)},style:to}),le.createElement("div",{className:"".concat(ri,"-content")},typeof Zr=="function"?Zr(dr,{index:Tn}):Yi),le.isValidElement(ir)||Jo,Xi&&le.createElement(Pe,{className:"".concat(jr,"-option-state"),customizeIcon:ir,customizeIconProps:{value:wr,disabled:ni,isSelected:Jo}},Jo?"\u2713":null))}))},Rt=le.forwardRef(Lt),sn=Rt,Sn=function(St,$t){var nt=le.useRef({values:new Map,options:new Map}),Ft=le.useMemo(function(){var Tt=nt.current,Yt=Tt.values,Rn=Tt.options,Zn=St.map(function(Bt){if(Bt.label===void 0){var At;return(0,Re.Z)((0,Re.Z)({},Bt),{},{label:(At=Yt.get(Bt.value))===null||At===void 0?void 0:At.label})}return Bt}),yt=new Map,xt=new Map;return Zn.forEach(function(Bt){yt.set(Bt.value,Bt),xt.set(Bt.value,$t.get(Bt.value)||Rn.get(Bt.value))}),nt.current.values=yt,nt.current.options=xt,Zn},[St,$t]),Ke=le.useCallback(function(Tt){return $t.get(Tt)||nt.current.options.get(Tt)},[$t]);return[Ft,Ke]};function un(St,$t){return $e(St).join("").toUpperCase().includes($t)}var Cn=function(St,$t,nt,Ft,Ke){return le.useMemo(function(){if(!nt||Ft===!1)return St;var Tt=$t.options,Yt=$t.label,Rn=$t.value,Zn=[],yt=typeof Ft=="function",xt=nt.toUpperCase(),Bt=yt?Ft:function(pn,Pn){return Ke?un(Pn[Ke],xt):Pn[Tt]?un(Pn[Yt!=="children"?Yt:"label"],xt):un(Pn[Rn],xt)},At=yt?function(pn){return ot(pn)}:function(pn){return pn};return St.forEach(function(pn){if(pn[Tt]){var Pn=Bt(nt,At(pn));if(Pn)Zn.push(pn);else{var In=pn[Tt].filter(function(Mn){return Bt(nt,At(Mn))});In.length&&Zn.push((0,Re.Z)((0,Re.Z)({},pn),{},(0,ce.Z)({},Tt,In)))}return}Bt(nt,At(pn))&&Zn.push(pn)}),Zn},[St,Ft,Ke,nt,$t])},Ct=z(6551),It=z(11592),Gt=["children","value"],tn=["children"];function Wt(St){var $t=St,nt=$t.key,Ft=$t.props,Ke=Ft.children,Tt=Ft.value,Yt=(0,me.Z)(Ft,Gt);return(0,Re.Z)({key:nt,value:Tt!==void 0?Tt:nt,children:Ke},Yt)}function mn(St){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,It.Z)(St).map(function(nt,Ft){if(!le.isValidElement(nt)||!nt.type)return null;var Ke=nt,Tt=Ke.type.isSelectOptGroup,Yt=Ke.key,Rn=Ke.props,Zn=Rn.children,yt=(0,me.Z)(Rn,tn);return $t||!Tt?Wt(nt):(0,Re.Z)((0,Re.Z)({key:"__RC_SELECT_GRP__".concat(Yt===null?Ft:Yt,"__"),label:Yt},yt),{},{options:mn(Zn)})}).filter(function(nt){return nt})}var an=function($t,nt,Ft,Ke,Tt){return le.useMemo(function(){var Yt=$t,Rn=!$t;Rn&&(Yt=mn(nt));var Zn=new Map,yt=new Map,xt=function(pn,Pn,In){In&&typeof In=="string"&&pn.set(Pn[In],Pn)},Bt=function At(pn){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,In=0;In<pn.length;In+=1){var Mn=pn[In];!Mn[Ft.options]||Pn?(Zn.set(Mn[Ft.value],Mn),xt(yt,Mn,Ft.label),xt(yt,Mn,Ke),xt(yt,Mn,Tt)):At(Mn[Ft.options],!0)}};return Bt(Yt),{options:Yt,valueOptions:Zn,labelOptions:yt}},[$t,nt,Ft,Ke,Tt])},yn=an;function jn(St){var $t=le.useRef();$t.current=St;var nt=le.useCallback(function(){return $t.current.apply($t,arguments)},[]);return nt}function Nn(St){var $t=St.mode,nt=St.options,Ft=St.children,Ke=St.backfill,Tt=St.allowClear,Yt=St.placeholder,Rn=St.getInputElement,Zn=St.showSearch,yt=St.onSearch,xt=St.defaultOpen,Bt=St.autoFocus,At=St.labelInValue,pn=St.value,Pn=St.inputValue,In=St.optionLabelProp,Mn=isMultiple($t),qn=Zn!==void 0?Zn:Mn||$t==="combobox",nr=nt||convertChildrenToData(Ft);if(warning($t!=="tags"||nr.every(function(ar){return!ar.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$t==="tags"||$t==="combobox"){var ir=nr.some(function(ar){return ar.options?ar.options.some(function(fr){return typeof("value"in fr?fr.value:fr.key)=="number"}):typeof("value"in ar?ar.value:ar.key)=="number"});warning(!ir,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($t!=="combobox"||!In,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($t==="combobox"||!Ke,"`backfill` only works with `combobox` mode."),warning($t==="combobox"||!Rn,"`getInputElement` only work with `combobox` mode."),noteOnce($t!=="combobox"||!Rn||!Tt||!Yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),yt&&!qn&&$t!=="combobox"&&$t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!xt||Bt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pn!=null){var lr=toArray(pn);warning(!At||lr.every(function(ar){return _typeof(ar)==="object"&&("key"in ar||"value"in ar)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mn||Array.isArray(pn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ft){var Qn=null;toNodeArray(Ft).some(function(ar){if(!React.isValidElement(ar)||!ar.type)return!1;var fr=ar,Sr=fr.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var br=toNodeArray(ar.props.children).every(function(Zr){return!React.isValidElement(Zr)||!ar.type||Zr.type.isSelectOption?!0:(Qn=Zr.type,!1)});return!br}return Qn=Sr,!0}),Qn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qn.displayName||Qn.name||Qn,"`.")),warning(Pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function $n(St,$t){if(St){var nt=function Ft(Ke){for(var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=0;Yt<Ke.length;Yt++){var Rn=Ke[Yt];if(Rn[$t==null?void 0:$t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Tt&&Array.isArray(Rn[$t==null?void 0:$t.options])&&Ft(Rn[$t==null?void 0:$t.options],!0))break}};nt(St)}}var Vn=null,Wn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],ur=["inputValue"];function rr(St){return!St||(0,pe.Z)(St)!=="object"}var hn=le.forwardRef(function(St,$t){var nt=St.id,Ft=St.mode,Ke=St.prefixCls,Tt=Ke===void 0?"rc-select":Ke,Yt=St.backfill,Rn=St.fieldNames,Zn=St.inputValue,yt=St.searchValue,xt=St.onSearch,Bt=St.autoClearSearchValue,At=Bt===void 0?!0:Bt,pn=St.onSelect,Pn=St.onDeselect,In=St.dropdownMatchSelectWidth,Mn=In===void 0?!0:In,qn=St.filterOption,nr=St.filterSort,ir=St.optionFilterProp,lr=St.optionLabelProp,Qn=St.options,ar=St.optionRender,fr=St.children,Sr=St.defaultActiveFirstOption,br=St.menuItemSelectedIcon,Zr=St.virtual,jr=St.direction,hr=St.listHeight,Nr=hr===void 0?200:hr,eo=St.listItemHeight,Tr=eo===void 0?20:eo,Pr=St.labelRender,or=St.value,Ur=St.defaultValue,Rr=St.labelInValue,Br=St.onChange,Cr=St.maxCount,so=(0,me.Z)(St,Wn),Ho=(0,Ct.ZP)(nt),ti=cn(Ft),Eo=!!(!Qn&&fr),No=le.useMemo(function(){return qn===void 0&&Ft==="combobox"?!1:qn},[qn,Ft]),To=le.useMemo(function(){return _e(Rn,Eo)},[JSON.stringify(Rn),Eo]),Xo=(0,Ne.Z)("",{value:yt!==void 0?yt:Zn,postState:function(ai){return ai||""}}),ko=(0,ve.Z)(Xo,2),vo=ko[0],dr=ko[1],Tn=yn(Qn,fr,To,ir,lr),Gn=Tn.valueOptions,Yn=Tn.labelOptions,Ln=Tn.options,mr=le.useCallback(function(jo){var ai=$e(jo);return ai.map(function(Ro){var Bo,qo,Bi,Wa,zi;if(rr(Ro))Bo=Ro;else{var Qi;Bi=Ro.key,qo=Ro.label,Bo=(Qi=Ro.value)!==null&&Qi!==void 0?Qi:Bi}var sa=Gn.get(Bo);if(sa){var cl;if(qo===void 0&&(qo=sa==null?void 0:sa[lr||To.label]),Bi===void 0&&(Bi=(cl=sa==null?void 0:sa.key)!==null&&cl!==void 0?cl:Bo),Wa=sa==null?void 0:sa.disabled,zi=sa==null?void 0:sa.title,0)var xl}return{label:qo,value:Bo,key:Bi,disabled:Wa,title:zi}})},[To,lr,Gn]),wr=(0,Ne.Z)(Ur,{value:or}),Un=(0,ve.Z)(wr,2),Jn=Un[0],sr=Un[1],pr=le.useMemo(function(){var jo,ai=ti&&Jn===null?[]:Jn,Ro=mr(ai);return Ft==="combobox"&&ye((jo=Ro[0])===null||jo===void 0?void 0:jo.value)?[]:Ro},[Jn,mr,Ft,ti]),_r=Sn(pr,Gn),Yr=(0,ve.Z)(_r,2),to=Yr[0],Po=Yr[1],Mo=le.useMemo(function(){if(!Ft&&to.length===1){var jo=to[0];if(jo.value===null&&(jo.label===null||jo.label===void 0))return[]}return to.map(function(ai){var Ro;return(0,Re.Z)((0,Re.Z)({},ai),{},{label:(Ro=typeof Pr=="function"?Pr(ai):ai.label)!==null&&Ro!==void 0?Ro:ai.value})})},[Ft,to,Pr]),Yo=le.useMemo(function(){return new Set(to.map(function(jo){return jo.value}))},[to]);le.useEffect(function(){if(Ft==="combobox"){var jo,ai=(jo=to[0])===null||jo===void 0?void 0:jo.value;dr(Le(ai)?String(ai):"")}},[to]);var Jo=jn(function(jo,ai){var Ro=ai!=null?ai:jo;return(0,ce.Z)((0,ce.Z)({},To.value,jo),To.label,Ro)}),ni=le.useMemo(function(){if(Ft!=="tags")return Ln;var jo=(0,he.Z)(Ln),ai=function(Bo){return Gn.has(Bo)};return(0,he.Z)(to).sort(function(Ro,Bo){return Ro.value<Bo.value?-1:1}).forEach(function(Ro){var Bo=Ro.value;ai(Bo)||jo.push(Jo(Bo,Ro.label))}),jo},[Jo,Ln,Gn,to,Ft]),ri=Cn(ni,To,vo,No,ir),Mi=le.useMemo(function(){return Ft!=="tags"||!vo||ri.some(function(jo){return jo[ir||"value"]===vo})||ri.some(function(jo){return jo[To.value]===vo})?ri:[Jo(vo)].concat((0,he.Z)(ri))},[Jo,ir,Ft,ri,vo,To]),$i=function jo(ai){var Ro=(0,he.Z)(ai).sort(function(Bo,qo){return nr(Bo,qo,{searchValue:vo})});return Ro.map(function(Bo){return Array.isArray(Bo.options)?(0,Re.Z)((0,Re.Z)({},Bo),{},{options:Bo.options.length>0?jo(Bo.options):Bo.options}):Bo})},Xi=le.useMemo(function(){return nr?$i(Mi):Mi},[Mi,nr,vo]),Yi=le.useMemo(function(){return ke(Xi,{fieldNames:To,childrenAsData:Eo})},[Xi,To,Eo]),ta=function(ai){var Ro=mr(ai);if(sr(Ro),Br&&(Ro.length!==to.length||Ro.some(function(Bi,Wa){var zi;return((zi=to[Wa])===null||zi===void 0?void 0:zi.value)!==(Bi==null?void 0:Bi.value)}))){var Bo=Rr?Ro:Ro.map(function(Bi){return Bi.value}),qo=Ro.map(function(Bi){return ot(Po(Bi.value))});Br(ti?Bo:Bo[0],ti?qo:qo[0])}},Lo=le.useState(null),co=(0,ve.Z)(Lo,2),wi=co[0],wo=co[1],aa=le.useState(0),Qa=(0,ve.Z)(aa,2),Ha=Qa[0],da=Qa[1],fa=Sr!==void 0?Sr:Ft!=="combobox",Ti=le.useCallback(function(jo,ai){var Ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bo=Ro.source,qo=Bo===void 0?"keyboard":Bo;da(ai),Yt&&Ft==="combobox"&&jo!==null&&qo==="keyboard"&&wo(String(jo))},[Yt,Ft]),ka=function(ai,Ro,Bo){var qo=function(){var kl,dl=Po(ai);return[Rr?{label:dl==null?void 0:dl[To.label],value:ai,key:(kl=dl==null?void 0:dl.key)!==null&&kl!==void 0?kl:ai}:ai,ot(dl)]};if(Ro&&pn){var Bi=qo(),Wa=(0,ve.Z)(Bi,2),zi=Wa[0],Qi=Wa[1];pn(zi,Qi)}else if(!Ro&&Pn&&Bo!=="clear"){var sa=qo(),cl=(0,ve.Z)(sa,2),xl=cl[0],Va=cl[1];Pn(xl,Va)}},rl=jn(function(jo,ai){var Ro,Bo=ti?ai.selected:!0;Bo?Ro=ti?[].concat((0,he.Z)(to),[jo]):[jo]:Ro=to.filter(function(qo){return qo.value!==jo}),ta(Ro),ka(jo,Bo),Ft==="combobox"?wo(""):(!cn||At)&&(dr(""),wo(""))}),Ja=function(ai,Ro){ta(ai);var Bo=Ro.type,qo=Ro.values;(Bo==="remove"||Bo==="clear")&&qo.forEach(function(Bi){ka(Bi.value,!1,Bo)})},la=function(ai,Ro){if(dr(ai),wo(null),Ro.source==="submit"){var Bo=(ai||"").trim();if(Bo){var qo=Array.from(new Set([].concat((0,he.Z)(Yo),[Bo])));ta(qo),ka(Bo,!0),dr("")}return}Ro.source!=="blur"&&(Ft==="combobox"&&ta(ai),xt==null||xt(ai))},Fl=function(ai){var Ro=ai;Ft!=="tags"&&(Ro=ai.map(function(qo){var Bi=Yn.get(qo);return Bi==null?void 0:Bi.value}).filter(function(qo){return qo!==void 0}));var Bo=Array.from(new Set([].concat((0,he.Z)(Yo),(0,he.Z)(Ro))));ta(Bo),Bo.forEach(function(qo){ka(qo,!0)})},El=le.useMemo(function(){var jo=Zr!==!1&&Mn!==!1;return(0,Re.Z)((0,Re.Z)({},Tn),{},{flattenOptions:Yi,onActiveValue:Ti,defaultActiveFirstOption:fa,onSelect:rl,menuItemSelectedIcon:br,rawValues:Yo,fieldNames:To,virtual:jo,direction:jr,listHeight:Nr,listItemHeight:Tr,childrenAsData:Eo,maxCount:Cr,optionRender:ar})},[Cr,Tn,Yi,Ti,fa,rl,br,Yo,To,Zr,Mn,jr,Nr,Tr,Eo,ar]);return le.createElement(Ze.Provider,{value:El},le.createElement(_t,(0,y.Z)({},so,{id:Ho,prefixCls:Tt,ref:$t,omitDomProps:ur,mode:Ft,displayValues:Mo,onDisplayValuesChange:Ja,direction:jr,searchValue:vo,onSearch:la,autoClearSearchValue:At,onSearchSplit:Fl,dropdownMatchSelectWidth:Mn,OptionList:sn,emptyOptions:!Yi.length,activeValue:wi,activeDescendantId:"".concat(Ho,"_list_").concat(Ha)})))}),Bn=hn;Bn.Option=Ot,Bn.OptGroup=qt;var zn=Bn,Hn=zn},22711:function(En,Vt,z){"use strict";z.r(Vt),z.d(Vt,{ResizableTextArea:function(){return ge},default:function(){return ft}});var y=z(60499),he=z(18642),ce=z(85899),Re=z(77654),ve=z(72190),me=z(42244),pe=z(92310),Ne=z.n(pe),be=z(36901),le=z(66003),je=z(30292),Ae=z(18929),it=z(59301),ze=z(43749),Oe=z(29301),Ee=z(34280),Pe=z(16089),Fe=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Ve=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],dt={},Se;function Ie($e){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=$e.getAttribute("id")||$e.getAttribute("data-reactid")||$e.getAttribute("name");if(tt&&dt[Nt])return dt[Nt];var Le=window.getComputedStyle($e),ye=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),Et=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),Zt=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),pt=Ve.map(function(at){return"".concat(at,":").concat(Le.getPropertyValue(at))}).join(";"),Ce={sizingStyle:pt,paddingSize:Et,borderSize:Zt,boxSizing:ye};return tt&&Nt&&(dt[Nt]=Ce),Ce}function Xe($e){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Se||(Se=document.createElement("textarea"),Se.setAttribute("tab-index","-1"),Se.setAttribute("aria-hidden","true"),Se.setAttribute("name","hiddenTextarea"),document.body.appendChild(Se)),$e.getAttribute("wrap")?Se.setAttribute("wrap",$e.getAttribute("wrap")):Se.removeAttribute("wrap");var ye=Ie($e,tt),Et=ye.paddingSize,Zt=ye.borderSize,pt=ye.boxSizing,Ce=ye.sizingStyle;Se.setAttribute("style","".concat(Ce,";").concat(Fe)),Se.value=$e.value||$e.placeholder||"";var at=void 0,qe=void 0,zt,ut=Se.scrollHeight;if(pt==="border-box"?ut+=Zt:pt==="content-box"&&(ut-=Et),Nt!==null||Le!==null){Se.value=" ";var ct=Se.scrollHeight-Et;Nt!==null&&(at=ct*Nt,pt==="border-box"&&(at=at+Et+Zt),ut=Math.max(at,ut)),Le!==null&&(qe=ct*Le,pt==="border-box"&&(qe=qe+Et+Zt),zt=ut>qe?"":"hidden",ut=Math.min(qe,ut))}var lt={height:ut,overflowY:zt,resize:"none"};return at&&(lt.minHeight=at),qe&&(lt.maxHeight=qe),lt}var He=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rt=0,st=1,Je=2,et=it.forwardRef(function($e,tt){var Nt=$e,Le=Nt.prefixCls,ye=Nt.defaultValue,Et=Nt.value,Zt=Nt.autoSize,pt=Nt.onResize,Ce=Nt.className,at=Nt.style,qe=Nt.disabled,zt=Nt.onChange,ut=Nt.onInternalAutoSize,ct=(0,me.Z)(Nt,He),lt=(0,Ae.Z)(ye,{value:Et,postState:function(Ot){return Ot!=null?Ot:""}}),nn=(0,ve.Z)(lt,2),kt=nn[0],ae=nn[1],ne=function(Ot){ae(Ot.target.value),zt==null||zt(Ot)},te=it.useRef();it.useImperativeHandle(tt,function(){return{textArea:te.current}});var ie=it.useMemo(function(){return Zt&&(0,ze.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),fe=(0,ve.Z)(ie,2),re=fe[0],ue=fe[1],Me=!!Zt,gt=function(){try{if(document.activeElement===te.current){var Ot=te.current,Jt=Ot.selectionStart,on=Ot.selectionEnd,Ge=Ot.scrollTop;te.current.setSelectionRange(Jt,on),te.current.scrollTop=Ge}}catch(Pt){}},_e=it.useState(Je),ke=(0,ve.Z)(_e,2),ot=ke[0],ht=ke[1],wt=it.useState(),Ze=(0,ve.Z)(wt,2),We=Ze[0],Mt=Ze[1],Ut=function(){ht(rt)};(0,Ee.Z)(function(){Me&&Ut()},[Et,re,ue,Me]),(0,Ee.Z)(function(){if(ot===rt)ht(st);else if(ot===st){var Ye=Xe(te.current,!1,re,ue);ht(Je),Mt(Ye)}else gt()},[ot]);var cn=it.useRef(),ln=function(){Pe.Z.cancel(cn.current)},_t=function(Ot){ot===Je&&(pt==null||pt(Ot),Zt&&(ln(),cn.current=(0,Pe.Z)(function(){Ut()})))};it.useEffect(function(){return ln},[]);var fn=Me?We:null,qt=(0,ce.Z)((0,ce.Z)({},at),fn);return(ot===rt||ot===st)&&(qt.overflowY="hidden",qt.overflowX="hidden"),it.createElement(Oe.Z,{onResize:_t,disabled:!(Zt||pt)},it.createElement("textarea",(0,y.Z)({},ct,{ref:te,style:qt,className:Ne()(Le,Ce,(0,he.Z)({},"".concat(Le,"-disabled"),qe)),disabled:qe,value:kt,onChange:ne})))}),ge=et,Qe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],we=it.forwardRef(function($e,tt){var Nt,Le=$e.defaultValue,ye=$e.value,Et=$e.onFocus,Zt=$e.onBlur,pt=$e.onChange,Ce=$e.allowClear,at=$e.maxLength,qe=$e.onCompositionStart,zt=$e.onCompositionEnd,ut=$e.suffix,ct=$e.prefixCls,lt=ct===void 0?"rc-textarea":ct,nn=$e.showCount,kt=$e.count,ae=$e.className,ne=$e.style,te=$e.disabled,ie=$e.hidden,fe=$e.classNames,re=$e.styles,ue=$e.onResize,Me=$e.onClear,gt=$e.onPressEnter,_e=$e.readOnly,ke=$e.autoSize,ot=$e.onKeyDown,ht=(0,me.Z)($e,Qe),wt=(0,Ae.Z)(Le,{value:ye,defaultValue:Le}),Ze=(0,ve.Z)(wt,2),We=Ze[0],Mt=Ze[1],Ut=We==null?"":String(We),cn=it.useState(!1),ln=(0,ve.Z)(cn,2),_t=ln[0],fn=ln[1],qt=it.useRef(!1),Ye=it.useState(null),Ot=(0,ve.Z)(Ye,2),Jt=Ot[0],on=Ot[1],Ge=(0,it.useRef)(null),Pt=(0,it.useRef)(null),jt=function(){var Bn;return(Bn=Pt.current)===null||Bn===void 0?void 0:Bn.textArea},vt=function(){jt().focus()};(0,it.useImperativeHandle)(tt,function(){var hn;return{resizableTextArea:Pt.current,focus:vt,blur:function(){jt().blur()},nativeElement:((hn=Ge.current)===null||hn===void 0?void 0:hn.nativeElement)||jt()}}),(0,it.useEffect)(function(){fn(function(hn){return!te&&hn})},[te]);var Lt=it.useState(null),Rt=(0,ve.Z)(Lt,2),sn=Rt[0],Sn=Rt[1];it.useEffect(function(){if(sn){var hn;(hn=jt()).setSelectionRange.apply(hn,(0,Re.Z)(sn))}},[sn]);var un=(0,le.Z)(kt,nn),Cn=(Nt=un.max)!==null&&Nt!==void 0?Nt:at,Ct=Number(Cn)>0,It=un.strategy(Ut),Gt=!!Cn&&It>Cn,tn=function(Bn,zn){var Hn=zn;!qt.current&&un.exceedFormatter&&un.max&&un.strategy(zn)>un.max&&(Hn=un.exceedFormatter(zn,{max:un.max}),zn!==Hn&&Sn([jt().selectionStart||0,jt().selectionEnd||0])),Mt(Hn),(0,je.rJ)(Bn.currentTarget,Bn,pt,Hn)},Wt=function(Bn){qt.current=!0,qe==null||qe(Bn)},mn=function(Bn){qt.current=!1,tn(Bn,Bn.currentTarget.value),zt==null||zt(Bn)},an=function(Bn){tn(Bn,Bn.target.value)},yn=function(Bn){Bn.key==="Enter"&&gt&&gt(Bn),ot==null||ot(Bn)},jn=function(Bn){fn(!0),Et==null||Et(Bn)},Nn=function(Bn){fn(!1),Zt==null||Zt(Bn)},$n=function(Bn){Mt(""),vt(),(0,je.rJ)(jt(),Bn,pt)},Vn=ut,Wn;un.show&&(un.showFormatter?Wn=un.showFormatter({value:Ut,count:It,maxLength:Cn}):Wn="".concat(It).concat(Ct?" / ".concat(Cn):""),Vn=it.createElement(it.Fragment,null,Vn,it.createElement("span",{className:Ne()("".concat(lt,"-data-count"),fe==null?void 0:fe.count),style:re==null?void 0:re.count},Wn)));var ur=function(Bn){var zn;ue==null||ue(Bn),(zn=jt())!==null&&zn!==void 0&&zn.style.height&&on(!0)},rr=!ke&&!nn&&!Ce;return it.createElement(be.BaseInput,{ref:Ge,value:Ut,allowClear:Ce,handleReset:$n,suffix:Vn,prefixCls:lt,classNames:(0,ce.Z)((0,ce.Z)({},fe),{},{affixWrapper:Ne()(fe==null?void 0:fe.affixWrapper,(0,he.Z)((0,he.Z)({},"".concat(lt,"-show-count"),nn),"".concat(lt,"-textarea-allow-clear"),Ce))}),disabled:te,focused:_t,className:Ne()(ae,Gt&&"".concat(lt,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},ne),Jt&&!rr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wn=="string"?Wn:void 0}},hidden:ie,readOnly:_e,onClear:Me},it.createElement(ge,(0,y.Z)({},ht,{autoSize:ke,maxLength:at,onKeyDown:yn,onChange:an,onFocus:jn,onBlur:Nn,onCompositionStart:Wt,onCompositionEnd:mn,className:Ne()(fe==null?void 0:fe.textarea),style:(0,ce.Z)((0,ce.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:lt,onResize:ur,ref:Pt,readOnly:_e})))}),se=we,ft=se},639:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return dt}});var y=z(60499),he=z(18642),ce=z(85899),Re=z(72190),ve=z(42244),me=z(59301),pe=z(92310),Ne=z.n(pe),be=z(26112),le=z(30699),je=function(Ie){for(var Xe=Ie.prefixCls,He=Ie.level,rt=Ie.isStart,st=Ie.isEnd,Je="".concat(Xe,"-indent-unit"),et=[],ge=0;ge<He;ge+=1)et.push(me.createElement("span",{key:ge,className:Ne()(Je,(0,he.Z)((0,he.Z)({},"".concat(Je,"-start"),rt[ge]),"".concat(Je,"-end"),st[ge]))}));return me.createElement("span",{"aria-hidden":"true",className:"".concat(Xe,"-indent")},et)},Ae=me.memo(je),it=z(65065),ze=z(34061),Oe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ee="open",Pe="close",Fe="---",Ve=function(Ie){var Xe,He,rt,st=Ie.eventKey,Je=Ie.className,et=Ie.style,ge=Ie.dragOver,Qe=Ie.dragOverGapTop,we=Ie.dragOverGapBottom,se=Ie.isLeaf,ft=Ie.isStart,$e=Ie.isEnd,tt=Ie.expanded,Nt=Ie.selected,Le=Ie.checked,ye=Ie.halfChecked,Et=Ie.loading,Zt=Ie.domRef,pt=Ie.active,Ce=Ie.data,at=Ie.onMouseMove,qe=Ie.selectable,zt=(0,ve.Z)(Ie,Oe),ut=me.useContext(le.k),ct=me.useContext(le.y),lt=me.useRef(null),nn=me.useState(!1),kt=(0,Re.Z)(nn,2),ae=kt[0],ne=kt[1],te=!!(ut.disabled||Ie.disabled||(Xe=ct.nodeDisabled)!==null&&Xe!==void 0&&Xe.call(ct,Ce)),ie=me.useMemo(function(){return!ut.checkable||Ie.checkable===!1?!1:ut.checkable},[ut.checkable,Ie.checkable]),fe=function(It){te||ut.onNodeSelect(It,(0,ze.F)(Ie))},re=function(It){te||!ie||Ie.disableCheckbox||ut.onNodeCheck(It,(0,ze.F)(Ie),!Le)},ue=me.useMemo(function(){return typeof qe=="boolean"?qe:ut.selectable},[qe,ut.selectable]),Me=function(It){ut.onNodeClick(It,(0,ze.F)(Ie)),ue?fe(It):re(It)},gt=function(It){ut.onNodeDoubleClick(It,(0,ze.F)(Ie))},_e=function(It){ut.onNodeMouseEnter(It,(0,ze.F)(Ie))},ke=function(It){ut.onNodeMouseLeave(It,(0,ze.F)(Ie))},ot=function(It){ut.onNodeContextMenu(It,(0,ze.F)(Ie))},ht=me.useMemo(function(){return!!(ut.draggable&&(!ut.draggable.nodeDraggable||ut.draggable.nodeDraggable(Ce)))},[ut.draggable,Ce]),wt=function(It){It.stopPropagation(),ne(!0),ut.onNodeDragStart(It,Ie);try{It.dataTransfer.setData("text/plain","")}catch(Gt){}},Ze=function(It){It.preventDefault(),It.stopPropagation(),ut.onNodeDragEnter(It,Ie)},We=function(It){It.preventDefault(),It.stopPropagation(),ut.onNodeDragOver(It,Ie)},Mt=function(It){It.stopPropagation(),ut.onNodeDragLeave(It,Ie)},Ut=function(It){It.stopPropagation(),ne(!1),ut.onNodeDragEnd(It,Ie)},cn=function(It){It.preventDefault(),It.stopPropagation(),ne(!1),ut.onNodeDrop(It,Ie)},ln=function(It){Et||ut.onNodeExpand(It,(0,ze.F)(Ie))},_t=me.useMemo(function(){var Ct=(0,it.Z)(ut.keyEntities,st)||{},It=Ct.children;return!!(It||[]).length},[ut.keyEntities,st]),fn=me.useMemo(function(){return se===!1?!1:se||!ut.loadData&&!_t||ut.loadData&&Ie.loaded&&!_t},[se,ut.loadData,_t,Ie.loaded]);me.useEffect(function(){Et||typeof ut.loadData=="function"&&tt&&!fn&&!Ie.loaded&&ut.onNodeLoad((0,ze.F)(Ie))},[Et,ut.loadData,ut.onNodeLoad,tt,fn,Ie]);var qt=me.useMemo(function(){var Ct;return(Ct=ut.draggable)!==null&&Ct!==void 0&&Ct.icon?me.createElement("span",{className:"".concat(ut.prefixCls,"-draggable-icon")},ut.draggable.icon):null},[ut.draggable]),Ye=function(It){var Gt=Ie.switcherIcon||ut.switcherIcon;return typeof Gt=="function"?Gt((0,ce.Z)((0,ce.Z)({},Ie),{},{isLeaf:It})):Gt},Ot=function(){if(fn){var It=Ye(!0);return It!==!1?me.createElement("span",{className:Ne()("".concat(ut.prefixCls,"-switcher"),"".concat(ut.prefixCls,"-switcher-noop"))},It):null}var Gt=Ye(!1);return Gt!==!1?me.createElement("span",{onClick:ln,className:Ne()("".concat(ut.prefixCls,"-switcher"),"".concat(ut.prefixCls,"-switcher_").concat(tt?Ee:Pe))},Gt):null},Jt=me.useMemo(function(){if(!ie)return null;var Ct=typeof ie!="boolean"?ie:null;return me.createElement("span",{className:Ne()("".concat(ut.prefixCls,"-checkbox"),(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(ut.prefixCls,"-checkbox-checked"),Le),"".concat(ut.prefixCls,"-checkbox-indeterminate"),!Le&&ye),"".concat(ut.prefixCls,"-checkbox-disabled"),te||Ie.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":ye?"mixed":Le,"aria-disabled":te||Ie.disableCheckbox,"aria-label":"Select ".concat(typeof Ie.title=="string"?Ie.title:"tree node")},Ct)},[ie,Le,ye,te,Ie.disableCheckbox,Ie.title]),on=me.useMemo(function(){return fn?null:tt?Ee:Pe},[fn,tt]),Ge=me.useMemo(function(){return me.createElement("span",{className:Ne()("".concat(ut.prefixCls,"-iconEle"),"".concat(ut.prefixCls,"-icon__").concat(on||"docu"),(0,he.Z)({},"".concat(ut.prefixCls,"-icon_loading"),Et))})},[ut.prefixCls,on,Et]),Pt=me.useMemo(function(){var Ct=!!ut.draggable,It=!Ie.disabled&&Ct&&ut.dragOverNodeKey===st;return It?ut.dropIndicatorRender({dropPosition:ut.dropPosition,dropLevelOffset:ut.dropLevelOffset,indent:ut.indent,prefixCls:ut.prefixCls,direction:ut.direction}):null},[ut.dropPosition,ut.dropLevelOffset,ut.indent,ut.prefixCls,ut.direction,ut.draggable,ut.dragOverNodeKey,ut.dropIndicatorRender]),jt=me.useMemo(function(){var Ct=Ie.title,It=Ct===void 0?Fe:Ct,Gt="".concat(ut.prefixCls,"-node-content-wrapper"),tn;if(ut.showIcon){var Wt=Ie.icon||ut.icon;tn=Wt?me.createElement("span",{className:Ne()("".concat(ut.prefixCls,"-iconEle"),"".concat(ut.prefixCls,"-icon__customize"))},typeof Wt=="function"?Wt(Ie):Wt):Ge}else ut.loadData&&Et&&(tn=Ge);var mn;return typeof It=="function"?mn=It(Ce):ut.titleRender?mn=ut.titleRender(Ce):mn=It,me.createElement("span",{ref:lt,title:typeof It=="string"?It:"",className:Ne()(Gt,"".concat(Gt,"-").concat(on||"normal"),(0,he.Z)({},"".concat(ut.prefixCls,"-node-selected"),!te&&(Nt||ae))),onMouseEnter:_e,onMouseLeave:ke,onContextMenu:ot,onClick:Me,onDoubleClick:gt},tn,me.createElement("span",{className:"".concat(ut.prefixCls,"-title")},mn),Pt)},[ut.prefixCls,ut.showIcon,Ie,ut.icon,Ge,ut.titleRender,Ce,on,_e,ke,ot,Me,gt]),vt=(0,be.Z)(zt,{aria:!0,data:!0}),Lt=(0,it.Z)(ut.keyEntities,st)||{},Rt=Lt.level,sn=$e[$e.length-1],Sn=!te&&ht,un=ut.draggingNodeKey===st,Cn=qe!==void 0?{"aria-selected":!!qe}:void 0;return me.createElement("div",(0,y.Z)({ref:Zt,role:"treeitem","aria-expanded":se?void 0:tt,className:Ne()(Je,"".concat(ut.prefixCls,"-treenode"),(rt={},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(rt,"".concat(ut.prefixCls,"-treenode-disabled"),te),"".concat(ut.prefixCls,"-treenode-switcher-").concat(tt?"open":"close"),!se),"".concat(ut.prefixCls,"-treenode-checkbox-checked"),Le),"".concat(ut.prefixCls,"-treenode-checkbox-indeterminate"),ye),"".concat(ut.prefixCls,"-treenode-selected"),Nt),"".concat(ut.prefixCls,"-treenode-loading"),Et),"".concat(ut.prefixCls,"-treenode-active"),pt),"".concat(ut.prefixCls,"-treenode-leaf-last"),sn),"".concat(ut.prefixCls,"-treenode-draggable"),ht),"dragging",un),(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(rt,"drop-target",ut.dropTargetKey===st),"drop-container",ut.dropContainerKey===st),"drag-over",!te&&ge),"drag-over-gap-top",!te&&Qe),"drag-over-gap-bottom",!te&&we),"filter-node",(He=ut.filterTreeNode)===null||He===void 0?void 0:He.call(ut,(0,ze.F)(Ie))),"".concat(ut.prefixCls,"-treenode-leaf"),fn))),style:et,draggable:Sn,onDragStart:Sn?wt:void 0,onDragEnter:ht?Ze:void 0,onDragOver:ht?We:void 0,onDragLeave:ht?Mt:void 0,onDrop:ht?cn:void 0,onDragEnd:ht?Ut:void 0,onMouseMove:at},Cn,vt),me.createElement(Ae,{prefixCls:ut.prefixCls,level:Rt,isStart:ft,isEnd:$e}),qt,Ot(),Jt,jt)};Ve.isTreeNode=1;var dt=Ve},30699:function(En,Vt,z){"use strict";z.d(Vt,{k:function(){return he},y:function(){return ce}});var y=z(59301),he=y.createContext(null),ce=y.createContext({})},87632:function(En,Vt,z){"use strict";z.d(Vt,{OF:function(){return st.Z},y6:function(){return Pe.y},ZP:function(){return te}});var y=z(60499),he=z(43749),ce=z(85899),Re=z(77654),ve=z(38705),me=z(17212),pe=z(15793),Ne=z(39153),be=z(55401),le=z(18642),je=z(92310),Ae=z.n(je),it=z(10228),ze=z(26112),Oe=z(48736),Ee=z(59301),Pe=z(30699),Fe=function(fe){var re=fe.dropPosition,ue=fe.dropLevelOffset,Me=fe.indent,gt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:gt.top=0,gt.left=-ue*Me;break;case 1:gt.bottom=0,gt.left=-ue*Me;break;case 0:gt.bottom=0,gt.left=Me;break}return Ee.createElement("div",{style:gt})},Ve=Fe;function dt(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}var Se=z(72190),Ie=z(42244),Xe=z(34280),He=z(48911),rt=z(77900),st=z(639);function Je(ie,fe){var re=Ee.useState(!1),ue=(0,Se.Z)(re,2),Me=ue[0],gt=ue[1];(0,Xe.Z)(function(){if(Me)return ie(),function(){fe()}},[Me]),(0,Xe.Z)(function(){return gt(!0),function(){gt(!1)}},[])}var et=Je,ge=z(34061),Qe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],we=Ee.forwardRef(function(ie,fe){var re=ie.className,ue=ie.style,Me=ie.motion,gt=ie.motionNodes,_e=ie.motionType,ke=ie.onMotionStart,ot=ie.onMotionEnd,ht=ie.active,wt=ie.treeNodeRequiredProps,Ze=(0,Ie.Z)(ie,Qe),We=Ee.useState(!0),Mt=(0,Se.Z)(We,2),Ut=Mt[0],cn=Mt[1],ln=Ee.useContext(Pe.k),_t=ln.prefixCls,fn=gt&&_e!=="hide";(0,Xe.Z)(function(){gt&&fn!==Ut&&cn(fn)},[gt]);var qt=function(){gt&&ke()},Ye=Ee.useRef(!1),Ot=function(){gt&&!Ye.current&&(Ye.current=!0,ot())};et(qt,Ot);var Jt=function(Ge){fn===Ge&&Ot()};return gt?Ee.createElement(rt.default,(0,y.Z)({ref:fe,visible:Ut},Me,{motionAppear:_e==="show",onVisibleChanged:Jt}),function(on,Ge){var Pt=on.className,jt=on.style;return Ee.createElement("div",{ref:Ge,className:Ae()("".concat(_t,"-treenode-motion"),Pt),style:jt},gt.map(function(vt){var Lt=Object.assign({},(dt(vt.data),vt.data)),Rt=vt.title,sn=vt.key,Sn=vt.isStart,un=vt.isEnd;delete Lt.children;var Cn=(0,ge.H8)(sn,wt);return Ee.createElement(st.Z,(0,y.Z)({},Lt,Cn,{title:Rt,active:ht,data:vt.data,key:sn,isStart:Sn,isEnd:un}))}))}):Ee.createElement(st.Z,(0,y.Z)({domRef:fe,className:re,style:ue},Ze,{active:ht}))}),se=we;function ft(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=ie.length,ue=fe.length;if(Math.abs(re-ue)!==1)return{add:!1,key:null};function Me(gt,_e){var ke=new Map;gt.forEach(function(ht){ke.set(ht,!0)});var ot=_e.filter(function(ht){return!ke.has(ht)});return ot.length===1?ot[0]:null}return re<ue?{add:!0,key:Me(ie,fe)}:{add:!1,key:Me(fe,ie)}}function $e(ie,fe,re){var ue=ie.findIndex(function(ke){return ke.key===re}),Me=ie[ue+1],gt=fe.findIndex(function(ke){return ke.key===re});if(Me){var _e=fe.findIndex(function(ke){return ke.key===Me.key});return fe.slice(gt+1,_e)}return fe.slice(gt+1)}var tt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Nt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Le=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),Et={key:ye},Zt={key:ye,level:0,index:0,pos:"0",node:Et,nodes:[Et]},pt={parent:null,children:[],pos:Zt.pos,data:Et,title:null,key:ye,isStart:[],isEnd:[]};function Ce(ie,fe,re,ue){return fe===!1||!re?ie:ie.slice(0,Math.ceil(re/ue)+1)}function at(ie){var fe=ie.key,re=ie.pos;return(0,ge.km)(fe,re)}function qe(ie){for(var fe=String(ie.data.key),re=ie;re.parent;)re=re.parent,fe="".concat(re.data.key," > ").concat(fe);return fe}var zt=Ee.forwardRef(function(ie,fe){var re=ie.prefixCls,ue=ie.data,Me=ie.selectable,gt=ie.checkable,_e=ie.expandedKeys,ke=ie.selectedKeys,ot=ie.checkedKeys,ht=ie.loadedKeys,wt=ie.loadingKeys,Ze=ie.halfCheckedKeys,We=ie.keyEntities,Mt=ie.disabled,Ut=ie.dragging,cn=ie.dragOverNodeKey,ln=ie.dropPosition,_t=ie.motion,fn=ie.height,qt=ie.itemHeight,Ye=ie.virtual,Ot=ie.scrollWidth,Jt=ie.focusable,on=ie.activeItem,Ge=ie.focused,Pt=ie.tabIndex,jt=ie.onKeyDown,vt=ie.onFocus,Lt=ie.onBlur,Rt=ie.onActiveChange,sn=ie.onListChangeStart,Sn=ie.onListChangeEnd,un=(0,Ie.Z)(ie,tt),Cn=Ee.useRef(null),Ct=Ee.useRef(null);Ee.useImperativeHandle(fe,function(){return{scrollTo:function(Rn){Cn.current.scrollTo(Rn)},getIndentWidth:function(){return Ct.current.offsetWidth}}});var It=Ee.useState(_e),Gt=(0,Se.Z)(It,2),tn=Gt[0],Wt=Gt[1],mn=Ee.useState(ue),an=(0,Se.Z)(mn,2),yn=an[0],jn=an[1],Nn=Ee.useState(ue),$n=(0,Se.Z)(Nn,2),Vn=$n[0],Wn=$n[1],ur=Ee.useState([]),rr=(0,Se.Z)(ur,2),hn=rr[0],Bn=rr[1],zn=Ee.useState(null),Hn=(0,Se.Z)(zn,2),St=Hn[0],$t=Hn[1],nt=Ee.useRef(ue);nt.current=ue;function Ft(){var Yt=nt.current;jn(Yt),Wn(Yt),Bn([]),$t(null),Sn()}(0,Xe.Z)(function(){Wt(_e);var Yt=ft(tn,_e);if(Yt.key!==null)if(Yt.add){var Rn=yn.findIndex(function(pn){var Pn=pn.key;return Pn===Yt.key}),Zn=Ce($e(yn,ue,Yt.key),Ye,fn,qt),yt=yn.slice();yt.splice(Rn+1,0,pt),Wn(yt),Bn(Zn),$t("show")}else{var xt=ue.findIndex(function(pn){var Pn=pn.key;return Pn===Yt.key}),Bt=Ce($e(ue,yn,Yt.key),Ye,fn,qt),At=ue.slice();At.splice(xt+1,0,pt),Wn(At),Bn(Bt),$t("hide")}else yn!==ue&&(jn(ue),Wn(ue))},[_e,ue]),Ee.useEffect(function(){Ut||Ft()},[Ut]);var Ke=_t?Vn:ue,Tt={expandedKeys:_e,selectedKeys:ke,loadedKeys:ht,loadingKeys:wt,checkedKeys:ot,halfCheckedKeys:Ze,dragOverNodeKey:cn,dropPosition:ln,keyEntities:We};return Ee.createElement(Ee.Fragment,null,Ge&&on&&Ee.createElement("span",{style:Nt,"aria-live":"assertive"},qe(on)),Ee.createElement("div",null,Ee.createElement("input",{style:Nt,disabled:Jt===!1||Mt,tabIndex:Jt!==!1?Pt:null,onKeyDown:jt,onFocus:vt,onBlur:Lt,value:"",onChange:Le,"aria-label":"for screen reader"})),Ee.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ee.createElement("div",{className:"".concat(re,"-indent")},Ee.createElement("div",{ref:Ct,className:"".concat(re,"-indent-unit")}))),Ee.createElement(He.Z,(0,y.Z)({},un,{data:Ke,itemKey:at,height:fn,fullHeight:!1,virtual:Ye,itemHeight:qt,scrollWidth:Ot,prefixCls:"".concat(re,"-list"),ref:Cn,role:"tree",onVisibleChange:function(Rn){Rn.every(function(Zn){return at(Zn)!==ye})&&Ft()}}),function(Yt){var Rn=Yt.pos,Zn=Object.assign({},(dt(Yt.data),Yt.data)),yt=Yt.title,xt=Yt.key,Bt=Yt.isStart,At=Yt.isEnd,pn=(0,ge.km)(xt,Rn);delete Zn.key,delete Zn.children;var Pn=(0,ge.H8)(pn,Tt);return Ee.createElement(se,(0,y.Z)({},Zn,Pn,{title:yt,active:!!on&&xt===on.key,pos:Rn,data:Yt.data,isStart:Bt,isEnd:At,motion:_t,motionNodes:xt===ye?hn:null,motionType:St,onMotionStart:sn,onMotionEnd:Ft,treeNodeRequiredProps:Tt,onMouseMove:function(){Rt(null)}}))}))}),ut=zt,ct=z(82661),lt=z(34643),nn=z(65065),kt=10,ae=function(ie){(0,Ne.Z)(re,ie);var fe=(0,be.Z)(re);function re(){var ue;(0,ve.Z)(this,re);for(var Me=arguments.length,gt=new Array(Me),_e=0;_e<Me;_e++)gt[_e]=arguments[_e];return ue=fe.call.apply(fe,[this].concat(gt)),(0,le.Z)((0,pe.Z)(ue),"destroyed",!1),(0,le.Z)((0,pe.Z)(ue),"delayedDragEnterLogic",void 0),(0,le.Z)((0,pe.Z)(ue),"loadingRetryTimes",{}),(0,le.Z)((0,pe.Z)(ue),"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,ge.w$)()}),(0,le.Z)((0,pe.Z)(ue),"dragStartMousePosition",null),(0,le.Z)((0,pe.Z)(ue),"dragNodeProps",null),(0,le.Z)((0,pe.Z)(ue),"currentMouseOverDroppableNodeKey",null),(0,le.Z)((0,pe.Z)(ue),"listRef",Ee.createRef()),(0,le.Z)((0,pe.Z)(ue),"onNodeDragStart",function(ke,ot){var ht=ue.state,wt=ht.expandedKeys,Ze=ht.keyEntities,We=ue.props.onDragStart,Mt=ot.eventKey;ue.dragNodeProps=ot,ue.dragStartMousePosition={x:ke.clientX,y:ke.clientY};var Ut=(0,ct._5)(wt,Mt);ue.setState({draggingNodeKey:Mt,dragChildrenKeys:(0,ct.wA)(Mt,Ze),indent:ue.listRef.current.getIndentWidth()}),ue.setExpandedKeys(Ut),window.addEventListener("dragend",ue.onWindowDragEnd),We==null||We({event:ke,node:(0,ge.F)(ot)})}),(0,le.Z)((0,pe.Z)(ue),"onNodeDragEnter",function(ke,ot){var ht=ue.state,wt=ht.expandedKeys,Ze=ht.keyEntities,We=ht.dragChildrenKeys,Mt=ht.flattenNodes,Ut=ht.indent,cn=ue.props,ln=cn.onDragEnter,_t=cn.onExpand,fn=cn.allowDrop,qt=cn.direction,Ye=ot.pos,Ot=ot.eventKey;if(ue.currentMouseOverDroppableNodeKey!==Ot&&(ue.currentMouseOverDroppableNodeKey=Ot),!ue.dragNodeProps){ue.resetDragState();return}var Jt=(0,ct.OM)(ke,ue.dragNodeProps,ot,Ut,ue.dragStartMousePosition,fn,Mt,Ze,wt,qt),on=Jt.dropPosition,Ge=Jt.dropLevelOffset,Pt=Jt.dropTargetKey,jt=Jt.dropContainerKey,vt=Jt.dropTargetPos,Lt=Jt.dropAllowed,Rt=Jt.dragOverNodeKey;if(We.includes(Pt)||!Lt){ue.resetDragState();return}if(ue.delayedDragEnterLogic||(ue.delayedDragEnterLogic={}),Object.keys(ue.delayedDragEnterLogic).forEach(function(sn){clearTimeout(ue.delayedDragEnterLogic[sn])}),ue.dragNodeProps.eventKey!==ot.eventKey&&(ke.persist(),ue.delayedDragEnterLogic[Ye]=window.setTimeout(function(){if(ue.state.draggingNodeKey!==null){var sn=(0,Re.Z)(wt),Sn=(0,nn.Z)(Ze,ot.eventKey);Sn&&(Sn.children||[]).length&&(sn=(0,ct.L0)(wt,ot.eventKey)),ue.props.hasOwnProperty("expandedKeys")||ue.setExpandedKeys(sn),_t==null||_t(sn,{node:(0,ge.F)(ot),expanded:!0,nativeEvent:ke.nativeEvent})}},800)),ue.dragNodeProps.eventKey===Pt&&Ge===0){ue.resetDragState();return}ue.setState({dragOverNodeKey:Rt,dropPosition:on,dropLevelOffset:Ge,dropTargetKey:Pt,dropContainerKey:jt,dropTargetPos:vt,dropAllowed:Lt}),ln==null||ln({event:ke,node:(0,ge.F)(ot),expandedKeys:wt})}),(0,le.Z)((0,pe.Z)(ue),"onNodeDragOver",function(ke,ot){var ht=ue.state,wt=ht.dragChildrenKeys,Ze=ht.flattenNodes,We=ht.keyEntities,Mt=ht.expandedKeys,Ut=ht.indent,cn=ue.props,ln=cn.onDragOver,_t=cn.allowDrop,fn=cn.direction;if(ue.dragNodeProps){var qt=(0,ct.OM)(ke,ue.dragNodeProps,ot,Ut,ue.dragStartMousePosition,_t,Ze,We,Mt,fn),Ye=qt.dropPosition,Ot=qt.dropLevelOffset,Jt=qt.dropTargetKey,on=qt.dropContainerKey,Ge=qt.dropTargetPos,Pt=qt.dropAllowed,jt=qt.dragOverNodeKey;wt.includes(Jt)||!Pt||(ue.dragNodeProps.eventKey===Jt&&Ot===0?ue.state.dropPosition===null&&ue.state.dropLevelOffset===null&&ue.state.dropTargetKey===null&&ue.state.dropContainerKey===null&&ue.state.dropTargetPos===null&&ue.state.dropAllowed===!1&&ue.state.dragOverNodeKey===null||ue.resetDragState():Ye===ue.state.dropPosition&&Ot===ue.state.dropLevelOffset&&Jt===ue.state.dropTargetKey&&on===ue.state.dropContainerKey&&Ge===ue.state.dropTargetPos&&Pt===ue.state.dropAllowed&&jt===ue.state.dragOverNodeKey||ue.setState({dropPosition:Ye,dropLevelOffset:Ot,dropTargetKey:Jt,dropContainerKey:on,dropTargetPos:Ge,dropAllowed:Pt,dragOverNodeKey:jt}),ln==null||ln({event:ke,node:(0,ge.F)(ot)}))}}),(0,le.Z)((0,pe.Z)(ue),"onNodeDragLeave",function(ke,ot){ue.currentMouseOverDroppableNodeKey===ot.eventKey&&!ke.currentTarget.contains(ke.relatedTarget)&&(ue.resetDragState(),ue.currentMouseOverDroppableNodeKey=null);var ht=ue.props.onDragLeave;ht==null||ht({event:ke,node:(0,ge.F)(ot)})}),(0,le.Z)((0,pe.Z)(ue),"onWindowDragEnd",function(ke){ue.onNodeDragEnd(ke,null,!0),window.removeEventListener("dragend",ue.onWindowDragEnd)}),(0,le.Z)((0,pe.Z)(ue),"onNodeDragEnd",function(ke,ot){var ht=ue.props.onDragEnd;ue.setState({dragOverNodeKey:null}),ue.cleanDragState(),ht==null||ht({event:ke,node:(0,ge.F)(ot)}),ue.dragNodeProps=null,window.removeEventListener("dragend",ue.onWindowDragEnd)}),(0,le.Z)((0,pe.Z)(ue),"onNodeDrop",function(ke,ot){var ht,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ze=ue.state,We=Ze.dragChildrenKeys,Mt=Ze.dropPosition,Ut=Ze.dropTargetKey,cn=Ze.dropTargetPos,ln=Ze.dropAllowed;if(ln){var _t=ue.props.onDrop;if(ue.setState({dragOverNodeKey:null}),ue.cleanDragState(),Ut!==null){var fn=(0,ce.Z)((0,ce.Z)({},(0,ge.H8)(Ut,ue.getTreeNodeRequiredProps())),{},{active:((ht=ue.getActiveItem())===null||ht===void 0?void 0:ht.key)===Ut,data:(0,nn.Z)(ue.state.keyEntities,Ut).node}),qt=We.includes(Ut);(0,Oe.ZP)(!qt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ye=(0,ct.yx)(cn),Ot={event:ke,node:(0,ge.F)(fn),dragNode:ue.dragNodeProps?(0,ge.F)(ue.dragNodeProps):null,dragNodesKeys:[ue.dragNodeProps.eventKey].concat(We),dropToGap:Mt!==0,dropPosition:Mt+Number(Ye[Ye.length-1])};wt||_t==null||_t(Ot),ue.dragNodeProps=null}}}),(0,le.Z)((0,pe.Z)(ue),"cleanDragState",function(){var ke=ue.state.draggingNodeKey;ke!==null&&ue.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ue.dragStartMousePosition=null,ue.currentMouseOverDroppableNodeKey=null}),(0,le.Z)((0,pe.Z)(ue),"triggerExpandActionExpand",function(ke,ot){var ht=ue.state,wt=ht.expandedKeys,Ze=ht.flattenNodes,We=ot.expanded,Mt=ot.key,Ut=ot.isLeaf;if(!(Ut||ke.shiftKey||ke.metaKey||ke.ctrlKey)){var cn=Ze.filter(function(_t){return _t.key===Mt})[0],ln=(0,ge.F)((0,ce.Z)((0,ce.Z)({},(0,ge.H8)(Mt,ue.getTreeNodeRequiredProps())),{},{data:cn.data}));ue.setExpandedKeys(We?(0,ct._5)(wt,Mt):(0,ct.L0)(wt,Mt)),ue.onNodeExpand(ke,ln)}}),(0,le.Z)((0,pe.Z)(ue),"onNodeClick",function(ke,ot){var ht=ue.props,wt=ht.onClick,Ze=ht.expandAction;Ze==="click"&&ue.triggerExpandActionExpand(ke,ot),wt==null||wt(ke,ot)}),(0,le.Z)((0,pe.Z)(ue),"onNodeDoubleClick",function(ke,ot){var ht=ue.props,wt=ht.onDoubleClick,Ze=ht.expandAction;Ze==="doubleClick"&&ue.triggerExpandActionExpand(ke,ot),wt==null||wt(ke,ot)}),(0,le.Z)((0,pe.Z)(ue),"onNodeSelect",function(ke,ot){var ht=ue.state.selectedKeys,wt=ue.state,Ze=wt.keyEntities,We=wt.fieldNames,Mt=ue.props,Ut=Mt.onSelect,cn=Mt.multiple,ln=ot.selected,_t=ot[We.key],fn=!ln;fn?cn?ht=(0,ct.L0)(ht,_t):ht=[_t]:ht=(0,ct._5)(ht,_t);var qt=ht.map(function(Ye){var Ot=(0,nn.Z)(Ze,Ye);return Ot?Ot.node:null}).filter(Boolean);ue.setUncontrolledState({selectedKeys:ht}),Ut==null||Ut(ht,{event:"select",selected:fn,node:ot,selectedNodes:qt,nativeEvent:ke.nativeEvent})}),(0,le.Z)((0,pe.Z)(ue),"onNodeCheck",function(ke,ot,ht){var wt=ue.state,Ze=wt.keyEntities,We=wt.checkedKeys,Mt=wt.halfCheckedKeys,Ut=ue.props,cn=Ut.checkStrictly,ln=Ut.onCheck,_t=ot.key,fn,qt={event:"check",node:ot,checked:ht,nativeEvent:ke.nativeEvent};if(cn){var Ye=ht?(0,ct.L0)(We,_t):(0,ct._5)(We,_t),Ot=(0,ct._5)(Mt,_t);fn={checked:Ye,halfChecked:Ot},qt.checkedNodes=Ye.map(function(vt){return(0,nn.Z)(Ze,vt)}).filter(Boolean).map(function(vt){return vt.node}),ue.setUncontrolledState({checkedKeys:Ye})}else{var Jt=(0,lt.S)([].concat((0,Re.Z)(We),[_t]),!0,Ze),on=Jt.checkedKeys,Ge=Jt.halfCheckedKeys;if(!ht){var Pt=new Set(on);Pt.delete(_t);var jt=(0,lt.S)(Array.from(Pt),{checked:!1,halfCheckedKeys:Ge},Ze);on=jt.checkedKeys,Ge=jt.halfCheckedKeys}fn=on,qt.checkedNodes=[],qt.checkedNodesPositions=[],qt.halfCheckedKeys=Ge,on.forEach(function(vt){var Lt=(0,nn.Z)(Ze,vt);if(Lt){var Rt=Lt.node,sn=Lt.pos;qt.checkedNodes.push(Rt),qt.checkedNodesPositions.push({node:Rt,pos:sn})}}),ue.setUncontrolledState({checkedKeys:on},!1,{halfCheckedKeys:Ge})}ln==null||ln(fn,qt)}),(0,le.Z)((0,pe.Z)(ue),"onNodeLoad",function(ke){var ot,ht=ke.key,wt=ue.state.keyEntities,Ze=(0,nn.Z)(wt,ht);if(!(Ze!=null&&(ot=Ze.children)!==null&&ot!==void 0&&ot.length)){var We=new Promise(function(Mt,Ut){ue.setState(function(cn){var ln=cn.loadedKeys,_t=ln===void 0?[]:ln,fn=cn.loadingKeys,qt=fn===void 0?[]:fn,Ye=ue.props,Ot=Ye.loadData,Jt=Ye.onLoad;if(!Ot||_t.includes(ht)||qt.includes(ht))return null;var on=Ot(ke);return on.then(function(){var Ge=ue.state.loadedKeys,Pt=(0,ct.L0)(Ge,ht);Jt==null||Jt(Pt,{event:"load",node:ke}),ue.setUncontrolledState({loadedKeys:Pt}),ue.setState(function(jt){return{loadingKeys:(0,ct._5)(jt.loadingKeys,ht)}}),Mt()}).catch(function(Ge){if(ue.setState(function(jt){return{loadingKeys:(0,ct._5)(jt.loadingKeys,ht)}}),ue.loadingRetryTimes[ht]=(ue.loadingRetryTimes[ht]||0)+1,ue.loadingRetryTimes[ht]>=kt){var Pt=ue.state.loadedKeys;(0,Oe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ue.setUncontrolledState({loadedKeys:(0,ct.L0)(Pt,ht)}),Mt()}Ut(Ge)}),{loadingKeys:(0,ct.L0)(qt,ht)}})});return We.catch(function(){}),We}}),(0,le.Z)((0,pe.Z)(ue),"onNodeMouseEnter",function(ke,ot){var ht=ue.props.onMouseEnter;ht==null||ht({event:ke,node:ot})}),(0,le.Z)((0,pe.Z)(ue),"onNodeMouseLeave",function(ke,ot){var ht=ue.props.onMouseLeave;ht==null||ht({event:ke,node:ot})}),(0,le.Z)((0,pe.Z)(ue),"onNodeContextMenu",function(ke,ot){var ht=ue.props.onRightClick;ht&&(ke.preventDefault(),ht({event:ke,node:ot}))}),(0,le.Z)((0,pe.Z)(ue),"onFocus",function(){var ke=ue.props.onFocus;ue.setState({focused:!0});for(var ot=arguments.length,ht=new Array(ot),wt=0;wt<ot;wt++)ht[wt]=arguments[wt];ke==null||ke.apply(void 0,ht)}),(0,le.Z)((0,pe.Z)(ue),"onBlur",function(){var ke=ue.props.onBlur;ue.setState({focused:!1}),ue.onActiveChange(null);for(var ot=arguments.length,ht=new Array(ot),wt=0;wt<ot;wt++)ht[wt]=arguments[wt];ke==null||ke.apply(void 0,ht)}),(0,le.Z)((0,pe.Z)(ue),"getTreeNodeRequiredProps",function(){var ke=ue.state,ot=ke.expandedKeys,ht=ke.selectedKeys,wt=ke.loadedKeys,Ze=ke.loadingKeys,We=ke.checkedKeys,Mt=ke.halfCheckedKeys,Ut=ke.dragOverNodeKey,cn=ke.dropPosition,ln=ke.keyEntities;return{expandedKeys:ot||[],selectedKeys:ht||[],loadedKeys:wt||[],loadingKeys:Ze||[],checkedKeys:We||[],halfCheckedKeys:Mt||[],dragOverNodeKey:Ut,dropPosition:cn,keyEntities:ln}}),(0,le.Z)((0,pe.Z)(ue),"setExpandedKeys",function(ke){var ot=ue.state,ht=ot.treeData,wt=ot.fieldNames,Ze=(0,ge.oH)(ht,ke,wt);ue.setUncontrolledState({expandedKeys:ke,flattenNodes:Ze},!0)}),(0,le.Z)((0,pe.Z)(ue),"onNodeExpand",function(ke,ot){var ht=ue.state.expandedKeys,wt=ue.state,Ze=wt.listChanging,We=wt.fieldNames,Mt=ue.props,Ut=Mt.onExpand,cn=Mt.loadData,ln=ot.expanded,_t=ot[We.key];if(!Ze){var fn=ht.includes(_t),qt=!ln;if((0,Oe.ZP)(ln&&fn||!ln&&!fn,"Expand state not sync with index check"),ht=qt?(0,ct.L0)(ht,_t):(0,ct._5)(ht,_t),ue.setExpandedKeys(ht),Ut==null||Ut(ht,{node:ot,expanded:qt,nativeEvent:ke.nativeEvent}),qt&&cn){var Ye=ue.onNodeLoad(ot);Ye&&Ye.then(function(){var Ot=(0,ge.oH)(ue.state.treeData,ht,We);ue.setUncontrolledState({flattenNodes:Ot})}).catch(function(){var Ot=ue.state.expandedKeys,Jt=(0,ct._5)(Ot,_t);ue.setExpandedKeys(Jt)})}}}),(0,le.Z)((0,pe.Z)(ue),"onListChangeStart",function(){ue.setUncontrolledState({listChanging:!0})}),(0,le.Z)((0,pe.Z)(ue),"onListChangeEnd",function(){setTimeout(function(){ue.setUncontrolledState({listChanging:!1})})}),(0,le.Z)((0,pe.Z)(ue),"onActiveChange",function(ke){var ot=ue.state.activeKey,ht=ue.props,wt=ht.onActiveChange,Ze=ht.itemScrollOffset,We=Ze===void 0?0:Ze;ot!==ke&&(ue.setState({activeKey:ke}),ke!==null&&ue.scrollTo({key:ke,offset:We}),wt==null||wt(ke))}),(0,le.Z)((0,pe.Z)(ue),"getActiveItem",function(){var ke=ue.state,ot=ke.activeKey,ht=ke.flattenNodes;return ot===null?null:ht.find(function(wt){var Ze=wt.key;return Ze===ot})||null}),(0,le.Z)((0,pe.Z)(ue),"offsetActiveKey",function(ke){var ot=ue.state,ht=ot.flattenNodes,wt=ot.activeKey,Ze=ht.findIndex(function(Ut){var cn=Ut.key;return cn===wt});Ze===-1&&ke<0&&(Ze=ht.length),Ze=(Ze+ke+ht.length)%ht.length;var We=ht[Ze];if(We){var Mt=We.key;ue.onActiveChange(Mt)}else ue.onActiveChange(null)}),(0,le.Z)((0,pe.Z)(ue),"onKeyDown",function(ke){var ot=ue.state,ht=ot.activeKey,wt=ot.expandedKeys,Ze=ot.checkedKeys,We=ot.fieldNames,Mt=ue.props,Ut=Mt.onKeyDown,cn=Mt.checkable,ln=Mt.selectable;switch(ke.which){case it.Z.UP:{ue.offsetActiveKey(-1),ke.preventDefault();break}case it.Z.DOWN:{ue.offsetActiveKey(1),ke.preventDefault();break}}var _t=ue.getActiveItem();if(_t&&_t.data){var fn=ue.getTreeNodeRequiredProps(),qt=_t.data.isLeaf===!1||!!(_t.data[We.children]||[]).length,Ye=(0,ge.F)((0,ce.Z)((0,ce.Z)({},(0,ge.H8)(ht,fn)),{},{data:_t.data,active:!0}));switch(ke.which){case it.Z.LEFT:{qt&&wt.includes(ht)?ue.onNodeExpand({},Ye):_t.parent&&ue.onActiveChange(_t.parent.key),ke.preventDefault();break}case it.Z.RIGHT:{qt&&!wt.includes(ht)?ue.onNodeExpand({},Ye):_t.children&&_t.children.length&&ue.onActiveChange(_t.children[0].key),ke.preventDefault();break}case it.Z.ENTER:case it.Z.SPACE:{cn&&!Ye.disabled&&Ye.checkable!==!1&&!Ye.disableCheckbox?ue.onNodeCheck({},Ye,!Ze.includes(ht)):!cn&&ln&&!Ye.disabled&&Ye.selectable!==!1&&ue.onNodeSelect({},Ye);break}}}Ut==null||Ut(ke)}),(0,le.Z)((0,pe.Z)(ue),"setUncontrolledState",function(ke){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ue.destroyed){var wt=!1,Ze=!0,We={};Object.keys(ke).forEach(function(Mt){if(ue.props.hasOwnProperty(Mt)){Ze=!1;return}wt=!0,We[Mt]=ke[Mt]}),wt&&(!ot||Ze)&&ue.setState((0,ce.Z)((0,ce.Z)({},We),ht))}}),(0,le.Z)((0,pe.Z)(ue),"scrollTo",function(ke){ue.listRef.current.scrollTo(ke)}),ue}return(0,me.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Me=this.props,gt=Me.activeKey,_e=Me.itemScrollOffset,ke=_e===void 0?0:_e;gt!==void 0&&gt!==this.state.activeKey&&(this.setState({activeKey:gt}),gt!==null&&this.scrollTo({key:gt,offset:ke}))}},{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 Me=this.state,gt=Me.focused,_e=Me.flattenNodes,ke=Me.keyEntities,ot=Me.draggingNodeKey,ht=Me.activeKey,wt=Me.dropLevelOffset,Ze=Me.dropContainerKey,We=Me.dropTargetKey,Mt=Me.dropPosition,Ut=Me.dragOverNodeKey,cn=Me.indent,ln=this.props,_t=ln.prefixCls,fn=ln.className,qt=ln.style,Ye=ln.showLine,Ot=ln.focusable,Jt=ln.tabIndex,on=Jt===void 0?0:Jt,Ge=ln.selectable,Pt=ln.showIcon,jt=ln.icon,vt=ln.switcherIcon,Lt=ln.draggable,Rt=ln.checkable,sn=ln.checkStrictly,Sn=ln.disabled,un=ln.motion,Cn=ln.loadData,Ct=ln.filterTreeNode,It=ln.height,Gt=ln.itemHeight,tn=ln.scrollWidth,Wt=ln.virtual,mn=ln.titleRender,an=ln.dropIndicatorRender,yn=ln.onContextMenu,jn=ln.onScroll,Nn=ln.direction,$n=ln.rootClassName,Vn=ln.rootStyle,Wn=(0,ze.Z)(this.props,{aria:!0,data:!0}),ur;Lt&&((0,he.Z)(Lt)==="object"?ur=Lt:typeof Lt=="function"?ur={nodeDraggable:Lt}:ur={});var rr={prefixCls:_t,selectable:Ge,showIcon:Pt,icon:jt,switcherIcon:vt,draggable:ur,draggingNodeKey:ot,checkable:Rt,checkStrictly:sn,disabled:Sn,keyEntities:ke,dropLevelOffset:wt,dropContainerKey:Ze,dropTargetKey:We,dropPosition:Mt,dragOverNodeKey:Ut,indent:cn,direction:Nn,dropIndicatorRender:an,loadData:Cn,filterTreeNode:Ct,titleRender:mn,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};return Ee.createElement(Pe.k.Provider,{value:rr},Ee.createElement("div",{className:Ae()(_t,fn,$n,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(_t,"-show-line"),Ye),"".concat(_t,"-focused"),gt),"".concat(_t,"-active-focused"),ht!==null)),style:Vn},Ee.createElement(ut,(0,y.Z)({ref:this.listRef,prefixCls:_t,style:qt,data:_e,disabled:Sn,selectable:Ge,checkable:!!Rt,motion:un,dragging:ot!==null,height:It,itemHeight:Gt,virtual:Wt,focusable:Ot,focused:gt,tabIndex:on,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:yn,onScroll:jn,scrollWidth:tn},this.getTreeNodeRequiredProps(),Wn))))}}],[{key:"getDerivedStateFromProps",value:function(Me,gt){var _e=gt.prevProps,ke={prevProps:Me};function ot(on){return!_e&&Me.hasOwnProperty(on)||_e&&_e[on]!==Me[on]}var ht,wt=gt.fieldNames;if(ot("fieldNames")&&(wt=(0,ge.w$)(Me.fieldNames),ke.fieldNames=wt),ot("treeData")?ht=Me.treeData:ot("children")&&((0,Oe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ht=(0,ge.zn)(Me.children)),ht){ke.treeData=ht;var Ze=(0,ge.I8)(ht,{fieldNames:wt});ke.keyEntities=(0,ce.Z)((0,le.Z)({},ye,Zt),Ze.keyEntities)}var We=ke.keyEntities||gt.keyEntities;if(ot("expandedKeys")||_e&&ot("autoExpandParent"))ke.expandedKeys=Me.autoExpandParent||!_e&&Me.defaultExpandParent?(0,ct.r7)(Me.expandedKeys,We):Me.expandedKeys;else if(!_e&&Me.defaultExpandAll){var Mt=(0,ce.Z)({},We);delete Mt[ye];var Ut=[];Object.keys(Mt).forEach(function(on){var Ge=Mt[on];Ge.children&&Ge.children.length&&Ut.push(Ge.key)}),ke.expandedKeys=Ut}else!_e&&Me.defaultExpandedKeys&&(ke.expandedKeys=Me.autoExpandParent||Me.defaultExpandParent?(0,ct.r7)(Me.defaultExpandedKeys,We):Me.defaultExpandedKeys);if(ke.expandedKeys||delete ke.expandedKeys,ht||ke.expandedKeys){var cn=(0,ge.oH)(ht||gt.treeData,ke.expandedKeys||gt.expandedKeys,wt);ke.flattenNodes=cn}if(Me.selectable&&(ot("selectedKeys")?ke.selectedKeys=(0,ct.BT)(Me.selectedKeys,Me):!_e&&Me.defaultSelectedKeys&&(ke.selectedKeys=(0,ct.BT)(Me.defaultSelectedKeys,Me))),Me.checkable){var ln;if(ot("checkedKeys")?ln=(0,ct.E6)(Me.checkedKeys)||{}:!_e&&Me.defaultCheckedKeys?ln=(0,ct.E6)(Me.defaultCheckedKeys)||{}:ht&&(ln=(0,ct.E6)(Me.checkedKeys)||{checkedKeys:gt.checkedKeys,halfCheckedKeys:gt.halfCheckedKeys}),ln){var _t=ln,fn=_t.checkedKeys,qt=fn===void 0?[]:fn,Ye=_t.halfCheckedKeys,Ot=Ye===void 0?[]:Ye;if(!Me.checkStrictly){var Jt=(0,lt.S)(qt,!0,We);qt=Jt.checkedKeys,Ot=Jt.halfCheckedKeys}ke.checkedKeys=qt,ke.halfCheckedKeys=Ot}}return ot("loadedKeys")&&(ke.loadedKeys=Me.loadedKeys),ke}}]),re}(Ee.Component);(0,le.Z)(ae,"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:Ve,allowDrop:function(){return!0},expandAction:!1}),(0,le.Z)(ae,"TreeNode",st.Z);var ne=ae,te=ne},82661:function(En,Vt,z){"use strict";z.d(Vt,{BT:function(){return Ee},E6:function(){return Ve},L0:function(){return le},OM:function(){return Oe},_5:function(){return be},r7:function(){return dt},wA:function(){return Ae},yx:function(){return je}});var y=z(77654),he=z(43749),ce=z(48736),Re=z(59301),ve=z(639),me=z(65065),pe=z(34061),Ne=null;function be(Se,Ie){if(!Se)return[];var Xe=Se.slice(),He=Xe.indexOf(Ie);return He>=0&&Xe.splice(He,1),Xe}function le(Se,Ie){var Xe=(Se||[]).slice();return Xe.indexOf(Ie)===-1&&Xe.push(Ie),Xe}function je(Se){return Se.split("-")}function Ae(Se,Ie){var Xe=[],He=(0,me.Z)(Ie,Se);function rt(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];st.forEach(function(Je){var et=Je.key,ge=Je.children;Xe.push(et),rt(ge)})}return rt(He.children),Xe}function it(Se){if(Se.parent){var Ie=je(Se.pos);return Number(Ie[Ie.length-1])===Se.parent.children.length-1}return!1}function ze(Se){var Ie=je(Se.pos);return Number(Ie[Ie.length-1])===0}function Oe(Se,Ie,Xe,He,rt,st,Je,et,ge,Qe){var we,se=Se.clientX,ft=Se.clientY,$e=Se.target.getBoundingClientRect(),tt=$e.top,Nt=$e.height,Le=(Qe==="rtl"?-1:1)*(((rt==null?void 0:rt.x)||0)-se),ye=(Le-12)/He,Et=ge.filter(function(te){var ie;return(ie=et[te])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),Zt=(0,me.Z)(et,Xe.eventKey);if(ft<tt+Nt/2){var pt=Je.findIndex(function(te){return te.key===Zt.key}),Ce=pt<=0?0:pt-1,at=Je[Ce].key;Zt=(0,me.Z)(et,at)}var qe=Zt.key,zt=Zt,ut=Zt.key,ct=0,lt=0;if(!Et.includes(qe))for(var nn=0;nn<ye&&it(Zt);nn+=1)Zt=Zt.parent,lt+=1;var kt=Ie.data,ae=Zt.node,ne=!0;return ze(Zt)&&Zt.level===0&&ft<tt+Nt/2&&st({dragNode:kt,dropNode:ae,dropPosition:-1})&&Zt.key===Xe.eventKey?ct=-1:(zt.children||[]).length&&Et.includes(ut)?st({dragNode:kt,dropNode:ae,dropPosition:0})?ct=0:ne=!1:lt===0?ye>-1.5?st({dragNode:kt,dropNode:ae,dropPosition:1})?ct=1:ne=!1:st({dragNode:kt,dropNode:ae,dropPosition:0})?ct=0:st({dragNode:kt,dropNode:ae,dropPosition:1})?ct=1:ne=!1:st({dragNode:kt,dropNode:ae,dropPosition:1})?ct=1:ne=!1,{dropPosition:ct,dropLevelOffset:lt,dropTargetKey:Zt.key,dropTargetPos:Zt.pos,dragOverNodeKey:ut,dropContainerKey:ct===0?null:((we=Zt.parent)===null||we===void 0?void 0:we.key)||null,dropAllowed:ne}}function Ee(Se,Ie){if(Se){var Xe=Ie.multiple;return Xe?Se.slice():Se.length?[Se[0]]:Se}}var Pe=function(Ie){return Ie};function Fe(Se,Ie){if(!Se)return[];var Xe=Ie||{},He=Xe.processProps,rt=He===void 0?Pe:He,st=Array.isArray(Se)?Se:[Se];return st.map(function(Je){var et=Je.children,ge=_objectWithoutProperties(Je,Ne),Qe=Fe(et,Ie);return React.createElement(TreeNode,_extends({key:ge.key},rt(ge)),Qe)})}function Ve(Se){if(!Se)return null;var Ie;if(Array.isArray(Se))Ie={checkedKeys:Se,halfCheckedKeys:void 0};else if((0,he.Z)(Se)==="object")Ie={checkedKeys:Se.checked||void 0,halfCheckedKeys:Se.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ie}function dt(Se,Ie){var Xe=new Set;function He(rt){if(!Xe.has(rt)){var st=(0,me.Z)(Ie,rt);if(st){Xe.add(rt);var Je=st.parent,et=st.node;et.disabled||Je&&He(Je.key)}}}return(Se||[]).forEach(function(rt){He(rt)}),(0,y.Z)(Xe)}},34643:function(En,Vt,z){"use strict";z.d(Vt,{S:function(){return pe}});var y=z(48736),he=z(65065);function ce(Ne,be){var le=new Set;return Ne.forEach(function(je){be.has(je)||le.add(je)}),le}function Re(Ne){var be=Ne||{},le=be.disabled,je=be.disableCheckbox,Ae=be.checkable;return!!(le||je)||Ae===!1}function ve(Ne,be,le,je){for(var Ae=new Set(Ne),it=new Set,ze=0;ze<=le;ze+=1){var Oe=be.get(ze)||new Set;Oe.forEach(function(Ve){var dt=Ve.key,Se=Ve.node,Ie=Ve.children,Xe=Ie===void 0?[]:Ie;Ae.has(dt)&&!je(Se)&&Xe.filter(function(He){return!je(He.node)}).forEach(function(He){Ae.add(He.key)})})}for(var Ee=new Set,Pe=le;Pe>=0;Pe-=1){var Fe=be.get(Pe)||new Set;Fe.forEach(function(Ve){var dt=Ve.parent,Se=Ve.node;if(!(je(Se)||!Ve.parent||Ee.has(Ve.parent.key))){if(je(Ve.parent.node)){Ee.add(dt.key);return}var Ie=!0,Xe=!1;(dt.children||[]).filter(function(He){return!je(He.node)}).forEach(function(He){var rt=He.key,st=Ae.has(rt);Ie&&!st&&(Ie=!1),!Xe&&(st||it.has(rt))&&(Xe=!0)}),Ie&&Ae.add(dt.key),Xe&&it.add(dt.key),Ee.add(dt.key)}})}return{checkedKeys:Array.from(Ae),halfCheckedKeys:Array.from(ce(it,Ae))}}function me(Ne,be,le,je,Ae){for(var it=new Set(Ne),ze=new Set(be),Oe=0;Oe<=je;Oe+=1){var Ee=le.get(Oe)||new Set;Ee.forEach(function(dt){var Se=dt.key,Ie=dt.node,Xe=dt.children,He=Xe===void 0?[]:Xe;!it.has(Se)&&!ze.has(Se)&&!Ae(Ie)&&He.filter(function(rt){return!Ae(rt.node)}).forEach(function(rt){it.delete(rt.key)})})}ze=new Set;for(var Pe=new Set,Fe=je;Fe>=0;Fe-=1){var Ve=le.get(Fe)||new Set;Ve.forEach(function(dt){var Se=dt.parent,Ie=dt.node;if(!(Ae(Ie)||!dt.parent||Pe.has(dt.parent.key))){if(Ae(dt.parent.node)){Pe.add(Se.key);return}var Xe=!0,He=!1;(Se.children||[]).filter(function(rt){return!Ae(rt.node)}).forEach(function(rt){var st=rt.key,Je=it.has(st);Xe&&!Je&&(Xe=!1),!He&&(Je||ze.has(st))&&(He=!0)}),Xe||it.delete(Se.key),He&&ze.add(Se.key),Pe.add(Se.key)}})}return{checkedKeys:Array.from(it),halfCheckedKeys:Array.from(ce(ze,it))}}function pe(Ne,be,le,je){var Ae=[],it;je?it=je:it=Re;var ze=new Set(Ne.filter(function(Fe){var Ve=!!(0,he.Z)(le,Fe);return Ve||Ae.push(Fe),Ve})),Oe=new Map,Ee=0;Object.keys(le).forEach(function(Fe){var Ve=le[Fe],dt=Ve.level,Se=Oe.get(dt);Se||(Se=new Set,Oe.set(dt,Se)),Se.add(Ve),Ee=Math.max(Ee,dt)}),(0,y.ZP)(!Ae.length,"Tree missing follow keys: ".concat(Ae.slice(0,100).map(function(Fe){return"'".concat(Fe,"'")}).join(", ")));var Pe;return be===!0?Pe=ve(ze,Oe,Ee,it):Pe=me(ze,be.halfCheckedKeys,Oe,Ee,it),Pe}},65065:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return y}});function y(he,ce){return he[ce]}},34061:function(En,Vt,z){"use strict";z.d(Vt,{F:function(){return dt},H8:function(){return Ve},I8:function(){return Fe},km:function(){return Ae},oH:function(){return Ee},w$:function(){return it},zn:function(){return Oe}});var y=z(43749),he=z(77654),ce=z(85899),Re=z(42244),ve=z(11592),me=z(2738),pe=z(48736),Ne=z(65065),be=["children"];function le(Se,Ie){return"".concat(Se,"-").concat(Ie)}function je(Se){return Se&&Se.type&&Se.type.isTreeNode}function Ae(Se,Ie){return Se!=null?Se:Ie}function it(Se){var Ie=Se||{},Xe=Ie.title,He=Ie._title,rt=Ie.key,st=Ie.children,Je=Xe||"title";return{title:Je,_title:He||[Je],key:rt||"key",children:st||"children"}}function ze(Se,Ie){var Xe=new Map;function He(rt){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(rt||[]).forEach(function(Je){var et=Je[Ie.key],ge=Je[Ie.children];warning(et!=null,"Tree node must have a certain key: [".concat(st).concat(et,"]"));var Qe=String(et);warning(!Xe.has(Qe)||et===null||et===void 0,"Same 'key' exist in the Tree: ".concat(Qe)),Xe.set(Qe,!0),He(ge,"".concat(st).concat(Qe," > "))})}He(Se)}function Oe(Se){function Ie(Xe){var He=(0,ve.Z)(Xe);return He.map(function(rt){if(!je(rt))return(0,pe.ZP)(!rt,"Tree/TreeNode can only accept TreeNode as children."),null;var st=rt.key,Je=rt.props,et=Je.children,ge=(0,Re.Z)(Je,be),Qe=(0,ce.Z)({key:st},ge),we=Ie(et);return we.length&&(Qe.children=we),Qe}).filter(function(rt){return rt})}return Ie(Se)}function Ee(Se,Ie,Xe){var He=it(Xe),rt=He._title,st=He.key,Je=He.children,et=new Set(Ie===!0?[]:Ie),ge=[];function Qe(we){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return we.map(function(ft,$e){for(var tt=le(se?se.pos:"0",$e),Nt=Ae(ft[st],tt),Le,ye=0;ye<rt.length;ye+=1){var Et=rt[ye];if(ft[Et]!==void 0){Le=ft[Et];break}}var Zt=Object.assign((0,me.Z)(ft,[].concat((0,he.Z)(rt),[st,Je])),{title:Le,key:Nt,parent:se,pos:tt,children:null,data:ft,isStart:[].concat((0,he.Z)(se?se.isStart:[]),[$e===0]),isEnd:[].concat((0,he.Z)(se?se.isEnd:[]),[$e===we.length-1])});return ge.push(Zt),Ie===!0||et.has(Nt)?Zt.children=Qe(ft[Je]||[],Zt):Zt.children=[],Zt})}return Qe(Se),ge}function Pe(Se,Ie,Xe){var He={};(0,y.Z)(Xe)==="object"?He=Xe:He={externalGetKey:Xe},He=He||{};var rt=He,st=rt.childrenPropName,Je=rt.externalGetKey,et=rt.fieldNames,ge=it(et),Qe=ge.key,we=ge.children,se=st||we,ft;Je?typeof Je=="string"?ft=function(Nt){return Nt[Je]}:typeof Je=="function"&&(ft=function(Nt){return Je(Nt)}):ft=function(Nt,Le){return Ae(Nt[Qe],Le)};function $e(tt,Nt,Le,ye){var Et=tt?tt[se]:Se,Zt=tt?le(Le.pos,Nt):"0",pt=tt?[].concat((0,he.Z)(ye),[tt]):[];if(tt){var Ce=ft(tt,Zt),at={node:tt,index:Nt,pos:Zt,key:Ce,parentPos:Le.node?Le.pos:null,level:Le.level+1,nodes:pt};Ie(at)}Et&&Et.forEach(function(qe,zt){$e(qe,zt,{node:tt,pos:Zt,level:Le?Le.level+1:-1},pt)})}$e(null)}function Fe(Se){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xe=Ie.initWrapper,He=Ie.processEntity,rt=Ie.onProcessFinished,st=Ie.externalGetKey,Je=Ie.childrenPropName,et=Ie.fieldNames,ge=arguments.length>2?arguments[2]:void 0,Qe=st||ge,we={},se={},ft={posEntities:we,keyEntities:se};return Xe&&(ft=Xe(ft)||ft),Pe(Se,function($e){var tt=$e.node,Nt=$e.index,Le=$e.pos,ye=$e.key,Et=$e.parentPos,Zt=$e.level,pt=$e.nodes,Ce={node:tt,nodes:pt,index:Nt,key:ye,pos:Le,level:Zt},at=Ae(ye,Le);we[Le]=Ce,se[at]=Ce,Ce.parent=we[Et],Ce.parent&&(Ce.parent.children=Ce.parent.children||[],Ce.parent.children.push(Ce)),He&&He(Ce,ft)},{externalGetKey:Qe,childrenPropName:Je,fieldNames:et}),rt&&rt(ft),ft}function Ve(Se,Ie){var Xe=Ie.expandedKeys,He=Ie.selectedKeys,rt=Ie.loadedKeys,st=Ie.loadingKeys,Je=Ie.checkedKeys,et=Ie.halfCheckedKeys,ge=Ie.dragOverNodeKey,Qe=Ie.dropPosition,we=Ie.keyEntities,se=(0,Ne.Z)(we,Se),ft={eventKey:Se,expanded:Xe.indexOf(Se)!==-1,selected:He.indexOf(Se)!==-1,loaded:rt.indexOf(Se)!==-1,loading:st.indexOf(Se)!==-1,checked:Je.indexOf(Se)!==-1,halfChecked:et.indexOf(Se)!==-1,pos:String(se?se.pos:""),dragOver:ge===Se&&Qe===0,dragOverGapTop:ge===Se&&Qe===-1,dragOverGapBottom:ge===Se&&Qe===1};return ft}function dt(Se){var Ie=Se.data,Xe=Se.expanded,He=Se.selected,rt=Se.checked,st=Se.loaded,Je=Se.loading,et=Se.halfChecked,ge=Se.dragOver,Qe=Se.dragOverGapTop,we=Se.dragOverGapBottom,se=Se.pos,ft=Se.active,$e=Se.eventKey,tt=(0,ce.Z)((0,ce.Z)({},Ie),{},{expanded:Xe,selected:He,checked:rt,loaded:st,loading:Je,halfChecked:et,dragOver:ge,dragOverGapTop:Qe,dragOverGapBottom:we,pos:se,active:ft,key:$e});return"props"in tt||Object.defineProperty(tt,"props",{get:function(){return(0,pe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Se}}),tt}},8224:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return he}});var y=z(4676);function he(ce,Re,ve,me){var pe=y.unstable_batchedUpdates?function(be){y.unstable_batchedUpdates(ve,be)}:ve;return ce!=null&&ce.addEventListener&&ce.addEventListener(Re,pe,me),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(Re,pe,me)}}}},24514:function(En,Vt,z){"use strict";z.d(Vt,{G:function(){return Re}});var y=z(47273),he=function(me){if((0,y.Z)()&&window.document.documentElement){var pe=Array.isArray(me)?me:[me],Ne=window.document.documentElement;return pe.some(function(be){return be in Ne.style})}return!1},ce=function(me,pe){if(!he(me))return!1;var Ne=document.createElement("div"),be=Ne.style[me];return Ne.style[me]=pe,Ne.style[me]!==be};function Re(ve,me){return!Array.isArray(ve)&&me!==void 0?ce(ve,me):he(ve)}},48911:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return kt}});var y=z(60499),he=z(43749),ce=z(85899),Re=z(18642),ve=z(72190),me=z(42244),pe=z(92310),Ne=z.n(pe),be=z(29301),le=z(70425),je=z(34280),Ae=z(59301),it=z(4676),ze=Ae.forwardRef(function(ae,ne){var te=ae.height,ie=ae.offsetY,fe=ae.offsetX,re=ae.children,ue=ae.prefixCls,Me=ae.onInnerResize,gt=ae.innerProps,_e=ae.rtl,ke=ae.extra,ot={},ht={display:"flex",flexDirection:"column"};return ie!==void 0&&(ot={height:te,position:"relative",overflow:"hidden"},ht=(0,ce.Z)((0,ce.Z)({},ht),{},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({transform:"translateY(".concat(ie,"px)")},_e?"marginRight":"marginLeft",-fe),"position","absolute"),"left",0),"right",0),"top",0))),Ae.createElement("div",{style:ot},Ae.createElement(be.Z,{onResize:function(Ze){var We=Ze.offsetHeight;We&&Me&&Me()}},Ae.createElement("div",(0,y.Z)({style:ht,className:Ne()((0,Re.Z)({},"".concat(ue,"-holder-inner"),ue)),ref:ne},gt),re,ke)))});ze.displayName="Filler";var Oe=ze;function Ee(ae){var ne=ae.children,te=ae.setRef,ie=Ae.useCallback(function(fe){te(fe)},[]);return Ae.cloneElement(ne,{ref:ie})}function Pe(ae,ne,te,ie,fe,re,ue,Me){var gt=Me.getKey;return ae.slice(ne,te+1).map(function(_e,ke){var ot=ne+ke,ht=ue(_e,ot,{style:{width:ie},offsetX:fe}),wt=gt(_e);return Ae.createElement(Ee,{key:wt,setRef:function(We){return re(_e,We)}},ht)})}function Fe(ae,ne,te,ie){var fe=te-ae,re=ne-te,ue=Math.min(fe,re)*2;if(ie<=ue){var Me=Math.floor(ie/2);return ie%2?te+Me+1:te-Me}return fe>re?te-(ie-re):te+(ie-fe)}function Ve(ae,ne,te){var ie=ae.length,fe=ne.length,re,ue;if(ie===0&&fe===0)return null;ie<fe?(re=ae,ue=ne):(re=ne,ue=ae);var Me={__EMPTY_ITEM__:!0};function gt(Ze){return Ze!==void 0?te(Ze):Me}for(var _e=null,ke=Math.abs(ie-fe)!==1,ot=0;ot<ue.length;ot+=1){var ht=gt(re[ot]),wt=gt(ue[ot]);if(ht!==wt){_e=ot,ke=ke||ht!==gt(ue[ot+1]);break}}return _e===null?null:{index:_e,multiple:ke}}function dt(ae,ne,te){var ie=Ae.useState(ae),fe=(0,ve.Z)(ie,2),re=fe[0],ue=fe[1],Me=Ae.useState(null),gt=(0,ve.Z)(Me,2),_e=gt[0],ke=gt[1];return Ae.useEffect(function(){var ot=Ve(re||[],ae||[],ne);(ot==null?void 0:ot.index)!==void 0&&(te==null||te(ot.index),ke(ae[ot.index])),ue(ae)},[ae]),[_e]}var Se=z(16089),Ie=(typeof navigator=="undefined"?"undefined":(0,he.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Xe=Ie,He=function(ae,ne,te,ie){var fe=(0,Ae.useRef)(!1),re=(0,Ae.useRef)(null);function ue(){clearTimeout(re.current),fe.current=!0,re.current=setTimeout(function(){fe.current=!1},50)}var Me=(0,Ae.useRef)({top:ae,bottom:ne,left:te,right:ie});return Me.current.top=ae,Me.current.bottom=ne,Me.current.left=te,Me.current.right=ie,function(gt,_e){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=gt?_e<0&&Me.current.left||_e>0&&Me.current.right:_e<0&&Me.current.top||_e>0&&Me.current.bottom;return ke&&ot?(clearTimeout(re.current),fe.current=!1):(!ot||fe.current)&&ue(),!fe.current&&ot}};function rt(ae,ne,te,ie,fe,re,ue){var Me=(0,Ae.useRef)(0),gt=(0,Ae.useRef)(null),_e=(0,Ae.useRef)(null),ke=(0,Ae.useRef)(!1),ot=He(ne,te,ie,fe);function ht(cn,ln){if(Se.Z.cancel(gt.current),!ot(!1,ln)){var _t=cn;if(!_t._virtualHandled)_t._virtualHandled=!0;else return;Me.current+=ln,_e.current=ln,Xe||_t.preventDefault(),gt.current=(0,Se.Z)(function(){var fn=ke.current?10:1;ue(Me.current*fn,!1),Me.current=0})}}function wt(cn,ln){ue(ln,!0),Xe||cn.preventDefault()}var Ze=(0,Ae.useRef)(null),We=(0,Ae.useRef)(null);function Mt(cn){if(ae){Se.Z.cancel(We.current),We.current=(0,Se.Z)(function(){Ze.current=null},2);var ln=cn.deltaX,_t=cn.deltaY,fn=cn.shiftKey,qt=ln,Ye=_t;(Ze.current==="sx"||!Ze.current&&fn&&_t&&!ln)&&(qt=_t,Ye=0,Ze.current="sx");var Ot=Math.abs(qt),Jt=Math.abs(Ye);Ze.current===null&&(Ze.current=re&&Ot>Jt?"x":"y"),Ze.current==="y"?ht(cn,Ye):wt(cn,qt)}}function Ut(cn){ae&&(ke.current=cn.detail===_e.current)}return[Mt,Ut]}function st(ae,ne,te,ie){var fe=Ae.useMemo(function(){return[new Map,[]]},[ae,te.id,ie]),re=(0,ve.Z)(fe,2),ue=re[0],Me=re[1],gt=function(ke){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke,ht=ue.get(ke),wt=ue.get(ot);if(ht===void 0||wt===void 0)for(var Ze=ae.length,We=Me.length;We<Ze;We+=1){var Mt,Ut=ae[We],cn=ne(Ut);ue.set(cn,We);var ln=(Mt=te.get(cn))!==null&&Mt!==void 0?Mt:ie;if(Me[We]=(Me[We-1]||0)+ln,cn===ke&&(ht=We),cn===ot&&(wt=We),ht!==void 0&&wt!==void 0)break}return{top:Me[ht-1]||0,bottom:Me[wt]}};return gt}var Je=z(38705),et=z(17212),ge=function(){function ae(){(0,Je.Z)(this,ae),(0,Re.Z)(this,"maps",void 0),(0,Re.Z)(this,"id",0),(0,Re.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,et.Z)(ae,[{key:"set",value:function(te,ie){this.diffRecords.set(te,this.maps[te]),this.maps[te]=ie,this.id+=1}},{key:"get",value:function(te){return this.maps[te]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),Qe=ge;function we(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function se(ae,ne,te){var ie=Ae.useState(0),fe=(0,ve.Z)(ie,2),re=fe[0],ue=fe[1],Me=(0,Ae.useRef)(new Map),gt=(0,Ae.useRef)(new Qe),_e=(0,Ae.useRef)(0);function ke(){_e.current+=1}function ot(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ke();var Ze=function(){var Ut=!1;Me.current.forEach(function(cn,ln){if(cn&&cn.offsetParent){var _t=cn.offsetHeight,fn=getComputedStyle(cn),qt=fn.marginTop,Ye=fn.marginBottom,Ot=we(qt),Jt=we(Ye),on=_t+Ot+Jt;gt.current.get(ln)!==on&&(gt.current.set(ln,on),Ut=!0)}}),Ut&&ue(function(cn){return cn+1})};if(wt)Ze();else{_e.current+=1;var We=_e.current;Promise.resolve().then(function(){We===_e.current&&Ze()})}}function ht(wt,Ze){var We=ae(wt),Mt=Me.current.get(We);Ze?(Me.current.set(We,Ze),ot()):Me.current.delete(We),!Mt!=!Ze&&(Ze?ne==null||ne(wt):te==null||te(wt))}return(0,Ae.useEffect)(function(){return ke},[]),[ht,ot,gt.current,re]}var ft=14/15;function $e(ae,ne,te){var ie=(0,Ae.useRef)(!1),fe=(0,Ae.useRef)(0),re=(0,Ae.useRef)(0),ue=(0,Ae.useRef)(null),Me=(0,Ae.useRef)(null),gt,_e=function(wt){if(ie.current){var Ze=Math.ceil(wt.touches[0].pageX),We=Math.ceil(wt.touches[0].pageY),Mt=fe.current-Ze,Ut=re.current-We,cn=Math.abs(Mt)>Math.abs(Ut);cn?fe.current=Ze:re.current=We;var ln=te(cn,cn?Mt:Ut,!1,wt);ln&&wt.preventDefault(),clearInterval(Me.current),ln&&(Me.current=setInterval(function(){cn?Mt*=ft:Ut*=ft;var _t=Math.floor(cn?Mt:Ut);(!te(cn,_t,!0)||Math.abs(_t)<=.1)&&clearInterval(Me.current)},16))}},ke=function(){ie.current=!1,gt()},ot=function(wt){gt(),wt.touches.length===1&&!ie.current&&(ie.current=!0,fe.current=Math.ceil(wt.touches[0].pageX),re.current=Math.ceil(wt.touches[0].pageY),ue.current=wt.target,ue.current.addEventListener("touchmove",_e,{passive:!1}),ue.current.addEventListener("touchend",ke,{passive:!0}))};gt=function(){ue.current&&(ue.current.removeEventListener("touchmove",_e),ue.current.removeEventListener("touchend",ke))},(0,je.Z)(function(){return ae&&ne.current.addEventListener("touchstart",ot,{passive:!0}),function(){var ht;(ht=ne.current)===null||ht===void 0||ht.removeEventListener("touchstart",ot),gt(),clearInterval(Me.current)}},[ae])}function tt(ae){return Math.floor(Math.pow(ae,.5))}function Nt(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Le(ae,ne,te){Ae.useEffect(function(){var ie=ne.current;if(ae&&ie){var fe=!1,re,ue,Me=function(){Se.Z.cancel(re)},gt=function ht(){Me(),re=(0,Se.Z)(function(){te(ue),ht()})},_e=function(){fe=!1,Me()},ke=function(wt){if(!(wt.target.draggable||wt.button!==0)){var Ze=wt;Ze._virtualHandled||(Ze._virtualHandled=!0,fe=!0)}},ot=function(wt){if(fe){var Ze=Nt(wt,!1),We=ie.getBoundingClientRect(),Mt=We.top,Ut=We.bottom;if(Ze<=Mt){var cn=Mt-Ze;ue=-tt(cn),gt()}else if(Ze>=Ut){var ln=Ze-Ut;ue=tt(ln),gt()}else Me()}};return ie.addEventListener("mousedown",ke),ie.ownerDocument.addEventListener("mouseup",_e),ie.ownerDocument.addEventListener("mousemove",ot),ie.ownerDocument.addEventListener("dragend",_e),function(){ie.removeEventListener("mousedown",ke),ie.ownerDocument.removeEventListener("mouseup",_e),ie.ownerDocument.removeEventListener("mousemove",ot),ie.ownerDocument.removeEventListener("dragend",_e),Me()}}},[ae])}var ye=10;function Et(ae,ne,te,ie,fe,re,ue,Me){var gt=Ae.useRef(),_e=Ae.useState(null),ke=(0,ve.Z)(_e,2),ot=ke[0],ht=ke[1];return(0,je.Z)(function(){if(ot&&ot.times<ye){if(!ae.current){ht(function(un){return(0,ce.Z)({},un)});return}re();var wt=ot.targetAlign,Ze=ot.originAlign,We=ot.index,Mt=ot.offset,Ut=ae.current.clientHeight,cn=!1,ln=wt,_t=null;if(Ut){for(var fn=wt||Ze,qt=0,Ye=0,Ot=0,Jt=Math.min(ne.length-1,We),on=0;on<=Jt;on+=1){var Ge=fe(ne[on]);Ye=qt;var Pt=te.get(Ge);Ot=Ye+(Pt===void 0?ie:Pt),qt=Ot}for(var jt=fn==="top"?Mt:Ut-Mt,vt=Jt;vt>=0;vt-=1){var Lt=fe(ne[vt]),Rt=te.get(Lt);if(Rt===void 0){cn=!0;break}if(jt-=Rt,jt<=0)break}switch(fn){case"top":_t=Ye-Mt;break;case"bottom":_t=Ot-Ut+Mt;break;default:{var sn=ae.current.scrollTop,Sn=sn+Ut;Ye<sn?ln="top":Ot>Sn&&(ln="bottom")}}_t!==null&&ue(_t),_t!==ot.lastTop&&(cn=!0)}cn&&ht((0,ce.Z)((0,ce.Z)({},ot),{},{times:ot.times+1,targetAlign:ln,lastTop:_t}))}},[ot,ae.current]),function(wt){if(wt==null){Me();return}if(Se.Z.cancel(gt.current),typeof wt=="number")ue(wt);else if(wt&&(0,he.Z)(wt)==="object"){var Ze,We=wt.align;"index"in wt?Ze=wt.index:Ze=ne.findIndex(function(cn){return fe(cn)===wt.key});var Mt=wt.offset,Ut=Mt===void 0?0:Mt;ht({times:0,index:Ze,offset:Ut,originAlign:We})}}}var Zt=Ae.forwardRef(function(ae,ne){var te=ae.prefixCls,ie=ae.rtl,fe=ae.scrollOffset,re=ae.scrollRange,ue=ae.onStartMove,Me=ae.onStopMove,gt=ae.onScroll,_e=ae.horizontal,ke=ae.spinSize,ot=ae.containerSize,ht=ae.style,wt=ae.thumbStyle,Ze=ae.showScrollBar,We=Ae.useState(!1),Mt=(0,ve.Z)(We,2),Ut=Mt[0],cn=Mt[1],ln=Ae.useState(null),_t=(0,ve.Z)(ln,2),fn=_t[0],qt=_t[1],Ye=Ae.useState(null),Ot=(0,ve.Z)(Ye,2),Jt=Ot[0],on=Ot[1],Ge=!ie,Pt=Ae.useRef(),jt=Ae.useRef(),vt=Ae.useState(Ze),Lt=(0,ve.Z)(vt,2),Rt=Lt[0],sn=Lt[1],Sn=Ae.useRef(),un=function(){Ze===!0||Ze===!1||(clearTimeout(Sn.current),sn(!0),Sn.current=setTimeout(function(){sn(!1)},3e3))},Cn=re-ot||0,Ct=ot-ke||0,It=Ae.useMemo(function(){if(fe===0||Cn===0)return 0;var $n=fe/Cn;return $n*Ct},[fe,Cn,Ct]),Gt=function(Vn){Vn.stopPropagation(),Vn.preventDefault()},tn=Ae.useRef({top:It,dragging:Ut,pageY:fn,startTop:Jt});tn.current={top:It,dragging:Ut,pageY:fn,startTop:Jt};var Wt=function(Vn){cn(!0),qt(Nt(Vn,_e)),on(tn.current.top),ue(),Vn.stopPropagation(),Vn.preventDefault()};Ae.useEffect(function(){var $n=function(rr){rr.preventDefault()},Vn=Pt.current,Wn=jt.current;return Vn.addEventListener("touchstart",$n,{passive:!1}),Wn.addEventListener("touchstart",Wt,{passive:!1}),function(){Vn.removeEventListener("touchstart",$n),Wn.removeEventListener("touchstart",Wt)}},[]);var mn=Ae.useRef();mn.current=Cn;var an=Ae.useRef();an.current=Ct,Ae.useEffect(function(){if(Ut){var $n,Vn=function(rr){var hn=tn.current,Bn=hn.dragging,zn=hn.pageY,Hn=hn.startTop;Se.Z.cancel($n);var St=Pt.current.getBoundingClientRect(),$t=ot/(_e?St.width:St.height);if(Bn){var nt=(Nt(rr,_e)-zn)*$t,Ft=Hn;!Ge&&_e?Ft-=nt:Ft+=nt;var Ke=mn.current,Tt=an.current,Yt=Tt?Ft/Tt:0,Rn=Math.ceil(Yt*Ke);Rn=Math.max(Rn,0),Rn=Math.min(Rn,Ke),$n=(0,Se.Z)(function(){gt(Rn,_e)})}},Wn=function(){cn(!1),Me()};return window.addEventListener("mousemove",Vn,{passive:!0}),window.addEventListener("touchmove",Vn,{passive:!0}),window.addEventListener("mouseup",Wn,{passive:!0}),window.addEventListener("touchend",Wn,{passive:!0}),function(){window.removeEventListener("mousemove",Vn),window.removeEventListener("touchmove",Vn),window.removeEventListener("mouseup",Wn),window.removeEventListener("touchend",Wn),Se.Z.cancel($n)}}},[Ut]),Ae.useEffect(function(){return un(),function(){clearTimeout(Sn.current)}},[fe]),Ae.useImperativeHandle(ne,function(){return{delayHidden:un}});var yn="".concat(te,"-scrollbar"),jn={position:"absolute",visibility:Rt?null:"hidden"},Nn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return _e?(Object.assign(jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Nn,(0,Re.Z)({height:"100%",width:ke},Ge?"left":"right",It))):(Object.assign(jn,(0,Re.Z)({width:8,top:0,bottom:0},Ge?"right":"left",0)),Object.assign(Nn,{width:"100%",height:ke,top:It})),Ae.createElement("div",{ref:Pt,className:Ne()(yn,(0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(yn,"-horizontal"),_e),"".concat(yn,"-vertical"),!_e),"".concat(yn,"-visible"),Rt)),style:(0,ce.Z)((0,ce.Z)({},jn),ht),onMouseDown:Gt,onMouseMove:un},Ae.createElement("div",{ref:jt,className:Ne()("".concat(yn,"-thumb"),(0,Re.Z)({},"".concat(yn,"-thumb-moving"),Ut)),style:(0,ce.Z)((0,ce.Z)({},Nn),wt),onMouseDown:Wt}))}),pt=Zt,Ce=20;function at(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/ne*ae;return isNaN(te)&&(te=0),te=Math.max(te,Ce),Math.floor(te)}var qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],zt=[],ut={overflowY:"auto",overflowAnchor:"none"};function ct(ae,ne){var te=ae.prefixCls,ie=te===void 0?"rc-virtual-list":te,fe=ae.className,re=ae.height,ue=ae.itemHeight,Me=ae.fullHeight,gt=Me===void 0?!0:Me,_e=ae.style,ke=ae.data,ot=ae.children,ht=ae.itemKey,wt=ae.virtual,Ze=ae.direction,We=ae.scrollWidth,Mt=ae.component,Ut=Mt===void 0?"div":Mt,cn=ae.onScroll,ln=ae.onVirtualScroll,_t=ae.onVisibleChange,fn=ae.innerProps,qt=ae.extraRender,Ye=ae.styles,Ot=ae.showScrollBar,Jt=Ot===void 0?"optional":Ot,on=(0,me.Z)(ae,qe),Ge=Ae.useCallback(function(Tn){return typeof ht=="function"?ht(Tn):Tn==null?void 0:Tn[ht]},[ht]),Pt=se(Ge,null,null),jt=(0,ve.Z)(Pt,4),vt=jt[0],Lt=jt[1],Rt=jt[2],sn=jt[3],Sn=!!(wt!==!1&&re&&ue),un=Ae.useMemo(function(){return Object.values(Rt.maps).reduce(function(Tn,Gn){return Tn+Gn},0)},[Rt.id,Rt.maps]),Cn=Sn&&ke&&(Math.max(ue*ke.length,un)>re||!!We),Ct=Ze==="rtl",It=Ne()(ie,(0,Re.Z)({},"".concat(ie,"-rtl"),Ct),fe),Gt=ke||zt,tn=(0,Ae.useRef)(),Wt=(0,Ae.useRef)(),mn=(0,Ae.useRef)(),an=(0,Ae.useState)(0),yn=(0,ve.Z)(an,2),jn=yn[0],Nn=yn[1],$n=(0,Ae.useState)(0),Vn=(0,ve.Z)($n,2),Wn=Vn[0],ur=Vn[1],rr=(0,Ae.useState)(!1),hn=(0,ve.Z)(rr,2),Bn=hn[0],zn=hn[1],Hn=function(){zn(!0)},St=function(){zn(!1)},$t={getKey:Ge};function nt(Tn){Nn(function(Gn){var Yn;typeof Tn=="function"?Yn=Tn(Gn):Yn=Tn;var Ln=Sr(Yn);return tn.current.scrollTop=Ln,Ln})}var Ft=(0,Ae.useRef)({start:0,end:Gt.length}),Ke=(0,Ae.useRef)(),Tt=dt(Gt,Ge),Yt=(0,ve.Z)(Tt,1),Rn=Yt[0];Ke.current=Rn;var Zn=Ae.useMemo(function(){if(!Sn)return{scrollHeight:void 0,start:0,end:Gt.length-1,offset:void 0};if(!Cn){var Tn;return{scrollHeight:((Tn=Wt.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,start:0,end:Gt.length-1,offset:void 0}}for(var Gn=0,Yn,Ln,mr,wr=Gt.length,Un=0;Un<wr;Un+=1){var Jn=Gt[Un],sr=Ge(Jn),pr=Rt.get(sr),_r=Gn+(pr===void 0?ue:pr);_r>=jn&&Yn===void 0&&(Yn=Un,Ln=Gn),_r>jn+re&&mr===void 0&&(mr=Un),Gn=_r}return Yn===void 0&&(Yn=0,Ln=0,mr=Math.ceil(re/ue)),mr===void 0&&(mr=Gt.length-1),mr=Math.min(mr+1,Gt.length-1),{scrollHeight:Gn,start:Yn,end:mr,offset:Ln}},[Cn,Sn,jn,Gt,sn,re]),yt=Zn.scrollHeight,xt=Zn.start,Bt=Zn.end,At=Zn.offset;Ft.current.start=xt,Ft.current.end=Bt,Ae.useLayoutEffect(function(){var Tn=Rt.getRecord();if(Tn.size===1){var Gn=Array.from(Tn.keys())[0],Yn=Tn.get(Gn),Ln=Gt[xt];if(Ln&&Yn===void 0){var mr=Ge(Ln);if(mr===Gn){var wr=Rt.get(Gn),Un=wr-ue;nt(function(Jn){return Jn+Un})}}}Rt.resetRecord()},[yt]);var pn=Ae.useState({width:0,height:re}),Pn=(0,ve.Z)(pn,2),In=Pn[0],Mn=Pn[1],qn=function(Gn){Mn({width:Gn.offsetWidth,height:Gn.offsetHeight})},nr=(0,Ae.useRef)(),ir=(0,Ae.useRef)(),lr=Ae.useMemo(function(){return at(In.width,We)},[In.width,We]),Qn=Ae.useMemo(function(){return at(In.height,yt)},[In.height,yt]),ar=yt-re,fr=(0,Ae.useRef)(ar);fr.current=ar;function Sr(Tn){var Gn=Tn;return Number.isNaN(fr.current)||(Gn=Math.min(Gn,fr.current)),Gn=Math.max(Gn,0),Gn}var br=jn<=0,Zr=jn>=ar,jr=Wn<=0,hr=Wn>=We,Nr=He(br,Zr,jr,hr),eo=function(){return{x:Ct?-Wn:Wn,y:jn}},Tr=(0,Ae.useRef)(eo()),Pr=(0,le.zX)(function(Tn){if(ln){var Gn=(0,ce.Z)((0,ce.Z)({},eo()),Tn);(Tr.current.x!==Gn.x||Tr.current.y!==Gn.y)&&(ln(Gn),Tr.current=Gn)}});function or(Tn,Gn){var Yn=Tn;Gn?((0,it.flushSync)(function(){ur(Yn)}),Pr()):nt(Yn)}function Ur(Tn){var Gn=Tn.currentTarget.scrollTop;Gn!==jn&&nt(Gn),cn==null||cn(Tn),Pr()}var Rr=function(Gn){var Yn=Gn,Ln=We?We-In.width:0;return Yn=Math.max(Yn,0),Yn=Math.min(Yn,Ln),Yn},Br=(0,le.zX)(function(Tn,Gn){Gn?((0,it.flushSync)(function(){ur(function(Yn){var Ln=Yn+(Ct?-Tn:Tn);return Rr(Ln)})}),Pr()):nt(function(Yn){var Ln=Yn+Tn;return Ln})}),Cr=rt(Sn,br,Zr,jr,hr,!!We,Br),so=(0,ve.Z)(Cr,2),Ho=so[0],ti=so[1];$e(Sn,tn,function(Tn,Gn,Yn,Ln){var mr=Ln;return Nr(Tn,Gn,Yn)?!1:!mr||!mr._virtualHandled?(mr&&(mr._virtualHandled=!0),Ho({preventDefault:function(){},deltaX:Tn?Gn:0,deltaY:Tn?0:Gn}),!0):!1}),Le(Cn,tn,function(Tn){nt(function(Gn){return Gn+Tn})}),(0,je.Z)(function(){function Tn(Yn){var Ln=br&&Yn.detail<0,mr=Zr&&Yn.detail>0;Sn&&!Ln&&!mr&&Yn.preventDefault()}var Gn=tn.current;return Gn.addEventListener("wheel",Ho,{passive:!1}),Gn.addEventListener("DOMMouseScroll",ti,{passive:!0}),Gn.addEventListener("MozMousePixelScroll",Tn,{passive:!1}),function(){Gn.removeEventListener("wheel",Ho),Gn.removeEventListener("DOMMouseScroll",ti),Gn.removeEventListener("MozMousePixelScroll",Tn)}},[Sn,br,Zr]),(0,je.Z)(function(){if(We){var Tn=Rr(Wn);ur(Tn),Pr({x:Tn})}},[In.width,We]);var Eo=function(){var Gn,Yn;(Gn=nr.current)===null||Gn===void 0||Gn.delayHidden(),(Yn=ir.current)===null||Yn===void 0||Yn.delayHidden()},No=Et(tn,Gt,Rt,ue,Ge,function(){return Lt(!0)},nt,Eo);Ae.useImperativeHandle(ne,function(){return{nativeElement:mn.current,getScrollInfo:eo,scrollTo:function(Gn){function Yn(Ln){return Ln&&(0,he.Z)(Ln)==="object"&&("left"in Ln||"top"in Ln)}Yn(Gn)?(Gn.left!==void 0&&ur(Rr(Gn.left)),No(Gn.top)):No(Gn)}}}),(0,je.Z)(function(){if(_t){var Tn=Gt.slice(xt,Bt+1);_t(Tn,Gt)}},[xt,Bt,Gt]);var To=st(Gt,Ge,Rt,ue),Xo=qt==null?void 0:qt({start:xt,end:Bt,virtual:Cn,offsetX:Wn,offsetY:At,rtl:Ct,getSize:To}),ko=Pe(Gt,xt,Bt,We,Wn,vt,ot,$t),vo=null;re&&(vo=(0,ce.Z)((0,Re.Z)({},gt?"height":"maxHeight",re),ut),Sn&&(vo.overflowY="hidden",We&&(vo.overflowX="hidden"),Bn&&(vo.pointerEvents="none")));var dr={};return Ct&&(dr.dir="rtl"),Ae.createElement("div",(0,y.Z)({ref:mn,style:(0,ce.Z)((0,ce.Z)({},_e),{},{position:"relative"}),className:It},dr,on),Ae.createElement(be.Z,{onResize:qn},Ae.createElement(Ut,{className:"".concat(ie,"-holder"),style:vo,ref:tn,onScroll:Ur,onMouseEnter:Eo},Ae.createElement(Oe,{prefixCls:ie,height:yt,offsetX:Wn,offsetY:At,scrollWidth:We,onInnerResize:Lt,ref:Wt,innerProps:fn,rtl:Ct,extra:Xo},ko))),Cn&&yt>re&&Ae.createElement(pt,{ref:nr,prefixCls:ie,scrollOffset:jn,scrollRange:yt,rtl:Ct,onScroll:or,onStartMove:Hn,onStopMove:St,spinSize:Qn,containerSize:In.height,style:Ye==null?void 0:Ye.verticalScrollBar,thumbStyle:Ye==null?void 0:Ye.verticalScrollBarThumb,showScrollBar:Jt}),Cn&&We>In.width&&Ae.createElement(pt,{ref:ir,prefixCls:ie,scrollOffset:Wn,scrollRange:We,rtl:Ct,onScroll:or,onStartMove:Hn,onStopMove:St,spinSize:lr,containerSize:In.width,horizontal:!0,style:Ye==null?void 0:Ye.horizontalScrollBar,thumbStyle:Ye==null?void 0:Ye.horizontalScrollBarThumb,showScrollBar:Jt}))}var lt=Ae.forwardRef(ct);lt.displayName="List";var nn=lt,kt=nn},4977:function(En){"use strict";En.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(En,Vt,z){"use strict";z.d(Vt,{Z:function(){return Ne}});const y=be=>typeof be=="object"&&be!=null&&be.nodeType===1,he=(be,le)=>(!le||be!=="hidden")&&be!=="visible"&&be!=="clip",ce=(be,le)=>{if(be.clientHeight<be.scrollHeight||be.clientWidth<be.scrollWidth){const je=getComputedStyle(be,null);return he(je.overflowY,le)||he(je.overflowX,le)||(Ae=>{const it=(ze=>{if(!ze.ownerDocument||!ze.ownerDocument.defaultView)return null;try{return ze.ownerDocument.defaultView.frameElement}catch(Oe){return null}})(Ae);return!!it&&(it.clientHeight<Ae.scrollHeight||it.clientWidth<Ae.scrollWidth)})(be)}return!1},Re=(be,le,je,Ae,it,ze,Oe,Ee)=>ze<be&&Oe>le||ze>be&&Oe<le?0:ze<=be&&Ee<=je||Oe>=le&&Ee>=je?ze-be-Ae:Oe>le&&Ee<je||ze<be&&Ee>je?Oe-le+it:0,ve=be=>{const le=be.parentElement;return le==null?be.getRootNode().host||null:le},me=(be,le)=>{var je,Ae,it,ze;if(typeof document=="undefined")return[];const{scrollMode:Oe,block:Ee,inline:Pe,boundary:Fe,skipOverflowHiddenElements:Ve}=le,dt=typeof Fe=="function"?Fe:pt=>pt!==Fe;if(!y(be))throw new TypeError("Invalid target");const Se=document.scrollingElement||document.documentElement,Ie=[];let Xe=be;for(;y(Xe)&&dt(Xe);){if(Xe=ve(Xe),Xe===Se){Ie.push(Xe);break}Xe!=null&&Xe===document.body&&ce(Xe)&&!ce(document.documentElement)||Xe!=null&&ce(Xe,Ve)&&Ie.push(Xe)}const He=(Ae=(je=window.visualViewport)==null?void 0:je.width)!=null?Ae:innerWidth,rt=(ze=(it=window.visualViewport)==null?void 0:it.height)!=null?ze:innerHeight,{scrollX:st,scrollY:Je}=window,{height:et,width:ge,top:Qe,right:we,bottom:se,left:ft}=be.getBoundingClientRect(),{top:$e,right:tt,bottom:Nt,left:Le}=(pt=>{const Ce=window.getComputedStyle(pt);return{top:parseFloat(Ce.scrollMarginTop)||0,right:parseFloat(Ce.scrollMarginRight)||0,bottom:parseFloat(Ce.scrollMarginBottom)||0,left:parseFloat(Ce.scrollMarginLeft)||0}})(be);let ye=Ee==="start"||Ee==="nearest"?Qe-$e:Ee==="end"?se+Nt:Qe+et/2-$e+Nt,Et=Pe==="center"?ft+ge/2-Le+tt:Pe==="end"?we+tt:ft-Le;const Zt=[];for(let pt=0;pt<Ie.length;pt++){const Ce=Ie[pt],{height:at,width:qe,top:zt,right:ut,bottom:ct,left:lt}=Ce.getBoundingClientRect();if(Oe==="if-needed"&&Qe>=0&&ft>=0&&se<=rt&&we<=He&&(Ce===Se&&!ce(Ce)||Qe>=zt&&se<=ct&&ft>=lt&&we<=ut))return Zt;const nn=getComputedStyle(Ce),kt=parseInt(nn.borderLeftWidth,10),ae=parseInt(nn.borderTopWidth,10),ne=parseInt(nn.borderRightWidth,10),te=parseInt(nn.borderBottomWidth,10);let ie=0,fe=0;const re="offsetWidth"in Ce?Ce.offsetWidth-Ce.clientWidth-kt-ne:0,ue="offsetHeight"in Ce?Ce.offsetHeight-Ce.clientHeight-ae-te:0,Me="offsetWidth"in Ce?Ce.offsetWidth===0?0:qe/Ce.offsetWidth:0,gt="offsetHeight"in Ce?Ce.offsetHeight===0?0:at/Ce.offsetHeight:0;if(Se===Ce)ie=Ee==="start"?ye:Ee==="end"?ye-rt:Ee==="nearest"?Re(Je,Je+rt,rt,ae,te,Je+ye,Je+ye+et,et):ye-rt/2,fe=Pe==="start"?Et:Pe==="center"?Et-He/2:Pe==="end"?Et-He:Re(st,st+He,He,kt,ne,st+Et,st+Et+ge,ge),ie=Math.max(0,ie+Je),fe=Math.max(0,fe+st);else{ie=Ee==="start"?ye-zt-ae:Ee==="end"?ye-ct+te+ue:Ee==="nearest"?Re(zt,ct,at,ae,te+ue,ye,ye+et,et):ye-(zt+at/2)+ue/2,fe=Pe==="start"?Et-lt-kt:Pe==="center"?Et-(lt+qe/2)+re/2:Pe==="end"?Et-ut+ne+re:Re(lt,ut,qe,kt,ne+re,Et,Et+ge,ge);const{scrollLeft:_e,scrollTop:ke}=Ce;ie=gt===0?0:Math.max(0,Math.min(ke+ie/gt,Ce.scrollHeight-at/gt+ue)),fe=Me===0?0:Math.max(0,Math.min(_e+fe/Me,Ce.scrollWidth-qe/Me+re)),ye+=ke-ie,Et+=_e-fe}Zt.push({el:Ce,top:ie,left:fe})}return Zt},pe=be=>be===!1?{block:"end",inline:"nearest"}:(le=>le===Object(le)&&Object.keys(le).length!==0)(be)?be:{block:"start",inline:"nearest"};function Ne(be,le){if(!be.isConnected||!(it=>{let ze=it;for(;ze&&ze.parentNode;){if(ze.parentNode===document)return!0;ze=ze.parentNode instanceof ShadowRoot?ze.parentNode.host:ze.parentNode}return!1})(be))return;const je=(it=>{const ze=window.getComputedStyle(it);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(be);if((it=>typeof it=="object"&&typeof it.behavior=="function")(le))return le.behavior(me(be,le));const Ae=typeof le=="boolean"||le==null?void 0:le.behavior;for(const{el:it,top:ze,left:Oe}of me(be,pe(le))){const Ee=ze-je.top+je.bottom,Pe=Oe-je.left+je.right;it.scroll({top:Ee,left:Pe,behavior:Ae})}}}}]);