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

3619 lines
2.5 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.

!(function(){var Lc=Math.pow;var ud=(vn,Tt,te)=>new Promise((ee,de)=>{var ke=Me=>{try{xe(te.next(Me))}catch(ue){de(ue)}},Ge=Me=>{try{xe(te.throw(Me))}catch(ue){de(ue)}},xe=Me=>Me.done?ee(Me.value):Promise.resolve(Me.value).then(ke,Ge);xe((te=te.apply(vn,Tt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[90337],{33463:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},28575:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},18299:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},81893:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},42922:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},25877:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},55304:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},63237:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},99569:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},73148:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},56747:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},50881:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},22751:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},24018:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},34182:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},40043:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},38308:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},74664:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},17663:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},91034:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},72395:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},53978:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ue}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(fe,we){return de.createElement(xe.Z,(0,ee.Z)({},fe,{ref:we,icon:Ge}))},ue=de.forwardRef(Me)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(vn,Tt){"use strict";Tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(vn,Tt){"use strict";Tt.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"}},14375:function(vn,Tt,te){"use strict";var ee=te(67294),de=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Me=(fe,we,Ue)=>we in fe?de(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):fe[we]=Ue,ue=(fe,we)=>{for(var Ue in we||(we={}))Ge.call(we,Ue)&&Me(fe,Ue,we[Ue]);if(ke)for(var Ue of ke(we))xe.call(we,Ue)&&Me(fe,Ue,we[Ue]);return fe};const Ee=fe=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},fe),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"})));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var vn={},Tt="5.0",te={},ee=null,de=!1,ke=!1,Ge=null,xe=!1,Me=null,ue=null,Ee=0;Ee<arguments.length;Ee++){var fe=arguments[Ee];if(fe!==null)switch(typeof fe){case"number":Tt=fe.toFixed(1);break;case"string":fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Tt=fe:Ge=fe;break;case"object":typeof fe.is3D!="undefined"?ee=fe:te=fe;break;case"boolean":de=fe,ke=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!ke&&(de=!0)),Ge!==null&&te.id===void 0&&(te.id=Ge);var we="",Ue="",De=!1,Ke=null,rt=null,Qe=null,_e=!1,ge=null,Ve=null,lt=null,He=null,Oe=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var ve=function(ht){return parseFloat(ht)>4?parseFloat(ht):5};vn.setHTML5Codebase=function(ht,Bt){ue=ht,St(ht,Bt)},vn.setJavaCodebase=vn.setJavaCodebaseVersion=vn.isCompiledInstalled=vn.setPreCompiledScriptPath=vn.setPreCompiledResourcePath=function(){},vn.setHTML5CodebaseVersion=function(ht,Bt){var _t=parseFloat(ht);if(_t!==NaN&&_t<5){console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead.");return}Me=ht,Be(ht,Bt)},vn.getHTML5CodebaseVersion=function(){return rt},vn.getParameters=function(){return te},vn.setFontsCSSURL=function(ht){He=ht},vn.setGiacJSURL=function(ht){},vn.setJNLPFile=function(ht){we=ht},vn.setJNLPBaseDir=function(ht){},vn.inject=function(){function ht(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Bt="auto",_t=te.id,Fn,kn=!1,kt=0;kt<arguments.length;kt++){var un=arguments[kt];typeof un=="string"?(un=un.toLowerCase(),un.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Bt=un:_t=arguments[kt]):typeof un=="boolean"?kn=un:un instanceof HTMLElement&&(Fn=un)}Wn();function Wn(){if(!xe){setTimeout(Wn,200);return}Bt=Xt(Bt);var An=Fn||document.getElementById(_t);if(!An){console.log("possibly bug on ajax loading? ");return}if(vn.removeExistingApplet(An,!1),te.width===void 0&&An.clientWidth&&(te.width=An.clientWidth),te.height===void 0&&An.clientHeight&&(te.height=An.clientHeight),!(te.width&&te.height)&&Bt==="html5"&&(delete te.width,delete te.height),Ke=Bt,Bt==="screenshot")je(An,te);else{var Ie=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?Ie=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(Ie=(!ye()||ht())&&ze()),Ie?(Ke="screenshot",qe(An,te,kn,Bt)):mt(An,te,kn)}}};function ye(){try{return window.self!==window.top}catch(ht){return!0}}function ze(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}vn.getViews=function(){return ee},vn.isJavaInstalled=function(){return!1};var We=function(ht){var Bt=function(kt){var un=JSON.parse(kt),Wn=function(he){return he.type=="G"||he.type=="E"},An=un.elements?un.elements.filter(Wn)[0]:un;if(!An||!An.url){_t();return}te.fileName=An.url,st(An.settings||{}),ee.is3D=!0;var Ie="https://www.geogebra.org/images/";vn.setPreviewImage(ge||An.previewUrl,Ie+"GeoGebra_loading.png",Ie+"applet_play.png"),ht()},_t=function(){te.onError&&te.onError(),Vt("Error: Fetching material (id "+te.material_id+") failed.",te)},Fn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kn="/materials/"+te.material_id+"?scope=basic";at("https://"+Fn+"/api/proxy.php?path="+encodeURIComponent(kn),Bt,_t)};function st(ht){var Bt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_t){ht[_t]=!!ht[_t]}),Bt.forEach(function(_t){te[_t]===void 0&&ht[_t]!==void 0&&(te[_t]=ht[_t])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function at(ht,Bt,_t){var Fn=new XMLHttpRequest;Fn.open("GET",ht),Fn.onload=function(){Bt(Fn.responseText)},Fn.onerror=_t,Fn.send()}vn.isHTML5Installed=function(){return!0},vn.getLoadedAppletType=function(){return Ke},vn.setPreviewImage=function(ht,Bt,_t){ge=ht,Ve=Bt,lt=_t},vn.removeExistingApplet=function(ht,Bt){var _t;typeof ht=="string"&&(ht=document.getElementById(ht)),Ke=null;var Fn=null;for(_t=0;_t<ht.childNodes.length;_t++){var kn=ht.childNodes[_t],kt=kn.className;kt==="applet_screenshot"?Bt?(kn.style.display="block",Ke="screenshot"):kn.style.display="none":kt!=="applet_scaler prerender"&&(ht.removeChild(kn),Fn=kt&&kt.indexOf("appletParameters")!=-1?kn.id:null,_t--)}var un=te.id!==void 0?te.id:Fn,Wn=window[un];Wn&&typeof Wn.getBase64=="function"&&(Wn.remove(),window[un]=null)},vn.refreshHitPoints=function(){if(ve(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ht=vn.getAppletObject();return ht&&typeof ht.recalculateEnvironments=="function"?(ht.recalculateEnvironments(),!0):!1},vn.startAnimation=function(){var ht=vn.getAppletObject();return ht&&typeof ht.startAnimation=="function"?(ht.startAnimation(),!0):!1},vn.stopAnimation=function(){var ht=vn.getAppletObject();return ht&&typeof ht.stopAnimation=="function"?(ht.stopAnimation(),!0):!1},vn.getAppletObject=function(){var ht=te.id!==void 0?te.id:"ggbApplet";return window[ht]},vn.resize=function(){};var Ze=function(ht,Bt,_t){var Fn=document.createElement("param");Fn.setAttribute("name",Bt),Fn.setAttribute("value",_t),ht.appendChild(Fn)},Ae=function(ht){return ht&&ht!=="false"},mt=function(ht,Bt,_t){ve(rt)<=4.2&&(_t=!0);var Fn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==rt||ggbHTML5LoadedCodebaseIsWebSimple&&!_e)&&(Fn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kn=document.createElement("div");kn.classList.add("appletParameters","notranslate");var kt=Bt.width,un=Bt.height;if(Bt.disableAutoScale=Bt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Bt.disableAutoScale,Bt.width!==void 0)if(ve(rt)<=4.4)Ae(Bt.showToolBar)&&(Bt.height-=7),Ae(Bt.showAlgebraInput)&&(Bt.height-=37),Bt.width<605&&Ae(Bt.showToolBar)&&(Bt.width=605,kt=605);else{var Wn=100;(Ae(Bt.showToolBar)||Ae(Bt.showMenuBar))&&(Bt.hasOwnProperty("customToolBar")&&(Bt.customToolbar=Bt.customToolBar),Wn=Ae(Bt.showMenuBar)?245:155),kt<Wn&&(Bt.width=Wn,kt=Wn)}kn.style.border="none",kn.style.display="inline-block";for(var An in Bt)Bt.hasOwnProperty(An)&&An!=="appletOnLoad"&&kn.setAttribute("data-param-"+An,Bt[An]);He&&kn.setAttribute("data-param-fontscssurl",He),vn.resize=function(){GGBAppletUtils.responsiveResize(ht,Bt)},window.addEventListener("resize",function(dn){vn.resize()});var Ie=typeof Bt.appletOnLoad=="function"?Bt.appletOnLoad:function(){};if(!_t&&Bt.width!==void 0){Bt.hasOwnProperty("showSplash")||kn.setAttribute("data-param-showSplash","false");var he=ht.querySelector(".applet_scaler.prerender"),ce=he!==null;if(ce)var me=he.querySelector(".ggb_preview");else{var me=Pt(kt,un,Bt.borderColor,!1);he=document.createElement("div"),he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.style.width=kt+"px",he.style.height=un+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(he,"66%"),ve(rt)>=5?(Bt.appletOnLoad=function(dn){var Mt=ht.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(he),window.GGBT_wsf_view&&$(window).trigger("resize"),Ie(dn)},ce||he.appendChild(me)):kn.appendChild(me),he.appendChild(kn),ce||ht.appendChild(he),setTimeout(function(){vn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(kn),ht.appendChild(pe),Bt.appletOnLoad=function(dn){vn.resize(),Ie(dn)}}function le(dn,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(dn,Mt.appletOnLoad):renderGGBElement(dn),Vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function Le(dn,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:dn,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wt){le(Wt.article,Wt.params)}),html5AppletsToProcess=null)},ve(rt)<5&&(dn.className+=" geogebraweb")):le(dn,Mt)}if(Fn){scriptLoadStarted=!0;for(var dt=0;dt<kn.childNodes.length;dt++){var Nt=kn.childNodes[dt].tagName;Nt==="TABLE"&&(kn.removeChild(kn.childNodes[dt]),dt--)}if(ggbHTML5LoadedScript!==null){var tn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tn!=null&&tn.parentNode.removeChild(tn)}var an=document.createElement("script"),Yt=function(){Le(kn,Bt)};an.src=Ue+Qe,ggbHTML5LoadedCodebaseIsWebSimple=_e,ggbHTML5LoadedCodebaseVersion=rt,ggbHTML5LoadedScript=an.src,Vt("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Bt),!ue&&(!Me||Me=="5.0")?(_e?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Yt()):Ue.requirejs?__webpack_require__.e(12).then(function(){var dn=[__webpack_require__(12)];Yt.apply(null,dn)}.bind(this)).catch(__webpack_require__.oe):(an.onload=Yt,ht.appendChild(an))}else Le(kn,Bt);Bt.height=un,Bt.width=kt},je=function(ht,Bt,_t){var Fn=Pt(Bt.width,Bt.height,Bt.borderColor,_t),kn=document.createElement("div");kn.style.position="relative",kn.style.display="block",kn.style.width=Bt.width+"px",kn.style.height=Bt.height+"px",kn.className="applet_screenshot applet_scaler"+(_t?" applet_screenshot_play":""),kn.appendChild(Fn);var kt=GGBAppletUtils.getScale(Bt,ht,_t);_t?(ht.appendChild(gt()),window.GGBT_wsf_view||(ht.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kn,"66%"),ht.appendChild(kn),kt!==1&&!isNaN(kt)&&(GGBAppletUtils.scaleElement(kn,kt),kn.style.width=Bt.width+"px",kn.style.height=Bt.height+"px",kn.parentNode.style.width=Bt.width*kt+"px",kn.parentNode.style.height=Bt.height*kt+"px"),vn.resize=function(){it(ht,Fn,kn,_t)},window.addEventListener("resize",function(un){vn.resize()}),vn.resize()};function it(ht,Bt,_t,Fn){if(ht.contains(Bt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ht.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ht)}var kn=GGBAppletUtils.getScale(te,ht,Fn);_t.parentNode!==null&&(!isNaN(kn)&&kn!==1?(GGBAppletUtils.scaleElement(_t,kn),_t.parentNode.style.width=te.width*kn+"px",_t.parentNode.style.height=te.height*kn+"px"):(GGBAppletUtils.scaleElement(_t,1),_t.parentNode.style.width=te.width+"px",_t.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ht),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}vn.onExitFullscreen=function(ht,Bt){Bt.appendChild(ht)};var qe=function(ht,Bt,_t,Fn){je(ht,Bt,!0);for(var kn=function(){var Wn=[];for(un=0;un<ht.childNodes.length;un++)Wn.push(ht.childNodes[un]);if(window.GGBT_wsf_view){var An=window.GGBT_wsf_view.renderFullScreen(ht,Bt.id),Ie=document.getElementById("fullscreencontainer"),he=jQuery(ht).find(".fullscreencontent");he.length>0?(An.remove(),he.attr("id","fullscreencontent").show(),jQuery(Ie).append(he),window.dispatchEvent(new Event("resize"))):mt(An,Bt,!1),window.GGBT_wsf_view.launchFullScreen(Ie)}else Ke=Fn,mt(ht,Bt,!1);if(!window.GGBT_wsf_view)for(un=0;un<Wn.length;un++)ht.removeChild(Wn[un])},kt=ht.getElementsByClassName("ggb_preview_play"),un=0;un<kt.length;un++)kt[un].addEventListener("click",kn,!1),kt[un].addEventListener("ontouchstart",kn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ht),ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},gt=function(){var ht=document.createElement("div");if(ht.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Bt='.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");}',_t=document.createElement("style");_t.styleSheet?_t.styleSheet.cssText=Bt:_t.appendChild(document.createTextNode(Bt)),document.getElementsByTagName("head")[0].appendChild(_t)}return ht},Pt=function(ht,Bt,_t,Fn){var kn=document.createElement("div");kn.className="ggb_preview",kn.style.position="absolute",kn.style.zIndex="90",kn.style.width=ht-2+"px",kn.style.height=Bt-2+"px",kn.style.top="0px",kn.style.left="0px",kn.style.overflow="hidden",kn.style.backgroundColor="white";var kt="lightgrey";_t!==void 0&&(_t==="none"?kt="transparent":kt=_t),kn.style.border="1px solid "+kt;var un=document.createElement("img");if(un.style.position="relative",un.style.zIndex="1000",un.style.top="-1px",un.style.left="-1px",ge!==null&&un.setAttribute("src",ge),un.style.opacity=.7,Ve!==null){var Wn,An,Ie;if(!Fn){Wn=document.createElement("img"),Wn.style.position="absolute",Wn.style.zIndex="1001",Wn.style.opacity=1,un.style.opacity=.3,An=360,An>ht/4*3&&(An=ht/4*3),Ie=An/5.8,Wn.setAttribute("src",Ve),Wn.setAttribute("width",An),Wn.setAttribute("height",Ie);var he=(ht-An)/2,ce=(Bt-Ie)/2;Wn.style.left=he+"px",Wn.style.top=ce+"px",kn.appendChild(Wn)}}return kn.appendChild(un),kn},Xt=function(ht){return ht=ht.toLowerCase(),ht==="html5"||ht==="screenshot"?ht:"html5"},$e=["web","webSimple","web3d","tablet","tablet3d","phone"],Be=function(ht,Bt){if(rt=ht,Bt){St(rt,!0);return}var _t=!de;if(_t){var Fn=ve(rt);!isNaN(Fn)&&Fn<4.4&&(_t=!1)}var kn,kt;window.location.protocol.substr(0,4)==="http"?kn=window.location.protocol:kn="http:";var un=rt.indexOf("//");un>0?kt=rt:un===0?kt=kn+rt:kt="https://www.geogebra.org/apps/5.2.814.0/";for(var Wn in $e)if(rt.slice($e[Wn].length*-1)===$e[Wn]||rt.slice(($e[Wn].length+1)*-1)===$e[Wn]+"/"){St(kt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_t&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Ae(te.showToolBar)&&!Ae(te.showMenuBar)&&!Ae(te.showAlgebraInput)&&!Ae(te.enableRightClick)&&(!te.appName||te.appName=="classic")?kt+="webSimple/":kt+="web3d/",St(kt,!1)},St=function(ht,Bt){if(ht.requirejs){Ue=ht;return}ht.slice(-1)!=="/"&&(ht+="/"),Ue=ht,Bt===null&&(Bt=ht.indexOf("http")===-1),De=Bt,Qe="web.nocache.js",_e=!1;var _t=Ue.split("/");_t.length>1&&(!Bt&&_t[_t.length-2]==="webSimple"?(Qe="webSimple.nocache.js",_e=!0):$e.indexOf(_t[_t.length-2])>=0&&(Qe=_t[_t.length-2]+".nocache.js")),_t=ht.split("/"),rt=_t[_t.length-3],rt.substr(0,4)==="test"?rt=rt.substr(4,1)+"."+rt.substr(5,1):(rt.substr(0,3)==="war"||rt.substr(0,4)==="beta")&&(rt="5.0");var Fn=parseFloat(rt);Fn!==NaN&&Fn<5&&ht.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Fn+" is deprecated. Using version latest instead."),Be("5.0",Bt))},Vt=function(ht,Bt){window.console&&window.console.log&&(!Bt||typeof Bt.showLogging=="undefined"||Bt.showLogging&&Bt.showLogging!=="false")&&console.log(ht)};te.material_id!==void 0?We(Rt):Rt();function Rt(){var ht=Tt;Me!==null?ht=Me:parseFloat(ht)<5&&(ht="5.0"),Be(ht,!1),ue!==null&&St(ue,De),xe=!0}return vn},GGBAppletUtils=function(){"use strict";function vn(){return window.GGBT_wsf_edit!==void 0}function Tt(xe,Me){Me!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Me+","+Me+")",xe.style.webkitTransform="scale("+Me+","+Me+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function te(xe,Me,ue,Ee,fe,we){var Ue=null;if(we!=null&&we!="")for(var De=xe.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+we+" ")>-1){Ue=De;break}else De=De.parentNode;var Ke=0,rt=0,Qe=0,_e=0,ge=0,Ve=0,lt=0;if(Ue)Ke=Ue.offsetWidth,rt=Math.max(Ee?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),rt=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=Ke):(Ke=window.innerWidth,rt=window.innerHeight,Qe=window.innerWidth),xe){var He=xe.getBoundingClientRect();He.left>0&&He.left<=Ke&&(fe===void 0||!fe)&&(document.dir==="rtl"?(ge=Ke-He.width-He.left,Ve=Qe<=480?10:30):(Ve=He.left,ge=Qe<=480?10:30),_e=Ve+ge)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Oe=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(_e=40,lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e=0,lt=40)}}return xe&&((ue===void 0||!ue)&&Me>0&&Me+_e<Ke?Ke=Me:Ke-=_e,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(rt-=lt)),{width:Ke,height:rt}}function ee(xe,Me,ue,Ee,fe){if(xe.isScreenshoGenerator)return 1;var we=Ee!==void 0&&Ee,Ue=xe.noScaleMargin!=null&&xe.noScaleMargin,De=function(Oe){return Oe&&Oe!=="false"},Ke=De(xe.autoHeight),rt=te(Me,xe.width,ue,Ke,we&&window.GGBT_wsf_view||Ue,fe),Qe=parseInt(rt.width),_e=xe.width,ge=xe.height;if(_e===void 0){var Ve=Me.querySelector(".appletParameters");Ve&&(_e=Ve.offsetWidth,ge=Ve.offsetHeight)}var lt=Qe/_e,He=we?1:rt.height/ge;return ue!==void 0&&!ue&&(lt=Math.min(1,lt),He=Math.min(1,He)),Math.min(lt,He)}function de(xe,Me,ue){var Ee=1,fe,we=!1;if(xe.hasOwnProperty("allowUpscale")&&(we=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Ee=parseFloat(xe.scale),(isNaN(Ee)||Ee===null||Ee===0)&&(Ee=1),Ee>1&&(we=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(we=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))fe=ee(xe,Me,we,ue,xe.scaleContainerClass);else return Ee;return we&&(!xe.hasOwnProperty("scale")||Ee===1)?fe:Math.min(Ee,fe)}function ke(xe){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ee=xe.getBoundingClientRect(),fe=(Me-Ee.width)/2,we=(ue-Ee.height)/2;we<0&&(we=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(fe<40?xe.style.left="40px":xe.style.left=fe+"px",xe.style.top=we+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we<40?xe.style.top="40px":xe.style.top=we+"px",xe.style.left=fe+"px")}function Ge(xe,Me){var ue=xe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ee=de(Me,xe);vn()&&ue.setAttribute("data-param-scale",Ee);for(var fe=null,we=0;we<xe.childNodes.length;we++)if(xe.childNodes[we].className!==void 0&&xe.childNodes[we].className.match(/^applet_scaler/)){fe=xe.childNodes[we];break}if(fe!==null&&fe.querySelector(".noscale")!==null)return;var Ue=Me.id!==void 0?Me.id:"ggbApplet",De=window[Ue];(De==null||!De.recalculateEnvironments)&&fe!==null&&!fe.className.match(/fullscreen/)&&(fe.parentNode.style.transform="",!isNaN(Ee)&&Ee!==1?(fe.parentNode.style.width=Me.width*Ee+"px",fe.parentNode.style.height=Me.height*Ee+"px",Tt(fe,Ee)):(Tt(fe,1),fe.parentNode.style.width=Me.width+"px",fe.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ke(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:vn,positionCenter:ke,getScale:de,scaleElement:Tt}}();__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 vn=n.location.search;return vn.indexOf(J)!=-1||vn.indexOf(K)!=-1}function q(vn,Tt){}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(vn){var Tt=s[L].bindings;s[L].bindings=function(){for(var te=Tt?Tt():{},ee=vn[webModule.__softPermutationId],de=O;de<ee.length;de++){var ke=ee[de];te[ke[O]]=ke[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var vn=o.createElement(Q);if(vn.id=L,vn.style.cssText=R+S,vn.tabIndex=-1,o.body.appendChild(vn),t=vn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Tt=document.compatMode==U?V:W;t.write(Tt+X),t.close()}}}function w(vn){function Tt(ee){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ke=de();if(ke){ee();return}function Ge(){if(!ke){if(!de())return;ke=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var xe=setInterval(function(){Ge()},$)}function te(ee){var de=u(),ke=de.body,Ge=de.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=ee,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),ke.appendChild(Ge)}Tt(function(){te(vn)})}webModule.__startLoadingFragment=function(vn){return C(vn)},webModule.__installRunAsyncCode=function(vn){var Tt=u(),te=Tt.body,ee=Tt.createElement(_);ee.language=ab,ee.text=vn,te.appendChild(ee),te.removeChild(ee)};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(vn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(vn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(vn){var Tt=c[vn];return Tt==null?null:Tt},r=d,webModule.__errFn=e}function B(){function vn(xe){var Me=xe.lastIndexOf(rb);Me==-1&&(Me=xe.length);var ue=xe.indexOf(sb);ue==-1&&(ue=xe.length);var Ee=xe.lastIndexOf(tb,Math.min(ue,Me));return Ee>=O?xe.substring(O,Ee+P):W}function Tt(xe){if(!xe.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=xe+vb,xe=vn(Me.src)}return xe}function te(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function ee(){for(var xe=o.getElementsByTagName(_),Me=O;Me<xe.length;++Me)if(xe[Me].src.indexOf(xb)!=-1)return vn(xe[Me].src);return W}function de(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ke(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Ge=te();return Ge==W&&(Ge=ee()),Ge==W&&(Ge=de()),Ge==W&&ke()&&(Ge=vn(o.location.href)),Ge=Tt(Ge),Ge}function C(vn){return vn.match(/^\//)||vn.match(/^[a-zA-Z]+:\/\//)?vn:webModule.__moduleBase+vn}function D(){var vn=[],Tt=O,te=[],ee=[];function de(xe){var Me=ee[xe](),ue=te[xe];if(Me in ue)return Me;var Ee=[];for(var fe in ue)Ee[ue[fe]]=fe;throw r&&r(xe,Ee,Me),null}if(__gwt_isKnownPropertyValue=function(xe,Me){return Me in te[xe]},webModule.__getPropMap=function(){var xe={};for(var Me in te)te.hasOwnProperty(Me)&&(xe[Me]=de(Me));return xe},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ke;try{ke=Cb;var Ge=ke.indexOf(Db);Ge!=-1&&(Tt=parseInt(ke.substring(Ge+P),$),ke=ke.substring(O,Ge))}catch(xe){}return webModule.__softPermutationId=Tt,C(ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(vn,Tt,te){"use strict";te.d(Tt,{Ax:function(){return Ge},Ds:function(){return xe},KI:function(){return ue},SI:function(){return ke},f1:function(){return de}});var ee=te(11320);function de(Ee){let fe=!0;if(Ee.length>0){for(let we=0;we<Ee.length;we++)if(Ee[we].compile_success==0||!Ee[we].compile_success){fe=!1;break}}else fe=!1;return fe}function ke(Ee,fe=""){let we=[];for(let Ue=0;Ue<Ee.length;Ue++){let De=Ee[Ue],Ke=fe?`${fe}/${De.name}`:`${De.name}`;we.push({title:De.name,type:De.type,isLeaf:De.type!=="tree",key:Ke})}return we}function Ge(Ee,fe,we){for(let Ue=0;Ue<Ee.length;Ue++){let De=Ee[Ue];if(De.key===fe){De.children=we;break}De.children&&Ge(De.children,fe,we)}return Ee}function xe(Ee,fe,we){let Ue;return function(){let De=this,Ke=arguments,rt=function(){Ue=null,we||Ee.apply(De,Ke)},Qe=we&&!Ue;clearTimeout(Ue),Ue=setTimeout(rt,fe),Qe&&Ee.apply(De,Ke)}}const Me=!0,ue=ee.Z.API_SERVER},60580:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return rt}});var ee=te(71577),de=te(67294),ke=Object.defineProperty,Ge=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,fe=(Qe,_e,ge)=>_e in Qe?ke(Qe,_e,{enumerable:!0,configurable:!0,writable:!0,value:ge}):Qe[_e]=ge,we=(Qe,_e)=>{for(var ge in _e||(_e={}))ue.call(_e,ge)&&fe(Qe,ge,_e[ge]);if(Me)for(var ge of Me(_e))Ee.call(_e,ge)&&fe(Qe,ge,_e[ge]);return Qe},Ue=(Qe,_e)=>Ge(Qe,xe(_e)),De=(Qe,_e)=>{var ge={};for(var Ve in Qe)ue.call(Qe,Ve)&&_e.indexOf(Ve)<0&&(ge[Ve]=Qe[Ve]);if(Qe!=null&&Me)for(var Ve of Me(Qe))_e.indexOf(Ve)<0&&Ee.call(Qe,Ve)&&(ge[Ve]=Qe[Ve]);return ge},Ke=(Qe,_e,ge)=>new Promise((Ve,lt)=>{var He=ye=>{try{ve(ge.next(ye))}catch(ze){lt(ze)}},Oe=ye=>{try{ve(ge.throw(ye))}catch(ze){lt(ze)}},ve=ye=>ye.done?Ve(ye.value):Promise.resolve(ye.value).then(He,Oe);ve((ge=ge.apply(Qe,_e)).next())});const rt=Qe=>{var _e=Qe,{children:ge}=_e,Ve=De(_e,["children"]);const[lt,He]=(0,de.useState)(!1);return de.createElement(ee.ZP,Ue(we({},Ve),{loading:lt,onClick:Oe=>Ke(void 0,null,function*(){try{He(!0),yield Ve.onClick(Oe),He(!1)}catch(ve){console.error(ve),He(!1)}})}),ge)}},63037:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ke}});var ee=te(67294),de=te(2453),ke=te(69677),Ge={codeBox:"codeBox___WpkVl"},xe=te(94184),Me=te.n(xe),ue=Object.defineProperty,Ee=(rt,Qe,_e)=>Qe in rt?ue(rt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):rt[Qe]=_e,fe=(rt,Qe,_e)=>Ee(rt,typeof Qe!="symbol"?Qe+"":Qe,_e),we=(rt,Qe,_e)=>new Promise((ge,Ve)=>{var lt=ve=>{try{Oe(_e.next(ve))}catch(ye){Ve(ye)}},He=ve=>{try{Oe(_e.throw(ve))}catch(ye){Ve(ye)}},Oe=ve=>ve.done?ge(ve.value):Promise.resolve(ve.value).then(lt,He);Oe((_e=_e.apply(rt,Qe)).next())});class Ue extends ee.Component{constructor(Qe){super(Qe),fe(this,"canvas"),fe(this,"randomNum",(_e,ge)=>Math.floor(Math.random()*(ge-_e)+_e)),fe(this,"drawPic",()=>{this.randomCode()}),fe(this,"reloadPic",()=>{this.drawPic()}),fe(this,"changeCode",_e=>{console.log(_e.target.value,222),this.setState({value:_e.target.value,showError:!1})}),fe(this,"onVerify",()=>{let _e;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(_e=!0,de.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(_e=!0,de.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(_e=!1),this.setState({showError:_e}),_e}),this.canvas=ee.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(Qe,_e){const ge=this.randomNum(Qe,_e),Ve=this.randomNum(Qe,_e),lt=this.randomNum(Qe,_e);return`rgb(${ge}, ${Ve}, ${lt})`}drawText(Qe,_e,ge){Qe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ve=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Qe.font=Ve+"px SimHei";const lt=10,He=(this.state.contentWidth-40)/(this.state.code.length-1);let Oe=lt;ge>0&&(Oe=lt+ge*He);let ve=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ve>40&&(ve=40);const ye=this.randomNum(-10,10);Qe.translate(Oe,ve),Qe.rotate(ye*Math.PI/180),Qe.fillText(_e,0,0),Qe.rotate(-ye*Math.PI/180),Qe.translate(-Oe,-ve)}drawLine(Qe){for(let _e=0;_e<1;_e++)Qe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Qe.beginPath(),Qe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Qe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Qe.stroke()}drawDot(Qe){for(let _e=0;_e<100;_e++)Qe.fillStyle=this.randomColor(0,255),Qe.beginPath(),Qe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Qe.fill()}randomCode(){let Qe="";const _e="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ge=0;ge<this.state.codeLength;ge++){const Ve=Math.floor(Math.random()*57);Qe+=_e[Ve]}this.setState({code:Qe},()=>{const Ve=this.canvas.current.getContext("2d");Ve.textBaseline="bottom",Ve.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ve.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let lt=0;lt<this.state.code.length;lt++)this.drawText(Ve,this.state.code[lt],lt);this.drawLine(Ve),this.drawDot(Ve)})}render(){const{className:Qe,width:_e=300}=this.props;return ee.createElement("div",{className:Me()(Ge.codeBox,Qe),style:{width:_e}},ee.createElement("aside",null,ee.createElement(ke.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),ee.createElement("div",null,ee.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),ee.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const De=(rt,Qe)=>{let _e;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Qe),React.createElement(Ue,{ref:ge=>_e=ge})),onOk:()=>we(void 0,null,function*(){if(_e.onVerify())return Promise.reject();rt()})})};var Ke=Ue},73646:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return fe}});var ee=te(67294),de=te(69677),ke=te(66309),Ge=te(2453),xe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Me=te(38308);const{TextArea:ue}=de.default;class Ee extends ee.Component{constructor(Ue){super(Ue),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ue,onAnswerChange:De,addChildAnswer:Ke,exerciseIsPublish:rt,answers:Qe,activeOptionErrorIndex:_e,flex:ge="0 0 1000px"}=this.props;console.log("----",Qe);let{inputVisible:Ve,EditInputIndex:lt}=this.state;return ee.createElement("div",{className:xe.flex},ee.createElement("div",{className:`${xe.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ue+1,"):"),ee.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Qe==null?void 0:Qe.map((He,Oe)=>ee.createElement(ee.Fragment,null,lt!==Oe?(He==null?void 0:He.length)>0?ee.createElement(ke.Z,{className:"edit-tag",key:He,closable:!(Ue===0&&Oe===0),onClose:ve=>{ve.preventDefault(),(Qe==null?void 0:Qe.length)===1&&Oe===0?this.props.deleteChildAnswermain(Ue,Oe):this.props.deleteChildAnswer(Ue,Oe)}},ee.createElement("span",{onDoubleClick:ve=>{this.setState({EditInputIndex:Oe}),ve.preventDefault()}},He)):ee.createElement(de.default,{defaultValue:He,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ve=>{if(ve.target.value.replaceAll(" ","").length<=0){Ge.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}De(Ue,Oe,ve.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):ee.createElement(de.default,{defaultValue:He,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:ve=>{if(ve.target.value.replaceAll(" ","").length<=0){Ge.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}De(Ue,Oe,ve.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Ve&&ee.createElement(ke.Z,{className:"site-tag-plus",onClick:()=>{Ke(Ue),this.setState({inputVisible:!0})}},ee.createElement(Me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var fe=Ee},20670:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Me}});var ee=te(55241),de={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ke=te(32637),Ge=te(67294),Me=({type:ue,style:Ee})=>{const fe=Ge.createElement("div",{className:de.wrap,onClick:we=>{we.preventDefault(),we.stopPropagation()}},Ge.createElement("p",null,ue==="shixun"||ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ge.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ge.createElement("div",{className:de.contact},Ge.createElement("div",{className:de.img},Ge.createElement("img",{src:ke,width:"124px",height:"124px"})),Ge.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ge.createElement(ee.Z,{content:fe},Ge.createElement("span",{className:de.text,style:Ee},"\u9AD8\u6D88\u8017"))}},63205:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ue}});var ee=te(67294),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ke=te(94184),Ge=te.n(ke),xe=te(57953),Me=te(15979),ue=te(33170),Ee=te(28706),fe=(De,Ke,rt)=>new Promise((Qe,_e)=>{var ge=He=>{try{lt(rt.next(He))}catch(Oe){_e(Oe)}},Ve=He=>{try{lt(rt.throw(He))}catch(Oe){_e(Oe)}},lt=He=>He.done?Qe(He.value):Promise.resolve(He.value).then(ge,Ve);lt((rt=rt.apply(De,Ke)).next())}),Ue=({data:De,className:Ke,fullWidth:rt,style:Qe={},onClose:_e,onOk:ge,showFullTools:Ve,noAssociationId:lt})=>{const He=(0,ee.useRef)(null),Oe=(0,ee.useRef)(null),ve=(0,ee.useRef)(null),ye=(0,ee.useRef)(null),[ze,We]=(0,ee.useState)(!1),[st,at]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{ve.current||(ve.current=document.createElement("style"),document.head.appendChild(ve.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),ve.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&Ze()):(document.body.removeAttribute("data-custom"),ve.current&&(document.head.removeChild(ve.current),ve.current=null))},[De==null?void 0:De.visible]);const Ze=()=>fe(void 0,null,function*(){We(!0),at("\u6B63\u5728\u52A0\u8F7D\u4E2D");const qe=yield(0,Ee.ZJ)(De==null?void 0:De.src);He.current.src="",He.current.src=qe,He.current.onload=function(){it()},We(!1),at("")}),Ae=()=>{document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",_e()},mt=qe=>fe(void 0,null,function*(){We(!0),at("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:qe.dataUrl}});gt!=null&&gt.id&&!lt?(yield(0,ue.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(qe.state)}})).status===0&&ge():gt!=null&&gt.id&&ge(gt),document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",We(!1),at("")}),je=()=>{const qe=document.querySelector('a[href="https://markerjs.com/"]');qe&&qe.parentNode&&(qe.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(Pt=>{const Xt=document.querySelector(Pt.name);Xt&&Xt.setAttribute("title",Pt.title)})},it=()=>{Oe.current=new Me.hP(He.current),Oe.current.targetRoot=ye.current,Oe.current.addEventListener("render",mt),Oe.current.addEventListener("beforeclose",Ae),Ve&&(Oe.current.availableMarkerTypes=Oe.current.ALL_MARKER_TYPES,Oe.current.uiStyleSettings.redoButtonVisible=!0,Oe.current.uiStyleSettings.notesButtonVisible=!0,Oe.current.uiStyleSettings.zoomButtonVisible=!0,Oe.current.uiStyleSettings.zoomOutButtonVisible=!0,Oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Oe.current.uiStyleSettings,Oe.current.show(),De!=null&&De.snapshotData&&Oe.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),je()},300)};return ee.createElement(ee.Fragment,null,(De==null?void 0:De.visible)&&ee.createElement(xe.Z,{spinning:ze,tip:st,style:{position:"absolute"}},ee.createElement("div",{ref:ye,className:Ge()(de.imageDimensions,Ke,rt?de.fullWidth:""),style:Qe},ee.createElement("img",{className:de.img,ref:He}))))}},35713:function(vn,Tt,te){"use strict";var ee=te(67294),de=te(71736),ke=te(84279),Ge=te(36527),xe=te(14446),Me=te(67294);const ue=(0,ee.forwardRef)(({callback:Ee,width:fe,onChange:we,disabled:Ue,readOnly:De,type:Ke="",value:rt="",style:Qe={}},_e)=>{const ge=(0,ee.useRef)(),Ve=(0,ee.useRef)(),[lt,He]=(0,ee.useState)(0),[Oe,ve]=(0,ee.useState)(0),[ye,ze]=(0,ee.useState)(!1),We=()=>{var Ae=document.createElement("div");Ae.innerHTML=ge.current.getValue();var mt=Ae.innerText;return Ee&&Ee(mt),mt};(0,ee.useImperativeHandle)(_e,()=>({getData:We}));const st=Ae=>{Ae.preventDefault();const mt=Ae.clientX-lt,je=Ae.clientY-Oe;document.body.onmousemove=it=>{let qe=it.clientX-mt,gt=it.clientY-je;const Pt=document.getElementsByClassName("markdown-popup-form")[0],Xt=window.innerWidth-Pt.offsetWidth,$e=window.innerHeight-Pt.offsetHeight;qe=Math.max(0,Math.min(qe,Xt)),gt=Math.max(0,Math.min(gt,$e)),at(it.clientX,it.clientY,mt,je)&&(He(qe),ve(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},at=(Ae,mt,je,it)=>{const qe=document.body.clientHeight,gt=document.body.clientWidth;return Ae<20&&je>Ae||Ae>gt-20&&je<Ae||mt<20&&it>mt||mt>qe-20&&it<mt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ee.useEffect)(()=>{ye&&setTimeout(()=>{const Ae=document.getElementsByClassName("markdown-popup-form")[0],mt=window.innerWidth/2-Ae.offsetWidth/2,je=window.innerHeight/2-Ae.offsetHeight/2;He(mt),ve(je)},0)},[ye]);const Ze=()=>{Ue||De||ze(!0)};return Me.createElement("div",{style:Qe},Me.createElement("div",{style:{width:fe||"100%",position:"relative"},className:`${de.Z.mathFillWrap} ${Ue||De?"cursorDefault":""}`,onClick:()=>Ze()},Me.createElement("math-field",{disabled:Ue,locale:"zh_cn",class:`${de.Z.mathField} ${Ke}`,readOnly:De,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:ge,style:{width:"100%",fontSize:rt?18:14},value:rt||""})),Me.createElement(xe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:lt,top:Oe},title:Me.createElement("div",{style:{cursor:"move"},onMouseDown:st},"\u8F93\u5165\u516C\u5F0F"),open:ye,onOk:()=>{const Ae=Ve.current.getData();ge.current.setValue(Ae),we(Ae),ze(!1)},onCancel:()=>{ze(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Me.createElement(Ge.Z,{value:rt,ref:Ve,onChange:we,showSaveButton:!1})))});Tt.Z=ue},36527:function(vn,Tt,te){"use strict";var ee=te(67294),de=te(71230),ke=te(15746),Ge=te(66368),xe=te(71577),Me=te(35598),ue=te(71736),Ee=te(84279),fe=te(67294);const we=(0,ee.forwardRef)(({callback:Ue,showSaveButton:De,value:Ke=""},rt)=>{const Qe=(0,ee.useRef)(),_e=[{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 "}]}]}],ge=[{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}`}]}]}],Ve=Oe=>{Qe.current.setValue(Qe.current.getValue()+" "+Oe.value+" ")},lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:fe.createElement(de.Z,{className:ue.Z.lists,gutter:[10,10]},_e.map((Oe,ve)=>fe.createElement(ke.Z,{flex:"110px",className:ue.Z.item},fe.createElement("div",null,fe.createElement(Me.Z,{value:`$$${Oe.value}$$`}),Oe.name),fe.createElement("div",{className:ue.Z.children},Oe.children.map((ye,ze)=>fe.createElement("div",{key:ze},fe.createElement("h1",null,ye.name),fe.createElement(de.Z,{gutter:[10,10]},ye.data.map((We,st)=>fe.createElement(ke.Z,{key:st,onClick:()=>Ve(We),className:ue.Z.diamond},fe.createElement(Me.Z,{value:"`$$"+We.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:fe.createElement(de.Z,{className:ue.Z.lists,gutter:[10,10]},ge.map((Oe,ve)=>fe.createElement(ke.Z,{flex:"110px",className:ue.Z.item},fe.createElement("div",null,fe.createElement(Me.Z,{value:"`$$"+Oe.value+"$$`"}),Oe.name),fe.createElement("div",{className:ue.Z.children},Oe.children.map((ye,ze)=>fe.createElement("div",{key:ze},ye.name&&fe.createElement("h1",null,ye.name),fe.createElement(de.Z,{gutter:[10,10]},ye.data.map((We,st)=>fe.createElement(ke.Z,{key:st,onClick:()=>Ve(We),className:ue.Z.diamond},fe.createElement(Me.Z,{value:"`$$"+We.value+"$$`"}))))))))))}],He=()=>{var Oe=document.createElement("div");Oe.innerHTML=Qe.current.getValue();var ve=Oe.innerText;return Ue&&Ue(ve),ve};return(0,ee.useImperativeHandle)(rt,()=>({getData:He})),fe.createElement("div",{className:ue.Z.mathWrap},fe.createElement(Ge.default,{defaultActiveKey:"1",items:lt}),fe.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Qe,style:{width:800,marginTop:30,fontSize:18}},Ke||""),De&&fe.createElement("div",{className:ue.Z.button},fe.createElement(xe.ZP,{size:"large",onClick:He,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=we},15312:function(vn,Tt,te){"use strict";te.d(Tt,{t:function(){return ce}});var ee=te(67294),de=te(69677),ke=te(22150),Ge=te(14446),xe=te(71230),Me=te(15746),ue=te(31795),Ee=te(11713),fe=te(78045),we=te(41307),Ue=te(35973),De=te(52654),Ke=te(2453),rt=te(71577),Qe=te(57953),_e=te(19575),ge={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"},Ve=te(33170),lt=te(88742),He=te(91304),Oe=te(74855),ve=te(96707),ye=te(67294),ze=Object.defineProperty,We=Object.defineProperties,st=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,mt=(me,pe,le)=>pe in me?ze(me,pe,{enumerable:!0,configurable:!0,writable:!0,value:le}):me[pe]=le,je=(me,pe)=>{for(var le in pe||(pe={}))Ze.call(pe,le)&&mt(me,le,pe[le]);if(at)for(var le of at(pe))Ae.call(pe,le)&&mt(me,le,pe[le]);return me},it=(me,pe)=>We(me,st(pe)),qe=(me,pe,le)=>new Promise((Le,dt)=>{var Nt=Yt=>{try{an(le.next(Yt))}catch(dn){dt(dn)}},tn=Yt=>{try{an(le.throw(Yt))}catch(dn){dt(dn)}},an=Yt=>Yt.done?Le(Yt.value):Promise.resolve(Yt.value).then(Nt,tn);an((le=le.apply(me,pe)).next())}),Pt=({buttonProps:me,buttonText:pe,form:le,hackIdentifier:Le="",answerKey:dt,data:Nt})=>{const[tn,an]=(0,ee.useState)(!1),[Yt,dn]=(0,ee.useState)(!1),[Mt,Wt]=(0,ee.useState)(!1),[qt,Gt]=(0,ee.useState)({}),[jt,sr]=(0,ee.useState)(""),[Dt,Jt]=(0,ee.useState)(""),Gn=(0,ee.useRef)(Le),Bn=(0,ee.useRef)(""),Sn=(0,ee.useRef)(!1);(0,ee.useEffect)(()=>{Mt&&Lr()},[Mt]),(0,ee.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const or=()=>new Date().getTime(),gr=Nt==null?void 0:Nt.code,kr=()=>{var Dn,cr;let vr=gr?Nt==null?void 0:Nt.code:(Dn=le.getFieldValue("hack_codes"))==null?void 0:Dn.code,Ur=gr?Nt==null?void 0:Nt.answer_content:le.getFieldValue(dt),ti=gr?Nt==null?void 0:Nt.input:(cr=le.getFieldValue("hack_sets"))==null?void 0:cr.input;Ur==null||Ur.forEach(Kt=>{const _n=Kt.value||Kt.answer_text||"";vr=vr.replace(/(@▁@|@▁▁@)/,_n)}),Jt(ti),sr(vr),Gt({}),Wt(!0)},Lr=()=>qe(void 0,null,function*(){var Dn,cr,vr,Ur;const ti=or(),Kt=gr?Nt==null?void 0:Nt.time_limit:(Dn=le.getFieldsValue())==null?void 0:Dn.hack.time_limit,_n=gr?(cr=Nt==null?void 0:Nt.answer_content)==null?void 0:cr.length:(Ur=(vr=le.getFieldsValue())==null?void 0:vr.standard_answers)==null?void 0:Ur.length;an(!0),yield(0,lt.bM)(Bn.current,{test_hack_code:jt,test_input:Dt});function nn(){return qe(this,null,function*(){const{status:In,data:nr}=yield(0,lt.rX)(Bn.current,"submit"),Pr=or()-ti>(Kt+3)*1e3*_n;if(Sn.current){if(Pr){Ke.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),an(!1);return}if(In===0){an(!1),Gt(it(je({},nr),{showText:!0}));return}setTimeout(nn,1e3)}})}nn()}),Qr=()=>qe(void 0,null,function*(){var Dn,cr,vr,Ur,ti,Kt,_n;if(!Nt){try{yield le.validateFields()}catch(Rr){(vr=(cr=(Dn=Rr==null?void 0:Rr.errorFields)==null?void 0:Dn[0])==null?void 0:cr.name)!=null&&vr.includes("standard_answers")?Ke.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ke.ZP.error(Rr.errorFields[0].errors[0]),le.scrollToField(Rr.errorFields[0].name,{behavior:"smooth",block:"center"});return}dn(!0);let In="";const nr=le.getFieldsValue();Gn.current?In=yield(0,Ve.ZP)(`/api/problems/${Gn.current}.json`,{method:"put",body:it(je({},nr),{hack:it(je({},nr==null?void 0:nr.hack),{sub_discipline_id:(_n=(Kt=nr==null?void 0:nr.hack)==null?void 0:Kt.sub_discipline_id)==null?void 0:_n[1],difficult:nr.difficulty,item_banks_group_id:nr.item_banks_group_id}),hack_codes:it(je({},nr.hack_codes),{code:_e.Base64.encode(nr.hack_codes.code)}),update_hack_sets:[je({},nr.hack_sets)],is_blank:!0})}):(In=yield(0,Ve.ZP)("/api/problems.json",{method:"post",body:it(je({},nr),{hack:it(je({},nr==null?void 0:nr.hack),{sub_discipline_id:(ti=(Ur=nr==null?void 0:nr.hack)==null?void 0:Ur.sub_discipline_id)==null?void 0:ti[1],difficult:nr.difficulty,item_banks_group_id:nr.item_banks_group_id}),hack_codes:it(je({},nr.hack_codes),{code:_e.Base64.encode(nr.hack_codes.code)}),hack_sets:[je({},nr.hack_sets)],is_blank:!0})}),Gn.current=In==null?void 0:In.identifier,sessionStorage.projectFill=In==null?void 0:In.identifier)}const nn=yield(0,Ve.ZP)(`/api/problems/${Gn.current}/start.json`,{method:"get"});if((nn==null?void 0:nn.status)===0){Bn.current=nn==null?void 0:nn.identifier,Sn.current=!0,dn(!1),kr();return}dn(!1)}),Ir=Dn=>{const{status:cr,error_msg:vr,execute_time:Ur,output:ti,input:Kt,expected_output:_n}=Dn;let nn=null;switch(cr){case ve.h.OK:nn=ye.createElement(ye.Fragment,null,ye.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ur/1e3,"\u79D2"),ye.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ve.h.NOMATCH:nn=ye.createElement(ye.Fragment,null,ye.createElement("div",null,"\u8F93\u5165\uFF1A"),ye.createElement("pre",{style:{fontFamily:"initial"}},Kt),ye.createElement("div",null,"\u8F93\u51FA\uFF1A"),ye.createElement("pre",{style:{fontFamily:"initial"}},ti&&_e.Base64.decode(ti)),ye.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ye.createElement("pre",{style:{fontFamily:"initial"}},_n&&_e.Base64.decode(_n)));break;case ve.h.EXECUTEFAILURE:nn=ye.createElement(ye.Fragment,null,ye.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ye.createElement("pre",null,Kt)),ye.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ye.createElement("pre",{className:"error"},_e.Base64.decode(vr)));break;case ve.h.COMPILEFAILURE:nn=ye.createElement(ye.Fragment,null,ye.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ye.createElement("pre",null,Kt)),ye.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ye.createElement("pre",{className:"error"},_e.Base64.decode(vr)));break;case ve.h.PODFAILURE:nn=ye.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ve.h.TIMEOUT:nn=ye.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ye.createElement(ye.Fragment,null," ",nn," ")};return ye.createElement("div",null,ye.createElement(rt.ZP,it(je({loading:Yt},me),{onClick:Qr}),pe),ye.createElement(Ge.default,{open:Mt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:tn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Lr(),onCancel:()=>{Sn.current=!1,Wt(!1)}},ye.createElement("div",{className:ge.result},ye.createElement("div",{className:ge.left},ye.createElement("div",{className:"mb20"},ye.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Nt&&ye.createElement(Oe.CopyToClipboard,{text:jt,onCopy:()=>Ke.ZP.success("\u590D\u5236\u6210\u529F")},ye.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ye.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ye.createElement(He.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:jt,onChange:Dn=>sr(Dn)})),ye.createElement("div",{className:ge.right},ye.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ye.createElement("div",{className:ge.box},ye.createElement("div",{className:ge.li},ye.createElement(de.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Dt,onChange:Dn=>Jt(Dn.target.value),bordered:!1,style:{height:180}}))),ye.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ye.createElement("div",{className:ge.box},ye.createElement(Qe.Z,{spinning:tn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ye.createElement("div",{className:ge.li,style:{height:196,overflow:"auto",padding:10}},Ir(qt))))))))},Xt=te(55304),$e=te(67294),Be=Object.defineProperty,St=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,_t=(me,pe,le)=>pe in me?Be(me,pe,{enumerable:!0,configurable:!0,writable:!0,value:le}):me[pe]=le,Fn=(me,pe)=>{for(var le in pe||(pe={}))ht.call(pe,le)&&_t(me,le,pe[le]);if(Rt)for(var le of Rt(pe))Bt.call(pe,le)&&_t(me,le,pe[le]);return me},kn=(me,pe)=>St(me,Vt(pe)),kt=(me,pe)=>{var le={};for(var Le in me)ht.call(me,Le)&&pe.indexOf(Le)<0&&(le[Le]=me[Le]);if(me!=null&&Rt)for(var Le of Rt(me))pe.indexOf(Le)<0&&Bt.call(me,Le)&&(le[Le]=me[Le]);return le};const{TextArea:un}=de.default,Wn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],An=({value:me,onChange:pe})=>$e.createElement(Switch,{checked:me,onChange:le=>{pe(le)}}),Ie="@\u2581@",he="@\u2581\u2581@",ce=({questionTitlePlaceholder:me,form:pe,scoreByBlank:le=!1,hackidentifier:Le,answerKey:dt})=>{const[Nt,tn]=(0,ee.useState)(!1),[an,Yt]=(0,ee.useState)(!1),Mt=(0,Ue.useParams)().type==="edit",Wt=(Bn,Sn)=>{const or=Sn.line;let gr=0;for(let Lr=0;Lr<or;Lr++)gr+=Bn.getLine(Lr).split(Ie).length-1;for(let Lr=0;Lr<or;Lr++)gr+=Bn.getLine(Lr).split(he).length-1;const kr=Bn.getLine(or).substring(0,Sn.ch);return gr+=kr.split(Ie).length-1,gr+=kr.split(he).length-1,gr},qt=(Bn,Sn,or,gr)=>{const kr=Bn.getRange(Sn.from,Sn.to);let Lr=0;if(Sn.text.forEach(Qr=>{Lr+=Qr.split(Ie).length-1}),Sn.text.forEach(Qr=>{Lr+=Qr.split(he).length-1}),Sn.origin!=="setValue"){if(kr&&(kr.indexOf(Ie)!==-1||kr.indexOf(he)!==-1)){const Qr=kr.split(Ie).length-1+kr.split(he).length-1,Ir=Wt(Bn,Sn.from);if(console.log(`\u5220\u9664${Qr}\u4E2A\uFF0C \u524D\u9762\u6709${Ir}\u4E2A\uFF0C\u65B0\u589E${Lr}\u4E2A`),Qr>1){const Dn=Array.from({length:Qr},(cr,vr)=>Ir+vr);gr(Dn)}else gr(Ir)}else if(Lr>0){const Qr=Wt(Bn,Sn.from);console.log(`\u65B0\u589E${Lr}\u4E2A\uFF0C\u4E4B\u524D\u6709${Qr}\u4E2A`),or(Lr,Qr)}}},Gt=()=>{const Bn=pe.getFieldValue(dt);pe.setFieldsValue({[dt]:Bn==null?void 0:Bn.map((Sn,or)=>kn(Fn({},Sn),{position:or+1}))})},jt=(0,ee.useRef)(),sr=(Bn,Sn)=>{for(let or=0;or<Bn;or++)jt.current({position:null,answer_text:""},Sn+or);Gt()},Dt=(0,ee.useRef)(),Jt=Bn=>{Dt.current(Bn),Gt()},Gn=ke.default.useWatch(dt,pe);return $e.createElement("div",{className:De.Z.wrap},$e.createElement(ke.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},$e.createElement(we.h,{scrollId:"name",watch:!0,height:140})),$e.createElement("div",{className:De.Z.questionTitleEditorWrap},$e.createElement(ke.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},$e.createElement(we.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Bn,Sn)=>{const or=pe.getFieldValue(dt);console.log("--preAnswerData",or,Sn),pe.setFieldsValue({[dt]:or==null?void 0:or.map((gr,kr)=>{var Lr;return kn(Fn({},gr),{position:kr+1,multi_line:(Lr=Sn==null?void 0:Sn[kr])==null?void 0:Lr.multiLine})})})},placeholder:me,onCMBeforeChange:(Bn,Sn)=>{qt(Bn,Sn,sr,Jt)}}))),$e.createElement(ke.default.List,{name:dt,rules:[{validator(Bn,Sn){if(!(Sn!=null&&Sn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const or of Sn){const{answer_text:gr}=or||{};if((gr==null?void 0:gr.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Bn,{add:Sn,remove:or},{errors:gr})=>(jt.current=Sn,Dt.current=or,$e.createElement($e.Fragment,null,$e.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},$e.createElement(ke.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),$e.createElement("div",{onClick:()=>{Ge.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:$e.createElement("div",null,$e.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",$e.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),$e.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},$e.createElement(Xt.Z,{style:{marginRight:3,color:"#3061D0"}}),$e.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Bn.map((kr,Lr)=>{var Qr=kr,{key:Ir,name:Dn}=Qr,cr=kt(Qr,["key","name"]),vr,Ur;return $e.createElement(xe.Z,{className:"mb20",key:Ir,align:"middle",wrap:!1},$e.createElement(Me.Z,{flex:"0 0 auto",className:`${De.Z.blankIndex}`},"\u586B\u7A7A\u9879",Lr+1),$e.createElement(Me.Z,{flex:1},$e.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},$e.createElement(Me.Z,null,$e.createElement(ke.default.Item,kn(Fn({},cr),{name:[Dn,"answer_text"],noStyle:!0}),(vr=Gn==null?void 0:Gn[Dn])!=null&&vr.multi_line||(Ur=Gn==null?void 0:Gn[Dn])!=null&&Ur.multiLine?$e.createElement(un,{spellCheck:!1,style:{marginLeft:10,width:550}}):$e.createElement(de.default,{style:{marginLeft:10,width:550},className:De.Z.blankInput,size:"large",maxLength:1e3,onBlur:ti=>{}}))),le&&$e.createElement(Me.Z,{flex:"224px"},$e.createElement(ke.default.Item,kn(Fn({},cr),{name:[Dn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),$e.createElement(ue.Z,{size:"large",className:De.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),$e.createElement("div",{onClick:()=>tn(!0)},$e.createElement(ke.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},$e.createElement(we.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nt}))),$e.createElement(ke.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},$e.createElement(Ee.default,{size:"large"},Wn.map(Bn=>$e.createElement(Ee.default.Option,{key:Bn.title,value:Bn.key}," ",Bn.title)))),$e.createElement(ke.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},$e.createElement(ke.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},$e.createElement(ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),$e.createElement("span",{className:"ml10 font14"},"\u79D2")),$e.createElement(ke.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},$e.createElement(fe.ZP.Group,{style:{marginTop:-10}},$e.createElement(fe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),$e.createElement(fe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),$e.createElement(fe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),$e.createElement(ke.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),$e.createElement("div",{style:{background:"#F6F7F9",padding:15}},$e.createElement(ke.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},$e.createElement(un,{rows:4})),$e.createElement(ke.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},$e.createElement(un,{rows:4}))),$e.createElement(Pt,{form:pe,answerKey:dt,hackIdentifier:Le,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:$e.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},11776:function(vn,Tt,te){"use strict";te.d(Tt,{u:function(){return ye}});var ee=te(67294),de=te(71230),ke=te(15746),Ge=te(83062),xe=te(22150),Me=te(52654),ue=te(40043),Ee=te(24018),fe=te(41307),we=te(67294),Ue=Object.defineProperty,De=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ge=(ze,We,st)=>We in ze?Ue(ze,We,{enumerable:!0,configurable:!0,writable:!0,value:st}):ze[We]=st,Ve=(ze,We)=>{for(var st in We||(We={}))Qe.call(We,st)&&ge(ze,st,We[st]);if(rt)for(var st of rt(We))_e.call(We,st)&&ge(ze,st,We[st]);return ze},lt=(ze,We)=>De(ze,Ke(We)),He=(ze,We)=>{var st={};for(var at in ze)Qe.call(ze,at)&&We.indexOf(at)<0&&(st[at]=ze[at]);if(ze!=null&&rt)for(var at of rt(ze))We.indexOf(at)<0&&_e.call(ze,at)&&(st[at]=ze[at]);return st};const Oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ve=({value:ze,onChange:We,choiceTextKey:st,answerKey:at,index:Ze,isEdit:Ae,setInputActive:mt,form:je,choiceOptionsPath:it,allowChangeMode:qe,showAddIcon:gt,addItem:Pt,deleteItem:Xt})=>{console.log(ze,"value");const $e=(ze==null?void 0:ze[at])===1,Be=()=>{const Vt=je.getFieldValue(it);je.setFieldValue(it,Vt.map(Rt=>lt(Ve({},Rt),{[at]:0})))},St=()=>{$e?We(lt(Ve({},ze),{[at]:0})):(qe||Be(),We(lt(Ve({},ze),{[at]:1})))};return we.createElement(de.Z,{className:Me.Z.choiceWrap,align:"middle",wrap:!1},we.createElement(ke.Z,{onClick:St,className:`${Me.Z.choiceIndex} ${$e?Me.Z.activeAnswer:""}`},Oe[Ze]),we.createElement(ke.Z,{flex:1,className:`${Me.Z.editorWrap} ml15`,onClick:mt},we.createElement(fe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Ae,value:ze==null?void 0:ze[st],onChange:Vt=>{We(lt(Ve({},ze),{[st]:Vt}))}})),we.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},we.createElement("div",{onClick:St,className:`${Me.Z.setAnswerBtn} ${$e?Me.Z.activeAnswer:""}`},$e?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),we.createElement(ke.Z,{className:Me.Z.actionWrapper},we.createElement(Ge.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},we.createElement(ue.Z,{className:Me.Z.addIcon,onClick:Pt,style:{visibility:gt?"visible":"hidden"}})),we.createElement(Ge.Z,{title:"\u5220\u9664"},we.createElement(Ee.Z,{className:Me.Z.deleteIcon,onClick:Xt,style:{visibility:Ze>1?"visible":"hidden"}}))))},ye=({questionTitlePlaceholder:ze,titleKey:We,choiceKey:st,analysisKey:at,choiceTextKey:Ze,answerKey:Ae,choiceOptionsPath:mt,allowChangeMode:je=!0,form:it,showAnalysis:qe=!0})=>{const[gt,Pt]=(0,ee.useState)(),[Xt,$e]=(0,ee.useState)(!1);return we.createElement("div",{className:Me.Z.wrap},we.createElement("div",{className:Me.Z.questionTitleEditorWrap},we.createElement(xe.default.Item,{label:"\u9898\u5E72",name:We,labelCol:{span:24},rules:[{required:!0}]},we.createElement(fe.h,{scrollId:Array.isArray(We)?We.join("_"):`${We}`,watch:!0,height:140,placeholder:ze}))),we.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),we.createElement(xe.default.List,{name:st,rules:[{validator(Be,St){const Vt=St.some(ht=>ht[Ae]===1),Rt=St.findIndex(ht=>{var Bt;return((Bt=ht[Ze])==null?void 0:Bt.length)<=0});return Rt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Oe[Rt]}\u9009\u9879\u7684\u5185\u5BB9`)):Vt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Be,{add:St,remove:Vt})=>we.createElement("div",{id:Array.isArray(mt)?mt.join("_"):`${mt}`},Be.map((Rt,ht)=>{var Bt=Rt,{key:_t,name:Fn}=Bt,kn=He(Bt,["key","name"]);const kt=gt===_t,un=()=>{Pt(_t)},Wn=ht<7&&ht===Be.length-1,An=()=>St({[Ze]:"",[Ae]:0}),Ie=()=>Vt(Fn);return we.createElement(xe.default.Item,lt(Ve({},kn),{key:_t,name:Fn,className:Me.Z.choiceListWrap,rules:[{validator(he,ce){return ce!=null&&ce.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Oe[ht]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),we.createElement(ve,{choiceTextKey:Ze,answerKey:Ae,index:ht,isEdit:kt,setInputActive:un,form:it,choiceOptionsPath:mt,allowChangeMode:je,showAddIcon:Wn,addItem:An,deleteItem:Ie}))}),Be.length<8&&we.createElement("div",{className:`${Me.Z.addBtn} mb30`,onClick:()=>St({[Ze]:"",[Ae]:0})},"\u6DFB\u52A0\u9009\u9879"))),qe&&we.createElement("div",{onClick:()=>$e(!0)},we.createElement(xe.default.Item,{name:at,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},we.createElement(fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Xt}))))}},81580:function(vn,Tt,te){"use strict";te.d(Tt,{u:function(){return it}});var ee=te(67294),de=te(14446),ke=te(71230),Ge=te(15746),xe=te(69677),Me=te(83062),ue=te(47897),Ee=te(22150),fe=te(78045),we=te(31795),Ue=te(71577),De=te(41307),Ke=te(24018),rt=te(40043),Qe=te(17663),_e=te(52654),ge=te(35713),Ve=te(67294),lt=Object.defineProperty,He=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,We=(qe,gt,Pt)=>gt in qe?lt(qe,gt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):qe[gt]=Pt,st=(qe,gt)=>{for(var Pt in gt||(gt={}))ye.call(gt,Pt)&&We(qe,Pt,gt[Pt]);if(ve)for(var Pt of ve(gt))ze.call(gt,Pt)&&We(qe,Pt,gt[Pt]);return qe},at=(qe,gt)=>He(qe,Oe(gt)),Ze=(qe,gt)=>{var Pt={};for(var Xt in qe)ye.call(qe,Xt)&&gt.indexOf(Xt)<0&&(Pt[Xt]=qe[Xt]);if(qe!=null&&ve)for(var Xt of ve(qe))gt.indexOf(Xt)<0&&ze.call(qe,Xt)&&(Pt[Xt]=qe[Xt]);return Pt};const Ae=({value:qe,onChange:gt,position:Pt,removeBlank:Xt})=>{const $e=St=>{de.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:_e.Z.modal,onOk:()=>{const Vt=[...qe];Vt.splice(St,1),Vt.length===0?Xt(Pt-1):gt(Vt)}})},Be=()=>{const St=[...qe];St.push(""),gt(St)};return Ve.createElement(ke.Z,{className:"ml20"},Ve.createElement(Ge.Z,{flex:1},qe==null?void 0:qe.map((St,Vt)=>Ve.createElement(ke.Z,{key:`${St}_${Vt}`,className:"mb20"},Ve.createElement(xe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:St,autoSize:{maxRows:3},maxLength:1e3,onBlur:Rt=>{const ht=[...qe],Bt=Rt.target.value.trim();ht[Vt]=Bt,gt(ht)}}),Ve.createElement(Me.Z,{title:"\u5220\u9664"},Ve.createElement(Ke.Z,{className:_e.Z.deleteIcon,style:{marginLeft:15,visibility:Pt===1&&Vt===0?"hidden":"visible"},onClick:()=>$e(Vt)})),Ve.createElement(Me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ve.createElement(rt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Vt===0?"visible":"hidden"},onClick:()=>{Be()}}))))))},mt=({value:qe,onChange:gt,position:Pt,removeBlank:Xt})=>{const $e=St=>{de.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:_e.Z.modal,onOk:()=>{const Vt=[...qe];Vt.splice(St,1),Vt.length===0?Xt(Pt-1):gt(Vt)}})},Be=()=>{const St=[...qe];St.push(""),gt(St)};return Ve.createElement(ke.Z,{className:"ml20"},Ve.createElement(Ge.Z,{flex:1},qe==null?void 0:qe.map((St,Vt)=>Ve.createElement(ke.Z,{key:`${St}_${Vt}`,align:"middle",className:"mb20"},Ve.createElement(ge.Z,{value:St,style:{flex:1},onChange:Rt=>{const ht=[...qe];ht[Vt]=Rt,gt(ht)}}),Ve.createElement(Me.Z,{title:"\u5220\u9664"},Ve.createElement(Ke.Z,{className:_e.Z.deleteIcon,style:{marginLeft:15,visibility:Pt===1&&Vt===0?"hidden":"visible"},onClick:()=>$e(Vt)})),Ve.createElement(Me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ve.createElement(rt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Vt===0?"visible":"hidden"},onClick:()=>{Be()}}))))))},je=({value:qe=!0,onChange:gt})=>Ve.createElement(ue.Z,{checked:!qe,onChange:Pt=>{gt(!Pt)}}),it=({questionTitlePlaceholder:qe,form:gt,scoreByBlank:Pt=!1,answerKey:Xt})=>{const[$e,Be]=(0,ee.useState)(!1),St=()=>{const Fn=gt.getFieldValue(Xt);gt.setFieldsValue({[Xt]:Fn.map((kn,kt)=>at(st({},kn),{position:kt+1}))})},Vt=(0,ee.useRef)(),Rt=(Fn,kn)=>{for(let kt=0;kt<Fn;kt++)Vt.current({position:null,answer_text:[""],model:1},kn+kt);St()},ht=(0,ee.useRef)(),Bt=Fn=>{ht.current(Fn),St()},_t=Ee.default.useWatch(Xt,gt);return Ve.createElement("div",{className:_e.Z.wrap},Ve.createElement("div",{className:_e.Z.questionTitleEditorWrap},Ve.createElement(Ee.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ve.createElement(De.h,{scrollId:"name",watch:!0,height:140,placeholder:qe,showNullButton:!0,onAddBlank:()=>{const Fn=gt.getFieldValue(Xt);Rt(1,Fn==null?void 0:Fn.length)}}))),Ve.createElement(Ee.default.List,{name:Xt,rules:[{validator(Fn,kn){if(!(kn!=null&&kn.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const kt of kn){const{answer_text:un}=kt||{};if(un!=null&&un.some(Wn=>(Wn==null?void 0:Wn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Fn,{add:kn,remove:kt},{errors:un})=>(Vt.current=kn,ht.current=kt,Ve.createElement(Ve.Fragment,null,Ve.createElement(Ee.default.Item,{label:Ve.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Fn.map((Wn,An)=>{var Ie=Wn,{key:he,name:ce}=Ie,me=Ze(Ie,["key","name"]),pe,le;return Ve.createElement("div",{style:{marginBottom:10},key:he},Ve.createElement(ke.Z,{className:"mb20",align:"middle",wrap:!1},Ve.createElement(Ge.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${_e.Z.blankIndex}`},"\u586B\u7A7A\u9879",An+1),Ve.createElement(Ee.default.Item,at(st({},me),{name:[ce,"model"],noStyle:!0}),Ve.createElement(fe.ZP.Group,{onChange:()=>{const Le=gt.getFieldValue(Xt);gt.setFieldsValue({[Xt]:Le.map((dt,Nt)=>at(st({},dt),{answer_text:ce===Nt?[""]:dt.answer_text}))})}},Ve.createElement(fe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Ve.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Ve.createElement(Qe.Z,null))),Ve.createElement(fe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Ve.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Ve.createElement(Qe.Z,null)))))),Ve.createElement(ke.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Ve.createElement(Ge.Z,{flex:1},Ve.createElement(ke.Z,{align:"top",justify:"space-between",wrap:!1},Ve.createElement(Ge.Z,{flex:1},Ve.createElement(Ee.default.Item,at(st({},me),{name:[ce,"answer_text"],noStyle:!0}),((le=(pe=gt.getFieldValue(Xt))==null?void 0:pe[ce])==null?void 0:le.model)===1?Ve.createElement(Ae,{removeBlank:Bt,position:An+1}):Ve.createElement(mt,{removeBlank:Bt,position:An+1}))),Pt&&Ve.createElement(Ge.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Ve.createElement(Ee.default.Item,at(st({},me),{name:[ce,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:_e.Z.blankInputNumberWrapper}),Ve.createElement(we.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Ve.createElement(Ee.default.Item,at(st({},me),{name:[ce,"position"],noStyle:!0}),Ve.createElement(xe.default,{type:"hidden"})))))})))),Ve.createElement(Ue.ZP,{className:"mb20",onClick:()=>Rt(1,_t==null?void 0:_t.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ve.createElement(ke.Z,{align:"middle"},Ve.createElement(Ee.default.Item,{name:"downcase",valuePropName:"checked"},Ve.createElement(ue.Z,null)),Ve.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ve.createElement(ke.Z,{align:"middle"},Ve.createElement(Ee.default.Item,{name:"no_space",valuePropName:"checked"},Ve.createElement(ue.Z,null)),Ve.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(_t==null?void 0:_t.length)>1&&Ve.createElement(ke.Z,{align:"middle",className:(_t==null?void 0:_t.length)>1?"mb30":`${_e.Z.hide}`},Ve.createElement(Ee.default.Item,{name:"is_ordered"},Ve.createElement(je,null)),Ve.createElement(Ge.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")),Ve.createElement("div",{onClick:()=>Be(!0)},Ve.createElement(Ee.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ve.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$e}))))}},66495:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return He}});var ee=te(67294),de=te(71230),ke=te(15746),Ge=te(22150),xe=te(52654),Me=te(41307),ue=te(67294),Ee=Object.defineProperty,fe=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,rt=(Oe,ve,ye)=>ve in Oe?Ee(Oe,ve,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Oe[ve]=ye,Qe=(Oe,ve)=>{for(var ye in ve||(ve={}))De.call(ve,ye)&&rt(Oe,ye,ve[ye]);if(Ue)for(var ye of Ue(ve))Ke.call(ve,ye)&&rt(Oe,ye,ve[ye]);return Oe},_e=(Oe,ve)=>fe(Oe,we(ve)),ge=(Oe,ve)=>{var ye={};for(var ze in Oe)De.call(Oe,ze)&&ve.indexOf(ze)<0&&(ye[ze]=Oe[ze]);if(Oe!=null&&Ue)for(var ze of Ue(Oe))ve.indexOf(ze)<0&&Ke.call(Oe,ze)&&(ye[ze]=Oe[ze]);return ye};const Ve={\u6B63\u786E:"T",\u9519\u8BEF:"F"},lt=({value:Oe,onChange:ve,form:ye})=>{const ze=(Oe==null?void 0:Oe.is_answer)===1,We=Oe==null?void 0:Oe.choice_text,st=()=>{const at=ye.getFieldsValue().choices.map(Ze=>({choice_text:Ze.choice_text,is_answer:0}));ye.setFieldsValue({choices:at}),ve(_e(Qe({},Oe),{is_answer:1}))};return ue.createElement(de.Z,{className:xe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ue.createElement(ke.Z,{onClick:st,className:`${xe.Z.choiceIndex} ${xe.Z.judgementIndex} ${ze?xe.Z.activeAnswer:""}`},Ve[We]),ue.createElement(ke.Z,{flex:1,className:`${xe.Z.editorWrap} ml15`},ue.createElement("div",{className:`${xe.Z.inputBorder} ${xe.Z.placeholder} ${ze?xe.Z.activeJudgementAnswer:""}`},We)),ue.createElement(ke.Z,{flex:"0 0 auto",className:"ml15"},ue.createElement("div",{onClick:st,className:`${xe.Z.setAnswerBtn} ${ze?xe.Z.activeAnswer:""}`},ze?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},He=({questionTitlePlaceholder:Oe,choiceKey:ve,form:ye})=>{const[ze,We]=(0,ee.useState)(!1);return ue.createElement("div",{className:xe.Z.wrap},ue.createElement("div",{className:xe.Z.questionTitleEditorWrap},ue.createElement(Ge.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ue.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:Oe}))),ue.createElement(Ge.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ue.createElement(Ge.default.List,{name:"choices",rules:[{validator(st,at){return at.some(Ae=>(Ae==null?void 0:Ae.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},st=>ue.createElement("div",{id:"choices"},st.map(at=>{var Ze=at,{key:Ae,name:mt}=Ze,je=ge(Ze,["key","name"]);return ue.createElement(Ge.default.Item,_e(Qe({},je),{key:Ae,name:mt,noStyle:!0}),ue.createElement(lt,{form:ye}))})))),ue.createElement("div",{onClick:()=>We(!0)},ue.createElement(Ge.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ue.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ze}))))}},41307:function(vn,Tt,te){"use strict";te.d(Tt,{h:function(){return Qe},x:function(){return _e}});var ee=te(91304),de=te(52654),ke=te(35598),Ge=te(67294),xe=Object.defineProperty,Me=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ue=(ge,Ve,lt)=>Ve in ge?xe(ge,Ve,{enumerable:!0,configurable:!0,writable:!0,value:lt}):ge[Ve]=lt,De=(ge,Ve)=>{for(var lt in Ve||(Ve={}))fe.call(Ve,lt)&&Ue(ge,lt,Ve[lt]);if(Ee)for(var lt of Ee(Ve))we.call(Ve,lt)&&Ue(ge,lt,Ve[lt]);return ge},Ke=(ge,Ve)=>Me(ge,ue(Ve)),rt=(ge,Ve)=>{var lt={};for(var He in ge)fe.call(ge,He)&&Ve.indexOf(He)<0&&(lt[He]=ge[He]);if(ge!=null&&Ee)for(var He of Ee(ge))Ve.indexOf(He)<0&&we.call(ge,He)&&(lt[He]=ge[He]);return lt};const Qe=ge=>{var Ve=ge,{value:lt,onChange:He,scrollId:Oe}=Ve,ve=rt(Ve,["value","onChange","scrollId"]);return Ge.createElement("div",{id:Oe||""},Ge.createElement(ee.Z,Ke(De({},ve),{defaultValue:lt,onChange:(ye,ze)=>{ze!=null&&ze.length?He(ye,ze):He(ye)}})))},_e=({value:ge,onChange:Ve,placeholder:lt,height:He=140,isEdit:Oe,miniToolbar:ve,watch:ye=!0})=>Oe?Ge.createElement(ee.Z,{watch:ye,isFocus:!0,height:He||void 0,placeholder:lt,defaultValue:ge,onChange:Ve,miniToolbar:ve}):Ge.createElement("div",{style:{cursor:"pointer"}},ge?Ge.createElement(ke.Z,{className:de.Z.inputBorder,value:ge}):Ge.createElement("div",{className:`${de.Z.inputBorder} ${de.Z.placeholder} inputBorderError`},lt))},77792:function(vn,Tt,te){"use strict";te.d(Tt,{W:function(){return Ze}});var ee=te(67294),de=te(2453),ke=te(66309),Ge=te(22150),xe=te(47897),Me=te(71230),ue=te(15746),Ee=te(83062),fe=te(69677),we=te(31795),Ue=te(52654),De=te(41307),Ke=te(91304),rt=te(17663),Qe=Object.defineProperty,_e=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Oe=(Ae,mt,je)=>mt in Ae?Qe(Ae,mt,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ae[mt]=je,ve=(Ae,mt)=>{for(var je in mt||(mt={}))lt.call(mt,je)&&Oe(Ae,je,mt[je]);if(Ve)for(var je of Ve(mt))He.call(mt,je)&&Oe(Ae,je,mt[je]);return Ae},ye=(Ae,mt)=>_e(Ae,ge(mt)),ze=(Ae,mt)=>{var je={};for(var it in Ae)lt.call(Ae,it)&&mt.indexOf(it)<0&&(je[it]=Ae[it]);if(Ae!=null&&Ve)for(var it of Ve(Ae))mt.indexOf(it)<0&&He.call(Ae,it)&&(je[it]=Ae[it]);return je};const We=Ae=>{var mt=Ae,{value:je,onChange:it}=mt,qe=ze(mt,["value","onChange"]);const gt=Pt=>{it([Pt])};return ee.createElement(Ke.Z,ye(ve({},qe),{defaultValue:je==null?void 0:je[0],onChange:gt}))},st=Ae=>{if(!Ae)return!1;if(/^s*$/.test(Ae)||Ae.trim()===""){de.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let mt=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 Ae==="|"?(de.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},at=({value:Ae=[],onClose:mt})=>ee.createElement(ke.Z,{closable:!0,onClose:mt,className:Ue.Z.keywordTag},ee.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Ae.join(" \u6216 "))),Ze=({questionTitlePlaceholder:Ae,form:mt,showKeywords:je,isMustKeyWords:it=je})=>{const[qe,gt]=(0,ee.useState)(!1),[Pt,Xt]=(0,ee.useState)(""),$e=Ge.default.useWatch("use_keywords",mt),Be=Ge.default.useWatch("question_score",mt);return ee.createElement("div",{className:Ue.Z.wrap},ee.createElement("div",{className:Ue.Z.questionTitleEditorWrap},ee.createElement(Ge.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ee.createElement(De.h,{scrollId:"name",watch:!0,height:140,placeholder:Ae}))),ee.createElement(Ge.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},ee.createElement(We,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),je&&!it&&ee.createElement(Ge.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},ee.createElement(xe.Z,{defaultChecked:!0})),je&&it&&ee.createElement(Me.Z,{align:"middle",className:"mb30"},ee.createElement(Ge.default.Item,{name:"use_keywords",valuePropName:"checked"},ee.createElement(xe.Z,null)),ee.createElement(ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ee.createElement(ue.Z,null,ee.createElement(Ee.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"},ee.createElement(rt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),($e||!it)&&ee.createElement(Ge.default.List,{name:"keywords",rules:[{validator(St,Vt){return it?Vt!=null&&Vt.length?(Vt==null?void 0:Vt.reduce((ht,Bt)=>ht+Bt.score,0))>parseFloat(Be)?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()}}]},(St,{add:Vt,remove:Rt})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:`${Ue.Z.title} mb10`},it?"\u5173\u952E\u8BCD":ee.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ee.createElement(Me.Z,{align:"middle",className:"font14 mb30"},ee.createElement(ue.Z,{flex:1},ee.createElement(fe.default,{value:Pt,onChange:ht=>{Xt(ht.target.value)},maxLength:50,allowClear:!0,onPressEnter:ht=>{var Bt,_t,Fn,kn;const kt=`${(Bt=ht.target)==null?void 0:Bt.value}`,un=(Fn=(_t=kt==null?void 0:kt.split("|"))==null?void 0:_t.filter(Ie=>!!Ie))==null?void 0:Fn.map(Ie=>Ie==null?void 0:Ie.trim()),Wn=mt.getFieldValue("keywords"),An=((kn=Wn==null?void 0:Wn.map(Ie=>Ie==null?void 0:Ie.keyword))==null?void 0:kn.flat())||[];for(const Ie of un)if(An.includes(Ie)){de.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}st(kt)&&(Vt({keyword:un,score:1}),Xt(""))},className:Ue.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"})),ee.createElement(ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),St.map(ht=>{var Bt=ht,{key:_t,name:Fn}=Bt,kn=ze(Bt,["key","name"]);return ee.createElement(Me.Z,{key:_t,className:"mb20",style:{marginRight:148}},ee.createElement(ue.Z,{flex:1},ee.createElement(Me.Z,{align:"middle",justify:"space-between"},ee.createElement(Ge.default.Item,ye(ve({},kn),{name:[Fn,"keyword"]}),ee.createElement(at,{onClose:()=>Rt(Fn)})),it&&ee.createElement(Ge.default.Item,ye(ve({},kn),{name:[Fn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ue.Z.blankInputNumberWrapper}),ee.createElement(we.Z,{className:Ue.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ee.createElement("div",{onClick:()=>gt(!0)},ee.createElement(Ge.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:qe}))))}},30351:function(vn,Tt,te){"use strict";te.d(Tt,{tc:function(){return Ir.t},uh:function(){return ee.u},rL:function(){return Qr},u8:function(){return ke.u},ZZ:function(){return de.Z},Wk:function(){return Ge.W}});var ee=te(11776),de=te(66495),ke=te(81580),Ge=te(77792),xe=te(67294),Me=te(47221),ue=te(22150),Ee=te(71230),fe=te(15746),we=te(31795),Ue=te(83062),De=te(85418),Ke=te(52654),rt=te(24018),Qe=te(41307),_e=te(14446),ge=te(69677),Ve=te(47897),lt=te(71577),He=te(40043),Oe=te(67294),ve=Object.defineProperty,ye=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ze=(Dn,cr,vr)=>cr in Dn?ve(Dn,cr,{enumerable:!0,configurable:!0,writable:!0,value:vr}):Dn[cr]=vr,Ae=(Dn,cr)=>{for(var vr in cr||(cr={}))st.call(cr,vr)&&Ze(Dn,vr,cr[vr]);if(We)for(var vr of We(cr))at.call(cr,vr)&&Ze(Dn,vr,cr[vr]);return Dn},mt=(Dn,cr)=>ye(Dn,ze(cr)),je=(Dn,cr)=>{var vr={};for(var Ur in Dn)st.call(Dn,Ur)&&cr.indexOf(Ur)<0&&(vr[Ur]=Dn[Ur]);if(Dn!=null&&We)for(var Ur of We(Dn))cr.indexOf(Ur)<0&&at.call(Dn,Ur)&&(vr[Ur]=Dn[Ur]);return vr};const it=({value:Dn,onChange:cr,position:vr,removeBlank:Ur})=>{const ti=_n=>{_e.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.Z.modal,onOk:()=>{const nn=[...Dn];nn.splice(_n,1),nn.length===0?Ur(vr-1):cr(nn)}})},Kt=()=>{const _n=[...Dn];_n.push(""),cr(_n)};return Oe.createElement(Ee.Z,{className:"ml20"},Oe.createElement(fe.Z,{flex:1},Dn==null?void 0:Dn.map((_n,nn)=>Oe.createElement(Ee.Z,{key:`${_n}_${nn}`,className:"mb20"},Oe.createElement(ge.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:_n,autoSize:{maxRows:3},maxLength:1e3,onBlur:In=>{const nr=[...Dn],Rr=In.target.value.trim();nr[nn]=Rr,cr(nr)}}),Oe.createElement(Ue.Z,{title:"\u5220\u9664"},Oe.createElement(rt.Z,{className:Ke.Z.deleteIcon,style:{marginLeft:15,visibility:vr===1&&nn===0?"hidden":"visible"},onClick:()=>ti(nn)})),Oe.createElement(Ue.Z,{title:"\u65B0\u589E\u7B54\u6848"},Oe.createElement(He.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:nn===0?"visible":"hidden"},onClick:()=>{Kt()}}))))))},qe=({value:Dn=!0,onChange:cr})=>Oe.createElement(Ve.Z,{checked:!Dn,onChange:vr=>{cr(!vr)}}),gt=({questionTitlePlaceholder:Dn,form:cr,name:vr,scoreByBlank:Ur=!1,answerKey:ti,titleKey:Kt="name",analysisKey:_n="analysis",isOrdered:nn="is_ordered"})=>{var In,nr;const[Rr,Pr]=(0,xe.useState)(!1),br=()=>{const Ut=cr.getFieldValue(["sub_item_banks",...ti]);cr.setFieldValue(["sub_item_banks",...ti],Ut==null?void 0:Ut.map((Cn,cn)=>mt(Ae({},Cn),{position:cn+1})))},xt=(0,xe.useRef)(),$t=(Ut,Cn)=>{for(let cn=0;cn<Ut;cn++)xt.current({position:null,answer_text:[""]},Cn+cn);br()},fn=(0,xe.useRef)(),Mn=Ut=>{fn.current(Ut),br()},yt=(nr=(In=cr.getFieldValue("sub_item_banks"))==null?void 0:In[ti==null?void 0:ti[0]])==null?void 0:nr[ti==null?void 0:ti[1]];return Oe.createElement("div",{className:Ke.Z.wrap},Oe.createElement("div",{className:Ke.Z.questionTitleEditorWrap},Oe.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Kt,labelCol:{span:24},rules:[{required:!0}]},Oe.createElement(Qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Dn,showNullButton:!0,onAddBlank:()=>{const Ut=cr.getFieldValue(["sub_item_banks",...ti]);$t(1,Ut==null?void 0:Ut.length)}}))),Oe.createElement(ue.default.List,{name:ti,rules:[{validator(Ut,Cn){if((Cn==null?void 0:Cn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const cn of Cn){const{answer_text:zn}=cn||{};if(zn!=null&&zn.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()}}]},(Ut,{add:Cn,remove:cn},{errors:zn})=>(xt.current=Cn,fn.current=cn,Oe.createElement(Oe.Fragment,null,Oe.createElement(ue.default.Item,{label:Oe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Ut.map((Hn,Mr)=>{var gi=Hn,{key:Xr,name:Gr}=gi,di=je(gi,["key","name"]);return Oe.createElement(Ee.Z,{align:"top",key:Xr},Oe.createElement(fe.Z,{className:`${Ke.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Mr+1),Oe.createElement(fe.Z,{flex:1},Oe.createElement(Ee.Z,{align:"top",justify:"space-between"},Oe.createElement(fe.Z,{flex:1},Oe.createElement(ue.default.Item,mt(Ae({},di),{name:[Gr,"answer_text"],noStyle:!0}),Oe.createElement(it,{removeBlank:Mn,position:Mr+1}))),Ur&&Oe.createElement(fe.Z,{flex:"224px"},Oe.createElement(ue.default.Item,mt(Ae({},di),{name:[Gr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ke.Z.blankInputNumberWrapper}),Oe.createElement(we.Z,{className:Ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Oe.createElement(ue.default.Item,mt(Ae({},di),{name:[Gr,"position"],noStyle:!0}),Oe.createElement(ge.default,{type:"hidden"}))))})))),Oe.createElement(lt.ZP,{className:"mb20",onClick:()=>$t(1,yt==null?void 0:yt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Oe.createElement(Ee.Z,{align:"middle"},Oe.createElement(ue.default.Item,{name:[vr,"downcase"],valuePropName:"checked"},Oe.createElement(Ve.Z,null)),Oe.createElement(fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Oe.createElement(Ee.Z,{align:"middle"},Oe.createElement(ue.default.Item,{name:[vr,"no_space"],valuePropName:"checked"},Oe.createElement(Ve.Z,null)),Oe.createElement(fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(yt==null?void 0:yt.length)>1&&Oe.createElement(Ee.Z,{align:"middle",className:(yt==null?void 0:yt.length)>1?"mb30":`${Ke.Z.hide}`},Oe.createElement(ue.default.Item,{name:nn},Oe.createElement(qe,null)),Oe.createElement(fe.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")),Oe.createElement("div",{className:"mt30",onClick:()=>Pr(!0)},Oe.createElement(ue.default.Item,{name:_n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Oe.createElement(Qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Rr}))))};var Pt=te(67294),Xt=Object.defineProperty,$e=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,ht=(Dn,cr,vr)=>cr in Dn?Xt(Dn,cr,{enumerable:!0,configurable:!0,writable:!0,value:vr}):Dn[cr]=vr,Bt=(Dn,cr)=>{for(var vr in cr||(cr={}))Vt.call(cr,vr)&&ht(Dn,vr,cr[vr]);if(St)for(var vr of St(cr))Rt.call(cr,vr)&&ht(Dn,vr,cr[vr]);return Dn},_t=(Dn,cr)=>$e(Dn,Be(cr)),Fn=(Dn,cr)=>{var vr={};for(var Ur in Dn)Vt.call(Dn,Ur)&&cr.indexOf(Ur)<0&&(vr[Ur]=Dn[Ur]);if(Dn!=null&&St)for(var Ur of St(Dn))cr.indexOf(Ur)<0&&Rt.call(Dn,Ur)&&(vr[Ur]=Dn[Ur]);return vr};const kn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},kt=({value:Dn,onChange:cr,form:vr,choiceKey:Ur})=>{const ti=(Dn==null?void 0:Dn.is_answer)===1,Kt=Dn==null?void 0:Dn.choice_text,_n=()=>{var nn;const In=(nn=vr==null?void 0:vr.getFieldValue(["sub_item_banks",...Ur]))==null?void 0:nn.map(nr=>({choice_text:nr.choice_text,is_answer:0}));vr==null||vr.setFieldValue(["sub_item_banks",...Ur],In),cr(_t(Bt({},Dn),{is_answer:1}))};return Pt.createElement(Ee.Z,{className:Ke.Z.choiceWrap,align:"middle",wrap:!1},Pt.createElement(fe.Z,{onClick:_n,className:`${Ke.Z.choiceIndex} ${Ke.Z.judgementIndex} ${ti?Ke.Z.activeAnswer:""}`},kn[Kt]),Pt.createElement(fe.Z,{flex:1,className:`${Ke.Z.editorWrap} ml15`},Pt.createElement("div",{className:`${Ke.Z.inputBorder} ${Ke.Z.placeholder} ${ti?Ke.Z.activeJudgementAnswer:""}`},Kt)),Pt.createElement(fe.Z,{flex:"0 0 auto",className:"ml15"},Pt.createElement("div",{onClick:_n,className:`${Ke.Z.setAnswerBtn} ${ti?Ke.Z.activeAnswer:""}`},ti?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},un=({questionTitlePlaceholder:Dn,choiceKey:cr="choices",form:vr,titleKey:Ur="name",analysisKey:ti="analysis"})=>{const[Kt,_n]=(0,xe.useState)(!1);return Pt.createElement("div",{className:Ke.Z.wrap},Pt.createElement("div",{className:Ke.Z.questionTitleEditorWrap},Pt.createElement(ue.default.Item,{label:"\u9898\u5E72",name:Ur,labelCol:{span:24},rules:[{required:!0}]},Pt.createElement(Qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Dn}))),Pt.createElement(ue.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Pt.createElement(ue.default.List,{name:cr,rules:[{validator(nn,In){return In.some(Rr=>(Rr==null?void 0:Rr.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},nn=>Pt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},nn.map(In=>{var nr=In,{key:Rr,name:Pr}=nr,br=Fn(nr,["key","name"]);return Pt.createElement(ue.default.Item,_t(Bt({},br),{key:Rr,name:Pr,noStyle:!0}),Pt.createElement(kt,{form:vr,choiceKey:cr}))})))),Pt.createElement("div",{className:"mt30",onClick:()=>_n(!0)},Pt.createElement(ue.default.Item,{name:ti,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pt.createElement(Qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Kt}))))};var Wn=te(2453),An=te(66309),Ie=te(91304),he=te(17663),ce=Object.defineProperty,me=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Nt=(Dn,cr,vr)=>cr in Dn?ce(Dn,cr,{enumerable:!0,configurable:!0,writable:!0,value:vr}):Dn[cr]=vr,tn=(Dn,cr)=>{for(var vr in cr||(cr={}))Le.call(cr,vr)&&Nt(Dn,vr,cr[vr]);if(le)for(var vr of le(cr))dt.call(cr,vr)&&Nt(Dn,vr,cr[vr]);return Dn},an=(Dn,cr)=>me(Dn,pe(cr)),Yt=(Dn,cr)=>{var vr={};for(var Ur in Dn)Le.call(Dn,Ur)&&cr.indexOf(Ur)<0&&(vr[Ur]=Dn[Ur]);if(Dn!=null&&le)for(var Ur of le(Dn))cr.indexOf(Ur)<0&&dt.call(Dn,Ur)&&(vr[Ur]=Dn[Ur]);return vr};const dn=Dn=>{var cr=Dn,{value:vr,onChange:Ur}=cr,ti=Yt(cr,["value","onChange"]);const Kt=_n=>{Ur([_n])};return xe.createElement(Ie.Z,an(tn({},ti),{defaultValue:vr==null?void 0:vr[0],onChange:Kt}))},Mt=Dn=>{if(!Dn)return!1;let cr=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 Dn==="|"?(Wn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Wt=({value:Dn=[],onClose:cr})=>xe.createElement(An.Z,{closable:!0,onClose:cr,className:Ke.Z.keywordTag},xe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Dn.join(" \u6216 "))),qt=({questionTitlePlaceholder:Dn,form:cr,showKeywords:vr,isMustKeyWords:Ur=vr,titleKey:ti="name",analysisKey:Kt="analysis",answerTexts:_n="answer_texts",keywords:nn="keywords",useKeywords:In="use_keywords",indexs:nr})=>{const[Rr,Pr]=(0,xe.useState)(!1),[br,xt]=(0,xe.useState)(""),[$t,fn]=(0,xe.useState)(!1),Mn=ue.default.useWatch("question_score",cr);return xe.createElement("div",{className:Ke.Z.wrap},xe.createElement("div",{className:Ke.Z.questionTitleEditorWrap},xe.createElement(ue.default.Item,{label:"\u9898\u5E72",name:ti,labelCol:{span:24},rules:[{required:!0}]},xe.createElement(Qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Dn}))),xe.createElement(ue.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:_n,labelCol:{span:24}},xe.createElement(dn,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),vr&&!Ur&&xe.createElement(ue.default.Item,{hidden:!0,name:In,valuePropName:"checked"},xe.createElement(Ve.Z,{defaultChecked:!0})),vr&&Ur&&xe.createElement(Ee.Z,{align:"middle",className:"mb30"},xe.createElement(ue.default.Item,{name:In,valuePropName:"checked"},xe.createElement(Ve.Z,{onChange:()=>{var yt,Ut,Cn,cn,zn,Hn;console.log(cr.getFieldsValue()),fn((Cn=(Ut=(yt=cr.getFieldsValue())==null?void 0:yt.sub_item_banks)==null?void 0:Ut[nr])==null?void 0:Cn.use_keywords),console.log((Hn=(zn=(cn=cr.getFieldsValue())==null?void 0:cn.sub_item_banks)==null?void 0:zn[nr])==null?void 0:Hn.use_keywords),console.log($t)}})),xe.createElement(fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xe.createElement(fe.Z,null,xe.createElement(Ue.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"},xe.createElement(he.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),($t||!Ur)&&xe.createElement(ue.default.List,{name:nn,rules:[{validator(yt,Ut){return Ur?Ut!=null&&Ut.length?(Ut==null?void 0:Ut.reduce((cn,zn)=>cn+zn.score,0))>parseFloat(Mn)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(yt,{add:Ut,remove:Cn})=>xe.createElement(xe.Fragment,null,xe.createElement("div",{className:`${Ke.Z.title} mb10`},Ur?"\u5173\u952E\u8BCD":xe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),xe.createElement(Ee.Z,{align:"middle",className:"font14 mb30"},xe.createElement(fe.Z,{flex:1},xe.createElement(ge.default,{value:br,onChange:cn=>{xt(cn.target.value)},maxLength:50,allowClear:!0,onPressEnter:cn=>{var zn,Hn,Mr,gi;const Xr=`${(zn=cn.target)==null?void 0:zn.value}`,Gr=(Mr=(Hn=Xr==null?void 0:Xr.split("|"))==null?void 0:Hn.filter(Si=>!!Si))==null?void 0:Mr.map(Si=>Si==null?void 0:Si.trim()),di=cr.getFieldValue(["sub_item_banks",...nn]),ci=((gi=di==null?void 0:di.map(Si=>Si==null?void 0:Si.keyword))==null?void 0:gi.flat())||[];for(const Si of Gr)if(ci.includes(Si)){Wn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Mt(Xr)&&(Ut({keyword:Gr,score:1}),xt(""))},className:Ke.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"})),xe.createElement(fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),yt.map(cn=>{var zn=cn,{key:Hn,name:Mr}=zn,gi=Yt(zn,["key","name"]);return xe.createElement(Ee.Z,{key:Hn,className:"mb20",style:{marginRight:148}},xe.createElement(fe.Z,{flex:1},xe.createElement(Ee.Z,{align:"middle",justify:"space-between"},xe.createElement(ue.default.Item,an(tn({},gi),{name:[Mr,"keyword"]}),xe.createElement(Wt,{onClose:()=>Cn(Mr)})),Ur&&xe.createElement(ue.default.Item,an(tn({},gi),{name:[Mr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ke.Z.blankInputNumberWrapper}),xe.createElement(we.Z,{className:Ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),xe.createElement("div",{onClick:()=>Pr(!0)},xe.createElement(ue.default.Item,{name:Kt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},xe.createElement(Qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Rr}))))};var Gt=te(67294),jt=Object.defineProperty,sr=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Sn=(Dn,cr,vr)=>cr in Dn?jt(Dn,cr,{enumerable:!0,configurable:!0,writable:!0,value:vr}):Dn[cr]=vr,or=(Dn,cr)=>{for(var vr in cr||(cr={}))Gn.call(cr,vr)&&Sn(Dn,vr,cr[vr]);if(Jt)for(var vr of Jt(cr))Bn.call(cr,vr)&&Sn(Dn,vr,cr[vr]);return Dn},gr=(Dn,cr)=>sr(Dn,Dt(cr)),kr=(Dn,cr)=>{var vr={};for(var Ur in Dn)Gn.call(Dn,Ur)&&cr.indexOf(Ur)<0&&(vr[Ur]=Dn[Ur]);if(Dn!=null&&Jt)for(var Ur of Jt(Dn))cr.indexOf(Ur)<0&&Bn.call(Dn,Ur)&&(vr[Ur]=Dn[Ur]);return vr};const{Panel:Lr}=Me.default,Qr=({questionTitlePlaceholder:Dn,choiceKey:cr,form:vr,withScore:Ur})=>{const[ti,Kt]=(0,xe.useState)([]),_n=nn=>{Kt(nn)};return Gt.createElement("div",{className:Ke.Z.wrap},Gt.createElement("div",{className:Ke.Z.questionTitleEditorWrap},Gt.createElement(ue.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Gt.createElement(Qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Dn}))),Gt.createElement(ue.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Gt.createElement(ue.default.List,{name:"sub_item_banks",rules:[{validator(nn,In){return In?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(nn,{add:In,remove:nr,move:Rr})=>{const Pr=vr.getFieldValue("sub_item_banks");return Gt.createElement(Gt.Fragment,null,Gt.createElement(Me.default,{className:nn.length>0?Ke.Z.collapseWrapper:"",bordered:!1,activeKey:ti,onChange:_n,expandIcon:({isActive:br})=>Gt.createElement("i",{className:`iconfont icon-weizhankai ${br?Ke.Z.open:Ke.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},nn.map((br,xt)=>{var $t=br,{key:fn,name:Mn}=$t,yt=kr($t,["key","name"]),Ut,Cn,cn,zn,Hn,Mr,gi,Xr,Gr,di;return Gt.createElement(Lr,{className:Ke.Z.panel,forceRender:!0,header:Gt.createElement("div",{className:Ke.Z.panelHeader},"\u7B2C",xt+1,"\u5C0F\u9898",Gt.createElement("span",null,"\uFF08",((Ut=Pr==null?void 0:Pr[Mn])==null?void 0:Ut.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Cn=Pr==null?void 0:Pr[Mn])==null?void 0:Cn.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((cn=Pr==null?void 0:Pr[Mn])==null?void 0:cn.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((zn=Pr==null?void 0:Pr[Mn])==null?void 0:zn.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Mn,extra:Gt.createElement(Ee.Z,{align:"middle",onClick:ci=>ci.stopPropagation()},Ur&&Gt.createElement(fe.Z,null,Gt.createElement(ue.default.Item,gr(or({},yt),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Mn,"question_score"],className:Ke.Z.blankInputNumberWrapper}),Gt.createElement(we.Z,{className:Ke.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Gt.createElement(fe.Z,null,Gt.createElement(Ee.Z,{align:"middle",className:"pl40",justify:"end"},xt!==0&&Gt.createElement("div",{onClick:()=>{var ci;Rr(xt,xt-1);const Si=(ci=vr.getFieldValue("sub_item_banks"))==null?void 0:ci.map((Jn,Jr)=>(nn.map((Oa,Qa)=>{Jr===Qa&&(Jn.q_position=Number(Oa.name)+1)}),Jn));vr.setFieldValue("sub_item_banks",Si)}},Gt.createElement(Ue.Z,{title:"\u4E0A\u79FB"},Gt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),xt<nn.length-1&&Gt.createElement("div",{onClick:()=>{var ci;Rr(xt,xt+1);const Si=(ci=vr.getFieldValue("sub_item_banks"))==null?void 0:ci.map((Jn,Jr)=>(nn.map((Oa,Qa)=>{Jr===Qa&&(Jn.q_position=Number(Oa.name)+1)}),Jn));vr.setFieldValue("sub_item_banks",Si)},className:xt===0?"":"ml15"},Gt.createElement(Ue.Z,{title:"\u4E0B\u79FB"},Gt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Gt.createElement(fe.Z,null,Gt.createElement(Ue.Z,{title:"\u5220\u9664"},Gt.createElement(rt.Z,{className:`${Ke.Z.deleteIcon} ml15`,onClick:()=>nr(Mn)}))))},Gt.createElement(ue.default.Item,gr(or({},yt),{name:Mn}),(((Hn=Pr==null?void 0:Pr[Mn])==null?void 0:Hn.item_type)=="SINGLE"||((Mr=Pr==null?void 0:Pr[Mn])==null?void 0:Mr.item_type)=="MULTIPLE")&&Gt.createElement(ee.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((gi=Pr==null?void 0:Pr[Mn])==null?void 0:gi.item_type)=="MULTIPLE",form:vr,choiceKey:[Mn,"choices"],titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],choiceOptionsPath:["sub_item_banks",Mn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Xr=Pr==null?void 0:Pr[Mn])==null?void 0:Xr.item_type)=="COMPLETION"&&Gt.createElement(gt,{form:vr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Mn,titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],isOrdered:[Mn,"is_ordered"],answerKey:[Mn,"standard_answers"]}),((Gr=Pr==null?void 0:Pr[Mn])==null?void 0:Gr.item_type)=="JUDGMENT"&&Gt.createElement(un,{form:vr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],choiceKey:[Mn,"choices"]}),((di=Pr==null?void 0:Pr[Mn])==null?void 0:di.item_type)=="SUBJECTIVE"&&Gt.createElement(qt,{showKeywords:!0,isMustKeyWords:!1,form:vr,titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],answerTexts:[Mn,"answer_texts"],useKeywords:[Mn,"use_keywords"],keywords:[Mn,"keywords"],indexs:Mn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),nn.length<20&&Gt.createElement(De.Z,{menu:{items:[{label:Gt.createElement("div",{onClick:()=>{In({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Kt([nn==null?void 0:nn.length,...ti])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Gt.createElement("div",{onClick:()=>{In({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Kt([nn==null?void 0:nn.length,...ti])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Gt.createElement("div",{onClick:()=>{In({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Kt([nn==null?void 0:nn.length,...ti])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Gt.createElement("div",{onClick:()=>{In({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),Kt([nn==null?void 0:nn.length,...ti])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Gt.createElement("div",{onClick:()=>{In({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Kt([nn==null?void 0:nn.length,...ti])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(br=>br.show).map(br=>({label:br.label,key:br.key}))}},Gt.createElement("div",{className:`${Ke.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Ir=te(15312)},48994:function(vn,Tt,te){"use strict";te.d(Tt,{C:function(){return qe}});var ee=te(67294),de={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},ke=te(94184),Ge=te.n(ke),xe=te(84567),Me=te(71230),ue=te(2453),Ee=te(83062),fe=te(71577),we=te(14446),Ue=te(9430),De=te(31795),Ke=te(22150),rt=te(57953),Qe=te(28706),_e=te(33170),ge=te(52262),Ve=te(63037),lt=te(64743),He=Object.defineProperty,Oe=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,st=(gt,Pt,Xt)=>Pt in gt?He(gt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):gt[Pt]=Xt,at=(gt,Pt)=>{for(var Xt in Pt||(Pt={}))ze.call(Pt,Xt)&&st(gt,Xt,Pt[Xt]);if(ye)for(var Xt of ye(Pt))We.call(Pt,Xt)&&st(gt,Xt,Pt[Xt]);return gt},Ze=(gt,Pt)=>Oe(gt,ve(Pt)),Ae=(gt,Pt,Xt)=>new Promise(($e,Be)=>{var St=ht=>{try{Rt(Xt.next(ht))}catch(Bt){Be(Bt)}},Vt=ht=>{try{Rt(Xt.throw(ht))}catch(Bt){Be(Bt)}},Rt=ht=>ht.done?$e(ht.value):Promise.resolve(ht.value).then(St,Vt);Rt((Xt=Xt.apply(gt,Pt)).next())});const mt=xe.default.Group,je=({className:gt,title:Pt,items:Xt=[],value:$e,onChange:Be})=>{const St=(Xt==null?void 0:Xt.length)===($e==null?void 0:$e.length),Vt=($e==null?void 0:$e.length)>0&&($e==null?void 0:$e.length)<(Xt==null?void 0:Xt.length),Rt=ht=>{const Bt=Xt.map(_t=>_t.id);Be(ht.target.checked?Bt:[])};return ee.createElement(Me.Z,{align:"middle",className:gt},!!Pt&&ee.createElement("div",{className:"mr20",style:{color:"#5F6368"}},Pt),ee.createElement(xe.default,{indeterminate:Vt,onChange:Rt,checked:St},"\u5168\u90E8"),ee.createElement(mt,{value:$e,onChange:Be},Xt.map(ht=>ee.createElement(xe.default,{className:"ml30 c-black",key:ht.id,value:ht.id},ht.name,ee.createElement("span",null,`(${ht.count})`)))))};var qe=({className:gt,style:Pt,dataSource:Xt})=>{var $e,Be,St,Vt,Rt,ht,Bt;const[_t,Fn]=(0,ee.useState)({}),[kn,kt]=(0,ee.useState)(!0),[un,Wn]=(0,ee.useState)(!1),[An,Ie]=(0,ee.useState)(!1),[he,ce]=(0,ee.useState)(null),[me,pe]=(0,ee.useState)(0),[le,Le]=(0,ee.useState)({}),[dt,Nt]=(0,ee.useState)(!0),[tn,an]=(0,ee.useState)(0),[Yt,dn]=(0,ee.useState)(0),[Mt,Wt]=(0,ee.useState)(!1),qt=(0,ee.useRef)(null),[Gt,jt]=(0,ee.useState)(!1),[sr,Dt]=(0,ee.useState)(!0),[Jt,Gn]=(0,ee.useState)([]),Bn={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Sn,or]=(0,ee.useState)(at({},Bn));(0,ee.useEffect)(()=>{Xt!=null&&Xt.question_id&&Fn(Xt)},[Xt==null?void 0:Xt.question_id]),(0,ee.useEffect)(()=>{var nn;if(((nn=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:nn.status)==="running"){const In=setInterval(()=>{Lr()},3e3);return()=>clearInterval(In)}},[($e=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:$e.status]),(0,ee.useEffect)(()=>{var nn;An&&(An===1&&(Sn.question_status=Qr.map(In=>In.value),Sn.review=Ir.map(In=>In.value)),An===2&&(Sn.exercise_question_resubmit_id=(nn=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:nn.id,he===1&&(Sn.success_status=[1]),he===2&&(Sn.success_status=[0])),or(at({},Sn)),gr(Sn),dn(_t!=null&&_t.is_mirror?3:10),an(_t!=null&&_t.is_mirror?1:5))},[An]),(0,ee.useEffect)(()=>{Gt&&kr()},[Gt]);const gr=nn=>Ae(void 0,null,function*(){kt(!0);const In=yield(0,_e.ZP)(`/api/exercise_questions/${_t==null?void 0:_t.question_id}/resubmit_student_list.json`,{method:"get",params:nn});(In==null?void 0:In.status)==0&&(Le(In||[]),pe(In==null?void 0:In.count)),kt(!1)}),kr=()=>Ae(void 0,null,function*(){Dt(!0);const nn=yield(0,_e.ZP)(`/api/exercise_questions/${_t==null?void 0:_t.question_id}/resubmit_history.json`,{method:"get"});(nn==null?void 0:nn.status)==0&&Gn((nn==null?void 0:nn.data)||[]),Dt(!1)}),Lr=()=>Ae(void 0,null,function*(){const nn=yield(0,_e.ZP)(`/api/exercise_questions/${_t==null?void 0:_t.question_id}/resubmit_status.json`,{method:"get"});(nn==null?void 0:nn.status)==0&&Fn(Ze(at({},_t),{show_resubmit_history:!0,exercise_question_resubmit:(nn==null?void 0:nn.data)||{}}))}),Qr=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],Ir=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],Dn=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],cr=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(nn,In,nr)=>ee.createElement("span",{className:"c-black"},nr+1+(Sn.page-1)*Sn.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:nn=>ee.createElement("span",{className:"c-black"},nn)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:nn=>ee.createElement("span",{className:"c-grey-666"},nn||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:nn=>ee.createElement("span",{className:"c-black"},nn)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:nn=>{const{label:In,color:nr}=Qr.find(Rr=>Rr.value===nn)||{};return ee.createElement("span",{style:{color:nr}},In)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:nn=>ee.createElement("span",{className:"c-black"},nn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:nn=>ee.createElement("span",{className:"c-black"},nn)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:nn=>{const{label:In,color:nr}=Ir.find(Rr=>Rr.value===nn)||{};return ee.createElement("span",{style:{color:nr}},In)}},An===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:nn=>{const{label:In,color:nr}=Dn.find(Rr=>Rr.value===nn)||{};return ee.createElement("span",{style:{color:nr}},In)}}].filter(Boolean),vr=(nn,In,nr)=>{Sn.page=nn==null?void 0:nn.current,Sn.per_page=nn==null?void 0:nn.pageSize,nr!=null&&nr.order?(Sn.sort_by=nr==null?void 0:nr.field,Sn.direction=(nr==null?void 0:nr.order)==="ascend"?"asc":"desc"):(Sn.sort_by=null,Sn.direction=null),or(at({},Sn)),gr(Sn)},Ur=()=>{if(!tn){ue.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Wt(!0)},ti=()=>Ae(void 0,null,function*(){var nn,In;if((nn=qt.current)!=null&&nn.onVerify())return;Wn(!0);const nr=yield(0,_e.ZP)(`/api/exercise_questions/${_t==null?void 0:_t.question_id}/resubmit.json`,{method:"post",body:{keyword:Sn.keyword,question_status:Sn.question_status,review:Sn.review_status,success_status:Sn.success_status,use_max_score:dt,permits:tn,exercise_question_resubmit_id:An===1?null:(In=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:In.id}});(nr==null?void 0:nr.status)==0&&(yield Lr(),ue.ZP.success("\u64CD\u4F5C\u6210\u529F"),Wt(!1),Ie(!1)),Wn(!1)}),Kt=(nn,In)=>{Sn.page=1,Sn[In]=nn,or(at({},Sn)),gr(Sn)},_n=["","\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 ee.createElement(ee.Fragment,null,ee.createElement("div",{className:Ge()(de.recalculation,gt),style:Pt},ee.createElement(Ee.Z,{title:_n[(_t==null?void 0:_t.disable_resubmit_reason)||0]},ee.createElement(fe.ZP,{disabled:(_t==null?void 0:_t.disable_resubmit)||((Be=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:Be.status)==="running",onClick:()=>Ie(1),icon:ee.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(_t==null?void 0:_t.show_resubmit_history)&&ee.createElement(ee.Fragment,null,((St=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:St.status)==="running"?ee.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",ee.createElement("span",{className:"c-light-primary ml3"},(Vt=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:Vt.rate)):ee.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",ee.createElement("span",{onClick:()=>{Ie(2),ce(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Rt=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:Rt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",ee.createElement("span",{onClick:()=>{Ie(2),ce(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(ht=_t==null?void 0:_t.exercise_question_resubmit)==null?void 0:ht.fail_count),"\u4EBA"),ee.createElement(Ee.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},ee.createElement("i",{onClick:()=>jt(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),ee.createElement(we.default,{centered:!0,open:!!An,title:`\u91CD\u65B0\u8BC4\u6D4B${An===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>Ie(!1),onOk:Ur,afterClose:()=>{Nt(!0),ce(null),or(at({},Bn))}},ee.createElement("div",{className:de.filter},An===1&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:de.tips},ee.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},ee.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),ee.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"),ee.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"),ee.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")),ee.createElement(je,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(le==null?void 0:le.question_status)||[],value:Sn.question_status,onChange:nn=>Kt(nn,"question_status")}),ee.createElement(je,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(le==null?void 0:le.review_status)||[],value:Sn.review,onChange:nn=>Kt(nn,"review")})),An===2&&ee.createElement(ee.Fragment,null,ee.createElement(je,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(le==null?void 0:le.success_status)||[],value:Sn.success_status,onChange:nn=>Kt(nn,"success_status")})),ee.createElement(lt.t7,{className:de.input,style:{bottom:An===1?10:-5},value:Sn.keyword,onChange:nn=>Kt(nn,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),ee.createElement(Ue.default,{className:"mt20",columns:cr,scroll:((Bt=le==null?void 0:le.data)==null?void 0:Bt.length)>7?{y:300}:{},dataSource:(le==null?void 0:le.data)||[],loading:kn,onChange:vr,pagination:{total:me,pageSize:Sn.per_page,current:Sn.page,hideOnSinglePage:!me,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Qe.rU}}),ee.createElement(Me.Z,{justify:"space-between",align:"middle",className:"mt10"},ee.createElement(xe.default,{className:"c-black",checked:dt,onChange:nn=>Nt(nn.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,ge.Ny)()&&ee.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",ee.createElement(De.Z,{className:"ml10 mr10",value:tn,max:Yt,min:1,precision:0,onChange:nn=>an(nn)}),"\u4EBA",ee.createElement(Ee.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"},ee.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),ee.createElement(we.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Mt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:un,destroyOnClose:!0,onOk:ti,onCancel:()=>Wt(!1)},ee.createElement(Ke.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},ee.createElement(Ve.Z,{ref:nn=>qt.current=nn}))),ee.createElement(we.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Gt,width:710,onCancel:()=>jt(!1),footer:null},ee.createElement(rt.Z,{spinning:sr},ee.createElement("div",{className:de.operating},Jt.map((nn,In)=>ee.createElement("div",{key:In,className:de.operatingItem},ee.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},nn==null?void 0:nn.created_at),ee.createElement("div",{className:"c-black"},nn==null?void 0:nn.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(nn==null?void 0:nn.status)==="running"?ee.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",ee.createElement("span",{className:"c-light-primary ml3"},nn==null?void 0:nn.rate)):ee.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",ee.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},nn==null?void 0:nn.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",ee.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},nn==null?void 0:nn.fail_count),"\u4EBA")))),ee.createElement("div",{style:{height:20}}))))}},96332:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});var ee=te(67294),de={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"},ke=te(14446),Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",xe="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=(fe,we,Ue)=>new Promise((De,Ke)=>{var rt=ge=>{try{_e(Ue.next(ge))}catch(Ve){Ke(Ve)}},Qe=ge=>{try{_e(Ue.throw(ge))}catch(Ve){Ke(Ve)}},_e=ge=>ge.done?De(ge.value):Promise.resolve(ge.value).then(rt,Qe);_e((Ue=Ue.apply(fe,we)).next())}),Ee=({type:fe,resdata:we,onok:Ue,oktext:De,okloading:Ke})=>{const[rt,Qe]=(0,ee.useState)(!1),{can_copy_list:_e,can_copy_num:ge,challenge_type:Ve,course_data_list:lt,no_copy_list:He,no_copy_num:Oe,no_use_list:ve,no_use_num:ye,repeat_shixun_num:ze,student_count:We,total_num:st,use_num:at}=we;let Ze=ge>0||fe==="exercise";(0,ee.useEffect)(()=>{(we==null?void 0:we.student_count)>0&&Qe(!0)},[we]),console.log("---11",Ke),(0,ee.useEffect)(()=>{Ke||Qe(!1)},[Ke]);const Ae=()=>{if(fe==="exercise"&&Ve===1)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ee.createElement("span",{className:de.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ee.createElement("span",{className:de.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(fe==="exercise"&&Ve===2)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ee.createElement("span",{className:de.orangeColor},at),"\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",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="shixun"&&Ve===1)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="shixun"&&Ve===2)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\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",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="subject"&&Ve===1)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ee.createElement("span",{className:de.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="subject"&&Ve===2)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ee.createElement("span",{className:de.orangeColor},We)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ee.createElement("span",{className:de.orangeColor},at)," \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",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="exercisepush")return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ee.createElement("span",{className:de.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ee.createElement("span",{className:de.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(fe==="shixunpush"&&Ve===1)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ee.createElement("span",{className:de.orangeColor},at),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(fe==="shixunpush"&&Ve===2)return ee.createElement(ee.Fragment,null,"\u8BFE\u5802\u5185\u6709",ee.createElement("span",{className:de.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ee.createElement("span",{className:de.orangeColor},at),"\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",ee.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},mt=()=>{if(fe==="exercise"||fe==="subject"||fe==="exercisepush"||fe==="shixunpush")return ee.createElement("div",{style:{marginTop:20}},Oe>0&&ee.createElement("div",null,ee.createElement("span",{className:de.flex},ee.createElement("img",{src:xe,style:{width:14}}),ee.createElement("span",{className:de.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ee.createElement("div",{className:de.statusbody},fe==="exercise"&&ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ee.createElement("span",{className:de.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"),(fe==="subject"||fe==="exercisepush")&&ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ze&&ee.createElement("span",{className:de.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"),fe==="shixunpush"&&ee.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ze&&ee.createElement("span",{className:de.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"),ee.createElement("div",null,He==null?void 0:He.map((je,it)=>ee.createElement("a",{href:`/shixuns/${je.identifier}/challenges`,target:"_blank"},"\u300A",je==null?void 0:je.name,"\u300B",it+1!==Oe&&"\u3001"))))),ge>0&&ee.createElement("div",{style:{marginTop:20}},ee.createElement("span",{className:de.flex},ee.createElement("img",{src:Ge,style:{width:14}}),ee.createElement("span",{className:de.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ee.createElement("div",{className:de.statusbody},fe==="exercise"&&ee.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"),(fe==="subject"||fe==="exercisepush")&&ee.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"),fe==="shixunpush"&&ee.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"),ee.createElement("div",null,_e==null?void 0:_e.map((je,it)=>ee.createElement("a",{href:`/shixuns/${je.identifier}/challenges`,target:"_blank"},"\u300A",je==null?void 0:je.name,"\u300B",it+1!==ge&&"\u3001"))))));if(fe==="shixun")return ee.createElement("div",{style:{marginTop:20}},ge>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 ee.createElement(ke.default,{open:rt,onCancel:()=>{Qe(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ze&&"none"}},zIndex:1003,confirmLoading:Ke,okText:Ze?De:"\u6211\u77E5\u9053\u4E86",onOk:()=>Me(void 0,null,function*(){Ze?yield Ue([..._e,...ve]):Qe(!1)})},ee.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ae(),mt()))}},2715:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Me}});var ee=te(67294),de={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ke=te(94184),Ge=te.n(ke),Me=({className:ue,style:Ee,state:fe,onClick:we})=>{var Ue,De;return ee.createElement("div",{onClick:we,className:Ge()(fe?(Ue=de)==null?void 0:Ue.redBtn:(De=de)==null?void 0:De.btn,ue),style:Ee},fe?ee.createElement(ee.Fragment,null,ee.createElement("i",{className:"iconfont icon-biaoji1"}),ee.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):ee.createElement(ee.Fragment,null,ee.createElement("i",{className:"iconfont icon-biaojigaiti"}),ee.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},57444:function(vn,Tt,te){"use strict";te.d(Tt,{h:function(){return Oe}});var ee=te(67294),de=te(11713),ke=te(22150),Ge=te(71577),xe=te(4631),Me=te.n(xe),ue=te(71749),Ee=te(30483),fe=Object.defineProperty,we=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Qe=(ve,ye,ze)=>ye in ve?fe(ve,ye,{enumerable:!0,configurable:!0,writable:!0,value:ze}):ve[ye]=ze,_e=(ve,ye)=>{for(var ze in ye||(ye={}))Ke.call(ye,ze)&&Qe(ve,ze,ye[ze]);if(De)for(var ze of De(ye))rt.call(ye,ze)&&Qe(ve,ze,ye[ze]);return ve},ge=(ve,ye)=>we(ve,Ue(ye));const Ve=de.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},He={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"]};Tt.Z=({callback:ve,onCancel:ye})=>{const[ze,We]=(0,ee.useState)("python");function st(Ze){We(He[Ze][1])}function at(Ze){ve(Ze)}return ee.createElement(ke.default,ge(_e({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:at,style:{width:500}}),ee.createElement(ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(de.default,{getPopupContainer:Ze=>Ze.parentNode,onChange:st},Object.keys(He).map(Ze=>ee.createElement(Ve,{key:Ze,value:Ze},He[Ze][0])))),ee.createElement(ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(Oe,{mode:ze})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ge.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))};function Oe({value:ve,onChange:ye,mode:ze,options:We={}}){const st=(0,ee.useRef)(),[at,Ze]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(at){let Ae=function(mt){const je=mt.getValue();ye&&ye(je)};return at.on("change",Ae),()=>{at.off("change",Ae)}}},[at,ye]),(0,ee.useEffect)(()=>{at&&at.setOption("mode",ze)},[at,ze]),(0,ee.useEffect)(()=>{at&&(ve!==at.getValue()||ve==="")&&setTimeout(()=>{at.setValue(ve||"")},300)},[at,ve]),(0,ee.useEffect)(()=>{if(st.current&&!at){const Ae=Me().fromTextArea(st.current,_e({mode:ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},We));Ze(Ae)}},[st.current,at]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:st}))}},91304:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Pr}});var ee=te(67294),de=te(4631),ke=te.n(de),Ge=te(91033),xe=te(71749),Me=te(57341),ue=te(82801),Ee=te(88386),fe=te(49047),we=te(80785),Ue=te(35598),De=({value:br="",className:xt,showTextOnly:$t,showLines:fn,style:Mn={}})=>{const yt=(0,ee.useMemo)(()=>"",[br]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:yt}}))},Ke=te(67294),rt=Object.defineProperty,Qe=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,He=(br,xt,$t)=>xt in br?rt(br,xt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):br[xt]=$t,Oe=(br,xt)=>{for(var $t in xt||(xt={}))Ve.call(xt,$t)&&He(br,$t,xt[$t]);if(ge)for(var $t of ge(xt))lt.call(xt,$t)&&He(br,$t,xt[$t]);return br},ve=(br,xt)=>Qe(br,_e(xt));let ye=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ze({onActionCallback:br,title:xt,icon:$t,actionName:fn,className:Mn="",children:yt}){function Ut(){br(fn)}return Ke.createElement("a",{title:xt,className:Mn,onClick:Ut},Ke.createElement("i",{className:`${$t}`}),yt)}var We=({watch:br,showNullButton:xt,showNullProgramButton:$t,onActionCallback:fn,fullScreen:Mn,insertTemp:yt,hidetoolBar:Ut,extraUse:Cn})=>{const cn=[...ye,{title:`${br?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${br?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ke.createElement("ul",{className:"markdown-toolbar-container"},!Ut&&cn.map((zn,Hn)=>Ke.createElement("li",{key:Hn},zn.actionName?Ke.createElement(ze,ve(Oe({},zn),{onActionCallback:fn})):Ke.createElement("span",{className:"v-line"}))),xt?Ke.createElement("li",null,Ke.createElement(ze,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:fn},Ke.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,$t?Ke.createElement(Ke.Fragment,null,Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:fn},Ke.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:fn},Ke.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,yt&&Ke.createElement("li",null,Ke.createElement(ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yt}`,onActionCallback:fn},Ke.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Cn&&Ke.createElement("li",null,Cn),Ke.createElement("li",{className:"btn-full-screen"},Ke.createElement(ze,{icon:`${Mn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Mn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:fn})))},st=te(76621),at=te(22150),Ze=te(69677),Ae=te(71577),mt=Object.defineProperty,je=Object.defineProperties,it=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Xt=(br,xt,$t)=>xt in br?mt(br,xt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):br[xt]=$t,$e=(br,xt)=>{for(var $t in xt||(xt={}))gt.call(xt,$t)&&Xt(br,$t,xt[$t]);if(qe)for(var $t of qe(xt))Pt.call(xt,$t)&&Xt(br,$t,xt[$t]);return br},Be=(br,xt)=>je(br,it(xt));const St={labelCol:{span:4},wrapperCol:{span:20}};var Vt=({callback:br,onCancel:xt})=>{function $t(fn){br(fn)}return ee.createElement(at.default,Be($e({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t,style:{width:500}}),ee.createElement(at.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(Ze.default,null)),ee.createElement(at.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(Ze.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ae.ZP,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},Rt=te(57444),ht=te(70859),Bt=te(14446),_t=te(71230),Fn=te(63205),kn=te(67294),kt=({callback:br,onCancel:xt})=>{const $t=document.createElement("canvas"),fn=$t.getContext("2d");$t.width=1e3,$t.height=800,fn.fillStyle="#ffffff",fn.fillRect(0,0,$t.width,$t.height);const Mn=$t.toDataURL("image/png");return kn.createElement(Bt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kn.createElement(_t.Z,{style:{height:"100vh"}},kn.createElement(Fn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Mn,visible:!0,title:String(Date.now())},onOk:yt=>{br({src:yt.url})},onClose:xt})))},un=te(72565),Wn=te(15746),An=te(2453),Ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=te(67294),me=(0,ee.forwardRef)(({onCancel:br,editImgId:xt,callback:$t},fn)=>{let Mn=(0,ee.useRef)(),yt=(0,ee.useRef)(),Ut=(0,ee.useRef)(),Cn=(0,ee.useRef)(!1);const cn=(0,ee.useRef)(!1);console.log("ref:",fn);const[zn,Hn]=(0,ee.useState)(0),[Mr,gi]=(0,ee.useState)("100vh");return(0,ee.useEffect)(()=>{Hn(1);try{indexedDB.databases().then(Xr=>{Xr.forEach(Gr=>indexedDB.deleteDatabase(Gr.name))})}catch(Xr){}},[]),(0,ee.useImperativeHandle)(fn,()=>({setHeight:gi})),he.createElement("div",{ref:cn,className:"body-overflow-initial"},he.createElement(un.Z,{width:"100vw",height:Mr,footer:null,closable:!0,placement:"bottom",open:!!zn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ie.drawerWrap}`,onClose:()=>{window.saveDrawData(Xr=>{$t({src:`/api/attachments/${Xr}`,id:Xr})})},title:he.createElement(_t.Z,{align:"middle"},he.createElement(Wn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(Wn.Z,{onClick:()=>{gi(Mr==="60px"?"100vh":"60px")}},he.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),he.createElement(Wn.Z,{onClick:()=>{window.saveDrawData(Xr=>{if(Xr===null){An.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}An.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),$t({src:`/api/attachments/${Xr}`,id:Xr,disabledClose:!0})})}},he.createElement(Ae.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},he.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${xt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:yt})))}),pe=te(11320),le=te(78045),Le=te(31795);const dt=le.ZP.Group,Nt={margin:"0 8px"};var tn=({callback:br,onCancel:xt})=>{function $t(fn){br(fn)}return ee.createElement(at.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:Nt},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:Nt},"\u884C\u6570"),ee.createElement(at.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Le.Z,null)),ee.createElement("span",{style:Nt},"\u5217\u6570"),ee.createElement(at.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Le.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:Nt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(at.default.Item,{name:"align"},ee.createElement(dt,null,ee.createElement(le.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(le.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(le.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(le.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Ae.ZP,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},an=te(47897),Yt=te(61016),dn=te.n(Yt),Wt=(0,ee.forwardRef)(({use3d:br,width:xt,height:$t,callback:fn,showSaveButton:Mn},yt)=>{const Ut=(0,ee.useRef)(),Cn=(0,ee.useRef)(),[cn,zn]=(0,ee.useState)(!1),Hn=(0,ee.useRef)({id:Ut,appName:"graphing",width:xt||1e3,height:$t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Cn.current=new(dn())(Hn.current,!0),window.onload=function(){Cn.current.inject("applet_container")}},[]);const Mr=()=>{var gi=window.ggbApplet.getPNGBase64(1,!0,72);return fn&&fn(gi),gi};return(0,ee.useEffect)(()=>{Hn.current.appName=cn?"3D":"graphing",Cn.current.inject("applet_container")},[cn]),(0,ee.useEffect)(()=>{zn(br)},[br]),(0,ee.useImperativeHandle)(yt,()=>({getImgData:Mr})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ut}),ee.createElement(_t.Z,{align:"middle"},ee.createElement(Wn.Z,{flex:1},ee.createElement(an.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:cn,onChange:gi=>zn(gi)})),ee.createElement(Wn.Z,null,ee.createElement(Ae.ZP,{size:"large",onClick:Mr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qt=te(36527),Gt=te(25934);const jt="link",sr="upload-image",Dt="add-flowchart",Jt="draw-image",Gn="add-flowchart",Bn="code-block",Sn="add-table",or="------------",gr={default:or,left:`:${or}`,center:`:${or}:`,right:`${or}:`};var kr=te(99914),Lr=(br,xt,$t)=>new Promise((fn,Mn)=>{var yt=cn=>{try{Cn($t.next(cn))}catch(zn){Mn(zn)}},Ut=cn=>{try{Cn($t.throw(cn))}catch(zn){Mn(zn)}},Cn=cn=>cn.done?fn(cn.value):Promise.resolve(cn.value).then(yt,Ut);Cn(($t=$t.apply(br,xt)).next())});function Qr(){}let Ir=0;const Dn=1e4,cr="\u2581",vr="@\u2581\u2581@",Ur="@\u2581@",ti=`
**\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`,Kt=["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 _n(br){return/^\d+$/.test(br)?`${br}px`:br}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",nr={[In+"-B"]:"bold",[In+"-I"]:"italic"},Rr={[jt]:"\u6DFB\u52A0\u94FE\u63A5",[Bn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sr]:"\u6DFB\u52A0\u56FE\u7247",[Jt]:"\u6DFB\u52A0\u753B\u56FE",[Dt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Sn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Pr=({defaultValue:br="",onChange:xt,width:$t="100%",height:fn=400,miniToolbar:Mn=!1,isFocus:yt=!1,watch:Ut,insertTemp:Cn,mode:cn="markdown",id:zn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:Mr=!1,showNullButton:gi=!1,showNullProgramButton:Xr=!1,hidetoolBar:Gr=!1,fullScreen:di=!1,onBlur:ci,onCMBeforeChange:Si,onFullScreen:Jn,className:Jr="",disablePaste:Oa=!1,disabled:Qa=!1,disabledFill:Li=!1,placeholder:qi="",values:$a="",extraUse:zi,onAddBlank:to})=>{const[_r,Wo]=(0,ee.useState)(null),[_o,bl]=(0,ee.useState)(br),[jo,Po]=(0,ee.useState)(Ut),[la,el]=(0,ee.useState)(di),[No,rl]=(0,ee.useState)(""),[vl,ll]=(0,ee.useState)(0),[Uo,gl]=(0,ee.useState)(fn),[wl,dl]=(0,ee.useState)(!1),io=(0,ee.useRef)((0,Gt.Z)()),wn=(0,ee.useRef)(!1),pn=(0,ee.useRef)(),[ar,tr]=(0,ee.useState)(0),[Yr,$i]=(0,ee.useState)(0),ia=(0,ee.useRef)(),sa=(0,ee.useRef)(),ka=(0,ee.useRef)(),ga=(0,ee.useRef)(),ho=(0,ee.useRef)(),ao=(0,ee.useRef)(),mo=()=>Lr(void 0,null,function*(){var Qn;const Yn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:io.current}});(Qn=Yn==null?void 0:Yn.attachments)!=null&&Qn.length&&(console.log("cm:",_r,ia),Yn.attachments.map(On=>{On.content_type.indexOf("image")>-1?_r.replaceSelection(`![,](/api/attachments/${On.id}?type=${On.content_type})`):On.content_type.indexOf("video")>-1?_r.replaceSelection(`<video width="100%" controls src="${pe.Z.API_SERVER}/api/attachments/${data.id}"></video>`):On.content_type.indexOf("pdf")>-1?_r.replaceSelection(`<a href="${pe.Z.API_SERVER}/api/attachments/${On.id}?type=${On.content_type}&disposition=inline" target="_blank">${On.name}</a>`):_r.replaceSelection(`[${On.name}](${pe.Z.API_SERVER}/api/attachments/${On.id}?type=${On.content_type})`)}))});(0,ee.useEffect)(()=>{const Qn=window.scrollY||window.pageYOffset;bl($a),_r==null||_r.setValue($a),window.scrollTo(0,Qn)},[$a]),(0,ee.useEffect)(()=>{Jn==null||Jn(la)},[la]),(0,ee.useEffect)(()=>{if(ia.current){let Qn=function(On,hr){var zr;if(Oa){hr.preventDefault();return}const Er=hr.clipboardData;if(Er){const wr=Er.types.toString(),Br=Er.items;if(wr==="Files"||Er.types.indexOf("Files")>-1){if(hr.preventDefault(),cn=="stex")return;try{let Or=Br[1];((zr=Br[0])==null?void 0:zr.kind)==="file"&&(Or=Br[0]);const Wr=Or.getAsFile(),pt=Wr.name.split(".").pop();(0,ht.I)(Wr,vt=>{var mn,ln,$n;vt.id?((mn=Wr==null?void 0:Wr.type)==null?void 0:mn.indexOf("image"))>-1?Yn.replaceSelection(`<img width="100%" src="/api/attachments/${vt.id}?type=${vt.content_type})" alt="" />`):((ln=Wr==null?void 0:Wr.type)==null?void 0:ln.indexOf("video"))>-1?Yn.replaceSelection(`<video width="100%" controls src="/api/attachments/${vt.id}"></video>`):(($n=Wr==null?void 0:Wr.type)==null?void 0:$n.indexOf("pdf"))>-1?Yn.replaceSelection(`<a href="/api/attachments/${vt.id}?type=${Wr.type}&disposition=inline" target="_blank">${Wr.name}</a>`):Kt.includes(pt)?Yn.replaceSelection(`<a href="/api/attachments/${vt.id}?type=office&disposition=inline" target="_blank">${Wr.name}</a>`):Yn.replaceSelection(`[${Wr.name}](/api/attachments/${vt.id}?type=${vt.content_type})`):(vt==null?void 0:vt.status)===401&&(An.ZP.warning((vt==null?void 0:vt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Or){An.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Yn=ke().fromTextArea(ia.current,{mode:cn,lineNumbers:!Mn,lineWrapping:!0,value:br,autoCloseTags:!Xr,autoCloseBrackets:!0});return Yn.on("keyup",function(On,hr){hr.keyCode===8&&(On.getValue()==""?Yn.setOption("placeholder",qi):Yn.setOption("placeholder",null))}),Yn.on("keydown",function(On,hr){if(hr.keyCode===8){var zr=ir(On);zr&&hr.preventDefault()}}),yt&&Yn.focus(),Yn.on("paste",Qn),Yn.on("dragleave",function(On,hr){sa.current.classList.remove("mouse-hover-md")}),Qa&&Yn.on("beforeChange",function(On,hr){(hr.origin==="paste"||hr.origin==="+input")&&hr.cancel()}),Wo(Yn),()=>{Yn.off("paste",Qn)}}},[]);const Un=(0,ee.useCallback)(()=>{if(sa.current)try{}catch(Qn){console.log(Qn,"---- to set md editor body height")}},[Uo,sa,la]);(0,ee.useEffect)(()=>{function Qn(){let Yn=new Ge.Z(On=>{for(let hr of On)(hr.target.offsetHeight>0||hr.target.offsetWidth>0)&&(Un(),_r.setSize("100%","100%"),_r.refresh())});return Yn.observe(ia.current.parentElement),Yn}if(_r){const Yn=Qn();return()=>{var On,hr;(On=ia.current)!=null&&On.parentElement&&Yn.unobserve((hr=ia.current)==null?void 0:hr.parentElement)}}},[_r,Un]),(0,ee.useEffect)(()=>{if(_r){let Qn=[];for(const[Yn,On]of Object.entries(nr)){let hr={[Yn]:()=>{Sr(On)}};Qn.push(hr),_r.addKeyMap(hr)}return pn.current=setInterval(()=>{wn.current&&mo()},4e3),()=>{clearInterval(pn.current);for(let Yn of Qn)_r.removeKeyMap(Yn)}}},[_r]),(0,ee.useEffect)(()=>{di!==la&&el(di)},[di]),(0,kr.Z)(()=>{if(!Mr&&vl>0){let Qn=new Date().getTime(),Yn=window.sessionStorage.getItem(zn);Qn>=vl+Dn&&(!Yn||Yn!==_o)&&(window.sessionStorage.setItem(zn,_o),dl(!0))}},Dn),(0,ee.useEffect)(()=>{Po(Ut)},[_r,Ut]),(0,ee.useEffect)(()=>{_r&&yt&&_r.focus()},[_r,yt]),(0,ee.useEffect)(()=>{if(jo&&_r){let Qn=function(On){let hr=On.target;if(ga.current){let zr=hr.scrollTop/hr.scrollHeight;ga.current.scrollTop=ga.current.scrollHeight*zr}};const Yn=_r.getScrollerElement();return Yn.addEventListener("scroll",Qn),()=>{Yn.removeEventListener("scroll",Qn)}}},[_r,jo]),(0,ee.useEffect)(()=>{if(_r&&Si){let Qn=function(Yn,On){Si(Yn,On)};return _r.on("beforeChange",Qn),()=>{_r.off("beforeChange",Qn)}}},[_r,Si]),(0,ee.useEffect)(()=>{if(_r&&ci){let Qn=function(){ci(_r.getValue())};return _r.on("blur",Qn),()=>{_r.off("blur",Qn)}}},[_r,ci]);function ir(Qn,Yn){var On=Qn.getDoc(),hr=On.getCursor(),zr=On.getLine(hr.line),Er=zr.charAt(hr.ch-1),wr=zr.lastIndexOf("@\u2581@",hr.ch),Br=zr.lastIndexOf("@\u2581\u2581@",hr.ch),Or=wr>Br?wr:Br,Wr=wr>Br?3:4;if(vr.indexOf(Er)===-1)return null;if(console.log("change1:",Yn,Qn,zr,hr,Or,wr,Br,Er),Or>=0&&hr.ch-Or<5){var pt=Or+Wr;return On.replaceRange("",{line:hr.line,ch:Or},{line:hr.line,ch:pt}),{line:hr.line,ch:pt}}return null}(0,ee.useEffect)(()=>{if(_r){let Qn=function(Yn,On){const hr=Yn.getValue();bl(hr),ll(new Date().getTime()),Yn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),xt&&(Xr?xt(hr,sn(hr)):xt(hr))};return _r.on("change",Qn),()=>{_r.off("change",Qn)}}},[_r,xt]),(0,ee.useEffect)(()=>{if(_r)if(br==null)_r.setValue(""),bl("");else{const Qn=window.scrollY||window.pageYOffset;br!==_r.getValue()&&(_r.setValue(br),bl(br),_r.setCursor(Qa?1:_r.lineCount(),0),window.scrollTo(0,Qn))}},[_r,br]);const Sr=(0,ee.useCallback)(Qn=>{const Yn=_r.getCursor(),On=_r.getSelection();let hr=On.split(`
`);switch(Qn){case"bold":return _r.replaceSelection("**"+On+"**"),On===""&&_r.setCursor(Yn.line,Yn.ch+2),_r.focus();case"italic":return _r.replaceSelection("*"+On+"*"),On===""&&_r.setCursor(Yn.line,Yn.ch+1),_r.focus();case"code":return _r.replaceSelection("`"+On+"`"),On===""&&_r.setCursor(Yn.line,Yn.ch+1),_r.focus();case"inline-latex":return rl("inline-latex"),_r.focus();case"latex":return _r.replaceSelection("```latex\n"+On+"\n```"),_r.setCursor(Yn.line+1,On.length+1),_r.focus();case"line-break":return _r.replaceSelection(`<br/>
`),_r.focus();case"list-ul":return On===""?_r.replaceSelection("- "+On):_r.replaceSelection(hr.map(zr=>zr===""?"":`- ${zr}`).join(`
`)),_r.focus();case"list-ol":return On===""?_r.replaceSelection("1. "+On):_r.replaceSelection(hr.map((zr,Er)=>zr===""?"":`${Er+1}. ${zr}`).join(`
`)),_r.focus();case"add-null-ch":to==null||to();return;case"add-signal":return On===""&&_r.setCursor(Yn.line,Yn.ch),_r.replaceSelection(Ur),_r.focus();case"add-multiple":return On===""&&_r.setCursor(Yn.line,Yn.ch),_r.replaceSelection(vr),_r.focus();case"inster-template-1":return On===""&&_r.setCursor(Yn.line,Yn.ch),_r.replaceSelection(ti),_r.focus();case"eraser":return _r.setValue(""),_r.focus();case"trigger-watch":return Po(!jo),_r.focus();case"trigger-full-screen":return el(!la),_r.focus();case jt:rl(jt);return;case Bn:rl(Bn);return;case sr:rl(sr);return;case Jt:rl(Jt);return;case"maths-latex":rl("maths-latex");return;case Dt:ho.current="",sessionStorage.removeItem("file_id"),rl(Dt);return;case Sn:rl(Sn);return;default:throw new Error}},[_r,jo,la]),Ce=(0,ee.useCallback)((Qn,Yn)=>{var On,hr,zr,Er,wr,Br;rl("");const{src:Or,alt:Wr,id:pt}=Qn||{};switch(No){case jt:const{title:mr,link:Ft}=Qn;return _r.replaceSelection(`[${mr}](${Ft})`),_r.focus();case Bn:const{language:It,content:Ht}=Qn;return _r.replaceSelection(["```"+It,Ht,"```"].join(`
`)),_r.focus();case"maths-latex":for(var vt=atob(Qn),mn=new Uint8Array(vt.length),ln=0;ln<vt.length;ln++)mn[ln]=vt.charCodeAt(ln);var $n=new Blob([mn],{type:"image/png"});(0,ht.I)($n,ii=>{ii.id?_r.replaceSelection(`![,](/api/attachments/${ii.id}?type=${ii.content_type})`):(ii==null?void 0:ii.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":_r.replaceSelection("`$$"+Qn+"$$`");break;case Gn:if(!pt)return;_r.focus(),_r.getValue().indexOf(Or)===-1?_r.replaceSelection(`<center><img id="${pt}" width="80%" src="${Or}" class="draw-flowchart" alt="${Wr||""}" /></center>`):document.getElementById(pt).src=pe.Z.API_SERVER+Or+"?t="+Date.now();try{setTimeout(()=>{ci(_r.getValue())},100)}catch(ii){}break;case sr:case Jt:const on=Yn,Vn=(zr=(hr=(On=on==null?void 0:on.name)==null?void 0:On.split("."))==null?void 0:hr.pop)==null?void 0:zr.call(hr);return((Er=on==null?void 0:on.type)==null?void 0:Er.indexOf("image"))>-1||!(on!=null&&on.type)?on!=null&&on.align||on!=null&&on.width?_r.replaceSelection(`<p style="text-align:${on.align||"initial"}"><img width="${on.width?on.width+"%":"initial"}" src="${Or}" alt="${Wr||""}" /></p>`):_r.replaceSelection(`<img width="100%" src="${Or}" alt="${Wr||""}" />`):((wr=on==null?void 0:on.type)==null?void 0:wr.indexOf("video"))>-1?_r.replaceSelection(`<video width="100%" controls src="${Or}"></video>`):((Br=on==null?void 0:on.type)==null?void 0:Br.indexOf("pdf"))>-1?_r.replaceSelection(`<a href="${Or}?type=${on.type}&disposition=inline" target="_blank">${on.name}</a>`):Kt.includes(Vn)?_r.replaceSelection(`<a href="${Or}?type=office&disposition=inline" target="_blank">${on.name}</a>`):_r.replaceSelection(`[${on.name}](${Or})`),_r.focus();case Sn:const{row:dr,col:Kn,align:rr}=Qn;let Fr=`
`;for(let ii=0;ii<dr;ii++){let Zr=[],Ar=[];for(let Vr=0;Vr<Kn;Vr++)ii===1&&Ar.push(gr[rr]),Zr.push(" ");ii===1&&(Fr+=`| ${Ar.join(" | ")} |
`),Fr+=`| ${Zr.join(Kn===1?"":" | ")} |
`}return _r.replaceSelection(Fr+`
`),_r.focus();default:throw new Error}},[_r,No]),Xe=(0,ee.useMemo)(()=>{switch(No){case jt:return ee.createElement(Vt,{callback:Ce,onCancel:nt});case Bn:return ee.createElement(Rt.Z,{callback:Ce,onCancel:nt});case sr:return ee.createElement(ht.Z,{callback:Ce,onCancel:nt});case Dt:return ee.createElement(me,{editImgId:ho.current,callback:Ce,onCancel:nt});case Sn:return ee.createElement(tn,{callback:Ce,onCancel:nt});case"maths-latex":return ee.createElement(Wt,{showSaveButton:!0,callback:Ce});case"inline-latex":return ee.createElement(qt.Z,{showSaveButton:!0,callback:Ce});default:return null}},[No]);function nt(){rl("")}(0,ee.useEffect)(()=>{if(ka.current){let Qn=function(wr){zr=!0,Er=wr.pageY},Yn=function(){zr=!1},On=function(wr){if(zr){let Br=wr.pageY-Er;Br<0&&(Br=0),Br>300&&(Br=300);let Or=fn+Br+"px";gl(Or)}},hr=ka.current,zr=!1,Er=0;return hr.addEventListener("mousedown",Qn),document.addEventListener("mousemove",On),document.addEventListener("mouseup",Yn),()=>{hr.removeEventListener("mousedown",Qn),document.removeEventListener("mousemove",On),document.removeEventListener("mouseup",Yn)}}},[_r,ka]),(0,ee.useEffect)(()=>{gl(fn)},[fn]);const ut=_n($t),ft=_n(Uo),Ct={width:ut,height:ft},wt=(0,ee.useMemo)(()=>{if(vl){let Qn=new Date(vl),Yn=Qn.getHours(),On=Qn.getMinutes(),hr=Qn.getSeconds();return Yn=Yn<10?"0"+Yn:Yn,On=On<10?"0"+On:On,hr=hr<10?"0"+hr:hr,`${Yn}:${On}:${hr}`}return 0},[vl]),sn=Qn=>{const Yn=[];if(Xr){let On=-1;Qn=Qn.replace(/(@▁▁@|@▁@)/g,function(hr,zr,Er){Yn.push({multiLine:hr!==Ur})})}return Yn};function En(){window.sessionStorage.removeItem(zn),dl(!1),ll(0)}function ur(){dl(!1),ll(0),_r.setValue(window.sessionStorage.getItem(zn))}(0,ee.useEffect)(()=>{Rr[No]&&No!==Jt&&No!==Dt&&setTimeout(()=>{const Qn=document.getElementsByClassName("markdown-popup-form")[0],Yn=window.innerWidth/2-Qn.offsetWidth/2,On=window.innerHeight/2-Qn.offsetHeight/2;tr(Yn),$i(On)},0)},[No]);const yr=Qn=>{Qn.preventDefault();const Yn=Qn.clientX-ar,On=Qn.clientY-Yr;document.body.onmousemove=hr=>{let zr=hr.clientX-Yn,Er=hr.clientY-On;const wr=document.getElementsByClassName("markdown-popup-form")[0],Br=window.innerWidth-wr.offsetWidth,Or=window.innerHeight-wr.offsetHeight;zr=Math.max(0,Math.min(zr,Br)),Er=Math.max(0,Math.min(Er,Or)),fr(hr.clientX,hr.clientY,Yn,On)&&(tr(zr),$i(Er))},document.body.onmouseup=function(){document.body.onmousemove=null}},fr=(Qn,Yn,On,hr)=>{const zr=document.body.clientHeight,Er=document.body.clientWidth;return Qn<20&&On>Qn||Qn>Er-20&&On<Qn||Yn<20&&hr>Yn||Yn>zr-20&&hr<Yn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:sa},ee.createElement("div",{className:`markdown-editor-container ${Jr} ${jo?"on-preview":""} ${Mn?"mini":""} ${la?"full-screen":""}`,style:Ct},ee.createElement(We,{insertTemp:Cn,watch:jo,fullScreen:la,showNullButton:gi,showNullProgramButton:Xr,onActionCallback:Sr,hidetoolBar:Gr,extraUse:zi}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:ia,placeholder:qi})),jo?ee.createElement("div",{ref:ga,className:"preview-container"},cn==="stex"&&ee.createElement(De,{value:_o}),cn!=="stex"&&ee.createElement(Ue.Z,{edit:!0,disabledFill:Li,showProgramFill:Xr,value:_o,openEditor:Qn=>{var Yn;ho.current=Qn,(Yn=ao.current)==null||Yn.setHeight("100vh"),setTimeout(()=>{rl("add-flowchart")},150)}})):null))),Hn?ee.createElement("a",{ref:ka,className:"editor-resize"}):null,No===Jt&&ee.createElement(kt,{callback:Ce,onCancel:nt}),No===Dt&&ee.createElement(me,{ref:ao,editImgId:ho.current,callback:Ce,onCancel:nt}),ee.createElement(st.Z,null,Rr[No]&&No!==Jt&&No!==Dt?ee.createElement(Bt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ar,top:Yr},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:yr},Rr[No]),open:!0,onCancel:nt,footer:null,destroyOnClose:!0,width:No===Dt?"1200px":null,height:No===Dt?"80vh":null,className:"markdown-popup-form"},Xe):null))}},70859:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ze},I:function(){return st}});var ee=te(22150),de=te(2453),ke=te(69677),Ge=te(93421),xe=te(31795),Me=te(78045),ue=te(71577),Ee=te(15476),fe=te(67294),we=te(52262),Ue=te(67294),De=Object.defineProperty,Ke=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,Ve=(at,Ze,Ae)=>Ze in at?De(at,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):at[Ze]=Ae,lt=(at,Ze)=>{for(var Ae in Ze||(Ze={}))_e.call(Ze,Ae)&&Ve(at,Ae,Ze[Ae]);if(Qe)for(var Ae of Qe(Ze))ge.call(Ze,Ae)&&Ve(at,Ae,Ze[Ae]);return at},He=(at,Ze)=>Ke(at,rt(Ze));const{useForm:Oe}=ee.default,ve={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}};var ze=({callback:at,onCancel:Ze})=>{const[Ae]=Oe();let mt=(0,fe.useRef)();function je(gt){mt.current.width=Ae.getFieldValue("width"),mt.current.align=Ae.getFieldValue("align"),at(gt,mt.current)}function it(gt,Pt){if(gt.status===-1){de.ZP.error(gt.message);return}Ae.setFieldsValue({src:`/api/attachments/${gt.id}`,type:Pt.type})}function qe(gt){let Pt=gt.target.files[0];mt.current=Pt,st(Pt,it)}return Ue.createElement(ee.default,He(lt({form:Ae},ye),{className:"upload-image-panel",onFinish:je,style:{width:470,overflow:"hidden"}}),Ue.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ue.createElement(ke.default,{style:ve})),Ue.createElement(We,{onFileChange:qe}))),Ue.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(ke.default,{style:{width:264}})),Ue.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(Ge.Z,null,Ue.createElement(ee.default.Item,{name:"width",style:{margin:0}},Ue.createElement(xe.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.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"}]})),Ue.createElement("aside",null,Ue.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(ue.ZP,{type:"default",onClick:Ze},"\u53D6\u6D88"))))};function We({onFileChange:at}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:at}))}function st(at,Ze){if(!at)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,we.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",at),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(je){Ze(JSON.parse(je.target.responseText),at)},!1),mt.addEventListener("error",function(je){console.error(je)},!1),mt.open("POST",`${Ee.KI}/api/attachments.json`),mt.send(Ae)}},76621:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ke}});var ee=te(67294),de=te(73935);class ke extends ee.Component{constructor(xe){super(xe);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,de.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(vn,Tt,te){"use strict";te.d(Tt,{i:function(){return ye},Z:function(){return We}});var ee={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"},de=te(57953),ke=te(83062),Ge=te(38703),xe=te(94184),Me=te.n(xe),ue=te(28706),Ee=te(26194),fe=te(52262),we=te(79005),Ue=te(20345),De=te(77882),Ke=te(31081),rt=te(75309),Qe=te(71979),_e=te(47558),ge=te(60345),Ve=te(66832),lt=te(96593),He=te(19664),Oe=te(91833),ve=te(67294);const ye=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:we,swimg:Ue},{name:"101\u8BA1\u5212",ptimg:De,swimg:Ke},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:rt,swimg:Qe},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:_e,swimg:ge},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ve,swimg:lt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:He,swimg:Oe}];var We=({className:st,dataSource:at=[],col:Ze=4,right:Ae,bottom:mt=23,precision:je=0,wrapWidth:it=1200,trackEventItems:qe,loading:gt,onRemove:Pt=()=>{},isCurrent:Xt=!0,showAlias:$e=!1,showProgress:Be=!1})=>{const St=Math.floor((it-(Ze-1)*Ae)/Ze),Vt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Rt=>(window.ENV==="build"&&(Rt.ptimg=`/react/build${Rt.ptimg}`,Rt.swimg=`/react/build${Rt.swimg}`),Rt));return ve.createElement(de.Z,{spinning:gt},ve.createElement("div",{className:Me()(ee.list,st)},!!(at!=null&&at.length)&&(at==null?void 0:at.map((Rt,ht)=>{var Bt,_t,Fn,kn,kt,un;const{name:Wn,id:An,identifier:Ie,featured:he,school_name:ce,image_url:me,excellent:pe,is_plan:le}=Rt;return ve.createElement("div",{key:An,className:Xt&&Be?ee.wrapisCurrent:ee.wrap,style:{width:St,marginRight:(1+ht)%Ze===0?0:Ae+je,marginBottom:mt}},ve.createElement("a",{className:ee.li,onClick:Le=>{Le.preventDefault(),Le.stopPropagation(),qe&&(0,ue.L9)([qe]),(0,ue.xg)(`/paths/${Ie}`)}},ve.createElement("div",{className:ee.img},ve.createElement("img",{className:ee.cover,src:`${me}`}),Xt&&(0,fe.bg)()&&(Rt==null?void 0:Rt.studying)&&ve.createElement("div",{className:`${ee.movebq} user-path-items`,onClick:Le=>{Le.stopPropagation(),Pt(Rt)}},ve.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ve.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Bt=Rt==null?void 0:Rt.subject_tags)==null?void 0:Bt.map((Le,dt)=>{var Nt,tn;if(dt===0){const Yt=(Nt=Vt.find(dn=>dn.name==Le))==null?void 0:Nt.swimg;return ve.createElement("img",{className:ee.sign,src:Yt,style:{left:"-4px"}})}const an=(tn=Vt.find(Yt=>Yt.name==Le))==null?void 0:tn.ptimg;return ve.createElement("img",{className:ee.sign,src:an,style:{left:`${48+52*(dt-1)+2*dt}px`}})}),ve.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Rt==null?void 0:Rt.excellent)&&ve.createElement("div",{className:ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ve.createElement("div",{className:ee.name},ve.createElement(ke.Z,{title:$e&&(Rt!=null&&Rt.excellent_alias_name)?ve.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Wn}`,ve.createElement("br",null),ve.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Rt==null?void 0:Rt.excellent_alias_name}`)):Wn},ve.createElement("span",{className:ee.e},$e&&(Rt==null?void 0:Rt.excellent_alias_name)||Wn))),Xt&&Be&&((_t=Rt==null?void 0:Rt.progress)==null?void 0:_t.all_score)!=0&&ve.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ve.createElement(Ge.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Fn=Rt==null?void 0:Rt.progress)==null?void 0:Fn.my_score)/((kn=Rt==null?void 0:Rt.progress)==null?void 0:kn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(kt=Rt==null?void 0:Rt.progress)==null?void 0:kt.my_score,"/",(un=Rt==null?void 0:Rt.progress)==null?void 0:un.all_score),(!Xt||!Be)&&ve.createElement("div",{className:ee.tags},ve.createElement("div",null,ve.createElement(ke.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ve.createElement("span",null,Rt.stages_count))),ve.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ve.createElement("span",null,Rt.members_count)))))))})),!at.length&&ve.createElement(Ee.Z,null)))}},78311:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Me}});var ee=te(67294),de={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"},ke=te(94184),Ge=te.n(ke),Me=({dataSource:ue=[],value:Ee,onChange:fe,className:we,style:Ue={}})=>ee.createElement("div",{style:Ue,className:Ge()(de.tabs,we)},ue.map(De=>ee.createElement("span",{onClick:()=>fe(De.id),className:Ee===De.id?de.active:"",key:De.id},De.name)))},64743:function(vn,Tt,te){"use strict";te.d(Tt,{jL:function(){return xe},w9:function(){return In},vv:function(){return Mn},dN:function(){return br},QD:function(){return pn},cQ:function(){return le.Z},vg:function(){return Ur},Oz:function(){return Lr},op:function(){return Uo},O5:function(){return Ct},_b:function(){return sa},t7:function(){return Ze},tT:function(){return je},Gi:function(){return ci},YG:function(){return cn},Ed:function(){return Gr},kT:function(){return Mr},qp:function(){return ge},Um:function(){return ye},K3:function(){return He},vr:function(){return Yr},qE:function(){return dl},Je:function(){return gt},wb:function(){return kn},rC:function(){return pe},lB:function(){return Wn},cq:function(){return Li},kO:function(){return to},tp:function(){return ze.Z},Si:function(){return En},k8:function(){return mr},Du:function(){return zr}});var ee=te(67294),de={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"},ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97Pm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sh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",xe=({dataSource:Ft=[],img:It,imgWidth:Ht=346,title:on,sunTitle:Vn,bannerExtraContent:dr})=>ee.createElement("div",{className:de.banner},ee.createElement("div",{className:de.content},ee.createElement("aside",null,ee.createElement("p",null,ee.createElement("b",null,on),ee.createElement("span",null,Vn)),Ft.length>0&&ee.createElement("div",{className:de.btns},Ft.map((Kn,rr)=>ee.createElement("div",{key:rr,onClick:Kn.click},Kn.name,Kn.sign?ee.createElement("img",{src:ke,width:39}):null))),dr),It&&ee.createElement("img",{style:{marginTop:33,marginRight:38},src:It,width:Ht}))),Me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ue=te(94184),Ee=te.n(ue),fe=te(96486),we=Object.defineProperty,Ue=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,rt=(Ft,It,Ht)=>It in Ft?we(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,Qe=(Ft,It)=>{for(var Ht in It||(It={}))De.call(It,Ht)&&rt(Ft,Ht,It[Ht]);if(Ue)for(var Ht of Ue(It))Ke.call(It,Ht)&&rt(Ft,Ht,It[Ht]);return Ft},ge=({dataSource:Ft=[],value:It,onChange:Ht,onTitleChange:on,className:Vn,title:dr,titleWidth:Kn=41,style:rr={},fontColor:Fr="#6A7283",showCount:ii,classNameActive:Zr,styleItem:Ar={}})=>{const[Vr,li]=(0,ee.useState)(0),[Mi,si]=(0,ee.useState)(!1),Kr=(0,ee.useRef)(null),Wi=(0,ee.useRef)(null);return(0,ee.useEffect)(()=>{var Zi;Ft.length!==0&&(((Zi=Kr==null?void 0:Kr.current)==null?void 0:Zi.clientHeight)>97?li(1):li(0)),Ft.length===0&&li(0),si(!1)},[Ft]),ee.createElement("div",{className:Ee()(Me.row,Vn),style:rr},ee.createElement("div",{onClick:(0,fe.throttle)(()=>on==null?void 0:on(),2e3),style:{width:Kn,marginTop:Mi?12:4},className:`${Me.title} ${on?"current":""}`},dr),ee.createElement("div",{className:Mi?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},ee.createElement("div",{className:Me.bar,ref:Wi,style:Vr>0?{height:Vr===1?97:"auto",overflow:Vr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ee.createElement("div",{className:Me.tag,ref:Kr},Ft==null?void 0:Ft.map(Zi=>ee.createElement("span",{onClick:()=>Ht(Zi.id),key:Zi.id,style:Qe(Qe({color:Fr},Ar),(Zi==null?void 0:Zi.style)||{}),className:It===Zi.id?Ee()(Zr||Me.active,Zi.classNameActive):""},ee.createElement("span",{title:Zi.name,className:Me.name},Zi.name),!!ii&&ee.createElement("span",{className:Me.num},Zi.count))))),!!Vr&&ee.createElement(ee.Fragment,null,Vr===1?ee.createElement("div",{onClick:()=>{var Zi;li(2),((Zi=Kr==null?void 0:Kr.current)==null?void 0:Zi.clientHeight)>245?si(!0):si(!1)},className:Me.action},"\u5C55\u5F00",ee.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ee.createElement("div",{onClick:()=>{Wi.current.scrollTop=0,li(1),si(!1)},className:Me.action},"\u6536\u8D77",ee.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ve={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},He=({dataSource:Ft=[],value:It,onChange:Ht,onTitleChange:on,className:Vn,title:dr,titleWidth:Kn=41,style:rr={},fontColor:Fr="#6A7283",showCount:ii,expand:Zr=!0})=>{const[Ar,Vr]=(0,ee.useState)(0),[li,Mi]=(0,ee.useState)(!1),si=(0,ee.useRef)(null),Kr=(0,ee.useRef)(null),[Wi,Zi]=(0,ee.useState)(Zr);return ee.createElement("div",{className:Ee()(Ve.row,Vn),style:rr},ee.createElement("div",{className:"flex item-center justify-between"},ee.createElement("div",{onClick:(0,fe.throttle)(()=>on==null?void 0:on(),2e3),style:{width:Kn,marginTop:li?12:4},className:`${Ve.title} ${on?"current":""}`},dr),ee.createElement("i",{className:`iconfont ${Wi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Wi?8:10},onClick:()=>Zi(!Wi)})),Wi&&ee.createElement("div",{className:li?`${Ve.tagsWrap} ${Ve.tagsBorderWrap}`:Ve.tagsWrap},ee.createElement("div",{className:Ve.fenge}),ee.createElement("div",{className:Ve.bar,ref:Kr},ee.createElement("div",{className:Ve.tag,ref:si},Ft==null?void 0:Ft.map(Na=>ee.createElement("span",{onClick:()=>Ht(Na.id),key:Na.id,style:{color:Fr},className:It===Na.id?Ve.active:""},ee.createElement("span",{title:Na.name,className:Ve.name},Na.name),!!ii&&ee.createElement("span",{className:Ve.num},Na.count)))))))},Oe={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},ye=({dataSource:Ft=[],value:It,onChange:Ht,onTitleChange:on,className:Vn,title:dr,titleWidth:Kn=41,style:rr={},fontColor:Fr="#fff",showCount:ii,expand:Zr=!0})=>{const[Ar,Vr]=(0,ee.useState)(0),[li,Mi]=(0,ee.useState)(!1),si=(0,ee.useRef)(null),Kr=(0,ee.useRef)(null),[Wi,Zi]=(0,ee.useState)(Zr);return ee.createElement("div",{className:Ee()(Oe.row,Vn),style:rr},ee.createElement("div",{className:"flex item-center justify-between"},ee.createElement("div",{onClick:(0,fe.throttle)(()=>on==null?void 0:on(),2e3),style:{width:Kn},className:`${Oe.title} ${on?"current":""}`},dr),ee.createElement("i",{className:`iconfont ${Wi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Wi?"#00DDC7":"#037F74",fontSize:Wi?10:12},onClick:()=>Zi(!Wi)})),Wi&&ee.createElement("div",{className:li?`${Oe.tagsWrap} ${Oe.tagsBorderWrap}`:Oe.tagsWrap},ee.createElement("div",{className:Oe.bar,ref:Kr},ee.createElement("div",{className:Oe.tag,ref:si},Ft==null?void 0:Ft.map(Na=>ee.createElement("span",{onClick:()=>Ht(Na.id),key:Na.id,style:{color:Fr},className:It===Na.id?Oe.active:""},ee.createElement("span",{title:Na.name,className:Oe.name},Na.name),!!ii&&ee.createElement("span",{className:Oe.num},Na.count)))))))},ze=te(78311),We={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"},st=te(69677),Ze=({dataSource:Ft=[],value:It="",onChange:Ht,onInputChange:on=()=>{},className:Vn,style:dr={},placeholder:Kn,allowClear:rr=!1})=>{var Fr;const[ii,Zr]=(0,ee.useState)(""),[Ar,Vr]=(0,ee.useState)("");(0,ee.useEffect)(()=>{var si;let Kr=It;(si=JSON.stringify(It))!=null&&si.includes("{")&&(Zr(It.id),Kr=It.value||"");try{Vr(decodeURIComponent(Kr||""))}catch(Wi){Vr(decodeURIComponent(Kr||""))}},[It]);const li=()=>{Ht(encodeURIComponent(Ar),ii||null)},Mi=si=>{si!==ii&&(Zr(si),Ht(encodeURIComponent(Ar),si))};return ee.createElement("div",{className:Ee()(We.input,Vn),style:dr},!!Ft.length&&ee.createElement("div",{className:We.dropdown},ee.createElement("div",{className:We.text},(Fr=Ft.find(si=>si.id===ii))==null?void 0:Fr.name,ee.createElement("i",{className:"iconfont icon-zhankai4"}),ee.createElement("b",{className:We.b1}),ee.createElement("b",{className:We.b2})),ee.createElement("div",{className:We.menu},Ft.map((si,Kr)=>ee.createElement("div",{key:Kr,onClick:()=>Mi(si.id)},si.name)))),ee.createElement(st.default,{onPressEnter:li,value:Ar,onChange:si=>{Vr(si.target.value),on(encodeURIComponent(si.target.value),ii||null)},bordered:!1,placeholder:Kn}),ee.createElement("i",{onClick:li,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ae={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},je=({dataSource:Ft=[],value:It="",onChange:Ht,onInputChange:on=()=>{},className:Vn,style:dr={},placeholder:Kn,allowClear:rr=!1})=>{var Fr;const[ii,Zr]=(0,ee.useState)(""),[Ar,Vr]=(0,ee.useState)("");(0,ee.useEffect)(()=>{var si;let Kr=It;(si=JSON.stringify(It))!=null&&si.includes("{")&&(Zr(It.id),Kr=It.value||"");try{Vr(decodeURIComponent(Kr||""))}catch(Wi){Vr(decodeURIComponent(Kr||""))}},[It]);const li=()=>{Ht(encodeURIComponent(Ar),ii||null)},Mi=si=>{si!==ii&&(Zr(si),Ht(encodeURIComponent(Ar),si))};return ee.createElement("div",{className:Ee()(Ae.input,Vn),style:dr},!!Ft.length&&ee.createElement("div",{className:Ae.dropdown},ee.createElement("div",{className:Ae.text},(Fr=Ft.find(si=>si.id===ii))==null?void 0:Fr.name,ee.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ee.createElement("div",{className:Ae.menu},Ft.map((si,Kr)=>ee.createElement("div",{key:Kr,onClick:()=>Mi(si.id)},si.name)))),ee.createElement(st.default,{onPressEnter:li,value:Ar,onChange:si=>{Vr(si.target.value),on(encodeURIComponent(si.target.value),ii||null)},bordered:!1,placeholder:Kn}),ee.createElement("i",{onClick:li,className:"iconfont icon-sousuo9 font14 pl10 current"}))},it={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"},gt=({value:Ft,onChange:It,className:Ht,total:on,pageSize:Vn,style:dr={}})=>{const Kn=Ft<2,rr=Ft>=Math.ceil(on/Vn);return on<=Vn?ee.createElement(ee.Fragment,null):ee.createElement("div",{className:Ee()(it.quickPager,Ht),style:dr},ee.createElement("div",{onClick:()=>{Kn||It(Ft-1,"prev")},className:Kn?it.disabled:""},"\u4E0A\u4E00\u9875"),ee.createElement("div",{onClick:()=>{rr||It(Ft+1,"next")},className:rr?it.disabled:""},"\u4E0B\u4E00\u9875"))},Pt={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"},Xt=te(57953),$e=te(83062),Be=te(12604),St=te(11320),Vt=te(28706),Rt=te(96908),ht=te(57177),Bt=te(81378),_t=te(26194),kn=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,trackEventItems:rr,loading:Fr})=>{const ii=Math.floor((Kn-(Ht-1)*on)/Ht);return ee.createElement(Xt.Z,{spinning:Fr},ee.createElement("div",{className:Ee()(Pt.list,Ft)},!!It.length&&It.map((Zr,Ar)=>{const{name:Vr,id:li,identifier:Mi,power:si,cover_image_id:Kr,pic:Wi}=Zr;return ee.createElement("div",{className:Pt.wrap,key:li,style:{width:ii,marginRight:(1+Ar)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{target:"_blank",href:`/shixuns/${Mi}/challenges`,className:Pt.li,onClick:Zi=>{Zi.preventDefault(),rr&&(0,Vt.L9)([rr]),si&&(0,Vt.xg)(`/shixuns/${Mi}/challenges`)}},ee.createElement("div",{className:Pt.img},ee.createElement("img",{className:Pt.cover,src:`${Wi}`}),Zr.is_jupyter&&ee.createElement("img",{className:Pt.sign,src:Rt}),Zr.is_jupyter_lab&&ee.createElement("img",{className:Pt.sign,src:ht}),Zr.is_unity_3d&&ee.createElement("img",{className:Pt.sign,src:Bt})),ee.createElement("div",{className:Pt.name},ee.createElement($e.Z,{title:Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:Pt.e},Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{className:Pt.tags},ee.createElement($e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ee.createElement("span",null,Zr.challenges_count))),!!Zr.myshixuns_count&&ee.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ee.createElement("span",null,Zr.myshixuns_count))),ee.createElement($e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ee.createElement("span",null,ee.createElement("span",null,Zr.level))),ee.createElement("div",{className:Pt.rate},ee.createElement(Be.Z,{allowHalf:!0,disabled:!0,defaultValue:Zr.score_info}),ee.createElement("span",null,"\xA0",Zr.score_info?`${Zr.score_info}\u5206`:"5\u5206")))),!si&&ee.createElement("div",{className:Pt.lockWrap},ee.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!It.length&&ee.createElement(_t.Z,null)))},kt={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Wn=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,wrapClassName:rr,trackEventItems:Fr,loading:ii})=>{const Zr=Math.floor((Kn-(Ht-1)*on)/Ht);return ee.createElement(Xt.Z,{spinning:ii},ee.createElement("div",{className:Ee()(kt.list,Ft)},!!It.length&&It.map((Ar,Vr)=>{const{name:li,id:Mi,identifier:si,power:Kr,cover_image_id:Wi,pic:Zi}=Ar;return ee.createElement("div",{className:Ee()(kt.wrap,rr),key:Mi,style:{width:Zr,marginRight:(1+Vr)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{target:"_blank",href:`/shixuns/${si}/challenges`,className:kt.li,onClick:Na=>{Na.preventDefault(),Fr&&(0,Vt.L9)([Fr]),Kr&&(0,Vt.xg)(`/shixuns/${si}/challenges`)}},ee.createElement("img",{src:te(79633),className:kt.titleBg}),ee.createElement("div",{className:kt.name},ee.createElement($e.Z,{title:li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:kt.e},li||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{style:{padding:"14px",paddingBottom:0}},ee.createElement("div",{className:kt.img},ee.createElement("img",{className:kt.cover,src:Wi?`${St.Z.API_SERVER}/api/attachments/${Wi}`:`${St.Z.IMG_SERVER+Zi}`}),Ar.is_jupyter&&ee.createElement("div",{className:kt.bq},"Jupyter"),Ar.is_jupyter_lab&&ee.createElement("div",{className:kt.bq},"JupyterLab"),Ar.is_unity_3d&&ee.createElement("div",{className:kt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ee.createElement("div",{className:"mt20 flex item-center justify-between"},ee.createElement("div",null,ee.createElement("span",{className:kt.text},"\u5B66\u4E60\u4EBA\u6570"),ee.createElement("span",{className:kt.value},Ar.myshixuns_count)),ee.createElement("div",null,ee.createElement("span",{className:kt.text},"\u56F0\u96BE\u7B49\u7EA7"),ee.createElement("span",{className:kt.value},Ar.level))),ee.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ee.createElement("div",null,ee.createElement("span",{className:kt.text},"\u5173\u5361\u6570"),ee.createElement("span",{className:kt.value},Ar.challenges_count)),ee.createElement("div",{className:kt.rate},ee.createElement(Be.Z,{allowHalf:!0,disabled:!0,defaultValue:Ar.score_info}),ee.createElement("span",{className:kt.value,style:{color:"#FF9C00"}},"\xA0",Ar.score_info?`${Ar.score_info}\u5206`:"5\u5206"))))),!Kr&&ee.createElement("div",{className:kt.lockWrap},ee.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!It.length&&ee.createElement(_t.Z,null)))},An={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aD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HzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",pe=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,trackEventItems:rr,loading:Fr,wrapClassName:ii,imgClassName:Zr})=>{const Ar=Math.floor((Kn-(Ht-1)*on)/Ht);return ee.createElement(Xt.Z,{spinning:Fr},ee.createElement("div",{className:Ee()(An.list,Ft)},!!It.length&&It.map((Vr,li)=>{const{name:Mi,id:si,identifier:Kr,power:Wi,cover_image_id:Zi,pic:Na}=Vr;return ee.createElement("div",{className:Ee()(An.wrap,ii),key:si,style:{width:Ar,marginRight:(1+li)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{target:"_blank",href:`/shixuns/${Kr}/challenges`,className:An.li,onClick:Ha=>{Ha.preventDefault(),rr&&(0,Vt.L9)([rr]),Wi&&(0,Vt.xg)(`/shixuns/${Kr}/challenges`)}},ee.createElement("div",{className:Ee()(An.img,Zr)},ee.createElement("img",{className:An.cover,src:Zi?`${St.Z.API_SERVER}/api/attachments/${Zi}`:`${St.Z.IMG_SERVER+Na}`}),Vr.is_jupyter&&ee.createElement("img",{className:An.sign,src:Ie}),Vr.is_jupyter_lab&&ee.createElement("img",{className:An.sign,src:he}),Vr.is_unity_3d&&ee.createElement("img",{className:An.sign,src:ce})),ee.createElement("div",{className:An.name},ee.createElement($e.Z,{title:Mi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:An.e},Mi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{className:An.tags},ee.createElement($e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ee.createElement("span",null,Vr.challenges_count))),!!Vr.myshixuns_count&&ee.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ee.createElement("span",null,Vr.myshixuns_count))),ee.createElement($e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ee.createElement("span",null,ee.createElement("span",null,Vr.level))),ee.createElement("div",{className:An.rate},ee.createElement(Be.Z,{allowHalf:!0,disabled:!0,defaultValue:Vr.score_info}),ee.createElement("span",null,"\xA0",Vr.score_info?`${Vr.score_info}\u5206`:"5\u5206")))),!Wi&&ee.createElement("div",{className:An.lockWrap},ee.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!It.length&&ee.createElement(_t.Z,null)))},le=te(5476),Le={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},dt=te(79005),Nt=te(20345),tn=te(77882),an=te(31081),Yt=te(75309),dn=te(71979),Mt=te(47558),Wt=te(60345),qt=te(66832),Gt=te(96593),jt=te(19664),sr=te(91833),Dt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Sn=(Ft,It,Ht)=>It in Ft?Dt(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,or=(Ft,It)=>{for(var Ht in It||(It={}))Gn.call(It,Ht)&&Sn(Ft,Ht,It[Ht]);if(Jt)for(var Ht of Jt(It))Bn.call(It,Ht)&&Sn(Ft,Ht,It[Ht]);return Ft};const gr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:dt,swimg:Nt},{name:"101\u8BA1\u5212",ptimg:tn,swimg:an},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Yt,swimg:dn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Mt,swimg:Wt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:qt,swimg:Gt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:jt,swimg:sr}];var Lr=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,trackEventItems:rr,loading:Fr,wrapClassName:ii,imgClassName:Zr,isArrow:Ar=!1,imgStyle:Vr={}})=>{const li=Math.floor((Kn-(Ht-1)*on)/Ht),[Mi,si]=(0,ee.useState)(),[Kr,Wi]=(0,ee.useState)(),Zi=Ha=>si(Ha),Na=()=>si(-1);return ee.createElement(Xt.Z,{spinning:Fr},ee.createElement("div",{className:Ee()(Le.list,Ft)},!!(It!=null&&It.length)&&(It==null?void 0:It.map((Ha,La)=>{var Ea;const{name:Ra,id:va,identifier:oo,featured:Ca,school_name:Qi,image_url:ja,excellent:bo,is_plan:ca}=Ha;return ee.createElement("div",{key:va,className:Ee()(Le.wrap,ii),style:{width:li,marginRight:(1+La)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{target:"_blank",href:`/paths/${oo}`,className:Le.li,onClick:Vo=>{Vo.preventDefault(),rr&&(0,Vt.L9)([rr]),(0,Vt.xg)(`/paths/${oo}`)}},ee.createElement("img",{src:te(39057),className:Le.titleBg}),ee.createElement("div",{className:Le.name},ee.createElement($e.Z,{title:Ra},ee.createElement("span",{className:Le.e,style:{color:Ar&&Mi===La?"#145DFF":"#000000"},onMouseEnter:()=>{Zi(La)},onMouseLeave:Na},Ra))),ee.createElement("div",{style:{padding:"14px",paddingBottom:0}},ee.createElement("div",{className:Ee()(Le.img,Zr)},ee.createElement("img",{className:Le.cover,style:or({},Vr),src:`${St.Z.IMG_SERVER+ja}`}),(Ea=Ha==null?void 0:Ha.subject_tags)==null?void 0:Ea.map((Vo,Go)=>{var tl,zo;if(Go===0){const kl=(tl=gr.find(Co=>Co.name==Vo))==null?void 0:tl.swimg;return ee.createElement("img",{className:Le.sign,src:kl,style:{left:"-4px"}})}const no=(zo=gr.find(kl=>kl.name==Vo))==null?void 0:zo.ptimg;return ee.createElement("img",{className:Le.sign,src:no,style:{left:`${48+52*(Go-1)+2*Go}px`}})}),ee.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ha==null?void 0:Ha.excellent)&&ee.createElement("div",{className:Le.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ee.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ee.createElement("div",null,ee.createElement("span",{className:Le.text},"\u7AE0\u8282\u6570"),ee.createElement("span",{className:Le.value},Ha.stages_count)),ee.createElement("div",null,ee.createElement("span",{className:Le.text},"\u5B66\u4E60\u4EBA\u6570"),ee.createElement("span",{className:Le.value},Ha.members_count))))))})),!It.length&&ee.createElement(_t.Z,null)))},Qr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},Ir=te(52262),Dn=te(67294);const cr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:dt,swimg:Nt},{name:"101\u8BA1\u5212",ptimg:tn,swimg:an},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Yt,swimg:dn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Mt,swimg:Wt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:qt,swimg:Gt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:jt,swimg:sr}];var Ur=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,trackEventItems:rr,loading:Fr,onRemove:ii=()=>{},isCurrent:Zr=!0,showAlias:Ar=!1,wrapClassName:Vr,imgClassName:li})=>{const Mi=Math.floor((Kn-(Ht-1)*on)/Ht),si=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Kr=>(window.ENV==="build"&&(Kr.ptimg=`/react/build${Kr.ptimg}`,Kr.swimg=`/react/build${Kr.swimg}`),Kr));return Dn.createElement(Xt.Z,{spinning:Fr},Dn.createElement("div",{className:Ee()(Qr.list,Ft)},!!(It!=null&&It.length)&&(It==null?void 0:It.map((Kr,Wi)=>{var Zi;const{name:Na,id:Ha,identifier:La,featured:Ea,school_name:Ra,image_url:va,excellent:oo,is_plan:Ca}=Kr;return Dn.createElement("div",{key:Ha,className:Ee()(Qr.wrap,Vr),style:{width:Mi,marginRight:(1+Wi)%Ht===0?0:on+dr,marginBottom:Vn}},Dn.createElement("a",{className:Qr.li,onClick:Qi=>{Qi.preventDefault(),Qi.stopPropagation(),rr&&(0,Vt.L9)([rr]),(0,Vt.xg)(`/paths/${La}`)}},Dn.createElement("div",{className:Ee()(Qr.img,li)},Dn.createElement("img",{className:Qr.cover,src:`${St.Z.IMG_SERVER+va}`}),Zr&&(0,Ir.bg)()&&(Kr==null?void 0:Kr.studying)&&Dn.createElement("div",{className:`${Qr.movebq} user-path-items`,onClick:Qi=>{Qi.stopPropagation(),ii(Kr)}},Dn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Dn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Zi=Kr==null?void 0:Kr.subject_tags)==null?void 0:Zi.map((Qi,ja)=>{var bo,ca;if(ja===0){const Go=(bo=si.find(tl=>tl.name==Qi))==null?void 0:bo.swimg;return Dn.createElement("img",{className:Qr.sign,src:Go,style:{left:"-4px"}})}const Vo=(ca=si.find(Go=>Go.name==Qi))==null?void 0:ca.ptimg;return Dn.createElement("img",{className:Qr.sign,src:Vo,style:{left:`${48+52*(ja-1)+2*ja}px`}})}),Dn.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Kr==null?void 0:Kr.excellent)&&Dn.createElement("div",{className:Qr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Dn.createElement("div",{className:Qr.name},Dn.createElement($e.Z,{title:Ar&&(Kr!=null&&Kr.excellent_alias_name)?Dn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Na}`,Dn.createElement("br",null),Dn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Kr==null?void 0:Kr.excellent_alias_name}`)):Na},Dn.createElement("span",{className:Qr.e},Ar&&(Kr==null?void 0:Kr.excellent_alias_name)||Na))),Dn.createElement("div",{className:Qr.tags},Dn.createElement("div",null,Dn.createElement($e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Dn.createElement("span",null,Dn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Dn.createElement("span",null,Kr.stages_count))),Dn.createElement($e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Dn.createElement("span",null,Dn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Dn.createElement("span",null,Kr.members_count)))))))})),!It.length&&Dn.createElement(_t.Z,null)))},ti={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0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1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",_n=te(67294),In=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,trackEventItems:rr,loading:Fr})=>{const ii=Math.floor((Kn-(Ht-1)*on)/Ht);return _n.createElement(Xt.Z,{spinning:Fr},_n.createElement("div",{className:Ee()(ti.list,Ft)},!!It.length&&It.map((Zr,Ar)=>{const{subject_identifier:Vr,id:li,identifier:Mi,power:si}=Zr,Kr=Zr.is_public!=0&&Zr.is_public;return _n.createElement("div",{className:ti.wrap,key:li,style:{width:ii,marginRight:(1+Ar)%Ht===0?0:on+dr,marginBottom:Vn}},_n.createElement("a",{className:ti.li,onClick:Wi=>{Wi.preventDefault(),rr&&(0,Vt.L9)([rr]),(0,Vt.xg)(Zr.first_category_url)}},_n.createElement("div",{className:ti.top},_n.createElement($e.Z,{title:Zr.name},_n.createElement("div",{className:ti.name},Zr.name)),_n.createElement("img",{className:ti.img,src:St.Z.IMG_SERVER+"/images/"+Zr.avatar_url}),_n.createElement("div",{className:ti.text,title:Zr.creator},Zr.creator),Vr&&_n.createElement("div",{className:ti.btns},_n.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),_n.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Kr&&_n.createElement("div",{className:ti.sign},"\u516C\u5F00")),_n.createElement("div",{className:ti.bottom},Zr.visits>0&&_n.createElement($e.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},_n.createElement("span",null,_n.createElement("i",{className:"iconfont icon-liulanyan"}),_n.createElement("span",null,Zr.visits))),Zr.course_members_count>0&&_n.createElement($e.Z,{title:"\u6210\u5458",placement:"bottom"},_n.createElement("span",null,_n.createElement("i",{className:"iconfont icon-chengyuan"}),Zr.course_members_count)),Zr.tasks_count>0&&_n.createElement($e.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},_n.createElement("span",null,_n.createElement("i",{className:"iconfont icon-zuoye"}),Zr.tasks_count)),Zr.is_end?_n.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):_n.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Zr.is_accessible&&_n.createElement("div",{className:ti.lockWrap},_n.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),_n.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!It.length&&_n.createElement(_t.Z,null)))},nr={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},Rr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJa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Width:Kn=1200,wrapClassName:rr,trackEventItems:Fr,loading:ii})=>{const Zr=Math.floor((Kn-(Ht-1)*on)/Ht);return ee.createElement(Xt.Z,{spinning:ii},ee.createElement("div",{className:Ee()(nr.list,Ft)},!!It.length&&It.map((Ar,Vr)=>{const{subject_identifier:li,id:Mi,identifier:si,power:Kr}=Ar,Wi=Ar.is_public!=0&&Ar.is_public;return ee.createElement("div",{className:Ee()(`${nr.wrap} ${Ar.is_accessible?"":nr.warpStyle}`,rr),key:Mi,style:{width:Zr,marginRight:(1+Vr)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{className:nr.li,onClick:Zi=>{Zi.preventDefault(),Fr&&(0,Vt.L9)([Fr]),(0,Vt.xg)(Ar.first_category_url)}},ee.createElement("div",{className:nr.creator},ee.createElement("img",{className:nr.img,src:St.Z.IMG_SERVER+"/images/"+Ar.avatar_url}),ee.createElement("div",{className:nr.text,title:Ar.creator},Ar.creator)),ee.createElement("div",{className:nr.top},ee.createElement($e.Z,{title:Ar.name},ee.createElement("div",{className:nr.name},Ar.name)),Wi&&ee.createElement("div",{className:nr.sign},"\u516C\u5F00")),ee.createElement("div",{className:nr.middle},ee.createElement("div",{className:nr.row,style:{marginBottom:6}},ee.createElement("div",null,ee.createElement("span",{className:nr.text},"\u8BBF\u95EE\u91CF"),ee.createElement("span",{className:nr.value},(Ar==null?void 0:Ar.visits)||0)),ee.createElement("div",null,ee.createElement("span",{className:nr.text},"\u6210\u5458"),ee.createElement("span",{className:nr.value},(Ar==null?void 0:Ar.course_members_count)||0))),ee.createElement("div",{className:nr.row},ee.createElement("div",null,ee.createElement("span",{className:nr.text,style:{width:42}},"\u4F5C",ee.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ee.createElement("span",{className:nr.value},(Ar==null?void 0:Ar.tasks_count)||0)),ee.createElement("div",null,ee.createElement("span",{className:nr.text},"\u72B6\u6001"),Ar.is_end?ee.createElement("span",{className:nr.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ee.createElement("span",{className:nr.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),li&&ee.createElement("div",{className:nr.btns},ee.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ee.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Ar.is_accessible&&ee.createElement("div",{className:nr.lockWrap},ee.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!It.length&&ee.createElement(_t.Z,null)))},xt={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7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FmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Mn=({className:Ft,dataSource:It=[],col:Ht=4,right:on,bottom:Vn=23,precision:dr=0,wrapWidth:Kn=1200,wrapClassName:rr,trackEventItems:Fr,loading:ii})=>{const Zr=Math.floor((Kn-(Ht-1)*on)/Ht);return ee.createElement(Xt.Z,{spinning:ii},ee.createElement("div",{className:Ee()(xt.list,Ft)},!!It.length&&It.map((Ar,Vr)=>{const{subject_identifier:li,id:Mi,identifier:si,power:Kr}=Ar,Wi=Ar.is_public!=0&&Ar.is_public;return ee.createElement("div",{className:Ee()(`${xt.wrap} ${Ar.is_accessible?"":xt.warpStyle}`,rr),key:Mi,style:{width:Zr,marginRight:(1+Vr)%Ht===0?0:on+dr,marginBottom:Vn}},ee.createElement("a",{className:xt.li,onClick:Zi=>{Zi.preventDefault(),Fr&&(0,Vt.L9)([Fr]),(0,Vt.xg)(Ar.first_category_url)}},ee.createElement("div",{className:xt.creator},ee.createElement("img",{className:xt.img,src:St.Z.IMG_SERVER+"/images/"+Ar.avatar_url}),ee.createElement("div",{className:xt.text,title:Ar.creator},Ar.creator)),ee.createElement("div",{className:xt.top},ee.createElement($e.Z,{title:Ar.name},ee.createElement("div",{className:xt.name},Ar.name)),Wi&&ee.createElement("div",{className:xt.sign})),ee.createElement("div",{className:xt.middle},ee.createElement("div",{className:xt.row,style:{marginBottom:6}},ee.createElement("div",null,ee.createElement("span",{className:xt.text},"\u8BBF\u95EE\u91CF"),ee.createElement("span",{className:xt.value},(Ar==null?void 0:Ar.visits)||0)),ee.createElement("div",null,ee.createElement("span",{className:xt.text},"\u6210\u5458"),ee.createElement("span",{className:xt.value},(Ar==null?void 0:Ar.course_members_count)||0))),ee.createElement("div",{className:xt.row},ee.createElement("div",null,ee.createElement("span",{className:xt.text,style:{width:42}},"\u4F5C",ee.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ee.createElement("span",{className:xt.value},(Ar==null?void 0:Ar.tasks_count)||0)),ee.createElement("div",null,ee.createElement("span",{className:xt.text},"\u72B6\u6001"),Ar.is_end?ee.createElement("span",{className:xt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ee.createElement("span",{className:xt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),li&&ee.createElement("div",{className:xt.btns},ee.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ee.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Ar.is_accessible&&ee.createElement("div",{className:xt.lockWrap},ee.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!It.length&&ee.createElement(_t.Z,null)))},yt={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"},Ut=te(35973),cn=({dataSource:Ft=[],value:It,onChange:Ht,className:on,style:Vn={},tabBarExtraContent:dr})=>ee.createElement("div",{className:Ee()(yt.tabs,on),style:Vn},ee.createElement("div",{className:yt.tabsWrap},Ft.map((Kn,rr)=>ee.createElement("aside",{className:yt.tab,onClick:()=>{Ht(Kn.id),Kn.link&&Ut.history.push(Kn.link)},key:rr},ee.createElement("div",{className:It===Kn.id?yt.active:""},Kn.name),(Kn==null?void 0:Kn.resetCount)==null&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement("span",null,"\uFF08",Kn==null?void 0:Kn.total,"\uFF09"),(Kn==null?void 0:Kn.resetCount)!==void 0&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement($e.Z,{title:(Kn==null?void 0:Kn.tip)!=null?Kn==null?void 0:Kn.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},Kn==null?void 0:Kn.resetCount),"/",ee.createElement("span",null,Kn==null?void 0:Kn.total),"\uFF09"))))),ee.createElement("div",{className:yt.tabBar},dr)),zn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Mr=({dataSource:Ft=[],value:It,onChange:Ht,className:on,style:Vn={},tabBarExtraContent:dr})=>ee.createElement("div",{className:Ee()(zn.tabs,on),style:Vn},ee.createElement("div",{className:zn.tabsWrap},Ft.map((Kn,rr)=>ee.createElement("aside",{className:zn.tab,onClick:()=>{Ht(Kn.id),Kn.link&&Ut.history.push(Kn.link)},key:rr},ee.createElement("div",{className:It===Kn.id?zn.active:""},Kn.name),(Kn==null?void 0:Kn.resetCount)==null&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement("span",null,"\uFF08",Kn==null?void 0:Kn.total,"\uFF09"),(Kn==null?void 0:Kn.resetCount)!==void 0&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement($e.Z,{title:(Kn==null?void 0:Kn.tip)!=null?Kn==null?void 0:Kn.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},Kn==null?void 0:Kn.resetCount),"/",ee.createElement("span",null,Kn==null?void 0:Kn.total),"\uFF09"))))),ee.createElement("div",{className:zn.tabBar},dr)),gi={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},Gr=({dataSource:Ft=[],value:It,onChange:Ht,className:on,style:Vn={},tabBarExtraContent:dr})=>ee.createElement("div",{className:Ee()(gi.tabs,on),style:Vn},ee.createElement("div",{className:gi.tabsWrap},Ft.map((Kn,rr)=>ee.createElement("aside",{className:`${gi.tab} ${It===Kn.id?gi.active:""}`,onClick:()=>{Ht(Kn.id),Kn.link&&Ut.history.push(Kn.link)},key:rr},ee.createElement("div",null,Kn.name),(Kn==null?void 0:Kn.resetCount)==null&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement("span",null,"\uFF08",Kn==null?void 0:Kn.total,"\uFF09"),(Kn==null?void 0:Kn.resetCount)!==void 0&&(Kn==null?void 0:Kn.total)!==void 0&&ee.createElement($e.Z,{title:(Kn==null?void 0:Kn.tip)!=null?Kn==null?void 0:Kn.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},Kn==null?void 0:Kn.resetCount),"/",ee.createElement("span",null,Kn==null?void 0:Kn.total),"\uFF09"))))),ee.createElement("div",{className:gi.tabBar},dr)),ci=({className:Ft,style:It={},children:Ht})=>ee.createElement("div",{className:Ee()(Ft),style:It},Ht),Si={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"},Jn=te(85418),Jr=te(68508);const Oa=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Li=({sortValue:Ft,dropValue:It,className:Ht,onSort:on,onDrop:Vn,dataSource:dr=Oa})=>{var Kn;return ee.createElement("div",{className:Ee()(Si.orderWrap,Ht)},ee.createElement(Jn.Z,{dropdownRender:()=>ee.createElement(Jr.default,null,dr.map((rr,Fr)=>ee.createElement(Jr.default.Item,{key:Fr,onClick:()=>Vn(rr.id)},rr.name)))},ee.createElement("span",{className:Si.orderTextWrap},(Kn=dr.find(rr=>It===rr.id))==null?void 0:Kn.name)),ee.createElement("span",{className:Si.orderIconWrap},ee.createElement("span",{className:Si.orderAsc},ee.createElement("i",{className:Ft==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Si.cursorPointer} ${Si.active}`:`iconfont icon-sanjiaoxing-up font12 ${Si.cursorPointer}`,onClick:()=>on(Ft==="asc"?"desc":"asc")})),ee.createElement("span",{className:Si.orderDesc},ee.createElement("i",{className:Ft==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Si.cursorPointer} ${Si.active}`:`iconfont icon-sanjiaoxing-down font12 ${Si.cursorPointer}`,onClick:()=>on(Ft==="asc"?"desc":"asc")}))))},qi={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const $a=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var to=({sortValue:Ft,dropValue:It,className:Ht,onSort:on,onDrop:Vn,dataSource:dr=$a})=>{var Kn;return ee.createElement("div",{className:Ee()(qi.orderWrap,Ht)},ee.createElement(Jn.Z,{dropdownRender:()=>ee.createElement(Jr.default,null,dr.map((rr,Fr)=>ee.createElement(Jr.default.Item,{key:Fr,onClick:()=>Vn(rr.id)},rr.name)))},ee.createElement("span",{className:qi.orderTextWrap},(Kn=dr.find(rr=>It===rr.id))==null?void 0:Kn.name)),ee.createElement("span",{className:qi.orderIconWrap},ee.createElement("span",{className:qi.orderAsc},ee.createElement("i",{className:Ft==="asc"?`iconfont icon-sanjiaoxing-up font12 ${qi.cursorPointer} ${qi.active}`:`iconfont icon-sanjiaoxing-up font12 ${qi.cursorPointer}`,onClick:()=>on(Ft==="asc"?"desc":"asc")})),ee.createElement("span",{className:qi.orderDesc},ee.createElement("i",{className:Ft==="desc"?`iconfont icon-sanjiaoxing-down font12 ${qi.cursorPointer} ${qi.active}`:`iconfont icon-sanjiaoxing-down font12 ${qi.cursorPointer}`,onClick:()=>on(Ft==="asc"?"desc":"asc")}))))},_r={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",ThemeOne:"ThemeOne___iCQio"},Wo=te(71577),_o=te(52810),bl=Object.defineProperty,jo=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,el=(Ft,It,Ht)=>It in Ft?bl(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,No=(Ft,It)=>{for(var Ht in It||(It={}))Po.call(It,Ht)&&el(Ft,Ht,It[Ht]);if(jo)for(var Ht of jo(It))la.call(It,Ht)&&el(Ft,Ht,It[Ht]);return Ft},rl=(Ft,It)=>{var Ht={};for(var on in Ft)Po.call(Ft,on)&&It.indexOf(on)<0&&(Ht[on]=Ft[on]);if(Ft!=null&&jo)for(var on of jo(Ft))It.indexOf(on)<0&&la.call(Ft,on)&&(Ht[on]=Ft[on]);return Ht},vl=(Ft,It,Ht)=>new Promise((on,Vn)=>{var dr=Fr=>{try{rr(Ht.next(Fr))}catch(ii){Vn(ii)}},Kn=Fr=>{try{rr(Ht.throw(Fr))}catch(ii){Vn(ii)}},rr=Fr=>Fr.done?on(Fr.value):Promise.resolve(Fr.value).then(dr,Kn);rr((Ht=Ht.apply(Ft,It)).next())}),Uo=Ft=>{var It=Ft,{className:Ht,style:on,children:Vn,loading:dr=!1,openLoading:Kn,onClick:rr=()=>{},size:Fr="middle",shape:ii="round",theme:Zr}=It,Ar=rl(It,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Vr,li]=(0,ee.useState)(!1),Mi=(0,ee.useMemo)(()=>{switch(Zr){case _o.Fy.THEMEONE:return _r.ThemeOne;case _o.Fy.DEFAULT:default:return _r.btn}},[Zr]);return ee.createElement(Wo.ZP,No({onClick:(0,fe.throttle)(si=>vl(void 0,null,function*(){Kn&&li(!0);try{yield rr(si)}catch(Kr){console.log("error",Kr)}Kn&&li(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(Mi,_r[`${Fr}-${ii}`],Ht),style:on,size:Fr,shape:ii,loading:Vr||dr},Ar),Vn)},gl={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"},dl=({className:Ft,style:It,children:Ht=null,onClick:on,title:Vn})=>ee.createElement("div",{className:Ee()(gl.head,Ft),style:It},ee.createElement("span",{className:"primary-hover",onClick:on},ee.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ee.createElement("b",{title:Vn},Vn),ee.createElement("div",{className:gl.node},Ht)),io={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"},pn=({confirmShow:Ft=!0,confirmTitle:It,confirmClick:Ht,cancelShow:on=!0,cancelTitle:Vn,cancelClick:dr,className:Kn,style:rr,confirmLoading:Fr=!1})=>ee.createElement("div",{className:Ee()(io.btns,Kn),style:rr},Ft&&ee.createElement(Wo.ZP,{loading:Fr,onClick:Ht,type:"primary",className:io.confirm},It),on&&ee.createElement(Wo.ZP,{onClick:dr,className:io.cancel},Vn)),ar={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"},Yr=({className:Ft,style:It={},LeftContent:Ht,children:on,RightContent:Vn})=>ee.createElement("div",{className:Ee()(ar.fixedBottom,Ft),style:It},ee.createElement("div",{className:ar.wrap},ee.createElement("div",{className:ar.left},Ht),ee.createElement("div",{className:ar.center},on),ee.createElement("div",{className:ar.right},Vn))),$i={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"},sa=({className:Ft,style:It={},dataSource:Ht=[]})=>ee.createElement("div",{className:Ee()($i.crumbs,Ft),style:It},Ht.map((on,Vn)=>Vn<Ht.length-1?ee.createElement(ee.Fragment,{key:Vn},on.path||on.onClick?ee.createElement("span",{className:$i.hover,onClick:on!=null&&on.onClick?on.onClick:()=>Ut.history.push(on.path)},on.name):ee.createElement("span",null,on.name),ee.createElement("span",null,"\xA0",">","\xA0")):ee.createElement("span",{key:Vn,style:{color:"#5F6368"}},on.name))),ka=te(55054),ga=Object.defineProperty,ho=Object.defineProperties,ao=Object.getOwnPropertyDescriptors,mo=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,Sr=(Ft,It,Ht)=>It in Ft?ga(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,Ce=(Ft,It)=>{for(var Ht in It||(It={}))Un.call(It,Ht)&&Sr(Ft,Ht,It[Ht]);if(mo)for(var Ht of mo(It))ir.call(It,Ht)&&Sr(Ft,Ht,It[Ht]);return Ft},Xe=(Ft,It)=>ho(Ft,ao(It)),nt=(Ft,It)=>{var Ht={};for(var on in Ft)Un.call(Ft,on)&&It.indexOf(on)<0&&(Ht[on]=Ft[on]);if(Ft!=null&&mo)for(var on of mo(Ft))It.indexOf(on)<0&&ir.call(Ft,on)&&(Ht[on]=Ft[on]);return Ht};const{Countdown:ut}=ka.default;var Ct=Ft=>{var It=Ft,{onChange:Ht}=It,on=nt(It,["onChange"]);const[Vn,dr]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{typeof Vn=="number"&&Vn>=0&&Ht(Vn)},[Vn]);const Kn=rr=>{const Fr=Math.floor(rr/1e3);dr(Fr)};return ee.createElement(ut,Xe(Ce({},on),{onChange:Kn}))},wt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},En=({DataProps:Ft,className:It,style:Ht={}})=>{var on;return ee.createElement("div",{className:Ee()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",wt.ClassRoomItem,It),style:Ht,onClick:()=>{(0,Vt.xg)(Ft==null?void 0:Ft.first_category_url)}},ee.createElement("div",{className:"flex flex-col item-center"},ee.createElement("img",{src:`${(on=St.Z)==null?void 0:on.IMG_SERVER}/images/${Ft==null?void 0:Ft.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Ft==null?void 0:Ft.subject_identifier)&&ee.createElement("div",{className:"mt-40px"},ee.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ee.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ee.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ee.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Ft!=null&&Ft.is_public)&&ee.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ee.createElement("span",{className:Ee()("text-16px font-medium",wt.TitleDom)},Ft==null?void 0:Ft.name)),ee.createElement("div",{className:"c-grey-333 font-medium"},Ft==null?void 0:Ft.creator),ee.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Ft==null?void 0:Ft.course_members_count),ee.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ee.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Ft==null?void 0:Ft.tasks_count),Ft!=null&&Ft.is_end?ee.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ee.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},ur=Object.defineProperty,yr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,Yn=(Ft,It,Ht)=>It in Ft?ur(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,On=(Ft,It)=>{for(var Ht in It||(It={}))fr.call(It,Ht)&&Yn(Ft,Ht,It[Ht]);if(yr)for(var Ht of yr(It))Qn.call(It,Ht)&&Yn(Ft,Ht,It[Ht]);return Ft},zr=({DataProps:Ft=[],selectValue:It,onChange:Ht,className:on,style:Vn={},extra:dr,classNameItem:Kn,styleItem:rr={},barHidden:Fr})=>{const[ii,Zr]=(0,ee.useState)();return(0,ee.useEffect)(()=>{Zr(Array.isArray(It)?It:[It])},[It]),ee.createElement("div",{className:Ee()("flex px-20px py-10px gap-40px",on),style:On({borderBottom:"1px solid #D3F0FF"},Vn)},Ft==null?void 0:Ft.map(Ar=>ee.createElement("div",{key:Ar==null?void 0:Ar.id,className:Ee()("flex item-center justify-center current c-grey-333 text-16 relative",Kn,Ar==null?void 0:Ar.className),style:On(On({color:ii!=null&&ii.includes(Ar==null?void 0:Ar.id)?"#1890FF":"",minWidth:88},rr),(Ar==null?void 0:Ar.style)||{}),onClick:Vr=>{Ht==null||Ht({domEvent:Vr,item:Ar}),Ar!=null&&Ar.link&&Ut.history.push(Ar==null?void 0:Ar.link)}},Ar==null?void 0:Ar.name,!Fr&&(ii==null?void 0:ii.includes(Ar==null?void 0:Ar.id))&&ee.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ee.createElement("div",{className:"ml-auto"},dr))},Er=Object.defineProperty,wr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,vt=(Ft,It,Ht)=>It in Ft?Er(Ft,It,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Ft[It]=Ht,mn=(Ft,It)=>{for(var Ht in It||(It={}))Wr.call(It,Ht)&&vt(Ft,Ht,It[Ht]);if(Or)for(var Ht of Or(It))pt.call(It,Ht)&&vt(Ft,Ht,It[Ht]);return Ft},ln=(Ft,It)=>wr(Ft,Br(It)),mr=({value:Ft,onChange:It,onInputChange:Ht,className:on,style:Vn={},InputProps:dr})=>{const[Kn,rr]=(0,ee.useState)(Ft);return ee.createElement("div",{className:Ee()("flex item-center rounded-full px-10px py-2px",on),style:mn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Vn)},ee.createElement(st.default,ln(mn({bordered:!1},dr),{onChange:Fr=>{rr(Fr.target.value),Ht==null||Ht(encodeURIComponent(Fr.target.value))},onPressEnter:Fr=>{It==null||It({domEvent:Fr,item:{value:Kn}})}})),ee.createElement("img",{className:"h-22px current",src:te(25365),height:22,onClick:Fr=>{It==null||It({domEvent:Fr,item:{value:Kn}})}}))}},99914:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});var ee=te(67294);function de(ke,Ge){const xe=(0,ee.useRef)();(0,ee.useEffect)(()=>{xe.current=ke}),(0,ee.useEffect)(()=>{function Me(){xe.current()}if(Ge!==null){let ue=setInterval(Me,Ge);return()=>clearInterval(ue)}},[Ge])}},96707:function(vn,Tt,te){"use strict";te.d(Tt,{h:function(){return ee}});var ee=(de=>(de[de.NOMATCH=-1]="NOMATCH",de[de.OK=0]="OK",de[de.TIMEOUT=2]="TIMEOUT",de[de.PODFAILURE=3]="PODFAILURE",de[de.COMPILEFAILURE=4]="COMPILEFAILURE",de[de.EXECUTEFAILURE=5]="EXECUTEFAILURE",de[de.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",de))(ee||{})},88742:function(vn,Tt,te){"use strict";te.d(Tt,{H7:function(){return Qe},MK:function(){return rt},MU:function(){return we},X6:function(){return De},bM:function(){return fe},fi:function(){return _e},fu:function(){return Ee},n4:function(){return ge},rX:function(){return Ke},vl:function(){return Ve},zO:function(){return Ue}});var ee=te(33170),de=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Me=(lt,He,Oe)=>He in lt?de(lt,He,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):lt[He]=Oe,ue=(lt,He)=>{for(var Oe in He||(He={}))Ge.call(He,Oe)&&Me(lt,Oe,He[Oe]);if(ke)for(var Oe of ke(He))xe.call(He,Oe)&&Me(lt,Oe,He[Oe]);return lt};function Ee(lt,He){return(0,ee.U2)(`myproblems/${lt}.json`,ue({hidePopLogin:!0},He||{}))}function fe(lt,He){return(0,ee.v_)(`myproblems/${lt}/code_submit.json`,He)}function we(lt,He){return(0,ee.v_)(`myproblems/${lt}/code_debug.json`,He)}function Ue(lt,He){return He.language&&(He.language=encodeURIComponent(He.language)),(0,ee.U2)(`myproblems/${lt}/submit_records.json`,He)}function De(lt){return(0,ee.U2)("myproblems/record_detail.json",{id:lt})}function Ke(lt,He){return(0,ee.U2)(`myproblems/${lt}/result.json`,{mode:He})}function rt(lt,He){return(0,ee.v_)(`myproblems/${lt}/add_notes.json`,He)}function Qe(lt,He){return(0,ee.v_)(`myproblems/${lt}/restore_initial_code.json`,He)}function _e(lt){return(0,ee.v_)(`myproblems/${lt}/sync_code.json`)}function ge(lt,He){return(0,ee.v_)(`myproblems/${lt}/update_code.json`,He)}function Ve(lt,He){return(0,ee.v_)(`discusses/${lt}/plus.json`,He)}},38884:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ol}});var ee=te(67294),de={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"},ke=te(22150),Ge=te(83062),xe=te(71577),Me=te(14446),ue=te(31795),Ee=te(2453),fe=te(69677),we=te(96074),Ue=te(84567),De=te(71230),Ke=te(15746),rt=te(28452),Qe=te(55241),_e=Object.defineProperty,ge=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,He=(Lt,rn,gn)=>rn in Lt?_e(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,Oe=(Lt,rn)=>{for(var gn in rn||(rn={}))Ve.call(rn,gn)&&He(Lt,gn,rn[gn]);if(ge)for(var gn of ge(rn))lt.call(rn,gn)&&He(Lt,gn,rn[gn]);return Lt};const ve=Lt=>React.createElement("svg",Oe({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Lt),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 ye="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",ze=te(35598),We=te(35973),st=te(28706),at=te(33170),Ze=Object.defineProperty,Ae=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,it=(Lt,rn,gn)=>rn in Lt?Ze(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,qe=(Lt,rn)=>{for(var gn in rn||(rn={}))mt.call(rn,gn)&&it(Lt,gn,rn[gn]);if(Ae)for(var gn of Ae(rn))je.call(rn,gn)&&it(Lt,gn,rn[gn]);return Lt};const gt=Lt=>React.createElement("svg",qe({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Lt),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 Pt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Xt=Object.defineProperty,$e=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Vt=(Lt,rn,gn)=>rn in Lt?Xt(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,Rt=(Lt,rn)=>{for(var gn in rn||(rn={}))Be.call(rn,gn)&&Vt(Lt,gn,rn[gn]);if($e)for(var gn of $e(rn))St.call(rn,gn)&&Vt(Lt,gn,rn[gn]);return Lt};const ht=Lt=>React.createElement("svg",Rt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Lt),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 Bt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",_t=te(14375),Fn=te(91304),kn=te(73646),kt={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"},un=te(67294),Wn=Object.defineProperty,An=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,pe=(Lt,rn,gn)=>rn in Lt?Wn(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,le=(Lt,rn)=>{for(var gn in rn||(rn={}))ce.call(rn,gn)&&pe(Lt,gn,rn[gn]);if(he)for(var gn of he(rn))me.call(rn,gn)&&pe(Lt,gn,rn[gn]);return Lt},Le=(Lt,rn)=>An(Lt,Ie(rn)),dt=(Lt,rn)=>{var gn={};for(var Xn in Lt)ce.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&he)for(var Xn of he(Lt))rn.indexOf(Xn)<0&&me.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const Nt=null,tn=(Lt,rn)=>{var gn=Lt,{globalSetting:Xn,loading:ta,dispatch:ui,isEdit:wi,editData:bi}=gn,Oi=dt(gn,["globalSetting","loading","dispatch","isEdit","editData"]);const[Pa,fa]=(0,ee.useState)(""),[ro,Qo]=(0,ee.useState)(""),[xo,xi]=(0,ee.useState)([]),[Sa,Yi]=(0,ee.useState)(""),[Ai,ki]=(0,ee.useState)(),[ya,Ye]=(0,ee.useState)(!1),[tt,zt]=(0,ee.useState)({}),[Ot,hn]=(0,ee.useState)([]);(0,ee.useEffect)(()=>{!bi||!wi||(fa(bi==null?void 0:bi.name),Qo(bi==null?void 0:bi.analysis),ki(bi==null?void 0:bi.is_ordered),zt(bi),Ye(!0))},[bi]),(0,ee.useEffect)(()=>{if(!ya)return;const ni=bi==null?void 0:bi.standard_answer.map(fi=>fi==null?void 0:fi.answer_text);xi(ni);const $r=bi==null?void 0:bi.standard_answer.map(fi=>fi==null?void 0:fi.score);hn($r),Ye(!1)},[ya]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Pn,Clear:xn}));const Pn=()=>{let ni=[],$r=!1;return Pa?(xo.forEach((fi,ri)=>{ni.push({position:ri+1,answer_text:[],score:Ot[ri]}),fi==null||fi.forEach((Ki,Ma)=>{ni[ri].answer_text.push(Ki),(!Ki||!(0,st.eR)(Ki,1e4))&&(Yi(`${ri}-${Ma}`),Ee.ZP.info(Ki?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),$r=!0)})}),$r?!1:(ni==null?void 0:ni.length)>20?(Ee.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:Pa,analysis:ro,standard_answers:ni,is_ordered:Ai,downcase:tt==null?void 0:tt.downcase,no_space:tt==null?void 0:tt.no_space,use_blank_score:tt==null?void 0:tt.use_blank_score}):(Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},xn=()=>{fa(""),Qo(""),xi([]),ki(!1)},lr=(ni,$r,fi)=>{const ri=xo.slice();if($r&&ri.splice(ni,$r),fi)for(let Ki=0;Ki<fi;Ki++)ri.splice(ni+Ki,0,[""]);xi(ri)},pr=(ni,$r,fi)=>{Yi("");let ri=xo.slice();ri[ni][$r]=fi,xi(ri)},qn=ni=>{let $r=xo.slice();$r[ni]=[...$r[ni],""],xi($r)},pi=(ni,$r)=>{let fi=xo.slice();if(!fi[ni][$r]){fi[ni]=fi[ni].filter((ri,Ki)=>Ki!==$r),xi(fi);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:kt.modal,onOk:()=>{fi[ni]=fi[ni].filter((ri,Ki)=>Ki!==$r),xi(fi)}})},ei=ni=>{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:kt.modal,onOk:()=>{let $r=xo.slice();$r=xo.filter((fi,ri)=>ni!==ri),xi($r)}})};return un.createElement("section",{className:kt.wrap},un.createElement("p",{className:kt.titleWrap},un.createElement("span",{className:kt.required},"*"),un.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),un.createElement("div",null,un.createElement(Fn.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:Pa,onChange:ni=>fa(ni),showNullButton:!0,onAddBlank:()=>xi(ni=>[...ni,[""]])})),un.createElement("div",{className:"mt20 flex flex-col gap-10px"},xo.map((ni,$r)=>un.createElement("div",{style:{display:"flex"}},un.createElement("div",{style:{flex:1}},un.createElement(kn.Z,{key:$r,answers:ni,index:$r,flex:1,is_md:!0,activeOptionErrorIndex:Sa,onAnswerChange:pr,addChildAnswer:qn,deleteChildAnswer:pi,deleteChildAnswermain:ei})),tt.use_blank_score&&un.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},un.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",un.createElement(ue.Z,{style:{width:"100px"},size:"large",defaultValue:Ot[$r],onBlur:fi=>{Ot[$r]=fi.target.value,hn([...Ot])}}))))),un.createElement(xe.ZP,{className:"mt20",onClick:()=>xi(ni=>[...ni,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),un.createElement("div",null,un.createElement(Ue.default,{className:`${kt.color333} font14 mt20`,checked:tt.use_blank_score,onChange:ni=>zt(Le(le({},tt),{use_blank_score:ni.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),un.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")),un.createElement("div",null,un.createElement(Ue.default,{className:`${kt.color333} font14 mt20`,checked:tt.downcase,onChange:ni=>zt(Le(le({},tt),{downcase:ni.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),un.createElement("div",null,un.createElement(Ue.default,{className:`${kt.color333} font14 mt20`,checked:tt.no_space,onChange:ni=>zt(Le(le({},tt),{no_space:ni.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),un.createElement("div",{className:"mt20"},(xo==null?void 0:xo.length)>1&&un.createElement("span",null,un.createElement(Ue.default,{checked:Ai,onChange:ni=>ki(ni.target.checked),className:`${kt.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),un.createElement("span",{className:`${kt.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"))),un.createElement("p",{className:kt.titleWrap},un.createElement("span",{className:kt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),un.createElement(Fn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ro,onChange:ni=>Qo(ni)}))};var an=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(tn)),Yt=te(78045),dn=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,qt=(Lt,rn)=>{var gn={};for(var Xn in Lt)Mt.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&dn)for(var Xn of dn(Lt))rn.indexOf(Xn)<0&&Wt.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const Gt=null,jt=(Lt,rn)=>{var gn=Lt,{globalSetting:Xn,loading:ta,editData:ui,dispatch:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=qt(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)(),[Qo,xo]=(0,ee.useState)(""),[xi,Sa]=(0,ee.useState)("");(0,ee.useEffect)(()=>{if(!ui||!Oi)return;xo(ui==null?void 0:ui.name),Sa(ui==null?void 0:ui.analysis);const ki=ui==null?void 0:ui.choices.find(ya=>ya.is_answer);ro(ki.choice_text==="\u6B63\u786E"?"0":"1")},[ui]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Yi,Clear:Ai}));const Yi=()=>Qo?fa?{name:Qo,choices:[{choice_text:"\u6B63\u786E",is_answer:fa==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:fa==="1"?1:0}],analysis:xi}:(Ee.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ai=()=>{xo(""),Sa(""),ro("")};return ee.createElement("section",{className:kt.wrap},ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Qo,onChange:ki=>xo(ki)}),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u7B54\u6848\u9009\u9879\uFF1A",ee.createElement("span",{className:kt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ee.createElement(Yt.ZP.Group,{buttonStyle:"solid",value:fa,onChange:ki=>ro(ki.target.value)},ee.createElement(Yt.ZP.Button,{value:"0",className:`${kt.radio} mr40`},"\u6B63\u786E"),ee.createElement(Yt.ZP.Button,{value:"1",className:kt.radio},"\u9519\u8BEF")),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:xi,onChange:ki=>Sa(ki)}))};var sr=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(jt)),Dt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,Bn=(Lt,rn)=>{var gn={};for(var Xn in Lt)Jt.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&Dt)for(var Xn of Dt(Lt))rn.indexOf(Xn)<0&&Gn.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const Sn=null,or=(Lt,rn)=>{var gn=Lt,{globalSetting:Xn,loading:ta,editData:ui,dispatch:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=Bn(gn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)([]);(0,ee.useEffect)(()=>{var Sa;if(!ui||!Oi)return;const Yi=(Sa=ui==null?void 0:ui.shixun)==null?void 0:Sa.challenges.map(Ai=>({id:Ai==null?void 0:Ai.id,score:Ai.score}));ro(Yi)},[ui]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Qo,Clear:xo}));const Qo=()=>({challenges:[...fa]}),xo=()=>{ro([])};console.log("editData--",ui);const xi=Sa=>{var Yi,Ai;return ee.createElement("div",null,(Ai=(Yi=Sa==null?void 0:Sa.shixun)==null?void 0:Yi.challenges)==null?void 0:Ai.map((ki,ya)=>{var Ye;return ee.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},ee.createElement("div",null,ee.createElement("span",{className:"mr5"},"\u7B2C",ya+1,"\u5173"),ee.createElement(Ge.Z,{key:ya,title:ki==null?void 0:ki.challenge_name},ee.createElement("span",null,(0,st.Pq)(ki==null?void 0:ki.challenge_name,44)))),ee.createElement("p",{style:{marginBottom:0}},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u5206\u503C\uFF1A"),ee.createElement(ue.Z,{precision:1,min:1,max:100,className:kt.baseFormItem,style:{width:176},value:(Ye=fa.find(tt=>tt.id===ki.id))==null?void 0:Ye.score,onChange:tt=>{fa.find(zt=>zt.id===ki.id).score=tt,ro([...fa])}})))}),ee.createElement("div",{style:{clear:"both"}}))};return ee.createElement("section",{className:kt.wrap},ee.createElement(ze.Z,{style:{paddingRight:10},className:kt.titleHtml,value:`${ui==null?void 0:ui.position}\u3001${ui==null?void 0:ui.name}`}),ee.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u5173\u5361")),xi(ui))};var gr=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(or)),kr=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Ir=(Lt,rn)=>{var gn={};for(var Xn in Lt)Lr.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&kr)for(var Xn of kr(Lt))rn.indexOf(Xn)<0&&Qr.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const Dn=["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"],cr=(Lt,rn)=>{var gn=Lt,{editData:Xn,globalSetting:ta,loading:ui,dispatch:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=Ir(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)([]),[Qo,xo]=(0,ee.useState)(),[xi,Sa]=(0,ee.useState)([]),[Yi,Ai]=(0,ee.useState)(""),[ki,ya]=(0,ee.useState)("");(0,ee.useEffect)(()=>{ro(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!Xn||!Oi)return;Ai(Xn==null?void 0:Xn.name),ya(Xn==null?void 0:Xn.analysis),ro(Xn==null?void 0:Xn.choices.map(Ot=>Ot.choice_text));const zt=[];Xn==null||Xn.choices.map((Ot,hn)=>{Ot.is_answer&&zt.push(hn)}),Sa(zt)},[Xn]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Ye,Clear:tt}));const Ye=()=>{if(!Yi)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const zt=fa.findIndex(hn=>!hn);if(zt>-1)return Ee.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Dn[zt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!xi.length)return Ee.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(xi.length<2)return Ee.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const Ot=fa.map((hn,Pn)=>({choice_text:hn,is_answer:xi.includes(Pn)?1:0}));return{name:Yi,choices:Ot,analysis:ki}},tt=()=>{ro(["","","",""]),Ai(""),ya(""),Sa("")};return ee.createElement("section",{className:kt.wrap},ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Yi,onChange:zt=>Ai(zt)}),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u7B54\u6848\u9009\u9879\uFF1A",ee.createElement("span",{className:kt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),fa.map((zt,Ot)=>ee.createElement("div",{className:kt.choiceWrap,key:Ot},ee.createElement(Ge.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${kt.answer} ${xi.includes(Ot)?kt.activeAnswer:""}`,onClick:()=>{xi.includes(Ot)?Sa(xi.filter(hn=>hn!==Ot)):Sa([...xi,Ot])}},Dn[Ot])),ee.createElement("div",{className:kt.editorWrap},Qo===Ot?ee.createElement(Fn.Z,{id:`single-question-option-${Ot}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:zt,onChange:hn=>{fa[Ot]=hn,ro(fa)}}):ee.createElement("div",{className:kt.htmlWrap,onClick:()=>xo(Ot)},ee.createElement(ze.Z,{value:zt}))),Ot>1&&ee.createElement(Ge.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${kt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ro(fa.filter((hn,Pn)=>Pn!==Ot)),xi.includes(Ot)?Sa(xi.filter(hn=>hn!==Ot)):Sa([...xi,Ot])}})),Ot<7&&Ot===fa.length-1&&ee.createElement(Ge.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${kt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ro([...fa,""])})))),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ki,onChange:zt=>ya(zt)}))};var vr=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(cr)),Ur=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,_n=(Lt,rn)=>{var gn={};for(var Xn in Lt)ti.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&Ur)for(var Xn of Ur(Lt))rn.indexOf(Xn)<0&&Kt.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const nn=["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"],In=(Lt,rn)=>{var gn=Lt,{editData:Xn,globalSetting:ta,loading:ui,dispatch:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=_n(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)([]),[Qo,xo]=(0,ee.useState)(),[xi,Sa]=(0,ee.useState)(),[Yi,Ai]=(0,ee.useState)(""),[ki,ya]=(0,ee.useState)("");(0,ee.useEffect)(()=>{ro(["","","",""])},[]),(0,ee.useEffect)(()=>{if(!Xn||!Oi)return;const zt=[],Ot=[];Xn==null||Xn.choices.forEach((hn,Pn)=>{zt.push(hn.choice_text),hn.is_answer&&Ot.push(Pn)}),Ai(Xn==null?void 0:Xn.name),ya(Xn==null?void 0:Xn.analysis),ro(zt),Sa(Ot)},[Xn]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Ye,Clear:tt}));const Ye=()=>{if(!Yi)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const zt=fa.findIndex(hn=>!hn);if(zt>-1)return Ee.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${nn[zt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(xi))return Ee.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 Ot=fa.map((hn,Pn)=>({choice_text:hn,is_answer:xi.includes(Pn)?1:0}));return{name:Yi,choices:Ot,analysis:ki}},tt=()=>{ro(["","","",""]),Ai(""),ya(""),Sa("")};return ee.createElement("section",{className:kt.wrap},ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Yi,onChange:zt=>Ai(zt)}),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.required},"*"),ee.createElement("span",{className:kt.title},"\u7B54\u6848\u9009\u9879\uFF1A",ee.createElement("span",{className:kt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),fa.map((zt,Ot)=>ee.createElement("div",{className:kt.choiceWrap,key:Ot},ee.createElement(Ge.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},ee.createElement("div",{className:`${kt.answer} ${xi!=null&&xi.includes(Ot)?kt.activeAnswer:""}`,onClick:()=>Sa([Ot])},nn[Ot])),ee.createElement("div",{className:kt.editorWrap},Qo===Ot?ee.createElement(Fn.Z,{id:`single-question-option-${Ot}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:zt,onChange:hn=>{fa[Ot]=hn,ro(fa)}}):ee.createElement("div",{className:kt.htmlWrap,onClick:()=>xo(Ot)},ee.createElement(ze.Z,{value:zt}))),Ot>1&&ee.createElement(Ge.Z,{title:"\u5220\u9664"},ee.createElement("i",{className:`${kt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{ro(fa.filter((hn,Pn)=>Pn!==Ot)),Ot===xi&&Sa(null)}})),Ot<7&&Ot===fa.length-1&&ee.createElement(Ge.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ee.createElement("i",{className:`${kt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>ro([...fa,""])})))),ee.createElement("p",{className:kt.titleWrap},ee.createElement("span",{className:kt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ee.createElement(Fn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ki,onChange:zt=>ya(zt)}))};var nr=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(In)),Rr=te(66309),Pr=te(47897),br=te(17663),xt=te(67294),$t=Object.defineProperty,fn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,cn=(Lt,rn,gn)=>rn in Lt?$t(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,zn=(Lt,rn)=>{for(var gn in rn||(rn={}))Ut.call(rn,gn)&&cn(Lt,gn,rn[gn]);if(yt)for(var gn of yt(rn))Cn.call(rn,gn)&&cn(Lt,gn,rn[gn]);return Lt},Hn=(Lt,rn)=>fn(Lt,Mn(rn)),Mr=(Lt,rn)=>{var gn={};for(var Xn in Lt)Ut.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&yt)for(var Xn of yt(Lt))rn.indexOf(Xn)<0&&Cn.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn},gi=(Lt,rn,gn)=>new Promise((Xn,ta)=>{var ui=Oi=>{try{bi(gn.next(Oi))}catch(Pa){ta(Pa)}},wi=Oi=>{try{bi(gn.throw(Oi))}catch(Pa){ta(Pa)}},bi=Oi=>Oi.done?Xn(Oi.value):Promise.resolve(Oi.value).then(ui,wi);bi((gn=gn.apply(Lt,rn)).next())});const Xr=Lt=>{if(!Lt)return!1;if(/^s*$/.test(Lt)||Lt.trim()===""){Ee.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let rn=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 Lt==="|"?(Ee.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gr=({value:Lt=[],onClose:rn})=>xt.createElement(Rr.Z,{closable:!0,onClose:rn,className:kt.keywordTag},xt.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Lt.join(" \u6216 "))),di=(Lt,rn)=>{var gn=Lt,{editData:Xn,globalSetting:ta,loading:ui,dispatch:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=Mr(gn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)(""),[Qo,xo]=(0,ee.useState)(""),[xi,Sa]=(0,ee.useState)(""),[Yi,Ai]=(0,ee.useState)(""),[ki]=ke.default.useForm(),ya=ke.default.useWatch("use_keywords",ki);(0,ee.useEffect)(()=>{var Ot;!Xn||!Oi||(ro(Xn==null?void 0:Xn.name),xo(Xn==null?void 0:Xn.analysis),Sa((Ot=Xn==null?void 0:Xn.answer_texts)==null?void 0:Ot[0]),ki.setFieldsValue(zn({},Xn)))},[Xn]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Ye,Clear:tt}));const Ye=()=>gi(void 0,null,function*(){if(!fa)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield ki.validateFields()}catch(hn){Ee.ZP.error(hn.errorFields[0].errors[0]);return}const Ot=ki.getFieldsValue();return console.log(Ot,"values"),zn({name:fa,answer_texts:[xi],analysis:Qo},Ot)}),tt=()=>{ro(""),xo(""),Sa(""),ki.resetFields()},zt=Xn==null?void 0:Xn.score;return xt.createElement("section",{className:kt.wrap},xt.createElement("p",{className:kt.titleWrap},xt.createElement("span",{className:kt.required},"*"),xt.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),xt.createElement(Fn.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:fa,onChange:Ot=>ro(Ot)}),xt.createElement("p",{className:kt.titleWrap},xt.createElement("span",{className:kt.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),xt.createElement(Fn.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:xi,onChange:Ot=>Sa(Ot)}),xt.createElement("p",{className:kt.titleWrap},xt.createElement("span",{className:kt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),xt.createElement(Fn.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Qo,onChange:Ot=>xo(Ot)}),xt.createElement(ke.default,{form:ki,size:"large",onFinishFailed:Ot=>gi(void 0,null,function*(){var hn,Pn;Ee.ZP.error(Ot.errorFields[0].errors[0]),ki.scrollToField((Pn=(hn=Ot==null?void 0:Ot.errorFields)==null?void 0:hn[0])==null?void 0:Pn.name,{behavior:"smooth",block:"center"})})},xt.createElement(De.Z,{align:"middle",className:"mb30 mt20"},xt.createElement(ke.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},xt.createElement(Pr.Z,null)),xt.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xt.createElement(Ke.Z,null,xt.createElement(Ge.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"},xt.createElement(br.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),ya&&xt.createElement(ke.default.List,{name:"keywords",rules:[{validator(Ot,hn){return hn!=null&&hn.length?(hn==null?void 0:hn.reduce((xn,lr)=>xn+lr.score,0))>parseFloat(zt)?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"))}}]},(Ot,{add:hn,remove:Pn})=>xt.createElement(xt.Fragment,null,xt.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),xt.createElement(De.Z,{align:"middle",className:"font14 mb30"},xt.createElement(Ke.Z,{flex:1},xt.createElement(fe.default,{value:Yi,onChange:xn=>{Ai(xn.target.value)},maxLength:50,allowClear:!0,onPressEnter:xn=>{var lr,pr,qn,pi;const ei=`${(lr=xn.target)==null?void 0:lr.value}`,ni=(qn=(pr=ei==null?void 0:ei.split("|"))==null?void 0:pr.filter(ri=>!!ri))==null?void 0:qn.map(ri=>ri==null?void 0:ri.trim()),$r=ki.getFieldValue("keywords"),fi=((pi=$r==null?void 0:$r.map(ri=>ri==null?void 0:ri.keyword))==null?void 0:pi.flat())||[];for(const ri of ni)if(fi.includes(ri)){Ee.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Xr(ei)&&(hn({keyword:ni,score:1}),Ai(""))},className:kt.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"})),xt.createElement(Ke.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ot.map(xn=>{var lr=xn,{key:pr,name:qn}=lr,pi=Mr(lr,["key","name"]);return xt.createElement(De.Z,{key:pr,style:{marginRight:148}},xt.createElement(Ke.Z,{flex:1},xt.createElement(De.Z,{align:"middle",justify:"space-between"},xt.createElement(ke.default.Item,Hn(zn({},pi),{name:[qn,"keyword"]}),xt.createElement(Gr,{onClose:()=>Pn(qn)})),xt.createElement(ke.default.Item,Hn(zn({},pi),{name:[qn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),xt.createElement(ue.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var ci=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(di)),Si=te(47221),Jn={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},Jr=te(40043),Oa=te(24018),Qa=Object.defineProperty,Li=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,to=Object.prototype.propertyIsEnumerable,_r=(Lt,rn,gn)=>rn in Lt?Qa(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,Wo=(Lt,rn)=>{for(var gn in rn||(rn={}))zi.call(rn,gn)&&_r(Lt,gn,rn[gn]);if($a)for(var gn of $a(rn))to.call(rn,gn)&&_r(Lt,gn,rn[gn]);return Lt},_o=(Lt,rn)=>Li(Lt,qi(rn)),bl=(Lt,rn)=>{var gn={};for(var Xn in Lt)zi.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&$a)for(var Xn of $a(Lt))rn.indexOf(Xn)<0&&to.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const jo=Lt=>{var rn=Lt,{value:gn,onChange:Xn,scrollId:ta}=rn,ui=bl(rn,["value","onChange","scrollId"]);return ee.createElement("div",{id:ta||""},ee.createElement(Fn.Z,_o(Wo({},ui),{defaultValue:gn,onChange:(wi,bi)=>{bi!=null&&bi.length?Xn(wi,bi):Xn(wi)}})))},Po=({value:Lt,onChange:rn,placeholder:gn,height:Xn=140,isEdit:ta})=>ta?ee.createElement(Fn.Z,{watch:!0,isFocus:!0,height:Xn,placeholder:gn,defaultValue:Lt,onChange:rn}):ee.createElement("div",{style:{cursor:"pointer"}},Lt?ee.createElement(ze.Z,{className:Jn.inputBorder,value:Lt}):ee.createElement("div",{className:`${Jn.inputBorder} ${Jn.placeholder}`},gn));var la=te(67294),el=Object.defineProperty,No=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,gl=(Lt,rn,gn)=>rn in Lt?el(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,wl=(Lt,rn)=>{for(var gn in rn||(rn={}))ll.call(rn,gn)&&gl(Lt,gn,rn[gn]);if(vl)for(var gn of vl(rn))Uo.call(rn,gn)&&gl(Lt,gn,rn[gn]);return Lt},dl=(Lt,rn)=>No(Lt,rl(rn)),io=(Lt,rn)=>{var gn={};for(var Xn in Lt)ll.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&vl)for(var Xn of vl(Lt))rn.indexOf(Xn)<0&&Uo.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const wn=["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"],pn=({value:Lt,onChange:rn,choiceTextKey:gn,answerKey:Xn,index:ta,isEdit:ui,setInputActive:wi,form:bi,choiceOptionsPath:Oi,allowChangeMode:Pa,showAddIcon:fa,addItem:ro,deleteItem:Qo})=>{const xo=(Lt==null?void 0:Lt[Xn])===!0,xi=()=>{const Yi=bi.getFieldValue(Oi);bi.setFieldValue(Oi,Yi.map(Ai=>dl(wl({},Ai),{[Xn]:!1})))},Sa=()=>{xo?rn(dl(wl({},Lt),{[Xn]:!1})):(Pa||xi(),rn(dl(wl({},Lt),{[Xn]:!0})))};return la.createElement(De.Z,{className:Jn.choiceWrap,align:"middle",wrap:!1},la.createElement(Ke.Z,{onClick:Sa,className:`${Jn.choiceIndex} ${xo?Jn.activeAnswer:""}`},wn[ta]),la.createElement(Ke.Z,{flex:1,className:`${Jn.editorWrap} ml15`,onClick:wi},la.createElement(Po,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:ui,value:Lt==null?void 0:Lt[gn],onChange:Yi=>{rn(dl(wl({},Lt),{[gn]:Yi}))}})),la.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},la.createElement("div",{onClick:Sa,className:`${Jn.setAnswerBtn} ${xo?Jn.activeAnswer:""}`},xo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),la.createElement(Ke.Z,{className:Jn.actionWrapper},la.createElement(Ge.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},la.createElement(Jr.Z,{className:Jn.addIcon,onClick:ro,style:{visibility:fa?"visible":"hidden"}})),la.createElement(Ge.Z,{title:"\u5220\u9664"},la.createElement(Oa.Z,{className:Jn.deleteIcon,onClick:Qo,style:{visibility:ta>1?"visible":"hidden"}}))))},ar=({questionTitlePlaceholder:Lt,titleKey:rn,choiceKey:gn,analysisKey:Xn,choiceTextKey:ta,answerKey:ui,choiceOptionsPath:wi,allowChangeMode:bi=!0,form:Oi,showAnalysis:Pa=!0})=>{const[fa,ro]=(0,ee.useState)(),[Qo,xo]=(0,ee.useState)(!1);return la.createElement("div",{className:Jn.wrap},la.createElement("div",{className:Jn.questionTitleEditorWrap},la.createElement(ke.default.Item,{label:"\u9898\u5E72",name:rn,labelCol:{span:24},rules:[{required:!0}]},la.createElement(jo,{scrollId:Array.isArray(rn)?rn.join("_"):`${rn}`,watch:!0,height:140,placeholder:Lt}))),la.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),la.createElement(ke.default.List,{name:gn,rules:[{validator(xi,Sa){const Yi=Sa.some(ki=>ki[ui]),Ai=Sa.findIndex(ki=>{var ya;return((ya=ki[ta])==null?void 0:ya.length)<=0});return Ai!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${wn[Ai]}\u9009\u9879\u7684\u5185\u5BB9`)):Yi?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(xi,{add:Sa,remove:Yi})=>la.createElement("div",{id:Array.isArray(wi)?wi.join("_"):`${wi}`},xi.map((Ai,ki)=>{var ya=Ai,{key:Ye,name:tt}=ya,zt=io(ya,["key","name"]);const Ot=fa===Ye,hn=()=>{ro(Ye)},Pn=ki<7&&ki===xi.length-1,xn=()=>Sa({[ta]:"",[ui]:0}),lr=()=>Yi(tt);return la.createElement(ke.default.Item,dl(wl({},zt),{key:Ye,name:tt,noStyle:!0}),la.createElement(pn,{choiceTextKey:ta,answerKey:ui,index:ki,isEdit:Ot,setInputActive:hn,form:Oi,choiceOptionsPath:wi,allowChangeMode:bi,showAddIcon:Pn,addItem:xn,deleteItem:lr}))}),xi.length<8&&la.createElement("div",{className:`${Jn.addBtn} mb30`,onClick:()=>Sa({[ta]:"",[ui]:0})},"\u6DFB\u52A0\u9009\u9879"))),Pa&&la.createElement("div",{onClick:()=>xo(!0)},la.createElement(ke.default.Item,{name:Xn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},la.createElement(Po,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Qo}))))};var tr=te(67294),Yr=Object.defineProperty,$i=Object.defineProperties,ia=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,ka=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,ho=(Lt,rn,gn)=>rn in Lt?Yr(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,ao=(Lt,rn)=>{for(var gn in rn||(rn={}))ka.call(rn,gn)&&ho(Lt,gn,rn[gn]);if(sa)for(var gn of sa(rn))ga.call(rn,gn)&&ho(Lt,gn,rn[gn]);return Lt},mo=(Lt,rn)=>$i(Lt,ia(rn)),Un=(Lt,rn)=>{var gn={};for(var Xn in Lt)ka.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&sa)for(var Xn of sa(Lt))rn.indexOf(Xn)<0&&ga.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const ir=({value:Lt,onChange:rn,position:gn,removeBlank:Xn})=>{const ta=wi=>{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:Jn.modal,onOk:()=>{const bi=[...Lt];bi.splice(wi,1),bi.length===0?Xn(gn-1):rn(bi)}})},ui=()=>{const wi=[...Lt];wi.push(""),rn(wi)};return tr.createElement(De.Z,{className:"ml20"},tr.createElement(Ke.Z,{flex:1},Lt==null?void 0:Lt.map((wi,bi)=>tr.createElement(De.Z,{key:`${wi}_${bi}`,className:"mb20"},tr.createElement(fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:wi,autoSize:{maxRows:3},maxLength:1e3,onBlur:Oi=>{const Pa=[...Lt],fa=Oi.target.value.trim();Pa[bi]=fa,rn(Pa)}}),tr.createElement(Ge.Z,{title:"\u5220\u9664"},tr.createElement(Oa.Z,{className:Jn.deleteIcon,style:{marginLeft:15,visibility:gn===1&&bi===0?"hidden":"visible"},onClick:()=>ta(bi)})),tr.createElement(Ge.Z,{title:"\u65B0\u589E\u7B54\u6848"},tr.createElement(Jr.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:bi===0?"visible":"hidden"},onClick:()=>{ui()}}))))))},Sr=({value:Lt=!0,onChange:rn})=>tr.createElement(Pr.Z,{checked:!Lt,onChange:gn=>{rn(!gn)}}),Ce="\u2581",Xe=({questionTitlePlaceholder:Lt,form:rn,name:gn,scoreByBlank:Xn="use_blank_score",answerKey:ta,titleKey:ui="name",analysisKey:wi="analysis",isOrdered:bi="is_ordered"})=>{var Oi,Pa;const[fa,ro]=(0,ee.useState)(!1),Qo=()=>{const ki=rn.getFieldValue(["sub_item_banks",...ta]);rn.setFieldValue(["sub_item_banks",...ta],ki==null?void 0:ki.map((ya,Ye)=>mo(ao({},ya),{position:Ye+1})))},xo=(0,ee.useRef)(),xi=(ki,ya)=>{for(let Ye=0;Ye<ki;Ye++)xo.current({position:null,answer_text:[""]},ya+Ye);Qo()},Sa=(0,ee.useRef)(),Yi=ki=>{Sa.current(ki),Qo()},Ai=(Pa=(Oi=rn.getFieldValue("sub_item_banks"))==null?void 0:Oi[ta==null?void 0:ta[0]])==null?void 0:Pa[ta==null?void 0:ta[1]];return tr.createElement("div",{className:Jn.wrap},tr.createElement("div",{className:Jn.questionTitleEditorWrap},tr.createElement(ke.default.Item,{label:"\u9898\u5E72",name:ui,labelCol:{span:24},rules:[{required:!0}]},tr.createElement(jo,{scrollId:"name",watch:!0,height:140,placeholder:Lt,showNullButton:!0,onAddBlank:()=>{const ki=rn.getFieldValue(["sub_item_banks",...ta]);xi(1,ki==null?void 0:ki.length)}}))),tr.createElement(ke.default.List,{name:ta,rules:[{validator(ki,ya){if((ya==null?void 0:ya.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Ye of ya){const{answer_text:tt}=Ye||{};if(tt!=null&&tt.some(zt=>(zt==null?void 0:zt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(ki,{add:ya,remove:Ye},{errors:tt})=>(xo.current=ya,Sa.current=Ye,tr.createElement(tr.Fragment,null,tr.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ki.map((zt,Ot)=>{var hn=zt,{key:Pn,name:xn}=hn,lr=Un(hn,["key","name"]);return tr.createElement(De.Z,{key:Pn,align:"top",wrap:!1},tr.createElement(Ke.Z,{flex:"0 0 auto",className:`${Jn.blankIndex} pt5`},"\u586B\u7A7A\u9879",Ot+1),tr.createElement(Ke.Z,{flex:1},tr.createElement(De.Z,{align:"top",justify:"space-between",wrap:!1},tr.createElement(Ke.Z,{flex:1},tr.createElement(ke.default.Item,mo(ao({},lr),{name:[xn,"answer_text"],noStyle:!0}),tr.createElement(ir,{removeBlank:Yi,position:Ot+1}))),(rn==null?void 0:rn.getFieldValue(["sub_item_banks",...Xn]))&&tr.createElement(Ke.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},tr.createElement(ke.default.Item,mo(ao({},lr),{name:[xn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jn.blankInputNumberWrapper}),tr.createElement(ue.Z,{className:Jn.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),tr.createElement(ke.default.Item,mo(ao({},lr),{name:[xn,"position"],noStyle:!0}),tr.createElement(fe.default,{type:"hidden"}))))})))),tr.createElement(xe.ZP,{className:"mb20",onClick:()=>xi(1,Ai==null?void 0:Ai.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),tr.createElement(De.Z,{align:"middle"},tr.createElement(ke.default.Item,{name:[gn,"downcase"],valuePropName:"checked"},tr.createElement(Pr.Z,null)),tr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),tr.createElement(De.Z,{align:"middle"},tr.createElement(ke.default.Item,{name:[gn,"no_space"],valuePropName:"checked"},tr.createElement(Pr.Z,null)),tr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ai==null?void 0:Ai.length)>1&&tr.createElement(De.Z,{align:"middle",className:(Ai==null?void 0:Ai.length)>1?"mb30":`${Jn.hide}`},tr.createElement(ke.default.Item,{name:bi},tr.createElement(Sr,null)),tr.createElement(Ke.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")),tr.createElement("div",{onClick:()=>ro(!0)},tr.createElement(ke.default.Item,{name:wi,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},tr.createElement(Po,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fa}))))};var nt=Object.defineProperty,ut=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,En=(Lt,rn,gn)=>rn in Lt?nt(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,ur=(Lt,rn)=>{for(var gn in rn||(rn={}))wt.call(rn,gn)&&En(Lt,gn,rn[gn]);if(Ct)for(var gn of Ct(rn))sn.call(rn,gn)&&En(Lt,gn,rn[gn]);return Lt},yr=(Lt,rn)=>ut(Lt,ft(rn)),fr=(Lt,rn)=>{var gn={};for(var Xn in Lt)wt.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&Ct)for(var Xn of Ct(Lt))rn.indexOf(Xn)<0&&sn.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const Qn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Yn=({value:Lt,onChange:rn,form:gn,choiceKey:Xn})=>{const ta=(Lt==null?void 0:Lt.is_answer)===!0,ui=Lt==null?void 0:Lt.choice_text,wi=()=>{var bi;const Oi=(bi=gn==null?void 0:gn.getFieldValue(["sub_item_banks",...Xn]))==null?void 0:bi.map(Pa=>({choice_text:Pa==null?void 0:Pa.choice_text,is_answer:!1}));gn==null||gn.setFieldValue(["sub_item_banks",...Xn],Oi),rn(yr(ur({},Lt),{is_answer:!0}))};return ee.createElement(De.Z,{className:Jn.choiceWrap,align:"middle",wrap:!1},ee.createElement(Ke.Z,{onClick:wi,className:`${Jn.choiceIndex} ${Jn.judgementIndex} ${ta?Jn.activeAnswer:""}`},Qn[ui]),ee.createElement(Ke.Z,{flex:1,className:`${Jn.editorWrap} ml15`},ee.createElement("div",{className:`${Jn.inputBorder} ${Jn.placeholder} ${ta?Jn.activeJudgementAnswer:""}`},ui)),ee.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},ee.createElement("div",{onClick:wi,className:`${Jn.setAnswerBtn} ${ta?Jn.activeAnswer:""}`},ta?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},On=({questionTitlePlaceholder:Lt,choiceKey:rn="choices",form:gn,titleKey:Xn="name",analysisKey:ta="analysis"})=>{const[ui,wi]=(0,ee.useState)(!1);return ee.createElement("div",{className:Jn.wrap},ee.createElement("div",{className:Jn.questionTitleEditorWrap},ee.createElement(ke.default.Item,{label:"\u9898\u5E72",name:Xn,labelCol:{span:24},rules:[{required:!0}]},ee.createElement(jo,{scrollId:"name",watch:!0,height:140,placeholder:Lt}))),ee.createElement(ke.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ee.createElement(ke.default.List,{name:rn,rules:[{validator(bi,Oi){return Oi.some(fa=>(fa==null?void 0:fa.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},bi=>ee.createElement("div",{id:"choices"},bi.map(Oi=>{var Pa=Oi,{key:fa,name:ro}=Pa,Qo=fr(Pa,["key","name"]);return ee.createElement(ke.default.Item,yr(ur({},Qo),{key:fa,name:ro,noStyle:!0}),ee.createElement(Yn,{form:gn,choiceKey:rn}))})))),ee.createElement("div",{onClick:()=>wi(!0)},ee.createElement(ke.default.Item,{name:ta,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(Po,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ui}))))};var hr=Object.defineProperty,zr=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Wr=(Lt,rn,gn)=>rn in Lt?hr(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,pt=(Lt,rn)=>{for(var gn in rn||(rn={}))Br.call(rn,gn)&&Wr(Lt,gn,rn[gn]);if(wr)for(var gn of wr(rn))Or.call(rn,gn)&&Wr(Lt,gn,rn[gn]);return Lt},vt=(Lt,rn)=>zr(Lt,Er(rn)),mn=(Lt,rn)=>{var gn={};for(var Xn in Lt)Br.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&wr)for(var Xn of wr(Lt))rn.indexOf(Xn)<0&&Or.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn};const ln=Lt=>{var rn=Lt,{value:gn,onChange:Xn}=rn,ta=mn(rn,["value","onChange"]);const ui=wi=>{Xn([wi])};return ee.createElement(Fn.Z,vt(pt({},ta),{defaultValue:gn==null?void 0:gn[0],onChange:ui}))},$n=Lt=>{if(!Lt)return!1;let rn=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 Lt==="|"?(Ee.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},mr=({value:Lt=[],onClose:rn})=>ee.createElement(Rr.Z,{closable:!0,onClose:rn,className:Jn.keywordTag},Lt==null?void 0:Lt.join(" \u6216 ")),Ft=({questionTitlePlaceholder:Lt,form:rn,showKeywords:gn,isMustKeyWords:Xn=gn,titleKey:ta="name",analysisKey:ui="analysis",answerTexts:wi="answer_texts",keywords:bi="keywords",useKeywords:Oi="use_keywords",indexs:Pa})=>{const[fa,ro]=(0,ee.useState)(!1),[Qo,xo]=(0,ee.useState)(""),xi=ke.default.useWatch("sub_item_banks",rn),{use_keywords:Sa,score:Yi}=(xi==null?void 0:xi[Pa])||{};return console.log(Sa,Yi,"itemValues"),ee.createElement("div",{className:Jn.wrap},ee.createElement("div",{className:Jn.questionTitleEditorWrap},ee.createElement(ke.default.Item,{label:"\u9898\u5E72",name:ta,labelCol:{span:24},rules:[{required:!0}]},ee.createElement(jo,{scrollId:"name",watch:!0,height:140,placeholder:Lt}))),ee.createElement(ke.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:wi,labelCol:{span:24}},ee.createElement(ln,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),gn&&!Xn&&ee.createElement(ke.default.Item,{hidden:!0,name:Oi,valuePropName:"checked"},ee.createElement(Pr.Z,{defaultChecked:!0})),gn&&Xn&&ee.createElement(De.Z,{align:"middle",className:"mb30"},ee.createElement(ke.default.Item,{name:Oi,valuePropName:"checked"},ee.createElement(Pr.Z,null)),ee.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ee.createElement(Ke.Z,null,ee.createElement(Ge.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"},ee.createElement(br.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Sa||!Xn)&&ee.createElement(ke.default.List,{name:bi,rules:[{validator(Ai,ki){return Xn?ki!=null&&ki.length?(ki==null?void 0:ki.reduce((Ye,tt)=>Ye+tt.score,0))>parseFloat(Yi)?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()}}]},(Ai,{add:ki,remove:ya})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:`${Jn.title} mb10`},Xn?"\u5173\u952E\u8BCD":ee.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ee.createElement(De.Z,{align:"middle",className:"font14 mb30"},ee.createElement(Ke.Z,{flex:1},ee.createElement(fe.default,{value:Qo,onChange:Ye=>{xo(Ye.target.value)},maxLength:50,allowClear:!0,onPressEnter:Ye=>{var tt,zt,Ot,hn;const Pn=`${(tt=Ye.target)==null?void 0:tt.value}`,xn=(Ot=(zt=Pn==null?void 0:Pn.split("|"))==null?void 0:zt.filter(qn=>!!qn))==null?void 0:Ot.map(qn=>qn==null?void 0:qn.trim()),lr=rn.getFieldValue(["sub_item_banks",...bi]),pr=((hn=lr==null?void 0:lr.map(qn=>qn==null?void 0:qn.keyword))==null?void 0:hn.flat())||[];for(const qn of xn)if(pr.includes(qn)){Ee.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}$n(Pn)&&(ki({keyword:xn,score:1}),xo(""))},className:Jn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),ee.createElement(Ke.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ai.map(Ye=>{var tt=Ye,{key:zt,name:Ot}=tt,hn=mn(tt,["key","name"]);return ee.createElement(De.Z,{key:zt,className:"mb20",style:{marginRight:148}},ee.createElement(Ke.Z,{flex:1},ee.createElement(De.Z,{align:"middle",justify:"space-between"},ee.createElement(ke.default.Item,vt(pt({},hn),{name:[Ot,"keyword"]}),ee.createElement(mr,{onClose:()=>ya(Ot)})),Xn&&ee.createElement(ke.default.Item,vt(pt({},hn),{name:[Ot,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Jn.blankInputNumberWrapper}),ee.createElement(ue.Z,{className:Jn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ee.createElement("div",{onClick:()=>ro(!0)},ee.createElement(ke.default.Item,{name:ui,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ee.createElement(Po,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fa}))))};var It=te(67294),Ht=Object.defineProperty,on=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,Kn=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Fr=(Lt,rn,gn)=>rn in Lt?Ht(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,ii=(Lt,rn)=>{for(var gn in rn||(rn={}))Kn.call(rn,gn)&&Fr(Lt,gn,rn[gn]);if(dr)for(var gn of dr(rn))rr.call(rn,gn)&&Fr(Lt,gn,rn[gn]);return Lt},Zr=(Lt,rn)=>on(Lt,Vn(rn)),Ar=(Lt,rn)=>{var gn={};for(var Xn in Lt)Kn.call(Lt,Xn)&&rn.indexOf(Xn)<0&&(gn[Xn]=Lt[Xn]);if(Lt!=null&&dr)for(var Xn of dr(Lt))rn.indexOf(Xn)<0&&rr.call(Lt,Xn)&&(gn[Xn]=Lt[Xn]);return gn},Vr=(Lt,rn,gn)=>new Promise((Xn,ta)=>{var ui=Oi=>{try{bi(gn.next(Oi))}catch(Pa){ta(Pa)}},wi=Oi=>{try{bi(gn.throw(Oi))}catch(Pa){ta(Pa)}},bi=Oi=>Oi.done?Xn(Oi.value):Promise.resolve(Oi.value).then(ui,wi);bi((gn=gn.apply(Lt,rn)).next())});const{Panel:li}=Si.default,Mi=null,si=(Lt,rn)=>{var gn=Lt,{globalSetting:Xn,loading:ta,dispatch:ui,editData:wi,onRef:bi=()=>{},isEdit:Oi}=gn,Pa=Ar(gn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[fa,ro]=(0,ee.useState)(""),[Qo,xo]=(0,ee.useState)([]),[xi]=ke.default.useForm();(0,ee.useEffect)(()=>{!wi||!Oi||(ro(wi==null?void 0:wi.name),xo(wi==null?void 0:wi.sub_item_banks),xi.setFieldsValue(ii({},wi)))},[wi]),(0,ee.useEffect)(()=>{xo(xi.getFieldValue("sub_item_banks"))},[ke.default.useWatch("sub_item_banks",xi)]),(0,ee.useImperativeHandle)(rn,()=>({onSave:Sa,Clear:Yi}));const Sa=()=>Vr(void 0,null,function*(){if(!fa)return Ee.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield xi.validateFields()}catch(zt){return console.log(zt,"errInfo"),Ee.ZP.error(zt.errorFields[0].errors[0]),!1}const tt=Qo.map(zt=>ii({id:zt.id>1?zt.id:null},zt));return{name:fa,sub_item_banks:tt}}),Yi=()=>{ro(""),xo([])},Ai={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"},ki=({value:tt})=>It.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},tt),[ya,Ye]=(0,ee.useState)();return It.createElement("section",{className:kt.wrap},It.createElement("p",{className:kt.titleWrap},It.createElement("span",{className:kt.required},"*"),It.createElement("span",{className:kt.title},"\u9898\u5E72\uFF1A")),It.createElement(Fn.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:fa,onChange:tt=>ro(tt)}),It.createElement(ke.default,{form:xi,autoComplete:"off"},It.createElement(ke.default.List,{name:"sub_item_banks",rules:[{validator(tt,zt){return zt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(tt,{add:zt,remove:Ot})=>{const hn=xi.getFieldValue("sub_item_banks");return It.createElement(It.Fragment,null,It.createElement(Si.default,{className:tt.length>0?kt.collapseWrapper:"",bordered:!1,expandIcon:({isActive:Pn})=>It.createElement("i",{className:`iconfont icon-weizhankai ${Pn?kt.open:kt.close}`,style:{fontSize:14,transition:"all .2s"}})},tt.map((Pn,xn)=>{var lr=Pn,{key:pr,name:qn}=lr,pi=Ar(lr,["key","name"]),ei,ni,$r,fi,ri,Ki,Ma,Ua,Xa,za,lo,wa;return It.createElement(li,{className:kt.panel,forceRender:!0,header:It.createElement("div",{className:kt.panelHeader},"\u7B2C",xn+1,"\u5C0F\u9898",It.createElement("span",null,"\uFF08",Ai[(ei=hn==null?void 0:hn[qn])==null?void 0:ei.item_type],"\uFF09")),extra:It.createElement(De.Z,{align:"middle",onClick:Ka=>Ka.stopPropagation(),style:{display:"flex",alignItems:"center"}},((ni=hn==null?void 0:hn[qn])==null?void 0:ni.item_type)=="completion"&&It.createElement(ke.default.Item,Zr(ii({},pi),{name:[qn,"score"],className:kt.blankInputNumberWrapper,style:{marginBottom:0}}),(($r=hn==null?void 0:hn[qn])==null?void 0:$r.item_type)=="completion"&&It.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",It.createElement(ki,{value:(fi=hn==null?void 0:hn[qn])==null?void 0:fi.score}),"\u5206")),((ri=hn==null?void 0:hn[qn])==null?void 0:ri.item_type)=="completion"&&It.createElement(It.Fragment,null,It.createElement(Yt.ZP.Group,{defaultValue:(Ki=hn==null?void 0:hn[qn])==null?void 0:Ki.use_blank_score,className:kt.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Ka=>{var so;console.log(xi.getFieldsValue()),xi==null||xi.setFieldValue(["sub_item_banks",qn,"use_blank_score"],(so=Ka==null?void 0:Ka.target)==null?void 0:so.value),Ye(new Date)}}),It.createElement(Ge.Z,{overlayInnerStyle:{width:460},title:It.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",It.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")},It.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:pr},It.createElement(ke.default.Item,Zr(ii({},pi),{name:qn}),(((Ma=hn==null?void 0:hn[qn])==null?void 0:Ma.item_type)=="single"||((Ua=hn==null?void 0:hn[qn])==null?void 0:Ua.item_type)=="multiple")&&It.createElement(ar,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Xa=hn==null?void 0:hn[qn])==null?void 0:Xa.item_type)!="single",form:xi,choiceKey:[qn,"choices"],titleKey:[qn,"name"],analysisKey:[qn,"analysis"],choiceOptionsPath:["sub_item_banks",qn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((za=hn==null?void 0:hn[qn])==null?void 0:za.item_type)=="completion"&&It.createElement(Xe,{form:xi,name:qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[qn,"use_blank_score"],titleKey:[qn,"name"],analysisKey:[qn,"analysis"],isOrdered:[qn,"is_ordered"],answerKey:[qn,"standard_answer"],key:ya}),((lo=hn==null?void 0:hn[qn])==null?void 0:lo.item_type)=="judgement"&&It.createElement(On,{form:xi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[qn,"name"],analysisKey:[qn,"analysis"],choiceKey:[qn,"choices"]}),((wa=hn==null?void 0:hn[qn])==null?void 0:wa.item_type)=="subjective"&&It.createElement(Ft,{showKeywords:!0,form:xi,titleKey:[qn,"name"],analysisKey:[qn,"analysis"],answerTexts:[qn,"answer_texts"],useKeywords:[qn,"use_keywords"],keywords:[qn,"keywords"],indexs:qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Kr=(0,We.connect)(({loading:Lt,globalSetting:rn})=>({globalSetting:rn,loading:Lt.effects}),null,null,{forwardRef:!0})((0,ee.forwardRef)(si)),Wi=te(60580),Zi=te(85546),Na=te(11713),Ha=te(9430),La={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"},Ea=te(64743),Ra=te(99678),va=te(89779),oo=te(9343),Ca=te(26194),Qi=te(20670),bo=({open:Lt,onCancel:rn,onOk:gn})=>{const Xn=(0,Ra.g)(),[ta,ui,wi,bi]=(0,oo.U)(va.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Oi,Pa]=(0,ee.useState)(!1);(0,ee.useEffect)(()=>{Lt&&wi({page:1,limit:10,type:0},!0).then(xi=>{(xi==null?void 0:xi.shixuns_count)===0&&Pa(!0)})},[Lt]);const[fa,ro]=(0,ee.useState)([]),[Qo,xo]=(0,ee.useState)([]);return ee.createElement(Me.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Lt,width:948,centered:!0,closable:!0,onCancel:rn,onOk:()=>gn(Qo),destroyOnClose:!0},ee.createElement(De.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},ee.createElement(Ke.Z,null,ee.createElement(Zi.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Xn,onChange:xi=>{wi({page:1,discipline_id:xi==null?void 0:xi[0],sub_discipline_id:xi==null?void 0:xi[1]})}}),ee.createElement(Na.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:xi=>wi({page:1,diff:xi})}),ee.createElement(Na.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:xi=>wi({page:1,shixun_publish_status:xi})})),ee.createElement(Ea.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:xi=>{wi({keyword:xi,page:1})}})),Oi?ee.createElement("div",null,ee.createElement(Ca.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")})):ee.createElement(Ha.default,{loading:ui,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(xi,Sa)=>ee.createElement("div",{style:{display:"flex",alignItems:"center"}},ee.createElement("div",{className:Sa!=null&&Sa.high_resources_consume?La.title:"",title:xi||"--"},ee.createElement(ze.Z,{key:1,showLines:1,showTextOnly:!0,value:xi||"--"})),(Sa==null?void 0:Sa.high_resources_consume)&&ee.createElement(Qi.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(xi,Sa,Yi)=>ee.createElement("span",null,xi||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:ee.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",ee.createElement(Ge.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},ee.createElement(br.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(xi,Sa,Yi)=>ee.createElement("span",null,xi||"- -")},{title:"\u64CD\u4F5C",render(xi,Sa){const{title:Yi,challenge_names:Ai,author_name:ki,identifier:ya,author_school_name:Ye,study_count:tt}=Sa||{};return ee.createElement("div",null,ee.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:ee.createElement("div",null,ee.createElement(ze.Z,{value:Yi,style:{marginBottom:18}}),ee.createElement("div",{className:La.challengeNameWrapper},Ai.map((zt,Ot)=>ee.createElement("div",{className:La.challengeName,key:Ot},"\u7B2C",(0,st.EM)(Ot+1),"\u9898\xA0",zt))),ee.createElement(De.Z,{className:La.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},ee.createElement(Ke.Z,{className:La.shixunInfoWrapper},ee.createElement("span",null,"\u521B\u5EFA\u8005"),ee.createElement("span",{className:La.shixunInfo},ki.split("\u3001")[0]),ee.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),ee.createElement("span",{className:La.shixunInfo},Ye),ee.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),ee.createElement("span",{className:La.shixunInfo},tt)),ee.createElement(xe.ZP,{type:"primary",className:La.btnToDetail,onClick:()=>(0,st.xg)(`/shixuns/${ya}/challenges?exercise=true`)},ee.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Sa==null?void 0:Sa.shixun_tag_num)===1&&ee.createElement("a",{target:"_blank",href:`/shixuns/${Sa==null?void 0:Sa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:bi==null?void 0:bi.items,rowSelection:{type:"radio",selectedRowKeys:fa,preserveSelectedRowKeys:!0,getCheckboxProps:xi=>({disabled:xi.shixun_tag_num===1}),onChange(xi,Sa){var Yi,Ai,ki;console.log(xi),ro(xi);const ya=[];for(const tt of Qo)xi.includes(tt.id)&&ya.push(tt);const Ye=ya.map(tt=>tt.id);for(const tt of Sa)tt&&xi.includes(tt.id)&&!Ye.includes(tt.id)&&ya.push({id:tt.id,difficulty:tt.level,identifier:tt.identifier,name:tt.name,real_name:(Yi=tt==null?void 0:tt.author_name)==null?void 0:Yi.split("\u3001")[0],school_name:tt.author_school_name,challenge_names:tt.challenge_names,challenges:(Ai=tt.challenge_names)==null?void 0:Ai.map((zt,Ot)=>({subject:zt,id:Ot,score:5})),score:((ki=tt.challenge_names)==null?void 0:ki.length)*5,study_count:tt.study_count,challenges_count:tt.challenges_count});xo(ya)}},pagination:{current:ta.page,pageSize:ta.limit,total:bi==null?void 0:bi.items_count,showTotal:xi=>ee.createElement("span",null,"\u5171\xA0",ee.createElement("span",{style:{color:"#165DFF"}},xi),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(xi,Sa){wi({page:xi,limit:Sa})},size:"default"},scroll:{y:400}}))},ca=te(96332),Vo=te(93686),Go=(Lt,rn,gn)=>new Promise((Xn,ta)=>{var ui=Oi=>{try{bi(gn.next(Oi))}catch(Pa){ta(Pa)}},wi=Oi=>{try{bi(gn.throw(Oi))}catch(Pa){ta(Pa)}},bi=Oi=>Oi.done?Xn(Oi.value):Promise.resolve(Oi.value).then(ui,wi);bi((gn=gn.apply(Lt,rn)).next())}),zo=({visible:Lt,getdata:rn,onCancel:gn,onRandomExchange:Xn,selectFromProblemSet:ta,questionParams:ui})=>{const[wi,bi]=(0,ee.useState)(!1),[Oi,Pa]=(0,ee.useState)(!1),[fa,ro]=(0,ee.useState)({}),Qo=(0,We.useParams)(),[xo,xi]=(0,ee.useState)(),Sa=(Yi,Ai)=>Go(void 0,null,function*(){Pa(!0);const ki=yield(0,at.ZP)(`/api/exercises/${Qo.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:ui.id,item_bank_id:Yi,shixuns_info:[{id:Yi,is_copy:Ai!=1,is_use:Ai!=1}]}});Pa(!1),ki!=null&&ki.status||(Ee.ZP.info("\u6362\u9898\u6210\u529F"),gn(),rn())});return ee.createElement(Me.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Lt,onCancel:gn,centered:!0,maskClosable:!0,footer:null},ee.createElement(De.Z,{justify:"center",className:"pb20"},ee.createElement(Wi.Z,{onClick:Xn},"\u968F\u673A\u66F4\u6362"),(ui==null?void 0:ui.type)!=="PRACTICAL"&&ee.createElement(xe.ZP,{style:{marginLeft:24},onClick:ta},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(ui==null?void 0:ui.type)==="PRACTICAL"&&ee.createElement(xe.ZP,{style:{marginLeft:24},onClick:()=>{bi(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),ee.createElement(bo,{open:wi,onCancel:()=>bi(!1),onOk:Yi=>Go(void 0,null,function*(){if(console.log("----selectedRows",Yi,Qo),(Yi==null?void 0:Yi.length)<=0){Ee.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ai=Yi==null?void 0:Yi.map(ya=>ya==null?void 0:ya.id),ki=yield(0,Vo.Tr)({id:[...Ai],course_id:Qo.coursesId,type:"shixun"});(ki==null?void 0:ki.student_count)===0?Sa(Ai==null?void 0:Ai[0],1):(xi(Ai),ro(ki)),bi(!1)})}),ee.createElement(ca.Z,{resdata:fa,type:"shixun",okloading:Oi,oktext:(fa==null?void 0:fa.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Yi=>Go(void 0,null,function*(){Sa(xo==null?void 0:xo[0],2)})}))},no=te(30351),kl=te(19575),Co=te(2715),_a=te(48994),Ao=te(52810),ml=Object.defineProperty,Ko=Object.defineProperties,$o=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,Il=Object.prototype.propertyIsEnumerable,xl=(Lt,rn,gn)=>rn in Lt?ml(Lt,rn,{enumerable:!0,configurable:!0,writable:!0,value:gn}):Lt[rn]=gn,il=(Lt,rn)=>{for(var gn in rn||(rn={}))yl.call(rn,gn)&&xl(Lt,gn,rn[gn]);if(Ya)for(var gn of Ya(rn))Il.call(rn,gn)&&xl(Lt,gn,rn[gn]);return Lt},El=(Lt,rn)=>Ko(Lt,$o(rn)),Al=(Lt,rn,gn)=>new Promise((Xn,ta)=>{var ui=Oi=>{try{bi(gn.next(Oi))}catch(Pa){ta(Pa)}},wi=Oi=>{try{bi(gn.throw(Oi))}catch(Pa){ta(Pa)}},bi=Oi=>Oi.done?Xn(Oi.value):Promise.resolve(Oi.value).then(ui,wi);bi((gn=gn.apply(Lt,rn)).next())}),Ol=({data:Lt,submit:rn,goBack:gn,loading:Xn,onTypeScore:ta,editPreview:ui=!1,onSkipExamination:wi,selectValue:bi,onExchange:Oi,getdata:Pa,handleMarkWrongQuestion:fa})=>{var ro,Qo,xo,xi,Sa,Yi,Ai,ki,ya,Ye,tt;const zt=(0,ee.useRef)(),[Ot,hn]=(0,ee.useState)(null),[Pn,xn]=(0,ee.useState)(!1),[lr,pr]=(0,ee.useState)(!1),qn=(0,ee.useRef)(),[pi]=ke.default.useForm(),ei=(0,We.useParams)(),[ni,$r]=(0,ee.useState)(!1);(0,ee.useEffect)(()=>{xn(!0)},[]),(0,ee.useEffect)(()=>{ui||(0,st.Dk)("\u8BD5\u5377\u9884\u89C8")},[ui]);const fi=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],ri={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"},Ki={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"},Ma=jn=>{var ai;const ba=[];return ee.createElement(ee.Fragment,null,ee.createElement("aside",{className:de.single},(ai=jn==null?void 0:jn.choices)==null?void 0:ai.map((na,Nr)=>(na.is_answer&&ba.push(Ao.k4[Nr]),ee.createElement("ul",{key:Nr},ee.createElement("li",null,Ao.k4[Nr],"\u3001"),ee.createElement("li",null,ee.createElement(ze.Z,{value:na.choice_text})))))),ee.createElement("div",{className:de.analysis},ee.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ba.join(""),ee.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",fi[jn.difficulty])),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:jn.analysis?jn.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),jn==null?void 0:jn.tag_discipline_name)))))},Ua=(jn,ai)=>{var ba;const na=(ba=jn==null?void 0:jn.standard_answer)==null?void 0:ba.map((Nr,Ti)=>{var Ni;return ee.createElement("div",{key:Ti},`\u7B54\u6848\uFF08\u586B\u7A7A${Nr==null?void 0:Nr.position}\uFF09\uFF1A${(Ni=Nr==null?void 0:Nr.answer_text)==null?void 0:Ni.join("\u3001")}`)});return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:de.analysis},ee.createElement("div",{style:{display:"flex"}},ee.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),ee.createElement("div",null,na)),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:jn.analysis?jn.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),ai?`${(ai==null?void 0:ai.discipline_name)||"--"}/${ai==null?void 0:ai.sub_discipline_name}`:`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:ai?ai==null?void 0:ai.tag_discipline_name:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),ai?ai==null?void 0:ai.tag_discipline_name:jn==null?void 0:jn.tag_discipline_name)))))},Xa=jn=>{var ai;const ba=(ai=jn==null?void 0:jn.standard_answer)==null?void 0:ai.map((na,Nr)=>ee.createElement("div",{key:Nr},`\u7B54\u6848\uFF08\u586B\u7A7A${(na==null?void 0:na.position)||(na==null?void 0:na.exercise_choice_id)}\uFF09\uFF1A${na==null?void 0:na.answer_text}`));return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:de.analysis},ee.createElement("div",{style:{display:"flex"}},ee.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),ee.createElement("div",null,ba)),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:jn.analysis?jn.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),jn==null?void 0:jn.tag_discipline_name)))))},za=(jn,ai)=>{var ba;return ee.createElement("div",{className:de.analysis},ee.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(ba=jn==null?void 0:jn.answer_texts)==null?void 0:ba[0]),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:jn.analysis?jn.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),ai?`${(ai==null?void 0:ai.discipline_name)||"--"}/${ai==null?void 0:ai.sub_discipline_name}`:`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:ai?ai==null?void 0:ai.tag_discipline_name:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),ai?ai==null?void 0:ai.tag_discipline_name:jn==null?void 0:jn.tag_discipline_name))))},lo=jn=>{var ai,ba;return ee.createElement("div",{className:de.analysis},ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u9884\u671F\u8F93\u51FA:"),ee.createElement(ze.Z,{value:(ai=jn==null?void 0:jn.program_attr)==null?void 0:ai.description})),ee.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((ba=jn==null?void 0:jn.program_attr)==null?void 0:ba.answer_text)||"--"),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:jn.analysis?jn.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),jn==null?void 0:jn.tag_discipline_name))))},wa=(jn,ai)=>{var ba;return ee.createElement("div",null,(ba=jn==null?void 0:jn.sub_item_banks)==null?void 0:ba.map((na,Nr)=>{var Ti,Ni;const ra=[];return ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},ai+1+"."+(Nr+1),"\uFF08",ri[na.item_type]||Ki[na.item_type],"\uFF09",na.name),(na.item_type=="SINGLE"||na.item_type=="MULTIPLE"||na.item_type=="JUDGMENT"||na.item_type=="single"||na.item_type=="multiple"||na.item_type=="judgement")&&ee.createElement(ee.Fragment,null,ee.createElement("aside",{className:de.single},(Ti=na==null?void 0:na.choices)==null?void 0:Ti.map((Ei,Ii)=>(Ei.is_answer&&ra.push(Ao.k4[Ii]),ee.createElement("ul",{key:Ii},ee.createElement("li",null,Ao.k4[Ii],"\u3001"),ee.createElement("li",null,ee.createElement(ze.Z,{value:Ei.choice_text})))))),ee.createElement("div",{className:de.analysis},ee.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ra.join(""),ee.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",fi[na.difficulty])),ee.createElement("aside",null,ee.createElement("span",{className:de.text},"\u89E3\u6790:"),ee.createElement(ze.Z,{value:na.analysis?na.analysis:"\u6682\u65E0\u89E3\u6790"})),ee.createElement("ul",null,ee.createElement("li",null,ee.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u65B9\u5411&\u8BFE\u7A0B:"),`${(jn==null?void 0:jn.discipline_name)||"--"}/${jn==null?void 0:jn.sub_discipline_name}`),ee.createElement(Ge.Z,{title:jn==null?void 0:jn.tag_discipline_name},ee.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},ee.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),jn==null?void 0:jn.tag_discipline_name))))),(na.item_type=="COMPLETION"||na.item_type=="completion")&&Ua(na,jn),(na.item_type=="SUBJECTIVE"||na.item_type=="subjective")&&za(na,jn),((Ni=Lt==null?void 0:Lt.exam)==null?void 0:Ni.exercise_status)===3&&ee.createElement("div",{className:"flex gap-20px mt20"},ee.createElement(Co.Z,{state:na==null?void 0:na.is_wrong,onClick:()=>{fa==null||fa({value:El(il({},na),{question_id:na==null?void 0:na.id,question_score:na==null?void 0:na.score})})}}),na.item_type=="single"&&ee.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{Lo({value:na})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Ka=jn=>{var ai,ba,na;return ee.createElement("div",{style:{marginTop:"12px"}},(ba=(ai=jn==null?void 0:jn.shixun)==null?void 0:ai.challenges)==null?void 0:ba.map((Nr,Ti)=>ee.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ee.createElement("div",null,ee.createElement("span",{className:"mr5"},"\u7B2C",Ti+1,"\u5173"),ee.createElement(Ge.Z,{key:Ti,title:Nr==null?void 0:Nr.challenge_name},ee.createElement("span",null,(0,st.Pq)(Nr==null?void 0:Nr.challenge_name,44)))),ui&&ee.createElement("div",null,"\u5206\u503C\uFF1A",Nr.score,"\u5206"))),ee.createElement(We.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(na=jn==null?void 0:jn.shixun)==null?void 0:na.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),ee.createElement("div",{style:{clear:"both"}}))},so=jn=>{let ai=jn.questions_score/jn.questions_count;Me.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:ee.createElement("div",{className:de.modalColumn},ee.createElement("div",{className:de.modalRow,style:{justifyContent:"flex-start"}},ee.createElement("sup",{className:de.sup},"*"),ee.createElement("span",null,jn==null?void 0:jn.name,"\uFF1A"),ee.createElement(ue.Z,{min:0,precision:1,defaultValue:ai,onChange:ba=>{ai=ba}}),ee.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Al(void 0,null,function*(){var ba;if(!ai)return Ee.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const na={type:jn==null?void 0:jn.type,score:ai,scoreTotal:Number((ba=ai*jn.questions_count)==null?void 0:ba.toFixed(1))};ta(na)})})},Vi=()=>{let jn="";Me.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:ee.createElement("div",{className:de.modalColumn},ee.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},ee.createElement("img",{style:{marginRight:5},src:_t.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),ee.createElement("div",{className:de.modalRow,style:{marginTop:20}},ee.createElement("sup",{className:de.sup},"*"),ee.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),ee.createElement(fe.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:jn,onChange:ai=>{jn=ai.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Al(void 0,null,function*(){var ai;if(!jn)return Ee.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const ba=[],na=[],Nr=[],Ti=[];(ai=Lt==null?void 0:Lt.questionList)==null||ai.forEach(ra=>{var Ei;(Ei=ra.questions)==null||Ei.forEach(Ii=>{let Ui=ra.questions_score/ra.questions_count;Ui=Ui&&Ui.toFixed(1),ra.type==="COMBINATION"&&Nr.push({id:Ii.id,sub_item_bank_ids:Ii.sub_item_banks.map(Ba=>Ba.id)}),ra.type==="PRACTICAL"?Ti.push(Ii.id):(ba.push(Ii.id),na.push(Ui))})}),console.log("-----",Nr),yield rn({item_bank_ids:ba,item_bank_scores:na,name:jn,combination_item_banks:Nr,shixun_ids:Ti})})})},Xi=(jn,ai,ba,na)=>{var Nr;const Ti=`${location.pathname}${location.search}`,Ni=(Nr=na.questions)==null?void 0:Nr.map(ra=>ra==null?void 0:ra.id);if(Ti.includes("exercise"))qn.current={id:jn,ids:Ni,type:ai,index:ba},pr(!0);else{let ra=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:()=>Al(void 0,null,function*(){ra.update({cancelButtonProps:{disabled:!0}}),yield Oi({single_question_id:jn,seleted_item_bank_ids:Ni},{type:ai,index:ba}),ra.update({cancelButtonProps:{disabled:!1}}),Ee.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},da=jn=>{var ai;const ba=(ai=jn.questions)==null?void 0:ai.map(Ti=>Ti==null?void 0:Ti.id),na=jn.name;let Nr=Me.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${na}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Al(void 0,null,function*(){Nr.update({cancelButtonProps:{disabled:!0}}),yield Oi({seleted_item_bank_ids:ba},{type:jn.type}),Nr.update({cancelButtonProps:{disabled:!1}}),Ee.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${na}\u8BD5\u9898`)})})},So=()=>{let jn=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:()=>Al(void 0,null,function*(){jn.update({cancelButtonProps:{disabled:!0}}),yield Oi(),jn.update({cancelButtonProps:{disabled:!1}}),Ee.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},uo=jn=>{console.log(jn,"key"),wi(jn-1)},Eo=(jn,ai)=>{var ba,na;if(ai==="SINGLE")return ee.createElement(ee.Fragment,null,ee.createElement(nr,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="MULTIPLE")return ee.createElement(ee.Fragment,null,ee.createElement(vr,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="JUDGMENT")return ee.createElement(ee.Fragment,null,ee.createElement(sr,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="COMPLETION")return ee.createElement(ee.Fragment,null,ee.createElement(an,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="SUBJECTIVE")return ee.createElement(ee.Fragment,null,ee.createElement(ci,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="COMBINATION")return ee.createElement(ee.Fragment,null,ee.createElement(Kr,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null));if(ai==="BPROGRAM")return ee.createElement(ee.Fragment,null,ee.createElement(ke.default,{form:pi,style:{marginTop:20},onFinishFailed:Nr=>{var Ti,Ni;Nr.errorFields[0].name.includes("standard_answers")?Ee.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ee.ZP.error(Nr.errorFields[0].errors[0]),pi.scrollToField((Ni=(Ti=Nr==null?void 0:Nr.errorFields)==null?void 0:Ti[0])==null?void 0:Ni.name,{behavior:"smooth",block:"center"})},onFinish:Nr=>Al(void 0,null,function*(){var Ti;let Ni=El(il({question_score:jn.score},Nr),{question_type:8,hack:El(il({},Nr.hack),{difficult:jn.program_attr.difficult}),hack_codes:El(il({},Nr.hack_codes),{code:kl.Base64.encode((Ti=Nr.hack_codes)==null?void 0:Ti.code)})});ni&&(Ni.is_cover=1);const ra=yield(0,at.ZP)(`/api/exercise_questions/${jn.id}.json`,{method:"put",body:Ni});(ra==null?void 0:ra.status)===0&&(Ee.ZP.success("\u7F16\u8F91\u6210\u529F"),uo(bi+1)),hn(null)})},ee.createElement(no.tc,{form:pi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(ba=jn==null?void 0:jn.program_attr)==null?void 0:ba.identifier,answerKey:"standard_answers"}),ee.createElement(we.Z,null)));if(ai==="PROGRAM"&&We.history.push(`/problems/${(na=jn==null?void 0:jn.program_attr)==null?void 0:na.identifier}/edit?type=exercises&express_id=${ei.categoryId}&question_id=${jn==null?void 0:jn.id}&score=${jn==null?void 0:jn.score}&callback_url=${location.pathname}&select=${bi}&exercise=true`),ai==="PRACTICAL")return ee.createElement(ee.Fragment,null,ee.createElement(gr,{ref:zt,editData:jn,isEdit:!0}),ee.createElement(we.Z,null))},vo=(jn,ai)=>Al(void 0,null,function*(){var ba,na,Nr,Ti,Ni,ra;const Ei=yield(ba=zt.current)==null?void 0:ba.onSave();if(!Ei)return;const Ii=yi=>{const co=yi.map(ko=>ko.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(co).size!==co.length},Ui={question_score:ai.score,analysis:Ei.analysis};if(jn==="SINGLE"||jn==="MULTIPLE"||jn==="JUDGMENT"){if(jn!=="JUDGMENT"&&Ii(Ei==null?void 0:Ei.choices)){Ee.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const yi=[],co=[];Ui.question_type=jn==="JUDGMENT"?2:1,Ui.question_title=Ei==null?void 0:Ei.name,(na=Ei==null?void 0:Ei.choices)==null||na.forEach((Va,ko)=>{yi.push(Va.choice_text),Va!=null&&Va.is_answer&&co.push(ko+1)}),Ui.question_choices=yi,Ui.standard_answers=co}if(jn==="COMPLETION"){let yi=(Nr=Ei==null?void 0:Ei.standard_answers)==null?void 0:Nr.map((ko,Cl)=>Number(ko==null?void 0:ko.score)?null:Cl+1).filter(ko=>ko!==null);if((yi==null?void 0:yi.length)>0)return Ee.ZP.warning(`\u7B2C${yi.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let co=(Ti=Ei==null?void 0:Ei.standard_answers)==null?void 0:Ti.reduce((ko,Cl)=>ko+(Number(Cl==null?void 0:Cl.score)||0),0);if(console.log(parseFloat(co.toFixed(2)),Ui==null?void 0:Ui.question_score,222),parseFloat(co.toFixed(2))!=(Ui==null?void 0:Ui.question_score))return Ee.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Ui.is_ordered=Ei.is_ordered,Ui.question_title=Ei==null?void 0:Ei.name,Ui.use_blank_score=Ei==null?void 0:Ei.use_blank_score,Ui.question_type=3;const Va=[];(Ni=Ei==null?void 0:Ei.standard_answers)==null||Ni.forEach((ko,Cl)=>{Va.push({choice_id:ko.position,answer_text:ko.answer_text,score:ko.score})}),Ui.standard_answers=Va,Ui.downcase=Ei==null?void 0:Ei.downcase,Ui.no_space=Ei==null?void 0:Ei.no_space}if(jn==="SUBJECTIVE"&&(console.log("editorData"),console.log(Ei),Ui.question_title=Ei==null?void 0:Ei.name,Ui.question_type=4,Ui.answer_texts=Ei==null?void 0:Ei.answer_texts,Ui.use_keywords=Ei==null?void 0:Ei.use_keywords,Ui.keywords=Ei==null?void 0:Ei.keywords),jn==="COMBINATION"){Ui.question_title=Ei==null?void 0:Ei.name,Ui.question_type=7;try{Ui.sub_questions=(ra=Ei==null?void 0:Ei.sub_item_banks)==null?void 0:ra.map((yi,co)=>{var Va,ko,Cl;if((yi==null?void 0:yi.item_type)=="single"||(yi==null?void 0:yi.item_type)=="multiple"){if(Ii(yi==null?void 0:yi.choices))throw new Error(`\u7B2C${co+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Dl=[],zl=[];return(Va=yi==null?void 0:yi.choices)==null||Va.forEach((Hl,Rl)=>{Dl.push(Hl.choice_text),Hl!=null&&Hl.is_answer&&zl.push(Rl+1)}),{id:yi.id,question_id:yi.id,question_title:yi.name,difficulty:yi.difficulty,question_type:(yi==null?void 0:yi.item_type)=="single"?0:(yi==null?void 0:yi.item_type)=="multiple"?1:2,question_choices:Dl,standard_answers:zl,analysis:yi.analysis,question_score:yi==null?void 0:yi.score}}else if((yi==null?void 0:yi.item_type)=="completion"){let Dl=(ko=yi==null?void 0:yi.standard_answer)==null?void 0:ko.reduce((Hl,Rl)=>Hl+(Number(Rl==null?void 0:Rl.score)||0),0);if(parseFloat(Dl.toFixed(2))!=(yi==null?void 0:yi.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const zl=[];return(Cl=yi==null?void 0:yi.standard_answer)==null||Cl.forEach((Hl,Rl)=>{zl.push({choice_id:Hl.position,answer_text:Hl.answer_text,score:Hl.score})}),{id:yi.id,question_id:yi.id,is_ordered:yi.is_ordered,question_title:yi.name,difficulty:yi.difficulty,question_type:3,standard_answers:zl,use_blank_score:yi.use_blank_score,analysis:yi.analysis,downcase:yi==null?void 0:yi.downcase,no_space:yi==null?void 0:yi.no_space,question_score:yi==null?void 0:yi.score}}else if((yi==null?void 0:yi.item_type)=="subjective")return{id:yi.id,question_id:yi.id,question_title:yi.name,question_type:4,difficulty:yi.difficulty,answer_texts:yi==null?void 0:yi.answer_texts,analysis:yi.analysis,question_score:yi==null?void 0:yi.score,use_keywords:yi.use_keywords,keywords:yi==null?void 0:yi.keywords}})}catch(yi){Ee.ZP.warning(yi.message);return}delete Ui.analysis}let Ba=!1;(ai==null?void 0:ai.is_my)===1&&(Ba=yield new Promise((co,Va)=>{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:()=>{co(!0)},onCancel:()=>{co(!1)}})})),Ba&&(Ui.is_cover=1);const go=jn!=="PRACTICAL"?yield(0,at.ZP)(`/api/exercise_questions/${ai.id}.json`,{method:"put",body:Ui}):yield(0,at.ZP)(`/api/exercise_questions/${ai.id}/update_shixun_score.json`,{method:"post",body:il({},Ei)});(go==null?void 0:go.status)===0&&(Ee.ZP.success("\u7F16\u8F91\u6210\u529F"),uo(bi+1),hn(null))}),Io=()=>Al(void 0,null,function*(){(0,We.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,at.ZP)(`/api/exercises/${ei.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield wi(bi),Ee.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,We.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Lo=({value:jn}={})=>{var ai;const ba=[];let na=[];const Nr=(ai=jn==null?void 0:jn.choices)==null?void 0:ai.map((Ni,ra)=>{var Ei;const Ii=ra+1;return Ni!=null&&Ni.is_answer&&(ba.push(Ii),na.push(Ii)),{value:Ii,label:ee.createElement(ze.Z,{className:"c-black font14",value:`${(Ei=Ao.k4)==null?void 0:Ei[ra]}. ${Ni==null?void 0:Ni.choice_text}`}),disabled:Ni==null?void 0:Ni.origin_standard_answer}}),Ti=Me.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:ee.createElement(ee.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",ba==null?void 0:ba.map(Ni=>{var ra;return(ra=Ao.k4)==null?void 0:ra[Ni-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",ee.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",ee.createElement("br",null),ee.createElement(Ue.default.Group,{className:"flex-col mt20",options:Nr,defaultValue:na,onChange:Ni=>{na=Ni}})),onOk:()=>Al(void 0,null,function*(){const Ni=yield(0,at.ZP)(`/api/exercises/${ei.categoryId}/questions/${jn==null?void 0:jn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:na}});(Ni==null?void 0:Ni.status)===0&&(Ee.ZP.success("\u4FEE\u6539\u6210\u529F"),uo(bi+1))})})},Fo=(ro=Lt==null?void 0:Lt.questionList)==null?void 0:ro.reduce((jn,ai)=>jn+Number(ai.questions_score),0),Yo=ui&&((Qo=Lt==null?void 0:Lt.exam)==null?void 0:Qo.exercise_status)!==1;return ee.createElement("section",{className:de.wrap},ee.createElement("div",{id:"id_left_preview",className:de.left,onMouseEnter:jn=>{const ai=document.getElementById("id_left_preview");ai.style.overflowY="auto"},onMouseLeave:jn=>{const ai=document.getElementById("id_left_preview");ai.style.overflowY="hidden"}},ee.createElement("div",{className:de.title},ee.createElement("div",{className:"body-overflow-initial"},ee.createElement("b",null),ee.createElement("span",null,"\u7B54\u9898\u5361"))),ee.createElement("div",{className:de.total},ee.createElement("div",null,ee.createElement("img",{src:Pt}),ee.createElement("span",null,"\u9898\u6570(\u9053)"),ee.createElement("aside",null,Lt==null?void 0:Lt.all_questions_count)),ee.createElement("div",{className:"mr30 ml30"},ee.createElement("img",{src:Bt}),ee.createElement("span",null,"\u603B\u5206(\u5206)"),ee.createElement("aside",null,Fo&&Fo.toFixed(1))),ee.createElement("div",null,ee.createElement("img",{src:ye}),ee.createElement("span",null,"\u65F6\u957F(\u5206)"),ee.createElement("aside",null,((xo=Lt==null?void 0:Lt.exam)==null?void 0:xo.time)===-1||((xi=Lt==null?void 0:Lt.exam)==null?void 0:xi.time)===null?"\u4E0D\u9650":(Sa=Lt==null?void 0:Lt.exam)==null?void 0:Sa.time))),(Yi=Lt==null?void 0:Lt.questionList)==null?void 0:Yi.map((jn,ai)=>{var ba;return ee.createElement("div",{className:de.list,key:ai},ee.createElement("div",{className:de.name},ee.createElement("b",null),ee.createElement("span",null,jn.name)),ee.createElement("aside",null,ee.createElement("div",null,"\u5171",ee.createElement("span",{className:de.b},jn.questions_count),"\u9898 ",ee.createElement("span",{className:de.l},"|"),"\u5171",ee.createElement("span",{className:de.r},jn.questions_score),"\u5206"),ee.createElement("div",{className:de.answerSheet},(ba=jn==null?void 0:jn.questions)==null?void 0:ba.map((na,Nr)=>ee.createElement("div",{onClick:()=>{const Ti=`Anchor_${na==null?void 0:na.id}`;let Ni=document.getElementById(Ti);Ni&&setTimeout(()=>Ni.scrollIntoView({block:"center",behavior:"smooth"}))},key:na==null?void 0:na.id,className:de.tag},Nr+1)))))})),ee.createElement("div",{className:de.right},ee.createElement("div",{className:de.examName,id:"examName"},ee.createElement("div",{className:de.name},ee.createElement(Ge.Z,{title:(Ai=Lt==null?void 0:Lt.exam)==null?void 0:Ai.name,getPopupContainer:jn=>jn.parentNode},ee.createElement("span",{className:de.t},(ki=Lt==null?void 0:Lt.exam)==null?void 0:ki.name))),ui&&((ya=Lt==null?void 0:Lt.exam)==null?void 0:ya.exercise_status)===1&&ee.createElement(Ea.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:()=>{Io()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!ui&&ee.createElement(xe.ZP,{onClick:So,type:"primary"},"\u968F\u673A\u66F4\u6362")),ee.createElement("div",{className:de.topWarp},(Ye=Lt==null?void 0:Lt.questionList)==null?void 0:Ye.map((jn,ai)=>{var ba,na;return ee.createElement(ee.Fragment,{key:ai},ee.createElement("div",{className:de.head,style:ai===0?{border:0,marginTop:-16}:{}},ee.createElement("div",{className:de.name},ee.createElement("b",null),ee.createElement("span",null,jn.name)),ee.createElement("div",{className:de.so},"\u5171",ee.createElement("span",{className:de.b},jn.questions_count," "),"\u9898 ",jn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(ba=jn==null?void 0:jn.questions)==null?void 0:ba.map(Nr=>{var Ti;return(Ti=Nr==null?void 0:Nr.sub_item_banks)==null?void 0:Ti.length}).reduce((Nr,Ti)=>Nr+Ti)}\u5C0F\u9898\uFF09`,ee.createElement("span",{className:de.l},"|"),"\u5171",ee.createElement("span",{className:de.r},jn.questions_score),"\u5206"),!ui&&ee.createElement("div",{className:de.btn},ee.createElement(xe.ZP,{onClick:()=>{so(jn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),ee.createElement(xe.ZP,{onClick:()=>da(jn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(na=jn==null?void 0:jn.questions)==null?void 0:na.map((Nr,Ti)=>{var Ni,ra,Ei,Ii;return Ot===(Nr==null?void 0:Nr.id)?ee.createElement("div",{id:`Anchor_${Nr==null?void 0:Nr.id}`,className:de.content,style:{padding:0,marginTop:24},key:Nr==null?void 0:Nr.id},ee.createElement("div",{style:{float:"right",marginTop:`${(jn==null?void 0:jn.type)==="PRACTICAL"?"-2px":"-6px"}`}},ee.createElement(xe.ZP,{onClick:()=>hn(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),ee.createElement(xe.ZP,{onClick:()=>{vo(jn==null?void 0:jn.type,Nr)},type:"primary"},"\u4FDD\u5B58")),Eo(Nr,jn.type)):ee.createElement("div",{id:`Anchor_${Nr==null?void 0:Nr.id}`,className:de.content,key:Nr==null?void 0:Nr.id},ee.createElement("div",{className:de.titleWrap},(Nr==null?void 0:Nr.item_type)==="bprogram"?ee.createElement(ze.Z,{style:{paddingRight:10},value:Ti+1+"\u3001"+((Ni=Nr==null?void 0:Nr.program_attr)==null?void 0:Ni.description)}):ee.createElement(ze.Z,{style:{paddingRight:10},className:de.titleHtml,value:Ti+1+`\u3001${(Nr==null?void 0:Nr.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Nr==null?void 0:Nr.name)}),ui&&ee.createElement(xe.ZP,{onClick:()=>{var Ui,Ba,go;if(Ot){Ee.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}pi.setFieldsValue({standard_answers:Nr==null?void 0:Nr.standard_answer,hack:il(il({},Nr),Nr==null?void 0:Nr.program_attr),hack_codes:El(il({},Nr==null?void 0:Nr.program_attr),{code:kl.Base64.decode(((Ui=Nr==null?void 0:Nr.program_attr)==null?void 0:Ui.code)||"")}),hack_sets:il({},(Ba=Nr==null?void 0:Nr.hack_sets)==null?void 0:Ba[0])}),(Nr==null?void 0:Nr.item_type)=="program"?We.history.push(`/problems/newedit/${(go=Nr==null?void 0:Nr.program_attr)==null?void 0:go.identifier}?type=exercises&express_id=${ei.categoryId}&question_id=${Nr==null?void 0:Nr.id}&score=${Nr==null?void 0:Nr.score}&exercise=true&callback_url=/classrooms/${ei.coursesId}/exercise/${ei.categoryId}/detail?random=true`):hn(Nr==null?void 0:Nr.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!Yo&&ee.createElement(xe.ZP,{disabled:Yo,className:"ml20",onClick:()=>Xi(Nr==null?void 0:Nr.id,jn.type,Ti,jn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Nr==null?void 0:Nr.item_type)==="bprogram"&&ee.createElement(ze.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:de.titleHtml,value:kl.Base64.decode(((ra=Nr==null?void 0:Nr.program_attr)==null?void 0:ra.code)||"")}),(jn.type==="SINGLE"||jn.type==="JUDGMENT"||jn.type==="MULTIPLE")&&Ma(Nr),jn.type==="COMPLETION"&&Ua(Nr),jn.type==="SUBJECTIVE"&&za(Nr),jn.type==="PROGRAM"&&lo(Nr),jn.type==="BPROGRAM"&&Xa(Nr),jn.type==="COMBINATION"&&wa(Nr,Ti),jn.type==="PRACTICAL"&&Ka(Nr),ee.createElement(De.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((Ei=Lt==null?void 0:Lt.exam)==null?void 0:Ei.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(jn.type)&&ee.createElement(Ke.Z,null,ee.createElement(Co.Z,{state:Nr==null?void 0:Nr.is_wrong,onClick:()=>{fa==null||fa({value:El(il({},Nr),{question_id:Nr==null?void 0:Nr.id,question_score:Nr==null?void 0:Nr.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(jn.type)&&(Nr==null?void 0:Nr.show_resubmit)&&ee.createElement(Ke.Z,null,ee.createElement(_a.C,{dataSource:El(il({},Nr),{question_id:Nr==null?void 0:Nr.id})})),((Ii=Lt==null?void 0:Lt.exam)==null?void 0:Ii.exercise_status)===3&&["SINGLE"].includes(jn.type)&&ee.createElement(Ke.Z,null,ee.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{Lo({value:Nr})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),ui?ee.createElement(Ea.vr,null,ee.createElement(rt.Z,{showTotal:st.rU,total:(tt=Lt==null?void 0:Lt.exam)==null?void 0:tt.total_num,pageSize:1,current:bi+1,showSizeChanger:!1,onChange:uo,showQuickJumper:!1,hideOnSinglePage:!1})):ee.createElement(Ea.vr,{LeftContent:ee.createElement(Ea.op,{onClick:gn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:ee.createElement(De.Z,{align:"middle"},ee.createElement(Qe.Z,{color:"#55575D",overlayClassName:de.popover,open:Pn,getPopupContainer:jn=>jn==null?void 0:jn.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"},ee.createElement(Ea.op,{onMouseEnter:()=>xn(!0),onMouseLeave:()=>xn(!1),onClick:()=>Al(void 0,null,function*(){const jn=Number(Fo);[100,120,150].includes(jn)||(yield new Promise((ai,ba)=>{Me.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ee.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",ee.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},jn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Al(void 0,null,function*(){ai("")}),onCancel:()=>{ba()}})})),Vi()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),ee.createElement(Ea.op,{shape:"default",type:"primary",onClick:()=>Al(void 0,null,function*(){const jn=Number(Fo);[100,120,150].includes(jn)||(yield new Promise((ai,ba)=>{Me.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ee.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",ee.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},jn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Al(void 0,null,function*(){ai("")}),onCancel:()=>{ba()}})})),rn()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),ee.createElement(zo,{visible:lr,questionParams:qn.current,getdata:Pa,onRandomExchange:()=>Al(void 0,null,function*(){const jn=qn.current;yield Oi({single_question_id:jn.id,seleted_item_bank_ids:jn.ids},{type:jn.type,index:jn.index}),pr(!1)}),selectFromProblemSet:()=>{const jn=qn.current,ai=`${location.pathname}${location.search}`;ai.includes("exercise")&&We.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${jn.id}&qtype=${jn.type}&exerciseid=${ei.categoryId}&from=${ai}`)},onCancel:()=>{pr(!1)}}))}},72911:function(vn,Tt,te){"use strict";te.r(Tt),te.d(Tt,{default:function(){return Ve}});var ee=te(67294),de=te(35973),ke={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"},Ge=te(38884),xe=te(2453),Me=te(46303),ue=te(33170),Ee=te(28706),fe=te(67294),we=Object.defineProperty,Ue=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,rt=(lt,He,Oe)=>He in lt?we(lt,He,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):lt[He]=Oe,Qe=(lt,He)=>{for(var Oe in He||(He={}))De.call(He,Oe)&&rt(lt,Oe,He[Oe]);if(Ue)for(var Oe of Ue(He))Ke.call(He,Oe)&&rt(lt,Oe,He[Oe]);return lt},_e=(lt,He,Oe)=>new Promise((ve,ye)=>{var ze=at=>{try{st(Oe.next(at))}catch(Ze){ye(Ze)}},We=at=>{try{st(Oe.throw(at))}catch(Ze){ye(Ze)}},st=at=>at.done?ve(at.value):Promise.resolve(at.value).then(ze,We);st((Oe=Oe.apply(lt,He)).next())});const ge=({paperlibrary:lt,user:He,globalSetting:Oe,dispatch:ve,location:ye})=>{var ze,We,st,at;const[Ze]=(0,de.useSearchParams)(),Ae=Ze.get("select")||0,[mt,je]=(0,ee.useState)(!1),[it,qe]=(0,ee.useState)(!0),[gt,Pt]=(0,ee.useState)(Number(Ae)),[Xt,$e]=(0,ee.useState)({}),Be=(0,de.useParams)(),{userInfo:St}=He,{actionTabs:Vt}=lt;(0,ee.useEffect)(()=>(ve({type:"globalSetting/footerToggle",payload:!1}),()=>{ve({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ee.useEffect)(()=>(ve({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),ve({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),ve({type:"exercise/getWorkSetting",payload:Qe({},Be)}),()=>{ve({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),ve({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,ee.useEffect)(()=>{Rt(gt)},[]),(0,ee.useEffect)(()=>{var kt;(kt=Vt==null?void 0:Vt.params)!=null&&kt.isUpdateData&&Rt(gt)},[(ze=Vt==null?void 0:Vt.params)==null?void 0:ze.isUpdateData]);const Rt=(kt=0)=>_e(void 0,null,function*(){console.log(Be),qe(!0);const un=yield(0,ue.ZP)(`/api/exercises/${Be.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:kt}});ve({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),qe(!1),$e((0,Ee.PF)(un))}),ht=()=>{de.history.push(`/classrooms/${Be.coursesId}/exercise`)},Bt=()=>{alert("\u4FDD\u5B58")},_t=(kt,un)=>_e(void 0,null,function*(){const Wn=yield(0,ue.ZP)(`/api/exercises/${Be.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:kt==null?void 0:kt.single_question_id}});Wn!=null&&Wn.question&&(xe.ZP.info("\u6362\u9898\u6210\u529F"),Rt(gt))}),Fn=kt=>_e(void 0,null,function*(){document.body.scrollIntoView(),Pt(kt),yield Rt(kt)}),kn=kt=>{ve({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:kt}})};return fe.createElement("section",{className:ke.wrap},fe.createElement(Me.Z,{loading:it,active:!0,paragraph:{rows:5}},((st=(We=(0,de.useLocation)())==null?void 0:We.pathname)==null?void 0:st.includes("preview"))&&fe.createElement("div",{className:ke.crumbs},fe.createElement("b",null),fe.createElement("span",{className:"current",onClick:()=>de.history.push(`/classrooms/${Be.coursesId}/exercise`)},`${(at=St==null?void 0:St.course)==null?void 0:at.course_name}>`),fe.createElement("span",{className:"current",onClick:()=>de.history.push(`/classrooms/${Be.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),fe.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),fe.createElement(Ge.Z,{loading:mt,submit:Bt,goBack:ht,data:Xt,getdata:()=>{Rt(gt)},selectValue:gt,editPreview:!0,onExchange:_t,onSkipExamination:Fn,handleMarkWrongQuestion:kn})))};var Ve=(0,de.connect)(({paperlibrary:lt,user:He,globalSetting:Oe})=>({paperlibrary:lt,user:He,globalSetting:Oe}))(ge)},99678:function(vn,Tt,te){"use strict";te.d(Tt,{g:function(){return xe}});var ee=te(67294),de=te(56443),ke=te(53430),Ge=(Me,ue,Ee)=>new Promise((fe,we)=>{var Ue=rt=>{try{Ke(Ee.next(rt))}catch(Qe){we(Qe)}},De=rt=>{try{Ke(Ee.throw(rt))}catch(Qe){we(Qe)}},Ke=rt=>rt.done?fe(rt.value):Promise.resolve(rt.value).then(Ue,De);Ke((Ee=Ee.apply(Me,ue)).next())});const xe=()=>{const[Me,ue]=(0,ee.useState)([]);return(0,ee.useEffect)(()=>{Ge(void 0,null,function*(){const fe=yield(0,de.d1)({source:"question"});fe!=null&&fe.disciplines&&ue((0,ke.L)(fe==null?void 0:fe.disciplines))})},[]),Me}},9343:function(vn,Tt,te){"use strict";te.d(Tt,{U:function(){return fe}});var ee=te(67294),de=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Me=(we,Ue,De)=>Ue in we?de(we,Ue,{enumerable:!0,configurable:!0,writable:!0,value:De}):we[Ue]=De,ue=(we,Ue)=>{for(var De in Ue||(Ue={}))Ge.call(Ue,De)&&Me(we,De,Ue[De]);if(ke)for(var De of ke(Ue))xe.call(Ue,De)&&Me(we,De,Ue[De]);return we},Ee=(we,Ue,De)=>new Promise((Ke,rt)=>{var Qe=Ve=>{try{ge(De.next(Ve))}catch(lt){rt(lt)}},_e=Ve=>{try{ge(De.throw(Ve))}catch(lt){rt(lt)}},ge=Ve=>Ve.done?Ke(Ve.value):Promise.resolve(Ve.value).then(Qe,_e);ge((De=De.apply(we,Ue)).next())});function fe(we,Ue){const[De,Ke]=(0,ee.useState)(Ue),[rt,Qe]=(0,ee.useState)(!1),[_e,ge]=(0,ee.useState)();return[De,rt,(lt,He=!1)=>Ee(this,null,function*(){const Oe=He?Ue:ue(ue({},De),lt);Qe(!0),Ke(Oe);const ve=yield we(Oe);return Qe(!1),ge(ve),ve}),_e,ge]}},38780:function(vn,Tt){"use strict";function te(){const ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let de=1;de<arguments.length;de++){const ke=de<0||arguments.length<=de?void 0:arguments[de];ke&&Object.keys(ke).forEach(Ge=>{const xe=ke[Ge];xe!==void 0&&(ee[Ge]=xe)})}return ee}Tt.Z=te},81643:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ee}});const ee=de=>de?typeof de=="function"?de():de:null},66367:function(vn,Tt,te){"use strict";te.d(Tt,{F:function(){return ee},Z:function(){return de}});function ee(ke){return ke!=null&&ke===ke.window}function de(ke,Ge){var xe,Me;if(typeof window=="undefined")return 0;const ue=Ge?"scrollTop":"scrollLeft";let Ee=0;return ee(ke)?Ee=ke[Ge?"pageYOffset":"pageXOffset"]:ke instanceof Document?Ee=ke.documentElement[ue]:(ke instanceof HTMLElement||ke)&&(Ee=ke[ue]),ke&&!ee(ke)&&typeof Ee!="number"&&(Ee=(Me=((xe=ke.ownerDocument)!==null&&xe!==void 0?xe:ke).documentElement)===null||Me===void 0?void 0:Me[ue]),Ee}},57838:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});var ee=te(67294);function de(){const[,ke]=ee.useReducer(Ge=>Ge+1,0);return ke}},58375:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ge}});var ee=te(96523);function de(xe,Me,ue,Ee){const fe=ue-Me;return xe/=Ee/2,xe<1?fe/2*xe*xe*xe+Me:fe/2*((xe-=2)*xe*xe+2)+Me}var ke=te(66367);function Ge(xe){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:Ee,duration:fe=450}=Me,we=ue(),Ue=(0,ke.Z)(we,!0),De=Date.now(),Ke=()=>{const Qe=Date.now()-De,_e=de(Qe>fe?fe:Qe,Ue,xe,fe);(0,ke.F)(we)?we.scrollTo(window.pageXOffset,_e):we instanceof Document||we.constructor.name==="HTMLDocument"?we.documentElement.scrollTop=_e:we.scrollTop=_e,Qe<fe?(0,ee.Z)(Ke):typeof Ee=="function"&&Ee()};(0,ee.Z)(Ke)}},9708:function(vn,Tt,te){"use strict";te.d(Tt,{F:function(){return xe},Z:function(){return Ge}});var ee=te(94184),de=te.n(ee);const ke=null;function Ge(Me,ue,Ee){return de()({[`${Me}-status-success`]:ue==="success",[`${Me}-status-warning`]:ue==="warning",[`${Me}-status-error`]:ue==="error",[`${Me}-status-validating`]:ue==="validating",[`${Me}-has-feedback`]:Ee})}const xe=(Me,ue)=>ue||Me},85546:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ya}});var ee=te(74902),de=te(67294),ke=te(22751),Ge=te(3407),xe=te(91034),Me=te(94184),ue=te.n(Me),Ee=te(87462),fe=te(97685),we=te(45987),Ue=te(4942),De=te(1413),Ke=te(71002);function rt(Ye){var tt=de.useRef();tt.current=Ye;var zt=de.useCallback(function(){for(var Ot,hn=arguments.length,Pn=new Array(hn),xn=0;xn<hn;xn++)Pn[xn]=arguments[xn];return(Ot=tt.current)===null||Ot===void 0?void 0:Ot.call.apply(Ot,[tt].concat(Pn))},[]);return zt}function Qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _e=Qe()?de.useLayoutEffect:de.useEffect,ge=_e,Ve=function(tt,zt){var Ot=de.useRef(!0);_e(function(){if(!Ot.current)return tt()},zt),_e(function(){return Ot.current=!1,function(){Ot.current=!0}},[])};function lt(Ye){var tt=de.useRef(!1),zt=de.useState(Ye),Ot=(0,fe.Z)(zt,2),hn=Ot[0],Pn=Ot[1];de.useEffect(function(){return tt.current=!1,function(){tt.current=!0}},[]);function xn(lr,pr){pr&&tt.current||Pn(lr)}return[hn,xn]}function He(Ye){return Ye!==void 0}function Oe(Ye,tt){var zt=tt||{},Ot=zt.defaultValue,hn=zt.value,Pn=zt.onChange,xn=zt.postState,lr=lt(function(){return He(hn)?hn:He(Ot)?typeof Ot=="function"?Ot():Ot:typeof Ye=="function"?Ye():Ye}),pr=(0,fe.Z)(lr,2),qn=pr[0],pi=pr[1],ei=hn!==void 0?hn:qn,ni=xn?xn(ei):ei,$r=rt(Pn),fi=lt([ei]),ri=(0,fe.Z)(fi,2),Ki=ri[0],Ma=ri[1];Ve(function(){var Xa=Ki[0];qn!==Xa&&$r(qn,Xa)},[Ki]),Ve(function(){He(hn)||pi(hn)},[hn]);var Ua=rt(function(Xa,za){pi(Xa,za),Ma([ei],za)});return[ni,Ua]}var ve={};function ye(Ye,tt){}function ze(Ye,tt){}function We(){ve={}}function st(Ye,tt,zt){!tt&&!ve[zt]&&(Ye(!1,zt),ve[zt]=!0)}function at(Ye,tt){st(ye,Ye,tt)}function Ze(Ye,tt){st(ze,Ye,tt)}var Ae=at,mt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ye=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ye)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ye==null?void 0:Ye.substr(0,4))},je={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(tt){var zt=tt.keyCode;if(tt.altKey&&!tt.ctrlKey||tt.metaKey||zt>=je.F1&&zt<=je.F12)return!1;switch(zt){case je.ALT:case je.CAPS_LOCK:case je.CONTEXT_MENU:case je.CTRL:case je.DOWN:case je.END:case je.ESC:case je.HOME:case je.INSERT:case je.LEFT:case je.MAC_FF_META:case je.META:case je.NUMLOCK:case je.NUM_CENTER:case je.PAGE_DOWN:case je.PAGE_UP:case je.PAUSE:case je.PRINT_SCREEN:case je.RIGHT:case je.SHIFT:case je.UP:case je.WIN_KEY:case je.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(tt){if(tt>=je.ZERO&&tt<=je.NINE||tt>=je.NUM_ZERO&&tt<=je.NUM_MULTIPLY||tt>=je.A&&tt<=je.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&tt===0)return!0;switch(tt){case je.SPACE:case je.QUESTION_MARK:case je.NUM_PLUS:case je.NUM_MINUS:case je.NUM_PERIOD:case je.NUM_DIVISION:case je.SEMICOLON:case je.DASH:case je.EQUALS:case je.COMMA:case je.PERIOD:case je.SLASH:case je.APOSTROPHE:case je.SINGLE_QUOTE:case je.OPEN_SQUARE_BRACKET:case je.BACKSLASH:case je.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},it=je,qe=te(16357);function gt(Ye,tt,zt){var Ot=de.useRef({});return(!("value"in Ot.current)||zt(Ot.current.condition,tt))&&(Ot.current.value=Ye(),Ot.current.condition=tt),Ot.current.value}function Pt(Ye,tt){typeof Ye=="function"?Ye(tt):(0,Ke.Z)(Ye)==="object"&&Ye&&"current"in Ye&&(Ye.current=tt)}function Xt(){for(var Ye=arguments.length,tt=new Array(Ye),zt=0;zt<Ye;zt++)tt[zt]=arguments[zt];var Ot=tt.filter(function(hn){return hn});return Ot.length<=1?Ot[0]:function(hn){tt.forEach(function(Pn){Pt(Pn,hn)})}}function $e(){for(var Ye=arguments.length,tt=new Array(Ye),zt=0;zt<Ye;zt++)tt[zt]=arguments[zt];return gt(function(){return Xt.apply(void 0,tt)},tt,function(Ot,hn){return Ot.length===hn.length&&Ot.every(function(Pn,xn){return Pn===hn[xn]})})}function Be(Ye){var tt,zt,Ot=isMemo(Ye)?Ye.type.type:Ye.type;return!(typeof Ot=="function"&&!((tt=Ot.prototype)!==null&&tt!==void 0&&tt.render)||typeof Ye=="function"&&!((zt=Ye.prototype)!==null&&zt!==void 0&&zt.render))}var St=function(tt){var zt=tt.className,Ot=tt.customizeIcon,hn=tt.customizeIconProps,Pn=tt.onMouseDown,xn=tt.onClick,lr=tt.children,pr;return typeof Ot=="function"?pr=Ot(hn):pr=Ot,de.createElement("span",{className:zt,onMouseDown:function(pi){pi.preventDefault(),Pn&&Pn(pi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:xn,"aria-hidden":!0},pr!==void 0?pr:de.createElement("span",{className:ue()(zt.split(/\s+/).map(function(qn){return"".concat(qn,"-icon")}))},lr))},Vt=St;function Rt(Ye,tt,zt,Ot,hn){var Pn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,xn=arguments.length>6?arguments[6]:void 0,lr=arguments.length>7?arguments[7]:void 0,pr=de.useMemo(function(){if((0,Ke.Z)(Ot)==="object")return Ot.clearIcon;if(hn)return hn},[Ot,hn]),qn=de.useMemo(function(){return!!(!Pn&&Ot&&(zt.length||xn)&&!(lr==="combobox"&&xn===""))},[Ot,Pn,zt.length,xn,lr]);return{allowClear:qn,clearIcon:de.createElement(Vt,{className:"".concat(Ye,"-clear"),onMouseDown:tt,customizeIcon:pr},"\xD7")}}var ht=de.createContext(null);function Bt(){return de.useContext(ht)}function _t(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,tt=de.useState(!1),zt=(0,fe.Z)(tt,2),Ot=zt[0],hn=zt[1],Pn=de.useRef(null),xn=function(){window.clearTimeout(Pn.current)};de.useEffect(function(){return xn},[]);var lr=function(qn,pi){xn(),Pn.current=window.setTimeout(function(){hn(qn),pi&&pi()},Ye)};return[Ot,lr,xn]}function Fn(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,tt=de.useRef(null),zt=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(zt.current)}},[]);function Ot(hn){(hn||tt.current===null)&&(tt.current=hn),window.clearTimeout(zt.current),zt.current=window.setTimeout(function(){tt.current=null},Ye)}return[function(){return tt.current},Ot]}function kn(Ye,tt,zt,Ot){var hn=de.useRef(null);hn.current={open:tt,triggerOpen:zt,customizedTrigger:Ot},de.useEffect(function(){function Pn(xn){var lr;if(!((lr=hn.current)!==null&&lr!==void 0&&lr.customizedTrigger)){var pr=xn.target;pr.shadowRoot&&xn.composed&&(pr=xn.composedPath()[0]||pr),hn.current.open&&Ye().filter(function(qn){return qn}).every(function(qn){return!qn.contains(pr)&&qn!==pr})&&hn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pn),function(){return window.removeEventListener("mousedown",Pn)}},[])}var kt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,un=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Wn="".concat(kt," ").concat(un).split(/[\s\n]+/),An="aria-",Ie="data-";function he(Ye,tt){return Ye.indexOf(tt)===0}function ce(Ye){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt;tt===!1?zt={aria:!0,data:!0,attr:!0}:tt===!0?zt={aria:!0}:zt=(0,De.Z)({},tt);var Ot={};return Object.keys(Ye).forEach(function(hn){(zt.aria&&(hn==="role"||he(hn,An))||zt.data&&he(hn,Ie)||zt.attr&&Wn.includes(hn))&&(Ot[hn]=Ye[hn])}),Ot}var me=te(48555);function pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var le=pe()?de.useLayoutEffect:de.useEffect,Le=function(tt,zt){var Ot=de.useRef(!0);le(function(){return tt(Ot.current)},zt),le(function(){return Ot.current=!1,function(){Ot.current=!0}},[])},dt=function(tt,zt){Le(function(Ot){if(!Ot)return tt()},zt)},Nt=Le,tn=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],an=void 0;function Yt(Ye,tt){var zt=Ye.prefixCls,Ot=Ye.invalidate,hn=Ye.item,Pn=Ye.renderItem,xn=Ye.responsive,lr=Ye.responsiveDisabled,pr=Ye.registerSize,qn=Ye.itemKey,pi=Ye.className,ei=Ye.style,ni=Ye.children,$r=Ye.display,fi=Ye.order,ri=Ye.component,Ki=ri===void 0?"div":ri,Ma=(0,we.Z)(Ye,tn),Ua=xn&&!$r;function Xa(so){pr(qn,so)}de.useEffect(function(){return function(){Xa(null)}},[]);var za=Pn&&hn!==an?Pn(hn):ni,lo;Ot||(lo={opacity:Ua?0:1,height:Ua?0:an,overflowY:Ua?"hidden":an,order:xn?fi:an,pointerEvents:Ua?"none":an,position:Ua?"absolute":an});var wa={};Ua&&(wa["aria-hidden"]=!0);var Ka=de.createElement(Ki,(0,Ee.Z)({className:ue()(!Ot&&zt,pi),style:(0,De.Z)((0,De.Z)({},lo),ei)},wa,Ma,{ref:tt}),za);return xn&&(Ka=de.createElement(me.Z,{onResize:function(Vi){var Xi=Vi.offsetWidth;Xa(Xi)},disabled:lr},Ka)),Ka}var dn=de.forwardRef(Yt);dn.displayName="Item";var Mt=dn;function Wt(Ye){var tt=de.useRef();tt.current=Ye;var zt=de.useCallback(function(){for(var Ot,hn=arguments.length,Pn=new Array(hn),xn=0;xn<hn;xn++)Pn[xn]=arguments[xn];return(Ot=tt.current)===null||Ot===void 0?void 0:Ot.call.apply(Ot,[tt].concat(Pn))},[]);return zt}var qt=te(73935),Gt=function(tt){return+setTimeout(tt,16)},jt=function(tt){return clearTimeout(tt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Gt=function(tt){return window.requestAnimationFrame(tt)},jt=function(tt){return window.cancelAnimationFrame(tt)});var sr=0,Dt=new Map;function Jt(Ye){Dt.delete(Ye)}var Gn=function(tt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sr+=1;var Ot=sr;function hn(Pn){if(Pn===0)Jt(Ot),tt();else{var xn=Gt(function(){hn(Pn-1)});Dt.set(Ot,xn)}}return hn(zt),Ot};Gn.cancel=function(Ye){var tt=Dt.get(Ye);return Jt(tt),jt(tt)};var Bn=Gn;function Sn(Ye){if(typeof MessageChannel=="undefined")Bn(Ye);else{var tt=new MessageChannel;tt.port1.onmessage=function(){return Ye()},tt.port2.postMessage(void 0)}}function or(){var Ye=de.useRef(null),tt=function(Ot){Ye.current||(Ye.current=[],Sn(function(){(0,qt.unstable_batchedUpdates)(function(){Ye.current.forEach(function(hn){hn()}),Ye.current=null})})),Ye.current.push(Ot)};return tt}function gr(Ye,tt){var zt=de.useState(tt),Ot=(0,fe.Z)(zt,2),hn=Ot[0],Pn=Ot[1],xn=Wt(function(lr){Ye(function(){Pn(lr)})});return[hn,xn]}var kr=de.createContext(null),Lr=["component"],Qr=["className"],Ir=["className"],Dn=function(tt,zt){var Ot=de.useContext(kr);if(!Ot){var hn=tt.component,Pn=hn===void 0?"div":hn,xn=(0,we.Z)(tt,Lr);return de.createElement(Pn,(0,Ee.Z)({},xn,{ref:zt}))}var lr=Ot.className,pr=(0,we.Z)(Ot,Qr),qn=tt.className,pi=(0,we.Z)(tt,Ir);return de.createElement(kr.Provider,{value:null},de.createElement(Mt,(0,Ee.Z)({ref:zt,className:ue()(lr,qn)},pr,pi)))},cr=de.forwardRef(Dn);cr.displayName="RawItem";var vr=cr,Ur=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ti="responsive",Kt="invalidate";function _n(Ye){return"+ ".concat(Ye.length," ...")}function nn(Ye,tt){var zt=Ye.prefixCls,Ot=zt===void 0?"rc-overflow":zt,hn=Ye.data,Pn=hn===void 0?[]:hn,xn=Ye.renderItem,lr=Ye.renderRawItem,pr=Ye.itemKey,qn=Ye.itemWidth,pi=qn===void 0?10:qn,ei=Ye.ssr,ni=Ye.style,$r=Ye.className,fi=Ye.maxCount,ri=Ye.renderRest,Ki=Ye.renderRawRest,Ma=Ye.suffix,Ua=Ye.component,Xa=Ua===void 0?"div":Ua,za=Ye.itemComponent,lo=Ye.onVisibleChange,wa=(0,we.Z)(Ye,Ur),Ka=ei==="full",so=or(),Vi=gr(so,null),Xi=(0,fe.Z)(Vi,2),da=Xi[0],So=Xi[1],uo=da||0,Eo=gr(so,new Map),vo=(0,fe.Z)(Eo,2),Io=vo[0],Lo=vo[1],Fo=gr(so,0),Yo=(0,fe.Z)(Fo,2),jn=Yo[0],ai=Yo[1],ba=gr(so,0),na=(0,fe.Z)(ba,2),Nr=na[0],Ti=na[1],Ni=gr(so,0),ra=(0,fe.Z)(Ni,2),Ei=ra[0],Ii=ra[1],Ui=(0,de.useState)(null),Ba=(0,fe.Z)(Ui,2),go=Ba[0],yi=Ba[1],co=(0,de.useState)(null),Va=(0,fe.Z)(co,2),ko=Va[0],Cl=Va[1],Dl=de.useMemo(function(){return ko===null&&Ka?Number.MAX_SAFE_INTEGER:ko||0},[ko,da]),zl=(0,de.useState)(!1),Hl=(0,fe.Z)(zl,2),Rl=Hl[0],Ts=Hl[1],ks="".concat(Ot,"-item"),Qs=Math.max(jn,Nr),ps=fi===ti,ql=Pn.length&&ps,Bs=fi===Kt,gs=ql||typeof fi=="number"&&Pn.length>fi,us=(0,de.useMemo)(function(){var sl=Pn;return ql?da===null&&Ka?sl=Pn:sl=Pn.slice(0,Math.min(Pn.length,uo/pi)):typeof fi=="number"&&(sl=Pn.slice(0,fi)),sl},[Pn,pi,da,fi,ql]),js=(0,de.useMemo)(function(){return ql?Pn.slice(Dl+1):Pn.slice(us.length)},[Pn,us,ql,Dl]),Os=(0,de.useCallback)(function(sl,oa){var eo;return typeof pr=="function"?pr(sl):(eo=pr&&(sl==null?void 0:sl[pr]))!==null&&eo!==void 0?eo:oa},[pr]),cs=(0,de.useCallback)(xn||function(sl){return sl},[xn]);function Ys(sl,oa,eo){ko===sl&&(oa===void 0||oa===go)||(Cl(sl),eo||(Ts(sl<Pn.length-1),lo==null||lo(sl)),oa!==void 0&&yi(oa))}function Zu(sl,oa){So(oa.clientWidth)}function Fu(sl,oa){Lo(function(eo){var Bo=new Map(eo);return oa===null?Bo.delete(sl):Bo.set(sl,oa),Bo})}function ys(sl,oa){Ti(oa),ai(Nr)}function Ll(sl,oa){Ii(oa)}function bs(sl){return Io.get(Os(us[sl],sl))}Nt(function(){if(uo&&typeof Qs=="number"&&us){var sl=Ei,oa=us.length,eo=oa-1;if(!oa){Ys(0,null);return}for(var Bo=0;Bo<oa;Bo+=1){var Xo=bs(Bo);if(Ka&&(Xo=Xo||0),Xo===void 0){Ys(Bo-1,void 0,!0);break}if(sl+=Xo,eo===0&&sl<=uo||Bo===eo-1&&sl+bs(eo)<=uo){Ys(eo,null);break}else if(sl+Qs>uo){Ys(Bo-1,sl-Xo-Ei+Nr);break}}Ma&&bs(0)+Ei>uo&&yi(null)}},[uo,Io,Nr,Ei,Os,us]);var Xs=Rl&&!!js.length,vu={};go!==null&&ql&&(vu={position:"absolute",left:go,top:0});var os={prefixCls:ks,responsive:ql,component:za,invalidate:Bs},Gl=lr?function(sl,oa){var eo=Os(sl,oa);return de.createElement(kr.Provider,{key:eo,value:(0,De.Z)((0,De.Z)({},os),{},{order:oa,item:sl,itemKey:eo,registerSize:Fu,display:oa<=Dl})},lr(sl,oa))}:function(sl,oa){var eo=Os(sl,oa);return de.createElement(Mt,(0,Ee.Z)({},os,{order:oa,key:eo,item:sl,renderItem:cs,itemKey:eo,registerSize:Fu,display:oa<=Dl}))},rs,Js={order:Xs?Dl:Number.MAX_SAFE_INTEGER,className:"".concat(ks,"-rest"),registerSize:ys,display:Xs};if(Ki)Ki&&(rs=de.createElement(kr.Provider,{value:(0,De.Z)((0,De.Z)({},os),Js)},Ki(js)));else{var Ds=ri||_n;rs=de.createElement(Mt,(0,Ee.Z)({},os,Js),typeof Ds=="function"?Ds(js):Ds)}var $s=de.createElement(Xa,(0,Ee.Z)({className:ue()(!Bs&&Ot,$r),style:ni,ref:tt},wa),us.map(Gl),gs?rs:null,Ma&&de.createElement(Mt,(0,Ee.Z)({},os,{responsive:ps,responsiveDisabled:!ql,order:Dl,className:"".concat(ks,"-suffix"),registerSize:Ll,display:!0,style:vu}),Ma));return ps&&($s=de.createElement(me.Z,{onResize:Zu,disabled:!ql},$s)),$s}var In=de.forwardRef(nn);In.displayName="Overflow",In.Item=vr,In.RESPONSIVE=ti,In.INVALIDATE=Kt;var nr=In,Rr=nr,Pr=function(tt,zt){var Ot,hn,Pn=tt.prefixCls,xn=tt.id,lr=tt.inputElement,pr=tt.disabled,qn=tt.tabIndex,pi=tt.autoFocus,ei=tt.autoComplete,ni=tt.editable,$r=tt.activeDescendantId,fi=tt.value,ri=tt.maxLength,Ki=tt.onKeyDown,Ma=tt.onMouseDown,Ua=tt.onChange,Xa=tt.onPaste,za=tt.onCompositionStart,lo=tt.onCompositionEnd,wa=tt.open,Ka=tt.attrs,so=lr||de.createElement("input",null),Vi=so,Xi=Vi.ref,da=Vi.props,So=da.onKeyDown,uo=da.onChange,Eo=da.onMouseDown,vo=da.onCompositionStart,Io=da.onCompositionEnd,Lo=da.style;return"maxLength"in so.props,so=de.cloneElement(so,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},da),{},{id:xn,ref:Xt(zt,Xi),disabled:pr,tabIndex:qn,autoComplete:ei||"off",autoFocus:pi,className:ue()("".concat(Pn,"-selection-search-input"),(Ot=so)===null||Ot===void 0||(hn=Ot.props)===null||hn===void 0?void 0:hn.className),role:"combobox","aria-label":"Search","aria-expanded":wa||!1,"aria-haspopup":"listbox","aria-owns":"".concat(xn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(xn,"_list"),"aria-activedescendant":wa?$r:void 0},Ka),{},{value:ni?fi:"",maxLength:ri,readOnly:!ni,unselectable:ni?null:"on",style:(0,De.Z)((0,De.Z)({},Lo),{},{opacity:ni?null:0}),onKeyDown:function(Yo){Ki(Yo),So&&So(Yo)},onMouseDown:function(Yo){Ma(Yo),Eo&&Eo(Yo)},onChange:function(Yo){Ua(Yo),uo&&uo(Yo)},onCompositionStart:function(Yo){za(Yo),vo&&vo(Yo)},onCompositionEnd:function(Yo){lo(Yo),Io&&Io(Yo)},onPaste:Xa})),so},br=de.forwardRef(Pr);br.displayName="Input";var xt=br;function $t(Ye){return Array.isArray(Ye)?Ye:Ye!==void 0?[Ye]:[]}var fn=typeof window!="undefined"&&window.document&&window.document.documentElement,Mn=fn;function yt(Ye){return Ye!=null}function Ut(Ye){return!Ye&&Ye!==0}function Cn(Ye){return["string","number"].includes((0,Ke.Z)(Ye))}function cn(Ye){var tt=void 0;return Ye&&(Cn(Ye.title)?tt=Ye.title.toString():Cn(Ye.label)&&(tt=Ye.label.toString())),tt}function zn(Ye,tt){Mn?de.useLayoutEffect(Ye,tt):de.useEffect(Ye,tt)}function Hn(Ye){var tt;return(tt=Ye.key)!==null&&tt!==void 0?tt:Ye.value}var Mr=function(tt){tt.preventDefault(),tt.stopPropagation()},gi=function(tt){var zt=tt.id,Ot=tt.prefixCls,hn=tt.values,Pn=tt.open,xn=tt.searchValue,lr=tt.autoClearSearchValue,pr=tt.inputRef,qn=tt.placeholder,pi=tt.disabled,ei=tt.mode,ni=tt.showSearch,$r=tt.autoFocus,fi=tt.autoComplete,ri=tt.activeDescendantId,Ki=tt.tabIndex,Ma=tt.removeIcon,Ua=tt.maxTagCount,Xa=tt.maxTagTextLength,za=tt.maxTagPlaceholder,lo=za===void 0?function(yi){return"+ ".concat(yi.length," ...")}:za,wa=tt.tagRender,Ka=tt.onToggleOpen,so=tt.onRemove,Vi=tt.onInputChange,Xi=tt.onInputPaste,da=tt.onInputKeyDown,So=tt.onInputMouseDown,uo=tt.onInputCompositionStart,Eo=tt.onInputCompositionEnd,vo=de.useRef(null),Io=(0,de.useState)(0),Lo=(0,fe.Z)(Io,2),Fo=Lo[0],Yo=Lo[1],jn=(0,de.useState)(!1),ai=(0,fe.Z)(jn,2),ba=ai[0],na=ai[1],Nr="".concat(Ot,"-selection"),Ti=Pn||ei==="multiple"&&lr===!1||ei==="tags"?xn:"",Ni=ei==="tags"||ei==="multiple"&&lr===!1||ni&&(Pn||ba);zn(function(){Yo(vo.current.scrollWidth)},[Ti]);function ra(yi,co,Va,ko,Cl){return de.createElement("span",{className:ue()("".concat(Nr,"-item"),(0,Ue.Z)({},"".concat(Nr,"-item-disabled"),Va)),title:cn(yi)},de.createElement("span",{className:"".concat(Nr,"-item-content")},co),ko&&de.createElement(Vt,{className:"".concat(Nr,"-item-remove"),onMouseDown:Mr,onClick:Cl,customizeIcon:Ma},"\xD7"))}function Ei(yi,co,Va,ko,Cl){var Dl=function(Hl){Mr(Hl),Ka(!Pn)};return de.createElement("span",{onMouseDown:Dl},wa({label:co,value:yi,disabled:Va,closable:ko,onClose:Cl}))}function Ii(yi){var co=yi.disabled,Va=yi.label,ko=yi.value,Cl=!pi&&!co,Dl=Va;if(typeof Xa=="number"&&(typeof Va=="string"||typeof Va=="number")){var zl=String(Dl);zl.length>Xa&&(Dl="".concat(zl.slice(0,Xa),"..."))}var Hl=function(Ts){Ts&&Ts.stopPropagation(),so(yi)};return typeof wa=="function"?Ei(ko,Dl,co,Cl,Hl):ra(yi,Dl,co,Cl,Hl)}function Ui(yi){var co=typeof lo=="function"?lo(yi):lo;return ra({title:co},co,!1)}var Ba=de.createElement("div",{className:"".concat(Nr,"-search"),style:{width:Fo},onFocus:function(){na(!0)},onBlur:function(){na(!1)}},de.createElement(xt,{ref:pr,open:Pn,prefixCls:Ot,id:zt,inputElement:null,disabled:pi,autoFocus:$r,autoComplete:fi,editable:Ni,activeDescendantId:ri,value:Ti,onKeyDown:da,onMouseDown:So,onChange:Vi,onPaste:Xi,onCompositionStart:uo,onCompositionEnd:Eo,tabIndex:Ki,attrs:ce(tt,!0)}),de.createElement("span",{ref:vo,className:"".concat(Nr,"-search-mirror"),"aria-hidden":!0},Ti,"\xA0")),go=de.createElement(Rr,{prefixCls:"".concat(Nr,"-overflow"),data:hn,renderItem:Ii,renderRest:Ui,suffix:Ba,itemKey:Hn,maxCount:Ua});return de.createElement(de.Fragment,null,go,!hn.length&&!Ti&&de.createElement("span",{className:"".concat(Nr,"-placeholder")},qn))},Xr=gi,Gr=function(tt){var zt=tt.inputElement,Ot=tt.prefixCls,hn=tt.id,Pn=tt.inputRef,xn=tt.disabled,lr=tt.autoFocus,pr=tt.autoComplete,qn=tt.activeDescendantId,pi=tt.mode,ei=tt.open,ni=tt.values,$r=tt.placeholder,fi=tt.tabIndex,ri=tt.showSearch,Ki=tt.searchValue,Ma=tt.activeValue,Ua=tt.maxLength,Xa=tt.onInputKeyDown,za=tt.onInputMouseDown,lo=tt.onInputChange,wa=tt.onInputPaste,Ka=tt.onInputCompositionStart,so=tt.onInputCompositionEnd,Vi=tt.title,Xi=de.useState(!1),da=(0,fe.Z)(Xi,2),So=da[0],uo=da[1],Eo=pi==="combobox",vo=Eo||ri,Io=ni[0],Lo=Ki||"";Eo&&Ma&&!So&&(Lo=Ma),de.useEffect(function(){Eo&&uo(!1)},[Eo,Ma]);var Fo=pi!=="combobox"&&!ei&&!ri?!1:!!Lo,Yo=Vi===void 0?cn(Io):Vi,jn=function(){if(Io)return null;var ba=Fo?{visibility:"hidden"}:void 0;return de.createElement("span",{className:"".concat(Ot,"-selection-placeholder"),style:ba},$r)};return de.createElement(de.Fragment,null,de.createElement("span",{className:"".concat(Ot,"-selection-search")},de.createElement(xt,{ref:Pn,prefixCls:Ot,id:hn,open:ei,inputElement:zt,disabled:xn,autoFocus:lr,autoComplete:pr,editable:vo,activeDescendantId:qn,value:Lo,onKeyDown:Xa,onMouseDown:za,onChange:function(ba){uo(!0),lo(ba)},onPaste:wa,onCompositionStart:Ka,onCompositionEnd:so,tabIndex:fi,attrs:ce(tt,!0),maxLength:Eo?Ua:void 0})),!Eo&&Io?de.createElement("span",{className:"".concat(Ot,"-selection-item"),title:Yo,style:Fo?{visibility:"hidden"}:void 0},Io.label):null,jn())},di=Gr;function ci(Ye){return![it.ESC,it.SHIFT,it.BACKSPACE,it.TAB,it.WIN_KEY,it.ALT,it.META,it.WIN_KEY_RIGHT,it.CTRL,it.SEMICOLON,it.EQUALS,it.CAPS_LOCK,it.CONTEXT_MENU,it.F1,it.F2,it.F3,it.F4,it.F5,it.F6,it.F7,it.F8,it.F9,it.F10,it.F11,it.F12].includes(Ye)}var Si=function(tt,zt){var Ot=(0,de.useRef)(null),hn=(0,de.useRef)(!1),Pn=tt.prefixCls,xn=tt.open,lr=tt.mode,pr=tt.showSearch,qn=tt.tokenWithEnter,pi=tt.autoClearSearchValue,ei=tt.onSearch,ni=tt.onSearchSubmit,$r=tt.onToggleOpen,fi=tt.onInputKeyDown,ri=tt.domRef;de.useImperativeHandle(zt,function(){return{focus:function(){Ot.current.focus()},blur:function(){Ot.current.blur()}}});var Ki=Fn(0),Ma=(0,fe.Z)(Ki,2),Ua=Ma[0],Xa=Ma[1],za=function(Lo){var Fo=Lo.which;(Fo===it.UP||Fo===it.DOWN)&&Lo.preventDefault(),fi&&fi(Lo),Fo===it.ENTER&&lr==="tags"&&!hn.current&&!xn&&(ni==null||ni(Lo.target.value)),ci(Fo)&&$r(!0)},lo=function(){Xa(!0)},wa=(0,de.useRef)(null),Ka=function(Lo){ei(Lo,!0,hn.current)!==!1&&$r(!0)},so=function(){hn.current=!0},Vi=function(Lo){hn.current=!1,lr!=="combobox"&&Ka(Lo.target.value)},Xi=function(Lo){var Fo=Lo.target.value;if(qn&&wa.current&&/[\r\n]/.test(wa.current)){var Yo=wa.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fo=Fo.replace(Yo,wa.current)}wa.current=null,Ka(Fo)},da=function(Lo){var Fo=Lo.clipboardData,Yo=Fo.getData("text");wa.current=Yo},So=function(Lo){var Fo=Lo.target;if(Fo!==Ot.current){var Yo=document.body.style.msTouchAction!==void 0;Yo?setTimeout(function(){Ot.current.focus()}):Ot.current.focus()}},uo=function(Lo){var Fo=Ua();Lo.target!==Ot.current&&!Fo&&lr!=="combobox"&&Lo.preventDefault(),(lr!=="combobox"&&(!pr||!Fo)||!xn)&&(xn&&pi!==!1&&ei("",!0,!1),$r())},Eo={inputRef:Ot,onInputKeyDown:za,onInputMouseDown:lo,onInputChange:Xi,onInputPaste:da,onInputCompositionStart:so,onInputCompositionEnd:Vi},vo=lr==="multiple"||lr==="tags"?de.createElement(Xr,(0,Ee.Z)({},tt,Eo)):de.createElement(di,(0,Ee.Z)({},tt,Eo));return de.createElement("div",{ref:ri,className:"".concat(Pn,"-selector"),onClick:So,onMouseDown:uo},vo)},Jn=de.forwardRef(Si);Jn.displayName="Selector";var Jr=Jn,Oa=te(62709),Qa=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Li=function(tt){var zt=tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:zt,adjustY:1},htmlRegion:"scroll"}}},qi=function(tt,zt){var Ot=tt.prefixCls,hn=tt.disabled,Pn=tt.visible,xn=tt.children,lr=tt.popupElement,pr=tt.animation,qn=tt.transitionName,pi=tt.dropdownStyle,ei=tt.dropdownClassName,ni=tt.direction,$r=ni===void 0?"ltr":ni,fi=tt.placement,ri=tt.builtinPlacements,Ki=tt.dropdownMatchSelectWidth,Ma=tt.dropdownRender,Ua=tt.dropdownAlign,Xa=tt.getPopupContainer,za=tt.empty,lo=tt.getTriggerDOMNode,wa=tt.onPopupVisibleChange,Ka=tt.onPopupMouseEnter,so=(0,we.Z)(tt,Qa),Vi="".concat(Ot,"-dropdown"),Xi=lr;Ma&&(Xi=Ma(lr));var da=de.useMemo(function(){return ri||Li(Ki)},[ri,Ki]),So=pr?"".concat(Vi,"-").concat(pr):qn,uo=typeof Ki=="number",Eo=de.useMemo(function(){return uo?null:Ki===!1?"minWidth":"width"},[Ki,uo]),vo=pi;uo&&(vo=(0,De.Z)((0,De.Z)({},vo),{},{width:Ki}));var Io=de.useRef(null);return de.useImperativeHandle(zt,function(){return{getPopupElement:function(){return Io.current}}}),de.createElement(Oa.Z,(0,Ee.Z)({},so,{showAction:wa?["click"]:[],hideAction:wa?["click"]:[],popupPlacement:fi||($r==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:da,prefixCls:Vi,popupTransitionName:So,popup:de.createElement("div",{ref:Io,onMouseEnter:Ka},Xi),stretch:Eo,popupAlign:Ua,popupVisible:Pn,getPopupContainer:Xa,popupClassName:ue()(ei,(0,Ue.Z)({},"".concat(Vi,"-empty"),za)),popupStyle:vo,getTriggerDOMNode:lo,onPopupVisibleChange:wa}),xn)},$a=de.forwardRef(qi);$a.displayName="SelectTrigger";var zi=$a,to=te(84506);function _r(Ye,tt){var zt=Ye.key,Ot;return"value"in Ye&&(Ot=Ye.value),zt!=null?zt:Ot!==void 0?Ot:"rc-index-key-".concat(tt)}function Wo(Ye,tt){var zt=Ye||{},Ot=zt.label,hn=zt.value,Pn=zt.options,xn=zt.groupLabel,lr=Ot||(tt?"children":"label");return{label:lr,value:hn||"value",options:Pn||"options",groupLabel:xn||lr}}function _o(Ye){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=tt.fieldNames,Ot=tt.childrenAsData,hn=[],Pn=Wo(zt,!1),xn=Pn.label,lr=Pn.value,pr=Pn.options,qn=Pn.groupLabel;function pi(ei,ni){ei.forEach(function($r){if(ni||!(pr in $r)){var fi=$r[lr];hn.push({key:_r($r,hn.length),groupOption:ni,data:$r,label:$r[xn],value:fi})}else{var ri=$r[qn];ri===void 0&&Ot&&(ri=$r.label),hn.push({key:_r($r,hn.length),group:!0,data:$r,label:ri}),pi($r[pr],!0)}})}return pi(Ye,!1),hn}function bl(Ye){var tt=(0,De.Z)({},Ye);return"props"in tt||Object.defineProperty(tt,"props",{get:function(){return Ae(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),tt}}),tt}function jo(Ye,tt){if(!tt||!tt.length)return null;var zt=!1;function Ot(Pn,xn){var lr=(0,to.Z)(xn),pr=lr[0],qn=lr.slice(1);if(!pr)return[Pn];var pi=Pn.split(pr);return zt=zt||pi.length>1,pi.reduce(function(ei,ni){return[].concat((0,ee.Z)(ei),(0,ee.Z)(Ot(ni,qn)))},[]).filter(function(ei){return ei})}var hn=Ot(Ye,tt);return zt?hn:null}var Po=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],la=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function el(Ye){return Ye==="tags"||Ye==="multiple"}var No=de.forwardRef(function(Ye,tt){var zt,Ot,hn=Ye.id,Pn=Ye.prefixCls,xn=Ye.className,lr=Ye.showSearch,pr=Ye.tagRender,qn=Ye.direction,pi=Ye.omitDomProps,ei=Ye.displayValues,ni=Ye.onDisplayValuesChange,$r=Ye.emptyOptions,fi=Ye.notFoundContent,ri=fi===void 0?"Not Found":fi,Ki=Ye.onClear,Ma=Ye.mode,Ua=Ye.disabled,Xa=Ye.loading,za=Ye.getInputElement,lo=Ye.getRawInputElement,wa=Ye.open,Ka=Ye.defaultOpen,so=Ye.onDropdownVisibleChange,Vi=Ye.activeValue,Xi=Ye.onActiveValueChange,da=Ye.activeDescendantId,So=Ye.searchValue,uo=Ye.autoClearSearchValue,Eo=Ye.onSearch,vo=Ye.onSearchSplit,Io=Ye.tokenSeparators,Lo=Ye.allowClear,Fo=Ye.suffixIcon,Yo=Ye.clearIcon,jn=Ye.OptionList,ai=Ye.animation,ba=Ye.transitionName,na=Ye.dropdownStyle,Nr=Ye.dropdownClassName,Ti=Ye.dropdownMatchSelectWidth,Ni=Ye.dropdownRender,ra=Ye.dropdownAlign,Ei=Ye.placement,Ii=Ye.builtinPlacements,Ui=Ye.getPopupContainer,Ba=Ye.showAction,go=Ba===void 0?[]:Ba,yi=Ye.onFocus,co=Ye.onBlur,Va=Ye.onKeyUp,ko=Ye.onKeyDown,Cl=Ye.onMouseDown,Dl=(0,we.Z)(Ye,Po),zl=el(Ma),Hl=(lr!==void 0?lr:zl)||Ma==="combobox",Rl=(0,De.Z)({},Dl);la.forEach(function(Fi){delete Rl[Fi]}),pi==null||pi.forEach(function(Fi){delete Rl[Fi]});var Ts=de.useState(!1),ks=(0,fe.Z)(Ts,2),Qs=ks[0],ps=ks[1];de.useEffect(function(){ps(mt())},[]);var ql=de.useRef(null),Bs=de.useRef(null),gs=de.useRef(null),us=de.useRef(null),js=de.useRef(null),Os=_t(),cs=(0,fe.Z)(Os,3),Ys=cs[0],Zu=cs[1],Fu=cs[2];de.useImperativeHandle(tt,function(){var Fi,Bi;return{focus:(Fi=us.current)===null||Fi===void 0?void 0:Fi.focus,blur:(Bi=us.current)===null||Bi===void 0?void 0:Bi.blur,scrollTo:function(pa){var Ta;return(Ta=js.current)===null||Ta===void 0?void 0:Ta.scrollTo(pa)}}});var ys=de.useMemo(function(){var Fi;if(Ma!=="combobox")return So;var Bi=(Fi=ei[0])===null||Fi===void 0?void 0:Fi.value;return typeof Bi=="string"||typeof Bi=="number"?String(Bi):""},[So,Ma,ei]),Ll=Ma==="combobox"&&typeof za=="function"&&za()||null,bs=typeof lo=="function"&&lo(),Xs=$e(Bs,bs==null||(zt=bs.props)===null||zt===void 0?void 0:zt.ref),vu=de.useState(!1),os=(0,fe.Z)(vu,2),Gl=os[0],rs=os[1];ge(function(){rs(!0)},[]);var Js=Oe(!1,{defaultValue:Ka,value:wa}),Ds=(0,fe.Z)(Js,2),$s=Ds[0],sl=Ds[1],oa=Gl?$s:!1,eo=!ri&&$r;(Ua||eo&&oa&&Ma==="combobox")&&(oa=!1);var Bo=eo?!1:oa,Xo=de.useCallback(function(Fi){var Bi=Fi!==void 0?Fi:!oa;Ua||(sl(Bi),oa!==Bi&&(so==null||so(Bi)))},[Ua,oa,sl,so]),is=de.useMemo(function(){return(Io||[]).some(function(Fi){return[`
`,`\r
`].includes(Fi)})},[Io]),as=function(Bi,Ri,pa){var Ta=!0,Jo=Bi;Xi==null||Xi(null);var Do=pa?null:jo(Bi,Io);return Ma!=="combobox"&&Do&&(Jo="",vo==null||vo(Do),Xo(!1),Ta=!1),Eo&&ys!==Jo&&Eo(Jo,{source:Ri?"typing":"effect"}),Ta},Rs=function(Bi){!Bi||!Bi.trim()||Eo(Bi,{source:"submit"})};de.useEffect(function(){!oa&&!zl&&Ma!=="combobox"&&as("",!1,!1)},[oa]),de.useEffect(function(){$s&&Ua&&sl(!1),Ua&&Zu(!1)},[Ua]);var su=Fn(),Ru=(0,fe.Z)(su,2),Fe=Ru[0],Re=Ru[1],ct=function(Bi){var Ri=Fe(),pa=Bi.which;if(pa===it.ENTER&&(Ma!=="combobox"&&Bi.preventDefault(),oa||Xo(!0)),Re(!!ys),pa===it.BACKSPACE&&!Ri&&zl&&!ys&&ei.length){for(var Ta=(0,ee.Z)(ei),Jo=null,Do=Ta.length-1;Do>=0;Do-=1){var wo=Ta[Do];if(!wo.disabled){Ta.splice(Do,1),Jo=wo;break}}Jo&&ni(Ta,{type:"remove",values:[Jo]})}for(var ul=arguments.length,fl=new Array(ul>1?ul-1:0),Nl=1;Nl<ul;Nl++)fl[Nl-1]=arguments[Nl];if(oa&&js.current){var Ml;(Ml=js.current).onKeyDown.apply(Ml,[Bi].concat(fl))}ko==null||ko.apply(void 0,[Bi].concat(fl))},At=function(Bi){for(var Ri=arguments.length,pa=new Array(Ri>1?Ri-1:0),Ta=1;Ta<Ri;Ta++)pa[Ta-1]=arguments[Ta];if(oa&&js.current){var Jo;(Jo=js.current).onKeyUp.apply(Jo,[Bi].concat(pa))}Va==null||Va.apply(void 0,[Bi].concat(pa))},Qt=function(Bi){var Ri=ei.filter(function(pa){return pa!==Bi});ni(Ri,{type:"remove",values:[Bi]})},en=de.useRef(!1),Tn=function(){Zu(!0),Ua||(yi&&!en.current&&yi.apply(void 0,arguments),go.includes("focus")&&Xo(!0)),en.current=!0},er=function(){Zu(!1,function(){en.current=!1,Xo(!1)}),!Ua&&(ys&&(Ma==="tags"?Eo(ys,{source:"submit"}):Ma==="multiple"&&Eo("",{source:"blur"})),co&&co.apply(void 0,arguments))},Zn=[];de.useEffect(function(){return function(){Zn.forEach(function(Fi){return clearTimeout(Fi)}),Zn.splice(0,Zn.length)}},[]);var xr=function(Bi){var Ri,pa=Bi.target,Ta=(Ri=gs.current)===null||Ri===void 0?void 0:Ri.getPopupElement();if(Ta&&Ta.contains(pa)){var Jo=setTimeout(function(){var fl=Zn.indexOf(Jo);if(fl!==-1&&Zn.splice(fl,1),Fu(),!Qs&&!Ta.contains(document.activeElement)){var Nl;(Nl=us.current)===null||Nl===void 0||Nl.focus()}});Zn.push(Jo)}for(var Do=arguments.length,wo=new Array(Do>1?Do-1:0),ul=1;ul<Do;ul++)wo[ul-1]=arguments[ul];Cl==null||Cl.apply(void 0,[Bi].concat(wo))},Tr=de.useState({}),Nn=(0,fe.Z)(Tr,2),oi=Nn[1];function hi(){oi({})}var mi;bs&&(mi=function(Bi){Xo(Bi)}),kn(function(){var Fi;return[ql.current,(Fi=gs.current)===null||Fi===void 0?void 0:Fi.getPopupElement()]},Bo,Xo,!!bs);var Hi=de.useMemo(function(){return(0,De.Z)((0,De.Z)({},Ye),{},{notFoundContent:ri,open:oa,triggerOpen:Bo,id:hn,showSearch:Hl,multiple:zl,toggleOpen:Xo})},[Ye,ri,Bo,oa,hn,Hl,zl,Xo]),Ci=!!Fo||Xa,ea;Ci&&(ea=de.createElement(Vt,{className:ue()("".concat(Pn,"-arrow"),(0,Ue.Z)({},"".concat(Pn,"-arrow-loading"),Xa)),customizeIcon:Fo,customizeIconProps:{loading:Xa,searchValue:ys,open:oa,focused:Ys,showSearch:Hl}}));var Gi=function(){var Bi;Ki==null||Ki(),(Bi=us.current)===null||Bi===void 0||Bi.focus(),ni([],{type:"clear",values:ei}),as("",!1,!1)},ha=Rt(Pn,Gi,ei,Lo,Yo,Ua,ys,Ma),qa=ha.allowClear,Za=ha.clearIcon,Ja=de.createElement(jn,{ref:js}),To=ue()(Pn,xn,(Ot={},(0,Ue.Z)(Ot,"".concat(Pn,"-focused"),Ys),(0,Ue.Z)(Ot,"".concat(Pn,"-multiple"),zl),(0,Ue.Z)(Ot,"".concat(Pn,"-single"),!zl),(0,Ue.Z)(Ot,"".concat(Pn,"-allow-clear"),Lo),(0,Ue.Z)(Ot,"".concat(Pn,"-show-arrow"),Ci),(0,Ue.Z)(Ot,"".concat(Pn,"-disabled"),Ua),(0,Ue.Z)(Ot,"".concat(Pn,"-loading"),Xa),(0,Ue.Z)(Ot,"".concat(Pn,"-open"),oa),(0,Ue.Z)(Ot,"".concat(Pn,"-customize-input"),Ll),(0,Ue.Z)(Ot,"".concat(Pn,"-show-search"),Hl),Ot)),al=de.createElement(zi,{ref:gs,disabled:Ua,prefixCls:Pn,visible:Bo,popupElement:Ja,animation:ai,transitionName:ba,dropdownStyle:na,dropdownClassName:Nr,direction:qn,dropdownMatchSelectWidth:Ti,dropdownRender:Ni,dropdownAlign:ra,placement:Ei,builtinPlacements:Ii,getPopupContainer:Ui,empty:$r,getTriggerDOMNode:function(){return Bs.current},onPopupVisibleChange:mi,onPopupMouseEnter:hi},bs?de.cloneElement(bs,{ref:Xs}):de.createElement(Jr,(0,Ee.Z)({},Ye,{domRef:Bs,prefixCls:Pn,inputElement:Ll,ref:us,id:hn,showSearch:Hl,autoClearSearchValue:uo,mode:Ma,activeDescendantId:da,tagRender:pr,values:ei,open:oa,onToggleOpen:Xo,activeValue:Vi,searchValue:ys,onSearch:as,onSearchSubmit:Rs,onRemove:Qt,tokenWithEnter:is}))),Da;return bs?Da=al:Da=de.createElement("div",(0,Ee.Z)({className:To},Rl,{ref:ql,onMouseDown:xr,onKeyDown:ct,onKeyUp:At,onFocus:Tn,onBlur:er}),Ys&&!oa&&de.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ei.map(function(Fi){var Bi=Fi.label,Ri=Fi.value;return["number","string"].includes((0,Ke.Z)(Bi))?Bi:Ri}).join(", "))),al,ea,qa&&Za),de.createElement(ht.Provider,{value:Hi},Da)}),rl=No,vl=function(Ye,tt){var zt=de.useRef({values:new Map,options:new Map}),Ot=de.useMemo(function(){var Pn=zt.current,xn=Pn.values,lr=Pn.options,pr=Ye.map(function(ei){if(ei.label===void 0){var ni;return(0,De.Z)((0,De.Z)({},ei),{},{label:(ni=xn.get(ei.value))===null||ni===void 0?void 0:ni.label})}return ei}),qn=new Map,pi=new Map;return pr.forEach(function(ei){qn.set(ei.value,ei),pi.set(ei.value,tt.get(ei.value)||lr.get(ei.value))}),zt.current.values=qn,zt.current.options=pi,pr},[Ye,tt]),hn=de.useCallback(function(Pn){return tt.get(Pn)||zt.current.options.get(Pn)},[tt]);return[Ot,hn]};function ll(Ye,tt){return $t(Ye).join("").toUpperCase().includes(tt)}var Uo=function(Ye,tt,zt,Ot,hn){return de.useMemo(function(){if(!zt||Ot===!1)return Ye;var Pn=tt.options,xn=tt.label,lr=tt.value,pr=[],qn=typeof Ot=="function",pi=zt.toUpperCase(),ei=qn?Ot:function($r,fi){return hn?ll(fi[hn],pi):fi[Pn]?ll(fi[xn!=="children"?xn:"label"],pi):ll(fi[lr],pi)},ni=qn?function($r){return bl($r)}:function($r){return $r};return Ye.forEach(function($r){if($r[Pn]){var fi=ei(zt,ni($r));if(fi)pr.push($r);else{var ri=$r[Pn].filter(function(Ki){return ei(zt,ni(Ki))});ri.length&&pr.push((0,De.Z)((0,De.Z)({},$r),{},(0,Ue.Z)({},Pn,ri)))}return}ei(zt,ni($r))&&pr.push($r)}),pr},[Ye,Ot,hn,zt,tt])},gl=0,wl=Qe();function dl(){var Ye;return wl?(Ye=gl,gl+=1):Ye="TEST_OR_SSR",Ye}function io(Ye){var tt=de.useState(),zt=(0,fe.Z)(tt,2),Ot=zt[0],hn=zt[1];return de.useEffect(function(){hn("rc_select_".concat(dl()))},[]),Ye||Ot}function wn(Ye){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=[];return de.Children.forEach(Ye,function(Ot){Ot==null&&!tt.keepEmpty||(Array.isArray(Ot)?zt=zt.concat(wn(Ot)):(0,qe.isFragment)(Ot)&&Ot.props?zt=zt.concat(wn(Ot.props.children,tt)):zt.push(Ot))}),zt}var pn=["children","value"],ar=["children"];function tr(Ye){var tt=Ye,zt=tt.key,Ot=tt.props,hn=Ot.children,Pn=Ot.value,xn=(0,we.Z)(Ot,pn);return(0,De.Z)({key:zt,value:Pn!==void 0?Pn:zt,children:hn},xn)}function Yr(Ye){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wn(Ye).map(function(zt,Ot){if(!de.isValidElement(zt)||!zt.type)return null;var hn=zt,Pn=hn.type.isSelectOptGroup,xn=hn.key,lr=hn.props,pr=lr.children,qn=(0,we.Z)(lr,ar);return tt||!Pn?tr(zt):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(xn===null?Ot:xn,"__"),label:xn},qn),{},{options:Yr(pr)})}).filter(function(zt){return zt})}function $i(Ye,tt,zt,Ot,hn){return de.useMemo(function(){var Pn=Ye,xn=!Ye;xn&&(Pn=Yr(tt));var lr=new Map,pr=new Map,qn=function(ni,$r,fi){fi&&typeof fi=="string"&&ni.set($r[fi],$r)};function pi(ei){for(var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$r=0;$r<ei.length;$r+=1){var fi=ei[$r];!fi[zt.options]||ni?(lr.set(fi[zt.value],fi),qn(pr,fi,zt.label),qn(pr,fi,Ot),qn(pr,fi,hn)):pi(fi[zt.options],!0)}}return pi(Pn),{options:Pn,valueOptions:lr,labelOptions:pr}},[Ye,tt,zt,Ot,hn])}function ia(Ye){var tt=de.useRef();tt.current=Ye;var zt=de.useCallback(function(){return tt.current.apply(tt,arguments)},[]);return zt}var sa=function(){return null};sa.isSelectOptGroup=!0;var ka=sa,ga=function(){return null};ga.isSelectOption=!0;var ho=ga;function ao(Ye,tt){var zt=(0,De.Z)({},Ye);return Array.isArray(tt)&&tt.forEach(function(Ot){delete zt[Ot]}),zt}var mo=te(73299),Un=de.createContext(null),ir=Un;function Sr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ce=["disabled","title","children","style","className"];function Xe(Ye){return typeof Ye=="string"||typeof Ye=="number"}var nt=function(tt,zt){var Ot=Bt(),hn=Ot.prefixCls,Pn=Ot.id,xn=Ot.open,lr=Ot.multiple,pr=Ot.mode,qn=Ot.searchValue,pi=Ot.toggleOpen,ei=Ot.notFoundContent,ni=Ot.onPopupScroll,$r=de.useContext(ir),fi=$r.flattenOptions,ri=$r.onActiveValue,Ki=$r.defaultActiveFirstOption,Ma=$r.onSelect,Ua=$r.menuItemSelectedIcon,Xa=$r.rawValues,za=$r.fieldNames,lo=$r.virtual,wa=$r.direction,Ka=$r.listHeight,so=$r.listItemHeight,Vi="".concat(hn,"-item"),Xi=gt(function(){return fi},[xn,fi],function(ra,Ei){return Ei[0]&&ra[1]!==Ei[1]}),da=de.useRef(null),So=function(Ei){Ei.preventDefault()},uo=function(Ei){da.current&&da.current.scrollTo(typeof Ei=="number"?{index:Ei}:Ei)},Eo=function(Ei){for(var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ui=Xi.length,Ba=0;Ba<Ui;Ba+=1){var go=(Ei+Ba*Ii+Ui)%Ui,yi=Xi[go],co=yi.group,Va=yi.data;if(!co&&!Va.disabled)return go}return-1},vo=de.useState(function(){return Eo(0)}),Io=(0,fe.Z)(vo,2),Lo=Io[0],Fo=Io[1],Yo=function(Ei){var Ii=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Fo(Ei);var Ui={source:Ii?"keyboard":"mouse"},Ba=Xi[Ei];if(!Ba){ri(null,-1,Ui);return}ri(Ba.value,Ei,Ui)};(0,de.useEffect)(function(){Yo(Ki!==!1?Eo(0):-1)},[Xi.length,qn]);var jn=de.useCallback(function(ra){return Xa.has(ra)&&pr!=="combobox"},[pr,(0,ee.Z)(Xa).toString(),Xa.size]);(0,de.useEffect)(function(){var ra=setTimeout(function(){if(!lr&&xn&&Xa.size===1){var Ii=Array.from(Xa)[0],Ui=Xi.findIndex(function(Ba){var go=Ba.data;return go.value===Ii});Ui!==-1&&(Yo(Ui),uo(Ui))}});if(xn){var Ei;(Ei=da.current)===null||Ei===void 0||Ei.scrollTo(void 0)}return function(){return clearTimeout(ra)}},[xn,qn,fi.length]);var ai=function(Ei){Ei!==void 0&&Ma(Ei,{selected:!Xa.has(Ei)}),lr||pi(!1)};if(de.useImperativeHandle(zt,function(){return{onKeyDown:function(Ei){var Ii=Ei.which,Ui=Ei.ctrlKey;switch(Ii){case it.N:case it.P:case it.UP:case it.DOWN:{var Ba=0;if(Ii===it.UP?Ba=-1:Ii===it.DOWN?Ba=1:Sr()&&Ui&&(Ii===it.N?Ba=1:Ii===it.P&&(Ba=-1)),Ba!==0){var go=Eo(Lo+Ba,Ba);uo(go),Yo(go,!0)}break}case it.ENTER:{var yi=Xi[Lo];yi&&!yi.data.disabled?ai(yi.value):ai(void 0),xn&&Ei.preventDefault();break}case it.ESC:pi(!1),xn&&Ei.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ei){uo(Ei)}}}),Xi.length===0)return de.createElement("div",{role:"listbox",id:"".concat(Pn,"_list"),className:"".concat(Vi,"-empty"),onMouseDown:So},ei);var ba=Object.keys(za).map(function(ra){return za[ra]}),na=function(Ei){return Ei.label};function Nr(ra,Ei){var Ii=ra.group;return{role:Ii?"presentation":"option",id:"".concat(Pn,"_list_").concat(Ei)}}var Ti=function(Ei){var Ii=Xi[Ei];if(!Ii)return null;var Ui=Ii.data||{},Ba=Ui.value,go=Ii.group,yi=ce(Ui,!0),co=na(Ii);return Ii?de.createElement("div",(0,Ee.Z)({"aria-label":typeof co=="string"&&!go?co:null},yi,{key:Ei},Nr(Ii,Ei),{"aria-selected":jn(Ba)}),Ba):null},Ni={role:"listbox",id:"".concat(Pn,"_list")};return de.createElement(de.Fragment,null,lo&&de.createElement("div",(0,Ee.Z)({},Ni,{style:{height:0,width:0,overflow:"hidden"}}),Ti(Lo-1),Ti(Lo),Ti(Lo+1)),de.createElement(mo.Z,{itemKey:"key",ref:da,data:Xi,height:Ka,itemHeight:so,fullHeight:!1,onMouseDown:So,onScroll:ni,virtual:lo,direction:wa,innerProps:lo?null:Ni},function(ra,Ei){var Ii,Ui=ra.group,Ba=ra.groupOption,go=ra.data,yi=ra.label,co=ra.value,Va=go.key;if(Ui){var ko,Cl=(ko=go.title)!==null&&ko!==void 0?ko:Xe(yi)?yi.toString():void 0;return de.createElement("div",{className:ue()(Vi,"".concat(Vi,"-group")),title:Cl},yi!==void 0?yi:Va)}var Dl=go.disabled,zl=go.title,Hl=go.children,Rl=go.style,Ts=go.className,ks=(0,we.Z)(go,Ce),Qs=ao(ks,ba),ps=jn(co),ql="".concat(Vi,"-option"),Bs=ue()(Vi,ql,Ts,(Ii={},(0,Ue.Z)(Ii,"".concat(ql,"-grouped"),Ba),(0,Ue.Z)(Ii,"".concat(ql,"-active"),Lo===Ei&&!Dl),(0,Ue.Z)(Ii,"".concat(ql,"-disabled"),Dl),(0,Ue.Z)(Ii,"".concat(ql,"-selected"),ps),Ii)),gs=na(ra),us=!Ua||typeof Ua=="function"||ps,js=typeof gs=="number"?gs:gs||co,Os=Xe(js)?js.toString():void 0;return zl!==void 0&&(Os=zl),de.createElement("div",(0,Ee.Z)({},ce(Qs),lo?{}:Nr(ra,Ei),{"aria-selected":ps,className:Bs,title:Os,onMouseMove:function(){Lo===Ei||Dl||Yo(Ei)},onClick:function(){Dl||ai(co)},style:Rl}),de.createElement("div",{className:"".concat(ql,"-content")},js),de.isValidElement(Ua)||ps,us&&de.createElement(Vt,{className:"".concat(Vi,"-option-state"),customizeIcon:Ua,customizeIconProps:{isSelected:ps}},ps?"\u2713":null))}))},ut=de.forwardRef(nt);ut.displayName="OptionList";var ft=ut;function Ct(Ye){var tt=Ye.mode,zt=Ye.options,Ot=Ye.children,hn=Ye.backfill,Pn=Ye.allowClear,xn=Ye.placeholder,lr=Ye.getInputElement,pr=Ye.showSearch,qn=Ye.onSearch,pi=Ye.defaultOpen,ei=Ye.autoFocus,ni=Ye.labelInValue,$r=Ye.value,fi=Ye.inputValue,ri=Ye.optionLabelProp,Ki=isMultiple(tt),Ma=pr!==void 0?pr:Ki||tt==="combobox",Ua=zt||convertChildrenToData(Ot);if(warning(tt!=="tags"||Ua.every(function(wa){return!wa.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),tt==="tags"||tt==="combobox"){var Xa=Ua.some(function(wa){return wa.options?wa.options.some(function(Ka){return typeof("value"in Ka?Ka.value:Ka.key)=="number"}):typeof("value"in wa?wa.value:wa.key)=="number"});warning(!Xa,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(tt!=="combobox"||!ri,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(tt==="combobox"||!hn,"`backfill` only works with `combobox` mode."),warning(tt==="combobox"||!lr,"`getInputElement` only work with `combobox` mode."),noteOnce(tt!=="combobox"||!lr||!Pn||!xn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),qn&&!Ma&&tt!=="combobox"&&tt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pi||ei,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$r!=null){var za=toArray($r);warning(!ni||za.every(function(wa){return _typeof(wa)==="object"&&("key"in wa||"value"in wa)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ki||Array.isArray($r),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ot){var lo=null;toNodeArray(Ot).some(function(wa){if(!React.isValidElement(wa)||!wa.type)return!1;var Ka=wa,so=Ka.type;if(so.isSelectOption)return!1;if(so.isSelectOptGroup){var Vi=toNodeArray(wa.props.children).every(function(Xi){return!React.isValidElement(Xi)||!wa.type||Xi.type.isSelectOption?!0:(lo=Xi.type,!1)});return!Vi}return lo=so,!0}),lo&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(lo.displayName||lo.name||lo,"`.")),warning(fi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function wt(Ye,tt){if(Ye){var zt=function Ot(hn){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=0;xn<hn.length;xn++){var lr=hn[xn];if(lr[tt==null?void 0:tt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Pn&&Array.isArray(lr[tt==null?void 0:tt.options])&&Ot(lr[tt==null?void 0:tt.options],!0))break}};zt(Ye)}}var sn=null,En=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ur=["inputValue"];function yr(Ye){return!Ye||(0,Ke.Z)(Ye)!=="object"}var fr=de.forwardRef(function(Ye,tt){var zt=Ye.id,Ot=Ye.mode,hn=Ye.prefixCls,Pn=hn===void 0?"rc-select":hn,xn=Ye.backfill,lr=Ye.fieldNames,pr=Ye.inputValue,qn=Ye.searchValue,pi=Ye.onSearch,ei=Ye.autoClearSearchValue,ni=ei===void 0?!0:ei,$r=Ye.onSelect,fi=Ye.onDeselect,ri=Ye.dropdownMatchSelectWidth,Ki=ri===void 0?!0:ri,Ma=Ye.filterOption,Ua=Ye.filterSort,Xa=Ye.optionFilterProp,za=Ye.optionLabelProp,lo=Ye.options,wa=Ye.children,Ka=Ye.defaultActiveFirstOption,so=Ye.menuItemSelectedIcon,Vi=Ye.virtual,Xi=Ye.direction,da=Ye.listHeight,So=da===void 0?200:da,uo=Ye.listItemHeight,Eo=uo===void 0?20:uo,vo=Ye.value,Io=Ye.defaultValue,Lo=Ye.labelInValue,Fo=Ye.onChange,Yo=(0,we.Z)(Ye,En),jn=io(zt),ai=el(Ot),ba=!!(!lo&&wa),na=de.useMemo(function(){return Ma===void 0&&Ot==="combobox"?!1:Ma},[Ma,Ot]),Nr=de.useMemo(function(){return Wo(lr,ba)},[JSON.stringify(lr),ba]),Ti=Oe("",{value:qn!==void 0?qn:pr,postState:function(eo){return eo||""}}),Ni=(0,fe.Z)(Ti,2),ra=Ni[0],Ei=Ni[1],Ii=$i(lo,wa,Nr,Xa,za),Ui=Ii.valueOptions,Ba=Ii.labelOptions,go=Ii.options,yi=de.useCallback(function(oa){var eo=$t(oa);return eo.map(function(Bo){var Xo,is,as,Rs,su;if(yr(Bo))Xo=Bo;else{var Ru;as=Bo.key,is=Bo.label,Xo=(Ru=Bo.value)!==null&&Ru!==void 0?Ru:as}var Fe=Ui.get(Xo);if(Fe){var Re;if(is===void 0&&(is=Fe==null?void 0:Fe[za||Nr.label]),as===void 0&&(as=(Re=Fe==null?void 0:Fe.key)!==null&&Re!==void 0?Re:Xo),Rs=Fe==null?void 0:Fe.disabled,su=Fe==null?void 0:Fe.title,0)var ct}return{label:is,value:Xo,key:as,disabled:Rs,title:su}})},[Nr,za,Ui]),co=Oe(Io,{value:vo}),Va=(0,fe.Z)(co,2),ko=Va[0],Cl=Va[1],Dl=de.useMemo(function(){var oa,eo=yi(ko);return Ot==="combobox"&&Ut((oa=eo[0])===null||oa===void 0?void 0:oa.value)?[]:eo},[ko,yi,Ot]),zl=vl(Dl,Ui),Hl=(0,fe.Z)(zl,2),Rl=Hl[0],Ts=Hl[1],ks=de.useMemo(function(){if(!Ot&&Rl.length===1){var oa=Rl[0];if(oa.value===null&&(oa.label===null||oa.label===void 0))return[]}return Rl.map(function(eo){var Bo;return(0,De.Z)((0,De.Z)({},eo),{},{label:(Bo=eo.label)!==null&&Bo!==void 0?Bo:eo.value})})},[Ot,Rl]),Qs=de.useMemo(function(){return new Set(Rl.map(function(oa){return oa.value}))},[Rl]);de.useEffect(function(){if(Ot==="combobox"){var oa,eo=(oa=Rl[0])===null||oa===void 0?void 0:oa.value;Ei(yt(eo)?String(eo):"")}},[Rl]);var ps=ia(function(oa,eo){var Bo,Xo=eo!=null?eo:oa;return Bo={},(0,Ue.Z)(Bo,Nr.value,oa),(0,Ue.Z)(Bo,Nr.label,Xo),Bo}),ql=de.useMemo(function(){if(Ot!=="tags")return go;var oa=(0,ee.Z)(go),eo=function(Xo){return Ui.has(Xo)};return(0,ee.Z)(Rl).sort(function(Bo,Xo){return Bo.value<Xo.value?-1:1}).forEach(function(Bo){var Xo=Bo.value;eo(Xo)||oa.push(ps(Xo,Bo.label))}),oa},[ps,go,Ui,Rl,Ot]),Bs=Uo(ql,Nr,ra,na,Xa),gs=de.useMemo(function(){return Ot!=="tags"||!ra||Bs.some(function(oa){return oa[Xa||"value"]===ra})||Bs.some(function(oa){return oa[Nr.value]===ra})?Bs:[ps(ra)].concat((0,ee.Z)(Bs))},[ps,Xa,Ot,Bs,ra,Nr]),us=de.useMemo(function(){return Ua?(0,ee.Z)(gs).sort(function(oa,eo){return Ua(oa,eo)}):gs},[gs,Ua]),js=de.useMemo(function(){return _o(us,{fieldNames:Nr,childrenAsData:ba})},[us,Nr,ba]),Os=function(eo){var Bo=yi(eo);if(Cl(Bo),Fo&&(Bo.length!==Rl.length||Bo.some(function(as,Rs){var su;return((su=Rl[Rs])===null||su===void 0?void 0:su.value)!==(as==null?void 0:as.value)}))){var Xo=Lo?Bo:Bo.map(function(as){return as.value}),is=Bo.map(function(as){return bl(Ts(as.value))});Fo(ai?Xo:Xo[0],ai?is:is[0])}},cs=de.useState(null),Ys=(0,fe.Z)(cs,2),Zu=Ys[0],Fu=Ys[1],ys=de.useState(0),Ll=(0,fe.Z)(ys,2),bs=Ll[0],Xs=Ll[1],vu=Ka!==void 0?Ka:Ot!=="combobox",os=de.useCallback(function(oa,eo){var Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xo=Bo.source,is=Xo===void 0?"keyboard":Xo;Xs(eo),xn&&Ot==="combobox"&&oa!==null&&is==="keyboard"&&Fu(String(oa))},[xn,Ot]),Gl=function(eo,Bo,Xo){var is=function(){var en,Tn=Ts(eo);return[Lo?{label:Tn==null?void 0:Tn[Nr.label],value:eo,key:(en=Tn==null?void 0:Tn.key)!==null&&en!==void 0?en:eo}:eo,bl(Tn)]};if(Bo&&$r){var as=is(),Rs=(0,fe.Z)(as,2),su=Rs[0],Ru=Rs[1];$r(su,Ru)}else if(!Bo&&fi&&Xo!=="clear"){var Fe=is(),Re=(0,fe.Z)(Fe,2),ct=Re[0],At=Re[1];fi(ct,At)}},rs=ia(function(oa,eo){var Bo,Xo=ai?eo.selected:!0;Xo?Bo=ai?[].concat((0,ee.Z)(Rl),[oa]):[oa]:Bo=Rl.filter(function(is){return is.value!==oa}),Os(Bo),Gl(oa,Xo),Ot==="combobox"?Fu(""):(!el||ni)&&(Ei(""),Fu(""))}),Js=function(eo,Bo){Os(eo);var Xo=Bo.type,is=Bo.values;(Xo==="remove"||Xo==="clear")&&is.forEach(function(as){Gl(as.value,!1,Xo)})},Ds=function(eo,Bo){if(Ei(eo),Fu(null),Bo.source==="submit"){var Xo=(eo||"").trim();if(Xo){var is=Array.from(new Set([].concat((0,ee.Z)(Qs),[Xo])));Os(is),Gl(Xo,!0),Ei("")}return}Bo.source!=="blur"&&(Ot==="combobox"&&Os(eo),pi==null||pi(eo))},$s=function(eo){var Bo=eo;Ot!=="tags"&&(Bo=eo.map(function(is){var as=Ba.get(is);return as==null?void 0:as.value}).filter(function(is){return is!==void 0}));var Xo=Array.from(new Set([].concat((0,ee.Z)(Qs),(0,ee.Z)(Bo))));Os(Xo),Xo.forEach(function(is){Gl(is,!0)})},sl=de.useMemo(function(){var oa=Vi!==!1&&Ki!==!1;return(0,De.Z)((0,De.Z)({},Ii),{},{flattenOptions:js,onActiveValue:os,defaultActiveFirstOption:vu,onSelect:rs,menuItemSelectedIcon:so,rawValues:Qs,fieldNames:Nr,virtual:oa,direction:Xi,listHeight:So,listItemHeight:Eo,childrenAsData:ba})},[Ii,js,os,vu,rs,so,Qs,Nr,Vi,Ki,So,Eo,ba]);return de.createElement(ir.Provider,{value:sl},de.createElement(rl,(0,Ee.Z)({},Yo,{id:jn,prefixCls:Pn,ref:tt,omitDomProps:ur,mode:Ot,displayValues:ks,onDisplayValuesChange:Js,direction:Xi,searchValue:ra,onSearch:Ds,autoClearSearchValue:ni,onSearchSplit:$s,dropdownMatchSelectWidth:Ki,OptionList:ft,emptyOptions:!js.length,activeValue:Zu,activeDescendantId:"".concat(jn,"_list_").concat(bs)})))}),Qn=fr;Qn.Option=ho,Qn.OptGroup=ka;var Yn=null,On=null,hr=te(17341);function zr(Ye){var tt=de.useRef(!1),zt=de.useState(Ye),Ot=(0,fe.Z)(zt,2),hn=Ot[0],Pn=Ot[1];de.useEffect(function(){return tt.current=!1,function(){tt.current=!0}},[]);function xn(lr,pr){pr&&tt.current||Pn(lr)}return[hn,xn]}function Er(Ye){return Ye!==void 0}function wr(Ye,tt){var zt=tt||{},Ot=zt.defaultValue,hn=zt.value,Pn=zt.onChange,xn=zt.postState,lr=zr(function(){return Er(hn)?hn:Er(Ot)?typeof Ot=="function"?Ot():Ot:typeof Ye=="function"?Ye():Ye}),pr=(0,fe.Z)(lr,2),qn=pr[0],pi=pr[1],ei=hn!==void 0?hn:qn,ni=xn?xn(ei):ei,$r=Wt(Pn),fi=zr([ei]),ri=(0,fe.Z)(fi,2),Ki=ri[0],Ma=ri[1];dt(function(){var Xa=Ki[0];qn!==Xa&&$r(qn,Xa)},[Ki]),dt(function(){Er(hn)||pi(hn)},[hn]);var Ua=Wt(function(Xa,za){pi(Xa,za),Ma([ei],za)});return[ni,Ua]}var Br=de.createContext(null),Or=Br,Wr="__rc_cascader_search_mark__",pt=function(tt,zt,Ot){var hn=Ot.label;return zt.some(function(Pn){return String(Pn[hn]).toLowerCase().includes(tt.toLowerCase())})},vt=function(tt,zt,Ot,hn){return zt.map(function(Pn){return Pn[hn.label]}).join(" / ")},mn=function(Ye,tt,zt,Ot,hn,Pn){var xn=hn.filter,lr=xn===void 0?pt:xn,pr=hn.render,qn=pr===void 0?vt:pr,pi=hn.limit,ei=pi===void 0?50:pi,ni=hn.sort;return de.useMemo(function(){var $r=[];if(!Ye)return[];function fi(ri,Ki){var Ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ri.forEach(function(Ua){if(!(!ni&&ei!==!1&&ei>0&&$r.length>=ei)){var Xa=[].concat((0,ee.Z)(Ki),[Ua]),za=Ua[zt.children],lo=Ma||Ua.disabled;if((!za||za.length===0||Pn)&&lr(Ye,Xa,{label:zt.label})){var wa;$r.push((0,De.Z)((0,De.Z)({},Ua),{},(wa={disabled:lo},(0,Ue.Z)(wa,zt.label,qn(Ye,Xa,Ot,zt)),(0,Ue.Z)(wa,Wr,Xa),(0,Ue.Z)(wa,zt.children,void 0),wa)))}za&&fi(Ua[zt.children],Xa,lo)}})}return fi(tt,[]),ni&&$r.sort(function(ri,Ki){return ni(ri[Wr],Ki[Wr],Ye,zt)}),ei!==!1&&ei>0?$r.slice(0,ei):$r},[Ye,tt,zt,Ot,qn,Pn,lr,ni,ei])},ln="__RC_CASCADER_SPLIT__",$n="SHOW_PARENT",mr="SHOW_CHILD";function Ft(Ye){return Ye.join(ln)}function It(Ye){return Ye.map(Ft)}function Ht(Ye){return Ye.split(ln)}function on(Ye){var tt=Ye||{},zt=tt.label,Ot=tt.value,hn=tt.children,Pn=Ot||"value";return{label:zt||"label",value:Pn,key:Pn,children:hn||"children"}}function Vn(Ye,tt){var zt,Ot;return(zt=Ye.isLeaf)!==null&&zt!==void 0?zt:!((Ot=Ye[tt.children])!==null&&Ot!==void 0&&Ot.length)}function dr(Ye){var tt=Ye.parentElement;if(tt){var zt=Ye.offsetTop-tt.offsetTop;zt-tt.scrollTop<0?tt.scrollTo({top:zt}):zt+Ye.offsetHeight-tt.scrollTop>tt.offsetHeight&&tt.scrollTo({top:zt+Ye.offsetHeight-tt.offsetHeight})}}function Kn(Ye,tt){return Ye.map(function(zt){var Ot;return(Ot=zt[Wr])===null||Ot===void 0?void 0:Ot.map(function(hn){return hn[tt.value]})})}function rr(Ye,tt,zt){var Ot=new Set(Ye),hn=tt();return Ye.filter(function(Pn){var xn=hn[Pn],lr=xn?xn.parent:null,pr=xn?xn.children:null;return xn&&xn.node.disabled?!0:zt===mr?!(pr&&pr.some(function(qn){return qn.key&&Ot.has(qn.key)})):!(lr&&!lr.node.disabled&&Ot.has(lr.key))})}function Fr(Ye,tt,zt){for(var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,hn=tt,Pn=[],xn=function(){var qn,pi,ei,ni=Ye[lr],$r=(qn=hn)===null||qn===void 0?void 0:qn.findIndex(function(ri){var Ki=ri[zt.value];return Ot?String(Ki)===String(ni):Ki===ni}),fi=$r!==-1?(pi=hn)===null||pi===void 0?void 0:pi[$r]:null;Pn.push({value:(ei=fi==null?void 0:fi[zt.value])!==null&&ei!==void 0?ei:ni,index:$r,option:fi}),hn=fi==null?void 0:fi[zt.children]},lr=0;lr<Ye.length;lr+=1)xn();return Pn}var ii=function(Ye,tt,zt,Ot,hn){return de.useMemo(function(){var Pn=hn||function(xn){var lr=Ot?xn.slice(-1):xn,pr=" / ";return lr.every(function(qn){return["string","number"].includes((0,Ke.Z)(qn))})?lr.join(pr):lr.reduce(function(qn,pi,ei){var ni=de.isValidElement(pi)?de.cloneElement(pi,{key:ei}):pi;return ei===0?[ni]:[].concat((0,ee.Z)(qn),[pr,ni])},[])};return Ye.map(function(xn){var lr,pr,qn=Fr(xn,tt,zt),pi=Pn(qn.map(function(ni){var $r,fi=ni.option,ri=ni.value;return($r=fi==null?void 0:fi[zt.label])!==null&&$r!==void 0?$r:ri}),qn.map(function(ni){var $r=ni.option;return $r})),ei=Ft(xn);return{label:pi,value:ei,key:ei,valueCells:xn,disabled:(lr=qn[qn.length-1])===null||lr===void 0||(pr=lr.option)===null||pr===void 0?void 0:pr.disabled}})},[Ye,tt,zt,hn,Ot])},Zr=te(1089),Ar=function(Ye,tt){var zt=de.useRef({options:null,info:null}),Ot=de.useCallback(function(){return zt.current.options!==Ye&&(zt.current.options=Ye,zt.current.info=(0,Zr.I8)(Ye,{fieldNames:tt,initWrapper:function(Pn){return(0,De.Z)((0,De.Z)({},Pn),{},{pathKeyEntities:{}})},processEntity:function(Pn,xn){var lr=Pn.nodes.map(function(pr){return pr[tt.value]}).join(ln);xn.pathKeyEntities[lr]=Pn,Pn.key=lr}})),zt.current.info.pathKeyEntities},[tt,Ye]);return Ot},Vr=function(Ye,tt){return de.useCallback(function(zt){var Ot=[],hn=[];return zt.forEach(function(Pn){var xn=Fr(Pn,Ye,tt);xn.every(function(lr){return lr.option})?hn.push(Pn):Ot.push(Pn)}),[hn,Ot]},[Ye,tt])},li={},Mi=[],si=function(tt){Mi.push(tt)};function Kr(Ye,tt){if(0)var zt}function Wi(Ye,tt){if(0)var zt}function Zi(){li={}}function Na(Ye,tt,zt){!tt&&!li[zt]&&(Ye(!1,zt),li[zt]=!0)}function Ha(Ye,tt){Na(Kr,Ye,tt)}function La(Ye,tt){Na(Wi,Ye,tt)}Ha.preMessage=si,Ha.resetWarned=Zi,Ha.noteOnce=La;var Ea=null;function Ra(Ye){return de.useMemo(function(){if(!Ye)return[!1,{}];var tt={matchInputWidth:!0,limit:50};return Ye&&(0,Ke.Z)(Ye)==="object"&&(tt=(0,De.Z)((0,De.Z)({},tt),Ye)),tt.limit<=0&&delete tt.limit,[!0,tt]},[Ye])}var va=de.memo(function(Ye){var tt=Ye.children;return tt},function(Ye,tt){return!tt.open}),oo=va;function Ca(Ye){var tt,zt=Ye.prefixCls,Ot=Ye.checked,hn=Ye.halfChecked,Pn=Ye.disabled,xn=Ye.onClick,lr=Ye.disableCheckbox,pr=de.useContext(Or),qn=pr.checkable,pi=typeof qn!="boolean"?qn:null;return de.createElement("span",{className:ue()("".concat(zt),(tt={},(0,Ue.Z)(tt,"".concat(zt,"-checked"),Ot),(0,Ue.Z)(tt,"".concat(zt,"-indeterminate"),!Ot&&hn),(0,Ue.Z)(tt,"".concat(zt,"-disabled"),Pn||lr),tt)),onClick:xn},pi)}var Qi="__cascader_fix_label__";function ja(Ye){var tt=Ye.prefixCls,zt=Ye.multiple,Ot=Ye.options,hn=Ye.activeValue,Pn=Ye.prevValuePath,xn=Ye.onToggleOpen,lr=Ye.onSelect,pr=Ye.onActive,qn=Ye.checkedSet,pi=Ye.halfCheckedSet,ei=Ye.loadingKeys,ni=Ye.isSelectable,$r=Ye.searchValue,fi="".concat(tt,"-menu"),ri="".concat(tt,"-menu-item"),Ki=de.useContext(Or),Ma=Ki.fieldNames,Ua=Ki.changeOnSelect,Xa=Ki.expandTrigger,za=Ki.expandIcon,lo=Ki.loadingIcon,wa=Ki.dropdownMenuColumnStyle,Ka=Xa==="hover",so=de.useMemo(function(){return Ot.map(function(Vi){var Xi,da=Vi.disabled,So=Vi.disableCheckbox,uo=Vi[Wr],Eo=(Xi=Vi[Qi])!==null&&Xi!==void 0?Xi:Vi[Ma.label],vo=Vi[Ma.value],Io=Vn(Vi,Ma),Lo=uo?uo.map(function(ba){return ba[Ma.value]}):[].concat((0,ee.Z)(Pn),[vo]),Fo=Ft(Lo),Yo=ei.includes(Fo),jn=qn.has(Fo),ai=pi.has(Fo);return{disabled:da,label:Eo,value:vo,isLeaf:Io,isLoading:Yo,checked:jn,halfChecked:ai,option:Vi,disableCheckbox:So,fullPath:Lo,fullPathKey:Fo}})},[Ot,qn,Ma,pi,ei,Pn]);return de.createElement("ul",{className:fi,role:"menu"},so.map(function(Vi){var Xi,da=Vi.disabled,So=Vi.label,uo=Vi.value,Eo=Vi.isLeaf,vo=Vi.isLoading,Io=Vi.checked,Lo=Vi.halfChecked,Fo=Vi.option,Yo=Vi.fullPath,jn=Vi.fullPathKey,ai=Vi.disableCheckbox,ba=function(){if(!(da||$r)){var Ni=(0,ee.Z)(Yo);Ka&&Eo&&Ni.pop(),pr(Ni)}},na=function(){ni(Fo)&&lr(Yo,Eo)},Nr;return typeof Fo.title=="string"?Nr=Fo.title:typeof So=="string"&&(Nr=So),de.createElement("li",{key:jn,className:ue()(ri,(Xi={},(0,Ue.Z)(Xi,"".concat(ri,"-expand"),!Eo),(0,Ue.Z)(Xi,"".concat(ri,"-active"),hn===uo||hn===jn),(0,Ue.Z)(Xi,"".concat(ri,"-disabled"),da),(0,Ue.Z)(Xi,"".concat(ri,"-loading"),vo),Xi)),style:wa,role:"menuitemcheckbox",title:Nr,"aria-checked":Io,"data-path-key":jn,onClick:function(){ba(),!ai&&(!zt||Eo)&&na()},onDoubleClick:function(){Ua&&xn(!1)},onMouseEnter:function(){Ka&&ba()},onMouseDown:function(Ni){Ni.preventDefault()}},zt&&de.createElement(Ca,{prefixCls:"".concat(tt,"-checkbox"),checked:Io,halfChecked:Lo,disabled:da||ai,disableCheckbox:ai,onClick:function(Ni){ai||(Ni.stopPropagation(),na())}}),de.createElement("div",{className:"".concat(ri,"-content")},So),!vo&&za&&!Eo&&de.createElement("div",{className:"".concat(ri,"-expand-icon")},za),vo&&lo&&de.createElement("div",{className:"".concat(ri,"-loading-icon")},lo))}))}var bo=function(){var Ye=Bt(),tt=Ye.multiple,zt=Ye.open,Ot=de.useContext(Or),hn=Ot.values,Pn=de.useState([]),xn=(0,fe.Z)(Pn,2),lr=xn[0],pr=xn[1];return de.useEffect(function(){if(zt&&!tt){var qn=hn[0];pr(qn||[])}},[zt]),[lr,pr]},ca={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(tt){var zt=tt.keyCode;if(tt.altKey&&!tt.ctrlKey||tt.metaKey||zt>=ca.F1&&zt<=ca.F12)return!1;switch(zt){case ca.ALT:case ca.CAPS_LOCK:case ca.CONTEXT_MENU:case ca.CTRL:case ca.DOWN:case ca.END:case ca.ESC:case ca.HOME:case ca.INSERT:case ca.LEFT:case ca.MAC_FF_META:case ca.META:case ca.NUMLOCK:case ca.NUM_CENTER:case ca.PAGE_DOWN:case ca.PAGE_UP:case ca.PAUSE:case ca.PRINT_SCREEN:case ca.RIGHT:case ca.SHIFT:case ca.UP:case ca.WIN_KEY:case ca.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(tt){if(tt>=ca.ZERO&&tt<=ca.NINE||tt>=ca.NUM_ZERO&&tt<=ca.NUM_MULTIPLY||tt>=ca.A&&tt<=ca.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&tt===0)return!0;switch(tt){case ca.SPACE:case ca.QUESTION_MARK:case ca.NUM_PLUS:case ca.NUM_MINUS:case ca.NUM_PERIOD:case ca.NUM_DIVISION:case ca.SEMICOLON:case ca.DASH:case ca.EQUALS:case ca.COMMA:case ca.PERIOD:case ca.SLASH:case ca.APOSTROPHE:case ca.SINGLE_QUOTE:case ca.OPEN_SQUARE_BRACKET:case ca.BACKSLASH:case ca.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vo=ca,Go=function(Ye,tt,zt,Ot,hn,Pn){var xn=Bt(),lr=xn.direction,pr=xn.searchValue,qn=xn.toggleOpen,pi=xn.open,ei=lr==="rtl",ni=de.useMemo(function(){for(var wa=-1,Ka=tt,so=[],Vi=[],Xi=Ot.length,da=Kn(tt,zt),So=function(Fo){var Yo=Ka.findIndex(function(jn,ai){return(da[ai]?Ft(da[ai]):jn[zt.value])===Ot[Fo]});if(Yo===-1)return"break";wa=Yo,so.push(wa),Vi.push(Ot[Fo]),Ka=Ka[wa][zt.children]},uo=0;uo<Xi&&Ka;uo+=1){var Eo=So(uo);if(Eo==="break")break}for(var vo=tt,Io=0;Io<so.length-1;Io+=1)vo=vo[so[Io]][zt.children];return[Vi,wa,vo,da]},[Ot,zt,tt]),$r=(0,fe.Z)(ni,4),fi=$r[0],ri=$r[1],Ki=$r[2],Ma=$r[3],Ua=function(Ka){hn(Ka)},Xa=function(Ka){var so=Ki.length,Vi=ri;Vi===-1&&Ka<0&&(Vi=so);for(var Xi=0;Xi<so;Xi+=1){Vi=(Vi+Ka+so)%so;var da=Ki[Vi];if(da&&!da.disabled){var So=fi.slice(0,-1).concat(Ma[Vi]?Ft(Ma[Vi]):da[zt.value]);Ua(So);return}}},za=function(){if(fi.length>1){var Ka=fi.slice(0,-1);Ua(Ka)}else qn(!1)},lo=function(){var Ka,so=((Ka=Ki[ri])===null||Ka===void 0?void 0:Ka[zt.children])||[],Vi=so.find(function(da){return!da.disabled});if(Vi){var Xi=[].concat((0,ee.Z)(fi),[Vi[zt.value]]);Ua(Xi)}};de.useImperativeHandle(Ye,function(){return{onKeyDown:function(Ka){var so=Ka.which;switch(so){case Vo.UP:case Vo.DOWN:{var Vi=0;so===Vo.UP?Vi=-1:so===Vo.DOWN&&(Vi=1),Vi!==0&&Xa(Vi);break}case Vo.LEFT:{if(pr)break;ei?lo():za();break}case Vo.RIGHT:{if(pr)break;ei?za():lo();break}case Vo.BACKSPACE:{pr||za();break}case Vo.ENTER:{if(fi.length){var Xi=Ki[ri],da=(Xi==null?void 0:Xi[Wr])||[];da.length?Pn(da.map(function(So){return So[zt.value]}),da[da.length-1]):Pn(fi,Ki[ri])}break}case Vo.ESC:qn(!1),pi&&Ka.stopPropagation()}},onKeyUp:function(){}}})},tl=de.forwardRef(function(Ye,tt){var zt,Ot,hn,Pn,xn=Bt(),lr=xn.prefixCls,pr=xn.multiple,qn=xn.searchValue,pi=xn.toggleOpen,ei=xn.notFoundContent,ni=xn.direction,$r=xn.open,fi=de.useRef(),ri=ni==="rtl",Ki=de.useContext(Or),Ma=Ki.options,Ua=Ki.values,Xa=Ki.halfValues,za=Ki.fieldNames,lo=Ki.changeOnSelect,wa=Ki.onSelect,Ka=Ki.searchOptions,so=Ki.dropdownPrefixCls,Vi=Ki.loadData,Xi=Ki.expandTrigger,da=so||lr,So=de.useState([]),uo=(0,fe.Z)(So,2),Eo=uo[0],vo=uo[1],Io=function(Va){if(!(!Vi||qn)){var ko=Fr(Va,Ma,za),Cl=ko.map(function(Hl){var Rl=Hl.option;return Rl}),Dl=Cl[Cl.length-1];if(Dl&&!Vn(Dl,za)){var zl=Ft(Va);vo(function(Hl){return[].concat((0,ee.Z)(Hl),[zl])}),Vi(Cl)}}};de.useEffect(function(){Eo.length&&Eo.forEach(function(co){var Va=Ht(co),ko=Fr(Va,Ma,za,!0).map(function(Dl){var zl=Dl.option;return zl}),Cl=ko[ko.length-1];(!Cl||Cl[za.children]||Vn(Cl,za))&&vo(function(Dl){return Dl.filter(function(zl){return zl!==co})})})},[Ma,Eo,za]);var Lo=de.useMemo(function(){return new Set(It(Ua))},[Ua]),Fo=de.useMemo(function(){return new Set(It(Xa))},[Xa]),Yo=bo(),jn=(0,fe.Z)(Yo,2),ai=jn[0],ba=jn[1],na=function(Va){ba(Va),Io(Va)},Nr=function(Va){var ko=Va.disabled,Cl=Vn(Va,za);return!ko&&(Cl||lo||pr)},Ti=function(Va,ko){var Cl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;wa(Va),!pr&&(ko||lo&&(Xi==="hover"||Cl))&&pi(!1)},Ni=de.useMemo(function(){return qn?Ka:Ma},[qn,Ka,Ma]),ra=de.useMemo(function(){for(var co=[{options:Ni}],Va=Ni,ko=Kn(Va,za),Cl=function(){var Rl=ai[Dl],Ts=Va.find(function(Qs,ps){return(ko[ps]?Ft(ko[ps]):Qs[za.value])===Rl}),ks=Ts==null?void 0:Ts[za.children];if(!(ks!=null&&ks.length))return"break";Va=ks,co.push({options:ks})},Dl=0;Dl<ai.length;Dl+=1){var zl=Cl();if(zl==="break")break}return co},[Ni,ai,za]),Ei=function(Va,ko){Nr(ko)&&Ti(Va,Vn(ko,za),!0)};Go(tt,Ni,za,ai,na,Ei),de.useEffect(function(){for(var co=0;co<ai.length;co+=1){var Va,ko=ai.slice(0,co+1),Cl=Ft(ko),Dl=(Va=fi.current)===null||Va===void 0?void 0:Va.querySelector('li[data-path-key="'.concat(Cl.replace(/\\{0,2}"/g,'\\"'),'"]'));Dl&&dr(Dl)}},[ai]);var Ii=!((zt=ra[0])!==null&&zt!==void 0&&(Ot=zt.options)!==null&&Ot!==void 0&&Ot.length),Ui=[(hn={},(0,Ue.Z)(hn,za.value,"__EMPTY__"),(0,Ue.Z)(hn,Qi,ei),(0,Ue.Z)(hn,"disabled",!0),hn)],Ba=(0,De.Z)((0,De.Z)({},Ye),{},{multiple:!Ii&&pr,onSelect:Ti,onActive:na,onToggleOpen:pi,checkedSet:Lo,halfCheckedSet:Fo,loadingKeys:Eo,isSelectable:Nr}),go=Ii?[{options:Ui}]:ra,yi=go.map(function(co,Va){var ko=ai.slice(0,Va),Cl=ai[Va];return de.createElement(ja,(0,Ee.Z)({key:Va},Ba,{searchValue:qn,prefixCls:da,options:co.options,prevValuePath:ko,activeValue:Cl}))});return de.createElement(oo,{open:$r},de.createElement("div",{className:ue()("".concat(da,"-menus"),(Pn={},(0,Ue.Z)(Pn,"".concat(da,"-menu-empty"),Ii),(0,Ue.Z)(Pn,"".concat(da,"-rtl"),ri),Pn)),ref:fi},yi))}),zo=tl;function no(Ye){var tt=Ye.onPopupVisibleChange,zt=Ye.popupVisible,Ot=Ye.popupClassName,hn=Ye.popupPlacement;warning(!tt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(zt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Ot===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(hn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function kl(Ye,tt){if(Ye){var zt=function Ot(hn){for(var Pn=0;Pn<hn.length;Pn++){var xn=hn[Pn];if(xn[tt==null?void 0:tt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(xn[tt==null?void 0:tt.children])&&Ot(xn[tt==null?void 0:tt.children]))return!0}};zt(Ye)}}var Co=null,_a=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ao(Ye){return Array.isArray(Ye)&&Array.isArray(Ye[0])}function ml(Ye){return Ye?Ao(Ye)?Ye:(Ye.length===0?[]:[Ye]).map(function(tt){return Array.isArray(tt)?tt:[tt]}):[]}var Ko=de.forwardRef(function(Ye,tt){var zt=Ye.id,Ot=Ye.prefixCls,hn=Ot===void 0?"rc-cascader":Ot,Pn=Ye.fieldNames,xn=Ye.defaultValue,lr=Ye.value,pr=Ye.changeOnSelect,qn=Ye.onChange,pi=Ye.displayRender,ei=Ye.checkable,ni=Ye.autoClearSearchValue,$r=ni===void 0?!0:ni,fi=Ye.searchValue,ri=Ye.onSearch,Ki=Ye.showSearch,Ma=Ye.expandTrigger,Ua=Ye.options,Xa=Ye.dropdownPrefixCls,za=Ye.loadData,lo=Ye.popupVisible,wa=Ye.open,Ka=Ye.popupClassName,so=Ye.dropdownClassName,Vi=Ye.dropdownMenuColumnStyle,Xi=Ye.popupPlacement,da=Ye.placement,So=Ye.onDropdownVisibleChange,uo=Ye.onPopupVisibleChange,Eo=Ye.expandIcon,vo=Eo===void 0?">":Eo,Io=Ye.loadingIcon,Lo=Ye.children,Fo=Ye.dropdownMatchSelectWidth,Yo=Fo===void 0?!1:Fo,jn=Ye.showCheckedStrategy,ai=jn===void 0?$n:jn,ba=(0,we.Z)(Ye,_a),na=io(zt),Nr=!!ei,Ti=wr(xn,{value:lr,postState:ml}),Ni=(0,fe.Z)(Ti,2),ra=Ni[0],Ei=Ni[1],Ii=de.useMemo(function(){return on(Pn)},[JSON.stringify(Pn)]),Ui=de.useMemo(function(){return Ua||[]},[Ua]),Ba=Ar(Ui,Ii),go=de.useCallback(function(os){var Gl=Ba();return os.map(function(rs){var Js=Gl[rs].nodes;return Js.map(function(Ds){return Ds[Ii.value]})})},[Ba,Ii]),yi=wr("",{value:fi,postState:function(Gl){return Gl||""}}),co=(0,fe.Z)(yi,2),Va=co[0],ko=co[1],Cl=function(Gl,rs){ko(Gl),rs.source!=="blur"&&ri&&ri(Gl)},Dl=Ra(Ki),zl=(0,fe.Z)(Dl,2),Hl=zl[0],Rl=zl[1],Ts=mn(Va,Ui,Ii,Xa||hn,Rl,pr),ks=Vr(Ui,Ii),Qs=de.useMemo(function(){var os=ks(ra),Gl=(0,fe.Z)(os,2),rs=Gl[0],Js=Gl[1];if(!Nr||!ra.length)return[rs,[],Js];var Ds=It(rs),$s=Ba(),sl=(0,hr.S)(Ds,!0,$s),oa=sl.checkedKeys,eo=sl.halfCheckedKeys;return[go(oa),go(eo),Js]},[Nr,ra,Ba,go,ks]),ps=(0,fe.Z)(Qs,3),ql=ps[0],Bs=ps[1],gs=ps[2],us=de.useMemo(function(){var os=It(ql),Gl=rr(os,Ba,ai);return[].concat((0,ee.Z)(gs),(0,ee.Z)(go(Gl)))},[ql,Ba,go,gs,ai]),js=ii(us,Ui,Ii,Nr,pi),Os=Wt(function(os){if(Ei(os),qn){var Gl=ml(os),rs=Gl.map(function($s){return Fr($s,Ui,Ii).map(function(sl){return sl.option})}),Js=Nr?Gl:Gl[0],Ds=Nr?rs:rs[0];qn(Js,Ds)}}),cs=Wt(function(os){if((!Nr||$r)&&ko(""),!Nr)Os(os);else{var Gl=Ft(os),rs=It(ql),Js=It(Bs),Ds=rs.includes(Gl),$s=gs.some(function(su){return Ft(su)===Gl}),sl=ql,oa=gs;if($s&&!Ds)oa=gs.filter(function(su){return Ft(su)!==Gl});else{var eo=Ds?rs.filter(function(su){return su!==Gl}):[].concat((0,ee.Z)(rs),[Gl]),Bo=Ba(),Xo;if(Ds){var is=(0,hr.S)(eo,{checked:!1,halfCheckedKeys:Js},Bo);Xo=is.checkedKeys}else{var as=(0,hr.S)(eo,!0,Bo);Xo=as.checkedKeys}var Rs=rr(Xo,Ba,ai);sl=go(Rs)}Os([].concat((0,ee.Z)(oa),(0,ee.Z)(sl)))}}),Ys=function(Gl,rs){if(rs.type==="clear"){Os([]);return}var Js=rs.values[0],Ds=Js.valueCells;cs(Ds)},Zu=wa!==void 0?wa:lo,Fu=so||Ka,ys=da||Xi,Ll=function(Gl){So==null||So(Gl),uo==null||uo(Gl)},bs=de.useMemo(function(){return{options:Ui,fieldNames:Ii,values:ql,halfValues:Bs,changeOnSelect:pr,onSelect:cs,checkable:ei,searchOptions:Ts,dropdownPrefixCls:Xa,loadData:za,expandTrigger:Ma,expandIcon:vo,loadingIcon:Io,dropdownMenuColumnStyle:Vi}},[Ui,Ii,ql,Bs,pr,cs,ei,Ts,Xa,za,Ma,vo,Io,Vi]),Xs=!(Va?Ts:Ui).length,vu=Va&&Rl.matchInputWidth||Xs?{}:{minWidth:"auto"};return de.createElement(Or.Provider,{value:bs},de.createElement(rl,(0,Ee.Z)({},ba,{ref:tt,id:na,prefixCls:hn,autoClearSearchValue:$r,dropdownMatchSelectWidth:Yo,dropdownStyle:vu,displayValues:js,onDisplayValuesChange:Ys,mode:Nr?"multiple":void 0,searchValue:Va,onSearch:Cl,showSearch:Hl,OptionList:zo,emptyOptions:Xs,open:Zu,dropdownClassName:Fu,placement:ys,onDropdownVisibleChange:Ll,getRawInputElement:function(){return Lo}})))});Ko.SHOW_PARENT=$n,Ko.SHOW_CHILD=mr;var $o=Ko,Ya=$o,yl=te(10366),Il=te(33603),xl=te(8745),il=te(9708),El=te(53124),Al=te(88258),Bl=te(98866),Ol=te(98675),Lt=te(65223),rn=te(87244),gn=te(13458),Xn=te(78642),ta=te(46163),ui=te(4173),wi=te(63185),bi=te(14747),Oi=te(80110),Pa=te(67968);const fa=Ye=>{const{prefixCls:tt,componentCls:zt,antCls:Ot}=Ye,hn=`${zt}-menu-item`,Pn=`
&${hn}-expand ${hn}-expand-icon,
${hn}-loading-icon
`;return[{[zt]:{width:Ye.controlWidth}},{[`${zt}-dropdown`]:[(0,wi.C2)(`${tt}-checkbox`,Ye),{[`&${Ot}-select-dropdown`]:{padding:0}},{[zt]:{"&-checkbox":{top:0,marginInlineEnd:Ye.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${zt}-menu-empty`]:{[`${zt}-menu`]:{width:"100%",height:"auto",[hn]:{color:Ye.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ye.controlItemWidth,height:Ye.dropdownHeight,margin:0,padding:Ye.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ye.lineWidth}px ${Ye.lineType} ${Ye.colorSplit}`},"&-item":Object.assign(Object.assign({},bi.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ye.optionPadding,lineHeight:Ye.lineHeight,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`,borderRadius:Ye.borderRadiusSM,"&:hover":{background:Ye.controlItemBgHover},"&-disabled":{color:Ye.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Pn]:{color:Ye.colorTextDisabled}},[`&-active:not(${hn}-disabled)`]:{"&, &:hover":{fontWeight:Ye.optionSelectedFontWeight,backgroundColor:Ye.optionSelectedBg}},"&-content":{flex:"auto"},[Pn]:{marginInlineStart:Ye.paddingXXS,color:Ye.colorTextDescription,fontSize:Ye.fontSizeIcon},"&-keyword":{color:Ye.colorHighlight}})}}}]},{[`${zt}-dropdown-rtl`]:{direction:"rtl"}},(0,Oi.c)(Ye)]};var ro=(0,Pa.Z)("Cascader",Ye=>[fa(Ye)],Ye=>{const tt=Math.round((Ye.controlHeight-Ye.fontSize*Ye.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ye.controlItemBgActive,optionSelectedFontWeight:Ye.fontWeightStrong,optionPadding:`${tt}px ${Ye.paddingSM}px`,menuPadding:Ye.paddingXXS}}),Qo=function(Ye,tt){var zt={};for(var Ot in Ye)Object.prototype.hasOwnProperty.call(Ye,Ot)&&tt.indexOf(Ot)<0&&(zt[Ot]=Ye[Ot]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Ot=Object.getOwnPropertySymbols(Ye);hn<Ot.length;hn++)tt.indexOf(Ot[hn])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ot[hn])&&(zt[Ot[hn]]=Ye[Ot[hn]]);return zt};const{SHOW_CHILD:xo,SHOW_PARENT:xi}=Ya;function Sa(Ye,tt,zt){const Ot=Ye.toLowerCase().split(tt).reduce((xn,lr,pr)=>pr===0?[lr]:[].concat((0,ee.Z)(xn),[tt,lr]),[]),hn=[];let Pn=0;return Ot.forEach((xn,lr)=>{const pr=Pn+xn.length;let qn=Ye.slice(Pn,pr);Pn=pr,lr%2===1&&(qn=de.createElement("span",{className:`${zt}-menu-item-keyword`,key:`separator-${lr}`},qn)),hn.push(qn)}),hn}const Yi=(Ye,tt,zt,Ot)=>{const hn=[],Pn=Ye.toLowerCase();return tt.forEach((xn,lr)=>{lr!==0&&hn.push(" / ");let pr=xn[Ot.label];const qn=typeof pr;(qn==="string"||qn==="number")&&(pr=Sa(String(pr),Pn,zt)),hn.push(pr)}),hn},Ai=de.forwardRef((Ye,tt)=>{const{prefixCls:zt,size:Ot,disabled:hn,className:Pn,rootClassName:xn,multiple:lr,bordered:pr=!0,transitionName:qn,choiceTransitionName:pi="",popupClassName:ei,dropdownClassName:ni,expandIcon:$r,placement:fi,showSearch:ri,allowClear:Ki=!0,notFoundContent:Ma,direction:Ua,getPopupContainer:Xa,status:za,showArrow:lo,builtinPlacements:wa,style:Ka}=Ye,so=Qo(Ye,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Vi=(0,yl.Z)(so,["suffixIcon"]),{getPopupContainer:Xi,getPrefixCls:da,renderEmpty:So,direction:uo,popupOverflow:Eo,cascader:vo}=de.useContext(El.E_),Io=Ua||uo,Lo=Io==="rtl",{status:Fo,hasFeedback:Yo,isFormItemInput:jn,feedbackIcon:ai}=de.useContext(Lt.aM),ba=(0,il.F)(Fo,za),na=Ma||(So==null?void 0:So("Cascader"))||de.createElement(Al.Z,{componentName:"Cascader"}),Nr=da(),Ti=da("select",zt),Ni=da("cascader",zt),[ra,Ei]=(0,rn.Z)(Ti),[Ii]=ro(Ni),{compactSize:Ui,compactItemClassnames:Ba}=(0,ui.ri)(Ti,Ua),go=ue()(ei||ni,`${Ni}-dropdown`,{[`${Ni}-dropdown-rtl`]:Io==="rtl"},xn,Ei),yi=de.useMemo(()=>{if(!ri)return ri;let gs={render:Yi};return typeof ri=="object"&&(gs=Object.assign(Object.assign({},gs),ri)),gs},[ri]),co=(0,Ol.Z)(gs=>{var us;return(us=Ot!=null?Ot:Ui)!==null&&us!==void 0?us:gs}),Va=de.useContext(Bl.Z),ko=hn!=null?hn:Va;let Cl=$r;$r||(Cl=Lo?de.createElement(ke.Z,null):de.createElement(xe.Z,null));const Dl=de.createElement("span",{className:`${Ti}-menu-item-loading-icon`},de.createElement(Ge.Z,{spin:!0})),zl=de.useMemo(()=>lr?de.createElement("span",{className:`${Ni}-checkbox-inner`}):!1,[lr]),Hl=(0,Xn.Z)(Ye.suffixIcon,lo),{suffixIcon:Rl,removeIcon:Ts,clearIcon:ks}=(0,ta.Z)(Object.assign(Object.assign({},Ye),{hasFeedback:Yo,feedbackIcon:ai,showSuffixIcon:Hl,multiple:lr,prefixCls:Ti,componentName:"Cascader"})),Qs=de.useMemo(()=>fi!==void 0?fi:Lo?"bottomRight":"bottomLeft",[fi,Lo]),ps=(0,gn.Z)(wa,Eo),ql=Ki===!0?{clearIcon:ks}:Ki,Bs=de.createElement(Ya,Object.assign({prefixCls:Ti,className:ue()(!zt&&Ni,{[`${Ti}-lg`]:co==="large",[`${Ti}-sm`]:co==="small",[`${Ti}-rtl`]:Lo,[`${Ti}-borderless`]:!pr,[`${Ti}-in-form-item`]:jn},(0,il.Z)(Ti,ba,Yo),Ba,vo==null?void 0:vo.className,Pn,xn,Ei),disabled:ko,style:Object.assign(Object.assign({},vo==null?void 0:vo.style),Ka)},Vi,{builtinPlacements:ps,direction:Io,placement:Qs,notFoundContent:na,allowClear:ql,showSearch:yi,expandIcon:Cl,suffixIcon:Rl,removeIcon:Ts,loadingIcon:Dl,checkable:zl,dropdownClassName:go,dropdownPrefixCls:zt||Ni,choiceTransitionName:(0,Il.m)(Nr,"",pi),transitionName:(0,Il.m)(Nr,"slide-up",qn),getPopupContainer:Xa||Xi,ref:tt}));return Ii(ra(Bs))}),ki=(0,xl.Z)(Ai);Ai.SHOW_PARENT=xi,Ai.SHOW_CHILD=xo,Ai._InternalPanelDoNotUseOrYouWillBeFired=ki;var ya=Ai},84567:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return ze}});var ee=te(94184),de=te.n(ee),ke=te(95860),Ge=te(67294),xe=te(53124),Me=te(98866),ue=te(65223),fe=Ge.createContext(null),we=te(63185),Ue=te(45353),De=te(92429),Ke=function(We,st){var at={};for(var Ze in We)Object.prototype.hasOwnProperty.call(We,Ze)&&st.indexOf(Ze)<0&&(at[Ze]=We[Ze]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(We);Ae<Ze.length;Ae++)st.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(We,Ze[Ae])&&(at[Ze[Ae]]=We[Ze[Ae]]);return at};const rt=(We,st)=>{var at;const{prefixCls:Ze,className:Ae,rootClassName:mt,children:je,indeterminate:it=!1,style:qe,onMouseEnter:gt,onMouseLeave:Pt,skipGroup:Xt=!1,disabled:$e}=We,Be=Ke(We,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:Vt,checkbox:Rt}=Ge.useContext(xe.E_),ht=Ge.useContext(fe),{isFormItemInput:Bt}=Ge.useContext(ue.aM),_t=Ge.useContext(Me.Z),Fn=(at=(ht==null?void 0:ht.disabled)||$e)!==null&&at!==void 0?at:_t,kn=Ge.useRef(Be.value);Ge.useEffect(()=>{ht==null||ht.registerValue(Be.value)},[]),Ge.useEffect(()=>{if(!Xt)return Be.value!==kn.current&&(ht==null||ht.cancelValue(kn.current),ht==null||ht.registerValue(Be.value),kn.current=Be.value),()=>ht==null?void 0:ht.cancelValue(Be.value)},[Be.value]);const kt=St("checkbox",Ze),[un,Wn]=(0,we.ZP)(kt),An=Object.assign({},Be);ht&&!Xt&&(An.onChange=function(){Be.onChange&&Be.onChange.apply(Be,arguments),ht.toggleOption&&ht.toggleOption({label:je,value:Be.value})},An.name=ht.name,An.checked=ht.value.includes(Be.value));const Ie=de()(`${kt}-wrapper`,{[`${kt}-rtl`]:Vt==="rtl",[`${kt}-wrapper-checked`]:An.checked,[`${kt}-wrapper-disabled`]:Fn,[`${kt}-wrapper-in-form-item`]:Bt},Rt==null?void 0:Rt.className,Ae,mt,Wn),he=de()({[`${kt}-indeterminate`]:it},De.A,Wn),ce=it?"mixed":void 0;return un(Ge.createElement(Ue.Z,{component:"Checkbox",disabled:Fn},Ge.createElement("label",{className:Ie,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),qe),onMouseEnter:gt,onMouseLeave:Pt},Ge.createElement(ke.Z,Object.assign({"aria-checked":ce},An,{prefixCls:kt,className:he,disabled:Fn,ref:st})),je!==void 0&&Ge.createElement("span",null,je))))};var _e=Ge.forwardRef(rt),ge=te(74902),Ve=te(10366),lt=function(We,st){var at={};for(var Ze in We)Object.prototype.hasOwnProperty.call(We,Ze)&&st.indexOf(Ze)<0&&(at[Ze]=We[Ze]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(We);Ae<Ze.length;Ae++)st.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(We,Ze[Ae])&&(at[Ze[Ae]]=We[Ze[Ae]]);return at};const He=(We,st)=>{const{defaultValue:at,children:Ze,options:Ae=[],prefixCls:mt,className:je,rootClassName:it,style:qe,onChange:gt}=We,Pt=lt(We,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Xt,direction:$e}=Ge.useContext(xe.E_),[Be,St]=Ge.useState(Pt.value||at||[]),[Vt,Rt]=Ge.useState([]);Ge.useEffect(()=>{"value"in Pt&&St(Pt.value||[])},[Pt.value]);const ht=Ge.useMemo(()=>Ae.map(me=>typeof me=="string"||typeof me=="number"?{label:me,value:me}:me),[Ae]),Bt=me=>{Rt(pe=>pe.filter(le=>le!==me))},_t=me=>{Rt(pe=>[].concat((0,ge.Z)(pe),[me]))},Fn=me=>{const pe=Be.indexOf(me.value),le=(0,ge.Z)(Be);pe===-1?le.push(me.value):le.splice(pe,1),"value"in Pt||St(le),gt==null||gt(le.filter(Le=>Vt.includes(Le)).sort((Le,dt)=>{const Nt=ht.findIndex(an=>an.value===Le),tn=ht.findIndex(an=>an.value===dt);return Nt-tn}))},kn=Xt("checkbox",mt),kt=`${kn}-group`,[un,Wn]=(0,we.ZP)(kn),An=(0,Ve.Z)(Pt,["value","disabled"]),Ie=Ae.length?ht.map(me=>Ge.createElement(_e,{prefixCls:kn,key:me.value.toString(),disabled:"disabled"in me?me.disabled:Pt.disabled,value:me.value,checked:Be.includes(me.value),onChange:me.onChange,className:`${kt}-item`,style:me.style,title:me.title},me.label)):Ze,he={toggleOption:Fn,value:Be,disabled:Pt.disabled,name:Pt.name,registerValue:_t,cancelValue:Bt},ce=de()(kt,{[`${kt}-rtl`]:$e==="rtl"},je,it,Wn);return un(Ge.createElement("div",Object.assign({className:ce,style:qe},An,{ref:st}),Ge.createElement(fe.Provider,{value:he},Ie)))},Oe=Ge.forwardRef(He);var ve=Ge.memo(Oe);const ye=_e;ye.Group=ve,ye.__ANT_CHECKBOX=!0;var ze=ye},63185:function(vn,Tt,te){"use strict";te.d(Tt,{C2:function(){return xe}});var ee=te(14747),de=te(45503),ke=te(67968);const Ge=Me=>{const{checkboxCls:ue}=Me,Ee=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(Me)),{display:"inline-flex",flexWrap:"wrap",columnGap:Me.marginXS,[`> ${Me.antCls}-row`]:{flex:1}}),[Ee]:Object.assign(Object.assign({},(0,ee.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ee}`]:{marginInlineStart:0},[`&${Ee}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,ee.Wf)(Me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Me.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,ee.oN)(Me))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Me.checkboxSize,height:Me.checkboxSize,direction:"ltr",backgroundColor:Me.colorBgContainer,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,borderCollapse:"separate",transition:`all ${Me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Me.checkboxSize/14*5,height:Me.checkboxSize/14*8,border:`${Me.lineWidthBold}px solid ${Me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Me.motionDurationFast} ${Me.motionEaseInBack}, opacity ${Me.motionDurationFast}`}},"& + span":{paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS}})},{[`
${Ee}:not(${Ee}-disabled),
${ue}:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{borderColor:Me.colorPrimary}},[`${Ee}:not(${Ee}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Me.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Me.colorPrimary,borderColor:Me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Me.motionDurationMid} ${Me.motionEaseOutBack} ${Me.motionDurationFast}`}}},[`
${Ee}-checked:not(${Ee}-disabled),
${ue}-checked:not(${ue}-disabled)
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Me.colorBgContainer,borderColor:Me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Me.fontSizeLG/2,height:Me.fontSizeLG/2,backgroundColor:Me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ee}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,"&:after":{borderColor:Me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Me.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Me.colorTextDisabled}}}]};function xe(Me,ue){const Ee=(0,de.TS)(ue,{checkboxCls:`.${Me}`,checkboxSize:ue.controlInteractiveSize});return[Ge(Ee)]}Tt.ZP=(0,ke.Z)("Checkbox",(Me,ue)=>{let{prefixCls:Ee}=ue;return[xe(Ee,Me)]})},47221:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return An}});var ee=te(91034),de=te(94184),ke=te.n(de),Ge=te(97685),xe=te(74902),Me=te(71002),ue=te(21770),Ee=te(80334),fe=te(67294),we=te(87462),Ue=te(45987),De=te(50344),Ke=te(4942),rt=te(62874),Qe=te(15105),_e=fe.forwardRef(function(Ie,he){var ce,me=Ie.prefixCls,pe=Ie.forceRender,le=Ie.className,Le=Ie.style,dt=Ie.children,Nt=Ie.isActive,tn=Ie.role,an=fe.useState(Nt||pe),Yt=(0,Ge.Z)(an,2),dn=Yt[0],Mt=Yt[1];return fe.useEffect(function(){(pe||Nt)&&Mt(!0)},[pe,Nt]),dn?fe.createElement("div",{ref:he,className:ke()("".concat(me,"-content"),(ce={},(0,Ke.Z)(ce,"".concat(me,"-content-active"),Nt),(0,Ke.Z)(ce,"".concat(me,"-content-inactive"),!Nt),ce),le),style:Le,role:tn},fe.createElement("div",{className:"".concat(me,"-content-box")},dt)):null});_e.displayName="PanelContent";var ge=_e,Ve=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],lt=fe.forwardRef(function(Ie,he){var ce,me,pe=Ie.showArrow,le=pe===void 0?!0:pe,Le=Ie.headerClass,dt=Ie.isActive,Nt=Ie.onItemClick,tn=Ie.forceRender,an=Ie.className,Yt=Ie.prefixCls,dn=Ie.collapsible,Mt=Ie.accordion,Wt=Ie.panelKey,qt=Ie.extra,Gt=Ie.header,jt=Ie.expandIcon,sr=Ie.openMotion,Dt=Ie.destroyInactivePanel,Jt=Ie.children,Gn=(0,Ue.Z)(Ie,Ve),Bn=dn==="disabled",Sn=dn==="header",or=dn==="icon",gr=qt!=null&&typeof qt!="boolean",kr=function(){Nt==null||Nt(Wt)},Lr=function(Ur){(Ur.key==="Enter"||Ur.keyCode===Qe.Z.ENTER||Ur.which===Qe.Z.ENTER)&&kr()},Qr=typeof jt=="function"?jt(Ie):fe.createElement("i",{className:"arrow"});Qr&&(Qr=fe.createElement("div",{className:"".concat(Yt,"-expand-icon"),onClick:["header","icon"].includes(dn)?kr:void 0},Qr));var Ir=ke()((ce={},(0,Ke.Z)(ce,"".concat(Yt,"-item"),!0),(0,Ke.Z)(ce,"".concat(Yt,"-item-active"),dt),(0,Ke.Z)(ce,"".concat(Yt,"-item-disabled"),Bn),ce),an),Dn=ke()(Le,(me={},(0,Ke.Z)(me,"".concat(Yt,"-header"),!0),(0,Ke.Z)(me,"".concat(Yt,"-header-collapsible-only"),Sn),(0,Ke.Z)(me,"".concat(Yt,"-icon-collapsible-only"),or),me)),cr={className:Dn,"aria-expanded":dt,"aria-disabled":Bn,onKeyDown:Lr};return!Sn&&!or&&(cr.onClick=kr,cr.role=Mt?"tab":"button",cr.tabIndex=Bn?-1:0),fe.createElement("div",(0,we.Z)({},Gn,{ref:he,className:Ir}),fe.createElement("div",cr,le&&Qr,fe.createElement("span",{className:"".concat(Yt,"-header-text"),onClick:dn==="header"?kr:void 0},Gt),gr&&fe.createElement("div",{className:"".concat(Yt,"-extra")},qt)),fe.createElement(rt.Z,(0,we.Z)({visible:dt,leavedClassName:"".concat(Yt,"-content-hidden")},sr,{forceRender:tn,removeOnLeave:Dt}),function(vr,Ur){var ti=vr.className,Kt=vr.style;return fe.createElement(ge,{ref:Ur,prefixCls:Yt,className:ti,style:Kt,isActive:dt,forceRender:tn,role:Mt?"tabpanel":void 0},Jt)}))}),He=lt,Oe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ve=function(he,ce){var me=ce.prefixCls,pe=ce.accordion,le=ce.collapsible,Le=ce.destroyInactivePanel,dt=ce.onItemClick,Nt=ce.activeKey,tn=ce.openMotion,an=ce.expandIcon;return he.map(function(Yt,dn){var Mt=Yt.children,Wt=Yt.label,qt=Yt.key,Gt=Yt.collapsible,jt=Yt.onItemClick,sr=Yt.destroyInactivePanel,Dt=(0,Ue.Z)(Yt,Oe),Jt=String(qt!=null?qt:dn),Gn=Gt!=null?Gt:le,Bn=sr!=null?sr:Le,Sn=function(kr){Gn!=="disabled"&&(dt(kr),jt==null||jt(kr))},or=!1;return pe?or=Nt[0]===Jt:or=Nt.indexOf(Jt)>-1,fe.createElement(He,(0,we.Z)({},Dt,{prefixCls:me,key:Jt,panelKey:Jt,isActive:or,accordion:pe,openMotion:tn,expandIcon:an,header:Wt,collapsible:Gn,onItemClick:Sn,destroyInactivePanel:Bn}),Mt)})},ye=function(he,ce,me){if(!he)return null;var pe=me.prefixCls,le=me.accordion,Le=me.collapsible,dt=me.destroyInactivePanel,Nt=me.onItemClick,tn=me.activeKey,an=me.openMotion,Yt=me.expandIcon,dn=he.key||String(ce),Mt=he.props,Wt=Mt.header,qt=Mt.headerClass,Gt=Mt.destroyInactivePanel,jt=Mt.collapsible,sr=Mt.onItemClick,Dt=!1;le?Dt=tn[0]===dn:Dt=tn.indexOf(dn)>-1;var Jt=jt!=null?jt:Le,Gn=function(or){Jt!=="disabled"&&(Nt(or),sr==null||sr(or))},Bn={key:dn,panelKey:dn,header:Wt,headerClass:qt,isActive:Dt,prefixCls:pe,destroyInactivePanel:Gt!=null?Gt:dt,openMotion:an,accordion:le,children:he.props.children,onItemClick:Gn,expandIcon:Yt,collapsible:Jt};return typeof he.type=="string"?he:(Object.keys(Bn).forEach(function(Sn){typeof Bn[Sn]=="undefined"&&delete Bn[Sn]}),fe.cloneElement(he,Bn))};function ze(Ie,he,ce){return Array.isArray(Ie)?ve(Ie,ce):(0,De.Z)(he).map(function(me,pe){return ye(me,pe,ce)})}var We=ze;function st(Ie){var he=Ie;if(!Array.isArray(he)){var ce=(0,Me.Z)(he);he=ce==="number"||ce==="string"?[he]:[]}return he.map(function(me){return String(me)})}var at=fe.forwardRef(function(Ie,he){var ce=Ie.prefixCls,me=ce===void 0?"rc-collapse":ce,pe=Ie.destroyInactivePanel,le=pe===void 0?!1:pe,Le=Ie.style,dt=Ie.accordion,Nt=Ie.className,tn=Ie.children,an=Ie.collapsible,Yt=Ie.openMotion,dn=Ie.expandIcon,Mt=Ie.activeKey,Wt=Ie.defaultActiveKey,qt=Ie.onChange,Gt=Ie.items,jt=ke()(me,Nt),sr=(0,ue.Z)([],{value:Mt,onChange:function(gr){return qt==null?void 0:qt(gr)},defaultValue:Wt,postState:st}),Dt=(0,Ge.Z)(sr,2),Jt=Dt[0],Gn=Dt[1],Bn=function(gr){return Gn(function(){if(dt)return Jt[0]===gr?[]:[gr];var kr=Jt.indexOf(gr),Lr=kr>-1;return Lr?Jt.filter(function(Qr){return Qr!==gr}):[].concat((0,xe.Z)(Jt),[gr])})};(0,Ee.ZP)(!tn,"`children` will be removed in next major version. Please use `items` instead.");var Sn=We(Gt,tn,{prefixCls:me,accordion:dt,openMotion:Yt,expandIcon:dn,collapsible:an,destroyInactivePanel:le,onItemClick:Bn,activeKey:Jt});return fe.createElement("div",{ref:he,className:jt,style:Le,role:dt?"tablist":void 0},Sn)}),Ze=Object.assign(at,{Panel:He}),Ae=Ze,mt=Ze.Panel,je=te(37419),it=te(10366),qe=te(33603),gt=te(96159),Pt=te(53124),Xt=te(98675),Be=fe.forwardRef((Ie,he)=>{const{getPrefixCls:ce}=fe.useContext(Pt.E_),{prefixCls:me,className:pe,showArrow:le=!0}=Ie,Le=ce("collapse",me),dt=ke()({[`${Le}-no-arrow`]:!le},pe);return fe.createElement(Ae.Panel,Object.assign({ref:he},Ie,{prefixCls:Le,className:dt}))}),St=te(14747),Vt=te(33507),Rt=te(67968),ht=te(45503);const Bt=Ie=>{const{componentCls:he,contentBg:ce,padding:me,headerBg:pe,headerPadding:le,collapseHeaderPaddingSM:Le,collapseHeaderPaddingLG:dt,collapsePanelBorderRadius:Nt,lineWidth:tn,lineType:an,colorBorder:Yt,colorText:dn,colorTextHeading:Mt,colorTextDisabled:Wt,fontSize:qt,fontSizeLG:Gt,lineHeight:jt,marginSM:sr,paddingSM:Dt,paddingLG:Jt,paddingXS:Gn,motionDurationSlow:Bn,fontSizeIcon:Sn,contentPadding:or}=Ie,gr=`${tn}px ${an} ${Yt}`;return{[he]:Object.assign(Object.assign({},(0,St.Wf)(Ie)),{backgroundColor:pe,border:gr,borderBottom:0,borderRadius:`${Nt}px`,"&-rtl":{direction:"rtl"},[`& > ${he}-item`]:{borderBottom:gr,"&:last-child":{[`
&,
& > ${he}-header`]:{borderRadius:`0 0 ${Nt}px ${Nt}px`}},[`> ${he}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:le,color:Mt,lineHeight:jt,cursor:"pointer",transition:`all ${Bn}, visibility 0s`,[`> ${he}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${he}-expand-icon`]:{height:qt*jt,display:"flex",alignItems:"center",paddingInlineEnd:sr},[`${he}-arrow`]:Object.assign(Object.assign({},(0,St.Ro)()),{fontSize:Sn,svg:{transition:`transform ${Bn}`}}),[`${he}-header-text`]:{marginInlineEnd:"auto"}},[`${he}-header-collapsible-only`]:{cursor:"default",[`${he}-header-text`]:{flex:"none",cursor:"pointer"}},[`${he}-icon-collapsible-only`]:{cursor:"default",[`${he}-expand-icon`]:{cursor:"pointer"}}},[`${he}-content`]:{color:dn,backgroundColor:ce,borderTop:gr,[`& > ${he}-content-box`]:{padding:or},"&-hidden":{display:"none"}},"&-small":{[`> ${he}-item`]:{[`> ${he}-header`]:{padding:Le,paddingInlineStart:Gn,[`> ${he}-expand-icon`]:{marginInlineStart:Dt-Gn}},[`> ${he}-content > ${he}-content-box`]:{padding:Dt}}},"&-large":{[`> ${he}-item`]:{fontSize:Gt,[`> ${he}-header`]:{padding:dt,paddingInlineStart:me,[`> ${he}-expand-icon`]:{height:Gt*jt,marginInlineStart:Jt-me}},[`> ${he}-content > ${he}-content-box`]:{padding:Jt}}},[`${he}-item:last-child`]:{[`> ${he}-content`]:{borderRadius:`0 0 ${Nt}px ${Nt}px`}},[`& ${he}-item-disabled > ${he}-header`]:{"\n &,\n & > .arrow\n ":{color:Wt,cursor:"not-allowed"}},[`&${he}-icon-position-end`]:{[`& > ${he}-item`]:{[`> ${he}-header`]:{[`${he}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:sr}}}}})}},_t=Ie=>{const{componentCls:he}=Ie,ce=`> ${he}-item > ${he}-header ${he}-arrow svg`;return{[`${he}-rtl`]:{[ce]:{transform:"rotate(180deg)"}}}},Fn=Ie=>{const{componentCls:he,headerBg:ce,paddingXXS:me,colorBorder:pe}=Ie;return{[`${he}-borderless`]:{backgroundColor:ce,border:0,[`> ${he}-item`]:{borderBottom:`1px solid ${pe}`},[`
> ${he}-item:last-child,
> ${he}-item:last-child ${he}-header
`]:{borderRadius:0},[`> ${he}-item:last-child`]:{borderBottom:0},[`> ${he}-item > ${he}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${he}-item > ${he}-content > ${he}-content-box`]:{paddingTop:me}}}},kn=Ie=>{const{componentCls:he,paddingSM:ce}=Ie;return{[`${he}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${he}-item`]:{borderBottom:0,[`> ${he}-content`]:{backgroundColor:"transparent",border:0,[`> ${he}-content-box`]:{paddingBlock:ce}}}}}};var kt=(0,Rt.Z)("Collapse",Ie=>{const he=(0,ht.TS)(Ie,{collapseHeaderPaddingSM:`${Ie.paddingXS}px ${Ie.paddingSM}px`,collapseHeaderPaddingLG:`${Ie.padding}px ${Ie.paddingLG}px`,collapsePanelBorderRadius:Ie.borderRadiusLG});return[Bt(he),Fn(he),kn(he),_t(he),(0,Vt.Z)(he)]},Ie=>({headerPadding:`${Ie.paddingSM}px ${Ie.padding}px`,headerBg:Ie.colorFillAlter,contentPadding:`${Ie.padding}px 16px`,contentBg:Ie.colorBgContainer})),Wn=Object.assign(fe.forwardRef((Ie,he)=>{const{getPrefixCls:ce,direction:me,collapse:pe}=fe.useContext(Pt.E_),{prefixCls:le,className:Le,rootClassName:dt,style:Nt,bordered:tn=!0,ghost:an,size:Yt,expandIconPosition:dn="start",children:Mt,expandIcon:Wt}=Ie,qt=(0,Xt.Z)(gr=>{var kr;return(kr=Yt!=null?Yt:gr)!==null&&kr!==void 0?kr:"middle"}),Gt=ce("collapse",le),jt=ce(),[sr,Dt]=kt(Gt),Jt=fe.useMemo(()=>dn==="left"?"start":dn==="right"?"end":dn,[dn]),Gn=function(){let gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const kr=Wt?Wt(gr):fe.createElement(ee.Z,{rotate:gr.isActive?90:void 0});return(0,gt.Tm)(kr,()=>({className:ke()(kr.props.className,`${Gt}-arrow`)}))},Bn=ke()(`${Gt}-icon-position-${Jt}`,{[`${Gt}-borderless`]:!tn,[`${Gt}-rtl`]:me==="rtl",[`${Gt}-ghost`]:!!an,[`${Gt}-${qt}`]:qt!=="middle"},pe==null?void 0:pe.className,Le,dt,Dt),Sn=Object.assign(Object.assign({},(0,qe.Z)(jt)),{motionAppear:!1,leavedClassName:`${Gt}-content-hidden`}),or=fe.useMemo(()=>Mt?(0,je.Z)(Mt).map((gr,kr)=>{var Lr,Qr;if(!((Lr=gr.props)===null||Lr===void 0)&&Lr.disabled){const Ir=(Qr=gr.key)!==null&&Qr!==void 0?Qr:String(kr),{disabled:Dn,collapsible:cr}=gr.props,vr=Object.assign(Object.assign({},(0,it.Z)(gr.props,["disabled"])),{key:Ir,collapsible:cr!=null?cr:Dn?"disabled":void 0});return(0,gt.Tm)(gr,vr)}return gr}):null,[Mt]);return sr(fe.createElement(Ae,Object.assign({ref:he,openMotion:Sn},(0,it.Z)(Ie,["rootClassName"]),{expandIcon:Gn,prefixCls:Gt,className:Bn,style:Object.assign(Object.assign({},pe==null?void 0:pe.style),Nt)}),or))}),{Panel:Be}),An=Wn},88258:function(vn,Tt,te){"use strict";var ee=te(67294),de=te(53124),ke=te(32983);const Ge=xe=>{const{componentName:Me}=xe,{getPrefixCls:ue}=(0,ee.useContext)(de.E_),Ee=ue("empty");switch(Me){case"Table":case"List":return ee.createElement(ke.Z,{image:ke.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ee.createElement(ke.Z,{image:ke.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ee}-small`});default:return ee.createElement(ke.Z,null)}};Tt.Z=Ge},96074:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return De}});var ee=te(94184),de=te.n(ee),ke=te(67294),Ge=te(53124),xe=te(14747),Me=te(67968),ue=te(45503);const Ee=Ke=>{const{componentCls:rt,sizePaddingEdgeHorizontal:Qe,colorSplit:_e,lineWidth:ge,textPaddingInline:Ve,orientationMargin:lt,verticalMarginInline:He}=Ke;return{[rt]:Object.assign(Object.assign({},(0,xe.Wf)(Ke)),{borderBlockStart:`${ge}px solid ${_e}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:He,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ge}px solid ${_e}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ke.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${rt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ke.dividerHorizontalWithTextGutterMargin}px 0`,color:Ke.colorTextHeading,fontWeight:500,fontSize:Ke.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${_e}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ge}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${rt}-with-text-left`]:{"&::before":{width:`${lt*100}%`},"&::after":{width:`${100-lt*100}%`}},[`&-horizontal${rt}-with-text-right`]:{"&::before":{width:`${100-lt*100}%`},"&::after":{width:`${lt*100}%`}},[`${rt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Ve},"&-dashed":{background:"none",borderColor:_e,borderStyle:"dashed",borderWidth:`${ge}px 0 0`},[`&-horizontal${rt}-with-text${rt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${rt}-dashed`]:{borderInlineStartWidth:ge,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${rt}-with-text`]:{color:Ke.colorText,fontWeight:"normal",fontSize:Ke.fontSize},[`&-horizontal${rt}-with-text-left${rt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${rt}-inner-text`]:{paddingInlineStart:Qe}},[`&-horizontal${rt}-with-text-right${rt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${rt}-inner-text`]:{paddingInlineEnd:Qe}}})}};var fe=(0,Me.Z)("Divider",Ke=>{const rt=(0,ue.TS)(Ke,{dividerHorizontalWithTextGutterMargin:Ke.margin,dividerHorizontalGutterMargin:Ke.marginLG,sizePaddingEdgeHorizontal:0});return[Ee(rt)]},Ke=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ke.marginXS})),we=function(Ke,rt){var Qe={};for(var _e in Ke)Object.prototype.hasOwnProperty.call(Ke,_e)&&rt.indexOf(_e)<0&&(Qe[_e]=Ke[_e]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,_e=Object.getOwnPropertySymbols(Ke);ge<_e.length;ge++)rt.indexOf(_e[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ke,_e[ge])&&(Qe[_e[ge]]=Ke[_e[ge]]);return Qe},De=Ke=>{const{getPrefixCls:rt,direction:Qe,divider:_e}=ke.useContext(Ge.E_),{prefixCls:ge,type:Ve="horizontal",orientation:lt="center",orientationMargin:He,className:Oe,rootClassName:ve,children:ye,dashed:ze,plain:We,style:st}=Ke,at=we(Ke,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ze=rt("divider",ge),[Ae,mt]=fe(Ze),je=lt.length>0?`-${lt}`:lt,it=!!ye,qe=lt==="left"&&He!=null,gt=lt==="right"&&He!=null,Pt=de()(Ze,_e==null?void 0:_e.className,mt,`${Ze}-${Ve}`,{[`${Ze}-with-text`]:it,[`${Ze}-with-text${je}`]:it,[`${Ze}-dashed`]:!!ze,[`${Ze}-plain`]:!!We,[`${Ze}-rtl`]:Qe==="rtl",[`${Ze}-no-default-orientation-margin-left`]:qe,[`${Ze}-no-default-orientation-margin-right`]:gt},Oe,ve),Xt=ke.useMemo(()=>typeof He=="number"?He:/^\d+$/.test(He)?Number(He):He,[He]),$e=Object.assign(Object.assign({},qe&&{marginLeft:Xt}),gt&&{marginRight:Xt});return Ae(ke.createElement("div",Object.assign({className:Pt,style:Object.assign(Object.assign({},_e==null?void 0:_e.style),st)},at,{role:"separator"}),ye&&Ve!=="vertical"&&ke.createElement("span",{className:`${Ze}-inner-text`,style:$e},ye)))}},72565:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return io}});var ee=te(94184),de=te.n(ee),ke=te(1413),Ge=te(97685),xe=te(67294),Me=te(73935);function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ee={};function fe(wn,pn){}function we(wn,pn){}function Ue(){Ee={}}function De(wn,pn,ar){!pn&&!Ee[ar]&&(wn(!1,ar),Ee[ar]=!0)}function Ke(wn,pn){De(fe,wn,pn)}function rt(wn,pn){De(we,wn,pn)}var Qe=null,_e=te(71002),ge=te(18459);function Ve(wn,pn,ar){var tr=xe.useRef({});return(!("value"in tr.current)||ar(tr.current.condition,pn))&&(tr.current.value=wn(),tr.current.condition=pn),tr.current.value}function lt(wn,pn){typeof wn=="function"?wn(pn):(0,_e.Z)(wn)==="object"&&wn&&"current"in wn&&(wn.current=pn)}function He(){for(var wn=arguments.length,pn=new Array(wn),ar=0;ar<wn;ar++)pn[ar]=arguments[ar];var tr=pn.filter(function(Yr){return Yr});return tr.length<=1?tr[0]:function(Yr){pn.forEach(function($i){lt($i,Yr)})}}function Oe(){for(var wn=arguments.length,pn=new Array(wn),ar=0;ar<wn;ar++)pn[ar]=arguments[ar];return Ve(function(){return He.apply(void 0,pn)},pn,function(tr,Yr){return tr.length===Yr.length&&tr.every(function($i,ia){return $i===Yr[ia]})})}function ve(wn){var pn,ar,tr=(0,ge.isMemo)(wn)?wn.type.type:wn.type;return!(typeof tr=="function"&&!((pn=tr.prototype)!==null&&pn!==void 0&&pn.render)||typeof wn=="function"&&!((ar=wn.prototype)!==null&&ar!==void 0&&ar.render))}var ye=xe.createContext(null),ze=ye,We=te(74902),st=ue()?xe.useLayoutEffect:xe.useEffect,at=st,Ze=function(pn,ar){var tr=React.useRef(!0);st(function(){if(!tr.current)return pn()},ar),st(function(){return tr.current=!1,function(){tr.current=!0}},[])},Ae=[];function mt(wn,pn){var ar=xe.useState(function(){if(!ue())return null;var ir=document.createElement("div");return ir}),tr=(0,Ge.Z)(ar,1),Yr=tr[0],$i=xe.useRef(!1),ia=xe.useContext(ze),sa=xe.useState(Ae),ka=(0,Ge.Z)(sa,2),ga=ka[0],ho=ka[1],ao=ia||($i.current?void 0:function(ir){ho(function(Sr){var Ce=[ir].concat((0,We.Z)(Sr));return Ce})});function mo(){Yr.parentElement||document.body.appendChild(Yr),$i.current=!0}function Un(){var ir;(ir=Yr.parentElement)===null||ir===void 0||ir.removeChild(Yr),$i.current=!1}return at(function(){return wn?ia?ia(mo):mo():Un(),Un},[wn]),at(function(){ga.length&&(ga.forEach(function(ir){return ir()}),ho(Ae))},[ga]),[Yr,ao]}function je(wn,pn){if(!wn)return!1;if(wn.contains)return wn.contains(pn);for(var ar=pn;ar;){if(ar===wn)return!0;ar=ar.parentNode}return!1}var it="data-rc-order",qe="rc-util-key",gt=new Map;function Pt(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pn=wn.mark;return pn?pn.startsWith("data-")?pn:"data-".concat(pn):qe}function Xt(wn){if(wn.attachTo)return wn.attachTo;var pn=document.querySelector("head");return pn||document.body}function $e(wn){return wn==="queue"?"prependQueue":wn?"prepend":"append"}function Be(wn){return Array.from((gt.get(wn)||wn).children).filter(function(pn){return pn.tagName==="STYLE"})}function St(wn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ue())return null;var ar=pn.csp,tr=pn.prepend,Yr=document.createElement("style");Yr.setAttribute(it,$e(tr)),ar!=null&&ar.nonce&&(Yr.nonce=ar==null?void 0:ar.nonce),Yr.innerHTML=wn;var $i=Xt(pn),ia=$i.firstChild;if(tr){if(tr==="queue"){var sa=Be($i).filter(function(ka){return["prepend","prependQueue"].includes(ka.getAttribute(it))});if(sa.length)return $i.insertBefore(Yr,sa[sa.length-1].nextSibling),Yr}$i.insertBefore(Yr,ia)}else $i.appendChild(Yr);return Yr}function Vt(wn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ar=Xt(pn);return Be(ar).find(function(tr){return tr.getAttribute(Pt(pn))===wn})}function Rt(wn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ar=Vt(wn,pn);if(ar){var tr=Xt(pn);tr.removeChild(ar)}}function ht(wn,pn){var ar=gt.get(wn);if(!ar||!je(document,ar)){var tr=St("",pn),Yr=tr.parentNode;gt.set(wn,Yr),wn.removeChild(tr)}}function Bt(){gt.clear()}function _t(wn,pn){var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tr=Xt(ar);ht(tr,ar);var Yr=Vt(pn,ar);if(Yr){var $i,ia;if(($i=ar.csp)!==null&&$i!==void 0&&$i.nonce&&Yr.nonce!==((ia=ar.csp)===null||ia===void 0?void 0:ia.nonce)){var sa;Yr.nonce=(sa=ar.csp)===null||sa===void 0?void 0:sa.nonce}return Yr.innerHTML!==wn&&(Yr.innerHTML=wn),Yr}var ka=St(wn,ar);return ka.setAttribute(Pt(ar),pn),ka}var Fn;function kn(wn){if(typeof document=="undefined")return 0;if(wn||Fn===void 0){var pn=document.createElement("div");pn.style.width="100%",pn.style.height="200px";var ar=document.createElement("div"),tr=ar.style;tr.position="absolute",tr.top="0",tr.left="0",tr.pointerEvents="none",tr.visibility="hidden",tr.width="200px",tr.height="150px",tr.overflow="hidden",ar.appendChild(pn),document.body.appendChild(ar);var Yr=pn.offsetWidth;ar.style.overflow="scroll";var $i=pn.offsetWidth;Yr===$i&&($i=ar.clientWidth),document.body.removeChild(ar),Fn=Yr-$i}return Fn}function kt(wn){var pn=wn.match(/^(.*)px$/),ar=Number(pn==null?void 0:pn[1]);return Number.isNaN(ar)?kn():ar}function un(wn){if(typeof document=="undefined"||!wn||!(wn instanceof Element))return{width:0,height:0};var pn=getComputedStyle(wn,"::-webkit-scrollbar"),ar=pn.width,tr=pn.height;return{width:kt(ar),height:kt(tr)}}function Wn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var An="rc-util-locker-".concat(Date.now()),Ie=0;function he(wn){var pn=!!wn,ar=xe.useState(function(){return Ie+=1,"".concat(An,"_").concat(Ie)}),tr=(0,Ge.Z)(ar,1),Yr=tr[0];at(function(){if(pn){var $i=un(document.body).width,ia=Wn();_t(`
html body {
overflow-y: hidden;
`.concat(ia?"width: calc(100% - ".concat($i,"px);"):"",`
}`),Yr)}else Rt(Yr);return function(){Rt(Yr)}},[pn,Yr])}var ce=!1;function me(wn){return typeof wn=="boolean"&&(ce=wn),ce}var pe=function(pn){return pn===!1?!1:!ue()||!pn?null:typeof pn=="string"?document.querySelector(pn):typeof pn=="function"?pn():pn},le=xe.forwardRef(function(wn,pn){var ar=wn.open,tr=wn.autoLock,Yr=wn.getContainer,$i=wn.debug,ia=wn.autoDestroy,sa=ia===void 0?!0:ia,ka=wn.children,ga=xe.useState(ar),ho=(0,Ge.Z)(ga,2),ao=ho[0],mo=ho[1],Un=ao||ar;xe.useEffect(function(){(sa||ar)&&mo(ar)},[ar,sa]);var ir=xe.useState(function(){return pe(Yr)}),Sr=(0,Ge.Z)(ir,2),Ce=Sr[0],Xe=Sr[1];xe.useEffect(function(){var Qn=pe(Yr);Xe(Qn!=null?Qn:null)});var nt=mt(Un&&!Ce,$i),ut=(0,Ge.Z)(nt,2),ft=ut[0],Ct=ut[1],wt=Ce!=null?Ce:ft;he(tr&&ar&&ue()&&(wt===ft||wt===document.body));var sn=null;if(ka&&ve(ka)&&pn){var En=ka;sn=En.ref}var ur=Oe(sn,pn);if(!Un||!ue()||Ce===void 0)return null;var yr=wt===!1||me(),fr=ka;return pn&&(fr=xe.cloneElement(ka,{ref:ur})),xe.createElement(ze.Provider,{value:Ct},yr?fr:(0,Me.createPortal)(fr,wt))}),Le=le,dt=Le;function Nt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tn=Nt()?xe.useLayoutEffect:xe.useEffect,an=function(pn,ar){var tr=xe.useRef(!0);tn(function(){return pn(tr.current)},ar),tn(function(){return tr.current=!1,function(){tr.current=!0}},[])},Yt=function(pn,ar){an(function(tr){if(!tr)return pn()},ar)},dn=an,Mt=xe.createContext(null),Wt=xe.createContext({}),qt=Mt,Gt=te(4942),jt=te(87462),sr=te(62874),Dt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(pn){var ar=pn.keyCode;if(pn.altKey&&!pn.ctrlKey||pn.metaKey||ar>=Dt.F1&&ar<=Dt.F12)return!1;switch(ar){case Dt.ALT:case Dt.CAPS_LOCK:case Dt.CONTEXT_MENU:case Dt.CTRL:case Dt.DOWN:case Dt.END:case Dt.ESC:case Dt.HOME:case Dt.INSERT:case Dt.LEFT:case Dt.MAC_FF_META:case Dt.META:case Dt.NUMLOCK:case Dt.NUM_CENTER:case Dt.PAGE_DOWN:case Dt.PAGE_UP:case Dt.PAUSE:case Dt.PRINT_SCREEN:case Dt.RIGHT:case Dt.SHIFT:case Dt.UP:case Dt.WIN_KEY:case Dt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(pn){if(pn>=Dt.ZERO&&pn<=Dt.NINE||pn>=Dt.NUM_ZERO&&pn<=Dt.NUM_MULTIPLY||pn>=Dt.A&&pn<=Dt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&pn===0)return!0;switch(pn){case Dt.SPACE:case Dt.QUESTION_MARK:case Dt.NUM_PLUS:case Dt.NUM_MINUS:case Dt.NUM_PERIOD:case Dt.NUM_DIVISION:case Dt.SEMICOLON:case Dt.DASH:case Dt.EQUALS:case Dt.COMMA:case Dt.PERIOD:case Dt.SLASH:case Dt.APOSTROPHE:case Dt.SINGLE_QUOTE:case Dt.OPEN_SQUARE_BRACKET:case Dt.BACKSLASH:case Dt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Jt=Dt,Gn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Bn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Sn="".concat(Gn," ").concat(Bn).split(/[\s\n]+/),or="aria-",gr="data-";function kr(wn,pn){return wn.indexOf(pn)===0}function Lr(wn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ar;pn===!1?ar={aria:!0,data:!0,attr:!0}:pn===!0?ar={aria:!0}:ar=(0,ke.Z)({},pn);var tr={};return Object.keys(wn).forEach(function(Yr){(ar.aria&&(Yr==="role"||kr(Yr,or))||ar.data&&kr(Yr,gr)||ar.attr&&Sn.includes(Yr))&&(tr[Yr]=wn[Yr])}),tr}function Qr(wn){var pn=React.useRef();pn.current=wn;var ar=React.useCallback(function(){for(var tr,Yr=arguments.length,$i=new Array(Yr),ia=0;ia<Yr;ia++)$i[ia]=arguments[ia];return(tr=pn.current)===null||tr===void 0?void 0:tr.call.apply(tr,[pn].concat($i))},[]);return ar}function Ir(wn){var pn=React.useRef(!1),ar=React.useState(wn),tr=_slicedToArray(ar,2),Yr=tr[0],$i=tr[1];React.useEffect(function(){return pn.current=!1,function(){pn.current=!0}},[]);function ia(sa,ka){ka&&pn.current||$i(sa)}return[Yr,ia]}function Dn(wn){return wn!==void 0}function cr(wn,pn){var ar=pn||{},tr=ar.defaultValue,Yr=ar.value,$i=ar.onChange,ia=ar.postState,sa=useState(function(){return Dn(Yr)?Yr:Dn(tr)?typeof tr=="function"?tr():tr:typeof wn=="function"?wn():wn}),ka=_slicedToArray(sa,2),ga=ka[0],ho=ka[1],ao=Yr!==void 0?Yr:ga,mo=ia?ia(ao):ao,Un=useEvent($i),ir=useState([ao]),Sr=_slicedToArray(ir,2),Ce=Sr[0],Xe=Sr[1];useLayoutUpdateEffect(function(){var ut=Ce[0];ga!==ut&&Un(ga,ut)},[Ce]),useLayoutUpdateEffect(function(){Dn(Yr)||ho(Yr)},[Yr]);var nt=useEvent(function(ut,ft){ho(ut,ft),Xe([ao],ft)});return[mo,nt]}var vr=te(33993);function Ur(wn,pn,ar){var tr=xe.useRef({});return(!("value"in tr.current)||ar(tr.current.condition,pn))&&(tr.current.value=wn(),tr.current.condition=pn),tr.current.value}function ti(wn,pn){typeof wn=="function"?wn(pn):(0,_e.Z)(wn)==="object"&&wn&&"current"in wn&&(wn.current=pn)}function Kt(){for(var wn=arguments.length,pn=new Array(wn),ar=0;ar<wn;ar++)pn[ar]=arguments[ar];var tr=pn.filter(function(Yr){return Yr});return tr.length<=1?tr[0]:function(Yr){pn.forEach(function($i){ti($i,Yr)})}}function _n(){for(var wn=arguments.length,pn=new Array(wn),ar=0;ar<wn;ar++)pn[ar]=arguments[ar];return Ur(function(){return Kt.apply(void 0,pn)},pn,function(tr,Yr){return tr.length!==Yr.length||tr.every(function($i,ia){return $i!==Yr[ia]})})}function nn(wn){var pn,ar,tr=isMemo(wn)?wn.type.type:wn.type;return!(typeof tr=="function"&&!((pn=tr.prototype)!==null&&pn!==void 0&&pn.render)||typeof wn=="function"&&!((ar=wn.prototype)!==null&&ar!==void 0&&ar.render))}function In(wn){return!isValidElement(wn)||isFragment(wn)?!1:nn(wn)}function nr(wn,pn,ar,tr){if(!pn.length)return ar;var Yr=_toArray(pn),$i=Yr[0],ia=Yr.slice(1),sa;return!wn&&typeof $i=="number"?sa=[]:Array.isArray(wn)?sa=_toConsumableArray(wn):sa=_objectSpread({},wn),tr&&ar===void 0&&ia.length===1?delete sa[$i][ia[0]]:sa[$i]=nr(sa[$i],ia,ar,tr),sa}function Rr(wn,pn,ar){var tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return pn.length&&tr&&ar===void 0&&!get(wn,pn.slice(0,-1))?wn:nr(wn,pn,ar,tr)}function Pr(wn){return _typeof(wn)==="object"&&wn!==null&&Object.getPrototypeOf(wn)===Object.prototype}function br(wn){return Array.isArray(wn)?[]:{}}var xt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function $t(){for(var wn=arguments.length,pn=new Array(wn),ar=0;ar<wn;ar++)pn[ar]=arguments[ar];var tr=br(pn[0]);return pn.forEach(function(Yr){function $i(ia,sa){var ka=new Set(sa),ga=get(Yr,ia),ho=Array.isArray(ga);if(ho||Pr(ga)){if(!ka.has(ga)){ka.add(ga);var ao=get(tr,ia);ho?tr=Rr(tr,ia,[]):(!ao||_typeof(ao)!=="object")&&(tr=Rr(tr,ia,br(ga))),xt(ga).forEach(function(mo){$i([].concat(_toConsumableArray(ia),[mo]),ka)})}}else tr=Rr(tr,ia,ga)}$i([])}),tr}var fn={},Mn=[],yt=function(pn){Mn.push(pn)};function Ut(wn,pn){if(0)var ar}function Cn(wn,pn){if(0)var ar}function cn(){fn={}}function zn(wn,pn,ar){!pn&&!fn[ar]&&(wn(!1,ar),fn[ar]=!0)}function Hn(wn,pn){zn(Ut,wn,pn)}function Mr(wn,pn){zn(Cn,wn,pn)}Hn.preMessage=yt,Hn.resetWarned=cn,Hn.noteOnce=Mr;var gi=Hn,Xr=function(pn){var ar=pn.prefixCls,tr=pn.className,Yr=pn.style,$i=pn.children,ia=pn.containerRef,sa=pn.id,ka=pn.onMouseEnter,ga=pn.onMouseOver,ho=pn.onMouseLeave,ao=pn.onClick,mo=pn.onKeyDown,Un=pn.onKeyUp,ir={onMouseEnter:ka,onMouseOver:ga,onMouseLeave:ho,onClick:ao,onKeyDown:mo,onKeyUp:Un},Sr=xe.useContext(Wt),Ce=Sr.panel,Xe=_n(Ce,ia);return xe.createElement(xe.Fragment,null,xe.createElement("div",(0,jt.Z)({id:sa,className:de()("".concat(ar,"-content"),tr),style:(0,ke.Z)({},Yr),"aria-modal":"true",role:"dialog",ref:Xe},ir),$i))},Gr=Xr;function di(wn){return typeof wn=="string"&&String(Number(wn))===wn?(gi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(wn)):wn}function ci(wn){warning(!("wrapperClassName"in wn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!wn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Si={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Jn(wn,pn){var ar,tr,Yr,$i,ia=wn.prefixCls,sa=wn.open,ka=wn.placement,ga=wn.inline,ho=wn.push,ao=wn.forceRender,mo=wn.autoFocus,Un=wn.keyboard,ir=wn.rootClassName,Sr=wn.rootStyle,Ce=wn.zIndex,Xe=wn.className,nt=wn.id,ut=wn.style,ft=wn.motion,Ct=wn.width,wt=wn.height,sn=wn.children,En=wn.contentWrapperStyle,ur=wn.mask,yr=wn.maskClosable,fr=wn.maskMotion,Qn=wn.maskClassName,Yn=wn.maskStyle,On=wn.afterOpenChange,hr=wn.onClose,zr=wn.onMouseEnter,Er=wn.onMouseOver,wr=wn.onMouseLeave,Br=wn.onClick,Or=wn.onKeyDown,Wr=wn.onKeyUp,pt=xe.useRef(),vt=xe.useRef(),mn=xe.useRef();xe.useImperativeHandle(pn,function(){return pt.current});var ln=function(li){var Mi=li.keyCode,si=li.shiftKey;switch(Mi){case Jt.TAB:{if(Mi===Jt.TAB){if(!si&&document.activeElement===mn.current){var Kr;(Kr=vt.current)===null||Kr===void 0||Kr.focus({preventScroll:!0})}else if(si&&document.activeElement===vt.current){var Wi;(Wi=mn.current)===null||Wi===void 0||Wi.focus({preventScroll:!0})}}break}case Jt.ESC:{hr&&Un&&(li.stopPropagation(),hr(li));break}}};xe.useEffect(function(){if(sa&&mo){var Vr;(Vr=pt.current)===null||Vr===void 0||Vr.focus({preventScroll:!0})}},[sa]);var $n=xe.useState(!1),mr=(0,Ge.Z)($n,2),Ft=mr[0],It=mr[1],Ht=xe.useContext(qt),on;ho===!1?on={distance:0}:ho===!0?on={}:on=ho||{};var Vn=(ar=(tr=(Yr=on)===null||Yr===void 0?void 0:Yr.distance)!==null&&tr!==void 0?tr:Ht==null?void 0:Ht.pushDistance)!==null&&ar!==void 0?ar:180,dr=xe.useMemo(function(){return{pushDistance:Vn,push:function(){It(!0)},pull:function(){It(!1)}}},[Vn]);xe.useEffect(function(){if(sa){var Vr;Ht==null||(Vr=Ht.push)===null||Vr===void 0||Vr.call(Ht)}else{var li;Ht==null||(li=Ht.pull)===null||li===void 0||li.call(Ht)}},[sa]),xe.useEffect(function(){return function(){var Vr;Ht==null||(Vr=Ht.pull)===null||Vr===void 0||Vr.call(Ht)}},[]);var Kn=ur&&xe.createElement(sr.Z,(0,jt.Z)({key:"mask"},fr,{visible:sa}),function(Vr,li){var Mi=Vr.className,si=Vr.style;return xe.createElement("div",{className:de()("".concat(ia,"-mask"),Mi,Qn),style:(0,ke.Z)((0,ke.Z)({},si),Yn),onClick:yr&&sa?hr:void 0,ref:li})}),rr=typeof ft=="function"?ft(ka):ft,Fr={};if(Ft&&Vn)switch(ka){case"top":Fr.transform="translateY(".concat(Vn,"px)");break;case"bottom":Fr.transform="translateY(".concat(-Vn,"px)");break;case"left":Fr.transform="translateX(".concat(Vn,"px)");break;default:Fr.transform="translateX(".concat(-Vn,"px)");break}ka==="left"||ka==="right"?Fr.width=di(Ct):Fr.height=di(wt);var ii={onMouseEnter:zr,onMouseOver:Er,onMouseLeave:wr,onClick:Br,onKeyDown:Or,onKeyUp:Wr},Zr=xe.createElement(sr.Z,(0,jt.Z)({key:"panel"},rr,{visible:sa,forceRender:ao,onVisibleChanged:function(li){On==null||On(li)},removeOnLeave:!1,leavedClassName:"".concat(ia,"-content-wrapper-hidden")}),function(Vr,li){var Mi=Vr.className,si=Vr.style;return xe.createElement("div",(0,jt.Z)({className:de()("".concat(ia,"-content-wrapper"),Mi),style:(0,ke.Z)((0,ke.Z)((0,ke.Z)({},Fr),si),En)},Lr(wn,{data:!0})),xe.createElement(Gr,(0,jt.Z)({id:nt,containerRef:li,prefixCls:ia,className:Xe,style:ut},ii),sn))}),Ar=(0,ke.Z)({},Sr);return Ce&&(Ar.zIndex=Ce),xe.createElement(qt.Provider,{value:dr},xe.createElement("div",{className:de()(ia,"".concat(ia,"-").concat(ka),ir,($i={},(0,Gt.Z)($i,"".concat(ia,"-open"),sa),(0,Gt.Z)($i,"".concat(ia,"-inline"),ga),$i)),style:Ar,tabIndex:-1,ref:pt,onKeyDown:ln},Kn,xe.createElement("div",{tabIndex:0,ref:vt,style:Si,"aria-hidden":"true","data-sentinel":"start"}),Zr,xe.createElement("div",{tabIndex:0,ref:mn,style:Si,"aria-hidden":"true","data-sentinel":"end"})))}var Jr=xe.forwardRef(Jn),Oa=Jr,Qa=function(pn){var ar=pn.open,tr=ar===void 0?!1:ar,Yr=pn.prefixCls,$i=Yr===void 0?"rc-drawer":Yr,ia=pn.placement,sa=ia===void 0?"right":ia,ka=pn.autoFocus,ga=ka===void 0?!0:ka,ho=pn.keyboard,ao=ho===void 0?!0:ho,mo=pn.width,Un=mo===void 0?378:mo,ir=pn.mask,Sr=ir===void 0?!0:ir,Ce=pn.maskClosable,Xe=Ce===void 0?!0:Ce,nt=pn.getContainer,ut=pn.forceRender,ft=pn.afterOpenChange,Ct=pn.destroyOnClose,wt=pn.onMouseEnter,sn=pn.onMouseOver,En=pn.onMouseLeave,ur=pn.onClick,yr=pn.onKeyDown,fr=pn.onKeyUp,Qn=pn.panelRef,Yn=xe.useState(!1),On=(0,Ge.Z)(Yn,2),hr=On[0],zr=On[1],Er=xe.useState(!1),wr=(0,Ge.Z)(Er,2),Br=wr[0],Or=wr[1];dn(function(){Or(!0)},[]);var Wr=Br?tr:!1,pt=xe.useRef(),vt=xe.useRef();dn(function(){Wr&&(vt.current=document.activeElement)},[Wr]);var mn=function(It){var Ht;if(zr(It),ft==null||ft(It),!It&&vt.current&&!((Ht=pt.current)!==null&&Ht!==void 0&&Ht.contains(vt.current))){var on;(on=vt.current)===null||on===void 0||on.focus({preventScroll:!0})}},ln=xe.useMemo(function(){return{panel:Qn}},[Qn]);if(!ut&&!hr&&!Wr&&Ct)return null;var $n={onMouseEnter:wt,onMouseOver:sn,onMouseLeave:En,onClick:ur,onKeyDown:yr,onKeyUp:fr},mr=(0,ke.Z)((0,ke.Z)({},pn),{},{open:Wr,prefixCls:$i,placement:sa,autoFocus:ga,keyboard:ao,width:Un,mask:Sr,maskClosable:Xe,inline:nt===!1,afterOpenChange:mn,ref:pt},$n);return xe.createElement(Wt.Provider,{value:ln},xe.createElement(dt,{open:Wr||ut||hr,autoDestroy:!1,getContainer:nt,autoLock:Sr&&(Wr||hr)},xe.createElement(Oa,mr)))},Li=Qa,qi=Li,$a=te(33603),zi=te(53124),to=te(65223),_r=te(69760),_o=wn=>{const{prefixCls:pn,title:ar,footer:tr,extra:Yr,closeIcon:$i,closable:ia,onClose:sa,headerStyle:ka,drawerStyle:ga,bodyStyle:ho,footerStyle:ao,children:mo}=wn,Un=xe.useCallback(nt=>xe.createElement("button",{type:"button",onClick:sa,"aria-label":"Close",className:`${pn}-close`},nt),[sa]),[ir,Sr]=(0,_r.Z)(ia,$i,Un,void 0,!0),Ce=xe.useMemo(()=>!ar&&!ir?null:xe.createElement("div",{style:ka,className:de()(`${pn}-header`,{[`${pn}-header-close-only`]:ir&&!ar&&!Yr})},xe.createElement("div",{className:`${pn}-header-title`},Sr,ar&&xe.createElement("div",{className:`${pn}-title`},ar)),Yr&&xe.createElement("div",{className:`${pn}-extra`},Yr)),[ir,Sr,Yr,ka,pn,ar]),Xe=xe.useMemo(()=>{if(!tr)return null;const nt=`${pn}-footer`;return xe.createElement("div",{className:nt,style:ao},tr)},[tr,ao,pn]);return xe.createElement("div",{className:`${pn}-wrapper-body`,style:ga},Ce,xe.createElement("div",{className:`${pn}-body`,style:ho},mo),Xe)},bl=te(4173),jo=te(67968),Po=te(45503),el=wn=>{const{componentCls:pn,motionDurationSlow:ar}=wn,tr={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ar}`}}};return{[pn]:{[`${pn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ar}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${pn}-panel-motion`]:{"&-left":[tr,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[tr,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[tr,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[tr,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const No=wn=>{const{componentCls:pn,zIndexPopup:ar,colorBgMask:tr,colorBgElevated:Yr,motionDurationSlow:$i,motionDurationMid:ia,padding:sa,paddingLG:ka,fontSizeLG:ga,lineHeightLG:ho,lineWidth:ao,lineType:mo,colorSplit:Un,marginSM:ir,colorIcon:Sr,colorIconHover:Ce,colorText:Xe,fontWeightStrong:nt,footerPaddingBlock:ut,footerPaddingInline:ft}=wn,Ct=`${pn}-content-wrapper`;return{[pn]:{position:"fixed",inset:0,zIndex:ar,pointerEvents:"none","&-pure":{position:"relative",background:Yr,[`&${pn}-left`]:{boxShadow:wn.boxShadowDrawerLeft},[`&${pn}-right`]:{boxShadow:wn.boxShadowDrawerRight},[`&${pn}-top`]:{boxShadow:wn.boxShadowDrawerUp},[`&${pn}-bottom`]:{boxShadow:wn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${pn}-mask`]:{position:"absolute",inset:0,zIndex:ar,background:tr,pointerEvents:"auto"},[Ct]:{position:"absolute",zIndex:ar,maxWidth:"100vw",transition:`all ${$i}`,"&-hidden":{display:"none"}},[`&-left > ${Ct}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:wn.boxShadowDrawerLeft},[`&-right > ${Ct}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:wn.boxShadowDrawerRight},[`&-top > ${Ct}`]:{top:0,insetInline:0,boxShadow:wn.boxShadowDrawerUp},[`&-bottom > ${Ct}`]:{bottom:0,insetInline:0,boxShadow:wn.boxShadowDrawerDown},[`${pn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Yr,pointerEvents:"auto"},[`${pn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${pn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${sa}px ${ka}px`,fontSize:ga,lineHeight:ho,borderBottom:`${ao}px ${mo} ${Un}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${pn}-extra`]:{flex:"none"},[`${pn}-close`]:{display:"inline-block",marginInlineEnd:ir,color:Sr,fontWeight:nt,fontSize:ga,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ia}`,textRendering:"auto","&:focus, &:hover":{color:Ce,textDecoration:"none"}},[`${pn}-title`]:{flex:1,margin:0,color:Xe,fontWeight:wn.fontWeightStrong,fontSize:ga,lineHeight:ho},[`${pn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ka,overflow:"auto"},[`${pn}-footer`]:{flexShrink:0,padding:`${ut}px ${ft}px`,borderTop:`${ao}px ${mo} ${Un}`},"&-rtl":{direction:"rtl"}}}};var rl=(0,jo.Z)("Drawer",wn=>{const pn=(0,Po.TS)(wn,{});return[No(pn),el(pn)]},wn=>({zIndexPopup:wn.zIndexPopupBase,footerPaddingBlock:wn.paddingXS,footerPaddingInline:wn.padding})),vl=te(16569),ll=function(wn,pn){var ar={};for(var tr in wn)Object.prototype.hasOwnProperty.call(wn,tr)&&pn.indexOf(tr)<0&&(ar[tr]=wn[tr]);if(wn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yr=0,tr=Object.getOwnPropertySymbols(wn);Yr<tr.length;Yr++)pn.indexOf(tr[Yr])<0&&Object.prototype.propertyIsEnumerable.call(wn,tr[Yr])&&(ar[tr[Yr]]=wn[tr[Yr]]);return ar};const Uo=null,gl={distance:180},wl=wn=>{var pn;const{rootClassName:ar,width:tr,height:Yr,size:$i="default",mask:ia=!0,push:sa=gl,open:ka,afterOpenChange:ga,onClose:ho,prefixCls:ao,getContainer:mo,style:Un,className:ir,visible:Sr,afterVisibleChange:Ce}=wn,Xe=ll(wn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:nt,getPrefixCls:ut,direction:ft,drawer:Ct}=xe.useContext(zi.E_),wt=ut("drawer",ao),[sn,En]=rl(wt),ur=mo===void 0&&nt?()=>nt(document.body):mo,yr=de()({"no-mask":!ia,[`${wt}-rtl`]:ft==="rtl"},ar,En),fr=xe.useMemo(()=>tr!=null?tr:$i==="large"?736:378,[tr,$i]),Qn=xe.useMemo(()=>Yr!=null?Yr:$i==="large"?736:378,[Yr,$i]),Yn={motionName:(0,$a.m)(wt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},On=zr=>({motionName:(0,$a.m)(wt,`panel-motion-${zr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),hr=(0,vl.H)();return sn(xe.createElement(bl.BR,null,xe.createElement(to.Ux,{status:!0,override:!0},xe.createElement(qi,Object.assign({prefixCls:wt,onClose:ho,maskMotion:Yn,motion:On},Xe,{open:ka!=null?ka:Sr,mask:ia,push:sa,width:fr,height:Qn,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Un),className:de()(Ct==null?void 0:Ct.className,ir),rootClassName:yr,getContainer:ur,afterOpenChange:ga!=null?ga:Ce,panelRef:hr}),xe.createElement(_o,Object.assign({prefixCls:wt},Xe,{onClose:ho}))))))},dl=wn=>{const{prefixCls:pn,style:ar,className:tr,placement:Yr="right"}=wn,$i=ll(wn,["prefixCls","style","className","placement"]),{getPrefixCls:ia}=xe.useContext(zi.E_),sa=ia("drawer",pn),[ka,ga]=rl(sa),ho=de()(sa,`${sa}-pure`,`${sa}-${Yr}`,ga,tr);return ka(xe.createElement("div",{className:ho,style:ar},xe.createElement(_o,Object.assign({prefixCls:sa},$i))))};wl._InternalPanelDoNotUseOrYouWillBeFired=dl;var io=wl},35874:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return pe}});var ee=te(67294),de=te(91034),ke=te(94184),Ge=te.n(ke),xe=te(87462),Me=te(4942),ue=te(97685),Ee=te(45987),fe=te(62709),we=te(71002),Ue=te(12060);function De(le,Le,dt){var Nt=React.useRef({});return(!("value"in Nt.current)||dt(Nt.current.condition,Le))&&(Nt.current.value=le(),Nt.current.condition=Le),Nt.current.value}function Ke(le,Le){typeof le=="function"?le(Le):(0,we.Z)(le)==="object"&&le&&"current"in le&&(le.current=Le)}function rt(){for(var le=arguments.length,Le=new Array(le),dt=0;dt<le;dt++)Le[dt]=arguments[dt];var Nt=Le.filter(function(tn){return tn});return Nt.length<=1?Nt[0]:function(tn){Le.forEach(function(an){Ke(an,tn)})}}function Qe(){for(var le=arguments.length,Le=new Array(le),dt=0;dt<le;dt++)Le[dt]=arguments[dt];return useMemo(function(){return rt.apply(void 0,Le)},Le,function(Nt,tn){return Nt.length===tn.length&&Nt.every(function(an,Yt){return an===tn[Yt]})})}function _e(le){var Le,dt,Nt=(0,Ue.isMemo)(le)?le.type.type:le.type;return!(typeof Nt=="function"&&!((Le=Nt.prototype)!==null&&Le!==void 0&&Le.render)||typeof le=="function"&&!((dt=le.prototype)!==null&&dt!==void 0&&dt.render))}var ge={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Le){var dt=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.metaKey||dt>=ge.F1&&dt<=ge.F12)return!1;switch(dt){case ge.ALT:case ge.CAPS_LOCK:case ge.CONTEXT_MENU:case ge.CTRL:case ge.DOWN:case ge.END:case ge.ESC:case ge.HOME:case ge.INSERT:case ge.LEFT:case ge.MAC_FF_META:case ge.META:case ge.NUMLOCK:case ge.NUM_CENTER:case ge.PAGE_DOWN:case ge.PAGE_UP:case ge.PAUSE:case ge.PRINT_SCREEN:case ge.RIGHT:case ge.SHIFT:case ge.UP:case ge.WIN_KEY:case ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Le){if(Le>=ge.ZERO&&Le<=ge.NINE||Le>=ge.NUM_ZERO&&Le<=ge.NUM_MULTIPLY||Le>=ge.A&&Le<=ge.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){case ge.SPACE:case ge.QUESTION_MARK:case ge.NUM_PLUS:case ge.NUM_MINUS:case ge.NUM_PERIOD:case ge.NUM_DIVISION:case ge.SEMICOLON:case ge.DASH:case ge.EQUALS:case ge.COMMA:case ge.PERIOD:case ge.SLASH:case ge.APOSTROPHE:case ge.SINGLE_QUOTE:case ge.OPEN_SQUARE_BRACKET:case ge.BACKSLASH:case ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ve=ge,lt=function(Le){return+setTimeout(Le,16)},He=function(Le){return clearTimeout(Le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(lt=function(Le){return window.requestAnimationFrame(Le)},He=function(Le){return window.cancelAnimationFrame(Le)});var Oe=0,ve=new Map;function ye(le){ve.delete(le)}var ze=function(Le){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Oe+=1;var Nt=Oe;function tn(an){if(an===0)ye(Nt),Le();else{var Yt=lt(function(){tn(an-1)});ve.set(Nt,Yt)}}return tn(dt),Nt};ze.cancel=function(le){var Le=ve.get(le);return ye(Le),He(Le)};var We=ze,st=Ve.ESC,at=Ve.TAB;function Ze(le){var Le=le.visible,dt=le.triggerRef,Nt=le.onVisibleChange,tn=le.autoFocus,an=le.overlayRef,Yt=ee.useRef(!1),dn=function(){if(Le){var Gt,jt;(Gt=dt.current)===null||Gt===void 0||(jt=Gt.focus)===null||jt===void 0||jt.call(Gt),Nt==null||Nt(!1)}},Mt=function(){var Gt;return(Gt=an.current)!==null&&Gt!==void 0&&Gt.focus?(an.current.focus(),Yt.current=!0,!0):!1},Wt=function(Gt){switch(Gt.keyCode){case st:dn();break;case at:{var jt=!1;Yt.current||(jt=Mt()),jt?Gt.preventDefault():dn();break}}};ee.useEffect(function(){return Le?(window.addEventListener("keydown",Wt),tn&&We(Mt,3),function(){window.removeEventListener("keydown",Wt),Yt.current=!1}):function(){Yt.current=!1}},[Le])}var Ae=(0,ee.forwardRef)(function(le,Le){var dt=le.overlay,Nt=le.arrow,tn=le.prefixCls,an=(0,ee.useMemo)(function(){var dn;return typeof dt=="function"?dn=dt():dn=dt,dn},[dt]),Yt=rt(Le,an==null?void 0:an.ref);return ee.createElement(ee.Fragment,null,Nt&&ee.createElement("div",{className:"".concat(tn,"-arrow")}),ee.cloneElement(an,{ref:_e(an)?Yt:void 0}))}),mt=Ae,je={adjustX:1,adjustY:1},it=[0,0],qe={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-4],targetOffset:it},top:{points:["bc","tc"],overflow:je,offset:[0,-4],targetOffset:it},topRight:{points:["br","tr"],overflow:je,offset:[0,-4],targetOffset:it},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,4],targetOffset:it},bottom:{points:["tc","bc"],overflow:je,offset:[0,4],targetOffset:it},bottomRight:{points:["tr","br"],overflow:je,offset:[0,4],targetOffset:it}},gt=qe,Pt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Xt(le,Le){var dt,Nt=le.arrow,tn=Nt===void 0?!1:Nt,an=le.prefixCls,Yt=an===void 0?"rc-dropdown":an,dn=le.transitionName,Mt=le.animation,Wt=le.align,qt=le.placement,Gt=qt===void 0?"bottomLeft":qt,jt=le.placements,sr=jt===void 0?gt:jt,Dt=le.getPopupContainer,Jt=le.showAction,Gn=le.hideAction,Bn=le.overlayClassName,Sn=le.overlayStyle,or=le.visible,gr=le.trigger,kr=gr===void 0?["hover"]:gr,Lr=le.autoFocus,Qr=le.overlay,Ir=le.children,Dn=le.onVisibleChange,cr=(0,Ee.Z)(le,Pt),vr=ee.useState(),Ur=(0,ue.Z)(vr,2),ti=Ur[0],Kt=Ur[1],_n="visible"in le?or:ti,nn=ee.useRef(null),In=ee.useRef(null),nr=ee.useRef(null);ee.useImperativeHandle(Le,function(){return nn.current});var Rr=function(Cn){Kt(Cn),Dn==null||Dn(Cn)};Ze({visible:_n,triggerRef:nr,onVisibleChange:Rr,autoFocus:Lr,overlayRef:In});var Pr=function(Cn){var cn=le.onOverlayClick;Kt(!1),cn&&cn(Cn)},br=function(){return ee.createElement(mt,{ref:In,overlay:Qr,prefixCls:Yt,arrow:tn})},xt=function(){return typeof Qr=="function"?br:br()},$t=function(){var Cn=le.minOverlayWidthMatchTrigger,cn=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?Cn:!cn},fn=function(){var Cn=le.openClassName;return Cn!==void 0?Cn:"".concat(Yt,"-open")},Mn=ee.cloneElement(Ir,{className:Ge()((dt=Ir.props)===null||dt===void 0?void 0:dt.className,_n&&fn()),ref:_e(Ir)?rt(nr,Ir.ref):void 0}),yt=Gn;return!yt&&kr.indexOf("contextMenu")!==-1&&(yt=["click"]),ee.createElement(fe.Z,(0,xe.Z)({builtinPlacements:sr},cr,{prefixCls:Yt,ref:nn,popupClassName:Ge()(Bn,(0,Me.Z)({},"".concat(Yt,"-show-arrow"),tn)),popupStyle:Sn,action:kr,showAction:Jt,hideAction:yt,popupPlacement:Gt,popupAlign:Wt,popupTransitionName:dn,popupAnimation:Mt,popupVisible:_n,stretch:$t()?"minWidth":"",popup:xt(),onPopupVisibleChange:Rr,onPopupClick:Pr,getPopupContainer:Dt}),Mn)}var $e=ee.forwardRef(Xt),Be=$e,St=te(60276),Vt=te(5663),Rt=te(10366),ht=te(80636),Bt=te(8745),_t=te(96159),Fn=te(53124),kn=te(68508),kt=te(76529),un=te(29691),Wn=te(66748);const An=null,Ie=le=>{const{menu:Le,arrow:dt,prefixCls:Nt,children:tn,trigger:an,disabled:Yt,dropdownRender:dn,getPopupContainer:Mt,overlayClassName:Wt,rootClassName:qt,open:Gt,onOpenChange:jt,visible:sr,onVisibleChange:Dt,mouseEnterDelay:Jt=.15,mouseLeaveDelay:Gn=.1,autoAdjustOverflow:Bn=!0,placement:Sn="",overlay:or,transitionName:gr}=le,{getPopupContainer:kr,getPrefixCls:Lr,direction:Qr}=ee.useContext(Fn.E_),Ir=ee.useMemo(()=>{const Mn=Lr();return gr!==void 0?gr:Sn.includes("top")?`${Mn}-slide-down`:`${Mn}-slide-up`},[Lr,Sn,gr]),Dn=ee.useMemo(()=>Sn?Sn.includes("Center")?Sn.slice(0,Sn.indexOf("Center")):Sn:Qr==="rtl"?"bottomRight":"bottomLeft",[Sn,Qr]),cr=Lr("dropdown",Nt),[vr,Ur]=(0,Wn.Z)(cr),[,ti]=(0,un.Z)(),Kt=ee.Children.only(tn),_n=(0,_t.Tm)(Kt,{className:Ge()(`${cr}-trigger`,{[`${cr}-rtl`]:Qr==="rtl"},Kt.props.className),disabled:Yt}),nn=Yt?[]:an;let In;nn&&nn.includes("contextMenu")&&(In=!0);const[nr,Rr]=(0,Vt.Z)(!1,{value:Gt!=null?Gt:sr}),Pr=(0,St.useEvent)(Mn=>{jt==null||jt(Mn),Dt==null||Dt(Mn),Rr(Mn)}),br=Ge()(Wt,qt,Ur,{[`${cr}-rtl`]:Qr==="rtl"}),xt=(0,ht.Z)({arrowPointAtCenter:typeof dt=="object"&&dt.pointAtCenter,autoAdjustOverflow:Bn,offset:ti.marginXXS,arrowWidth:dt?ti.sizePopupArrow:0,borderRadius:ti.borderRadius}),$t=ee.useCallback(()=>{Rr(!1)},[]),fn=()=>{let Mn;return Le!=null&&Le.items?Mn=ee.createElement(kn.default,Object.assign({},Le)):typeof or=="function"?Mn=or():Mn=or,dn&&(Mn=dn(Mn)),Mn=ee.Children.only(typeof Mn=="string"?ee.createElement("span",null,Mn):Mn),ee.createElement(kt.J,{prefixCls:`${cr}-menu`,expandIcon:ee.createElement("span",{className:`${cr}-menu-submenu-arrow`},ee.createElement(de.Z,{className:`${cr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$t,validator:yt=>{let{mode:Ut}=yt}},Mn)};return vr(ee.createElement(Be,Object.assign({alignPoint:In},(0,Rt.Z)(le,["rootClassName"]),{mouseEnterDelay:Jt,mouseLeaveDelay:Gn,visible:nr,builtinPlacements:xt,arrow:!!dt,overlayClassName:br,prefixCls:cr,getPopupContainer:Mt||kr,transitionName:Ir,trigger:nn,overlay:fn,placement:Dn,onVisibleChange:Pr}),_n))};function he(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,Bt.Z)(Ie,"dropdown",le=>le,he),me=le=>ee.createElement(ce,Object.assign({},le),ee.createElement("span",null));Ie._InternalPanelDoNotUseOrYouWillBeFired=me;var pe=Ie},85418:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Qe}});var ee=te(35874),de=te(94184),ke=te.n(de),Ge=te(67294),xe=te(25877),Me=te(71577),ue=te(53124),Ee=te(93421),fe=te(4173),we=te(66748),Ue=function(_e,ge){var Ve={};for(var lt in _e)Object.prototype.hasOwnProperty.call(_e,lt)&&ge.indexOf(lt)<0&&(Ve[lt]=_e[lt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,lt=Object.getOwnPropertySymbols(_e);He<lt.length;He++)ge.indexOf(lt[He])<0&&Object.prototype.propertyIsEnumerable.call(_e,lt[He])&&(Ve[lt[He]]=_e[lt[He]]);return Ve};const De=_e=>{const{getPopupContainer:ge,getPrefixCls:Ve,direction:lt}=Ge.useContext(ue.E_),{prefixCls:He,type:Oe="default",danger:ve,disabled:ye,loading:ze,onClick:We,htmlType:st,children:at,className:Ze,menu:Ae,arrow:mt,autoFocus:je,overlay:it,trigger:qe,align:gt,open:Pt,onOpenChange:Xt,placement:$e,getPopupContainer:Be,href:St,icon:Vt=Ge.createElement(xe.Z,null),title:Rt,buttonsRender:ht=Yt=>Yt,mouseEnterDelay:Bt,mouseLeaveDelay:_t,overlayClassName:Fn,overlayStyle:kn,destroyPopupOnHide:kt,dropdownRender:un}=_e,Wn=Ue(_e,["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"]),An=Ve("dropdown",He),Ie=`${An}-button`,[he,ce]=(0,we.Z)(An),me={menu:Ae,arrow:mt,autoFocus:je,align:gt,disabled:ye,trigger:ye?[]:qe,onOpenChange:Xt,getPopupContainer:Be||ge,mouseEnterDelay:Bt,mouseLeaveDelay:_t,overlayClassName:Fn,overlayStyle:kn,destroyPopupOnHide:kt,dropdownRender:un},{compactSize:pe,compactItemClassnames:le}=(0,fe.ri)(An,lt),Le=ke()(Ie,le,Ze,ce);"overlay"in _e&&(me.overlay=it),"open"in _e&&(me.open=Pt),"placement"in _e?me.placement=$e:me.placement=lt==="rtl"?"bottomLeft":"bottomRight";const dt=Ge.createElement(Me.ZP,{type:Oe,danger:ve,disabled:ye,loading:ze,onClick:We,htmlType:st,href:St,title:Rt},at),Nt=Ge.createElement(Me.ZP,{type:Oe,danger:ve,icon:Vt}),[tn,an]=ht([dt,Nt]);return he(Ge.createElement(Ee.Z.Compact,Object.assign({className:Le,size:pe,block:!0},Wn),tn,Ge.createElement(ee.Z,Object.assign({},me),an)))};De.__ANT_BUTTON=!0;var Ke=De;const rt=ee.Z;rt.Button=Ke;var Qe=rt},66748:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ue}});var ee=te(14747),de=te(67771),ke=te(33297),Ge=te(50438),xe=te(97414),Me=te(67968),ue=te(45503),fe=De=>{const{componentCls:Ke,menuCls:rt,colorError:Qe,colorTextLightSolid:_e}=De,ge=`${rt}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${rt} ${ge}`]:{[`&${ge}-danger:not(${ge}-disabled)`]:{color:Qe,"&:hover":{color:_e,backgroundColor:Qe}}}}}};const we=De=>{const{componentCls:Ke,menuCls:rt,zIndexPopup:Qe,dropdownArrowDistance:_e,sizePopupArrow:ge,antCls:Ve,iconCls:lt,motionDurationMid:He,dropdownPaddingVertical:Oe,fontSize:ve,dropdownEdgeChildPadding:ye,colorTextDisabled:ze,fontSizeIcon:We,controlPaddingHorizontal:st,colorBgElevated:at}=De;return[{[Ke]:Object.assign(Object.assign({},(0,ee.Wf)(De)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Qe,display:"block","&::before":{position:"absolute",insetBlock:-_e+ge/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Ve}-btn`]:{[`& > ${lt}-down, & > ${Ve}-btn-icon > ${lt}-down`]:{fontSize:We}},[`${Ke}-wrap`]:{position:"relative",[`${Ve}-btn > ${lt}-down`]:{fontSize:We},[`${lt}-down::before`]:{transition:`transform ${He}`}},[`${Ke}-wrap-open`]:{[`${lt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ve}-slide-down-enter${Ve}-slide-down-enter-active${Ke}-placement-bottomLeft,
&${Ve}-slide-down-appear${Ve}-slide-down-appear-active${Ke}-placement-bottomLeft,
&${Ve}-slide-down-enter${Ve}-slide-down-enter-active${Ke}-placement-bottom,
&${Ve}-slide-down-appear${Ve}-slide-down-appear-active${Ke}-placement-bottom,
&${Ve}-slide-down-enter${Ve}-slide-down-enter-active${Ke}-placement-bottomRight,
&${Ve}-slide-down-appear${Ve}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:de.fJ},[`&${Ve}-slide-up-enter${Ve}-slide-up-enter-active${Ke}-placement-topLeft,
&${Ve}-slide-up-appear${Ve}-slide-up-appear-active${Ke}-placement-topLeft,
&${Ve}-slide-up-enter${Ve}-slide-up-enter-active${Ke}-placement-top,
&${Ve}-slide-up-appear${Ve}-slide-up-appear-active${Ke}-placement-top,
&${Ve}-slide-up-enter${Ve}-slide-up-enter-active${Ke}-placement-topRight,
&${Ve}-slide-up-appear${Ve}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:de.Qt},[`&${Ve}-slide-down-leave${Ve}-slide-down-leave-active${Ke}-placement-bottomLeft,
&${Ve}-slide-down-leave${Ve}-slide-down-leave-active${Ke}-placement-bottom,
&${Ve}-slide-down-leave${Ve}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:de.Uw},[`&${Ve}-slide-up-leave${Ve}-slide-up-leave-active${Ke}-placement-topLeft,
&${Ve}-slide-up-leave${Ve}-slide-up-leave-active${Ke}-placement-top,
&${Ve}-slide-up-leave${Ve}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:de.ly}})},(0,xe.ZP)(De,{colorBg:at,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${rt}`]:{position:"relative",margin:0},[`${rt}-submenu-popup`]:{position:"absolute",zIndex:Qe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:{[rt]:Object.assign(Object.assign({padding:ye,listStyleType:"none",backgroundColor:at,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary},(0,ee.Qy)(De)),{[`${rt}-item-group-title`]:{padding:`${Oe}px ${st}px`,color:De.colorTextDescription,transition:`all ${He}`},[`${rt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${rt}-item-icon`]:{minWidth:ve,marginInlineEnd:De.marginXS,fontSize:De.fontSizeSM},[`${rt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${He}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${rt}-item, ${rt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Oe}px ${st}px`,color:De.colorText,fontWeight:"normal",fontSize:ve,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${He}`,borderRadius:De.borderRadiusSM,"&:hover, &-active":{backgroundColor:De.controlItemBgHover}},(0,ee.Qy)(De)),{"&-selected":{color:De.colorPrimary,backgroundColor:De.controlItemBgActive,"&:hover, &-active":{backgroundColor:De.controlItemBgActiveHover}},"&-disabled":{color:ze,cursor:"not-allowed","&:hover":{color:ze,backgroundColor:at,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${De.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:De.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:De.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:De.colorTextDescription,fontSize:We,fontStyle:"normal"}}}),[`${rt}-item-group-list`]:{margin:`0 ${De.marginXS}px`,padding:0,listStyle:"none"},[`${rt}-submenu-title`]:{paddingInlineEnd:st+De.fontSizeSM},[`${rt}-submenu-vertical`]:{position:"relative"},[`${rt}-submenu${rt}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:ze,backgroundColor:at,cursor:"not-allowed"}},[`${rt}-submenu-selected ${Ke}-menu-submenu-title`]:{color:De.colorPrimary}})}},[(0,de.oN)(De,"slide-up"),(0,de.oN)(De,"slide-down"),(0,ke.Fm)(De,"move-up"),(0,ke.Fm)(De,"move-down"),(0,Ge._y)(De,"zoom-big")]]};var Ue=(0,Me.Z)("Dropdown",(De,Ke)=>{let{rootPrefixCls:rt}=Ke;const{marginXXS:Qe,sizePopupArrow:_e,controlHeight:ge,fontSize:Ve,lineHeight:lt,paddingXXS:He,componentCls:Oe,borderRadiusLG:ve}=De,ye=(ge-Ve*lt)/2,{dropdownArrowOffset:ze}=(0,xe.fS)({contentRadius:ve}),We=(0,ue.TS)(De,{menuCls:`${Oe}-menu`,rootPrefixCls:rt,dropdownArrowDistance:_e/2+Qe,dropdownArrowOffset:ze,dropdownPaddingVertical:ye,dropdownEdgeChildPadding:He});return[we(We),fe(We)]},De=>({zIndexPopup:De.zIndexPopupBase+50}))},32983:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return He}});var ee=te(94184),de=te.n(ee),ke=te(67294),Ge=te(53124),xe=te(10110),Me=te(84780),ue=te(29691),fe=()=>{const[,Oe]=(0,ue.Z)(),ye=new Me.C(Oe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ke.createElement("svg",{style:ye,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("g",{fill:"none",fillRule:"evenodd"},ke.createElement("g",{transform:"translate(24 31.67)"},ke.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ke.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"}),ke.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)"}),ke.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"}),ke.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"})),ke.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"}),ke.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ke.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ke.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ue=()=>{const[,Oe]=(0,ue.Z)(),{colorFill:ve,colorFillTertiary:ye,colorFillQuaternary:ze,colorBgContainer:We}=Oe,{borderColor:st,shadowColor:at,contentColor:Ze}=(0,ke.useMemo)(()=>({borderColor:new Me.C(ve).onBackground(We).toHexShortString(),shadowColor:new Me.C(ye).onBackground(We).toHexShortString(),contentColor:new Me.C(ze).onBackground(We).toHexShortString()}),[ve,ye,ze,We]);return ke.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ke.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ke.createElement("ellipse",{fill:at,cx:"32",cy:"33",rx:"32",ry:"7"}),ke.createElement("g",{fillRule:"nonzero",stroke:st},ke.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"}),ke.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:Ze}))))},De=te(67968),Ke=te(45503);const rt=Oe=>{const{componentCls:ve,margin:ye,marginXS:ze,marginXL:We,fontSize:st,lineHeight:at}=Oe;return{[ve]:{marginInline:ze,fontSize:st,lineHeight:at,textAlign:"center",[`${ve}-image`]:{height:Oe.emptyImgHeight,marginBottom:ze,opacity:Oe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ve}-description`]:{color:Oe.colorText},[`${ve}-footer`]:{marginTop:ye},"&-normal":{marginBlock:We,color:Oe.colorTextDisabled,[`${ve}-description`]:{color:Oe.colorTextDisabled},[`${ve}-image`]:{height:Oe.emptyImgHeightMD}},"&-small":{marginBlock:ze,color:Oe.colorTextDisabled,[`${ve}-image`]:{height:Oe.emptyImgHeightSM}}}}};var Qe=(0,De.Z)("Empty",Oe=>{const{componentCls:ve,controlHeightLG:ye}=Oe,ze=(0,Ke.TS)(Oe,{emptyImgCls:`${ve}-img`,emptyImgHeight:ye*2.5,emptyImgHeightMD:ye,emptyImgHeightSM:ye*.875});return[rt(ze)]}),_e=function(Oe,ve){var ye={};for(var ze in Oe)Object.prototype.hasOwnProperty.call(Oe,ze)&&ve.indexOf(ze)<0&&(ye[ze]=Oe[ze]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ze=Object.getOwnPropertySymbols(Oe);We<ze.length;We++)ve.indexOf(ze[We])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ze[We])&&(ye[ze[We]]=Oe[ze[We]]);return ye};const ge=ke.createElement(fe,null),Ve=ke.createElement(Ue,null),lt=Oe=>{var{className:ve,rootClassName:ye,prefixCls:ze,image:We=ge,description:st,children:at,imageStyle:Ze,style:Ae}=Oe,mt=_e(Oe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:je,direction:it,empty:qe}=ke.useContext(Ge.E_),gt=je("empty",ze),[Pt,Xt]=Qe(gt),[$e]=(0,xe.Z)("Empty"),Be=typeof st!="undefined"?st:$e==null?void 0:$e.description,St=typeof Be=="string"?Be:"empty";let Vt=null;return typeof We=="string"?Vt=ke.createElement("img",{alt:St,src:We}):Vt=We,Pt(ke.createElement("div",Object.assign({className:de()(Xt,gt,qe==null?void 0:qe.className,{[`${gt}-normal`]:We===Ve,[`${gt}-rtl`]:it==="rtl"},ve,ye),style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Ae)},mt),ke.createElement("div",{className:`${gt}-image`,style:Ze},Vt),Be&&ke.createElement("div",{className:`${gt}-description`},Be),at&&ke.createElement("div",{className:`${gt}-footer`},at)))};lt.PRESENTED_IMAGE_DEFAULT=ge,lt.PRESENTED_IMAGE_SIMPLE=Ve;var He=lt},22150:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return Mn}});var ee=te(74902),de=te(94184),ke=te.n(de),Ge=te(38379),xe=te(67294),Me=te(33603),ue=te(65223);function Ee(yt){const[Ut,Cn]=xe.useState(yt);return xe.useEffect(()=>{const cn=setTimeout(()=>{Cn(yt)},yt.length?0:10);return()=>{clearTimeout(cn)}},[yt]),Ut}var fe=te(14747),we=te(50438),Ue=te(33507),De=te(45503),Ke=te(67968),Qe=yt=>{const{componentCls:Ut}=yt,Cn=`${Ut}-show-help`,cn=`${Ut}-show-help-item`;return{[Cn]:{transition:`opacity ${yt.motionDurationSlow} ${yt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[cn]:{overflow:"hidden",transition:`height ${yt.motionDurationSlow} ${yt.motionEaseInOut},
opacity ${yt.motionDurationSlow} ${yt.motionEaseInOut},
transform ${yt.motionDurationSlow} ${yt.motionEaseInOut} !important`,[`&${cn}-appear, &${cn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${cn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const _e=yt=>({legend:{display:"block",width:"100%",marginBottom:yt.marginLG,padding:0,color:yt.colorTextDescription,fontSize:yt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`},label:{fontSize:yt.fontSize},'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 ${yt.controlOutlineWidth}px ${yt.controlOutline}`},output:{display:"block",paddingTop:15,color:yt.colorText,fontSize:yt.fontSize,lineHeight:yt.lineHeight}}),ge=(yt,Ut)=>{const{formItemCls:Cn}=yt;return{[Cn]:{[`${Cn}-label > label`]:{height:Ut},[`${Cn}-control-input`]:{minHeight:Ut}}}},Ve=yt=>{const{componentCls:Ut}=yt;return{[yt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(yt)),_e(yt)),{[`${Ut}-text`]:{display:"inline-block",paddingInlineEnd:yt.paddingSM},"&-small":Object.assign({},ge(yt,yt.controlHeightSM)),"&-large":Object.assign({},ge(yt,yt.controlHeightLG))})}},lt=yt=>{const{formItemCls:Ut,iconCls:Cn,componentCls:cn,rootPrefixCls:zn,labelRequiredMarkColor:Hn,labelColor:Mr,labelFontSize:gi,labelHeight:Xr,labelColonMarginInlineStart:Gr,labelColonMarginInlineEnd:di,itemMarginBottom:ci}=yt;return{[Ut]:Object.assign(Object.assign({},(0,fe.Wf)(yt)),{marginBottom:ci,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${zn}-row`]:{display:"none"},"&-has-warning":{[`${Ut}-split`]:{color:yt.colorError}},"&-has-error":{[`${Ut}-split`]:{color:yt.colorWarning}},[`${Ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${yt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xr,color:Mr,fontSize:gi,[`> ${Cn}`]:{fontSize:yt.fontSize,verticalAlign:"top"},[`&${Ut}-required:not(${Ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:yt.marginXXS,color:Hn,fontSize:yt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${cn}-hide-required-mark &`]:{display:"none"}},[`${Ut}-optional`]:{display:"inline-block",marginInlineStart:yt.marginXXS,color:yt.colorTextDescription,[`${cn}-hide-required-mark &`]:{display:"none"}},[`${Ut}-tooltip`]:{color:yt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:yt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Gr,marginInlineEnd:di},[`&${Ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ut}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${zn}-col-'"]):not([class*="' ${zn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:yt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ut]:{"&-explain, &-extra":{clear:"both",color:yt.colorTextDescription,fontSize:yt.fontSize,lineHeight:yt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:yt.controlHeightSM,transition:`color ${yt.motionDurationMid} ${yt.motionEaseOut}`},"&-explain":{"&-error":{color:yt.colorError},"&-warning":{color:yt.colorWarning}}},[`&-with-help ${Ut}-explain`]:{height:"auto",opacity:1},[`${Ut}-feedback-icon`]:{fontSize:yt.fontSize,textAlign:"center",visibility:"visible",animationName:we.kr,animationDuration:yt.motionDurationMid,animationTimingFunction:yt.motionEaseOutBack,pointerEvents:"none","&-success":{color:yt.colorSuccess},"&-error":{color:yt.colorError},"&-warning":{color:yt.colorWarning},"&-validating":{color:yt.colorPrimary}}})}},He=yt=>{const{componentCls:Ut,formItemCls:Cn}=yt;return{[`${Ut}-horizontal`]:{[`${Cn}-label`]:{flexGrow:0},[`${Cn}-control`]:{flex:"1 1 0",minWidth:0},[`${Cn}-label[class$='-24'], ${Cn}-label[class*='-24 ']`]:{[`& + ${Cn}-control`]:{minWidth:"unset"}}}}},Oe=yt=>{const{componentCls:Ut,formItemCls:Cn}=yt;return{[`${Ut}-inline`]:{display:"flex",flexWrap:"wrap",[Cn]:{flex:"none",marginInlineEnd:yt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Cn}-label,
> ${Cn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Cn}-label`]:{flex:"none"},[`${Ut}-text`]:{display:"inline-block"},[`${Cn}-has-feedback`]:{display:"inline-block"}}}}},ve=yt=>({padding:yt.verticalLabelPadding,margin:yt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ye=yt=>{const{componentCls:Ut,formItemCls:Cn,rootPrefixCls:cn}=yt;return{[`${Cn} ${Cn}-label`]:ve(yt),[Ut]:{[Cn]:{flexWrap:"wrap",[`${Cn}-label, ${Cn}-control`]:{[`&:not([class*=" ${cn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ze=yt=>{const{componentCls:Ut,formItemCls:Cn,rootPrefixCls:cn}=yt;return{[`${Ut}-vertical`]:{[Cn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ut}-item-control`]:{width:"100%"}}},[`${Ut}-vertical ${Cn}-label,
.${cn}-col-24${Cn}-label,
.${cn}-col-xl-24${Cn}-label`]:ve(yt),[`@media (max-width: ${yt.screenXSMax}px)`]:[ye(yt),{[Ut]:{[`.${cn}-col-xs-24${Cn}-label`]:ve(yt)}}],[`@media (max-width: ${yt.screenSMMax}px)`]:{[Ut]:{[`.${cn}-col-sm-24${Cn}-label`]:ve(yt)}},[`@media (max-width: ${yt.screenMDMax}px)`]:{[Ut]:{[`.${cn}-col-md-24${Cn}-label`]:ve(yt)}},[`@media (max-width: ${yt.screenLGMax}px)`]:{[Ut]:{[`.${cn}-col-lg-24${Cn}-label`]:ve(yt)}}}},We=(yt,Ut)=>(0,De.TS)(yt,{formItemCls:`${yt.componentCls}-item`,rootPrefixCls:Ut});var st=(0,Ke.Z)("Form",(yt,Ut)=>{let{rootPrefixCls:Cn}=Ut;const cn=We(yt,Cn);return[Ve(cn),lt(cn),Qe(cn),He(cn),Oe(cn),ze(cn),(0,Ue.Z)(cn),we.kr]},yt=>({labelRequiredMarkColor:yt.colorError,labelColor:yt.colorTextHeading,labelFontSize:yt.fontSize,labelHeight:yt.controlHeight,labelColonMarginInlineStart:yt.marginXXS/2,labelColonMarginInlineEnd:yt.marginXS,itemMarginBottom:yt.marginLG,verticalLabelPadding:`0 0 ${yt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const at=[];function Ze(yt,Ut,Cn){let cn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof yt=="string"?yt:`${Ut}-${cn}`,error:yt,errorStatus:Cn}}var mt=yt=>{let{help:Ut,helpStatus:Cn,errors:cn=at,warnings:zn=at,className:Hn,fieldId:Mr,onVisibleChanged:gi}=yt;const{prefixCls:Xr}=xe.useContext(ue.Rk),Gr=`${Xr}-item-explain`,[,di]=st(Xr),ci=(0,xe.useMemo)(()=>(0,Me.Z)(Xr),[Xr]),Si=Ee(cn),Jn=Ee(zn),Jr=xe.useMemo(()=>Ut!=null?[Ze(Ut,"help",Cn)]:[].concat((0,ee.Z)(Si.map((Qa,Li)=>Ze(Qa,"error","error",Li))),(0,ee.Z)(Jn.map((Qa,Li)=>Ze(Qa,"warning","warning",Li)))),[Ut,Cn,Si,Jn]),Oa={};return Mr&&(Oa.id=`${Mr}_help`),xe.createElement(Ge.default,{motionDeadline:ci.motionDeadline,motionName:`${Xr}-show-help`,visible:!!Jr.length,onVisibleChanged:gi},Qa=>{const{className:Li,style:qi}=Qa;return xe.createElement("div",Object.assign({},Oa,{className:ke()(Gr,Li,Hn,di),style:qi,role:"alert"}),xe.createElement(Ge.CSSMotionList,Object.assign({keys:Jr},(0,Me.Z)(Xr),{motionName:`${Xr}-show-help-item`,component:!1}),$a=>{const{key:zi,error:to,errorStatus:_r,className:Wo,style:_o}=$a;return xe.createElement("div",{key:zi,className:ke()(Wo,{[`${Gr}-${_r}`]:_r}),style:_o},to)}))})},je=te(46660),it=te(53124),qe=te(98866),gt=te(97647),Pt=te(98675),Xt=te(17423);const $e=["parentNode"],Be="form_item";function St(yt){return yt===void 0||yt===!1?[]:Array.isArray(yt)?yt:[yt]}function Vt(yt,Ut){if(!yt.length)return;const Cn=yt.join("_");return Ut?`${Ut}_${Cn}`:$e.includes(Cn)?`${Be}_${Cn}`:Cn}function Rt(yt,Ut,Cn,cn,zn,Hn){let Mr=cn;return Hn!==void 0?Mr=Hn:Cn.validating?Mr="validating":yt.length?Mr="error":Ut.length?Mr="warning":(Cn.touched||zn&&Cn.validated)&&(Mr="success"),Mr}function ht(yt){return St(yt).join("_")}function Bt(yt){const[Ut]=(0,je.useForm)(),Cn=xe.useRef({}),cn=xe.useMemo(()=>yt!=null?yt:Object.assign(Object.assign({},Ut),{__INTERNAL__:{itemRef:zn=>Hn=>{const Mr=ht(zn);Hn?Cn.current[Mr]=Hn:delete Cn.current[Mr]}},scrollToField:function(zn){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Mr=St(zn),gi=Vt(Mr,cn.__INTERNAL__.name),Xr=gi?document.getElementById(gi):null;Xr&&(0,Xt.Z)(Xr,Object.assign({scrollMode:"if-needed",block:"nearest"},Hn))},getFieldInstance:zn=>{const Hn=ht(zn);return Cn.current[Hn]}}),[yt,Ut]);return[cn]}var _t=te(37920),Fn=function(yt,Ut){var Cn={};for(var cn in yt)Object.prototype.hasOwnProperty.call(yt,cn)&&Ut.indexOf(cn)<0&&(Cn[cn]=yt[cn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,cn=Object.getOwnPropertySymbols(yt);zn<cn.length;zn++)Ut.indexOf(cn[zn])<0&&Object.prototype.propertyIsEnumerable.call(yt,cn[zn])&&(Cn[cn[zn]]=yt[cn[zn]]);return Cn};const kn=(yt,Ut)=>{const Cn=xe.useContext(qe.Z),{getPrefixCls:cn,direction:zn,form:Hn}=xe.useContext(it.E_),{prefixCls:Mr,className:gi,rootClassName:Xr,size:Gr,disabled:di=Cn,form:ci,colon:Si,labelAlign:Jn,labelWrap:Jr,labelCol:Oa,wrapperCol:Qa,hideRequiredMark:Li,layout:qi="horizontal",scrollToFirstError:$a,requiredMark:zi,onFinishFailed:to,name:_r,style:Wo,feedbackIcons:_o}=yt,bl=Fn(yt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),jo=(0,Pt.Z)(Gr),Po=xe.useContext(_t.Z),la=(0,xe.useMemo)(()=>zi!==void 0?zi:Hn&&Hn.requiredMark!==void 0?Hn.requiredMark:!Li,[Li,zi,Hn]),el=Si!=null?Si:Hn==null?void 0:Hn.colon,No=cn("form",Mr),[rl,vl]=st(No),ll=ke()(No,`${No}-${qi}`,{[`${No}-hide-required-mark`]:la===!1,[`${No}-rtl`]:zn==="rtl",[`${No}-${jo}`]:jo},vl,Hn==null?void 0:Hn.className,gi,Xr),[Uo]=Bt(ci),{__INTERNAL__:gl}=Uo;gl.name=_r;const wl=(0,xe.useMemo)(()=>({name:_r,labelAlign:Jn,labelCol:Oa,labelWrap:Jr,wrapperCol:Qa,vertical:qi==="vertical",colon:el,requiredMark:la,itemRef:gl.itemRef,form:Uo,feedbackIcons:_o}),[_r,Jn,Oa,Qa,qi,el,la,Uo,_o]);xe.useImperativeHandle(Ut,()=>Uo);const dl=(wn,pn)=>{if(wn){let ar={block:"nearest"};typeof wn=="object"&&(ar=wn),Uo.scrollToField(pn,ar)}},io=wn=>{if(to==null||to(wn),wn.errorFields.length){const pn=wn.errorFields[0].name;if($a!==void 0){dl($a,pn);return}Hn&&Hn.scrollToFirstError!==void 0&&dl(Hn.scrollToFirstError,pn)}};return rl(xe.createElement(qe.n,{disabled:di},xe.createElement(gt.q,{size:jo},xe.createElement(ue.RV,Object.assign({},{validateMessages:Po}),xe.createElement(ue.q3.Provider,{value:wl},xe.createElement(je.default,Object.assign({id:_r},bl,{name:_r,onFinishFailed:io,form:Uo,style:Object.assign(Object.assign({},Hn==null?void 0:Hn.style),Wo),className:ll})))))))};var un=xe.forwardRef(kn),Wn=te(9475),An=te(17799),Ie=te(96159),he=te(37419);function ce(yt){if(typeof yt=="function")return yt;const Ut=(0,he.Z)(yt);return Ut.length<=1?Ut[0]:Ut}const me=()=>{const{status:yt,errors:Ut=[],warnings:Cn=[]}=(0,xe.useContext)(ue.aM);return{status:yt,errors:Ut,warnings:Cn}};me.Context=ue.aM;var pe=me,le=te(96523);function Le(yt){const[Ut,Cn]=xe.useState(yt),cn=(0,xe.useRef)(null),zn=(0,xe.useRef)([]),Hn=(0,xe.useRef)(!1);xe.useEffect(()=>(Hn.current=!1,()=>{Hn.current=!0,le.Z.cancel(cn.current),cn.current=null}),[]);function Mr(gi){Hn.current||(cn.current===null&&(zn.current=[],cn.current=(0,le.Z)(()=>{cn.current=null,Cn(Xr=>{let Gr=Xr;return zn.current.forEach(di=>{Gr=di(Gr)}),Gr})})),zn.current.push(gi))}return[Ut,Mr]}function dt(){const{itemRef:yt}=xe.useContext(ue.q3),Ut=xe.useRef({});function Cn(cn,zn){const Hn=zn&&typeof zn=="object"&&zn.ref,Mr=cn.join("_");return(Ut.current.name!==Mr||Ut.current.originRef!==Hn)&&(Ut.current.name=Mr,Ut.current.originRef=Hn,Ut.current.ref=(0,An.sQ)(yt(cn),Hn)),Ut.current.ref}return Cn}var Nt=te(48130),tn=te(14075),an=te(10366),Yt=te(92820),dn=te(21584);const Mt=yt=>{const{formItemCls:Ut}=yt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ut}-control`]:{display:"flex"}}}};var Wt=(0,Ke.b)(["Form","item-item"],(yt,Ut)=>{let{rootPrefixCls:Cn}=Ut;const cn=We(yt,Cn);return[Mt(cn)]}),Gt=yt=>{const{prefixCls:Ut,status:Cn,wrapperCol:cn,children:zn,errors:Hn,warnings:Mr,_internalItemRender:gi,extra:Xr,help:Gr,fieldId:di,marginBottom:ci,onErrorVisibleChanged:Si}=yt,Jn=`${Ut}-item`,Jr=xe.useContext(ue.q3),Oa=cn||Jr.wrapperCol||{},Qa=ke()(`${Jn}-control`,Oa.className),Li=xe.useMemo(()=>Object.assign({},Jr),[Jr]);delete Li.labelCol,delete Li.wrapperCol;const qi=xe.createElement("div",{className:`${Jn}-control-input`},xe.createElement("div",{className:`${Jn}-control-input-content`},zn)),$a=xe.useMemo(()=>({prefixCls:Ut,status:Cn}),[Ut,Cn]),zi=ci!==null||Hn.length||Mr.length?xe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},xe.createElement(ue.Rk.Provider,{value:$a},xe.createElement(mt,{fieldId:di,errors:Hn,warnings:Mr,help:Gr,helpStatus:Cn,className:`${Jn}-explain-connected`,onVisibleChanged:Si})),!!ci&&xe.createElement("div",{style:{width:0,height:ci}})):null,to={};di&&(to.id=`${di}_extra`);const _r=Xr?xe.createElement("div",Object.assign({},to,{className:`${Jn}-extra`}),Xr):null,Wo=gi&&gi.mark==="pro_table_render"&&gi.render?gi.render(yt,{input:qi,errorList:zi,extra:_r}):xe.createElement(xe.Fragment,null,qi,zi,_r);return xe.createElement(ue.q3.Provider,{value:Li},xe.createElement(dn.Z,Object.assign({},Oa,{className:Qa}),Wo),xe.createElement(Wt,{prefixCls:Ut}))},jt=te(17663),sr=te(24457),Dt=te(10110),Jt=te(83062),Gn=function(yt,Ut){var Cn={};for(var cn in yt)Object.prototype.hasOwnProperty.call(yt,cn)&&Ut.indexOf(cn)<0&&(Cn[cn]=yt[cn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,cn=Object.getOwnPropertySymbols(yt);zn<cn.length;zn++)Ut.indexOf(cn[zn])<0&&Object.prototype.propertyIsEnumerable.call(yt,cn[zn])&&(Cn[cn[zn]]=yt[cn[zn]]);return Cn};function Bn(yt){return yt?typeof yt=="object"&&!xe.isValidElement(yt)?yt:{title:yt}:null}var or=yt=>{let{prefixCls:Ut,label:Cn,htmlFor:cn,labelCol:zn,labelAlign:Hn,colon:Mr,required:gi,requiredMark:Xr,tooltip:Gr}=yt;var di;const[ci]=(0,Dt.Z)("Form"),{vertical:Si,labelAlign:Jn,labelCol:Jr,labelWrap:Oa,colon:Qa}=xe.useContext(ue.q3);if(!Cn)return null;const Li=zn||Jr||{},qi=Hn||Jn,$a=`${Ut}-item-label`,zi=ke()($a,qi==="left"&&`${$a}-left`,Li.className,{[`${$a}-wrap`]:!!Oa});let to=Cn;const _r=Mr===!0||Qa!==!1&&Mr!==!1;_r&&!Si&&typeof Cn=="string"&&Cn.trim()!==""&&(to=Cn.replace(/[:|]\s*$/,""));const _o=Bn(Gr);if(_o){const{icon:la=xe.createElement(jt.Z,null)}=_o,el=Gn(_o,["icon"]),No=xe.createElement(Jt.Z,Object.assign({},el),xe.cloneElement(la,{className:`${Ut}-item-tooltip`,title:""}));to=xe.createElement(xe.Fragment,null,to,No)}const bl=Xr==="optional",jo=typeof Xr=="function";jo?to=Xr(to,{required:!!gi}):bl&&!gi&&(to=xe.createElement(xe.Fragment,null,to,xe.createElement("span",{className:`${Ut}-item-optional`,title:""},(ci==null?void 0:ci.optional)||((di=sr.Z.Form)===null||di===void 0?void 0:di.optional))));const Po=ke()({[`${Ut}-item-required`]:gi,[`${Ut}-item-required-mark-optional`]:bl||jo,[`${Ut}-item-no-colon`]:!_r});return xe.createElement(dn.Z,Object.assign({},Li,{className:zi}),xe.createElement("label",{htmlFor:cn,className:Po,title:typeof Cn=="string"?Cn:""},to))},gr=te(87725),kr=te(16646),Lr=te(87995),Qr=te(3407);const Ir={success:gr.Z,warning:Lr.Z,error:kr.Z,validating:Qr.Z};function Dn(yt){let{children:Ut,errors:Cn,warnings:cn,hasFeedback:zn,validateStatus:Hn,prefixCls:Mr,meta:gi,noStyle:Xr}=yt;const Gr=`${Mr}-item`,{feedbackIcons:di}=xe.useContext(ue.q3),ci=Rt(Cn,cn,gi,null,!!zn,Hn),{isFormItemInput:Si,status:Jn}=xe.useContext(ue.aM),Jr=xe.useMemo(()=>{var Oa;let Qa;if(zn){const $a=zn!==!0&&zn.icons||di,zi=ci&&((Oa=$a==null?void 0:$a({status:ci,errors:Cn,warnings:cn}))===null||Oa===void 0?void 0:Oa[ci]),to=ci&&Ir[ci];Qa=zi!==!1&&to?xe.createElement("span",{className:ke()(`${Gr}-feedback-icon`,`${Gr}-feedback-icon-${ci}`)},zi||xe.createElement(to,null)):null}let Li=!0,qi=ci||"";return Xr&&(Li=Si,qi=(ci!=null?ci:Jn)||""),{status:qi,errors:Cn,warnings:cn,hasFeedback:!!zn,feedbackIcon:Qa,isFormItemInput:Li}},[ci,zn,Xr,Si,Jn]);return xe.createElement(ue.aM.Provider,{value:Jr},Ut)}var cr=function(yt,Ut){var Cn={};for(var cn in yt)Object.prototype.hasOwnProperty.call(yt,cn)&&Ut.indexOf(cn)<0&&(Cn[cn]=yt[cn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,cn=Object.getOwnPropertySymbols(yt);zn<cn.length;zn++)Ut.indexOf(cn[zn])<0&&Object.prototype.propertyIsEnumerable.call(yt,cn[zn])&&(Cn[cn[zn]]=yt[cn[zn]]);return Cn};function vr(yt){const{prefixCls:Ut,className:Cn,rootClassName:cn,style:zn,help:Hn,errors:Mr,warnings:gi,validateStatus:Xr,meta:Gr,hasFeedback:di,hidden:ci,children:Si,fieldId:Jn,required:Jr,isRequired:Oa,onSubItemMetaChange:Qa}=yt,Li=cr(yt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),qi=`${Ut}-item`,{requiredMark:$a}=xe.useContext(ue.q3),zi=xe.useRef(null),to=Ee(Mr),_r=Ee(gi),Wo=Hn!=null,_o=!!(Wo||Mr.length||gi.length),bl=!!zi.current&&(0,Nt.Z)(zi.current),[jo,Po]=xe.useState(null);(0,tn.Z)(()=>{if(_o&&zi.current){const vl=getComputedStyle(zi.current);Po(parseInt(vl.marginBottom,10))}},[_o,bl]);const la=vl=>{vl||Po(null)},No=function(){let vl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ll=vl?to:Gr.errors,Uo=vl?_r:Gr.warnings;return Rt(ll,Uo,Gr,"",!!di,Xr)}(),rl=ke()(qi,Cn,cn,{[`${qi}-with-help`]:Wo||to.length||_r.length,[`${qi}-has-feedback`]:No&&di,[`${qi}-has-success`]:No==="success",[`${qi}-has-warning`]:No==="warning",[`${qi}-has-error`]:No==="error",[`${qi}-is-validating`]:No==="validating",[`${qi}-hidden`]:ci});return xe.createElement("div",{className:rl,style:zn,ref:zi},xe.createElement(Yt.Z,Object.assign({className:`${qi}-row`},(0,an.Z)(Li,["_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"])),xe.createElement(or,Object.assign({htmlFor:Jn},yt,{requiredMark:$a,required:Jr!=null?Jr:Oa,prefixCls:Ut})),xe.createElement(Gt,Object.assign({},yt,Gr,{errors:to,warnings:_r,prefixCls:Ut,status:No,help:Hn,marginBottom:jo,onErrorVisibleChanged:la}),xe.createElement(ue.qI.Provider,{value:Qa},xe.createElement(Dn,{prefixCls:Ut,meta:Gr,errors:Gr.errors,warnings:Gr.warnings,hasFeedback:di,validateStatus:No},Si)))),!!jo&&xe.createElement("div",{className:`${qi}-margin-offset`,style:{marginBottom:-jo}}))}const Ur="__SPLIT__",ti=null,Kt=xe.memo(yt=>{let{children:Ut}=yt;return Ut},(yt,Ut)=>yt.value===Ut.value&&yt.update===Ut.update&&yt.childProps.length===Ut.childProps.length&&yt.childProps.every((Cn,cn)=>Cn===Ut.childProps[cn]));function _n(yt){return yt!=null}function nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function In(yt){const{name:Ut,noStyle:Cn,className:cn,dependencies:zn,prefixCls:Hn,shouldUpdate:Mr,rules:gi,children:Xr,required:Gr,label:di,messageVariables:ci,trigger:Si="onChange",validateTrigger:Jn,hidden:Jr,help:Oa}=yt,{getPrefixCls:Qa}=xe.useContext(it.E_),{name:Li}=xe.useContext(ue.q3),qi=ce(Xr),$a=typeof qi=="function",zi=xe.useContext(ue.qI),{validateTrigger:to}=xe.useContext(je.FieldContext),_r=Jn!==void 0?Jn:to,Wo=_n(Ut),_o=Qa("form",Hn),[bl,jo]=st(_o),Po=xe.useContext(je.ListContext),la=xe.useRef(),[el,No]=Le({}),[rl,vl]=(0,Wn.Z)(()=>nn()),ll=pn=>{const ar=Po==null?void 0:Po.getKey(pn.name);if(vl(pn.destroy?nn():pn,!0),Cn&&Oa!==!1&&zi){let tr=pn.name;if(pn.destroy)tr=la.current||tr;else if(ar!==void 0){const[Yr,$i]=ar;tr=[Yr].concat((0,ee.Z)($i)),la.current=tr}zi(pn,tr)}},Uo=(pn,ar)=>{No(tr=>{const Yr=Object.assign({},tr),ia=[].concat((0,ee.Z)(pn.name.slice(0,-1)),(0,ee.Z)(ar)).join(Ur);return pn.destroy?delete Yr[ia]:Yr[ia]=pn,Yr})},[gl,wl]=xe.useMemo(()=>{const pn=(0,ee.Z)(rl.errors),ar=(0,ee.Z)(rl.warnings);return Object.values(el).forEach(tr=>{pn.push.apply(pn,(0,ee.Z)(tr.errors||[])),ar.push.apply(ar,(0,ee.Z)(tr.warnings||[]))}),[pn,ar]},[el,rl.errors,rl.warnings]),dl=dt();function io(pn,ar,tr){return Cn&&!Jr?xe.createElement(Dn,{prefixCls:_o,hasFeedback:yt.hasFeedback,validateStatus:yt.validateStatus,meta:rl,errors:gl,warnings:wl,noStyle:!0},pn):xe.createElement(vr,Object.assign({key:"row"},yt,{className:ke()(cn,jo),prefixCls:_o,fieldId:ar,isRequired:tr,errors:gl,warnings:wl,meta:rl,onSubItemMetaChange:Uo}),pn)}if(!Wo&&!$a&&!zn)return bl(io(qi));let wn={};return typeof di=="string"?wn.label=di:Ut&&(wn.label=String(Ut)),ci&&(wn=Object.assign(Object.assign({},wn),ci)),bl(xe.createElement(je.Field,Object.assign({},yt,{messageVariables:wn,trigger:Si,validateTrigger:_r,onMetaChange:ll}),(pn,ar,tr)=>{const Yr=St(Ut).length&&ar?ar.name:[],$i=Vt(Yr,Li),ia=Gr!==void 0?Gr:!!(gi&&gi.some(ga=>{if(ga&&typeof ga=="object"&&ga.required&&!ga.warningOnly)return!0;if(typeof ga=="function"){const ho=ga(tr);return ho&&ho.required&&!ho.warningOnly}return!1})),sa=Object.assign({},pn);let ka=null;if(Array.isArray(qi)&&Wo)ka=qi;else if(!($a&&(!(Mr||zn)||Wo))){if(!(zn&&!$a&&!Wo))if((0,Ie.l$)(qi)){const ga=Object.assign(Object.assign({},qi.props),sa);if(ga.id||(ga.id=$i),Oa||gl.length>0||wl.length>0||yt.extra){const mo=[];(Oa||gl.length>0)&&mo.push(`${$i}_help`),yt.extra&&mo.push(`${$i}_extra`),ga["aria-describedby"]=mo.join(" ")}gl.length>0&&(ga["aria-invalid"]="true"),ia&&(ga["aria-required"]="true"),(0,An.Yr)(qi)&&(ga.ref=dl(Yr,qi)),new Set([].concat((0,ee.Z)(St(Si)),(0,ee.Z)(St(_r)))).forEach(mo=>{ga[mo]=function(){for(var Un,ir,Sr,Ce,Xe,nt=arguments.length,ut=new Array(nt),ft=0;ft<nt;ft++)ut[ft]=arguments[ft];(Sr=sa[mo])===null||Sr===void 0||(Un=Sr).call.apply(Un,[sa].concat(ut)),(Xe=(Ce=qi.props)[mo])===null||Xe===void 0||(ir=Xe).call.apply(ir,[Ce].concat(ut))}});const ao=[ga["aria-required"],ga["aria-invalid"],ga["aria-describedby"]];ka=xe.createElement(Kt,{value:sa[yt.valuePropName||"value"],update:qi,childProps:ao},(0,Ie.Tm)(qi,ga))}else $a&&(Mr||zn)&&!Wo?ka=qi(tr):ka=qi}return io(ka,$i,ia)}))}const nr=In;nr.useStatus=pe;var Rr=nr,Pr=function(yt,Ut){var Cn={};for(var cn in yt)Object.prototype.hasOwnProperty.call(yt,cn)&&Ut.indexOf(cn)<0&&(Cn[cn]=yt[cn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zn=0,cn=Object.getOwnPropertySymbols(yt);zn<cn.length;zn++)Ut.indexOf(cn[zn])<0&&Object.prototype.propertyIsEnumerable.call(yt,cn[zn])&&(Cn[cn[zn]]=yt[cn[zn]]);return Cn},xt=yt=>{var{prefixCls:Ut,children:Cn}=yt,cn=Pr(yt,["prefixCls","children"]);const{getPrefixCls:zn}=xe.useContext(it.E_),Hn=zn("form",Ut),Mr=xe.useMemo(()=>({prefixCls:Hn,status:"error"}),[Hn]);return xe.createElement(je.List,Object.assign({},cn),(gi,Xr,Gr)=>xe.createElement(ue.Rk.Provider,{value:Mr},Cn(gi.map(di=>Object.assign(Object.assign({},di),{fieldKey:di.key})),Xr,{errors:Gr.errors,warnings:Gr.warnings})))};function $t(){const{form:yt}=(0,xe.useContext)(ue.q3);return yt}const fn=un;fn.Item=Rr,fn.List=xt,fn.ErrorList=mt,fn.useForm=Bt,fn.useFormInstance=$t,fn.useWatch=je.useWatch,fn.Provider=ue.RV,fn.create=()=>{};var Mn=fn},25378:function(vn,Tt,te){"use strict";var ee=te(67294),de=te(14075),ke=te(57838),Ge=te(74443);function xe(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,ee.useRef)({}),Ee=(0,ke.Z)(),fe=(0,Ge.ZP)();return(0,de.Z)(()=>{const we=fe.subscribe(Ue=>{ue.current=Ue,Me&&Ee()});return()=>fe.unsubscribe(we)},[]),ue.current}Tt.Z=xe},31795:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return br}});var ee=te(42922),de=te(53978),ke=te(94184),Ge=te.n(ke),xe=te(87462),Me=te(4942),ue=te(71002),Ee=te(97685),fe=te(45987),we=te(15671),Ue=te(43144);function De(){return typeof BigInt=="function"}function Ke(xt){return!xt&&xt!==0&&!Number.isNaN(xt)||!String(xt).trim()}function rt(xt){var $t=xt.trim(),fn=$t.startsWith("-");fn&&($t=$t.slice(1)),$t=$t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),$t.startsWith(".")&&($t="0".concat($t));var Mn=$t||"0",yt=Mn.split("."),Ut=yt[0]||"0",Cn=yt[1]||"0";Ut==="0"&&Cn==="0"&&(fn=!1);var cn=fn?"-":"";return{negative:fn,negativeStr:cn,trimStr:Mn,integerStr:Ut,decimalStr:Cn,fullStr:"".concat(cn).concat(Mn)}}function Qe(xt){var $t=String(xt);return!Number.isNaN(Number($t))&&$t.includes("e")}function _e(xt){var $t=String(xt);if(Qe(xt)){var fn=Number($t.slice($t.indexOf("e-")+2)),Mn=$t.match(/\.(\d+)/);return Mn!=null&&Mn[1]&&(fn+=Mn[1].length),fn}return $t.includes(".")&&Ve($t)?$t.length-$t.indexOf(".")-1:0}function ge(xt){var $t=String(xt);if(Qe(xt)){if(xt>Number.MAX_SAFE_INTEGER)return String(De()?BigInt(xt).toString():Number.MAX_SAFE_INTEGER);if(xt<Number.MIN_SAFE_INTEGER)return String(De()?BigInt(xt).toString():Number.MIN_SAFE_INTEGER);$t=xt.toFixed(_e($t))}return rt($t).fullStr}function Ve(xt){return typeof xt=="number"?!Number.isNaN(xt):xt?/^\s*-?\d+(\.\d+)?\s*$/.test(xt)||/^\s*-?\d+\.\s*$/.test(xt)||/^\s*-?\.\d+\s*$/.test(xt):!1}var lt=function(){function xt($t){if((0,we.Z)(this,xt),(0,Me.Z)(this,"origin",""),(0,Me.Z)(this,"negative",void 0),(0,Me.Z)(this,"integer",void 0),(0,Me.Z)(this,"decimal",void 0),(0,Me.Z)(this,"decimalLen",void 0),(0,Me.Z)(this,"empty",void 0),(0,Me.Z)(this,"nan",void 0),Ke($t)){this.empty=!0;return}if(this.origin=String($t),$t==="-"||Number.isNaN($t)){this.nan=!0;return}var fn=$t;if(Qe(fn)&&(fn=Number(fn)),fn=typeof fn=="string"?fn:ge(fn),Ve(fn)){var Mn=rt(fn);this.negative=Mn.negative;var yt=Mn.trimStr.split(".");this.integer=BigInt(yt[0]);var Ut=yt[1]||"0";this.decimal=BigInt(Ut),this.decimalLen=Ut.length}else this.nan=!0}return(0,Ue.Z)(xt,[{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(fn){var Mn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(fn,"0"));return BigInt(Mn)}},{key:"negate",value:function(){var fn=new xt(this.toString());return fn.negative=!fn.negative,fn}},{key:"cal",value:function(fn,Mn,yt){var Ut=Math.max(this.getDecimalStr().length,fn.getDecimalStr().length),Cn=this.alignDecimal(Ut),cn=fn.alignDecimal(Ut),zn=Mn(Cn,cn).toString(),Hn=yt(Ut),Mr=rt(zn),gi=Mr.negativeStr,Xr=Mr.trimStr,Gr="".concat(gi).concat(Xr.padStart(Hn+1,"0"));return new xt("".concat(Gr.slice(0,-Hn),".").concat(Gr.slice(-Hn)))}},{key:"add",value:function(fn){if(this.isInvalidate())return new xt(fn);var Mn=new xt(fn);return Mn.isInvalidate()?this:this.cal(Mn,function(yt,Ut){return yt+Ut},function(yt){return yt})}},{key:"multi",value:function(fn){var Mn=new xt(fn);return this.isInvalidate()||Mn.isInvalidate()?new xt(NaN):this.cal(Mn,function(yt,Ut){return yt*Ut},function(yt){return yt*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(fn){return this.toString()===(fn==null?void 0:fn.toString())}},{key:"lessEquals",value:function(fn){return this.add(fn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return fn?this.isInvalidate()?"":rt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xt}(),He=function(){function xt($t){if((0,we.Z)(this,xt),(0,Me.Z)(this,"origin",""),(0,Me.Z)(this,"number",void 0),(0,Me.Z)(this,"empty",void 0),Ke($t)){this.empty=!0;return}this.origin=String($t),this.number=Number($t)}return(0,Ue.Z)(xt,[{key:"negate",value:function(){return new xt(-this.toNumber())}},{key:"add",value:function(fn){if(this.isInvalidate())return new xt(fn);var Mn=Number(fn);if(Number.isNaN(Mn))return this;var yt=this.number+Mn;if(yt>Number.MAX_SAFE_INTEGER)return new xt(Number.MAX_SAFE_INTEGER);if(yt<Number.MIN_SAFE_INTEGER)return new xt(Number.MIN_SAFE_INTEGER);var Ut=Math.max(_e(this.number),_e(Mn));return new xt(yt.toFixed(Ut))}},{key:"multi",value:function(fn){var Mn=Number(fn);if(this.isInvalidate()||Number.isNaN(Mn))return new xt(NaN);var yt=this.number*Mn;if(yt>Number.MAX_SAFE_INTEGER)return new xt(Number.MAX_SAFE_INTEGER);if(yt<Number.MIN_SAFE_INTEGER)return new xt(Number.MIN_SAFE_INTEGER);var Ut=Math.max(_e(this.number),_e(Mn));return new xt(yt.toFixed(Ut))}},{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(fn){return this.toNumber()===(fn==null?void 0:fn.toNumber())}},{key:"lessEquals",value:function(fn){return this.add(fn.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return fn?this.isInvalidate()?"":ge(this.number):this.origin}}]),xt}();function Oe(xt){return De()?new lt(xt):new He(xt)}function ve(xt,$t,fn){var Mn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xt==="")return"";var yt=rt(xt),Ut=yt.negativeStr,Cn=yt.integerStr,cn=yt.decimalStr,zn="".concat($t).concat(cn),Hn="".concat(Ut).concat(Cn);if(fn>=0){var Mr=Number(cn[fn]);if(Mr>=5&&!Mn){var gi=Oe(xt).add("".concat(Ut,"0.").concat("0".repeat(fn)).concat(10-Mr));return ve(gi.toString(),$t,fn,Mn)}return fn===0?Hn:"".concat(Hn).concat($t).concat(cn.padEnd(fn,"0").slice(0,fn))}return zn===".0"?Hn:"".concat(Hn).concat(zn)}var ye=Oe,ze=te(67656),We=te(67294);function st(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var at=st()?We.useLayoutEffect:We.useEffect,Ze=function($t,fn){var Mn=We.useRef(!0);at(function(){return $t(Mn.current)},fn),at(function(){return Mn.current=!1,function(){Mn.current=!0}},[])},Ae=function($t,fn){Ze(function(Mn){if(!Mn)return $t()},fn)},mt=Ze,je=te(27183);function it(xt,$t,fn){var Mn=React.useRef({});return(!("value"in Mn.current)||fn(Mn.current.condition,$t))&&(Mn.current.value=xt(),Mn.current.condition=$t),Mn.current.value}function qe(xt,$t){typeof xt=="function"?xt($t):(0,ue.Z)(xt)==="object"&&xt&&"current"in xt&&(xt.current=$t)}function gt(){for(var xt=arguments.length,$t=new Array(xt),fn=0;fn<xt;fn++)$t[fn]=arguments[fn];var Mn=$t.filter(function(yt){return yt});return Mn.length<=1?Mn[0]:function(yt){$t.forEach(function(Ut){qe(Ut,yt)})}}function Pt(){for(var xt=arguments.length,$t=new Array(xt),fn=0;fn<xt;fn++)$t[fn]=arguments[fn];return useMemo(function(){return gt.apply(void 0,$t)},$t,function(Mn,yt){return Mn.length!==yt.length||Mn.every(function(Ut,Cn){return Ut!==yt[Cn]})})}function Xt(xt){var $t,fn,Mn=isMemo(xt)?xt.type.type:xt.type;return!(typeof Mn=="function"&&!(($t=Mn.prototype)!==null&&$t!==void 0&&$t.render)||typeof xt=="function"&&!((fn=xt.prototype)!==null&&fn!==void 0&&fn.render))}function $e(xt){return!isValidElement(xt)||isFragment(xt)?!1:Xt(xt)}var Be={},St=[],Vt=function($t){St.push($t)};function Rt(xt,$t){if(0)var fn}function ht(xt,$t){if(0)var fn}function Bt(){Be={}}function _t(xt,$t,fn){!$t&&!Be[fn]&&(xt(!1,fn),Be[fn]=!0)}function Fn(xt,$t){_t(Rt,xt,$t)}function kn(xt,$t){_t(ht,xt,$t)}Fn.preMessage=Vt,Fn.resetWarned=Bt,Fn.noteOnce=kn;var kt=Fn;function un(xt,$t){var fn=(0,We.useRef)(null);function Mn(){try{var Ut=xt.selectionStart,Cn=xt.selectionEnd,cn=xt.value,zn=cn.substring(0,Ut),Hn=cn.substring(Cn);fn.current={start:Ut,end:Cn,value:cn,beforeTxt:zn,afterTxt:Hn}}catch(Mr){}}function yt(){if(xt&&fn.current&&$t)try{var Ut=xt.value,Cn=fn.current,cn=Cn.beforeTxt,zn=Cn.afterTxt,Hn=Cn.start,Mr=Ut.length;if(Ut.endsWith(zn))Mr=Ut.length-fn.current.afterTxt.length;else if(Ut.startsWith(cn))Mr=cn.length;else{var gi=cn[Hn-1],Xr=Ut.indexOf(gi,Hn-1);Xr!==-1&&(Mr=Xr+1)}xt.setSelectionRange(Mr,Mr)}catch(Gr){kt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Gr.message))}}return[Mn,yt]}var Wn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var xt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(xt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(xt==null?void 0:xt.substr(0,4))},An=function(){var $t=(0,We.useState)(!1),fn=(0,Ee.Z)($t,2),Mn=fn[0],yt=fn[1];return mt(function(){yt(Wn())},[]),Mn},Ie=An,he=function($t){return+setTimeout($t,16)},ce=function($t){return clearTimeout($t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(he=function($t){return window.requestAnimationFrame($t)},ce=function($t){return window.cancelAnimationFrame($t)});var me=0,pe=new Map;function le(xt){pe.delete(xt)}var Le=function($t){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;me+=1;var Mn=me;function yt(Ut){if(Ut===0)le(Mn),$t();else{var Cn=he(function(){yt(Ut-1)});pe.set(Mn,Cn)}}return yt(fn),Mn};Le.cancel=function(xt){var $t=pe.get(xt);return le($t),ce($t)};var dt=Le,Nt=200,tn=600;function an(xt){var $t=xt.prefixCls,fn=xt.upNode,Mn=xt.downNode,yt=xt.upDisabled,Ut=xt.downDisabled,Cn=xt.onStep,cn=We.useRef(),zn=We.useRef([]),Hn=We.useRef();Hn.current=Cn;var Mr=function(){clearTimeout(cn.current)},gi=function(Oa,Qa){Oa.preventDefault(),Mr(),Hn.current(Qa);function Li(){Hn.current(Qa),cn.current=setTimeout(Li,Nt)}cn.current=setTimeout(Li,tn)};We.useEffect(function(){return function(){Mr(),zn.current.forEach(function(Jr){return dt.cancel(Jr)})}},[]);var Xr=Ie();if(Xr)return null;var Gr="".concat($t,"-handler"),di=Ge()(Gr,"".concat(Gr,"-up"),(0,Me.Z)({},"".concat(Gr,"-up-disabled"),yt)),ci=Ge()(Gr,"".concat(Gr,"-down"),(0,Me.Z)({},"".concat(Gr,"-down-disabled"),Ut)),Si=function(){return zn.current.push(dt(Mr))},Jn={unselectable:"on",role:"button",onMouseUp:Si,onMouseLeave:Si};return We.createElement("div",{className:"".concat(Gr,"-wrap")},We.createElement("span",(0,xe.Z)({},Jn,{onMouseDown:function(Oa){gi(Oa,!0)},"aria-label":"Increase Value","aria-disabled":yt,className:di}),fn||We.createElement("span",{unselectable:"on",className:"".concat($t,"-handler-up-inner")})),We.createElement("span",(0,xe.Z)({},Jn,{onMouseDown:function(Oa){gi(Oa,!1)},"aria-label":"Decrease Value","aria-disabled":Ut,className:ci}),Mn||We.createElement("span",{unselectable:"on",className:"".concat($t,"-handler-down-inner")})))}function Yt(xt){var $t=typeof xt=="number"?ge(xt):rt(xt).fullStr,fn=$t.includes(".");return fn?rt($t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xt+"0"}var dn=te(87887),Mt=function(){var xt=(0,We.useRef)(0),$t=function(){dt.cancel(xt.current)};return(0,We.useEffect)(function(){return $t},[]),function(fn){$t(),xt.current=dt(function(){fn()})}},Wt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],qt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Gt=function($t,fn){return $t||fn.isEmpty()?fn.toString():fn.toNumber()},jt=function($t){var fn=ye($t);return fn.isInvalidate()?null:fn},sr=We.forwardRef(function(xt,$t){var fn,Mn=xt.prefixCls,yt=Mn===void 0?"rc-input-number":Mn,Ut=xt.className,Cn=xt.style,cn=xt.min,zn=xt.max,Hn=xt.step,Mr=Hn===void 0?1:Hn,gi=xt.defaultValue,Xr=xt.value,Gr=xt.disabled,di=xt.readOnly,ci=xt.upHandler,Si=xt.downHandler,Jn=xt.keyboard,Jr=xt.controls,Oa=Jr===void 0?!0:Jr,Qa=xt.classNames,Li=xt.stringMode,qi=xt.parser,$a=xt.formatter,zi=xt.precision,to=xt.decimalSeparator,_r=xt.onChange,Wo=xt.onInput,_o=xt.onPressEnter,bl=xt.onStep,jo=(0,fe.Z)(xt,Wt),Po="".concat(yt,"-input"),la=We.useRef(null),el=We.useState(!1),No=(0,Ee.Z)(el,2),rl=No[0],vl=No[1],ll=We.useRef(!1),Uo=We.useRef(!1),gl=We.useRef(!1),wl=We.useState(function(){return ye(Xr!=null?Xr:gi)}),dl=(0,Ee.Z)(wl,2),io=dl[0],wn=dl[1];function pn(Er){Xr===void 0&&wn(Er)}var ar=We.useCallback(function(Er,wr){if(!wr)return zi>=0?zi:Math.max(_e(Er),_e(Mr))},[zi,Mr]),tr=We.useCallback(function(Er){var wr=String(Er);if(qi)return qi(wr);var Br=wr;return to&&(Br=Br.replace(to,".")),Br.replace(/[^\w.-]+/g,"")},[qi,to]),Yr=We.useRef(""),$i=We.useCallback(function(Er,wr){if($a)return $a(Er,{userTyping:wr,input:String(Yr.current)});var Br=typeof Er=="number"?ge(Er):Er;if(!wr){var Or=ar(Br,wr);if(Ve(Br)&&(to||Or>=0)){var Wr=to||".";Br=ve(Br,Wr,Or)}}return Br},[$a,ar,to]),ia=We.useState(function(){var Er=gi!=null?gi:Xr;return io.isInvalidate()&&["string","number"].includes((0,ue.Z)(Er))?Number.isNaN(Er)?"":Er:$i(io.toString(),!1)}),sa=(0,Ee.Z)(ia,2),ka=sa[0],ga=sa[1];Yr.current=ka;function ho(Er,wr){ga($i(Er.isInvalidate()?Er.toString(!1):Er.toString(!wr),wr))}var ao=We.useMemo(function(){return jt(zn)},[zn,zi]),mo=We.useMemo(function(){return jt(cn)},[cn,zi]),Un=We.useMemo(function(){return!ao||!io||io.isInvalidate()?!1:ao.lessEquals(io)},[ao,io]),ir=We.useMemo(function(){return!mo||!io||io.isInvalidate()?!1:io.lessEquals(mo)},[mo,io]),Sr=un(la.current,rl),Ce=(0,Ee.Z)(Sr,2),Xe=Ce[0],nt=Ce[1],ut=function(wr){return ao&&!wr.lessEquals(ao)?ao:mo&&!mo.lessEquals(wr)?mo:null},ft=function(wr){return!ut(wr)},Ct=function(wr,Br){var Or=wr,Wr=ft(Or)||Or.isEmpty();if(!Or.isEmpty()&&!Br&&(Or=ut(Or)||Or,Wr=!0),!di&&!Gr&&Wr){var pt=Or.toString(),vt=ar(pt,Br);return vt>=0&&(Or=ye(ve(pt,".",vt)),ft(Or)||(Or=ye(ve(pt,".",vt,!0)))),Or.equals(io)||(pn(Or),_r==null||_r(Or.isEmpty()?null:Gt(Li,Or)),Xr===void 0&&ho(Or,Br)),Or}return io},wt=Mt(),sn=function Er(wr){if(Xe(),Yr.current=wr,ga(wr),!Uo.current){var Br=tr(wr),Or=ye(Br);Or.isNaN()||Ct(Or,!0)}Wo==null||Wo(wr),wt(function(){var Wr=wr;qi||(Wr=wr.replace(/。/g,".")),Wr!==wr&&Er(Wr)})},En=function(){Uo.current=!0},ur=function(){Uo.current=!1,sn(la.current.value)},yr=function(wr){sn(wr.target.value)},fr=function(wr){var Br;if(!(wr&&Un||!wr&&ir)){ll.current=!1;var Or=ye(gl.current?Yt(Mr):Mr);wr||(Or=Or.negate());var Wr=(io||ye(0)).add(Or.toString()),pt=Ct(Wr,!1);bl==null||bl(Gt(Li,pt),{offset:gl.current?Yt(Mr):Mr,type:wr?"up":"down"}),(Br=la.current)===null||Br===void 0||Br.focus()}},Qn=function(wr){var Br=ye(tr(ka)),Or=Br;Br.isNaN()?Or=Ct(io,wr):Or=Ct(Br,wr),Xr!==void 0?ho(io,!1):Or.isNaN()||ho(Or,!1)},Yn=function(){ll.current=!0},On=function(wr){var Br=wr.key,Or=wr.shiftKey;ll.current=!0,gl.current=Or,Br==="Enter"&&(Uo.current||(ll.current=!1),Qn(!1),_o==null||_o(wr)),Jn!==!1&&!Uo.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Br)&&(fr(Br==="Up"||Br==="ArrowUp"),wr.preventDefault())},hr=function(){ll.current=!1,gl.current=!1},zr=function(){Qn(!1),vl(!1),ll.current=!1};return Ae(function(){io.isInvalidate()||ho(io,!1)},[zi]),Ae(function(){var Er=ye(Xr);wn(Er);var wr=ye(tr(ka));(!Er.equals(wr)||!ll.current||$a)&&ho(Er,ll.current)},[Xr]),Ae(function(){$a&&nt()},[ka]),We.createElement("div",{className:Ge()(yt,Qa==null?void 0:Qa.input,Ut,(fn={},(0,Me.Z)(fn,"".concat(yt,"-focused"),rl),(0,Me.Z)(fn,"".concat(yt,"-disabled"),Gr),(0,Me.Z)(fn,"".concat(yt,"-readonly"),di),(0,Me.Z)(fn,"".concat(yt,"-not-a-number"),io.isNaN()),(0,Me.Z)(fn,"".concat(yt,"-out-of-range"),!io.isInvalidate()&&!ft(io)),fn)),style:Cn,onFocus:function(){vl(!0)},onBlur:zr,onKeyDown:On,onKeyUp:hr,onCompositionStart:En,onCompositionEnd:ur,onBeforeInput:Yn},Oa&&We.createElement(an,{prefixCls:yt,upNode:ci,downNode:Si,upDisabled:Un,downDisabled:ir,onStep:fr}),We.createElement("div",{className:"".concat(Po,"-wrap")},We.createElement("input",(0,xe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":zn,"aria-valuenow":io.isInvalidate()?null:io.toString(),step:Mr},jo,{ref:gt(la,$t),className:Po,value:ka,onChange:yr,disabled:Gr,readOnly:di}))))}),Dt=We.forwardRef(function(xt,$t){var fn=xt.disabled,Mn=xt.style,yt=xt.prefixCls,Ut=xt.value,Cn=xt.prefix,cn=xt.suffix,zn=xt.addonBefore,Hn=xt.addonAfter,Mr=xt.classes,gi=xt.className,Xr=xt.classNames,Gr=(0,fe.Z)(xt,qt),di=We.useRef(null),ci=function(Jn){di.current&&(0,dn.nH)(di.current,Jn)};return We.createElement(ze.BaseInput,{inputElement:We.createElement(sr,(0,xe.Z)({prefixCls:yt,disabled:fn,classNames:Xr,ref:gt(di,$t)},Gr)),className:gi,triggerFocus:ci,prefixCls:yt,value:Ut,disabled:fn,style:Mn,prefix:Cn,suffix:cn,addonAfter:Hn,addonBefore:zn,classes:Mr,classNames:Xr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Dt.displayName="InputNumber";var Jt=Dt,Gn=Jt,Bn=te(9708),Sn=te(53124),or=te(46735),gr=te(98866),kr=te(98675),Lr=te(65223),Qr=te(4173),Ir=te(47673),Dn=te(14747),cr=te(80110),vr=te(67968),Ur=te(45503);const ti=(xt,$t)=>{let{componentCls:fn,borderRadiusSM:Mn,borderRadiusLG:yt}=xt;const Ut=$t==="lg"?yt:Mn;return{[`&-${$t}`]:{[`${fn}-handler-wrap`]:{borderStartEndRadius:Ut,borderEndEndRadius:Ut},[`${fn}-handler-up`]:{borderStartEndRadius:Ut},[`${fn}-handler-down`]:{borderEndEndRadius:Ut}}}},Kt=xt=>{const{componentCls:$t,lineWidth:fn,lineType:Mn,colorBorder:yt,borderRadius:Ut,fontSizeLG:Cn,controlHeightLG:cn,controlHeightSM:zn,colorError:Hn,paddingInlineSM:Mr,colorTextDescription:gi,motionDurationMid:Xr,handleHoverColor:Gr,paddingInline:di,paddingBlock:ci,handleBg:Si,handleActiveBg:Jn,colorTextDisabled:Jr,borderRadiusSM:Oa,borderRadiusLG:Qa,controlWidth:Li,handleVisible:qi,handleBorderColor:$a}=xt;return[{[$t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dn.Wf)(xt)),(0,Ir.ik)(xt)),(0,Ir.bi)(xt,$t)),{display:"inline-block",width:Li,margin:0,padding:0,border:`${fn}px ${Mn} ${yt}`,borderRadius:Ut,"&-rtl":{direction:"rtl",[`${$t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Cn,borderRadius:Qa,[`input${$t}-input`]:{height:cn-2*fn}},"&-sm":{padding:0,borderRadius:Oa,[`input${$t}-input`]:{height:zn-2*fn,padding:`0 ${Mr}px`}},"&:hover":Object.assign({},(0,Ir.pU)(xt)),"&-focused":Object.assign({},(0,Ir.M1)(xt)),"&-out-of-range":{[`${$t}-input-wrap`]:{input:{color:Hn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dn.Wf)(xt)),(0,Ir.s7)(xt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${$t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${$t}-group-addon`]:{borderRadius:Qa,fontSize:xt.fontSizeLG}},"&-sm":{[`${$t}-group-addon`]:{borderRadius:Oa}},[`${$t}-wrapper-disabled > ${$t}-group-addon`]:Object.assign({},(0,Ir.Xy)(xt))}}),[`&-disabled ${$t}-input`]:{cursor:"not-allowed"},[$t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dn.Wf)(xt)),{width:"100%",padding:`${ci}px ${di}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${Xr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ir.nz)(xt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[$t]:Object.assign(Object.assign(Object.assign({[`&:hover ${$t}-handler-wrap, &-focused ${$t}-handler-wrap`]:{opacity:1},[`${$t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xt.handleWidth,height:"100%",background:Si,borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,opacity:qi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Xr} linear ${Xr}`,[`${$t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${$t}-handler-up-inner,
${$t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:xt.handleFontSize}}},[`${$t}-handler`]:{height:"50%",overflow:"hidden",color:gi,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${fn}px ${Mn} ${$a}`,transition:`all ${Xr} linear`,"&:active":{background:Jn},"&:hover":{height:"60%",[`
${$t}-handler-up-inner,
${$t}-handler-down-inner
`]:{color:Gr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dn.Ro)()),{color:gi,transition:`all ${Xr} linear`,userSelect:"none"})},[`${$t}-handler-up`]:{borderStartEndRadius:Ut},[`${$t}-handler-down`]:{borderBlockStart:`${fn}px ${Mn} ${$a}`,borderEndEndRadius:Ut}},ti(xt,"lg")),ti(xt,"sm")),{"&-disabled, &-readonly":{[`${$t}-handler-wrap`]:{display:"none"},[`${$t}-input`]:{color:"inherit"}},[`
${$t}-handler-up-disabled,
${$t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${$t}-handler-up-disabled:hover &-handler-up-inner,
${$t}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Jr}})},{[`${$t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${$t}-handler-down`]:{borderBlockStartWidth:0}}}]},_n=xt=>{const{componentCls:$t,paddingBlock:fn,paddingInline:Mn,inputAffixPadding:yt,controlWidth:Ut,borderRadiusLG:Cn,borderRadiusSM:cn}=xt;return{[`${$t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Ir.ik)(xt)),(0,Ir.bi)(xt,`${$t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Ut,padding:0,paddingInlineStart:Mn,"&-lg":{borderRadius:Cn},"&-sm":{borderRadius:cn},[`&:not(${$t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,Ir.pU)(xt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${$t}-disabled`]:{background:"transparent"},[`> div${$t}`]:{width:"100%",border:"none",outline:"none",[`&${$t}-focused`]:{boxShadow:"none !important"}},[`input${$t}-input`]:{padding:`${fn}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${$t}-handler-wrap`]:{zIndex:2},[$t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:yt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Mn,marginInlineStart:yt}}})}};var nn=(0,vr.Z)("InputNumber",xt=>{const $t=(0,Ur.TS)(xt,(0,Ir.e5)(xt));return[Kt($t),_n($t),(0,cr.c)($t)]},xt=>Object.assign(Object.assign({},(0,Ir.TM)(xt)),{controlWidth:90,handleWidth:xt.controlHeightSM-xt.lineWidth*2,handleFontSize:xt.fontSize/2,handleVisible:"auto",handleActiveBg:xt.colorFillAlter,handleBg:xt.colorBgContainer,handleHoverColor:xt.colorPrimary,handleBorderColor:xt.colorBorder})),In=function(xt,$t){var fn={};for(var Mn in xt)Object.prototype.hasOwnProperty.call(xt,Mn)&&$t.indexOf(Mn)<0&&(fn[Mn]=xt[Mn]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Mn=Object.getOwnPropertySymbols(xt);yt<Mn.length;yt++)$t.indexOf(Mn[yt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Mn[yt])&&(fn[Mn[yt]]=xt[Mn[yt]]);return fn};const nr=We.forwardRef((xt,$t)=>{const{getPrefixCls:fn,direction:Mn}=We.useContext(Sn.E_),yt=We.useRef(null);We.useImperativeHandle($t,()=>yt.current);const{className:Ut,rootClassName:Cn,size:cn,disabled:zn,prefixCls:Hn,addonBefore:Mr,addonAfter:gi,prefix:Xr,bordered:Gr=!0,readOnly:di,status:ci,controls:Si}=xt,Jn=In(xt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Jr=fn("input-number",Hn),[Oa,Qa]=nn(Jr),{compactSize:Li,compactItemClassnames:qi}=(0,Qr.ri)(Jr,Mn);let $a=We.createElement(de.Z,{className:`${Jr}-handler-up-inner`}),zi=We.createElement(ee.Z,{className:`${Jr}-handler-down-inner`});const to=typeof Si=="boolean"?Si:void 0;typeof Si=="object"&&($a=typeof Si.upIcon=="undefined"?$a:We.createElement("span",{className:`${Jr}-handler-up-inner`},Si.upIcon),zi=typeof Si.downIcon=="undefined"?zi:We.createElement("span",{className:`${Jr}-handler-down-inner`},Si.downIcon));const{hasFeedback:_r,status:Wo,isFormItemInput:_o,feedbackIcon:bl}=We.useContext(Lr.aM),jo=(0,Bn.F)(Wo,ci),Po=(0,kr.Z)(ll=>{var Uo;return(Uo=cn!=null?cn:Li)!==null&&Uo!==void 0?Uo:ll}),la=We.useContext(gr.Z),el=zn!=null?zn:la,No=Ge()({[`${Jr}-lg`]:Po==="large",[`${Jr}-sm`]:Po==="small",[`${Jr}-rtl`]:Mn==="rtl",[`${Jr}-borderless`]:!Gr,[`${Jr}-in-form-item`]:_o},(0,Bn.Z)(Jr,jo),qi,Qa),rl=`${Jr}-group`,vl=We.createElement(Gn,Object.assign({ref:yt,disabled:el,className:Ge()(Ut,Cn),upHandler:$a,downHandler:zi,prefixCls:Jr,readOnly:di,controls:to,prefix:Xr,suffix:_r&&bl,addonAfter:gi&&We.createElement(Qr.BR,null,We.createElement(Lr.Ux,{override:!0,status:!0},gi)),addonBefore:Mr&&We.createElement(Qr.BR,null,We.createElement(Lr.Ux,{override:!0,status:!0},Mr)),classNames:{input:No},classes:{affixWrapper:Ge()((0,Bn.Z)(`${Jr}-affix-wrapper`,jo,_r),{[`${Jr}-affix-wrapper-sm`]:Po==="small",[`${Jr}-affix-wrapper-lg`]:Po==="large",[`${Jr}-affix-wrapper-rtl`]:Mn==="rtl",[`${Jr}-affix-wrapper-borderless`]:!Gr},Qa),wrapper:Ge()({[`${rl}-rtl`]:Mn==="rtl",[`${Jr}-wrapper-disabled`]:el},Qa),group:Ge()({[`${Jr}-group-wrapper-sm`]:Po==="small",[`${Jr}-group-wrapper-lg`]:Po==="large",[`${Jr}-group-wrapper-rtl`]:Mn==="rtl"},(0,Bn.Z)(`${Jr}-group-wrapper`,jo,_r),Qa)}},Jn));return Oa(vl)}),Rr=nr,Pr=xt=>We.createElement(or.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},We.createElement(nr,Object.assign({},xt)));Rr._InternalPanelDoNotUseOrYouWillBeFired=Pr;var br=Rr},82586:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return lt},n:function(){return ge}});var ee=te(16646),de=te(94184),ke=te.n(de),Ge=te(67656),xe=te(17799),Me=te(67294),ue=te(9708),Ee=te(53124),fe=te(98866),we=te(98675),Ue=te(65223),De=te(4173),Ke=te(72922),rt=te(47673);function Qe(He){return!!(He.prefix||He.suffix||He.allowClear)}var _e=function(He,Oe){var ve={};for(var ye in He)Object.prototype.hasOwnProperty.call(He,ye)&&Oe.indexOf(ye)<0&&(ve[ye]=He[ye]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ye=Object.getOwnPropertySymbols(He);ze<ye.length;ze++)Oe.indexOf(ye[ze])<0&&Object.prototype.propertyIsEnumerable.call(He,ye[ze])&&(ve[ye[ze]]=He[ye[ze]]);return ve};function ge(He,Oe){if(!He)return;He.focus(Oe);const{cursor:ve}=Oe||{};if(ve){const ye=He.value.length;switch(ve){case"start":He.setSelectionRange(0,0);break;case"end":He.setSelectionRange(ye,ye);break;default:He.setSelectionRange(0,ye);break}}}var lt=(0,Me.forwardRef)((He,Oe)=>{var ve;const{prefixCls:ye,bordered:ze=!0,status:We,size:st,disabled:at,onBlur:Ze,onFocus:Ae,suffix:mt,allowClear:je,addonAfter:it,addonBefore:qe,className:gt,style:Pt,styles:Xt,rootClassName:$e,onChange:Be,classNames:St}=He,Vt=_e(He,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Rt,direction:ht,input:Bt}=Me.useContext(Ee.E_),_t=Rt("input",ye),Fn=(0,Me.useRef)(null),[kn,kt]=(0,rt.ZP)(_t),{compactSize:un,compactItemClassnames:Wn}=(0,De.ri)(_t,ht),An=(0,we.Z)(Wt=>{var qt;return(qt=st!=null?st:un)!==null&&qt!==void 0?qt:Wt}),Ie=Me.useContext(fe.Z),he=at!=null?at:Ie,{status:ce,hasFeedback:me,feedbackIcon:pe}=(0,Me.useContext)(Ue.aM),le=(0,ue.F)(ce,We),Le=Qe(He)||!!me,dt=(0,Me.useRef)(Le);(0,Me.useEffect)(()=>{var Wt;Le&&dt.current,dt.current=Le},[Le]);const Nt=(0,Ke.Z)(Fn,!0),tn=Wt=>{Nt(),Ze==null||Ze(Wt)},an=Wt=>{Nt(),Ae==null||Ae(Wt)},Yt=Wt=>{Nt(),Be==null||Be(Wt)},dn=(me||mt)&&Me.createElement(Me.Fragment,null,mt,me&&pe);let Mt;return typeof je=="object"&&(je!=null&&je.clearIcon)?Mt=je:je&&(Mt={clearIcon:Me.createElement(ee.Z,null)}),kn(Me.createElement(Ge.default,Object.assign({ref:(0,xe.sQ)(Oe,Fn),prefixCls:_t,autoComplete:Bt==null?void 0:Bt.autoComplete},Vt,{disabled:he,onBlur:tn,onFocus:an,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Pt),styles:Object.assign(Object.assign({},Bt==null?void 0:Bt.styles),Xt),suffix:dn,allowClear:Mt,className:ke()(gt,$e,Wn,Bt==null?void 0:Bt.className),onChange:Yt,addonAfter:it&&Me.createElement(De.BR,null,Me.createElement(Ue.Ux,{override:!0,status:!0},it)),addonBefore:qe&&Me.createElement(De.BR,null,Me.createElement(Ue.Ux,{override:!0,status:!0},qe)),classNames:Object.assign(Object.assign(Object.assign({},St),Bt==null?void 0:Bt.classNames),{input:ke()({[`${_t}-sm`]:An==="small",[`${_t}-lg`]:An==="large",[`${_t}-rtl`]:ht==="rtl",[`${_t}-borderless`]:!ze},!Le&&(0,ue.Z)(_t,le),St==null?void 0:St.input,(ve=Bt==null?void 0:Bt.classNames)===null||ve===void 0?void 0:ve.input,kt)}),classes:{affixWrapper:ke()({[`${_t}-affix-wrapper-sm`]:An==="small",[`${_t}-affix-wrapper-lg`]:An==="large",[`${_t}-affix-wrapper-rtl`]:ht==="rtl",[`${_t}-affix-wrapper-borderless`]:!ze},(0,ue.Z)(`${_t}-affix-wrapper`,le,me),kt),wrapper:ke()({[`${_t}-group-rtl`]:ht==="rtl"},kt),group:ke()({[`${_t}-group-wrapper-sm`]:An==="small",[`${_t}-group-wrapper-lg`]:An==="large",[`${_t}-group-wrapper-rtl`]:ht==="rtl",[`${_t}-group-wrapper-disabled`]:he},(0,ue.Z)(`${_t}-group-wrapper`,le,me),kt)}})))})},96330:function(vn,Tt,te){"use strict";var ee=te(16646),de=te(94184),ke=te.n(de),Ge=te(64701),xe=te(67294),Me=te(9708),ue=te(53124),Ee=te(98866),fe=te(98675),we=te(65223),Ue=te(82586),De=te(47673),Ke=function(Qe,_e){var ge={};for(var Ve in Qe)Object.prototype.hasOwnProperty.call(Qe,Ve)&&_e.indexOf(Ve)<0&&(ge[Ve]=Qe[Ve]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Ve=Object.getOwnPropertySymbols(Qe);lt<Ve.length;lt++)_e.indexOf(Ve[lt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ve[lt])&&(ge[Ve[lt]]=Qe[Ve[lt]]);return ge};const rt=(0,xe.forwardRef)((Qe,_e)=>{const{prefixCls:ge,bordered:Ve=!0,size:lt,disabled:He,status:Oe,allowClear:ve,showCount:ye,classNames:ze,rootClassName:We,className:st}=Qe,at=Ke(Qe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ze,direction:Ae}=xe.useContext(ue.E_),mt=(0,fe.Z)(lt),je=xe.useContext(Ee.Z),it=He!=null?He:je,{status:qe,hasFeedback:gt,feedbackIcon:Pt}=xe.useContext(we.aM),Xt=(0,Me.F)(qe,Oe),$e=xe.useRef(null);xe.useImperativeHandle(_e,()=>{var ht;return{resizableTextArea:(ht=$e.current)===null||ht===void 0?void 0:ht.resizableTextArea,focus:Bt=>{var _t,Fn;(0,Ue.n)((Fn=(_t=$e.current)===null||_t===void 0?void 0:_t.resizableTextArea)===null||Fn===void 0?void 0:Fn.textArea,Bt)},blur:()=>{var Bt;return(Bt=$e.current)===null||Bt===void 0?void 0:Bt.blur()}}});const Be=Ze("input",ge);let St;typeof ve=="object"&&(ve!=null&&ve.clearIcon)?St=ve:ve&&(St={clearIcon:xe.createElement(ee.Z,null)});const[Vt,Rt]=(0,De.ZP)(Be);return Vt(xe.createElement(Ge.default,Object.assign({},at,{disabled:it,allowClear:St,className:ke()(st,We),classes:{affixWrapper:ke()(`${Be}-textarea-affix-wrapper`,{[`${Be}-affix-wrapper-rtl`]:Ae==="rtl",[`${Be}-affix-wrapper-borderless`]:!Ve,[`${Be}-affix-wrapper-sm`]:mt==="small",[`${Be}-affix-wrapper-lg`]:mt==="large",[`${Be}-textarea-show-count`]:ye},(0,Me.Z)(`${Be}-affix-wrapper`,Xt),Rt)},classNames:Object.assign(Object.assign({},ze),{textarea:ke()({[`${Be}-borderless`]:!Ve,[`${Be}-sm`]:mt==="small",[`${Be}-lg`]:mt==="large"},(0,Me.Z)(Be,Xt),Rt,ze==null?void 0:ze.textarea)}),prefixCls:Be,suffix:gt&&xe.createElement("span",{className:`${Be}-textarea-suffix`},Pt),showCount:ye,ref:$e})))});Tt.Z=rt},72922:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});var ee=te(67294);function de(ke,Ge){const xe=(0,ee.useRef)([]),Me=()=>{xe.current.push(setTimeout(()=>{var ue,Ee,fe,we;!((ue=ke.current)===null||ue===void 0)&&ue.input&&((Ee=ke.current)===null||Ee===void 0?void 0:Ee.input.getAttribute("type"))==="password"&&(!((fe=ke.current)===null||fe===void 0)&&fe.input.hasAttribute("value"))&&((we=ke.current)===null||we===void 0||we.input.removeAttribute("value"))}))};return(0,ee.useEffect)(()=>(Ge&&Me(),()=>xe.current.forEach(ue=>{ue&&clearTimeout(ue)})),[]),Me}},69677:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return mt}});var ee=te(94184),de=te.n(ee),ke=te(67294),Ge=te(53124),xe=te(65223),Me=te(47673),Ee=je=>{const{getPrefixCls:it,direction:qe}=(0,ke.useContext)(Ge.E_),{prefixCls:gt,className:Pt}=je,Xt=it("input-group",gt),$e=it("input"),[Be,St]=(0,Me.ZP)($e),Vt=de()(Xt,{[`${Xt}-lg`]:je.size==="large",[`${Xt}-sm`]:je.size==="small",[`${Xt}-compact`]:je.compact,[`${Xt}-rtl`]:qe==="rtl"},St,Pt),Rt=(0,ke.useContext)(xe.aM),ht=(0,ke.useMemo)(()=>Object.assign(Object.assign({},Rt),{isFormItemInput:!1}),[Rt]);return Be(ke.createElement("span",{className:Vt,style:je.style,onMouseEnter:je.onMouseEnter,onMouseLeave:je.onMouseLeave,onFocus:je.onFocus,onBlur:je.onBlur},ke.createElement(xe.aM.Provider,{value:ht},je.children)))},fe=te(82586),we=te(63237),Ue=te(99569),De=te(10366),Ke=te(17799),rt=te(72922),Qe=function(je,it){var qe={};for(var gt in je)Object.prototype.hasOwnProperty.call(je,gt)&&it.indexOf(gt)<0&&(qe[gt]=je[gt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,gt=Object.getOwnPropertySymbols(je);Pt<gt.length;Pt++)it.indexOf(gt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(je,gt[Pt])&&(qe[gt[Pt]]=je[gt[Pt]]);return qe};const _e=je=>je?ke.createElement(Ue.Z,null):ke.createElement(we.Z,null),ge={click:"onClick",hover:"onMouseOver"};var lt=ke.forwardRef((je,it)=>{const{visibilityToggle:qe=!0}=je,gt=typeof qe=="object"&&qe.visible!==void 0,[Pt,Xt]=(0,ke.useState)(()=>gt?qe.visible:!1),$e=(0,ke.useRef)(null);ke.useEffect(()=>{gt&&Xt(qe.visible)},[gt,qe]);const Be=(0,rt.Z)($e),St=()=>{const{disabled:he}=je;he||(Pt&&Be(),Xt(ce=>{var me;const pe=!ce;return typeof qe=="object"&&((me=qe.onVisibleChange)===null||me===void 0||me.call(qe,pe)),pe}))},Vt=he=>{const{action:ce="click",iconRender:me=_e}=je,pe=ge[ce]||"",le=me(Pt),Le={[pe]:St,className:`${he}-icon`,key:"passwordIcon",onMouseDown:dt=>{dt.preventDefault()},onMouseUp:dt=>{dt.preventDefault()}};return ke.cloneElement(ke.isValidElement(le)?le:ke.createElement("span",null,le),Le)},{className:Rt,prefixCls:ht,inputPrefixCls:Bt,size:_t}=je,Fn=Qe(je,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:kn}=ke.useContext(Ge.E_),kt=kn("input",Bt),un=kn("input-password",ht),Wn=qe&&Vt(un),An=de()(un,Rt,{[`${un}-${_t}`]:!!_t}),Ie=Object.assign(Object.assign({},(0,De.Z)(Fn,["suffix","iconRender","visibilityToggle"])),{type:Pt?"text":"password",className:An,prefixCls:kt,suffix:Wn});return _t&&(Ie.size=_t),ke.createElement(fe.Z,Object.assign({ref:(0,Ke.sQ)(it,$e)},Ie))}),He=te(72395),Oe=te(96159),ve=te(71577),ye=te(98675),ze=te(4173),We=function(je,it){var qe={};for(var gt in je)Object.prototype.hasOwnProperty.call(je,gt)&&it.indexOf(gt)<0&&(qe[gt]=je[gt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,gt=Object.getOwnPropertySymbols(je);Pt<gt.length;Pt++)it.indexOf(gt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(je,gt[Pt])&&(qe[gt[Pt]]=je[gt[Pt]]);return qe},at=ke.forwardRef((je,it)=>{const{prefixCls:qe,inputPrefixCls:gt,className:Pt,size:Xt,suffix:$e,enterButton:Be=!1,addonAfter:St,loading:Vt,disabled:Rt,onSearch:ht,onChange:Bt,onCompositionStart:_t,onCompositionEnd:Fn}=je,kn=We(je,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:kt,direction:un}=ke.useContext(Ge.E_),Wn=ke.useRef(!1),An=kt("input-search",qe),Ie=kt("input",gt),{compactSize:he}=(0,ze.ri)(An,un),ce=(0,ye.Z)(Gt=>{var jt;return(jt=Xt!=null?Xt:he)!==null&&jt!==void 0?jt:Gt}),me=ke.useRef(null),pe=Gt=>{Gt&&Gt.target&&Gt.type==="click"&&ht&&ht(Gt.target.value,Gt,{source:"clear"}),Bt&&Bt(Gt)},le=Gt=>{var jt;document.activeElement===((jt=me.current)===null||jt===void 0?void 0:jt.input)&&Gt.preventDefault()},Le=Gt=>{var jt,sr;ht&&ht((sr=(jt=me.current)===null||jt===void 0?void 0:jt.input)===null||sr===void 0?void 0:sr.value,Gt,{source:"input"})},dt=Gt=>{Wn.current||Vt||Le(Gt)},Nt=typeof Be=="boolean"?ke.createElement(He.Z,null):null,tn=`${An}-button`;let an;const Yt=Be||{},dn=Yt.type&&Yt.type.__ANT_BUTTON===!0;dn||Yt.type==="button"?an=(0,Oe.Tm)(Yt,Object.assign({onMouseDown:le,onClick:Gt=>{var jt,sr;(sr=(jt=Yt==null?void 0:Yt.props)===null||jt===void 0?void 0:jt.onClick)===null||sr===void 0||sr.call(jt,Gt),Le(Gt)},key:"enterButton"},dn?{className:tn,size:ce}:{})):an=ke.createElement(ve.ZP,{className:tn,type:Be?"primary":void 0,size:ce,disabled:Rt,key:"enterButton",onMouseDown:le,onClick:Le,loading:Vt,icon:Nt},Be),St&&(an=[an,(0,Oe.Tm)(St,{key:"addonAfter"})]);const Mt=de()(An,{[`${An}-rtl`]:un==="rtl",[`${An}-${ce}`]:!!ce,[`${An}-with-button`]:!!Be},Pt),Wt=Gt=>{Wn.current=!0,_t==null||_t(Gt)},qt=Gt=>{Wn.current=!1,Fn==null||Fn(Gt)};return ke.createElement(fe.Z,Object.assign({ref:(0,Ke.sQ)(me,it),onPressEnter:dt},kn,{size:ce,onCompositionStart:Wt,onCompositionEnd:qt,prefixCls:Ie,addonAfter:an,suffix:$e,onChange:pe,className:Mt,disabled:Rt}))}),Ze=te(96330);const Ae=fe.Z;Ae.Group=Ee,Ae.Search=at,Ae.TextArea=Ze.Z,Ae.Password=lt;var mt=Ae},47673:function(vn,Tt,te){"use strict";te.d(Tt,{M1:function(){return ue},TM:function(){return Oe},Xy:function(){return Ee},bi:function(){return Ue},e5:function(){return He},ik:function(){return De},nz:function(){return xe},pU:function(){return Me},s7:function(){return Ke},x0:function(){return we}});var ee=te(14747),de=te(80110),ke=te(45503),Ge=te(67968);const xe=ve=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ve,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Me=ve=>({borderColor:ve.hoverBorderColor}),ue=ve=>({borderColor:ve.activeBorderColor,boxShadow:ve.activeShadow,outline:0}),Ee=ve=>({color:ve.colorTextDisabled,backgroundColor:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Me((0,ke.TS)(ve,{hoverBorderColor:ve.colorBorder})))}),fe=ve=>{const{paddingBlockLG:ye,fontSizeLG:ze,lineHeightLG:We,borderRadiusLG:st,paddingInlineLG:at}=ve;return{padding:`${ye}px ${at}px`,fontSize:ze,lineHeight:We,borderRadius:st}},we=ve=>({padding:`${ve.paddingBlockSM}px ${ve.paddingInlineSM}px`,borderRadius:ve.borderRadiusSM}),Ue=(ve,ye)=>{const{componentCls:ze,colorError:We,colorWarning:st,errorActiveShadow:at,warningActiveShadow:Ze,colorErrorBorderHover:Ae,colorWarningBorderHover:mt}=ve;return{[`&-status-error:not(${ye}-disabled):not(${ye}-borderless)${ye}`]:{borderColor:We,"&:hover":{borderColor:Ae},"&:focus, &-focused":Object.assign({},ue((0,ke.TS)(ve,{activeBorderColor:We,activeShadow:at}))),[`${ze}-prefix, ${ze}-suffix`]:{color:We}},[`&-status-warning:not(${ye}-disabled):not(${ye}-borderless)${ye}`]:{borderColor:st,"&:hover":{borderColor:mt},"&:focus, &-focused":Object.assign({},ue((0,ke.TS)(ve,{activeBorderColor:st,activeShadow:Ze}))),[`${ze}-prefix, ${ze}-suffix`]:{color:st}}}},De=ve=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ve.paddingBlock}px ${ve.paddingInline}px`,color:ve.colorText,fontSize:ve.fontSize,lineHeight:ve.lineHeight,backgroundColor:ve.colorBgContainer,backgroundImage:"none",borderWidth:ve.lineWidth,borderStyle:ve.lineType,borderColor:ve.colorBorder,borderRadius:ve.borderRadius,transition:`all ${ve.motionDurationMid}`},xe(ve.colorTextPlaceholder)),{"&:hover":Object.assign({},Me(ve)),"&:focus, &-focused":Object.assign({},ue(ve)),"&-disabled, &[disabled]":Object.assign({},Ee(ve)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:ve.controlHeight,lineHeight:ve.lineHeight,verticalAlign:"bottom",transition:`all ${ve.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},fe(ve)),"&-sm":Object.assign({},we(ve)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ke=ve=>{const{componentCls:ye,antCls:ze}=ve;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ve.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${ye}, &-lg > ${ye}-group-addon`]:Object.assign({},fe(ve)),[`&-sm ${ye}, &-sm > ${ye}-group-addon`]:Object.assign({},we(ve)),[`&-lg ${ze}-select-single ${ze}-select-selector`]:{height:ve.controlHeightLG},[`&-sm ${ze}-select-single ${ze}-select-selector`]:{height:ve.controlHeightSM},[`> ${ye}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${ye}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ve.paddingInline}px`,color:ve.colorText,fontWeight:"normal",fontSize:ve.fontSize,textAlign:"center",backgroundColor:ve.colorFillAlter,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadius,transition:`all ${ve.motionDurationSlow}`,lineHeight:1,[`${ze}-select`]:{margin:`-${ve.paddingBlock+1}px -${ve.paddingInline}px`,[`&${ze}-select-single:not(${ze}-select-customize-input)`]:{[`${ze}-select-selector`]:{backgroundColor:"inherit",border:`${ve.lineWidth}px ${ve.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ze}-select-selector`]:{color:ve.colorPrimary}}},[`${ze}-cascader-picker`]:{margin:`-9px -${ve.paddingInline}px`,backgroundColor:"transparent",[`${ze}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${ye}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${ye}-search-with-button &`]:{zIndex:0}}},[`> ${ye}:first-child, ${ye}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${ye}-affix-wrapper`]:{[`&:not(:first-child) ${ye}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${ye}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${ye}:last-child, ${ye}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ze}-select ${ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${ye}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${ye}-search &`]:{borderStartStartRadius:ve.borderRadius,borderEndStartRadius:ve.borderRadius}},[`&:not(:first-child), ${ye}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${ye}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ee.dF)()),{[`${ye}-group-addon, ${ye}-group-wrap, > ${ye}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ve.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${ye}-affix-wrapper,
& > ${ye}-number-affix-wrapper,
& > ${ze}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-ve.lineWidth,borderInlineEndWidth:ve.lineWidth},[`${ye}`]:{float:"none"},[`& > ${ze}-select > ${ze}-select-selector,
& > ${ze}-select-auto-complete ${ye},
& > ${ze}-cascader-picker ${ye},
& > ${ye}-group-wrapper ${ye}`]:{borderInlineEndWidth:ve.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ze}-select-focused`]:{zIndex:1},[`& > ${ze}-select > ${ze}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${ze}-select:first-child > ${ze}-select-selector,
& > ${ze}-select-auto-complete:first-child ${ye},
& > ${ze}-cascader-picker:first-child ${ye}`]:{borderStartStartRadius:ve.borderRadius,borderEndStartRadius:ve.borderRadius},[`& > *:last-child,
& > ${ze}-select:last-child > ${ze}-select-selector,
& > ${ze}-cascader-picker:last-child ${ye},
& > ${ze}-cascader-picker-focused:last-child ${ye}`]:{borderInlineEndWidth:ve.lineWidth,borderStartEndRadius:ve.borderRadius,borderEndEndRadius:ve.borderRadius},[`& > ${ze}-select-auto-complete ${ye}`]:{verticalAlign:"top"},[`${ye}-group-wrapper + ${ye}-group-wrapper`]:{marginInlineStart:-ve.lineWidth,[`${ye}-affix-wrapper`]:{borderRadius:0}},[`${ye}-group-wrapper:not(:last-child)`]:{[`&${ye}-search > ${ye}-group`]:{[`& > ${ye}-group-addon > ${ye}-search-button`]:{borderRadius:0},[`& > ${ye}`]:{borderStartStartRadius:ve.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ve.borderRadius}}}})}},rt=ve=>{const{componentCls:ye,controlHeightSM:ze,lineWidth:We}=ve,at=(ze-We*2-16)/2;return{[ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(ve)),De(ve)),Ue(ve,ye)),{'&[type="color"]':{height:ve.controlHeight,[`&${ye}-lg`]:{height:ve.controlHeightLG},[`&${ye}-sm`]:{height:ze,paddingTop:at,paddingBottom:at}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Qe=ve=>{const{componentCls:ye}=ve;return{[`${ye}-clear-icon`]:{margin:0,color:ve.colorTextQuaternary,fontSize:ve.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${ve.motionDurationSlow}`,"&:hover":{color:ve.colorTextTertiary},"&:active":{color:ve.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ve.inputAffixPadding}px`}}}},_e=ve=>{const{componentCls:ye,inputAffixPadding:ze,colorTextDescription:We,motionDurationSlow:st,colorIcon:at,colorIconHover:Ze,iconCls:Ae}=ve;return{[`${ye}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De(ve)),{display:"inline-flex",[`&:not(${ye}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Me(ve)),{zIndex:1,[`${ye}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${ye}[disabled]`]:{background:"transparent"}},[`> input${ye}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ye}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ve.paddingXS}},"&-show-count-suffix":{color:We},"&-show-count-has-suffix":{marginInlineEnd:ve.paddingXXS},"&-prefix":{marginInlineEnd:ze},"&-suffix":{marginInlineStart:ze}}}),Qe(ve)),{[`${Ae}${ye}-password-icon`]:{color:at,cursor:"pointer",transition:`all ${st}`,"&:hover":{color:Ze}}}),Ue(ve,`${ye}-affix-wrapper`))}},ge=ve=>{const{componentCls:ye,colorError:ze,colorWarning:We,borderRadiusLG:st,borderRadiusSM:at}=ve;return{[`${ye}-group`]:Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(ve)),Ke(ve)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${ye}-group-addon`]:{borderRadius:st,fontSize:ve.fontSizeLG}},"&-sm":{[`${ye}-group-addon`]:{borderRadius:at}},"&-status-error":{[`${ye}-group-addon`]:{color:ze,borderColor:ze}},"&-status-warning":{[`${ye}-group-addon`]:{color:We,borderColor:We}},"&-disabled":{[`${ye}-group-addon`]:Object.assign({},Ee(ve))},[`&:not(${ye}-compact-first-item):not(${ye}-compact-last-item)${ye}-compact-item`]:{[`${ye}, ${ye}-group-addon`]:{borderRadius:0}},[`&:not(${ye}-compact-last-item)${ye}-compact-first-item`]:{[`${ye}, ${ye}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ye}-compact-first-item)${ye}-compact-last-item`]:{[`${ye}, ${ye}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Ve=ve=>{const{componentCls:ye,antCls:ze}=ve,We=`${ye}-search`;return{[We]:{[`${ye}`]:{"&:hover, &:focus":{borderColor:ve.colorPrimaryHover,[`+ ${ye}-group-addon ${We}-button:not(${ze}-btn-primary)`]:{borderInlineStartColor:ve.colorPrimaryHover}}},[`${ye}-affix-wrapper`]:{borderRadius:0},[`${ye}-lg`]:{lineHeight:ve.lineHeightLG-2e-4},[`> ${ye}-group`]:{[`> ${ye}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${We}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:ve.borderRadius,borderEndEndRadius:ve.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${We}-button:not(${ze}-btn-primary)`]:{color:ve.colorTextDescription,"&:hover":{color:ve.colorPrimaryHover},"&:active":{color:ve.colorPrimaryActive},[`&${ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${We}-button`]:{height:ve.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${We}-button`]:{height:ve.controlHeightLG},[`&-small ${We}-button`]:{height:ve.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${ye}-compact-item`]:{[`&:not(${ye}-compact-last-item)`]:{[`${ye}-group-addon`]:{[`${ye}-search-button`]:{marginInlineEnd:-ve.lineWidth,borderRadius:0}}},[`&:not(${ye}-compact-first-item)`]:{[`${ye},${ye}-affix-wrapper`]:{borderRadius:0}},[`> ${ye}-group-addon ${ye}-search-button,
> ${ye},
${ye}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${ye}-affix-wrapper-focused`]:{zIndex:2}}}}},lt=ve=>{const{componentCls:ye,paddingLG:ze}=ve,We=`${ye}-textarea`;return{[We]:{position:"relative","&-show-count":{[`> ${ye}`]:{height:"100%"},[`${ye}-data-count`]:{position:"absolute",bottom:-ve.fontSize*ve.lineHeight,insetInlineEnd:0,color:ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${ye}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${We}-has-feedback`]:{[`${ye}`]:{paddingInlineEnd:ze}},[`&-affix-wrapper${ye}-affix-wrapper`]:{padding:0,[`> textarea${ye}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${ye}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ye}-clear-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,insetBlockStart:ve.paddingXS},[`${We}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function He(ve){return(0,ke.TS)(ve,{inputAffixPadding:ve.paddingXXS})}const Oe=ve=>{const{controlHeight:ye,fontSize:ze,lineHeight:We,lineWidth:st,controlHeightSM:at,controlHeightLG:Ze,fontSizeLG:Ae,lineHeightLG:mt,paddingSM:je,controlPaddingHorizontalSM:it,controlPaddingHorizontal:qe,colorFillAlter:gt,colorPrimaryHover:Pt,controlOutlineWidth:Xt,controlOutline:$e,colorErrorOutline:Be,colorWarningOutline:St}=ve;return{paddingBlock:Math.max(Math.round((ye-ze*We)/2*10)/10-st,3),paddingBlockSM:Math.max(Math.round((at-ze*We)/2*10)/10-st,0),paddingBlockLG:Math.ceil((Ze-Ae*mt)/2*10)/10-st,paddingInline:je-st,paddingInlineSM:it-st,paddingInlineLG:qe-st,addonBg:gt,activeBorderColor:Pt,hoverBorderColor:Pt,activeShadow:`0 0 0 ${Xt}px ${$e}`,errorActiveShadow:`0 0 0 ${Xt}px ${Be}`,warningActiveShadow:`0 0 0 ${Xt}px ${St}`}};Tt.ZP=(0,Ge.Z)("Input",ve=>{const ye=(0,ke.TS)(ve,He(ve));return[rt(ye),lt(ye),_e(ye),ge(ye),Ve(ye),(0,de.c)(ye)]},Oe)},71322:function(vn,Tt,te){"use strict";te.d(Tt,{D:function(){return lt},Z:function(){return ve}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(ze,We){return de.createElement(xe.Z,(0,ee.Z)({},ze,{ref:We,icon:Ge}))},ue=de.forwardRef(Me),Ee=te(22751),fe=te(91034),we=te(94184),Ue=te.n(we),De=te(10366),rt=ye=>!isNaN(parseFloat(ye))&&isFinite(ye),Qe=te(53124),_e=te(84321),ge=function(ye,ze){var We={};for(var st in ye)Object.prototype.hasOwnProperty.call(ye,st)&&ze.indexOf(st)<0&&(We[st]=ye[st]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,st=Object.getOwnPropertySymbols(ye);at<st.length;at++)ze.indexOf(st[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,st[at])&&(We[st[at]]=ye[st[at]]);return We};const Ve={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},lt=de.createContext({}),He=(()=>{let ye=0;return function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ye+=1,`${ze}${ye}`}})();var ve=de.forwardRef((ye,ze)=>{const{prefixCls:We,className:st,trigger:at,children:Ze,defaultCollapsed:Ae=!1,theme:mt="dark",style:je={},collapsible:it=!1,reverseArrow:qe=!1,width:gt=200,collapsedWidth:Pt=80,zeroWidthTriggerStyle:Xt,breakpoint:$e,onCollapse:Be,onBreakpoint:St}=ye,Vt=ge(ye,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Rt}=(0,de.useContext)(_e.Gs),[ht,Bt]=(0,de.useState)("collapsed"in ye?ye.collapsed:Ae),[_t,Fn]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in ye&&Bt(ye.collapsed)},[ye.collapsed]);const kn=(he,ce)=>{"collapsed"in ye||Bt(he),Be==null||Be(he,ce)},kt=(0,de.useRef)();kt.current=he=>{Fn(he.matches),St==null||St(he.matches),ht!==he.matches&&kn(he.matches,"responsive")},(0,de.useEffect)(()=>{function he(me){return kt.current(me)}let ce;if(typeof window!="undefined"){const{matchMedia:me}=window;if(me&&$e&&$e in Ve){ce=me(`(max-width: ${Ve[$e]})`);try{ce.addEventListener("change",he)}catch(pe){ce.addListener(he)}he(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",he)}catch(me){ce==null||ce.removeListener(he)}}},[$e]),(0,de.useEffect)(()=>{const he=He("ant-sider-");return Rt.addSider(he),()=>Rt.removeSider(he)},[]);const un=()=>{kn(!ht,"clickTrigger")},{getPrefixCls:Wn}=(0,de.useContext)(Qe.E_),An=()=>{const he=Wn("layout-sider",We),ce=(0,De.Z)(Vt,["collapsed"]),me=ht?Pt:gt,pe=rt(me)?`${me}px`:String(me),le=parseFloat(String(Pt||0))===0?de.createElement("span",{onClick:un,className:Ue()(`${he}-zero-width-trigger`,`${he}-zero-width-trigger-${qe?"right":"left"}`),style:Xt},at||de.createElement(ue,null)):null,Nt={expanded:qe?de.createElement(fe.Z,null):de.createElement(Ee.Z,null),collapsed:qe?de.createElement(Ee.Z,null):de.createElement(fe.Z,null)}[ht?"collapsed":"expanded"],tn=at!==null?le||de.createElement("div",{className:`${he}-trigger`,onClick:un,style:{width:pe}},at||Nt):null,an=Object.assign(Object.assign({},je),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),Yt=Ue()(he,`${he}-${mt}`,{[`${he}-collapsed`]:!!ht,[`${he}-has-trigger`]:it&&at!==null&&!le,[`${he}-below`]:!!_t,[`${he}-zero-width`]:parseFloat(pe)===0},st);return de.createElement("aside",Object.assign({className:Yt},ce,{style:an,ref:ze}),de.createElement("div",{className:`${he}-children`},Ze),it||_t&&le?tn:null)},Ie=de.useMemo(()=>({siderCollapsed:ht}),[ht]);return de.createElement(lt.Provider,{value:Ie},An())})},84321:function(vn,Tt,te){"use strict";te.d(Tt,{VY:function(){return He},$_:function(){return lt},h4:function(){return Ve},Gs:function(){return Ke},ZP:function(){return Oe}});var ee=te(74902),de=te(94184),ke=te.n(de),Ge=te(10366),xe=te(67294),Me=te(53124),ue=te(67968),fe=ve=>{const{componentCls:ye,bodyBg:ze,lightSiderBg:We,lightTriggerBg:st,lightTriggerColor:at}=ve;return{[`${ye}-sider-light`]:{background:We,[`${ye}-sider-trigger`]:{color:at,background:st},[`${ye}-sider-zero-width-trigger`]:{color:at,background:st,border:`1px solid ${ze}`,borderInlineStart:0}}}};const we=ve=>{const{antCls:ye,componentCls:ze,colorText:We,triggerColor:st,footerBg:at,triggerBg:Ze,headerHeight:Ae,headerPadding:mt,headerColor:je,footerPadding:it,triggerHeight:qe,zeroTriggerHeight:gt,zeroTriggerWidth:Pt,motionDurationMid:Xt,motionDurationSlow:$e,fontSize:Be,borderRadius:St,bodyBg:Vt,headerBg:Rt,siderBg:ht}=ve;return{[ze]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Vt,"&, *":{boxSizing:"border-box"},[`&${ze}-has-sider`]:{flexDirection:"row",[`> ${ze}, > ${ze}-content`]:{width:0}},[`${ze}-header, &${ze}-footer`]:{flex:"0 0 auto"},[`${ze}-sider`]:{position:"relative",minWidth:0,background:ht,transition:`all ${Xt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ye}-menu${ye}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:qe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:qe,color:st,lineHeight:`${qe}px`,textAlign:"center",background:Ze,cursor:"pointer",transition:`all ${Xt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-Pt,zIndex:1,width:Pt,height:gt,color:st,fontSize:ve.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ht,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${$e} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${$e}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Pt,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},fe(ve)),{"&-rtl":{direction:"rtl"}}),[`${ze}-header`]:{height:Ae,padding:mt,color:je,lineHeight:`${Ae}px`,background:Rt,[`${ye}-menu`]:{lineHeight:"inherit"}},[`${ze}-footer`]:{padding:it,color:We,fontSize:Be,background:at},[`${ze}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,ue.Z)("Layout",ve=>[we(ve)],ve=>{const{colorBgLayout:ye,controlHeight:ze,controlHeightLG:We,colorText:st,controlHeightSM:at,marginXXS:Ze,colorTextLightSolid:Ae,colorBgContainer:mt}=ve,je=We*1.25;return{colorBgHeader:"#001529",colorBgBody:ye,colorBgTrigger:"#002140",bodyBg:ye,headerBg:"#001529",headerHeight:ze*2,headerPadding:`0 ${je}px`,headerColor:st,footerPadding:`${at}px ${je}px`,footerBg:ye,siderBg:"#001529",triggerHeight:We+Ze*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:We,zeroTriggerHeight:We,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:st}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),De=function(ve,ye){var ze={};for(var We in ve)Object.prototype.hasOwnProperty.call(ve,We)&&ye.indexOf(We)<0&&(ze[We]=ve[We]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,We=Object.getOwnPropertySymbols(ve);st<We.length;st++)ye.indexOf(We[st])<0&&Object.prototype.propertyIsEnumerable.call(ve,We[st])&&(ze[We[st]]=ve[We[st]]);return ze};const Ke=xe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function rt(ve){let{suffixCls:ye,tagName:ze,displayName:We}=ve;return st=>xe.forwardRef((Ze,Ae)=>xe.createElement(st,Object.assign({ref:Ae,suffixCls:ye,tagName:ze},Ze)))}const Qe=xe.forwardRef((ve,ye)=>{const{prefixCls:ze,suffixCls:We,className:st,tagName:at}=ve,Ze=De(ve,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=xe.useContext(Me.E_),mt=Ae("layout",ze),[je,it]=Ue(mt),qe=We?`${mt}-${We}`:mt;return je(xe.createElement(at,Object.assign({className:ke()(ze||qe,st,it),ref:ye},Ze)))}),_e=xe.forwardRef((ve,ye)=>{const{direction:ze}=xe.useContext(Me.E_),[We,st]=xe.useState([]),{prefixCls:at,className:Ze,rootClassName:Ae,children:mt,hasSider:je,tagName:it,style:qe}=ve,gt=De(ve,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Pt=(0,Ge.Z)(gt,["suffixCls"]),{getPrefixCls:Xt,layout:$e}=xe.useContext(Me.E_),Be=Xt("layout",at),[St,Vt]=Ue(Be),Rt=ke()(Be,{[`${Be}-has-sider`]:typeof je=="boolean"?je:We.length>0,[`${Be}-rtl`]:ze==="rtl"},$e==null?void 0:$e.className,Ze,Ae,Vt),ht=xe.useMemo(()=>({siderHook:{addSider:Bt=>{st(_t=>[].concat((0,ee.Z)(_t),[Bt]))},removeSider:Bt=>{st(_t=>_t.filter(Fn=>Fn!==Bt))}}}),[]);return St(xe.createElement(Ke.Provider,{value:ht},xe.createElement(it,Object.assign({ref:ye,className:Rt,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),qe)},Pt),mt)))}),ge=rt({tagName:"div",displayName:"Layout"})(_e),Ve=rt({suffixCls:"header",tagName:"header",displayName:"Header"})(Qe),lt=rt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Qe),He=rt({suffixCls:"content",tagName:"main",displayName:"Content"})(Qe);var Oe=ge},76529:function(vn,Tt,te){"use strict";te.d(Tt,{J:function(){return Me}});var ee=te(67294),de=te(4173),ke=te(60276),Ge=function(ue,Ee){var fe={};for(var we in ue)Object.prototype.hasOwnProperty.call(ue,we)&&Ee.indexOf(we)<0&&(fe[we]=ue[we]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,we=Object.getOwnPropertySymbols(ue);Ue<we.length;Ue++)Ee.indexOf(we[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ue,we[Ue])&&(fe[we[Ue]]=ue[we[Ue]]);return fe};const xe=ee.createContext(null),Me=ee.forwardRef((ue,Ee)=>{const{children:fe}=ue,we=Ge(ue,["children"]),Ue=ee.useContext(xe),De=ee.useMemo(()=>Object.assign(Object.assign({},Ue),we),[Ue,we.prefixCls,we.mode,we.selectable]);return ee.createElement(xe.Provider,{value:De},ee.createElement(de.BR,null,(0,ke.supportNodeRef)(fe)?ee.cloneElement(fe,{ref:Ee}):fe))});Tt.Z=xe},68508:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return he}});var ee=te(78595),de=te(67294),ke=te(71322),Ge=te(94184),xe=te.n(Ge),Me=te(53124),ue=function(ce,me){var pe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&me.indexOf(le)<0&&(pe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,le=Object.getOwnPropertySymbols(ce);Le<le.length;Le++)me.indexOf(le[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Le])&&(pe[le[Le]]=ce[le[Le]]);return pe},fe=ce=>{const{prefixCls:me,className:pe,dashed:le}=ce,Le=ue(ce,["prefixCls","className","dashed"]),{getPrefixCls:dt}=de.useContext(Me.E_),Nt=dt("menu",me),tn=xe()({[`${Nt}-item-divider-dashed`]:!!le},pe);return de.createElement(ee.iz,Object.assign({className:tn},Le))},we=te(37419),Ue=te(10366),De=te(83062),Ke=te(96159),Qe=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ge=ce=>{var me;const{className:pe,children:le,icon:Le,title:dt,danger:Nt}=ce,{prefixCls:tn,firstLevel:an,direction:Yt,disableMenuItemTitleTooltip:dn,inlineCollapsed:Mt}=de.useContext(Qe),Wt=Jt=>{const Gn=de.createElement("span",{className:`${tn}-title-content`},le);return(!Le||(0,Ke.l$)(le)&&le.type==="span")&&le&&Jt&&an&&typeof le=="string"?de.createElement("div",{className:`${tn}-inline-collapsed-noicon`},le.charAt(0)):Gn},{siderCollapsed:qt}=de.useContext(ke.D);let Gt=dt;typeof dt=="undefined"?Gt=an?le:"":dt===!1&&(Gt="");const jt={title:Gt};!qt&&!Mt&&(jt.title=null,jt.open=!1);const sr=(0,we.Z)(le).length;let Dt=de.createElement(ee.ck,Object.assign({},(0,Ue.Z)(ce,["title","icon","danger"]),{className:xe()({[`${tn}-item-danger`]:Nt,[`${tn}-item-only-child`]:(Le?sr+1:sr)===1},pe),title:typeof dt=="string"?dt:void 0}),(0,Ke.Tm)(Le,{className:xe()((0,Ke.l$)(Le)?(me=Le.props)===null||me===void 0?void 0:me.className:"",`${tn}-item-icon`)}),Wt(Mt));return dn||(Dt=de.createElement(De.Z,Object.assign({},jt,{placement:Yt==="rtl"?"left":"right",overlayClassName:`${tn}-inline-collapsed-tooltip`}),Dt)),Dt},lt=ce=>{var me;const{popupClassName:pe,icon:le,title:Le,theme:dt}=ce,Nt=de.useContext(Qe),{prefixCls:tn,inlineCollapsed:an,theme:Yt}=Nt,dn=(0,ee.Xl)();let Mt;if(!le)Mt=an&&!dn.length&&Le&&typeof Le=="string"?de.createElement("div",{className:`${tn}-inline-collapsed-noicon`},Le.charAt(0)):de.createElement("span",{className:`${tn}-title-content`},Le);else{const qt=(0,Ke.l$)(Le)&&Le.type==="span";Mt=de.createElement(de.Fragment,null,(0,Ke.Tm)(le,{className:xe()((0,Ke.l$)(le)?(me=le.props)===null||me===void 0?void 0:me.className:"",`${tn}-item-icon`)}),qt?Le:de.createElement("span",{className:`${tn}-title-content`},Le))}const Wt=de.useMemo(()=>Object.assign(Object.assign({},Nt),{firstLevel:!1}),[Nt]);return de.createElement(Qe.Provider,{value:Wt},de.createElement(ee.Wd,Object.assign({},(0,Ue.Z)(ce,["icon"]),{title:Mt,popupClassName:xe()(tn,pe,`${tn}-${dt||Yt}`)})))},He=te(25877),Oe=te(60276),ve=te(33603),ye=te(76529),ze=function(ce,me){var pe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&me.indexOf(le)<0&&(pe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,le=Object.getOwnPropertySymbols(ce);Le<le.length;Le++)me.indexOf(le[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Le])&&(pe[le[Le]]=ce[le[Le]]);return pe};function We(ce){return(ce||[]).map((me,pe)=>{if(me&&typeof me=="object"){const le=me,{label:Le,children:dt,key:Nt,type:tn}=le,an=ze(le,["label","children","key","type"]),Yt=Nt!=null?Nt:`tmp-${pe}`;return dt||tn==="group"?tn==="group"?de.createElement(ee.BW,Object.assign({key:Yt},an,{title:Le}),We(dt)):de.createElement(lt,Object.assign({key:Yt},an,{title:Le}),We(dt)):tn==="divider"?de.createElement(fe,Object.assign({key:Yt},an)):de.createElement(ge,Object.assign({key:Yt},an),Le)}return null}).filter(me=>me)}function st(ce){return de.useMemo(()=>ce&&We(ce),[ce])}var at=te(84780),Ze=te(14747),Ae=te(33507),mt=te(67771),je=te(50438),it=te(67968),qe=te(45503),Pt=ce=>{const{componentCls:me,motionDurationSlow:pe,horizontalLineHeight:le,colorSplit:Le,lineWidth:dt,lineType:Nt,itemPaddingInline:tn}=ce;return{[`${me}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${dt}px ${Nt} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tn},[`> ${me}-item:hover,
> ${me}-item-active,
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},$e=ce=>{let{componentCls:me,menuArrowOffset:pe}=ce;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical,
${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Be=ce=>Object.assign({},(0,Ze.oN)(ce));var Vt=(ce,me)=>{const{componentCls:pe,itemColor:le,itemSelectedColor:Le,groupTitleColor:dt,itemBg:Nt,subMenuItemBg:tn,itemSelectedBg:an,activeBarHeight:Yt,activeBarWidth:dn,activeBarBorderWidth:Mt,motionDurationSlow:Wt,motionEaseInOut:qt,motionEaseOut:Gt,itemPaddingInline:jt,motionDurationMid:sr,itemHoverColor:Dt,lineType:Jt,colorSplit:Gn,itemDisabledColor:Bn,dangerItemColor:Sn,dangerItemHoverColor:or,dangerItemSelectedColor:gr,dangerItemActiveBg:kr,dangerItemSelectedBg:Lr,itemHoverBg:Qr,itemActiveBg:Ir,menuSubMenuBg:Dn,horizontalItemSelectedColor:cr,horizontalItemSelectedBg:vr,horizontalItemBorderRadius:Ur,horizontalItemHoverBg:ti,popupBg:Kt}=ce;return{[`${pe}-${me}, ${pe}-${me} > ${pe}`]:{color:le,background:Nt,[`&${pe}-root:focus-visible`]:Object.assign({},Be(ce)),[`${pe}-item-group-title`]:{color:dt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Le}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${Bn} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Dt}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Qr},"&:active":{backgroundColor:Ir}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Qr},"&:active":{backgroundColor:Ir}}},[`${pe}-item-danger`]:{color:Sn,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:or}},[`&${pe}-item:active`]:{background:kr}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Le,[`&${pe}-item-danger`]:{color:gr},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:an,[`&${pe}-item-danger`]:{backgroundColor:Lr}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Be(ce))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Dn},[`&${pe}-popup > ${pe}`]:{backgroundColor:Kt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Mt,marginTop:-Mt,marginBottom:0,borderRadius:Ur,"&::after":{position:"absolute",insetInline:jt,bottom:0,borderBottom:`${Yt}px solid transparent`,transition:`border-color ${Wt} ${qt}`,content:'""'},"&:hover, &-active, &-open":{background:ti,"&::after":{borderBottomWidth:Yt,borderBottomColor:cr}},"&-selected":{color:cr,backgroundColor:vr,"&:hover":{backgroundColor:vr},"&::after":{borderBottomWidth:Yt,borderBottomColor:cr}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Mt}px ${Jt} ${Gn}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:tn},[`${pe}-item, ${pe}-submenu-title`]:Mt&&dn?{width:`calc(100% + ${Mt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${dn}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sr} ${Gt}`,`opacity ${sr} ${Gt}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:gr}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sr} ${qt}`,`opacity ${sr} ${qt}`].join(",")}}}}}};const Rt=ce=>{const{componentCls:me,itemHeight:pe,itemMarginInline:le,padding:Le,menuArrowSize:dt,marginXS:Nt,itemMarginBlock:tn}=ce,an=Le+dt+Nt;return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:tn,width:`calc(100% - ${le*2}px)`},[`> ${me}-item,
> ${me}-submenu > ${me}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${me}-item-group-list ${me}-submenu-title,
${me}-submenu-title`]:{paddingInlineEnd:an}}};var Bt=ce=>{const{componentCls:me,iconCls:pe,itemHeight:le,colorTextLightSolid:Le,dropdownWidth:dt,controlHeightLG:Nt,motionDurationMid:tn,motionEaseOut:an,paddingXL:Yt,itemMarginInline:dn,fontSizeLG:Mt,motionDurationSlow:Wt,paddingXS:qt,boxShadowSecondary:Gt,collapsedWidth:jt,collapsedIconSize:sr}=ce,Dt={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},Rt(ce))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},Rt(ce)),{boxShadow:Gt})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:dt,maxHeight:`calc(100vh - ${Nt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wt}`,`background ${Wt}`,`padding ${tn} ${an}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:Dt,[`& ${me}-item-group-title`]:{paddingInlineStart:Yt}},[`${me}-item`]:Dt}},{[`${me}-inline-collapsed`]:{width:jt,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:Mt,textAlign:"center"}}},[`> ${me}-item,
> ${me}-item-group > ${me}-item-group-list > ${me}-item,
> ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title,
> ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Mt/2}px - ${dn}px)`,textOverflow:"clip",[`
${me}-submenu-arrow,
${me}-submenu-expand-icon
`]:{opacity:0},[`${me}-item-icon, ${pe}`]:{margin:0,fontSize:sr,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:Le}},[`${me}-item-group-title`]:Object.assign(Object.assign({},Ze.vS),{paddingInline:qt})}}]};const _t=ce=>{const{componentCls:me,motionDurationSlow:pe,motionDurationMid:le,motionEaseInOut:Le,motionEaseOut:dt,iconCls:Nt,iconSize:tn,iconMarginInlineEnd:an}=ce;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Le}`].join(","),[`${me}-item-icon, ${Nt}`]:{minWidth:tn,fontSize:tn,transition:[`font-size ${le} ${dt}`,`margin ${pe} ${Le}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:an,opacity:1,transition:[`opacity ${pe} ${Le}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,Ze.Ro)()),[`&${me}-item-only-child`]:{[`> ${Nt}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Fn=ce=>{const{componentCls:me,motionDurationSlow:pe,motionEaseInOut:le,borderRadius:Le,menuArrowSize:dt,menuArrowOffset:Nt}=ce;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${le}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:dt*.6,height:dt*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${pe} ${le}`,`transform ${pe} ${le}`,`top ${pe} ${le}`,`color ${pe} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Nt})`},"&::after":{transform:`rotate(-45deg) translateY(${Nt})`}}}}},kn=ce=>{const{antCls:me,componentCls:pe,fontSize:le,motionDurationSlow:Le,motionDurationMid:dt,motionEaseInOut:Nt,paddingXS:tn,padding:an,colorSplit:Yt,lineWidth:dn,zIndexPopup:Mt,borderRadiusLG:Wt,subMenuItemBorderRadius:qt,menuArrowSize:Gt,menuArrowOffset:jt,lineType:sr,menuPanelMaskInset:Dt,groupTitleLineHeight:Jt,groupTitleFontSize:Gn}=ce;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Ze.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(ce)),(0,Ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${tn}px ${an}px`,fontSize:Gn,lineHeight:Jt,transition:`all ${Le}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Le} ${Nt}`,`background ${Le} ${Nt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Le} ${Nt}`,`background ${Le} ${Nt}`,`padding ${dt} ${Nt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Le} ${Nt}`,`padding ${Le} ${Nt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Le}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Yt,borderStyle:sr,borderWidth:0,borderTopWidth:dn,marginBlock:dn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_t(ce)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${le*2}px ${an}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Mt,borderRadius:Wt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Dt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Dt},"\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:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wt},_t(ce)),Fn(ce)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:qt},[`${pe}-submenu-title::after`]:{transition:`transform ${Le} ${Nt}`}})}}),Fn(ce)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${jt})`},"&::after":{transform:`rotate(45deg) translateX(-${jt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Gt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${jt})`},"&::before":{transform:`rotate(45deg) translateX(${jt})`}}})},{[`${me}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var kt=(ce,me)=>(0,it.Z)("Menu",le=>{if(me===!1)return[];const{colorBgElevated:Le,colorPrimary:dt,colorTextLightSolid:Nt,controlHeightLG:tn,fontSize:an,darkItemColor:Yt,darkDangerItemColor:dn,darkItemBg:Mt,darkSubMenuItemBg:Wt,darkItemSelectedColor:qt,darkItemSelectedBg:Gt,darkDangerItemSelectedBg:jt,darkItemHoverBg:sr,darkGroupTitleColor:Dt,darkItemHoverColor:Jt,darkItemDisabledColor:Gn,darkDangerItemHoverColor:Bn,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:or}=le,gr=an/7*5,kr=(0,qe.TS)(le,{menuArrowSize:gr,menuHorizontalHeight:tn*1.15,menuArrowOffset:`${gr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),Lr=(0,qe.TS)(kr,{itemColor:Yt,itemHoverColor:Jt,groupTitleColor:Dt,itemSelectedColor:qt,itemBg:Mt,popupBg:Mt,subMenuItemBg:Wt,itemActiveBg:"transparent",itemSelectedBg:Gt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sr,itemDisabledColor:Gn,dangerItemColor:dn,dangerItemHoverColor:Bn,dangerItemSelectedColor:Sn,dangerItemActiveBg:or,dangerItemSelectedBg:jt,menuSubMenuBg:Wt,horizontalItemSelectedColor:Nt,horizontalItemSelectedBg:dt});return[kn(kr),Pt(kr),Bt(kr),Vt(kr,"light"),Vt(Lr,"dark"),$e(kr),(0,Ae.Z)(kr),(0,mt.oN)(kr,"slide-up"),(0,mt.oN)(kr,"slide-down"),(0,je._y)(kr,"zoom-big")]},le=>{const{colorPrimary:Le,colorError:dt,colorTextDisabled:Nt,colorErrorBg:tn,colorText:an,colorTextDescription:Yt,colorBgContainer:dn,colorFillAlter:Mt,colorFillContent:Wt,lineWidth:qt,lineWidthBold:Gt,controlItemBgActive:jt,colorBgTextHover:sr,controlHeightLG:Dt,lineHeight:Jt,colorBgElevated:Gn,marginXXS:Bn,padding:Sn,fontSize:or,controlHeightSM:gr,fontSizeLG:kr,colorTextLightSolid:Lr,colorErrorHover:Qr}=le,Ir=new at.C(Lr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:an,itemColor:an,colorItemTextHover:an,itemHoverColor:an,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:Yt,groupTitleColor:Yt,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:dn,itemBg:dn,colorItemBgHover:sr,itemHoverBg:sr,colorItemBgActive:Wt,itemActiveBg:jt,colorSubItemBg:Mt,subMenuItemBg:Mt,colorItemBgSelected:jt,itemSelectedBg:jt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Gt,activeBarHeight:Gt,colorActiveBarBorderSize:qt,activeBarBorderWidth:qt,colorItemTextDisabled:Nt,itemDisabledColor:Nt,colorDangerItemText:dt,dangerItemColor:dt,colorDangerItemTextHover:dt,dangerItemHoverColor:dt,colorDangerItemTextSelected:dt,dangerItemSelectedColor:dt,colorDangerItemBgActive:tn,dangerItemActiveBg:tn,colorDangerItemBgSelected:tn,dangerItemSelectedBg:tn,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Dt,groupTitleLineHeight:Jt,collapsedWidth:Dt*2,popupBg:Gn,itemMarginBlock:Bn,itemPaddingInline:Sn,horizontalLineHeight:`${Dt*1.15}px`,iconSize:or,iconMarginInlineEnd:gr-or,collapsedIconSize:kr,groupTitleFontSize:or,darkItemDisabledColor:new at.C(Lr).setAlpha(.25).toRgbString(),darkItemColor:Ir,darkDangerItemColor:dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Lr,darkItemSelectedBg:Le,darkDangerItemSelectedBg:dt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ir,darkItemHoverColor:Lr,darkDangerItemHoverColor:Qr,darkDangerItemSelectedColor:Lr,darkDangerItemActiveBg:dt}},{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"]]})(ce),un=function(ce,me){var pe={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&me.indexOf(le)<0&&(pe[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,le=Object.getOwnPropertySymbols(ce);Le<le.length;Le++)me.indexOf(le[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Le])&&(pe[le[Le]]=ce[le[Le]]);return pe},An=(0,de.forwardRef)((ce,me)=>{var pe,le;const Le=de.useContext(ye.Z),dt=Le||{},{getPrefixCls:Nt,getPopupContainer:tn,direction:an,menu:Yt}=de.useContext(Me.E_),dn=Nt(),{prefixCls:Mt,className:Wt,style:qt,theme:Gt="light",expandIcon:jt,_internalDisableMenuItemTitleTooltip:sr,inlineCollapsed:Dt,siderCollapsed:Jt,items:Gn,children:Bn,rootClassName:Sn,mode:or,selectable:gr,onClick:kr,overflowedIndicatorPopupClassName:Lr}=ce,Qr=un(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ir=(0,Ue.Z)(Qr,["collapsedWidth"]),Dn=st(Gn)||Bn;(pe=dt.validator)===null||pe===void 0||pe.call(dt,{mode:or});const cr=(0,Oe.useEvent)(function(){var br;kr==null||kr.apply(void 0,arguments),(br=dt.onClick)===null||br===void 0||br.call(dt)}),vr=dt.mode||or,Ur=gr!=null?gr:dt.selectable,ti=de.useMemo(()=>Jt!==void 0?Jt:Dt,[Dt,Jt]),Kt={horizontal:{motionName:`${dn}-slide-up`},inline:(0,ve.Z)(dn),other:{motionName:`${dn}-zoom-big`}},_n=Nt("menu",Mt||dt.prefixCls),[nn,In]=kt(_n,!Le),nr=xe()(`${_n}-${Gt}`,Yt==null?void 0:Yt.className,Wt);let Rr;if(typeof jt=="function")Rr=jt;else if(jt===null||jt===!1)Rr=null;else if(dt.expandIcon===null||dt.expandIcon===!1)Rr=null;else{const br=jt!=null?jt:dt.expandIcon;Rr=(0,Ke.Tm)(br,{className:xe()(`${_n}-submenu-expand-icon`,(0,Ke.l$)(br)?(le=br.props)===null||le===void 0?void 0:le.className:"")})}const Pr=de.useMemo(()=>({prefixCls:_n,inlineCollapsed:ti||!1,direction:an,firstLevel:!0,theme:Gt,mode:vr,disableMenuItemTitleTooltip:sr}),[_n,ti,an,sr,Gt]);return nn(de.createElement(ye.Z.Provider,{value:null},de.createElement(Qe.Provider,{value:Pr},de.createElement(ee.ZP,Object.assign({getPopupContainer:tn,overflowedIndicator:de.createElement(He.Z,null),overflowedIndicatorPopupClassName:xe()(_n,`${_n}-${Gt}`,Lr),mode:vr,selectable:Ur,onClick:cr},Ir,{inlineCollapsed:ti,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),qt),className:nr,prefixCls:_n,direction:an,defaultMotions:Kt,expandIcon:Rr,ref:me,rootClassName:xe()(Sn,In)}),Dn))))});const Ie=(0,de.forwardRef)((ce,me)=>{const pe=(0,de.useRef)(null),le=de.useContext(ke.D);return(0,de.useImperativeHandle)(me,()=>({menu:pe.current,focus:Le=>{var dt;(dt=pe.current)===null||dt===void 0||dt.focus(Le)}})),de.createElement(An,Object.assign({ref:pe},ce,le))});Ie.Item=ge,Ie.SubMenu=lt,Ie.Divider=fe,Ie.ItemGroup=ee.BW;var he=Ie},28452:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return dn}});var ee=te(87462),de=te(67294),ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ge=ke,xe=te(84089),Me=function(Wt,qt){return de.createElement(xe.Z,(0,ee.Z)({},Wt,{ref:qt,icon:Ge}))},ue=de.forwardRef(Me),Ee=te(81893),fe=te(22751),we=te(91034),Ue=te(94184),De=te.n(Ue),Ke=te(4942),rt=te(1413),Qe=te(15671),_e=te(43144),ge=te(60136),Ve=te(51630),lt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,He=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Oe="".concat(lt," ").concat(He).split(/[\s\n]+/),ve="aria-",ye="data-";function ze(Mt,Wt){return Mt.indexOf(Wt)===0}function We(Mt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt;Wt===!1?qt={aria:!0,data:!0,attr:!0}:Wt===!0?qt={aria:!0}:qt=(0,rt.Z)({},Wt);var Gt={};return Object.keys(Mt).forEach(function(jt){(qt.aria&&(jt==="role"||ze(jt,ve))||qt.data&&ze(jt,ye)||qt.attr&&Oe.includes(jt))&&(Gt[jt]=Mt[jt])}),Gt}var st={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},at=st,Ze=te(81626),Ae=function(Mt){(0,ge.Z)(qt,Mt);var Wt=(0,Ve.Z)(qt);function qt(){var Gt;(0,Qe.Z)(this,qt);for(var jt=arguments.length,sr=new Array(jt),Dt=0;Dt<jt;Dt++)sr[Dt]=arguments[Dt];return Gt=Wt.call.apply(Wt,[this].concat(sr)),Gt.state={goInputText:""},Gt.getValidValue=function(){var Jt=Gt.state.goInputText;return!Jt||Number.isNaN(Jt)?void 0:Number(Jt)},Gt.buildOptionText=function(Jt){return"".concat(Jt," ").concat(Gt.props.locale.items_per_page)},Gt.changeSize=function(Jt){Gt.props.changeSize(Number(Jt))},Gt.handleChange=function(Jt){Gt.setState({goInputText:Jt.target.value})},Gt.handleBlur=function(Jt){var Gn=Gt.props,Bn=Gn.goButton,Sn=Gn.quickGo,or=Gn.rootPrefixCls,gr=Gt.state.goInputText;Bn||gr===""||(Gt.setState({goInputText:""}),!(Jt.relatedTarget&&(Jt.relatedTarget.className.indexOf("".concat(or,"-item-link"))>=0||Jt.relatedTarget.className.indexOf("".concat(or,"-item"))>=0))&&Sn(Gt.getValidValue()))},Gt.go=function(Jt){var Gn=Gt.state.goInputText;Gn!==""&&(Jt.keyCode===at.ENTER||Jt.type==="click")&&(Gt.setState({goInputText:""}),Gt.props.quickGo(Gt.getValidValue()))},Gt}return(0,_e.Z)(qt,[{key:"getPageSizeOptions",value:function(){var jt=this.props,sr=jt.pageSize,Dt=jt.pageSizeOptions;return Dt.some(function(Jt){return Jt.toString()===sr.toString()})?Dt:Dt.concat([sr.toString()]).sort(function(Jt,Gn){var Bn=Number.isNaN(Number(Jt))?0:Number(Jt),Sn=Number.isNaN(Number(Gn))?0:Number(Gn);return Bn-Sn})}},{key:"render",value:function(){var jt=this,sr=this.props,Dt=sr.pageSize,Jt=sr.locale,Gn=sr.rootPrefixCls,Bn=sr.changeSize,Sn=sr.quickGo,or=sr.goButton,gr=sr.selectComponentClass,kr=sr.buildOptionText,Lr=sr.selectPrefixCls,Qr=sr.disabled,Ir=this.state.goInputText,Dn="".concat(Gn,"-options"),cr=gr,vr=null,Ur=null,ti=null;if(!Bn&&!Sn)return null;var Kt=this.getPageSizeOptions();if(Bn&&cr){var _n=Kt.map(function(nn,In){return de.createElement(cr.Option,{key:In,value:nn.toString()},(kr||jt.buildOptionText)(nn))});vr=de.createElement(cr,{disabled:Qr,prefixCls:Lr,showSearch:!1,className:"".concat(Dn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Dt||Kt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(In){return In.parentNode},"aria-label":Jt.page_size,defaultOpen:!1},_n)}return Sn&&(or&&(ti=typeof or=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Qr,className:"".concat(Dn,"-quick-jumper-button")},Jt.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},or)),Ur=de.createElement("div",{className:"".concat(Dn,"-quick-jumper")},Jt.jump_to,de.createElement("input",{disabled:Qr,type:"text",value:Ir,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Jt.page}),Jt.page,ti)),de.createElement("li",{className:"".concat(Dn)},vr,Ur)}}]),qt}(de.Component);Ae.defaultProps={pageSizeOptions:["10","20","50","100"]};var mt=Ae,je=function(Wt){var qt,Gt=Wt.rootPrefixCls,jt=Wt.page,sr=Wt.active,Dt=Wt.className,Jt=Wt.showTitle,Gn=Wt.onClick,Bn=Wt.onKeyPress,Sn=Wt.itemRender,or="".concat(Gt,"-item"),gr=De()(or,"".concat(or,"-").concat(jt),(qt={},(0,Ke.Z)(qt,"".concat(or,"-active"),sr),(0,Ke.Z)(qt,"".concat(or,"-disabled"),!jt),(0,Ke.Z)(qt,Wt.className,Dt),qt)),kr=function(){Gn(jt)},Lr=function(Dn){Bn(Dn,Gn,jt)},Qr=Sn(jt,"page",de.createElement("a",{rel:"nofollow"},jt));return Qr?de.createElement("li",{title:Jt?jt.toString():null,className:gr,onClick:kr,onKeyPress:Lr,tabIndex:0},Qr):null},it=je;function qe(){}function gt(Mt){var Wt=Number(Mt);return typeof Wt=="number"&&!Number.isNaN(Wt)&&isFinite(Wt)&&Math.floor(Wt)===Wt}var Pt=function(Wt,qt,Gt){return Gt};function Xt(Mt,Wt,qt){var Gt=typeof Mt=="undefined"?Wt.pageSize:Mt;return Math.floor((qt.total-1)/Gt)+1}var $e=function(Mt){(0,ge.Z)(qt,Mt);var Wt=(0,Ve.Z)(qt);function qt(Gt){var jt;(0,Qe.Z)(this,qt),jt=Wt.call(this,Gt),jt.paginationNode=de.createRef(),jt.getJumpPrevPage=function(){return Math.max(1,jt.state.current-(jt.props.showLessItems?3:5))},jt.getJumpNextPage=function(){return Math.min(Xt(void 0,jt.state,jt.props),jt.state.current+(jt.props.showLessItems?3:5))},jt.getItemIcon=function(Bn,Sn){var or=jt.props.prefixCls,gr=Bn||de.createElement("button",{type:"button","aria-label":Sn,className:"".concat(or,"-item-link")});return typeof Bn=="function"&&(gr=de.createElement(Bn,(0,rt.Z)({},jt.props))),gr},jt.isValid=function(Bn){var Sn=jt.props.total;return gt(Bn)&&Bn!==jt.state.current&&gt(Sn)&&Sn>0},jt.shouldDisplayQuickJumper=function(){var Bn=jt.props,Sn=Bn.showQuickJumper,or=Bn.total,gr=jt.state.pageSize;return or<=gr?!1:Sn},jt.handleKeyDown=function(Bn){(Bn.keyCode===at.ARROW_UP||Bn.keyCode===at.ARROW_DOWN)&&Bn.preventDefault()},jt.handleKeyUp=function(Bn){var Sn=jt.getValidValue(Bn),or=jt.state.currentInputValue;Sn!==or&&jt.setState({currentInputValue:Sn}),Bn.keyCode===at.ENTER?jt.handleChange(Sn):Bn.keyCode===at.ARROW_UP?jt.handleChange(Sn-1):Bn.keyCode===at.ARROW_DOWN&&jt.handleChange(Sn+1)},jt.handleBlur=function(Bn){var Sn=jt.getValidValue(Bn);jt.handleChange(Sn)},jt.changePageSize=function(Bn){var Sn=jt.state.current,or=Xt(Bn,jt.state,jt.props);Sn=Sn>or?or:Sn,or===0&&(Sn=jt.state.current),typeof Bn=="number"&&("pageSize"in jt.props||jt.setState({pageSize:Bn}),"current"in jt.props||jt.setState({current:Sn,currentInputValue:Sn})),jt.props.onShowSizeChange(Sn,Bn),"onChange"in jt.props&&jt.props.onChange&&jt.props.onChange(Sn,Bn)},jt.handleChange=function(Bn){var Sn=jt.props,or=Sn.disabled,gr=Sn.onChange,kr=jt.state,Lr=kr.pageSize,Qr=kr.current,Ir=kr.currentInputValue;if(jt.isValid(Bn)&&!or){var Dn=Xt(void 0,jt.state,jt.props),cr=Bn;return Bn>Dn?cr=Dn:Bn<1&&(cr=1),"current"in jt.props||jt.setState({current:cr}),cr!==Ir&&jt.setState({currentInputValue:cr}),gr(cr,Lr),cr}return Qr},jt.prev=function(){jt.hasPrev()&&jt.handleChange(jt.state.current-1)},jt.next=function(){jt.hasNext()&&jt.handleChange(jt.state.current+1)},jt.jumpPrev=function(){jt.handleChange(jt.getJumpPrevPage())},jt.jumpNext=function(){jt.handleChange(jt.getJumpNextPage())},jt.hasPrev=function(){return jt.state.current>1},jt.hasNext=function(){return jt.state.current<Xt(void 0,jt.state,jt.props)},jt.runIfEnter=function(Bn,Sn){if(Bn.key==="Enter"||Bn.charCode===13){for(var or=arguments.length,gr=new Array(or>2?or-2:0),kr=2;kr<or;kr++)gr[kr-2]=arguments[kr];Sn.apply(void 0,gr)}},jt.runIfEnterPrev=function(Bn){jt.runIfEnter(Bn,jt.prev)},jt.runIfEnterNext=function(Bn){jt.runIfEnter(Bn,jt.next)},jt.runIfEnterJumpPrev=function(Bn){jt.runIfEnter(Bn,jt.jumpPrev)},jt.runIfEnterJumpNext=function(Bn){jt.runIfEnter(Bn,jt.jumpNext)},jt.handleGoTO=function(Bn){(Bn.keyCode===at.ENTER||Bn.type==="click")&&jt.handleChange(jt.state.currentInputValue)},jt.renderPrev=function(Bn){var Sn=jt.props,or=Sn.prevIcon,gr=Sn.itemRender,kr=gr(Bn,"prev",jt.getItemIcon(or,"prev page")),Lr=!jt.hasPrev();return(0,de.isValidElement)(kr)?(0,de.cloneElement)(kr,{disabled:Lr}):kr},jt.renderNext=function(Bn){var Sn=jt.props,or=Sn.nextIcon,gr=Sn.itemRender,kr=gr(Bn,"next",jt.getItemIcon(or,"next page")),Lr=!jt.hasNext();return(0,de.isValidElement)(kr)?(0,de.cloneElement)(kr,{disabled:Lr}):kr};var sr=Gt.onChange!==qe,Dt="current"in Gt;Dt&&!sr&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Jt=Gt.defaultCurrent;"current"in Gt&&(Jt=Gt.current);var Gn=Gt.defaultPageSize;return"pageSize"in Gt&&(Gn=Gt.pageSize),Jt=Math.min(Jt,Xt(Gn,void 0,Gt)),jt.state={current:Jt,currentInputValue:Jt,pageSize:Gn},jt}return(0,_e.Z)(qt,[{key:"componentDidUpdate",value:function(jt,sr){var Dt=this.props.prefixCls;if(sr.current!==this.state.current&&this.paginationNode.current){var Jt=this.paginationNode.current.querySelector(".".concat(Dt,"-item-").concat(sr.current));if(Jt&&document.activeElement===Jt){var Gn;Jt==null||(Gn=Jt.blur)===null||Gn===void 0||Gn.call(Jt)}}}},{key:"getValidValue",value:function(jt){var sr=jt.target.value,Dt=Xt(void 0,this.state,this.props),Jt=this.state.currentInputValue,Gn;return sr===""?Gn=sr:Number.isNaN(Number(sr))?Gn=Jt:sr>=Dt?Gn=Dt:Gn=Number(sr),Gn}},{key:"getShowSizeChanger",value:function(){var jt=this.props,sr=jt.showSizeChanger,Dt=jt.total,Jt=jt.totalBoundaryShowSizeChanger;return typeof sr!="undefined"?sr:Dt>Jt}},{key:"render",value:function(){var jt=this.props,sr=jt.prefixCls,Dt=jt.className,Jt=jt.style,Gn=jt.disabled,Bn=jt.hideOnSinglePage,Sn=jt.total,or=jt.locale,gr=jt.showQuickJumper,kr=jt.showLessItems,Lr=jt.showTitle,Qr=jt.showTotal,Ir=jt.simple,Dn=jt.itemRender,cr=jt.showPrevNextJumpers,vr=jt.jumpPrevIcon,Ur=jt.jumpNextIcon,ti=jt.selectComponentClass,Kt=jt.selectPrefixCls,_n=jt.pageSizeOptions,nn=this.state,In=nn.current,nr=nn.pageSize,Rr=nn.currentInputValue;if(Bn===!0&&Sn<=nr)return null;var Pr=Xt(void 0,this.state,this.props),br=[],xt=null,$t=null,fn=null,Mn=null,yt=null,Ut=gr&&gr.goButton,Cn=kr?1:2,cn=In-1>0?In-1:0,zn=In+1<Pr?In+1:Pr,Hn=We(this.props,{aria:!0,data:!0}),Mr=Qr&&de.createElement("li",{className:"".concat(sr,"-total-text")},Qr(Sn,[Sn===0?0:(In-1)*nr+1,In*nr>Sn?Sn:In*nr]));if(Ir){Ut&&(typeof Ut=="boolean"?yt=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},or.jump_to_confirm):yt=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ut),yt=de.createElement("li",{title:Lr?"".concat(or.jump_to).concat(In,"/").concat(Pr):null,className:"".concat(sr,"-simple-pager")},yt));var gi=this.renderPrev(cn);return de.createElement("ul",(0,ee.Z)({className:De()(sr,"".concat(sr,"-simple"),(0,Ke.Z)({},"".concat(sr,"-disabled"),Gn),Dt),style:Jt,ref:this.paginationNode},Hn),Mr,gi?de.createElement("li",{title:Lr?or.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:De()("".concat(sr,"-prev"),(0,Ke.Z)({},"".concat(sr,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},gi):null,de.createElement("li",{title:Lr?"".concat(In,"/").concat(Pr):null,className:"".concat(sr,"-simple-pager")},de.createElement("input",{type:"text",value:Rr,disabled:Gn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(sr,"-slash")},"/"),Pr),de.createElement("li",{title:Lr?or.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:De()("".concat(sr,"-next"),(0,Ke.Z)({},"".concat(sr,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(zn)),yt)}if(Pr<=3+Cn*2){var Xr={locale:or,rootPrefixCls:sr,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Lr,itemRender:Dn};Pr||br.push(de.createElement(it,(0,ee.Z)({},Xr,{key:"noPager",page:1,className:"".concat(sr,"-item-disabled")})));for(var Gr=1;Gr<=Pr;Gr+=1){var di=In===Gr;br.push(de.createElement(it,(0,ee.Z)({},Xr,{key:Gr,page:Gr,active:di})))}}else{var ci=kr?or.prev_3:or.prev_5,Si=kr?or.next_3:or.next_5,Jn=Dn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(vr,"prev page")),Jr=Dn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ur,"next page"));cr&&(xt=Jn?de.createElement("li",{title:Lr?ci:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:De()("".concat(sr,"-jump-prev"),(0,Ke.Z)({},"".concat(sr,"-jump-prev-custom-icon"),!!vr))},Jn):null,$t=Jr?de.createElement("li",{title:Lr?Si:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:De()("".concat(sr,"-jump-next"),(0,Ke.Z)({},"".concat(sr,"-jump-next-custom-icon"),!!Ur))},Jr):null),Mn=de.createElement(it,{locale:or,last:!0,rootPrefixCls:sr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:!1,showTitle:Lr,itemRender:Dn}),fn=de.createElement(it,{locale:or,rootPrefixCls:sr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Lr,itemRender:Dn});var Oa=Math.max(1,In-Cn),Qa=Math.min(In+Cn,Pr);In-1<=Cn&&(Qa=1+Cn*2),Pr-In<=Cn&&(Oa=Pr-Cn*2);for(var Li=Oa;Li<=Qa;Li+=1){var qi=In===Li;br.push(de.createElement(it,{locale:or,rootPrefixCls:sr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Li,page:Li,active:qi,showTitle:Lr,itemRender:Dn}))}In-1>=Cn*2&&In!==3&&(br[0]=(0,de.cloneElement)(br[0],{className:"".concat(sr,"-item-after-jump-prev")}),br.unshift(xt)),Pr-In>=Cn*2&&In!==Pr-2&&(br[br.length-1]=(0,de.cloneElement)(br[br.length-1],{className:"".concat(sr,"-item-before-jump-next")}),br.push($t)),Oa!==1&&br.unshift(fn),Qa!==Pr&&br.push(Mn)}var $a=!this.hasPrev()||!Pr,zi=!this.hasNext()||!Pr,to=this.renderPrev(cn),_r=this.renderNext(zn);return de.createElement("ul",(0,ee.Z)({className:De()(sr,Dt,(0,Ke.Z)({},"".concat(sr,"-disabled"),Gn)),style:Jt,ref:this.paginationNode},Hn),Mr,to?de.createElement("li",{title:Lr?or.prev_page:null,onClick:this.prev,tabIndex:$a?null:0,onKeyPress:this.runIfEnterPrev,className:De()("".concat(sr,"-prev"),(0,Ke.Z)({},"".concat(sr,"-disabled"),$a)),"aria-disabled":$a},to):null,br,_r?de.createElement("li",{title:Lr?or.next_page:null,onClick:this.next,tabIndex:zi?null:0,onKeyPress:this.runIfEnterNext,className:De()("".concat(sr,"-next"),(0,Ke.Z)({},"".concat(sr,"-disabled"),zi)),"aria-disabled":zi},_r):null,de.createElement(mt,{disabled:Gn,locale:or,rootPrefixCls:sr,selectComponentClass:ti,selectPrefixCls:Kt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:In,pageSize:nr,pageSizeOptions:_n,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ut}))}}],[{key:"getDerivedStateFromProps",value:function(jt,sr){var Dt={};if("current"in jt&&(Dt.current=jt.current,jt.current!==sr.current&&(Dt.currentInputValue=Dt.current)),"pageSize"in jt&&jt.pageSize!==sr.pageSize){var Jt=sr.current,Gn=Xt(jt.pageSize,sr,jt);Jt=Jt>Gn?Gn:Jt,"current"in jt||(Dt.current=Jt,Dt.currentInputValue=Jt),Dt.pageSize=jt.pageSize}return Dt}}]),qt}(de.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:qe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:qe,locale:Ze.Z,style:{},itemRender:Pt,totalBoundaryShowSizeChanger:50};var Be=$e,St=te(62906),Vt=te(53124),Rt=te(98675),ht=te(25378),Bt=te(10110),_t=te(11713);const Fn=Mt=>de.createElement(_t.default,Object.assign({},Mt,{showSearch:!0,size:"small"})),kn=Mt=>de.createElement(_t.default,Object.assign({},Mt,{showSearch:!0,size:"middle"}));Fn.Option=_t.default.Option,kn.Option=_t.default.Option;var kt=te(47673),un=te(14747),Wn=te(67968),An=te(45503);const Ie=Mt=>{const{componentCls:Wt}=Mt;return{[`${Wt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Wt}-item-link`]:{color:Mt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Wt}-item-link`]:{color:Mt.colorTextDisabled,cursor:"not-allowed"}}},[`&${Wt}-disabled`]:{cursor:"not-allowed",[`${Wt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Mt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Mt.colorBorder,backgroundColor:Mt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Mt.itemActiveBgDisabled},a:{color:Mt.itemActiveColorDisabled}}},[`${Wt}-item-link`]:{color:Mt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Wt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Wt}-simple-pager`]:{color:Mt.colorTextDisabled},[`${Wt}-jump-prev, ${Wt}-jump-next`]:{[`${Wt}-item-link-icon`]:{opacity:0},[`${Wt}-item-ellipsis`]:{opacity:1}}},[`&${Wt}-simple`]:{[`${Wt}-prev, ${Wt}-next`]:{[`&${Wt}-disabled ${Wt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},he=Mt=>{const{componentCls:Wt}=Mt;return{[`&${Wt}-mini ${Wt}-total-text, &${Wt}-mini ${Wt}-simple-pager`]:{height:Mt.itemSizeSM,lineHeight:`${Mt.itemSizeSM}px`},[`&${Wt}-mini ${Wt}-item`]:{minWidth:Mt.itemSizeSM,height:Mt.itemSizeSM,margin:0,lineHeight:`${Mt.itemSizeSM-2}px`},[`&${Wt}-mini:not(${Wt}-disabled) ${Wt}-item:not(${Wt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Mt.colorBgTextHover},"&:active":{backgroundColor:Mt.colorBgTextActive}},[`&${Wt}-mini ${Wt}-prev, &${Wt}-mini ${Wt}-next`]:{minWidth:Mt.itemSizeSM,height:Mt.itemSizeSM,margin:0,lineHeight:`${Mt.itemSizeSM}px`},[`&${Wt}-mini:not(${Wt}-disabled)`]:{[`${Wt}-prev, ${Wt}-next`]:{[`&:hover ${Wt}-item-link`]:{backgroundColor:Mt.colorBgTextHover},[`&:active ${Wt}-item-link`]:{backgroundColor:Mt.colorBgTextActive},[`&${Wt}-disabled:hover ${Wt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Wt}-mini ${Wt}-prev ${Wt}-item-link,
&${Wt}-mini ${Wt}-next ${Wt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Mt.itemSizeSM,lineHeight:`${Mt.itemSizeSM}px`}},[`&${Wt}-mini ${Wt}-jump-prev, &${Wt}-mini ${Wt}-jump-next`]:{height:Mt.itemSizeSM,marginInlineEnd:0,lineHeight:`${Mt.itemSizeSM}px`},[`&${Wt}-mini ${Wt}-options`]:{marginInlineStart:Mt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Mt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Mt.itemSizeSM,lineHeight:`${Mt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,kt.x0)(Mt)),{width:Mt.paginationMiniQuickJumperInputWidth,height:Mt.controlHeightSM})}}}},ce=Mt=>{const{componentCls:Wt}=Mt;return{[`
&${Wt}-simple ${Wt}-prev,
&${Wt}-simple ${Wt}-next
`]:{height:Mt.itemSizeSM,lineHeight:`${Mt.itemSizeSM}px`,verticalAlign:"top",[`${Wt}-item-link`]:{height:Mt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Mt.colorBgTextHover},"&:active":{backgroundColor:Mt.colorBgTextActive},"&::after":{height:Mt.itemSizeSM,lineHeight:`${Mt.itemSizeSM}px`}}},[`&${Wt}-simple ${Wt}-simple-pager`]:{display:"inline-block",height:Mt.itemSizeSM,marginInlineEnd:Mt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Mt.marginXS,padding:`0 ${Mt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Mt.itemInputBg,border:`${Mt.lineWidth}px ${Mt.lineType} ${Mt.colorBorder}`,borderRadius:Mt.borderRadius,outline:"none",transition:`border-color ${Mt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Mt.colorPrimary},"&:focus":{borderColor:Mt.colorPrimaryHover,boxShadow:`${Mt.inputOutlineOffset}px 0 ${Mt.controlOutlineWidth}px ${Mt.controlOutline}`},"&[disabled]":{color:Mt.colorTextDisabled,backgroundColor:Mt.colorBgContainerDisabled,borderColor:Mt.colorBorder,cursor:"not-allowed"}}}}},me=Mt=>{const{componentCls:Wt}=Mt;return{[`${Wt}-jump-prev, ${Wt}-jump-next`]:{outline:0,[`${Wt}-item-container`]:{position:"relative",[`${Wt}-item-link-icon`]:{color:Mt.colorPrimary,fontSize:Mt.fontSizeSM,opacity:0,transition:`all ${Mt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Wt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Mt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Mt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Mt.paginationEllipsisTextIndent,opacity:1,transition:`all ${Mt.motionDurationMid}`}},"&:hover":{[`${Wt}-item-link-icon`]:{opacity:1},[`${Wt}-item-ellipsis`]:{opacity:0}}},[`
${Wt}-prev,
${Wt}-jump-prev,
${Wt}-jump-next
`]:{marginInlineEnd:Mt.marginXS},[`
${Wt}-prev,
${Wt}-next,
${Wt}-jump-prev,
${Wt}-jump-next
`]:{display:"inline-block",minWidth:Mt.itemSize,height:Mt.itemSize,color:Mt.colorText,fontFamily:Mt.fontFamily,lineHeight:`${Mt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Mt.borderRadius,cursor:"pointer",transition:`all ${Mt.motionDurationMid}`},[`${Wt}-prev, ${Wt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Mt.colorText,cursor:"pointer",userSelect:"none"},[`${Wt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Mt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Mt.lineWidth}px ${Mt.lineType} transparent`,borderRadius:Mt.borderRadius,outline:"none",transition:`all ${Mt.motionDurationMid}`},[`&:hover ${Wt}-item-link`]:{backgroundColor:Mt.colorBgTextHover},[`&:active ${Wt}-item-link`]:{backgroundColor:Mt.colorBgTextActive},[`&${Wt}-disabled:hover`]:{[`${Wt}-item-link`]:{backgroundColor:"transparent"}}},[`${Wt}-slash`]:{marginInlineEnd:Mt.paginationSlashMarginInlineEnd,marginInlineStart:Mt.paginationSlashMarginInlineStart},[`${Wt}-options`]:{display:"inline-block",marginInlineStart:Mt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Mt.controlHeight,marginInlineStart:Mt.marginXS,lineHeight:`${Mt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,kt.ik)(Mt)),{width:Mt.controlHeightLG*1.25,height:Mt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Mt.marginXS,marginInlineEnd:Mt.marginXS})}}}},pe=Mt=>{const{componentCls:Wt}=Mt;return{[`${Wt}-item`]:{display:"inline-block",minWidth:Mt.itemSize,height:Mt.itemSize,marginInlineEnd:Mt.marginXS,fontFamily:Mt.fontFamily,lineHeight:`${Mt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Mt.lineWidth}px ${Mt.lineType} transparent`,borderRadius:Mt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Mt.paginationItemPaddingInline}px`,color:Mt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Wt}-item-active)`]:{"&:hover":{transition:`all ${Mt.motionDurationMid}`,backgroundColor:Mt.colorBgTextHover},"&:active":{backgroundColor:Mt.colorBgTextActive}},"&-active":{fontWeight:Mt.fontWeightStrong,backgroundColor:Mt.itemActiveBg,borderColor:Mt.colorPrimary,a:{color:Mt.colorPrimary},"&:hover":{borderColor:Mt.colorPrimaryHover},"&:hover a":{color:Mt.colorPrimaryHover}}}}},le=Mt=>{const{componentCls:Wt}=Mt;return{[Wt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,un.Wf)(Mt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Wt}-total-text`]:{display:"inline-block",height:Mt.itemSize,marginInlineEnd:Mt.marginXS,lineHeight:`${Mt.itemSize-2}px`,verticalAlign:"middle"}}),pe(Mt)),me(Mt)),ce(Mt)),he(Mt)),Ie(Mt)),{[`@media only screen and (max-width: ${Mt.screenLG}px)`]:{[`${Wt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Mt.screenSM}px)`]:{[`${Wt}-options`]:{display:"none"}}}),[`&${Mt.componentCls}-rtl`]:{direction:"rtl"}}},Le=Mt=>{const{componentCls:Wt}=Mt;return{[`${Wt}${Wt}-disabled:not(${Wt}-mini)`]:{"&, &:hover":{[`${Wt}-item-link`]:{borderColor:Mt.colorBorder}},"&:focus-visible":{[`${Wt}-item-link`]:{borderColor:Mt.colorBorder}},[`${Wt}-item, ${Wt}-item-link`]:{backgroundColor:Mt.colorBgContainerDisabled,borderColor:Mt.colorBorder,[`&:hover:not(${Wt}-item-active)`]:{backgroundColor:Mt.colorBgContainerDisabled,borderColor:Mt.colorBorder,a:{color:Mt.colorTextDisabled}},[`&${Wt}-item-active`]:{backgroundColor:Mt.itemActiveBgDisabled}},[`${Wt}-prev, ${Wt}-next`]:{"&:hover button":{backgroundColor:Mt.colorBgContainerDisabled,borderColor:Mt.colorBorder,color:Mt.colorTextDisabled},[`${Wt}-item-link`]:{backgroundColor:Mt.colorBgContainerDisabled,borderColor:Mt.colorBorder}}},[`${Wt}:not(${Wt}-mini)`]:{[`${Wt}-prev, ${Wt}-next`]:{"&:hover button":{borderColor:Mt.colorPrimaryHover,backgroundColor:Mt.itemBg},[`${Wt}-item-link`]:{backgroundColor:Mt.itemLinkBg,borderColor:Mt.colorBorder},[`&:hover ${Wt}-item-link`]:{borderColor:Mt.colorPrimary,backgroundColor:Mt.itemBg,color:Mt.colorPrimary},[`&${Wt}-disabled`]:{[`${Wt}-item-link`]:{borderColor:Mt.colorBorder,color:Mt.colorTextDisabled}}},[`${Wt}-item`]:{backgroundColor:Mt.itemBg,border:`${Mt.lineWidth}px ${Mt.lineType} ${Mt.colorBorder}`,[`&:hover:not(${Wt}-item-active)`]:{borderColor:Mt.colorPrimary,backgroundColor:Mt.itemBg,a:{color:Mt.colorPrimary}},"&-active":{borderColor:Mt.colorPrimary}}}}},dt=Mt=>{const{componentCls:Wt}=Mt;return{[`${Wt}:not(${Wt}-disabled)`]:{[`${Wt}-item`]:Object.assign({},(0,un.Qy)(Mt)),[`${Wt}-jump-prev, ${Wt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Wt}-item-link-icon`]:{opacity:1},[`${Wt}-item-ellipsis`]:{opacity:0}},(0,un.oN)(Mt))},[`${Wt}-prev, ${Wt}-next`]:{[`&:focus-visible ${Wt}-item-link`]:Object.assign({},(0,un.oN)(Mt))}}}};var Nt=(0,Wn.Z)("Pagination",Mt=>{const Wt=(0,An.TS)(Mt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Mt.marginXXS/2,paginationMiniQuickJumperInputWidth:Mt.controlHeightLG*1.1,paginationItemPaddingInline:Mt.marginXXS*1.5,paginationEllipsisLetterSpacing:Mt.marginXXS/2,paginationSlashMarginInlineStart:Mt.marginXXS,paginationSlashMarginInlineEnd:Mt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,kt.e5)(Mt),(0,kt.TM)(Mt));return[le(Wt),dt(Wt),Mt.wireframe&&Le(Wt)]},Mt=>({itemBg:Mt.colorBgContainer,itemSize:Mt.controlHeight,itemSizeSM:Mt.controlHeightSM,itemActiveBg:Mt.colorBgContainer,itemLinkBg:Mt.colorBgContainer,itemActiveColorDisabled:Mt.colorTextDisabled,itemActiveBgDisabled:Mt.controlItemBgActiveDisabled,itemInputBg:Mt.colorBgContainer,miniOptionsSizeChangerTop:0})),tn=function(Mt,Wt){var qt={};for(var Gt in Mt)Object.prototype.hasOwnProperty.call(Mt,Gt)&&Wt.indexOf(Gt)<0&&(qt[Gt]=Mt[Gt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Gt=Object.getOwnPropertySymbols(Mt);jt<Gt.length;jt++)Wt.indexOf(Gt[jt])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Gt[jt])&&(qt[Gt[jt]]=Mt[Gt[jt]]);return qt},Yt=Mt=>{const{prefixCls:Wt,selectPrefixCls:qt,className:Gt,rootClassName:jt,style:sr,size:Dt,locale:Jt,selectComponentClass:Gn,responsive:Bn,showSizeChanger:Sn}=Mt,or=tn(Mt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gr}=(0,ht.Z)(Bn),{getPrefixCls:kr,direction:Lr,pagination:Qr={}}=de.useContext(Vt.E_),Ir=kr("pagination",Wt),[Dn,cr]=Nt(Ir),vr=Sn!=null?Sn:Qr.showSizeChanger,Ur=de.useMemo(()=>{const Pr=de.createElement("span",{className:`${Ir}-item-ellipsis`},"\u2022\u2022\u2022"),br=de.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Lr==="rtl"?de.createElement(we.Z,null):de.createElement(fe.Z,null)),xt=de.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Lr==="rtl"?de.createElement(fe.Z,null):de.createElement(we.Z,null)),$t=de.createElement("a",{className:`${Ir}-item-link`},de.createElement("div",{className:`${Ir}-item-container`},Lr==="rtl"?de.createElement(Ee.Z,{className:`${Ir}-item-link-icon`}):de.createElement(ue,{className:`${Ir}-item-link-icon`}),Pr)),fn=de.createElement("a",{className:`${Ir}-item-link`},de.createElement("div",{className:`${Ir}-item-container`},Lr==="rtl"?de.createElement(ue,{className:`${Ir}-item-link-icon`}):de.createElement(Ee.Z,{className:`${Ir}-item-link-icon`}),Pr));return{prevIcon:br,nextIcon:xt,jumpPrevIcon:$t,jumpNextIcon:fn}},[Lr,Ir]),[ti]=(0,Bt.Z)("Pagination",St.Z),Kt=Object.assign(Object.assign({},ti),Jt),_n=(0,Rt.Z)(Dt),nn=_n==="small"||!!(gr&&!_n&&Bn),In=kr("select",qt),nr=De()({[`${Ir}-mini`]:nn,[`${Ir}-rtl`]:Lr==="rtl"},Qr==null?void 0:Qr.className,Gt,jt,cr),Rr=Object.assign(Object.assign({},Qr==null?void 0:Qr.style),sr);return Dn(de.createElement(Be,Object.assign({},Ur,or,{style:Rr,prefixCls:Ir,selectPrefixCls:In,className:nr,selectComponentClass:Gn||(nn?Fn:kn),locale:Kt,showSizeChanger:vr})))},dn=Yt},66330:function(vn,Tt,te){"use strict";te.d(Tt,{t5:function(){return we}});var ee=te(94184),de=te.n(ee),ke=te(92419),Ge=te(67294),xe=te(53124),Me=te(81643),ue=te(20136),Ee=function(De,Ke){var rt={};for(var Qe in De)Object.prototype.hasOwnProperty.call(De,Qe)&&Ke.indexOf(Qe)<0&&(rt[Qe]=De[Qe]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Qe=Object.getOwnPropertySymbols(De);_e<Qe.length;_e++)Ke.indexOf(Qe[_e])<0&&Object.prototype.propertyIsEnumerable.call(De,Qe[_e])&&(rt[Qe[_e]]=De[Qe[_e]]);return rt};const fe=(De,Ke,rt)=>{if(!(!Ke&&!rt))return Ge.createElement(Ge.Fragment,null,Ke&&Ge.createElement("div",{className:`${De}-title`},(0,Me.Z)(Ke)),Ge.createElement("div",{className:`${De}-inner-content`},(0,Me.Z)(rt)))},we=De=>{const{hashId:Ke,prefixCls:rt,className:Qe,style:_e,placement:ge="top",title:Ve,content:lt,children:He}=De;return Ge.createElement("div",{className:de()(Ke,rt,`${rt}-pure`,`${rt}-placement-${ge}`,Qe),style:_e},Ge.createElement("div",{className:`${rt}-arrow`}),Ge.createElement(ke.G,Object.assign({},De,{className:Ke,prefixCls:rt}),He||fe(rt,Ve,lt)))},Ue=De=>{const{prefixCls:Ke}=De,rt=Ee(De,["prefixCls"]),{getPrefixCls:Qe}=Ge.useContext(xe.E_),_e=Qe("popover",Ke),[ge,Ve]=(0,ue.Z)(_e);return ge(Ge.createElement(we,Object.assign({},rt,{prefixCls:_e,hashId:Ve})))};Tt.ZP=Ue},55241:function(vn,Tt,te){"use strict";var ee=te(94184),de=te.n(ee),ke=te(67294),Ge=te(81643),xe=te(33603),Me=te(53124),ue=te(83062),Ee=te(66330),fe=te(20136),we=function(Ke,rt){var Qe={};for(var _e in Ke)Object.prototype.hasOwnProperty.call(Ke,_e)&&rt.indexOf(_e)<0&&(Qe[_e]=Ke[_e]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,_e=Object.getOwnPropertySymbols(Ke);ge<_e.length;ge++)rt.indexOf(_e[ge])<0&&Object.prototype.propertyIsEnumerable.call(Ke,_e[ge])&&(Qe[_e[ge]]=Ke[_e[ge]]);return Qe};const Ue=Ke=>{let{title:rt,content:Qe,prefixCls:_e}=Ke;return ke.createElement(ke.Fragment,null,rt&&ke.createElement("div",{className:`${_e}-title`},(0,Ge.Z)(rt)),ke.createElement("div",{className:`${_e}-inner-content`},(0,Ge.Z)(Qe)))},De=ke.forwardRef((Ke,rt)=>{const{prefixCls:Qe,title:_e,content:ge,overlayClassName:Ve,placement:lt="top",trigger:He="hover",mouseEnterDelay:Oe=.1,mouseLeaveDelay:ve=.1,overlayStyle:ye={}}=Ke,ze=we(Ke,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:We}=ke.useContext(Me.E_),st=We("popover",Qe),[at,Ze]=(0,fe.Z)(st),Ae=We(),mt=de()(Ve,Ze);return at(ke.createElement(ue.Z,Object.assign({placement:lt,trigger:He,mouseEnterDelay:Oe,mouseLeaveDelay:ve,overlayStyle:ye},ze,{prefixCls:st,overlayClassName:mt,ref:rt,overlay:_e||ge?ke.createElement(Ue,{prefixCls:st,title:_e,content:ge}):null,transitionName:(0,xe.m)(Ae,"zoom-big",ze.transitionName),"data-popover-inject":!0})))});De._InternalPanelDoNotUseOrYouWillBeFired=Ee.ZP,Tt.Z=De},20136:function(vn,Tt,te){"use strict";var ee=te(14747),de=te(50438),ke=te(97414),Ge=te(8796),xe=te(67968),Me=te(45503);const ue=we=>{const{componentCls:Ue,popoverColor:De,minWidth:Ke,fontWeightStrong:rt,popoverPadding:Qe,boxShadowSecondary:_e,colorTextHeading:ge,borderRadiusLG:Ve,zIndexPopup:lt,marginXS:He,colorBgElevated:Oe,popoverBg:ve}=we;return[{[Ue]:Object.assign(Object.assign({},(0,ee.Wf)(we)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:lt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Oe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ue}-content`]:{position:"relative"},[`${Ue}-inner`]:{backgroundColor:ve,backgroundClip:"padding-box",borderRadius:Ve,boxShadow:_e,padding:Qe},[`${Ue}-title`]:{minWidth:Ke,marginBottom:He,color:ge,fontWeight:rt},[`${Ue}-inner-content`]:{color:De}})},(0,ke.ZP)(we,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ue}-pure`]:{position:"relative",maxWidth:"none",margin:we.sizePopupArrow,display:"inline-block",[`${Ue}-content`]:{display:"inline-block"}}}]},Ee=we=>{const{componentCls:Ue}=we;return{[Ue]:Ge.i.map(De=>{const Ke=we[`${De}6`];return{[`&${Ue}-${De}`]:{"--antd-arrow-background-color":Ke,[`${Ue}-inner`]:{backgroundColor:Ke},[`${Ue}-arrow`]:{background:"transparent"}}}})}},fe=we=>{const{componentCls:Ue,lineWidth:De,lineType:Ke,colorSplit:rt,paddingSM:Qe,controlHeight:_e,fontSize:ge,lineHeight:Ve,padding:lt}=we,He=_e-Math.round(ge*Ve),Oe=He/2,ve=He/2-De,ye=lt;return{[Ue]:{[`${Ue}-inner`]:{padding:0},[`${Ue}-title`]:{margin:0,padding:`${Oe}px ${ye}px ${ve}px`,borderBottom:`${De}px ${Ke} ${rt}`},[`${Ue}-inner-content`]:{padding:`${Qe}px ${ye}px`}}}};Tt.Z=(0,xe.Z)("Popover",we=>{const{colorBgElevated:Ue,colorText:De,wireframe:Ke}=we,rt=(0,Me.TS)(we,{popoverPadding:12,popoverBg:Ue,popoverColor:De});return[ue(rt),Ee(rt),Ke&&fe(rt),(0,de._y)(rt,"zoom-big")]},we=>({width:177,minWidth:177,zIndexPopup:we.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return sr}});var ee=te(67294),de=te(87725),ke=te(18299),Ge=te(16646),xe=te(73475),Me=te(94184),ue=te.n(Me),Ee=te(10366),fe=te(53124),we=te(87462),Ue=te(1413),De=te(45987),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},rt=function(){var Jt=(0,ee.useRef)([]),Gn=(0,ee.useRef)(null);return(0,ee.useEffect)(function(){var Bn=Date.now(),Sn=!1;Jt.current.forEach(function(or){if(or){Sn=!0;var gr=or.style;gr.transitionDuration=".3s, .3s, .3s, .06s",Gn.current&&Bn-Gn.current<100&&(gr.transitionDuration="0s, 0s")}}),Sn&&(Gn.current=Date.now())}),Jt.current},Qe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],_e=function(Jt){var Gn=(0,Ue.Z)((0,Ue.Z)({},Ke),Jt),Bn=Gn.className,Sn=Gn.percent,or=Gn.prefixCls,gr=Gn.strokeColor,kr=Gn.strokeLinecap,Lr=Gn.strokeWidth,Qr=Gn.style,Ir=Gn.trailColor,Dn=Gn.trailWidth,cr=Gn.transition,vr=(0,De.Z)(Gn,Qe);delete vr.gapPosition;var Ur=Array.isArray(Sn)?Sn:[Sn],ti=Array.isArray(gr)?gr:[gr],Kt=rt(),_n=Lr/2,nn=100-Lr/2,In="M ".concat(kr==="round"?_n:0,",").concat(_n,`
L `).concat(kr==="round"?nn:100,",").concat(_n),nr="0 0 100 ".concat(Lr),Rr=0;return ee.createElement("svg",(0,we.Z)({className:ue()("".concat(or,"-line"),Bn),viewBox:nr,preserveAspectRatio:"none",style:Qr},vr),ee.createElement("path",{className:"".concat(or,"-line-trail"),d:In,strokeLinecap:kr,stroke:Ir,strokeWidth:Dn||Lr,fillOpacity:"0"}),Ur.map(function(Pr,br){var xt=1;switch(kr){case"round":xt=1-Lr/100;break;case"square":xt=1-Lr/2/100;break;default:xt=1;break}var $t={strokeDasharray:"".concat(Pr*xt,"px, 100px"),strokeDashoffset:"-".concat(Rr,"px"),transition:cr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fn=ti[br]||ti[ti.length-1];return Rr+=Pr,ee.createElement("path",{key:br,className:"".concat(or,"-line-path"),d:In,strokeLinecap:kr,stroke:fn,strokeWidth:Lr,fillOpacity:"0",ref:function(yt){Kt[br]=yt},style:$t})}))},ge=_e,Ve=te(71002),lt=te(97685),He=te(98924),Oe=0,ve=(0,He.Z)();function ye(){var Dt;return ve?(Dt=Oe,Oe+=1):Dt="TEST_OR_SSR",Dt}var ze=function(Dt){var Jt=ee.useState(),Gn=(0,lt.Z)(Jt,2),Bn=Gn[0],Sn=Gn[1];return ee.useEffect(function(){Sn("rc_progress_".concat(ye()))},[]),Dt||Bn},We=function(Jt){var Gn=Jt.bg,Bn=Jt.children;return ee.createElement("div",{style:{width:"100%",height:"100%",background:Gn}},Bn)};function st(Dt,Jt){return Object.keys(Dt).map(function(Gn){var Bn=parseFloat(Gn),Sn="".concat(Math.floor(Bn*Jt),"%");return"".concat(Dt[Gn]," ").concat(Sn)})}var at=ee.forwardRef(function(Dt,Jt){var Gn=Dt.prefixCls,Bn=Dt.color,Sn=Dt.gradientId,or=Dt.radius,gr=Dt.style,kr=Dt.ptg,Lr=Dt.strokeLinecap,Qr=Dt.strokeWidth,Ir=Dt.size,Dn=Dt.gapDegree,cr=Bn&&(0,Ve.Z)(Bn)==="object",vr=cr?"#FFF":void 0,Ur=Ir/2,ti=ee.createElement("circle",{className:"".concat(Gn,"-circle-path"),r:or,cx:Ur,cy:Ur,stroke:vr,strokeLinecap:Lr,strokeWidth:Qr,opacity:kr===0?0:1,style:gr,ref:Jt});if(!cr)return ti;var Kt="".concat(Sn,"-conic"),_n=Dn?"".concat(180+Dn/2,"deg"):"0deg",nn=st(Bn,(360-Dn)/360),In=st(Bn,1),nr="conic-gradient(from ".concat(_n,", ").concat(nn.join(", "),")"),Rr="linear-gradient(to ".concat(Dn?"bottom":"top",", ").concat(In.join(", "),")");return ee.createElement(ee.Fragment,null,ee.createElement("mask",{id:Kt},ti),ee.createElement("foreignObject",{x:0,y:0,width:Ir,height:Ir,mask:"url(#".concat(Kt,")")},ee.createElement(We,{bg:Rr},ee.createElement(We,{bg:nr}))))}),Ze=at,Ae=100,mt=function(Jt,Gn,Bn,Sn,or,gr,kr,Lr,Qr,Ir){var Dn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cr=Bn/100*360*((360-gr)/360),vr=gr===0?0:{bottom:0,top:180,left:90,right:-90}[kr],Ur=(100-Sn)/100*Gn;Qr==="round"&&Sn!==100&&(Ur+=Ir/2,Ur>=Gn&&(Ur=Gn-.01));var ti=Ae/2;return{stroke:typeof Lr=="string"?Lr:void 0,strokeDasharray:"".concat(Gn,"px ").concat(Jt),strokeDashoffset:Ur+Dn,transform:"rotate(".concat(or+cr+vr,"deg)"),transformOrigin:"".concat(ti,"px ").concat(ti,"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}},je=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function it(Dt){var Jt=Dt!=null?Dt:[];return Array.isArray(Jt)?Jt:[Jt]}var qe=function(Jt){var Gn=(0,Ue.Z)((0,Ue.Z)({},Ke),Jt),Bn=Gn.id,Sn=Gn.prefixCls,or=Gn.steps,gr=Gn.strokeWidth,kr=Gn.trailWidth,Lr=Gn.gapDegree,Qr=Lr===void 0?0:Lr,Ir=Gn.gapPosition,Dn=Gn.trailColor,cr=Gn.strokeLinecap,vr=Gn.style,Ur=Gn.className,ti=Gn.strokeColor,Kt=Gn.percent,_n=(0,De.Z)(Gn,je),nn=Ae/2,In=ze(Bn),nr="".concat(In,"-gradient"),Rr=nn-gr/2,Pr=Math.PI*2*Rr,br=Qr>0?90+Qr/2:-90,xt=Pr*((360-Qr)/360),$t=(0,Ve.Z)(or)==="object"?or:{count:or,space:2},fn=$t.count,Mn=$t.space,yt=it(Kt),Ut=it(ti),Cn=Ut.find(function(Gr){return Gr&&(0,Ve.Z)(Gr)==="object"}),cn=Cn&&(0,Ve.Z)(Cn)==="object",zn=cn?"butt":cr,Hn=mt(Pr,xt,0,100,br,Qr,Ir,Dn,zn,gr),Mr=rt(),gi=function(){var di=0;return yt.map(function(ci,Si){var Jn=Ut[Si]||Ut[Ut.length-1],Jr=mt(Pr,xt,di,ci,br,Qr,Ir,Jn,zn,gr);return di+=ci,ee.createElement(Ze,{key:Si,color:Jn,ptg:ci,radius:Rr,prefixCls:Sn,gradientId:nr,style:Jr,strokeLinecap:zn,strokeWidth:gr,gapDegree:Qr,ref:function(Qa){Mr[Si]=Qa},size:Ae})}).reverse()},Xr=function(){var di=Math.round(fn*(yt[0]/100)),ci=100/fn,Si=0;return new Array(fn).fill(null).map(function(Jn,Jr){var Oa=Jr<=di-1?Ut[0]:Dn,Qa=Oa&&(0,Ve.Z)(Oa)==="object"?"url(#".concat(nr,")"):void 0,Li=mt(Pr,xt,Si,ci,br,Qr,Ir,Oa,"butt",gr,Mn);return Si+=(xt-Li.strokeDashoffset+Mn)*100/xt,ee.createElement("circle",{key:Jr,className:"".concat(Sn,"-circle-path"),r:Rr,cx:nn,cy:nn,stroke:Qa,strokeWidth:gr,opacity:1,style:Li,ref:function($a){Mr[Jr]=$a}})})};return ee.createElement("svg",(0,we.Z)({className:ue()("".concat(Sn,"-circle"),Ur),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:vr,id:Bn,role:"presentation"},_n),!fn&&ee.createElement("circle",{className:"".concat(Sn,"-circle-trail"),r:Rr,cx:nn,cy:nn,stroke:Dn,strokeLinecap:zn,strokeWidth:kr||gr,style:Hn}),fn?Xr():gi())},gt=qe,Pt={Line:ge,Circle:gt},Xt=te(83062),$e=te(16397);function Be(Dt){return!Dt||Dt<0?0:Dt>100?100:Dt}function St(Dt){let{success:Jt,successPercent:Gn}=Dt,Bn=Gn;return Jt&&"progress"in Jt&&(Bn=Jt.progress),Jt&&"percent"in Jt&&(Bn=Jt.percent),Bn}const Vt=Dt=>{let{percent:Jt,success:Gn,successPercent:Bn}=Dt;const Sn=Be(St({success:Gn,successPercent:Bn}));return[Sn,Be(Be(Jt)-Sn)]},Rt=Dt=>{let{success:Jt={},strokeColor:Gn}=Dt;const{strokeColor:Bn}=Jt;return[Bn||$e.presetPrimaryColors.green,Gn||null]},ht=(Dt,Jt,Gn)=>{var Bn,Sn,or,gr;let kr=-1,Lr=-1;if(Jt==="step"){const Qr=Gn.steps,Ir=Gn.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?(kr=Dt==="small"?2:14,Lr=Ir!=null?Ir:8):typeof Dt=="number"?[kr,Lr]=[Dt,Dt]:[kr=14,Lr=8]=Dt,kr*=Qr}else if(Jt==="line"){const Qr=Gn==null?void 0:Gn.strokeWidth;typeof Dt=="string"||typeof Dt=="undefined"?Lr=Qr||(Dt==="small"?6:8):typeof Dt=="number"?[kr,Lr]=[Dt,Dt]:[kr=-1,Lr=8]=Dt}else(Jt==="circle"||Jt==="dashboard")&&(typeof Dt=="string"||typeof Dt=="undefined"?[kr,Lr]=Dt==="small"?[60,60]:[120,120]:typeof Dt=="number"?[kr,Lr]=[Dt,Dt]:(kr=(Sn=(Bn=Dt[0])!==null&&Bn!==void 0?Bn:Dt[1])!==null&&Sn!==void 0?Sn:120,Lr=(gr=(or=Dt[0])!==null&&or!==void 0?or:Dt[1])!==null&&gr!==void 0?gr:120));return[kr,Lr]},Bt=3,_t=Dt=>Bt/Dt*100;var kn=Dt=>{const{prefixCls:Jt,trailColor:Gn=null,strokeLinecap:Bn="round",gapPosition:Sn,gapDegree:or,width:gr=120,type:kr,children:Lr,success:Qr,size:Ir=gr}=Dt,[Dn,cr]=ht(Ir,"circle");let{strokeWidth:vr}=Dt;vr===void 0&&(vr=Math.max(_t(Dn),6));const Ur={width:Dn,height:cr,fontSize:Dn*.15+6},ti=ee.useMemo(()=>{if(or||or===0)return or;if(kr==="dashboard")return 75},[or,kr]),Kt=Sn||kr==="dashboard"&&"bottom"||void 0,_n=Object.prototype.toString.call(Dt.strokeColor)==="[object Object]",nn=Rt({success:Qr,strokeColor:Dt.strokeColor}),In=ue()(`${Jt}-inner`,{[`${Jt}-circle-gradient`]:_n}),nr=ee.createElement(gt,{percent:Vt(Dt),strokeWidth:vr,trailWidth:vr,strokeColor:nn,strokeLinecap:Bn,trailColor:Gn,prefixCls:Jt,gapDegree:ti,gapPosition:Kt});return ee.createElement("div",{className:In,style:Ur},Dn<=20?ee.createElement(Xt.Z,{title:Lr},ee.createElement("span",null,nr)):ee.createElement(ee.Fragment,null,nr,Lr))},kt=function(Dt,Jt){var Gn={};for(var Bn in Dt)Object.prototype.hasOwnProperty.call(Dt,Bn)&&Jt.indexOf(Bn)<0&&(Gn[Bn]=Dt[Bn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Bn=Object.getOwnPropertySymbols(Dt);Sn<Bn.length;Sn++)Jt.indexOf(Bn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Bn[Sn])&&(Gn[Bn[Sn]]=Dt[Bn[Sn]]);return Gn};const un=Dt=>{let Jt=[];return Object.keys(Dt).forEach(Gn=>{const Bn=parseFloat(Gn.replace(/%/g,""));isNaN(Bn)||Jt.push({key:Bn,value:Dt[Gn]})}),Jt=Jt.sort((Gn,Bn)=>Gn.key-Bn.key),Jt.map(Gn=>{let{key:Bn,value:Sn}=Gn;return`${Sn} ${Bn}%`}).join(", ")},Wn=(Dt,Jt)=>{const{from:Gn=$e.presetPrimaryColors.blue,to:Bn=$e.presetPrimaryColors.blue,direction:Sn=Jt==="rtl"?"to left":"to right"}=Dt,or=kt(Dt,["from","to","direction"]);if(Object.keys(or).length!==0){const gr=un(or);return{backgroundImage:`linear-gradient(${Sn}, ${gr})`}}return{backgroundImage:`linear-gradient(${Sn}, ${Gn}, ${Bn})`}};var Ie=Dt=>{const{prefixCls:Jt,direction:Gn,percent:Bn,size:Sn,strokeWidth:or,strokeColor:gr,strokeLinecap:kr="round",children:Lr,trailColor:Qr=null,success:Ir}=Dt,Dn=gr&&typeof gr!="string"?Wn(gr,Gn):{backgroundColor:gr},cr=kr==="square"||kr==="butt"?0:void 0,vr={backgroundColor:Qr||void 0,borderRadius:cr},Ur=Sn!=null?Sn:[-1,or||(Sn==="small"?6:8)],[ti,Kt]=ht(Ur,"line",{strokeWidth:or}),_n=Object.assign({width:`${Be(Bn)}%`,height:Kt,borderRadius:cr},Dn),nn=St(Dt),In={width:`${Be(nn)}%`,height:Kt,borderRadius:cr,backgroundColor:Ir==null?void 0:Ir.strokeColor},nr={width:ti<0?"100%":ti,height:Kt};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:`${Jt}-outer`,style:nr},ee.createElement("div",{className:`${Jt}-inner`,style:vr},ee.createElement("div",{className:`${Jt}-bg`,style:_n}),nn!==void 0?ee.createElement("div",{className:`${Jt}-success-bg`,style:In}):null)),Lr)},ce=Dt=>{const{size:Jt,steps:Gn,percent:Bn=0,strokeWidth:Sn=8,strokeColor:or,trailColor:gr=null,prefixCls:kr,children:Lr}=Dt,Qr=Math.round(Gn*(Bn/100)),Ir=Jt==="small"?2:14,Dn=Jt!=null?Jt:[Ir,Sn],[cr,vr]=ht(Dn,"step",{steps:Gn,strokeWidth:Sn}),Ur=cr/Gn,ti=new Array(Gn);for(let Kt=0;Kt<Gn;Kt++){const _n=Array.isArray(or)?or[Kt]:or;ti[Kt]=ee.createElement("div",{key:Kt,className:ue()(`${kr}-steps-item`,{[`${kr}-steps-item-active`]:Kt<=Qr-1}),style:{backgroundColor:Kt<=Qr-1?_n:gr,width:Ur,height:vr}})}return ee.createElement("div",{className:`${kr}-steps-outer`},ti,Lr)},me=te(34367),pe=te(14747),le=te(67968),Le=te(45503);const dt=Dt=>{const Jt=Dt?"100%":"-100%";return new me.Keyframes(`antProgress${Dt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Jt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Jt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Nt=Dt=>{const{componentCls:Jt,iconCls:Gn}=Dt;return{[Jt]:Object.assign(Object.assign({},(0,pe.Wf)(Dt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Dt.fontSize,marginInlineEnd:Dt.marginXS,marginBottom:Dt.marginXS},[`${Jt}-outer`]:{display:"inline-block",width:"100%"},[`&${Jt}-show-info`]:{[`${Jt}-outer`]:{marginInlineEnd:`calc(-2em - ${Dt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Dt.paddingXS}px)`}},[`${Jt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Dt.remainingColor,borderRadius:Dt.lineBorderRadius},[`${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:Dt.defaultColor}},[`${Jt}-success-bg, ${Jt}-bg`]:{position:"relative",backgroundColor:Dt.defaultColor,borderRadius:Dt.lineBorderRadius,transition:`all ${Dt.motionDurationSlow} ${Dt.motionEaseInOutCirc}`},[`${Jt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Dt.colorSuccess},[`${Jt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Dt.marginXS,color:Dt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Gn]:{fontSize:Dt.fontSize}},[`&${Jt}-status-active`]:{[`${Jt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Dt.colorBgContainer,borderRadius:Dt.lineBorderRadius,opacity:0,animationName:dt(),animationDuration:Dt.progressActiveMotionDuration,animationTimingFunction:Dt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Jt}-rtl${Jt}-status-active`]:{[`${Jt}-bg::before`]:{animationName:dt(!0)}},[`&${Jt}-status-exception`]:{[`${Jt}-bg`]:{backgroundColor:Dt.colorError},[`${Jt}-text`]:{color:Dt.colorError}},[`&${Jt}-status-exception ${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:Dt.colorError}},[`&${Jt}-status-success`]:{[`${Jt}-bg`]:{backgroundColor:Dt.colorSuccess},[`${Jt}-text`]:{color:Dt.colorSuccess}},[`&${Jt}-status-success ${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:Dt.colorSuccess}}})}},tn=Dt=>{const{componentCls:Jt,iconCls:Gn}=Dt;return{[Jt]:{[`${Jt}-circle-trail`]:{stroke:Dt.remainingColor},[`&${Jt}-circle ${Jt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Jt}-circle ${Jt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Dt.circleTextColor,fontSize:Dt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Gn]:{fontSize:`${Dt.fontSize/Dt.fontSizeSM}em`}},[`${Jt}-circle&-status-exception`]:{[`${Jt}-text`]:{color:Dt.colorError}},[`${Jt}-circle&-status-success`]:{[`${Jt}-text`]:{color:Dt.colorSuccess}}},[`${Jt}-inline-circle`]:{lineHeight:1,[`${Jt}-inner`]:{verticalAlign:"bottom"}}}},an=Dt=>{const{componentCls:Jt}=Dt;return{[Jt]:{[`${Jt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Dt.progressStepMinWidth,marginInlineEnd:Dt.progressStepMarginInlineEnd,backgroundColor:Dt.remainingColor,transition:`all ${Dt.motionDurationSlow}`,"&-active":{backgroundColor:Dt.defaultColor}}}}}},Yt=Dt=>{const{componentCls:Jt,iconCls:Gn}=Dt;return{[Jt]:{[`${Jt}-small&-line, ${Jt}-small&-line ${Jt}-text ${Gn}`]:{fontSize:Dt.fontSizeSM}}}};var dn=(0,le.Z)("Progress",Dt=>{const Jt=Dt.marginXXS/2,Gn=(0,Le.TS)(Dt,{progressStepMarginInlineEnd:Jt,progressStepMinWidth:Jt,progressActiveMotionDuration:"2.4s"});return[Nt(Gn),tn(Gn),an(Gn),Yt(Gn)]},Dt=>({circleTextColor:Dt.colorText,defaultColor:Dt.colorInfo,remainingColor:Dt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Mt=function(Dt,Jt){var Gn={};for(var Bn in Dt)Object.prototype.hasOwnProperty.call(Dt,Bn)&&Jt.indexOf(Bn)<0&&(Gn[Bn]=Dt[Bn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Bn=Object.getOwnPropertySymbols(Dt);Sn<Bn.length;Sn++)Jt.indexOf(Bn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Bn[Sn])&&(Gn[Bn[Sn]]=Dt[Bn[Sn]]);return Gn};const Wt=null,qt=["normal","exception","active","success"];var jt=ee.forwardRef((Dt,Jt)=>{const{prefixCls:Gn,className:Bn,rootClassName:Sn,steps:or,strokeColor:gr,percent:kr=0,size:Lr="default",showInfo:Qr=!0,type:Ir="line",status:Dn,format:cr,style:vr}=Dt,Ur=Mt(Dt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),ti=ee.useMemo(()=>{var yt,Ut;const Cn=St(Dt);return parseInt(Cn!==void 0?(yt=Cn!=null?Cn:0)===null||yt===void 0?void 0:yt.toString():(Ut=kr!=null?kr:0)===null||Ut===void 0?void 0:Ut.toString(),10)},[kr,Dt.success,Dt.successPercent]),Kt=ee.useMemo(()=>!qt.includes(Dn)&&ti>=100?"success":Dn||"normal",[Dn,ti]),{getPrefixCls:_n,direction:nn,progress:In}=ee.useContext(fe.E_),nr=_n("progress",Gn),[Rr,Pr]=dn(nr),br=ee.useMemo(()=>{if(!Qr)return null;const yt=St(Dt);let Ut;const Cn=cr||(zn=>`${zn}%`),cn=Ir==="line";return cr||Kt!=="exception"&&Kt!=="success"?Ut=Cn(Be(kr),Be(yt)):Kt==="exception"?Ut=cn?ee.createElement(Ge.Z,null):ee.createElement(xe.Z,null):Kt==="success"&&(Ut=cn?ee.createElement(de.Z,null):ee.createElement(ke.Z,null)),ee.createElement("span",{className:`${nr}-text`,title:typeof Ut=="string"?Ut:void 0},Ut)},[Qr,kr,ti,Kt,Ir,nr,cr]),xt=Array.isArray(gr)?gr[0]:gr,$t=typeof gr=="string"||Array.isArray(gr)?gr:void 0;let fn;Ir==="line"?fn=or?ee.createElement(ce,Object.assign({},Dt,{strokeColor:$t,prefixCls:nr,steps:or}),br):ee.createElement(Ie,Object.assign({},Dt,{strokeColor:xt,prefixCls:nr,direction:nn}),br):(Ir==="circle"||Ir==="dashboard")&&(fn=ee.createElement(kn,Object.assign({},Dt,{strokeColor:xt,prefixCls:nr,progressStatus:Kt}),br));const Mn=ue()(nr,`${nr}-status-${Kt}`,`${nr}-${Ir==="dashboard"&&"circle"||or&&"steps"||Ir}`,{[`${nr}-inline-circle`]:Ir==="circle"&&ht(Lr,"circle")[0]<=20,[`${nr}-show-info`]:Qr,[`${nr}-${Lr}`]:typeof Lr=="string",[`${nr}-rtl`]:nn==="rtl"},In==null?void 0:In.className,Bn,Sn,Pr);return Rr(ee.createElement("div",Object.assign({ref:Jt,style:Object.assign(Object.assign({},In==null?void 0:In.style),vr),className:Mn,role:"progressbar","aria-valuenow":ti},(0,Ee.Z)(Ur,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),fn))}),sr=jt},78045:function(vn,Tt,te){"use strict";te.d(Tt,{ZP:function(){return $e}});var ee=te(94184),de=te.n(ee),ke=te(5663),Ge=te(1337),xe=te(67294),Me=te(53124),ue=te(98675);const Ee=xe.createContext(null),fe=Ee.Provider;var we=Ee;const Ue=xe.createContext(null),De=Ue.Provider;var Ke=te(95860),rt=te(17799),Qe=te(98866),_e=te(65223),ge=te(14747),Ve=te(67968),lt=te(45503);const He=Be=>{const{componentCls:St,antCls:Vt}=Be,Rt=`${St}-group`;return{[Rt]:Object.assign(Object.assign({},(0,ge.Wf)(Be)),{display:"inline-block",fontSize:0,[`&${Rt}-rtl`]:{direction:"rtl"},[`${Vt}-badge ${Vt}-badge-count`]:{zIndex:1},[`> ${Vt}-badge:not(:first-child) > ${Vt}-button-wrapper`]:{borderInlineStart:"none"}})}},Oe=Be=>{const{componentCls:St,wrapperMarginInlineEnd:Vt,colorPrimary:Rt,radioSize:ht,motionDurationSlow:Bt,motionDurationMid:_t,motionEaseInOutCirc:Fn,colorBgContainer:kn,colorBorder:kt,lineWidth:un,dotSize:Wn,colorBgContainerDisabled:An,colorTextDisabled:Ie,paddingXS:he,dotColorDisabled:ce,lineType:me,radioDotDisabledSize:pe,wireframe:le,colorWhite:Le}=Be,dt=`${St}-inner`;return{[`${St}-wrapper`]:Object.assign(Object.assign({},(0,ge.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Vt,cursor:"pointer",[`&${St}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Be.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${St}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${un}px ${me} ${Rt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[St]:Object.assign(Object.assign({},(0,ge.Wf)(Be)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${St}-wrapper:hover &,
&:hover ${dt}`]:{borderColor:Rt},[`${St}-input:focus-visible + ${dt}`]:Object.assign({},(0,ge.oN)(Be)),[`${St}:hover::after, ${St}-wrapper:hover &::after`]:{visibility:"visible"},[`${St}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ht,height:ht,marginBlockStart:ht/-2,marginInlineStart:ht/-2,backgroundColor:le?Rt:Le,borderBlockStart:0,borderInlineStart:0,borderRadius:ht,transform:"scale(0)",opacity:0,transition:`all ${Bt} ${Fn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ht,height:ht,backgroundColor:kn,borderColor:kt,borderStyle:"solid",borderWidth:un,borderRadius:"50%",transition:`all ${_t}`},[`${St}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${St}-checked`]:{[dt]:{borderColor:Rt,backgroundColor:le?kn:Rt,"&::after":{transform:`scale(${Wn/ht})`,opacity:1,transition:`all ${Bt} ${Fn}`}}},[`${St}-disabled`]:{cursor:"not-allowed",[dt]:{backgroundColor:An,borderColor:kt,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${St}-input`]:{cursor:"not-allowed"},[`${St}-disabled + span`]:{color:Ie,cursor:"not-allowed"},[`&${St}-checked`]:{[dt]:{"&::after":{transform:`scale(${pe/ht})`}}}},[`span${St} + *`]:{paddingInlineStart:he,paddingInlineEnd:he}})}},ve=Be=>{const{buttonColor:St,controlHeight:Vt,componentCls:Rt,lineWidth:ht,lineType:Bt,colorBorder:_t,motionDurationSlow:Fn,motionDurationMid:kn,buttonPaddingInline:kt,fontSize:un,buttonBg:Wn,fontSizeLG:An,controlHeightLG:Ie,controlHeightSM:he,paddingXS:ce,borderRadius:me,borderRadiusSM:pe,borderRadiusLG:le,buttonCheckedBg:Le,buttonSolidCheckedColor:dt,colorTextDisabled:Nt,colorBgContainerDisabled:tn,buttonCheckedBgDisabled:an,buttonCheckedColorDisabled:Yt,colorPrimary:dn,colorPrimaryHover:Mt,colorPrimaryActive:Wt,buttonSolidCheckedBg:qt,buttonSolidCheckedHoverBg:Gt,buttonSolidCheckedActiveBg:jt}=Be;return{[`${Rt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Vt,margin:0,paddingInline:kt,paddingBlock:0,color:St,fontSize:un,lineHeight:`${Vt-ht*2}px`,background:Wn,border:`${ht}px ${Bt} ${_t}`,borderBlockStartWidth:ht+.02,borderInlineStartWidth:0,borderInlineEndWidth:ht,cursor:"pointer",transition:[`color ${kn}`,`background ${kn}`,`box-shadow ${kn}`].join(","),a:{color:St},[`> ${Rt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ht,insetInlineStart:-ht,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ht,paddingInline:0,backgroundColor:_t,transition:`background-color ${Fn}`,content:'""'}},"&:first-child":{borderInlineStart:`${ht}px ${Bt} ${_t}`,borderStartStartRadius:me,borderEndStartRadius:me},"&:last-child":{borderStartEndRadius:me,borderEndEndRadius:me},"&:first-child:last-child":{borderRadius:me},[`${Rt}-group-large &`]:{height:Ie,fontSize:An,lineHeight:`${Ie-ht*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${Rt}-group-small &`]:{height:he,paddingInline:ce-ht,paddingBlock:0,lineHeight:`${he-ht*2}px`,"&:first-child":{borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe}},"&:hover":{position:"relative",color:dn},"&:has(:focus-visible)":Object.assign({},(0,ge.oN)(Be)),[`${Rt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Rt}-button-wrapper-disabled)`]:{zIndex:1,color:dn,background:Le,borderColor:dn,"&::before":{backgroundColor:dn},"&:first-child":{borderColor:dn},"&:hover":{color:Mt,borderColor:Mt,"&::before":{backgroundColor:Mt}},"&:active":{color:Wt,borderColor:Wt,"&::before":{backgroundColor:Wt}}},[`${Rt}-group-solid &-checked:not(${Rt}-button-wrapper-disabled)`]:{color:dt,background:qt,borderColor:qt,"&:hover":{color:dt,background:Gt,borderColor:Gt},"&:active":{color:dt,background:jt,borderColor:jt}},"&-disabled":{color:Nt,backgroundColor:tn,borderColor:_t,cursor:"not-allowed","&:first-child, &:hover":{color:Nt,backgroundColor:tn,borderColor:_t}},[`&-disabled${Rt}-button-wrapper-checked`]:{color:Yt,backgroundColor:an,borderColor:_t,boxShadow:"none"}}}},ye=Be=>Be-4*2;var ze=(0,Ve.Z)("Radio",Be=>{const{controlOutline:St,controlOutlineWidth:Vt,radioSize:Rt}=Be,ht=`0 0 0 ${Vt}px ${St}`,Bt=ht,_t=ye(Rt),Fn=(0,lt.TS)(Be,{radioDotDisabledSize:_t,radioFocusShadow:ht,radioButtonFocusShadow:Bt});return[He(Fn),Oe(Fn),ve(Fn)]},Be=>{const{wireframe:St,padding:Vt,marginXS:Rt,lineWidth:ht,fontSizeLG:Bt,colorText:_t,colorBgContainer:Fn,colorTextDisabled:kn,controlItemBgActiveDisabled:kt,colorTextLightSolid:un,colorPrimary:Wn,colorPrimaryHover:An,colorPrimaryActive:Ie}=Be,he=4,ce=Bt,me=St?ye(ce):ce-(he+ht)*2;return{radioSize:ce,dotSize:me,dotColorDisabled:kn,buttonSolidCheckedColor:un,buttonSolidCheckedBg:Wn,buttonSolidCheckedHoverBg:An,buttonSolidCheckedActiveBg:Ie,buttonBg:Fn,buttonCheckedBg:Fn,buttonColor:_t,buttonCheckedBgDisabled:kt,buttonCheckedColorDisabled:kn,buttonPaddingInline:Vt-ht,wrapperMarginInlineEnd:Rt}}),We=te(45353),st=te(92429),at=function(Be,St){var Vt={};for(var Rt in Be)Object.prototype.hasOwnProperty.call(Be,Rt)&&St.indexOf(Rt)<0&&(Vt[Rt]=Be[Rt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Rt=Object.getOwnPropertySymbols(Be);ht<Rt.length;ht++)St.indexOf(Rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Be,Rt[ht])&&(Vt[Rt[ht]]=Be[Rt[ht]]);return Vt};const Ze=(Be,St)=>{var Vt,Rt;const ht=xe.useContext(we),Bt=xe.useContext(Ue),{getPrefixCls:_t,direction:Fn,radio:kn}=xe.useContext(Me.E_),kt=xe.useRef(null),un=(0,rt.sQ)(St,kt),{isFormItemInput:Wn}=xe.useContext(_e.aM),An=Wt=>{var qt,Gt;(qt=Be.onChange)===null||qt===void 0||qt.call(Be,Wt),(Gt=ht==null?void 0:ht.onChange)===null||Gt===void 0||Gt.call(ht,Wt)},{prefixCls:Ie,className:he,rootClassName:ce,children:me,style:pe}=Be,le=at(Be,["prefixCls","className","rootClassName","children","style"]),Le=_t("radio",Ie),dt=((ht==null?void 0:ht.optionType)||Bt)==="button",Nt=dt?`${Le}-button`:Le,[tn,an]=ze(Le),Yt=Object.assign({},le),dn=xe.useContext(Qe.Z);ht&&(Yt.name=ht.name,Yt.onChange=An,Yt.checked=Be.value===ht.value,Yt.disabled=(Vt=Yt.disabled)!==null&&Vt!==void 0?Vt:ht.disabled),Yt.disabled=(Rt=Yt.disabled)!==null&&Rt!==void 0?Rt:dn;const Mt=de()(`${Nt}-wrapper`,{[`${Nt}-wrapper-checked`]:Yt.checked,[`${Nt}-wrapper-disabled`]:Yt.disabled,[`${Nt}-wrapper-rtl`]:Fn==="rtl",[`${Nt}-wrapper-in-form-item`]:Wn},kn==null?void 0:kn.className,he,ce,an);return tn(xe.createElement(We.Z,{component:"Radio",disabled:Yt.disabled},xe.createElement("label",{className:Mt,style:Object.assign(Object.assign({},kn==null?void 0:kn.style),pe),onMouseEnter:Be.onMouseEnter,onMouseLeave:Be.onMouseLeave},xe.createElement(Ke.Z,Object.assign({},Yt,{className:de()(Yt.className,!dt&&st.A),type:"radio",prefixCls:Nt,ref:un})),me!==void 0?xe.createElement("span",null,me):null)))};var mt=xe.forwardRef(Ze);const je=xe.forwardRef((Be,St)=>{const{getPrefixCls:Vt,direction:Rt}=xe.useContext(Me.E_),[ht,Bt]=(0,ke.Z)(Be.defaultValue,{value:Be.value}),_t=qt=>{const Gt=ht,jt=qt.target.value;"value"in Be||Bt(jt);const{onChange:sr}=Be;sr&&jt!==Gt&&sr(qt)},{prefixCls:Fn,className:kn,rootClassName:kt,options:un,buttonStyle:Wn="outline",disabled:An,children:Ie,size:he,style:ce,id:me,onMouseEnter:pe,onMouseLeave:le,onFocus:Le,onBlur:dt}=Be,Nt=Vt("radio",Fn),tn=`${Nt}-group`,[an,Yt]=ze(Nt);let dn=Ie;un&&un.length>0&&(dn=un.map(qt=>typeof qt=="string"||typeof qt=="number"?xe.createElement(mt,{key:qt.toString(),prefixCls:Nt,disabled:An,value:qt,checked:ht===qt},qt):xe.createElement(mt,{key:`radio-group-value-options-${qt.value}`,prefixCls:Nt,disabled:qt.disabled||An,value:qt.value,checked:ht===qt.value,title:qt.title,style:qt.style},qt.label)));const Mt=(0,ue.Z)(he),Wt=de()(tn,`${tn}-${Wn}`,{[`${tn}-${Mt}`]:Mt,[`${tn}-rtl`]:Rt==="rtl"},kn,kt,Yt);return an(xe.createElement("div",Object.assign({},(0,Ge.Z)(Be,{aria:!0,data:!0}),{className:Wt,style:ce,onMouseEnter:pe,onMouseLeave:le,onFocus:Le,onBlur:dt,id:me,ref:St}),xe.createElement(fe,{value:{onChange:_t,value:ht,disabled:Be.disabled,name:Be.name,optionType:Be.optionType}},dn)))});var it=xe.memo(je),qe=function(Be,St){var Vt={};for(var Rt in Be)Object.prototype.hasOwnProperty.call(Be,Rt)&&St.indexOf(Rt)<0&&(Vt[Rt]=Be[Rt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Rt=Object.getOwnPropertySymbols(Be);ht<Rt.length;ht++)St.indexOf(Rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Be,Rt[ht])&&(Vt[Rt[ht]]=Be[Rt[ht]]);return Vt};const gt=(Be,St)=>{const{getPrefixCls:Vt}=xe.useContext(Me.E_),{prefixCls:Rt}=Be,ht=qe(Be,["prefixCls"]),Bt=Vt("radio",Rt);return xe.createElement(De,{value:"button"},xe.createElement(mt,Object.assign({prefixCls:Bt},ht,{type:"radio",ref:St})))};var Pt=xe.forwardRef(gt);const Xt=mt;Xt.Button=Pt,Xt.Group=it,Xt.__ANT_RADIO=!0;var $e=Xt},12604:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return $e}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(St,Vt){return de.createElement(xe.Z,(0,ee.Z)({},St,{ref:Vt,icon:Ge}))},ue=de.forwardRef(Me),Ee=te(94184),fe=te.n(Ee),we=te(4942),Ue=te(97685),De=te(45987),Ke=te(21770),rt=te(15105),Qe=te(64217);function _e(Be,St){var Vt=Be.disabled,Rt=Be.prefixCls,ht=Be.character,Bt=Be.characterRender,_t=Be.index,Fn=Be.count,kn=Be.value,kt=Be.allowHalf,un=Be.focused,Wn=Be.onHover,An=Be.onClick,Ie=function(Nt){Wn(Nt,_t)},he=function(Nt){An(Nt,_t)},ce=function(Nt){Nt.keyCode===rt.Z.ENTER&&An(Nt,_t)},me=_t+1,pe=new Set([Rt]);kn===0&&_t===0&&un?pe.add("".concat(Rt,"-focused")):kt&&kn+.5>=me&&kn<me?(pe.add("".concat(Rt,"-half")),pe.add("".concat(Rt,"-active")),un&&pe.add("".concat(Rt,"-focused"))):(me<=kn?pe.add("".concat(Rt,"-full")):pe.add("".concat(Rt,"-zero")),me===kn&&un&&pe.add("".concat(Rt,"-focused")));var le=typeof ht=="function"?ht(Be):ht,Le=de.createElement("li",{className:fe()(Array.from(pe)),ref:St},de.createElement("div",{onClick:Vt?null:he,onKeyDown:Vt?null:ce,onMouseMove:Vt?null:Ie,role:"radio","aria-checked":kn>_t?"true":"false","aria-posinset":_t+1,"aria-setsize":Fn,tabIndex:Vt?-1:0},de.createElement("div",{className:"".concat(Rt,"-first")},le),de.createElement("div",{className:"".concat(Rt,"-second")},le)));return Bt&&(Le=Bt(Le,Be)),Le}var ge=de.forwardRef(_e);function Ve(){var Be=de.useRef({});function St(Rt){return Be.current[Rt]}function Vt(Rt){return function(ht){Be.current[Rt]=ht}}return[St,Vt]}function lt(Be){var St=Be.pageXOffset,Vt="scrollLeft";if(typeof St!="number"){var Rt=Be.document;St=Rt.documentElement[Vt],typeof St!="number"&&(St=Rt.body[Vt])}return St}function He(Be){var St,Vt,Rt=Be.ownerDocument,ht=Rt.body,Bt=Rt&&Rt.documentElement,_t=Be.getBoundingClientRect();return St=_t.left,Vt=_t.top,St-=Bt.clientLeft||ht.clientLeft||0,Vt-=Bt.clientTop||ht.clientTop||0,{left:St,top:Vt}}function Oe(Be){var St=He(Be),Vt=Be.ownerDocument,Rt=Vt.defaultView||Vt.parentWindow;return St.left+=lt(Rt),St.left}var ve=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ye(Be,St){var Vt,Rt=Be.prefixCls,ht=Rt===void 0?"rc-rate":Rt,Bt=Be.className,_t=Be.defaultValue,Fn=Be.value,kn=Be.count,kt=kn===void 0?5:kn,un=Be.allowHalf,Wn=un===void 0?!1:un,An=Be.allowClear,Ie=An===void 0?!0:An,he=Be.character,ce=he===void 0?"\u2605":he,me=Be.characterRender,pe=Be.disabled,le=Be.direction,Le=le===void 0?"ltr":le,dt=Be.tabIndex,Nt=dt===void 0?0:dt,tn=Be.autoFocus,an=Be.onHoverChange,Yt=Be.onChange,dn=Be.onFocus,Mt=Be.onBlur,Wt=Be.onKeyDown,qt=Be.onMouseLeave,Gt=(0,De.Z)(Be,ve),jt=Ve(),sr=(0,Ue.Z)(jt,2),Dt=sr[0],Jt=sr[1],Gn=de.useRef(null),Bn=function(){if(!pe){var cn;(cn=Gn.current)===null||cn===void 0||cn.focus()}};de.useImperativeHandle(St,function(){return{focus:Bn,blur:function(){if(!pe){var cn;(cn=Gn.current)===null||cn===void 0||cn.blur()}}}});var Sn=(0,Ke.Z)(_t||0,{value:Fn}),or=(0,Ue.Z)(Sn,2),gr=or[0],kr=or[1],Lr=(0,Ke.Z)(null),Qr=(0,Ue.Z)(Lr,2),Ir=Qr[0],Dn=Qr[1],cr=function(cn,zn){var Hn=Le==="rtl",Mr=cn+1;if(Wn){var gi=Dt(cn),Xr=Oe(gi),Gr=gi.clientWidth;(Hn&&zn-Xr>Gr/2||!Hn&&zn-Xr<Gr/2)&&(Mr-=.5)}return Mr},vr=function(cn){kr(cn),Yt==null||Yt(cn)},Ur=de.useState(!1),ti=(0,Ue.Z)(Ur,2),Kt=ti[0],_n=ti[1],nn=function(){_n(!0),dn==null||dn()},In=function(){_n(!1),Mt==null||Mt()},nr=de.useState(null),Rr=(0,Ue.Z)(nr,2),Pr=Rr[0],br=Rr[1],xt=function(cn,zn){var Hn=cr(zn,cn.pageX);Hn!==Ir&&(br(Hn),Dn(null)),an==null||an(Hn)},$t=function(cn){pe||(br(null),Dn(null),an==null||an(void 0)),cn&&(qt==null||qt(cn))},fn=function(cn,zn){var Hn=cr(zn,cn.pageX),Mr=!1;Ie&&(Mr=Hn===gr),$t(),vr(Mr?0:Hn),Dn(Mr?Hn:null)},Mn=function(cn){var zn=cn.keyCode,Hn=Le==="rtl",Mr=gr;zn===rt.Z.RIGHT&&Mr<kt&&!Hn?(Wn?Mr+=.5:Mr+=1,vr(Mr),cn.preventDefault()):zn===rt.Z.LEFT&&Mr>0&&!Hn||zn===rt.Z.RIGHT&&Mr>0&&Hn?(Wn?Mr-=.5:Mr-=1,vr(Mr),cn.preventDefault()):zn===rt.Z.LEFT&&Mr<kt&&Hn&&(Wn?Mr+=.5:Mr+=1,vr(Mr),cn.preventDefault()),Wt==null||Wt(cn)};de.useEffect(function(){tn&&!pe&&Bn()},[]);var yt=new Array(kt).fill(0).map(function(Cn,cn){return de.createElement(ge,{ref:Jt(cn),index:cn,count:kt,disabled:pe,prefixCls:"".concat(ht,"-star"),allowHalf:Wn,value:Pr===null?gr:Pr,onClick:fn,onHover:xt,key:Cn||cn,character:ce,characterRender:me,focused:Kt})}),Ut=fe()(ht,Bt,(Vt={},(0,we.Z)(Vt,"".concat(ht,"-disabled"),pe),(0,we.Z)(Vt,"".concat(ht,"-rtl"),Le==="rtl"),Vt));return de.createElement("ul",(0,ee.Z)({className:Ut,onMouseLeave:$t,tabIndex:pe?-1:Nt,onFocus:pe?null:nn,onBlur:pe?null:In,onKeyDown:pe?null:Mn,ref:Gn,role:"radiogroup"},(0,Qe.Z)(Gt,{aria:!0,data:!0,attr:!0})),yt)}var ze=de.forwardRef(ye),We=ze,st=te(53124),at=te(83062),Ze=te(14747),Ae=te(67968),mt=te(45503);const je=Be=>{const{componentCls:St}=Be;return{[`${St}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Be.marginXS},"> div":{transition:`all ${Be.motionDurationMid}, outline 0s`,"&:hover":{transform:Be.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Be.lineWidth}px dashed ${Be.starColor}`,transform:Be.starHoverScale}},"&-first, &-second":{color:Be.starBg,transition:`all ${Be.motionDurationMid}`,userSelect:"none",[Be.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${St}-star-first, &-half ${St}-star-second`]:{opacity:1},[`&-half ${St}-star-first, &-full ${St}-star-second`]:{color:"inherit"}}}},it=Be=>({[`&-rtl${Be.componentCls}`]:{direction:"rtl"}}),qe=Be=>{const{componentCls:St}=Be;return{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(Be)),{display:"inline-block",margin:0,padding:0,color:Be.starColor,fontSize:Be.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${St} ${St}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),je(Be)),{[`+ ${St}-text`]:{display:"inline-block",marginInlineStart:Be.marginXS,fontSize:Be.fontSize}}),it(Be))}};var gt=(0,Ae.Z)("Rate",Be=>{const St=(0,mt.TS)(Be,{});return[qe(St)]},Be=>({starColor:Be.yellow6,starSize:Be.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Be.colorFillContent})),Pt=function(Be,St){var Vt={};for(var Rt in Be)Object.prototype.hasOwnProperty.call(Be,Rt)&&St.indexOf(Rt)<0&&(Vt[Rt]=Be[Rt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Rt=Object.getOwnPropertySymbols(Be);ht<Rt.length;ht++)St.indexOf(Rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Be,Rt[ht])&&(Vt[Rt[ht]]=Be[Rt[ht]]);return Vt},$e=de.forwardRef((Be,St)=>{const{prefixCls:Vt,className:Rt,rootClassName:ht,style:Bt,tooltips:_t,character:Fn=de.createElement(ue,null)}=Be,kn=Pt(Be,["prefixCls","className","rootClassName","style","tooltips","character"]),kt=(pe,le)=>{let{index:Le}=le;return _t?de.createElement(at.Z,{title:_t[Le]},pe):pe},{getPrefixCls:un,direction:Wn,rate:An}=de.useContext(st.E_),Ie=un("rate",Vt),[he,ce]=gt(Ie),me=Object.assign(Object.assign({},An==null?void 0:An.style),Bt);return he(de.createElement(We,Object.assign({ref:St,character:Fn,characterRender:kt},kn,{className:fe()(Rt,ht,ce,An==null?void 0:An.className),style:me,prefixCls:Ie,direction:Wn})))})},11713:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return Wr}});var ee=te(94184),de=te.n(ee),ke=te(87462),Ge=te(74902),xe=te(4942),Me=te(1413),ue=te(97685),Ee=te(45987),fe=te(71002),we=te(67294);function Ue(pt){var vt=we.useRef();vt.current=pt;var mn=we.useCallback(function(){for(var ln,$n=arguments.length,mr=new Array($n),Ft=0;Ft<$n;Ft++)mr[Ft]=arguments[Ft];return(ln=vt.current)===null||ln===void 0?void 0:ln.call.apply(ln,[vt].concat(mr))},[]);return mn}function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ke=De()?we.useLayoutEffect:we.useEffect,rt=Ke,Qe=function(vt,mn){var ln=we.useRef(!0);Ke(function(){if(!ln.current)return vt()},mn),Ke(function(){return ln.current=!1,function(){ln.current=!0}},[])};function _e(pt){var vt=we.useRef(!1),mn=we.useState(pt),ln=(0,ue.Z)(mn,2),$n=ln[0],mr=ln[1];we.useEffect(function(){return vt.current=!1,function(){vt.current=!0}},[]);function Ft(It,Ht){Ht&&vt.current||mr(It)}return[$n,Ft]}function ge(pt){return pt!==void 0}function Ve(pt,vt){var mn=vt||{},ln=mn.defaultValue,$n=mn.value,mr=mn.onChange,Ft=mn.postState,It=_e(function(){return ge($n)?$n:ge(ln)?typeof ln=="function"?ln():ln:typeof pt=="function"?pt():pt}),Ht=(0,ue.Z)(It,2),on=Ht[0],Vn=Ht[1],dr=$n!==void 0?$n:on,Kn=Ft?Ft(dr):dr,rr=Ue(mr),Fr=_e([dr]),ii=(0,ue.Z)(Fr,2),Zr=ii[0],Ar=ii[1];Qe(function(){var li=Zr[0];on!==li&&rr(on,li)},[Zr]),Qe(function(){ge($n)||Vn($n)},[$n]);var Vr=Ue(function(li,Mi){Vn(li,Mi),Ar([dr],Mi)});return[Kn,Vr]}var lt={};function He(pt,vt){}function Oe(pt,vt){}function ve(){lt={}}function ye(pt,vt,mn){!vt&&!lt[mn]&&(pt(!1,mn),lt[mn]=!0)}function ze(pt,vt){ye(He,pt,vt)}function We(pt,vt){ye(Oe,pt,vt)}var st=ze,at=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var pt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(pt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(pt==null?void 0:pt.substr(0,4))},Ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(vt){var mn=vt.keyCode;if(vt.altKey&&!vt.ctrlKey||vt.metaKey||mn>=Ze.F1&&mn<=Ze.F12)return!1;switch(mn){case Ze.ALT:case Ze.CAPS_LOCK:case Ze.CONTEXT_MENU:case Ze.CTRL:case Ze.DOWN:case Ze.END:case Ze.ESC:case Ze.HOME:case Ze.INSERT:case Ze.LEFT:case Ze.MAC_FF_META:case Ze.META:case Ze.NUMLOCK:case Ze.NUM_CENTER:case Ze.PAGE_DOWN:case Ze.PAGE_UP:case Ze.PAUSE:case Ze.PRINT_SCREEN:case Ze.RIGHT:case Ze.SHIFT:case Ze.UP:case Ze.WIN_KEY:case Ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(vt){if(vt>=Ze.ZERO&&vt<=Ze.NINE||vt>=Ze.NUM_ZERO&&vt<=Ze.NUM_MULTIPLY||vt>=Ze.A&&vt<=Ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&vt===0)return!0;switch(vt){case Ze.SPACE:case Ze.QUESTION_MARK:case Ze.NUM_PLUS:case Ze.NUM_MINUS:case Ze.NUM_PERIOD:case Ze.NUM_DIVISION:case Ze.SEMICOLON:case Ze.DASH:case Ze.EQUALS:case Ze.COMMA:case Ze.PERIOD:case Ze.SLASH:case Ze.APOSTROPHE:case Ze.SINGLE_QUOTE:case Ze.OPEN_SQUARE_BRACKET:case Ze.BACKSLASH:case Ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ae=Ze,mt=te(47655);function je(pt,vt,mn){var ln=we.useRef({});return(!("value"in ln.current)||mn(ln.current.condition,vt))&&(ln.current.value=pt(),ln.current.condition=vt),ln.current.value}function it(pt,vt){typeof pt=="function"?pt(vt):(0,fe.Z)(pt)==="object"&&pt&&"current"in pt&&(pt.current=vt)}function qe(){for(var pt=arguments.length,vt=new Array(pt),mn=0;mn<pt;mn++)vt[mn]=arguments[mn];var ln=vt.filter(function($n){return $n});return ln.length<=1?ln[0]:function($n){vt.forEach(function(mr){it(mr,$n)})}}function gt(){for(var pt=arguments.length,vt=new Array(pt),mn=0;mn<pt;mn++)vt[mn]=arguments[mn];return je(function(){return qe.apply(void 0,vt)},vt,function(ln,$n){return ln.length===$n.length&&ln.every(function(mr,Ft){return mr===$n[Ft]})})}function Pt(pt){var vt,mn,ln=isMemo(pt)?pt.type.type:pt.type;return!(typeof ln=="function"&&!((vt=ln.prototype)!==null&&vt!==void 0&&vt.render)||typeof pt=="function"&&!((mn=pt.prototype)!==null&&mn!==void 0&&mn.render))}var Xt=function(vt){var mn=vt.className,ln=vt.customizeIcon,$n=vt.customizeIconProps,mr=vt.onMouseDown,Ft=vt.onClick,It=vt.children,Ht;return typeof ln=="function"?Ht=ln($n):Ht=ln,we.createElement("span",{className:mn,onMouseDown:function(Vn){Vn.preventDefault(),mr&&mr(Vn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ft,"aria-hidden":!0},Ht!==void 0?Ht:we.createElement("span",{className:de()(mn.split(/\s+/).map(function(on){return"".concat(on,"-icon")}))},It))},$e=Xt;function Be(pt,vt,mn,ln,$n){var mr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ft=arguments.length>6?arguments[6]:void 0,It=arguments.length>7?arguments[7]:void 0,Ht=we.useMemo(function(){if((0,fe.Z)(ln)==="object")return ln.clearIcon;if($n)return $n},[ln,$n]),on=we.useMemo(function(){return!!(!mr&&ln&&(mn.length||Ft)&&!(It==="combobox"&&Ft===""))},[ln,mr,mn.length,Ft,It]);return{allowClear:on,clearIcon:we.createElement($e,{className:"".concat(pt,"-clear"),onMouseDown:vt,customizeIcon:Ht},"\xD7")}}var St=we.createContext(null);function Vt(){return we.useContext(St)}function Rt(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,vt=we.useState(!1),mn=(0,ue.Z)(vt,2),ln=mn[0],$n=mn[1],mr=we.useRef(null),Ft=function(){window.clearTimeout(mr.current)};we.useEffect(function(){return Ft},[]);var It=function(on,Vn){Ft(),mr.current=window.setTimeout(function(){$n(on),Vn&&Vn()},pt)};return[ln,It,Ft]}function ht(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,vt=we.useRef(null),mn=we.useRef(null);we.useEffect(function(){return function(){window.clearTimeout(mn.current)}},[]);function ln($n){($n||vt.current===null)&&(vt.current=$n),window.clearTimeout(mn.current),mn.current=window.setTimeout(function(){vt.current=null},pt)}return[function(){return vt.current},ln]}function Bt(pt,vt,mn,ln){var $n=we.useRef(null);$n.current={open:vt,triggerOpen:mn,customizedTrigger:ln},we.useEffect(function(){function mr(Ft){var It;if(!((It=$n.current)!==null&&It!==void 0&&It.customizedTrigger)){var Ht=Ft.target;Ht.shadowRoot&&Ft.composed&&(Ht=Ft.composedPath()[0]||Ht),$n.current.open&&pt().filter(function(on){return on}).every(function(on){return!on.contains(Ht)&&on!==Ht})&&$n.current.triggerOpen(!1)}}return window.addEventListener("mousedown",mr),function(){return window.removeEventListener("mousedown",mr)}},[])}var _t=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Fn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,kn="".concat(_t," ").concat(Fn).split(/[\s\n]+/),kt="aria-",un="data-";function Wn(pt,vt){return pt.indexOf(vt)===0}function An(pt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn;vt===!1?mn={aria:!0,data:!0,attr:!0}:vt===!0?mn={aria:!0}:mn=(0,Me.Z)({},vt);var ln={};return Object.keys(pt).forEach(function($n){(mn.aria&&($n==="role"||Wn($n,kt))||mn.data&&Wn($n,un)||mn.attr&&kn.includes($n))&&(ln[$n]=pt[$n])}),ln}var Ie=te(48555),he=te(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],me=void 0;function pe(pt,vt){var mn=pt.prefixCls,ln=pt.invalidate,$n=pt.item,mr=pt.renderItem,Ft=pt.responsive,It=pt.responsiveDisabled,Ht=pt.registerSize,on=pt.itemKey,Vn=pt.className,dr=pt.style,Kn=pt.children,rr=pt.display,Fr=pt.order,ii=pt.component,Zr=ii===void 0?"div":ii,Ar=(0,Ee.Z)(pt,ce),Vr=Ft&&!rr;function li(Zi){Ht(on,Zi)}we.useEffect(function(){return function(){li(null)}},[]);var Mi=mr&&$n!==me?mr($n):Kn,si;ln||(si={opacity:Vr?0:1,height:Vr?0:me,overflowY:Vr?"hidden":me,order:Ft?Fr:me,pointerEvents:Vr?"none":me,position:Vr?"absolute":me});var Kr={};Vr&&(Kr["aria-hidden"]=!0);var Wi=we.createElement(Zr,(0,ke.Z)({className:de()(!ln&&mn,Vn),style:(0,Me.Z)((0,Me.Z)({},si),dr)},Kr,Ar,{ref:vt}),Mi);return Ft&&(Wi=we.createElement(Ie.Z,{onResize:function(Na){var Ha=Na.offsetWidth;li(Ha)},disabled:It},Wi)),Wi}var le=we.forwardRef(pe);le.displayName="Item";var Le=le,dt=te(77527),Nt=te(73935),tn=te(96523);function an(pt){if(typeof MessageChannel=="undefined")(0,tn.Z)(pt);else{var vt=new MessageChannel;vt.port1.onmessage=function(){return pt()},vt.port2.postMessage(void 0)}}function Yt(){var pt=we.useRef(null),vt=function(ln){pt.current||(pt.current=[],an(function(){(0,Nt.unstable_batchedUpdates)(function(){pt.current.forEach(function($n){$n()}),pt.current=null})})),pt.current.push(ln)};return vt}function dn(pt,vt){var mn=we.useState(vt),ln=(0,ue.Z)(mn,2),$n=ln[0],mr=ln[1],Ft=(0,dt.Z)(function(It){pt(function(){mr(It)})});return[$n,Ft]}var Mt=we.createContext(null),Wt=["component"],qt=["className"],Gt=["className"],jt=function(vt,mn){var ln=we.useContext(Mt);if(!ln){var $n=vt.component,mr=$n===void 0?"div":$n,Ft=(0,Ee.Z)(vt,Wt);return we.createElement(mr,(0,ke.Z)({},Ft,{ref:mn}))}var It=ln.className,Ht=(0,Ee.Z)(ln,qt),on=vt.className,Vn=(0,Ee.Z)(vt,Gt);return we.createElement(Mt.Provider,{value:null},we.createElement(Le,(0,ke.Z)({ref:mn,className:de()(It,on)},Ht,Vn)))},sr=we.forwardRef(jt);sr.displayName="RawItem";var Dt=sr,Jt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Gn="responsive",Bn="invalidate";function Sn(pt){return"+ ".concat(pt.length," ...")}function or(pt,vt){var mn=pt.prefixCls,ln=mn===void 0?"rc-overflow":mn,$n=pt.data,mr=$n===void 0?[]:$n,Ft=pt.renderItem,It=pt.renderRawItem,Ht=pt.itemKey,on=pt.itemWidth,Vn=on===void 0?10:on,dr=pt.ssr,Kn=pt.style,rr=pt.className,Fr=pt.maxCount,ii=pt.renderRest,Zr=pt.renderRawRest,Ar=pt.suffix,Vr=pt.component,li=Vr===void 0?"div":Vr,Mi=pt.itemComponent,si=pt.onVisibleChange,Kr=(0,Ee.Z)(pt,Jt),Wi=dr==="full",Zi=Yt(),Na=dn(Zi,null),Ha=(0,ue.Z)(Na,2),La=Ha[0],Ea=Ha[1],Ra=La||0,va=dn(Zi,new Map),oo=(0,ue.Z)(va,2),Ca=oo[0],Qi=oo[1],ja=dn(Zi,0),bo=(0,ue.Z)(ja,2),ca=bo[0],Vo=bo[1],Go=dn(Zi,0),tl=(0,ue.Z)(Go,2),zo=tl[0],no=tl[1],kl=dn(Zi,0),Co=(0,ue.Z)(kl,2),_a=Co[0],Ao=Co[1],ml=(0,we.useState)(null),Ko=(0,ue.Z)(ml,2),$o=Ko[0],Ya=Ko[1],yl=(0,we.useState)(null),Il=(0,ue.Z)(yl,2),xl=Il[0],il=Il[1],El=we.useMemo(function(){return xl===null&&Wi?Number.MAX_SAFE_INTEGER:xl||0},[xl,La]),Al=(0,we.useState)(!1),Bl=(0,ue.Z)(Al,2),Ol=Bl[0],Lt=Bl[1],rn="".concat(ln,"-item"),gn=Math.max(ca,zo),Xn=Fr===Gn,ta=mr.length&&Xn,ui=Fr===Bn,wi=ta||typeof Fr=="number"&&mr.length>Fr,bi=(0,we.useMemo)(function(){var Pn=mr;return ta?La===null&&Wi?Pn=mr:Pn=mr.slice(0,Math.min(mr.length,Ra/Vn)):typeof Fr=="number"&&(Pn=mr.slice(0,Fr)),Pn},[mr,Vn,La,Fr,ta]),Oi=(0,we.useMemo)(function(){return ta?mr.slice(El+1):mr.slice(bi.length)},[mr,bi,ta,El]),Pa=(0,we.useCallback)(function(Pn,xn){var lr;return typeof Ht=="function"?Ht(Pn):(lr=Ht&&(Pn==null?void 0:Pn[Ht]))!==null&&lr!==void 0?lr:xn},[Ht]),fa=(0,we.useCallback)(Ft||function(Pn){return Pn},[Ft]);function ro(Pn,xn,lr){xl===Pn&&(xn===void 0||xn===$o)||(il(Pn),lr||(Lt(Pn<mr.length-1),si==null||si(Pn)),xn!==void 0&&Ya(xn))}function Qo(Pn,xn){Ea(xn.clientWidth)}function xo(Pn,xn){Qi(function(lr){var pr=new Map(lr);return xn===null?pr.delete(Pn):pr.set(Pn,xn),pr})}function xi(Pn,xn){no(xn),Vo(zo)}function Sa(Pn,xn){Ao(xn)}function Yi(Pn){return Ca.get(Pa(bi[Pn],Pn))}(0,he.Z)(function(){if(Ra&&typeof gn=="number"&&bi){var Pn=_a,xn=bi.length,lr=xn-1;if(!xn){ro(0,null);return}for(var pr=0;pr<xn;pr+=1){var qn=Yi(pr);if(Wi&&(qn=qn||0),qn===void 0){ro(pr-1,void 0,!0);break}if(Pn+=qn,lr===0&&Pn<=Ra||pr===lr-1&&Pn+Yi(lr)<=Ra){ro(lr,null);break}else if(Pn+gn>Ra){ro(pr-1,Pn-qn-_a+zo);break}}Ar&&Yi(0)+_a>Ra&&Ya(null)}},[Ra,Ca,zo,_a,Pa,bi]);var Ai=Ol&&!!Oi.length,ki={};$o!==null&&ta&&(ki={position:"absolute",left:$o,top:0});var ya={prefixCls:rn,responsive:ta,component:Mi,invalidate:ui},Ye=It?function(Pn,xn){var lr=Pa(Pn,xn);return we.createElement(Mt.Provider,{key:lr,value:(0,Me.Z)((0,Me.Z)({},ya),{},{order:xn,item:Pn,itemKey:lr,registerSize:xo,display:xn<=El})},It(Pn,xn))}:function(Pn,xn){var lr=Pa(Pn,xn);return we.createElement(Le,(0,ke.Z)({},ya,{order:xn,key:lr,item:Pn,renderItem:fa,itemKey:lr,registerSize:xo,display:xn<=El}))},tt,zt={order:Ai?El:Number.MAX_SAFE_INTEGER,className:"".concat(rn,"-rest"),registerSize:xi,display:Ai};if(Zr)Zr&&(tt=we.createElement(Mt.Provider,{value:(0,Me.Z)((0,Me.Z)({},ya),zt)},Zr(Oi)));else{var Ot=ii||Sn;tt=we.createElement(Le,(0,ke.Z)({},ya,zt),typeof Ot=="function"?Ot(Oi):Ot)}var hn=we.createElement(li,(0,ke.Z)({className:de()(!ui&&ln,rr),style:Kn,ref:vt},Kr),bi.map(Ye),wi?tt:null,Ar&&we.createElement(Le,(0,ke.Z)({},ya,{responsive:Xn,responsiveDisabled:!ta,order:El,className:"".concat(rn,"-suffix"),registerSize:Sa,display:!0,style:ki}),Ar));return Xn&&(hn=we.createElement(Ie.Z,{onResize:Qo,disabled:!ta},hn)),hn}var gr=we.forwardRef(or);gr.displayName="Overflow",gr.Item=Dt,gr.RESPONSIVE=Gn,gr.INVALIDATE=Bn;var kr=gr,Lr=kr,Qr=function(vt,mn){var ln,$n,mr=vt.prefixCls,Ft=vt.id,It=vt.inputElement,Ht=vt.disabled,on=vt.tabIndex,Vn=vt.autoFocus,dr=vt.autoComplete,Kn=vt.editable,rr=vt.activeDescendantId,Fr=vt.value,ii=vt.maxLength,Zr=vt.onKeyDown,Ar=vt.onMouseDown,Vr=vt.onChange,li=vt.onPaste,Mi=vt.onCompositionStart,si=vt.onCompositionEnd,Kr=vt.open,Wi=vt.attrs,Zi=It||we.createElement("input",null),Na=Zi,Ha=Na.ref,La=Na.props,Ea=La.onKeyDown,Ra=La.onChange,va=La.onMouseDown,oo=La.onCompositionStart,Ca=La.onCompositionEnd,Qi=La.style;return"maxLength"in Zi.props,Zi=we.cloneElement(Zi,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},La),{},{id:Ft,ref:qe(mn,Ha),disabled:Ht,tabIndex:on,autoComplete:dr||"off",autoFocus:Vn,className:de()("".concat(mr,"-selection-search-input"),(ln=Zi)===null||ln===void 0||($n=ln.props)===null||$n===void 0?void 0:$n.className),role:"combobox","aria-label":"Search","aria-expanded":Kr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ft,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ft,"_list"),"aria-activedescendant":Kr?rr:void 0},Wi),{},{value:Kn?Fr:"",maxLength:ii,readOnly:!Kn,unselectable:Kn?null:"on",style:(0,Me.Z)((0,Me.Z)({},Qi),{},{opacity:Kn?null:0}),onKeyDown:function(bo){Zr(bo),Ea&&Ea(bo)},onMouseDown:function(bo){Ar(bo),va&&va(bo)},onChange:function(bo){Vr(bo),Ra&&Ra(bo)},onCompositionStart:function(bo){Mi(bo),oo&&oo(bo)},onCompositionEnd:function(bo){si(bo),Ca&&Ca(bo)},onPaste:li})),Zi},Ir=we.forwardRef(Qr);Ir.displayName="Input";var Dn=Ir;function cr(pt){return Array.isArray(pt)?pt:pt!==void 0?[pt]:[]}var vr=typeof window!="undefined"&&window.document&&window.document.documentElement,Ur=vr;function ti(pt){return pt!=null}function Kt(pt){return!pt&&pt!==0}function _n(pt){return["string","number"].includes((0,fe.Z)(pt))}function nn(pt){var vt=void 0;return pt&&(_n(pt.title)?vt=pt.title.toString():_n(pt.label)&&(vt=pt.label.toString())),vt}function In(pt,vt){Ur?we.useLayoutEffect(pt,vt):we.useEffect(pt,vt)}function nr(pt){var vt;return(vt=pt.key)!==null&&vt!==void 0?vt:pt.value}var Rr=function(vt){vt.preventDefault(),vt.stopPropagation()},Pr=function(vt){var mn=vt.id,ln=vt.prefixCls,$n=vt.values,mr=vt.open,Ft=vt.searchValue,It=vt.autoClearSearchValue,Ht=vt.inputRef,on=vt.placeholder,Vn=vt.disabled,dr=vt.mode,Kn=vt.showSearch,rr=vt.autoFocus,Fr=vt.autoComplete,ii=vt.activeDescendantId,Zr=vt.tabIndex,Ar=vt.removeIcon,Vr=vt.maxTagCount,li=vt.maxTagTextLength,Mi=vt.maxTagPlaceholder,si=Mi===void 0?function(Ya){return"+ ".concat(Ya.length," ...")}:Mi,Kr=vt.tagRender,Wi=vt.onToggleOpen,Zi=vt.onRemove,Na=vt.onInputChange,Ha=vt.onInputPaste,La=vt.onInputKeyDown,Ea=vt.onInputMouseDown,Ra=vt.onInputCompositionStart,va=vt.onInputCompositionEnd,oo=we.useRef(null),Ca=(0,we.useState)(0),Qi=(0,ue.Z)(Ca,2),ja=Qi[0],bo=Qi[1],ca=(0,we.useState)(!1),Vo=(0,ue.Z)(ca,2),Go=Vo[0],tl=Vo[1],zo="".concat(ln,"-selection"),no=mr||dr==="multiple"&&It===!1||dr==="tags"?Ft:"",kl=dr==="tags"||dr==="multiple"&&It===!1||Kn&&(mr||Go);In(function(){bo(oo.current.scrollWidth)},[no]);function Co(Ya,yl,Il,xl,il){return we.createElement("span",{className:de()("".concat(zo,"-item"),(0,xe.Z)({},"".concat(zo,"-item-disabled"),Il)),title:nn(Ya)},we.createElement("span",{className:"".concat(zo,"-item-content")},yl),xl&&we.createElement($e,{className:"".concat(zo,"-item-remove"),onMouseDown:Rr,onClick:il,customizeIcon:Ar},"\xD7"))}function _a(Ya,yl,Il,xl,il){var El=function(Bl){Rr(Bl),Wi(!mr)};return we.createElement("span",{onMouseDown:El},Kr({label:yl,value:Ya,disabled:Il,closable:xl,onClose:il}))}function Ao(Ya){var yl=Ya.disabled,Il=Ya.label,xl=Ya.value,il=!Vn&&!yl,El=Il;if(typeof li=="number"&&(typeof Il=="string"||typeof Il=="number")){var Al=String(El);Al.length>li&&(El="".concat(Al.slice(0,li),"..."))}var Bl=function(Lt){Lt&&Lt.stopPropagation(),Zi(Ya)};return typeof Kr=="function"?_a(xl,El,yl,il,Bl):Co(Ya,El,yl,il,Bl)}function ml(Ya){var yl=typeof si=="function"?si(Ya):si;return Co({title:yl},yl,!1)}var Ko=we.createElement("div",{className:"".concat(zo,"-search"),style:{width:ja},onFocus:function(){tl(!0)},onBlur:function(){tl(!1)}},we.createElement(Dn,{ref:Ht,open:mr,prefixCls:ln,id:mn,inputElement:null,disabled:Vn,autoFocus:rr,autoComplete:Fr,editable:kl,activeDescendantId:ii,value:no,onKeyDown:La,onMouseDown:Ea,onChange:Na,onPaste:Ha,onCompositionStart:Ra,onCompositionEnd:va,tabIndex:Zr,attrs:An(vt,!0)}),we.createElement("span",{ref:oo,className:"".concat(zo,"-search-mirror"),"aria-hidden":!0},no,"\xA0")),$o=we.createElement(Lr,{prefixCls:"".concat(zo,"-overflow"),data:$n,renderItem:Ao,renderRest:ml,suffix:Ko,itemKey:nr,maxCount:Vr});return we.createElement(we.Fragment,null,$o,!$n.length&&!no&&we.createElement("span",{className:"".concat(zo,"-placeholder")},on))},br=Pr,xt=function(vt){var mn=vt.inputElement,ln=vt.prefixCls,$n=vt.id,mr=vt.inputRef,Ft=vt.disabled,It=vt.autoFocus,Ht=vt.autoComplete,on=vt.activeDescendantId,Vn=vt.mode,dr=vt.open,Kn=vt.values,rr=vt.placeholder,Fr=vt.tabIndex,ii=vt.showSearch,Zr=vt.searchValue,Ar=vt.activeValue,Vr=vt.maxLength,li=vt.onInputKeyDown,Mi=vt.onInputMouseDown,si=vt.onInputChange,Kr=vt.onInputPaste,Wi=vt.onInputCompositionStart,Zi=vt.onInputCompositionEnd,Na=vt.title,Ha=we.useState(!1),La=(0,ue.Z)(Ha,2),Ea=La[0],Ra=La[1],va=Vn==="combobox",oo=va||ii,Ca=Kn[0],Qi=Zr||"";va&&Ar&&!Ea&&(Qi=Ar),we.useEffect(function(){va&&Ra(!1)},[va,Ar]);var ja=Vn!=="combobox"&&!dr&&!ii?!1:!!Qi,bo=Na===void 0?nn(Ca):Na,ca=function(){if(Ca)return null;var Go=ja?{visibility:"hidden"}:void 0;return we.createElement("span",{className:"".concat(ln,"-selection-placeholder"),style:Go},rr)};return we.createElement(we.Fragment,null,we.createElement("span",{className:"".concat(ln,"-selection-search")},we.createElement(Dn,{ref:mr,prefixCls:ln,id:$n,open:dr,inputElement:mn,disabled:Ft,autoFocus:It,autoComplete:Ht,editable:oo,activeDescendantId:on,value:Qi,onKeyDown:li,onMouseDown:Mi,onChange:function(Go){Ra(!0),si(Go)},onPaste:Kr,onCompositionStart:Wi,onCompositionEnd:Zi,tabIndex:Fr,attrs:An(vt,!0),maxLength:va?Vr:void 0})),!va&&Ca?we.createElement("span",{className:"".concat(ln,"-selection-item"),title:bo,style:ja?{visibility:"hidden"}:void 0},Ca.label):null,ca())},$t=xt;function fn(pt){return![Ae.ESC,Ae.SHIFT,Ae.BACKSPACE,Ae.TAB,Ae.WIN_KEY,Ae.ALT,Ae.META,Ae.WIN_KEY_RIGHT,Ae.CTRL,Ae.SEMICOLON,Ae.EQUALS,Ae.CAPS_LOCK,Ae.CONTEXT_MENU,Ae.F1,Ae.F2,Ae.F3,Ae.F4,Ae.F5,Ae.F6,Ae.F7,Ae.F8,Ae.F9,Ae.F10,Ae.F11,Ae.F12].includes(pt)}var Mn=function(vt,mn){var ln=(0,we.useRef)(null),$n=(0,we.useRef)(!1),mr=vt.prefixCls,Ft=vt.open,It=vt.mode,Ht=vt.showSearch,on=vt.tokenWithEnter,Vn=vt.autoClearSearchValue,dr=vt.onSearch,Kn=vt.onSearchSubmit,rr=vt.onToggleOpen,Fr=vt.onInputKeyDown,ii=vt.domRef;we.useImperativeHandle(mn,function(){return{focus:function(){ln.current.focus()},blur:function(){ln.current.blur()}}});var Zr=ht(0),Ar=(0,ue.Z)(Zr,2),Vr=Ar[0],li=Ar[1],Mi=function(Qi){var ja=Qi.which;(ja===Ae.UP||ja===Ae.DOWN)&&Qi.preventDefault(),Fr&&Fr(Qi),ja===Ae.ENTER&&It==="tags"&&!$n.current&&!Ft&&(Kn==null||Kn(Qi.target.value)),fn(ja)&&rr(!0)},si=function(){li(!0)},Kr=(0,we.useRef)(null),Wi=function(Qi){dr(Qi,!0,$n.current)!==!1&&rr(!0)},Zi=function(){$n.current=!0},Na=function(Qi){$n.current=!1,It!=="combobox"&&Wi(Qi.target.value)},Ha=function(Qi){var ja=Qi.target.value;if(on&&Kr.current&&/[\r\n]/.test(Kr.current)){var bo=Kr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ja=ja.replace(bo,Kr.current)}Kr.current=null,Wi(ja)},La=function(Qi){var ja=Qi.clipboardData,bo=ja.getData("text");Kr.current=bo},Ea=function(Qi){var ja=Qi.target;if(ja!==ln.current){var bo=document.body.style.msTouchAction!==void 0;bo?setTimeout(function(){ln.current.focus()}):ln.current.focus()}},Ra=function(Qi){var ja=Vr();Qi.target!==ln.current&&!ja&&It!=="combobox"&&Qi.preventDefault(),(It!=="combobox"&&(!Ht||!ja)||!Ft)&&(Ft&&Vn!==!1&&dr("",!0,!1),rr())},va={inputRef:ln,onInputKeyDown:Mi,onInputMouseDown:si,onInputChange:Ha,onInputPaste:La,onInputCompositionStart:Zi,onInputCompositionEnd:Na},oo=It==="multiple"||It==="tags"?we.createElement(br,(0,ke.Z)({},vt,va)):we.createElement($t,(0,ke.Z)({},vt,va));return we.createElement("div",{ref:ii,className:"".concat(mr,"-selector"),onClick:Ea,onMouseDown:Ra},oo)},yt=we.forwardRef(Mn);yt.displayName="Selector";var Ut=yt,Cn=te(62709),cn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],zn=function(vt){var mn=vt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"}}},Hn=function(vt,mn){var ln=vt.prefixCls,$n=vt.disabled,mr=vt.visible,Ft=vt.children,It=vt.popupElement,Ht=vt.animation,on=vt.transitionName,Vn=vt.dropdownStyle,dr=vt.dropdownClassName,Kn=vt.direction,rr=Kn===void 0?"ltr":Kn,Fr=vt.placement,ii=vt.builtinPlacements,Zr=vt.dropdownMatchSelectWidth,Ar=vt.dropdownRender,Vr=vt.dropdownAlign,li=vt.getPopupContainer,Mi=vt.empty,si=vt.getTriggerDOMNode,Kr=vt.onPopupVisibleChange,Wi=vt.onPopupMouseEnter,Zi=(0,Ee.Z)(vt,cn),Na="".concat(ln,"-dropdown"),Ha=It;Ar&&(Ha=Ar(It));var La=we.useMemo(function(){return ii||zn(Zr)},[ii,Zr]),Ea=Ht?"".concat(Na,"-").concat(Ht):on,Ra=typeof Zr=="number",va=we.useMemo(function(){return Ra?null:Zr===!1?"minWidth":"width"},[Zr,Ra]),oo=Vn;Ra&&(oo=(0,Me.Z)((0,Me.Z)({},oo),{},{width:Zr}));var Ca=we.useRef(null);return we.useImperativeHandle(mn,function(){return{getPopupElement:function(){return Ca.current}}}),we.createElement(Cn.Z,(0,ke.Z)({},Zi,{showAction:Kr?["click"]:[],hideAction:Kr?["click"]:[],popupPlacement:Fr||(rr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:La,prefixCls:Na,popupTransitionName:Ea,popup:we.createElement("div",{ref:Ca,onMouseEnter:Wi},Ha),stretch:va,popupAlign:Vr,popupVisible:mr,getPopupContainer:li,popupClassName:de()(dr,(0,xe.Z)({},"".concat(Na,"-empty"),Mi)),popupStyle:oo,getTriggerDOMNode:si,onPopupVisibleChange:Kr}),Ft)},Mr=we.forwardRef(Hn);Mr.displayName="SelectTrigger";var gi=Mr,Xr=te(84506);function Gr(pt,vt){var mn=pt.key,ln;return"value"in pt&&(ln=pt.value),mn!=null?mn:ln!==void 0?ln:"rc-index-key-".concat(vt)}function di(pt,vt){var mn=pt||{},ln=mn.label,$n=mn.value,mr=mn.options,Ft=mn.groupLabel,It=ln||(vt?"children":"label");return{label:It,value:$n||"value",options:mr||"options",groupLabel:Ft||It}}function ci(pt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=vt.fieldNames,ln=vt.childrenAsData,$n=[],mr=di(mn,!1),Ft=mr.label,It=mr.value,Ht=mr.options,on=mr.groupLabel;function Vn(dr,Kn){dr.forEach(function(rr){if(Kn||!(Ht in rr)){var Fr=rr[It];$n.push({key:Gr(rr,$n.length),groupOption:Kn,data:rr,label:rr[Ft],value:Fr})}else{var ii=rr[on];ii===void 0&&ln&&(ii=rr.label),$n.push({key:Gr(rr,$n.length),group:!0,data:rr,label:ii}),Vn(rr[Ht],!0)}})}return Vn(pt,!1),$n}function Si(pt){var vt=(0,Me.Z)({},pt);return"props"in vt||Object.defineProperty(vt,"props",{get:function(){return st(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),vt}}),vt}function Jn(pt,vt){if(!vt||!vt.length)return null;var mn=!1;function ln(mr,Ft){var It=(0,Xr.Z)(Ft),Ht=It[0],on=It.slice(1);if(!Ht)return[mr];var Vn=mr.split(Ht);return mn=mn||Vn.length>1,Vn.reduce(function(dr,Kn){return[].concat((0,Ge.Z)(dr),(0,Ge.Z)(ln(Kn,on)))},[]).filter(function(dr){return dr})}var $n=ln(pt,vt);return mn?$n:null}var Jr=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Oa=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Qa(pt){return pt==="tags"||pt==="multiple"}var Li=we.forwardRef(function(pt,vt){var mn,ln,$n=pt.id,mr=pt.prefixCls,Ft=pt.className,It=pt.showSearch,Ht=pt.tagRender,on=pt.direction,Vn=pt.omitDomProps,dr=pt.displayValues,Kn=pt.onDisplayValuesChange,rr=pt.emptyOptions,Fr=pt.notFoundContent,ii=Fr===void 0?"Not Found":Fr,Zr=pt.onClear,Ar=pt.mode,Vr=pt.disabled,li=pt.loading,Mi=pt.getInputElement,si=pt.getRawInputElement,Kr=pt.open,Wi=pt.defaultOpen,Zi=pt.onDropdownVisibleChange,Na=pt.activeValue,Ha=pt.onActiveValueChange,La=pt.activeDescendantId,Ea=pt.searchValue,Ra=pt.autoClearSearchValue,va=pt.onSearch,oo=pt.onSearchSplit,Ca=pt.tokenSeparators,Qi=pt.allowClear,ja=pt.suffixIcon,bo=pt.clearIcon,ca=pt.OptionList,Vo=pt.animation,Go=pt.transitionName,tl=pt.dropdownStyle,zo=pt.dropdownClassName,no=pt.dropdownMatchSelectWidth,kl=pt.dropdownRender,Co=pt.dropdownAlign,_a=pt.placement,Ao=pt.builtinPlacements,ml=pt.getPopupContainer,Ko=pt.showAction,$o=Ko===void 0?[]:Ko,Ya=pt.onFocus,yl=pt.onBlur,Il=pt.onKeyUp,xl=pt.onKeyDown,il=pt.onMouseDown,El=(0,Ee.Z)(pt,Jr),Al=Qa(Ar),Bl=(It!==void 0?It:Al)||Ar==="combobox",Ol=(0,Me.Z)({},El);Oa.forEach(function(Ti){delete Ol[Ti]}),Vn==null||Vn.forEach(function(Ti){delete Ol[Ti]});var Lt=we.useState(!1),rn=(0,ue.Z)(Lt,2),gn=rn[0],Xn=rn[1];we.useEffect(function(){Xn(at())},[]);var ta=we.useRef(null),ui=we.useRef(null),wi=we.useRef(null),bi=we.useRef(null),Oi=we.useRef(null),Pa=Rt(),fa=(0,ue.Z)(Pa,3),ro=fa[0],Qo=fa[1],xo=fa[2];we.useImperativeHandle(vt,function(){var Ti,Ni;return{focus:(Ti=bi.current)===null||Ti===void 0?void 0:Ti.focus,blur:(Ni=bi.current)===null||Ni===void 0?void 0:Ni.blur,scrollTo:function(Ei){var Ii;return(Ii=Oi.current)===null||Ii===void 0?void 0:Ii.scrollTo(Ei)}}});var xi=we.useMemo(function(){var Ti;if(Ar!=="combobox")return Ea;var Ni=(Ti=dr[0])===null||Ti===void 0?void 0:Ti.value;return typeof Ni=="string"||typeof Ni=="number"?String(Ni):""},[Ea,Ar,dr]),Sa=Ar==="combobox"&&typeof Mi=="function"&&Mi()||null,Yi=typeof si=="function"&&si(),Ai=gt(ui,Yi==null||(mn=Yi.props)===null||mn===void 0?void 0:mn.ref),ki=we.useState(!1),ya=(0,ue.Z)(ki,2),Ye=ya[0],tt=ya[1];rt(function(){tt(!0)},[]);var zt=Ve(!1,{defaultValue:Wi,value:Kr}),Ot=(0,ue.Z)(zt,2),hn=Ot[0],Pn=Ot[1],xn=Ye?hn:!1,lr=!ii&&rr;(Vr||lr&&xn&&Ar==="combobox")&&(xn=!1);var pr=lr?!1:xn,qn=we.useCallback(function(Ti){var Ni=Ti!==void 0?Ti:!xn;Vr||(Pn(Ni),xn!==Ni&&(Zi==null||Zi(Ni)))},[Vr,xn,Pn,Zi]),pi=we.useMemo(function(){return(Ca||[]).some(function(Ti){return[`
`,`\r
`].includes(Ti)})},[Ca]),ei=function(Ni,ra,Ei){var Ii=!0,Ui=Ni;Ha==null||Ha(null);var Ba=Ei?null:Jn(Ni,Ca);return Ar!=="combobox"&&Ba&&(Ui="",oo==null||oo(Ba),qn(!1),Ii=!1),va&&xi!==Ui&&va(Ui,{source:ra?"typing":"effect"}),Ii},ni=function(Ni){!Ni||!Ni.trim()||va(Ni,{source:"submit"})};we.useEffect(function(){!xn&&!Al&&Ar!=="combobox"&&ei("",!1,!1)},[xn]),we.useEffect(function(){hn&&Vr&&Pn(!1),Vr&&Qo(!1)},[Vr]);var $r=ht(),fi=(0,ue.Z)($r,2),ri=fi[0],Ki=fi[1],Ma=function(Ni){var ra=ri(),Ei=Ni.which;if(Ei===Ae.ENTER&&(Ar!=="combobox"&&Ni.preventDefault(),xn||qn(!0)),Ki(!!xi),Ei===Ae.BACKSPACE&&!ra&&Al&&!xi&&dr.length){for(var Ii=(0,Ge.Z)(dr),Ui=null,Ba=Ii.length-1;Ba>=0;Ba-=1){var go=Ii[Ba];if(!go.disabled){Ii.splice(Ba,1),Ui=go;break}}Ui&&Kn(Ii,{type:"remove",values:[Ui]})}for(var yi=arguments.length,co=new Array(yi>1?yi-1:0),Va=1;Va<yi;Va++)co[Va-1]=arguments[Va];if(xn&&Oi.current){var ko;(ko=Oi.current).onKeyDown.apply(ko,[Ni].concat(co))}xl==null||xl.apply(void 0,[Ni].concat(co))},Ua=function(Ni){for(var ra=arguments.length,Ei=new Array(ra>1?ra-1:0),Ii=1;Ii<ra;Ii++)Ei[Ii-1]=arguments[Ii];if(xn&&Oi.current){var Ui;(Ui=Oi.current).onKeyUp.apply(Ui,[Ni].concat(Ei))}Il==null||Il.apply(void 0,[Ni].concat(Ei))},Xa=function(Ni){var ra=dr.filter(function(Ei){return Ei!==Ni});Kn(ra,{type:"remove",values:[Ni]})},za=we.useRef(!1),lo=function(){Qo(!0),Vr||(Ya&&!za.current&&Ya.apply(void 0,arguments),$o.includes("focus")&&qn(!0)),za.current=!0},wa=function(){Qo(!1,function(){za.current=!1,qn(!1)}),!Vr&&(xi&&(Ar==="tags"?va(xi,{source:"submit"}):Ar==="multiple"&&va("",{source:"blur"})),yl&&yl.apply(void 0,arguments))},Ka=[];we.useEffect(function(){return function(){Ka.forEach(function(Ti){return clearTimeout(Ti)}),Ka.splice(0,Ka.length)}},[]);var so=function(Ni){var ra,Ei=Ni.target,Ii=(ra=wi.current)===null||ra===void 0?void 0:ra.getPopupElement();if(Ii&&Ii.contains(Ei)){var Ui=setTimeout(function(){var co=Ka.indexOf(Ui);if(co!==-1&&Ka.splice(co,1),xo(),!gn&&!Ii.contains(document.activeElement)){var Va;(Va=bi.current)===null||Va===void 0||Va.focus()}});Ka.push(Ui)}for(var Ba=arguments.length,go=new Array(Ba>1?Ba-1:0),yi=1;yi<Ba;yi++)go[yi-1]=arguments[yi];il==null||il.apply(void 0,[Ni].concat(go))},Vi=we.useState({}),Xi=(0,ue.Z)(Vi,2),da=Xi[1];function So(){da({})}var uo;Yi&&(uo=function(Ni){qn(Ni)}),Bt(function(){var Ti;return[ta.current,(Ti=wi.current)===null||Ti===void 0?void 0:Ti.getPopupElement()]},pr,qn,!!Yi);var Eo=we.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},pt),{},{notFoundContent:ii,open:xn,triggerOpen:pr,id:$n,showSearch:Bl,multiple:Al,toggleOpen:qn})},[pt,ii,pr,xn,$n,Bl,Al,qn]),vo=!!ja||li,Io;vo&&(Io=we.createElement($e,{className:de()("".concat(mr,"-arrow"),(0,xe.Z)({},"".concat(mr,"-arrow-loading"),li)),customizeIcon:ja,customizeIconProps:{loading:li,searchValue:xi,open:xn,focused:ro,showSearch:Bl}}));var Lo=function(){var Ni;Zr==null||Zr(),(Ni=bi.current)===null||Ni===void 0||Ni.focus(),Kn([],{type:"clear",values:dr}),ei("",!1,!1)},Fo=Be(mr,Lo,dr,Qi,bo,Vr,xi,Ar),Yo=Fo.allowClear,jn=Fo.clearIcon,ai=we.createElement(ca,{ref:Oi}),ba=de()(mr,Ft,(ln={},(0,xe.Z)(ln,"".concat(mr,"-focused"),ro),(0,xe.Z)(ln,"".concat(mr,"-multiple"),Al),(0,xe.Z)(ln,"".concat(mr,"-single"),!Al),(0,xe.Z)(ln,"".concat(mr,"-allow-clear"),Qi),(0,xe.Z)(ln,"".concat(mr,"-show-arrow"),vo),(0,xe.Z)(ln,"".concat(mr,"-disabled"),Vr),(0,xe.Z)(ln,"".concat(mr,"-loading"),li),(0,xe.Z)(ln,"".concat(mr,"-open"),xn),(0,xe.Z)(ln,"".concat(mr,"-customize-input"),Sa),(0,xe.Z)(ln,"".concat(mr,"-show-search"),Bl),ln)),na=we.createElement(gi,{ref:wi,disabled:Vr,prefixCls:mr,visible:pr,popupElement:ai,animation:Vo,transitionName:Go,dropdownStyle:tl,dropdownClassName:zo,direction:on,dropdownMatchSelectWidth:no,dropdownRender:kl,dropdownAlign:Co,placement:_a,builtinPlacements:Ao,getPopupContainer:ml,empty:rr,getTriggerDOMNode:function(){return ui.current},onPopupVisibleChange:uo,onPopupMouseEnter:So},Yi?we.cloneElement(Yi,{ref:Ai}):we.createElement(Ut,(0,ke.Z)({},pt,{domRef:ui,prefixCls:mr,inputElement:Sa,ref:bi,id:$n,showSearch:Bl,autoClearSearchValue:Ra,mode:Ar,activeDescendantId:La,tagRender:Ht,values:dr,open:xn,onToggleOpen:qn,activeValue:Na,searchValue:xi,onSearch:ei,onSearchSubmit:ni,onRemove:Xa,tokenWithEnter:pi}))),Nr;return Yi?Nr=na:Nr=we.createElement("div",(0,ke.Z)({className:ba},Ol,{ref:ta,onMouseDown:so,onKeyDown:Ma,onKeyUp:Ua,onFocus:lo,onBlur:wa}),ro&&!xn&&we.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(dr.map(function(Ti){var Ni=Ti.label,ra=Ti.value;return["number","string"].includes((0,fe.Z)(Ni))?Ni:ra}).join(", "))),na,Io,Yo&&jn),we.createElement(St.Provider,{value:Eo},Nr)}),qi=Li,$a=function(pt,vt){var mn=we.useRef({values:new Map,options:new Map}),ln=we.useMemo(function(){var mr=mn.current,Ft=mr.values,It=mr.options,Ht=pt.map(function(dr){if(dr.label===void 0){var Kn;return(0,Me.Z)((0,Me.Z)({},dr),{},{label:(Kn=Ft.get(dr.value))===null||Kn===void 0?void 0:Kn.label})}return dr}),on=new Map,Vn=new Map;return Ht.forEach(function(dr){on.set(dr.value,dr),Vn.set(dr.value,vt.get(dr.value)||It.get(dr.value))}),mn.current.values=on,mn.current.options=Vn,Ht},[pt,vt]),$n=we.useCallback(function(mr){return vt.get(mr)||mn.current.options.get(mr)},[vt]);return[ln,$n]};function zi(pt,vt){return cr(pt).join("").toUpperCase().includes(vt)}var to=function(pt,vt,mn,ln,$n){return we.useMemo(function(){if(!mn||ln===!1)return pt;var mr=vt.options,Ft=vt.label,It=vt.value,Ht=[],on=typeof ln=="function",Vn=mn.toUpperCase(),dr=on?ln:function(rr,Fr){return $n?zi(Fr[$n],Vn):Fr[mr]?zi(Fr[Ft!=="children"?Ft:"label"],Vn):zi(Fr[It],Vn)},Kn=on?function(rr){return Si(rr)}:function(rr){return rr};return pt.forEach(function(rr){if(rr[mr]){var Fr=dr(mn,Kn(rr));if(Fr)Ht.push(rr);else{var ii=rr[mr].filter(function(Zr){return dr(mn,Kn(Zr))});ii.length&&Ht.push((0,Me.Z)((0,Me.Z)({},rr),{},(0,xe.Z)({},mr,ii)))}return}dr(mn,Kn(rr))&&Ht.push(rr)}),Ht},[pt,ln,$n,mn,vt])},_r=0,Wo=De();function _o(){var pt;return Wo?(pt=_r,_r+=1):pt="TEST_OR_SSR",pt}function bl(pt){var vt=we.useState(),mn=(0,ue.Z)(vt,2),ln=mn[0],$n=mn[1];return we.useEffect(function(){$n("rc_select_".concat(_o()))},[]),pt||ln}function jo(pt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=[];return we.Children.forEach(pt,function(ln){ln==null&&!vt.keepEmpty||(Array.isArray(ln)?mn=mn.concat(jo(ln)):(0,mt.isFragment)(ln)&&ln.props?mn=mn.concat(jo(ln.props.children,vt)):mn.push(ln))}),mn}var Po=["children","value"],la=["children"];function el(pt){var vt=pt,mn=vt.key,ln=vt.props,$n=ln.children,mr=ln.value,Ft=(0,Ee.Z)(ln,Po);return(0,Me.Z)({key:mn,value:mr!==void 0?mr:mn,children:$n},Ft)}function No(pt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jo(pt).map(function(mn,ln){if(!we.isValidElement(mn)||!mn.type)return null;var $n=mn,mr=$n.type.isSelectOptGroup,Ft=$n.key,It=$n.props,Ht=It.children,on=(0,Ee.Z)(It,la);return vt||!mr?el(mn):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(Ft===null?ln:Ft,"__"),label:Ft},on),{},{options:No(Ht)})}).filter(function(mn){return mn})}function rl(pt,vt,mn,ln,$n){return we.useMemo(function(){var mr=pt,Ft=!pt;Ft&&(mr=No(vt));var It=new Map,Ht=new Map,on=function(Kn,rr,Fr){Fr&&typeof Fr=="string"&&Kn.set(rr[Fr],rr)};function Vn(dr){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<dr.length;rr+=1){var Fr=dr[rr];!Fr[mn.options]||Kn?(It.set(Fr[mn.value],Fr),on(Ht,Fr,mn.label),on(Ht,Fr,ln),on(Ht,Fr,$n)):Vn(Fr[mn.options],!0)}}return Vn(mr),{options:mr,valueOptions:It,labelOptions:Ht}},[pt,vt,mn,ln,$n])}function vl(pt){var vt=we.useRef();vt.current=pt;var mn=we.useCallback(function(){return vt.current.apply(vt,arguments)},[]);return mn}var ll=function(){return null};ll.isSelectOptGroup=!0;var Uo=ll,gl=function(){return null};gl.isSelectOption=!0;var wl=gl;function dl(pt,vt){var mn=(0,Me.Z)({},pt);return Array.isArray(vt)&&vt.forEach(function(ln){delete mn[ln]}),mn}var io=te(73299),wn=we.createContext(null),pn=wn;function ar(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tr=["disabled","title","children","style","className"];function Yr(pt){return typeof pt=="string"||typeof pt=="number"}var $i=function(vt,mn){var ln=Vt(),$n=ln.prefixCls,mr=ln.id,Ft=ln.open,It=ln.multiple,Ht=ln.mode,on=ln.searchValue,Vn=ln.toggleOpen,dr=ln.notFoundContent,Kn=ln.onPopupScroll,rr=we.useContext(pn),Fr=rr.flattenOptions,ii=rr.onActiveValue,Zr=rr.defaultActiveFirstOption,Ar=rr.onSelect,Vr=rr.menuItemSelectedIcon,li=rr.rawValues,Mi=rr.fieldNames,si=rr.virtual,Kr=rr.direction,Wi=rr.listHeight,Zi=rr.listItemHeight,Na="".concat($n,"-item"),Ha=je(function(){return Fr},[Ft,Fr],function(Co,_a){return _a[0]&&Co[1]!==_a[1]}),La=we.useRef(null),Ea=function(_a){_a.preventDefault()},Ra=function(_a){La.current&&La.current.scrollTo(typeof _a=="number"?{index:_a}:_a)},va=function(_a){for(var Ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ml=Ha.length,Ko=0;Ko<ml;Ko+=1){var $o=(_a+Ko*Ao+ml)%ml,Ya=Ha[$o],yl=Ya.group,Il=Ya.data;if(!yl&&!Il.disabled)return $o}return-1},oo=we.useState(function(){return va(0)}),Ca=(0,ue.Z)(oo,2),Qi=Ca[0],ja=Ca[1],bo=function(_a){var Ao=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ja(_a);var ml={source:Ao?"keyboard":"mouse"},Ko=Ha[_a];if(!Ko){ii(null,-1,ml);return}ii(Ko.value,_a,ml)};(0,we.useEffect)(function(){bo(Zr!==!1?va(0):-1)},[Ha.length,on]);var ca=we.useCallback(function(Co){return li.has(Co)&&Ht!=="combobox"},[Ht,(0,Ge.Z)(li).toString(),li.size]);(0,we.useEffect)(function(){var Co=setTimeout(function(){if(!It&&Ft&&li.size===1){var Ao=Array.from(li)[0],ml=Ha.findIndex(function(Ko){var $o=Ko.data;return $o.value===Ao});ml!==-1&&(bo(ml),Ra(ml))}});if(Ft){var _a;(_a=La.current)===null||_a===void 0||_a.scrollTo(void 0)}return function(){return clearTimeout(Co)}},[Ft,on,Fr.length]);var Vo=function(_a){_a!==void 0&&Ar(_a,{selected:!li.has(_a)}),It||Vn(!1)};if(we.useImperativeHandle(mn,function(){return{onKeyDown:function(_a){var Ao=_a.which,ml=_a.ctrlKey;switch(Ao){case Ae.N:case Ae.P:case Ae.UP:case Ae.DOWN:{var Ko=0;if(Ao===Ae.UP?Ko=-1:Ao===Ae.DOWN?Ko=1:ar()&&ml&&(Ao===Ae.N?Ko=1:Ao===Ae.P&&(Ko=-1)),Ko!==0){var $o=va(Qi+Ko,Ko);Ra($o),bo($o,!0)}break}case Ae.ENTER:{var Ya=Ha[Qi];Ya&&!Ya.data.disabled?Vo(Ya.value):Vo(void 0),Ft&&_a.preventDefault();break}case Ae.ESC:Vn(!1),Ft&&_a.stopPropagation()}},onKeyUp:function(){},scrollTo:function(_a){Ra(_a)}}}),Ha.length===0)return we.createElement("div",{role:"listbox",id:"".concat(mr,"_list"),className:"".concat(Na,"-empty"),onMouseDown:Ea},dr);var Go=Object.keys(Mi).map(function(Co){return Mi[Co]}),tl=function(_a){return _a.label};function zo(Co,_a){var Ao=Co.group;return{role:Ao?"presentation":"option",id:"".concat(mr,"_list_").concat(_a)}}var no=function(_a){var Ao=Ha[_a];if(!Ao)return null;var ml=Ao.data||{},Ko=ml.value,$o=Ao.group,Ya=An(ml,!0),yl=tl(Ao);return Ao?we.createElement("div",(0,ke.Z)({"aria-label":typeof yl=="string"&&!$o?yl:null},Ya,{key:_a},zo(Ao,_a),{"aria-selected":ca(Ko)}),Ko):null},kl={role:"listbox",id:"".concat(mr,"_list")};return we.createElement(we.Fragment,null,si&&we.createElement("div",(0,ke.Z)({},kl,{style:{height:0,width:0,overflow:"hidden"}}),no(Qi-1),no(Qi),no(Qi+1)),we.createElement(io.Z,{itemKey:"key",ref:La,data:Ha,height:Wi,itemHeight:Zi,fullHeight:!1,onMouseDown:Ea,onScroll:Kn,virtual:si,direction:Kr,innerProps:si?null:kl},function(Co,_a){var Ao,ml=Co.group,Ko=Co.groupOption,$o=Co.data,Ya=Co.label,yl=Co.value,Il=$o.key;if(ml){var xl,il=(xl=$o.title)!==null&&xl!==void 0?xl:Yr(Ya)?Ya.toString():void 0;return we.createElement("div",{className:de()(Na,"".concat(Na,"-group")),title:il},Ya!==void 0?Ya:Il)}var El=$o.disabled,Al=$o.title,Bl=$o.children,Ol=$o.style,Lt=$o.className,rn=(0,Ee.Z)($o,tr),gn=dl(rn,Go),Xn=ca(yl),ta="".concat(Na,"-option"),ui=de()(Na,ta,Lt,(Ao={},(0,xe.Z)(Ao,"".concat(ta,"-grouped"),Ko),(0,xe.Z)(Ao,"".concat(ta,"-active"),Qi===_a&&!El),(0,xe.Z)(Ao,"".concat(ta,"-disabled"),El),(0,xe.Z)(Ao,"".concat(ta,"-selected"),Xn),Ao)),wi=tl(Co),bi=!Vr||typeof Vr=="function"||Xn,Oi=typeof wi=="number"?wi:wi||yl,Pa=Yr(Oi)?Oi.toString():void 0;return Al!==void 0&&(Pa=Al),we.createElement("div",(0,ke.Z)({},An(gn),si?{}:zo(Co,_a),{"aria-selected":Xn,className:ui,title:Pa,onMouseMove:function(){Qi===_a||El||bo(_a)},onClick:function(){El||Vo(yl)},style:Ol}),we.createElement("div",{className:"".concat(ta,"-content")},Oi),we.isValidElement(Vr)||Xn,bi&&we.createElement($e,{className:"".concat(Na,"-option-state"),customizeIcon:Vr,customizeIconProps:{isSelected:Xn}},Xn?"\u2713":null))}))},ia=we.forwardRef($i);ia.displayName="OptionList";var sa=ia;function ka(pt){var vt=pt.mode,mn=pt.options,ln=pt.children,$n=pt.backfill,mr=pt.allowClear,Ft=pt.placeholder,It=pt.getInputElement,Ht=pt.showSearch,on=pt.onSearch,Vn=pt.defaultOpen,dr=pt.autoFocus,Kn=pt.labelInValue,rr=pt.value,Fr=pt.inputValue,ii=pt.optionLabelProp,Zr=isMultiple(vt),Ar=Ht!==void 0?Ht:Zr||vt==="combobox",Vr=mn||convertChildrenToData(ln);if(warning(vt!=="tags"||Vr.every(function(Kr){return!Kr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),vt==="tags"||vt==="combobox"){var li=Vr.some(function(Kr){return Kr.options?Kr.options.some(function(Wi){return typeof("value"in Wi?Wi.value:Wi.key)=="number"}):typeof("value"in Kr?Kr.value:Kr.key)=="number"});warning(!li,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(vt!=="combobox"||!ii,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(vt==="combobox"||!$n,"`backfill` only works with `combobox` mode."),warning(vt==="combobox"||!It,"`getInputElement` only work with `combobox` mode."),noteOnce(vt!=="combobox"||!It||!mr||!Ft,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),on&&!Ar&&vt!=="combobox"&&vt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Vn||dr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rr!=null){var Mi=toArray(rr);warning(!Kn||Mi.every(function(Kr){return _typeof(Kr)==="object"&&("key"in Kr||"value"in Kr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Zr||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(ln){var si=null;toNodeArray(ln).some(function(Kr){if(!React.isValidElement(Kr)||!Kr.type)return!1;var Wi=Kr,Zi=Wi.type;if(Zi.isSelectOption)return!1;if(Zi.isSelectOptGroup){var Na=toNodeArray(Kr.props.children).every(function(Ha){return!React.isValidElement(Ha)||!Kr.type||Ha.type.isSelectOption?!0:(si=Ha.type,!1)});return!Na}return si=Zi,!0}),si&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(si.displayName||si.name||si,"`.")),warning(Fr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ga(pt,vt){if(pt){var mn=function ln($n){for(var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=0;Ft<$n.length;Ft++){var It=$n[Ft];if(It[vt==null?void 0:vt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!mr&&Array.isArray(It[vt==null?void 0:vt.options])&&ln(It[vt==null?void 0:vt.options],!0))break}};mn(pt)}}var ho=null,ao=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],mo=["inputValue"];function Un(pt){return!pt||(0,fe.Z)(pt)!=="object"}var ir=we.forwardRef(function(pt,vt){var mn=pt.id,ln=pt.mode,$n=pt.prefixCls,mr=$n===void 0?"rc-select":$n,Ft=pt.backfill,It=pt.fieldNames,Ht=pt.inputValue,on=pt.searchValue,Vn=pt.onSearch,dr=pt.autoClearSearchValue,Kn=dr===void 0?!0:dr,rr=pt.onSelect,Fr=pt.onDeselect,ii=pt.dropdownMatchSelectWidth,Zr=ii===void 0?!0:ii,Ar=pt.filterOption,Vr=pt.filterSort,li=pt.optionFilterProp,Mi=pt.optionLabelProp,si=pt.options,Kr=pt.children,Wi=pt.defaultActiveFirstOption,Zi=pt.menuItemSelectedIcon,Na=pt.virtual,Ha=pt.direction,La=pt.listHeight,Ea=La===void 0?200:La,Ra=pt.listItemHeight,va=Ra===void 0?20:Ra,oo=pt.value,Ca=pt.defaultValue,Qi=pt.labelInValue,ja=pt.onChange,bo=(0,Ee.Z)(pt,ao),ca=bl(mn),Vo=Qa(ln),Go=!!(!si&&Kr),tl=we.useMemo(function(){return Ar===void 0&&ln==="combobox"?!1:Ar},[Ar,ln]),zo=we.useMemo(function(){return di(It,Go)},[JSON.stringify(It),Go]),no=Ve("",{value:on!==void 0?on:Ht,postState:function(lr){return lr||""}}),kl=(0,ue.Z)(no,2),Co=kl[0],_a=kl[1],Ao=rl(si,Kr,zo,li,Mi),ml=Ao.valueOptions,Ko=Ao.labelOptions,$o=Ao.options,Ya=we.useCallback(function(xn){var lr=cr(xn);return lr.map(function(pr){var qn,pi,ei,ni,$r;if(Un(pr))qn=pr;else{var fi;ei=pr.key,pi=pr.label,qn=(fi=pr.value)!==null&&fi!==void 0?fi:ei}var ri=ml.get(qn);if(ri){var Ki;if(pi===void 0&&(pi=ri==null?void 0:ri[Mi||zo.label]),ei===void 0&&(ei=(Ki=ri==null?void 0:ri.key)!==null&&Ki!==void 0?Ki:qn),ni=ri==null?void 0:ri.disabled,$r=ri==null?void 0:ri.title,0)var Ma}return{label:pi,value:qn,key:ei,disabled:ni,title:$r}})},[zo,Mi,ml]),yl=Ve(Ca,{value:oo}),Il=(0,ue.Z)(yl,2),xl=Il[0],il=Il[1],El=we.useMemo(function(){var xn,lr=Ya(xl);return ln==="combobox"&&Kt((xn=lr[0])===null||xn===void 0?void 0:xn.value)?[]:lr},[xl,Ya,ln]),Al=$a(El,ml),Bl=(0,ue.Z)(Al,2),Ol=Bl[0],Lt=Bl[1],rn=we.useMemo(function(){if(!ln&&Ol.length===1){var xn=Ol[0];if(xn.value===null&&(xn.label===null||xn.label===void 0))return[]}return Ol.map(function(lr){var pr;return(0,Me.Z)((0,Me.Z)({},lr),{},{label:(pr=lr.label)!==null&&pr!==void 0?pr:lr.value})})},[ln,Ol]),gn=we.useMemo(function(){return new Set(Ol.map(function(xn){return xn.value}))},[Ol]);we.useEffect(function(){if(ln==="combobox"){var xn,lr=(xn=Ol[0])===null||xn===void 0?void 0:xn.value;_a(ti(lr)?String(lr):"")}},[Ol]);var Xn=vl(function(xn,lr){var pr,qn=lr!=null?lr:xn;return pr={},(0,xe.Z)(pr,zo.value,xn),(0,xe.Z)(pr,zo.label,qn),pr}),ta=we.useMemo(function(){if(ln!=="tags")return $o;var xn=(0,Ge.Z)($o),lr=function(qn){return ml.has(qn)};return(0,Ge.Z)(Ol).sort(function(pr,qn){return pr.value<qn.value?-1:1}).forEach(function(pr){var qn=pr.value;lr(qn)||xn.push(Xn(qn,pr.label))}),xn},[Xn,$o,ml,Ol,ln]),ui=to(ta,zo,Co,tl,li),wi=we.useMemo(function(){return ln!=="tags"||!Co||ui.some(function(xn){return xn[li||"value"]===Co})||ui.some(function(xn){return xn[zo.value]===Co})?ui:[Xn(Co)].concat((0,Ge.Z)(ui))},[Xn,li,ln,ui,Co,zo]),bi=we.useMemo(function(){return Vr?(0,Ge.Z)(wi).sort(function(xn,lr){return Vr(xn,lr)}):wi},[wi,Vr]),Oi=we.useMemo(function(){return ci(bi,{fieldNames:zo,childrenAsData:Go})},[bi,zo,Go]),Pa=function(lr){var pr=Ya(lr);if(il(pr),ja&&(pr.length!==Ol.length||pr.some(function(ei,ni){var $r;return(($r=Ol[ni])===null||$r===void 0?void 0:$r.value)!==(ei==null?void 0:ei.value)}))){var qn=Qi?pr:pr.map(function(ei){return ei.value}),pi=pr.map(function(ei){return Si(Lt(ei.value))});ja(Vo?qn:qn[0],Vo?pi:pi[0])}},fa=we.useState(null),ro=(0,ue.Z)(fa,2),Qo=ro[0],xo=ro[1],xi=we.useState(0),Sa=(0,ue.Z)(xi,2),Yi=Sa[0],Ai=Sa[1],ki=Wi!==void 0?Wi:ln!=="combobox",ya=we.useCallback(function(xn,lr){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qn=pr.source,pi=qn===void 0?"keyboard":qn;Ai(lr),Ft&&ln==="combobox"&&xn!==null&&pi==="keyboard"&&xo(String(xn))},[Ft,ln]),Ye=function(lr,pr,qn){var pi=function(){var za,lo=Lt(lr);return[Qi?{label:lo==null?void 0:lo[zo.label],value:lr,key:(za=lo==null?void 0:lo.key)!==null&&za!==void 0?za:lr}:lr,Si(lo)]};if(pr&&rr){var ei=pi(),ni=(0,ue.Z)(ei,2),$r=ni[0],fi=ni[1];rr($r,fi)}else if(!pr&&Fr&&qn!=="clear"){var ri=pi(),Ki=(0,ue.Z)(ri,2),Ma=Ki[0],Ua=Ki[1];Fr(Ma,Ua)}},tt=vl(function(xn,lr){var pr,qn=Vo?lr.selected:!0;qn?pr=Vo?[].concat((0,Ge.Z)(Ol),[xn]):[xn]:pr=Ol.filter(function(pi){return pi.value!==xn}),Pa(pr),Ye(xn,qn),ln==="combobox"?xo(""):(!Qa||Kn)&&(_a(""),xo(""))}),zt=function(lr,pr){Pa(lr);var qn=pr.type,pi=pr.values;(qn==="remove"||qn==="clear")&&pi.forEach(function(ei){Ye(ei.value,!1,qn)})},Ot=function(lr,pr){if(_a(lr),xo(null),pr.source==="submit"){var qn=(lr||"").trim();if(qn){var pi=Array.from(new Set([].concat((0,Ge.Z)(gn),[qn])));Pa(pi),Ye(qn,!0),_a("")}return}pr.source!=="blur"&&(ln==="combobox"&&Pa(lr),Vn==null||Vn(lr))},hn=function(lr){var pr=lr;ln!=="tags"&&(pr=lr.map(function(pi){var ei=Ko.get(pi);return ei==null?void 0:ei.value}).filter(function(pi){return pi!==void 0}));var qn=Array.from(new Set([].concat((0,Ge.Z)(gn),(0,Ge.Z)(pr))));Pa(qn),qn.forEach(function(pi){Ye(pi,!0)})},Pn=we.useMemo(function(){var xn=Na!==!1&&Zr!==!1;return(0,Me.Z)((0,Me.Z)({},Ao),{},{flattenOptions:Oi,onActiveValue:ya,defaultActiveFirstOption:ki,onSelect:tt,menuItemSelectedIcon:Zi,rawValues:gn,fieldNames:zo,virtual:xn,direction:Ha,listHeight:Ea,listItemHeight:va,childrenAsData:Go})},[Ao,Oi,ya,ki,tt,Zi,gn,zo,Na,Zr,Ea,va,Go]);return we.createElement(pn.Provider,{value:Pn},we.createElement(qi,(0,ke.Z)({},bo,{id:ca,prefixCls:mr,ref:vt,omitDomProps:mo,mode:ln,displayValues:rn,onDisplayValuesChange:zt,direction:Ha,searchValue:Co,onSearch:Ot,autoClearSearchValue:Kn,onSearchSplit:hn,dropdownMatchSelectWidth:Zr,OptionList:sa,emptyOptions:!Oi.length,activeValue:Qo,activeDescendantId:"".concat(ca,"_list_").concat(Yi)})))}),Sr=ir;Sr.Option=wl,Sr.OptGroup=Uo;var Ce=Sr,Xe=Ce,nt=te(10366),ut=te(8745),ft=te(33603),Ct=te(9708),wt=te(53124),sn=te(98866),En=te(88258),ur=te(98675),yr=te(65223),fr=te(4173),Qn=te(87244),Yn=te(13458),On=te(78642),hr=te(46163),zr=function(pt,vt){var mn={};for(var ln in pt)Object.prototype.hasOwnProperty.call(pt,ln)&&vt.indexOf(ln)<0&&(mn[ln]=pt[ln]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,ln=Object.getOwnPropertySymbols(pt);$n<ln.length;$n++)vt.indexOf(ln[$n])<0&&Object.prototype.propertyIsEnumerable.call(pt,ln[$n])&&(mn[ln[$n]]=pt[ln[$n]]);return mn};const Er="SECRET_COMBOBOX_MODE_DO_NOT_USE",wr=(pt,vt)=>{var mn,{prefixCls:ln,bordered:$n=!0,className:mr,rootClassName:Ft,getPopupContainer:It,popupClassName:Ht,dropdownClassName:on,listHeight:Vn=256,placement:dr,listItemHeight:Kn=24,size:rr,disabled:Fr,notFoundContent:ii,status:Zr,builtinPlacements:Ar,dropdownMatchSelectWidth:Vr,popupMatchSelectWidth:li,direction:Mi,style:si,allowClear:Kr}=pt,Wi=zr(pt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Zi,getPrefixCls:Na,renderEmpty:Ha,direction:La,virtual:Ea,popupMatchSelectWidth:Ra,popupOverflow:va,select:oo}=we.useContext(wt.E_),Ca=Na("select",ln),Qi=Na(),ja=Mi!=null?Mi:La,{compactSize:bo,compactItemClassnames:ca}=(0,fr.ri)(Ca,ja),[Vo,Go]=(0,Qn.Z)(Ca),tl=we.useMemo(()=>{const{mode:ta}=Wi;if(ta!=="combobox")return ta===Er?"combobox":ta},[Wi.mode]),zo=tl==="multiple"||tl==="tags",no=(0,On.Z)(Wi.suffixIcon,Wi.showArrow),kl=(mn=li!=null?li:Vr)!==null&&mn!==void 0?mn:Ra,{status:Co,hasFeedback:_a,isFormItemInput:Ao,feedbackIcon:ml}=we.useContext(yr.aM),Ko=(0,Ct.F)(Co,Zr);let $o;ii!==void 0?$o=ii:tl==="combobox"?$o=null:$o=(Ha==null?void 0:Ha("Select"))||we.createElement(En.Z,{componentName:"Select"});const{suffixIcon:Ya,itemIcon:yl,removeIcon:Il,clearIcon:xl}=(0,hr.Z)(Object.assign(Object.assign({},Wi),{multiple:zo,hasFeedback:_a,feedbackIcon:ml,showSuffixIcon:no,prefixCls:Ca,showArrow:Wi.showArrow,componentName:"Select"})),il=Kr===!0?{clearIcon:xl}:Kr,El=(0,nt.Z)(Wi,["suffixIcon","itemIcon"]),Al=de()(Ht||on,{[`${Ca}-dropdown-${ja}`]:ja==="rtl"},Ft,Go),Bl=(0,ur.Z)(ta=>{var ui;return(ui=rr!=null?rr:bo)!==null&&ui!==void 0?ui:ta}),Ol=we.useContext(sn.Z),Lt=Fr!=null?Fr:Ol,rn=de()({[`${Ca}-lg`]:Bl==="large",[`${Ca}-sm`]:Bl==="small",[`${Ca}-rtl`]:ja==="rtl",[`${Ca}-borderless`]:!$n,[`${Ca}-in-form-item`]:Ao},(0,Ct.Z)(Ca,Ko,_a),ca,oo==null?void 0:oo.className,mr,Ft,Go),gn=we.useMemo(()=>dr!==void 0?dr:ja==="rtl"?"bottomRight":"bottomLeft",[dr,ja]),Xn=(0,Yn.Z)(Ar,va);return Vo(we.createElement(Xe,Object.assign({ref:vt,virtual:Ea,showSearch:oo==null?void 0:oo.showSearch},El,{style:Object.assign(Object.assign({},oo==null?void 0:oo.style),si),dropdownMatchSelectWidth:kl,builtinPlacements:Xn,transitionName:(0,ft.m)(Qi,"slide-up",Wi.transitionName),listHeight:Vn,listItemHeight:Kn,mode:tl,prefixCls:Ca,placement:gn,direction:ja,suffixIcon:Ya,menuItemSelectedIcon:yl,removeIcon:Il,allowClear:il,notFoundContent:$o,className:rn,getPopupContainer:It||Zi,dropdownClassName:Al,disabled:Lt})))},Br=we.forwardRef(wr),Or=(0,ut.Z)(Br);Br.SECRET_COMBOBOX_MODE_DO_NOT_USE=Er,Br.Option=wl,Br.OptGroup=Uo,Br._InternalPanelDoNotUseOrYouWillBeFired=Or;var Wr=Br},87244:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ve}});var ee=te(14747),de=te(80110),ke=te(45503),Ge=te(67968),xe=te(67771),Me=te(33297);const ue=ye=>{const{optionHeight:ze,optionFontSize:We,optionLineHeight:st,optionPadding:at}=ye;return{position:"relative",display:"block",minHeight:ze,padding:at,color:ye.colorText,fontWeight:"normal",fontSize:We,lineHeight:st,boxSizing:"border-box"}};var fe=ye=>{const{antCls:ze,componentCls:We}=ye,st=`${We}-item`,at=`&${ze}-slide-up-enter${ze}-slide-up-enter-active`,Ze=`&${ze}-slide-up-appear${ze}-slide-up-appear-active`,Ae=`&${ze}-slide-up-leave${ze}-slide-up-leave-active`,mt=`${We}-dropdown-placement-`;return[{[`${We}-dropdown`]:Object.assign(Object.assign({},(0,ee.Wf)(ye)),{position:"absolute",top:-9999,zIndex:ye.zIndexPopup,boxSizing:"border-box",padding:ye.paddingXXS,overflow:"hidden",fontSize:ye.fontSize,fontVariant:"initial",backgroundColor:ye.colorBgElevated,borderRadius:ye.borderRadiusLG,outline:"none",boxShadow:ye.boxShadowSecondary,[`
${at}${mt}bottomLeft,
${Ze}${mt}bottomLeft
`]:{animationName:xe.fJ},[`
${at}${mt}topLeft,
${Ze}${mt}topLeft,
${at}${mt}topRight,
${Ze}${mt}topRight
`]:{animationName:xe.Qt},[`${Ae}${mt}bottomLeft`]:{animationName:xe.Uw},[`
${Ae}${mt}topLeft,
${Ae}${mt}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[`${st}`]:Object.assign(Object.assign({},ue(ye)),{cursor:"pointer",transition:`background ${ye.motionDurationSlow} ease`,borderRadius:ye.borderRadiusSM,"&-group":{color:ye.colorTextDescription,fontSize:ye.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ee.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${st}-option-disabled)`]:{backgroundColor:ye.optionActiveBg},[`&-selected:not(${st}-option-disabled)`]:{color:ye.optionSelectedColor,fontWeight:ye.optionSelectedFontWeight,backgroundColor:ye.optionSelectedBg,[`${st}-option-state`]:{color:ye.colorPrimary}},"&-disabled":{[`&${st}-option-selected`]:{backgroundColor:ye.colorBgContainerDisabled},color:ye.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ye.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,xe.oN)(ye,"slide-up"),(0,xe.oN)(ye,"slide-down"),(0,Me.Fm)(ye,"move-up"),(0,Me.Fm)(ye,"move-down")]};const we=2,Ue=ye=>{let{controlHeightSM:ze,controlHeight:We,lineWidth:st}=ye;const at=(We-ze)/2-st,Ze=Math.ceil(at/2);return[at,Ze]};function De(ye,ze){const{componentCls:We,iconCls:st}=ye,at=`${We}-selection-overflow`,Ze=ye.multipleSelectItemHeight,[Ae]=Ue(ye),mt=ze?`${We}-${ze}`:"";return{[`${We}-multiple${mt}`]:{fontSize:ye.fontSize,[at]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${We}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ae-we}px ${we*2}px`,borderRadius:ye.borderRadius,[`${We}-show-search&`]:{cursor:"text"},[`${We}-disabled&`]:{background:ye.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${we}px 0`,lineHeight:`${Ze}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${We}-show-arrow ${We}-selector,
&${We}-allow-clear ${We}-selector
`]:{paddingInlineEnd:ye.fontSizeIcon+ye.controlPaddingHorizontal},[`${We}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ze,marginTop:we,marginBottom:we,lineHeight:`${Ze-ye.lineWidth*2}px`,background:ye.multipleItemBg,border:`${ye.lineWidth}px ${ye.lineType} ${ye.multipleItemBorderColor}`,borderRadius:ye.borderRadiusSM,cursor:"default",transition:`font-size ${ye.motionDurationSlow}, line-height ${ye.motionDurationSlow}, height ${ye.motionDurationSlow}`,userSelect:"none",marginInlineEnd:we*2,paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS/2,[`${We}-disabled&`]:{color:ye.multipleItemColorDisabled,borderColor:ye.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ye.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ee.Ro)()),{display:"inline-flex",alignItems:"center",color:ye.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${st}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ye.colorIconHover}})},[`${at}-item + ${at}-item`]:{[`${We}-selection-search`]:{marginInlineStart:0}},[`${We}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ye.inputPaddingHorizontalBase-Ae,"\n &-input,\n &-mirror\n ":{height:Ze,fontFamily:ye.fontFamily,lineHeight:`${Ze}px`,transition:`all ${ye.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${We}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:ye.inputPaddingHorizontalBase,insetInlineEnd:ye.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ye.motionDurationSlow}`}}}}var rt=ye=>{const{componentCls:ze}=ye,We=(0,ke.TS)(ye,{controlHeight:ye.controlHeightSM,multipleSelectItemHeight:ye.controlHeightXS,borderRadius:ye.borderRadiusSM,borderRadiusSM:ye.borderRadiusXS}),st=(0,ke.TS)(ye,{fontSize:ye.fontSizeLG,controlHeight:ye.controlHeightLG,multipleSelectItemHeight:ye.multipleItemHeightLG,borderRadius:ye.borderRadiusLG,borderRadiusSM:ye.borderRadius}),[,at]=Ue(ye);return[De(ye),De(We,"sm"),{[`${ze}-multiple${ze}-sm`]:{[`${ze}-selection-placeholder`]:{insetInline:ye.controlPaddingHorizontalSM-ye.lineWidth},[`${ze}-selection-search`]:{marginInlineStart:at}}},De(st,"lg")]};function Qe(ye,ze){const{componentCls:We,inputPaddingHorizontalBase:st,borderRadius:at}=ye,Ze=ye.controlHeight-ye.lineWidth*2,Ae=Math.ceil(ye.fontSize*1.25),mt=ze?`${We}-${ze}`:"";return{[`${We}-single${mt}`]:{fontSize:ye.fontSize,[`${We}-selector`]:Object.assign(Object.assign({},(0,ee.Wf)(ye)),{display:"flex",borderRadius:at,[`${We}-selection-search`]:{position:"absolute",top:0,insetInlineStart:st,insetInlineEnd:st,bottom:0,"&-input":{width:"100%"}},[`
${We}-selection-item,
${We}-selection-placeholder
`]:{padding:0,lineHeight:`${Ze}px`,transition:`all ${ye.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ze}px`}},[`${We}-selection-item`]:{position:"relative",userSelect:"none"},[`${We}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${We}-selection-item:after`,`${We}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${We}-show-arrow ${We}-selection-item,
&${We}-show-arrow ${We}-selection-placeholder
`]:{paddingInlineEnd:Ae},[`&${We}-open ${We}-selection-item`]:{color:ye.colorTextPlaceholder},[`&:not(${We}-customize-input)`]:{[`${We}-selector`]:{width:"100%",height:ye.controlHeight,padding:`0 ${st}px`,[`${We}-selection-search-input`]:{height:Ze},"&:after":{lineHeight:`${Ze}px`}}},[`&${We}-customize-input`]:{[`${We}-selector`]:{"&:after":{display:"none"},[`${We}-selection-search`]:{position:"static",width:"100%"},[`${We}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${st}px`,"&:after":{display:"none"}}}}}}}function _e(ye){const{componentCls:ze}=ye,We=ye.controlPaddingHorizontalSM-ye.lineWidth;return[Qe(ye),Qe((0,ke.TS)(ye,{controlHeight:ye.controlHeightSM,borderRadius:ye.borderRadiusSM}),"sm"),{[`${ze}-single${ze}-sm`]:{[`&:not(${ze}-customize-input)`]:{[`${ze}-selection-search`]:{insetInlineStart:We,insetInlineEnd:We},[`${ze}-selector`]:{padding:`0 ${We}px`},[`&${ze}-show-arrow ${ze}-selection-search`]:{insetInlineEnd:We+ye.fontSize*1.5},[`
&${ze}-show-arrow ${ze}-selection-item,
&${ze}-show-arrow ${ze}-selection-placeholder
`]:{paddingInlineEnd:ye.fontSize*1.5}}}},Qe((0,ke.TS)(ye,{controlHeight:ye.singleItemHeightLG,fontSize:ye.fontSizeLG,borderRadius:ye.borderRadiusLG}),"lg")]}const ge=ye=>{const{componentCls:ze,selectorBg:We}=ye;return{position:"relative",backgroundColor:We,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,transition:`all ${ye.motionDurationMid} ${ye.motionEaseInOut}`,input:{cursor:"pointer"},[`${ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${ze}-disabled&`]:{color:ye.colorTextDisabled,background:ye.colorBgContainerDisabled,cursor:"not-allowed",[`${ze}-multiple&`]:{background:ye.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Ve=function(ye,ze){let We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:st,borderHoverColor:at,outlineColor:Ze,antCls:Ae}=ze,mt=We?{[`${st}-selector`]:{borderColor:at}}:{};return{[ye]:{[`&:not(${st}-disabled):not(${st}-customize-input):not(${Ae}-pagination-size-changer)`]:Object.assign(Object.assign({},mt),{[`${st}-focused& ${st}-selector`]:{borderColor:at,boxShadow:`0 0 0 ${ze.controlOutlineWidth}px ${Ze}`,outline:0},[`&:hover ${st}-selector`]:{borderColor:at}})}}},lt=ye=>{const{componentCls:ze}=ye;return{[`${ze}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},He=ye=>{const{componentCls:ze,inputPaddingHorizontalBase:We,iconCls:st}=ye;return{[ze]:Object.assign(Object.assign({},(0,ee.Wf)(ye)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ze}-customize-input) ${ze}-selector`]:Object.assign(Object.assign({},ge(ye)),lt(ye)),[`${ze}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ee.vS),[`${ze}-selection-placeholder`]:Object.assign(Object.assign({},ee.vS),{flex:1,color:ye.colorTextPlaceholder,pointerEvents:"none"}),[`${ze}-arrow`]:Object.assign(Object.assign({},(0,ee.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,height:ye.fontSizeIcon,marginTop:-ye.fontSizeIcon/2,color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[st]:{verticalAlign:"top",transition:`transform ${ye.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ze}-suffix)`]:{pointerEvents:"auto"}},[`${ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,zIndex:1,display:"inline-block",width:ye.fontSizeIcon,height:ye.fontSizeIcon,marginTop:-ye.fontSizeIcon/2,color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:ye.clearBg,cursor:"pointer",opacity:0,transition:`color ${ye.motionDurationMid} ease, opacity ${ye.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ye.colorTextTertiary}},"&:hover":{[`${ze}-clear`]:{opacity:1}}}),[`${ze}-has-feedback`]:{[`${ze}-clear`]:{insetInlineEnd:We+ye.fontSize+ye.paddingXS}}}},Oe=ye=>{const{componentCls:ze}=ye;return[{[ze]:{[`&-borderless ${ze}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ze}-in-form-item`]:{width:"100%"}}},He(ye),_e(ye),rt(ye),fe(ye),{[`${ze}-rtl`]:{direction:"rtl"}},Ve(ze,(0,ke.TS)(ye,{borderHoverColor:ye.colorPrimaryHover,outlineColor:ye.controlOutline})),Ve(`${ze}-status-error`,(0,ke.TS)(ye,{borderHoverColor:ye.colorErrorHover,outlineColor:ye.colorErrorOutline}),!0),Ve(`${ze}-status-warning`,(0,ke.TS)(ye,{borderHoverColor:ye.colorWarningHover,outlineColor:ye.colorWarningOutline}),!0),(0,de.c)(ye,{borderElCls:`${ze}-selector`,focusElCls:`${ze}-focused`})]};var ve=(0,Ge.Z)("Select",(ye,ze)=>{let{rootPrefixCls:We}=ze;const st=(0,ke.TS)(ye,{rootPrefixCls:We,inputPaddingHorizontalBase:ye.paddingSM-1,multipleSelectItemHeight:ye.multipleItemHeight});return[Oe(st)]},ye=>{const{fontSize:ze,lineHeight:We,controlHeight:st,controlPaddingHorizontal:at,zIndexPopupBase:Ze,colorText:Ae,fontWeightStrong:mt,controlItemBgActive:je,controlItemBgHover:it,colorBgContainer:qe,colorFillSecondary:gt,controlHeightLG:Pt,controlHeightSM:Xt,colorBgContainerDisabled:$e,colorTextDisabled:Be}=ye;return{zIndexPopup:Ze+50,optionSelectedColor:Ae,optionSelectedFontWeight:mt,optionSelectedBg:je,optionActiveBg:it,optionPadding:`${(st-ze*We)/2}px ${at}px`,optionFontSize:ze,optionLineHeight:We,optionHeight:st,selectorBg:qe,clearBg:qe,singleItemHeightLG:Pt,multipleItemBg:gt,multipleItemBorderColor:"transparent",multipleItemHeight:Xt,multipleItemHeightLG:st,multipleSelectorBgDisabled:$e,multipleItemColorDisabled:Be,multipleItemBorderColorDisabled:"transparent"}})},13458:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});const ee=ke=>{const xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ke==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},xe),{points:["br","tr"],offset:[0,-4]})}};function de(ke,Ge){return ke||ee(Ge)}},78642:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ee}});function ee(de,ke){return ke!==void 0?ke:de!==null}},46163:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});var ee=te(18299),de=te(16646),ke=te(73475),Ge=te(42922),xe=te(3407),Me=te(72395),ue=te(67294);function Ee(fe){let{suffixIcon:we,clearIcon:Ue,menuItemSelectedIcon:De,removeIcon:Ke,loading:rt,multiple:Qe,hasFeedback:_e,prefixCls:ge,showSuffixIcon:Ve,feedbackIcon:lt,showArrow:He,componentName:Oe}=fe;const ve=Ue!=null?Ue:ue.createElement(de.Z,null),ye=at=>we===null&&!_e&&!He?null:ue.createElement(ue.Fragment,null,Ve!==!1&&at,_e&&lt);let ze=null;if(we!==void 0)ze=ye(we);else if(rt)ze=ye(ue.createElement(xe.Z,{spin:!0}));else{const at=`${ge}-suffix`;ze=Ze=>{let{open:Ae,showSearch:mt}=Ze;return ye(Ae&&mt?ue.createElement(Me.Z,{className:at}):ue.createElement(Ge.Z,{className:at}))}}let We=null;De!==void 0?We=De:Qe?We=ue.createElement(ee.Z,null):We=null;let st=null;return Ke!==void 0?st=Ke:st=ue.createElement(ke.Z,null),{clearIcon:ve,suffixIcon:ze,itemIcon:We,removeIcon:st}}},46303:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ce}});var ee=te(94184),de=te.n(ee),ke=te(67294),Ge=te(53124),xe=te(10366),ue=me=>{const{prefixCls:pe,className:le,style:Le,size:dt,shape:Nt}=me,tn=de()({[`${pe}-lg`]:dt==="large",[`${pe}-sm`]:dt==="small"}),an=de()({[`${pe}-circle`]:Nt==="circle",[`${pe}-square`]:Nt==="square",[`${pe}-round`]:Nt==="round"}),Yt=ke.useMemo(()=>typeof dt=="number"?{width:dt,height:dt,lineHeight:`${dt}px`}:{},[dt]);return ke.createElement("span",{className:de()(pe,tn,an,le),style:Object.assign(Object.assign({},Yt),Le)})},Ee=te(34367),fe=te(67968),we=te(45503);const Ue=new Ee.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),De=me=>({height:me,lineHeight:`${me}px`}),Ke=me=>Object.assign({width:me},De(me)),rt=me=>({background:me.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ue,animationDuration:me.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Qe=me=>Object.assign({width:me*5,minWidth:me*5},De(me)),_e=me=>{const{skeletonAvatarCls:pe,gradientFromColor:le,controlHeight:Le,controlHeightLG:dt,controlHeightSM:Nt}=me;return{[`${pe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},Ke(Le)),[`${pe}${pe}-circle`]:{borderRadius:"50%"},[`${pe}${pe}-lg`]:Object.assign({},Ke(dt)),[`${pe}${pe}-sm`]:Object.assign({},Ke(Nt))}},ge=me=>{const{controlHeight:pe,borderRadiusSM:le,skeletonInputCls:Le,controlHeightLG:dt,controlHeightSM:Nt,gradientFromColor:tn}=me;return{[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:tn,borderRadius:le},Qe(pe)),[`${Le}-lg`]:Object.assign({},Qe(dt)),[`${Le}-sm`]:Object.assign({},Qe(Nt))}},Ve=me=>Object.assign({width:me},De(me)),lt=me=>{const{skeletonImageCls:pe,imageSizeBase:le,gradientFromColor:Le,borderRadiusSM:dt}=me;return{[`${pe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Le,borderRadius:dt},Ve(le*2)),{[`${pe}-path`]:{fill:"#bfbfbf"},[`${pe}-svg`]:Object.assign(Object.assign({},Ve(le)),{maxWidth:le*4,maxHeight:le*4}),[`${pe}-svg${pe}-svg-circle`]:{borderRadius:"50%"}}),[`${pe}${pe}-circle`]:{borderRadius:"50%"}}},He=(me,pe,le)=>{const{skeletonButtonCls:Le}=me;return{[`${le}${Le}-circle`]:{width:pe,minWidth:pe,borderRadius:"50%"},[`${le}${Le}-round`]:{borderRadius:pe}}},Oe=me=>Object.assign({width:me*2,minWidth:me*2},De(me)),ve=me=>{const{borderRadiusSM:pe,skeletonButtonCls:le,controlHeight:Le,controlHeightLG:dt,controlHeightSM:Nt,gradientFromColor:tn}=me;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:tn,borderRadius:pe,width:Le*2,minWidth:Le*2},Oe(Le))},He(me,Le,le)),{[`${le}-lg`]:Object.assign({},Oe(dt))}),He(me,dt,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},Oe(Nt))}),He(me,Nt,`${le}-sm`))},ye=me=>{const{componentCls:pe,skeletonAvatarCls:le,skeletonTitleCls:Le,skeletonParagraphCls:dt,skeletonButtonCls:Nt,skeletonInputCls:tn,skeletonImageCls:an,controlHeight:Yt,controlHeightLG:dn,controlHeightSM:Mt,gradientFromColor:Wt,padding:qt,marginSM:Gt,borderRadius:jt,titleHeight:sr,blockRadius:Dt,paragraphLiHeight:Jt,controlHeightXS:Gn,paragraphMarginTop:Bn}=me;return{[`${pe}`]:{display:"table",width:"100%",[`${pe}-header`]:{display:"table-cell",paddingInlineEnd:qt,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Wt},Ke(Yt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},Ke(dn)),[`${le}-sm`]:Object.assign({},Ke(Mt))},[`${pe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Le}`]:{width:"100%",height:sr,background:Wt,borderRadius:Dt,[`+ ${dt}`]:{marginBlockStart:Mt}},[`${dt}`]:{padding:0,"> li":{width:"100%",height:Jt,listStyle:"none",background:Wt,borderRadius:Dt,"+ li":{marginBlockStart:Gn}}},[`${dt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${pe}-content`]:{[`${Le}, ${dt} > li`]:{borderRadius:jt}}},[`${pe}-with-avatar ${pe}-content`]:{[`${Le}`]:{marginBlockStart:Gt,[`+ ${dt}`]:{marginBlockStart:Bn}}},[`${pe}${pe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ve(me)),_e(me)),ge(me)),lt(me)),[`${pe}${pe}-block`]:{width:"100%",[`${Nt}`]:{width:"100%"},[`${tn}`]:{width:"100%"}},[`${pe}${pe}-active`]:{[`
${Le},
${dt} > li,
${le},
${Nt},
${tn},
${an}
`]:Object.assign({},rt(me))}}};var ze=(0,fe.Z)("Skeleton",me=>{const{componentCls:pe}=me,le=(0,we.TS)(me,{skeletonAvatarCls:`${pe}-avatar`,skeletonTitleCls:`${pe}-title`,skeletonParagraphCls:`${pe}-paragraph`,skeletonButtonCls:`${pe}-button`,skeletonInputCls:`${pe}-input`,skeletonImageCls:`${pe}-image`,imageSizeBase:me.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${me.gradientFromColor} 25%, ${me.gradientToColor} 37%, ${me.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ye(le)]},me=>{const{colorFillContent:pe,colorFill:le}=me,Le=pe,dt=le;return{color:Le,colorGradientEnd:dt,gradientFromColor:Le,gradientToColor:dt,titleHeight:me.controlHeight/2,blockRadius:me.borderRadiusSM,paragraphMarginTop:me.marginLG+me.marginXXS,paragraphLiHeight:me.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),st=me=>{const{prefixCls:pe,className:le,rootClassName:Le,active:dt,shape:Nt="circle",size:tn="default"}=me,{getPrefixCls:an}=ke.useContext(Ge.E_),Yt=an("skeleton",pe),[dn,Mt]=ze(Yt),Wt=(0,xe.Z)(me,["prefixCls","className"]),qt=de()(Yt,`${Yt}-element`,{[`${Yt}-active`]:dt},le,Le,Mt);return dn(ke.createElement("div",{className:qt},ke.createElement(ue,Object.assign({prefixCls:`${Yt}-avatar`,shape:Nt,size:tn},Wt))))},Ze=me=>{const{prefixCls:pe,className:le,rootClassName:Le,active:dt,block:Nt=!1,size:tn="default"}=me,{getPrefixCls:an}=ke.useContext(Ge.E_),Yt=an("skeleton",pe),[dn,Mt]=ze(Yt),Wt=(0,xe.Z)(me,["prefixCls"]),qt=de()(Yt,`${Yt}-element`,{[`${Yt}-active`]:dt,[`${Yt}-block`]:Nt},le,Le,Mt);return dn(ke.createElement("div",{className:qt},ke.createElement(ue,Object.assign({prefixCls:`${Yt}-button`,size:tn},Wt))))};const Ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var je=me=>{const{prefixCls:pe,className:le,rootClassName:Le,style:dt,active:Nt}=me,{getPrefixCls:tn}=ke.useContext(Ge.E_),an=tn("skeleton",pe),[Yt,dn]=ze(an),Mt=de()(an,`${an}-element`,{[`${an}-active`]:Nt},le,Le,dn);return Yt(ke.createElement("div",{className:Mt},ke.createElement("div",{className:de()(`${an}-image`,le),style:dt},ke.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${an}-image-svg`},ke.createElement("path",{d:Ae,className:`${an}-image-path`})))))},qe=me=>{const{prefixCls:pe,className:le,rootClassName:Le,active:dt,block:Nt,size:tn="default"}=me,{getPrefixCls:an}=ke.useContext(Ge.E_),Yt=an("skeleton",pe),[dn,Mt]=ze(Yt),Wt=(0,xe.Z)(me,["prefixCls"]),qt=de()(Yt,`${Yt}-element`,{[`${Yt}-active`]:dt,[`${Yt}-block`]:Nt},le,Le,Mt);return dn(ke.createElement("div",{className:qt},ke.createElement(ue,Object.assign({prefixCls:`${Yt}-input`,size:tn},Wt))))},gt=te(87462),Pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Xt=Pt,$e=te(84089),Be=function(pe,le){return ke.createElement($e.Z,(0,gt.Z)({},pe,{ref:le,icon:Xt}))},St=ke.forwardRef(Be),Rt=me=>{const{prefixCls:pe,className:le,rootClassName:Le,style:dt,active:Nt,children:tn}=me,{getPrefixCls:an}=ke.useContext(Ge.E_),Yt=an("skeleton",pe),[dn,Mt]=ze(Yt),Wt=de()(Yt,`${Yt}-element`,{[`${Yt}-active`]:Nt},Mt,le,Le),qt=tn!=null?tn:ke.createElement(St,null);return dn(ke.createElement("div",{className:Wt},ke.createElement("div",{className:de()(`${Yt}-image`,le),style:dt},qt)))},ht=te(74902),_t=me=>{const pe=an=>{const{width:Yt,rows:dn=2}=me;if(Array.isArray(Yt))return Yt[an];if(dn-1===an)return Yt},{prefixCls:le,className:Le,style:dt,rows:Nt}=me,tn=(0,ht.Z)(Array(Nt)).map((an,Yt)=>ke.createElement("li",{key:Yt,style:{width:pe(Yt)}}));return ke.createElement("ul",{className:de()(le,Le),style:dt},tn)},kn=me=>{let{prefixCls:pe,className:le,width:Le,style:dt}=me;return ke.createElement("h3",{className:de()(pe,le),style:Object.assign({width:Le},dt)})};function kt(me){return me&&typeof me=="object"?me:{}}function un(me,pe){return me&&!pe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Wn(me,pe){return!me&&pe?{width:"38%"}:me&&pe?{width:"50%"}:{}}function An(me,pe){const le={};return(!me||!pe)&&(le.width="61%"),!me&&pe?le.rows=3:le.rows=2,le}const Ie=me=>{const{prefixCls:pe,loading:le,className:Le,rootClassName:dt,style:Nt,children:tn,avatar:an=!1,title:Yt=!0,paragraph:dn=!0,active:Mt,round:Wt}=me,{getPrefixCls:qt,direction:Gt,skeleton:jt}=ke.useContext(Ge.E_),sr=qt("skeleton",pe),[Dt,Jt]=ze(sr);if(le||!("loading"in me)){const Gn=!!an,Bn=!!Yt,Sn=!!dn;let or;if(Gn){const Lr=Object.assign(Object.assign({prefixCls:`${sr}-avatar`},un(Bn,Sn)),kt(an));or=ke.createElement("div",{className:`${sr}-header`},ke.createElement(ue,Object.assign({},Lr)))}let gr;if(Bn||Sn){let Lr;if(Bn){const Ir=Object.assign(Object.assign({prefixCls:`${sr}-title`},Wn(Gn,Sn)),kt(Yt));Lr=ke.createElement(kn,Object.assign({},Ir))}let Qr;if(Sn){const Ir=Object.assign(Object.assign({prefixCls:`${sr}-paragraph`},An(Gn,Bn)),kt(dn));Qr=ke.createElement(_t,Object.assign({},Ir))}gr=ke.createElement("div",{className:`${sr}-content`},Lr,Qr)}const kr=de()(sr,{[`${sr}-with-avatar`]:Gn,[`${sr}-active`]:Mt,[`${sr}-rtl`]:Gt==="rtl",[`${sr}-round`]:Wt},jt==null?void 0:jt.className,Le,dt,Jt);return Dt(ke.createElement("div",{className:kr,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Nt)},or,gr))}return typeof tn!="undefined"?tn:null};Ie.Button=Ze,Ie.Avatar=st,Ie.Input=qe,Ie.Image=je,Ie.Node=Rt;var he=Ie,ce=he},55054:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return ze}});var ee=te(67294),de=te(57838),ke=te(96159),Ge=te(94184),xe=te.n(Ge),Me=te(53124),ue=te(46303),fe=We=>{const{value:st,formatter:at,precision:Ze,decimalSeparator:Ae,groupSeparator:mt="",prefixCls:je}=We;let it;if(typeof at=="function")it=at(st);else{const qe=String(st),gt=qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!gt||qe==="-")it=qe;else{const Pt=gt[1];let Xt=gt[2]||"0",$e=gt[4]||"";Xt=Xt.replace(/\B(?=(\d{3})+(?!\d))/g,mt),typeof Ze=="number"&&($e=$e.padEnd(Ze,"0").slice(0,Ze>0?Ze:0)),$e&&($e=`${Ae}${$e}`),it=[ee.createElement("span",{key:"int",className:`${je}-content-value-int`},Pt,Xt),$e&&ee.createElement("span",{key:"decimal",className:`${je}-content-value-decimal`},$e)]}}return ee.createElement("span",{className:`${je}-content-value`},it)},we=te(14747),Ue=te(67968),De=te(45503);const Ke=We=>{const{componentCls:st,marginXXS:at,padding:Ze,colorTextDescription:Ae,titleFontSize:mt,colorTextHeading:je,contentFontSize:it,fontFamily:qe}=We;return{[`${st}`]:Object.assign(Object.assign({},(0,we.Wf)(We)),{[`${st}-title`]:{marginBottom:at,color:Ae,fontSize:mt},[`${st}-skeleton`]:{paddingTop:Ze},[`${st}-content`]:{color:je,fontSize:it,fontFamily:qe,[`${st}-content-value`]:{display:"inline-block",direction:"ltr"},[`${st}-content-prefix, ${st}-content-suffix`]:{display:"inline-block"},[`${st}-content-prefix`]:{marginInlineEnd:at},[`${st}-content-suffix`]:{marginInlineStart:at}}})}};var rt=(0,Ue.Z)("Statistic",We=>{const st=(0,De.TS)(We,{});return[Ke(st)]},We=>{const{fontSizeHeading3:st,fontSize:at}=We;return{titleFontSize:at,contentFontSize:st}}),_e=We=>{const{prefixCls:st,className:at,rootClassName:Ze,style:Ae,valueStyle:mt,value:je=0,title:it,valueRender:qe,prefix:gt,suffix:Pt,loading:Xt=!1,onMouseEnter:$e,onMouseLeave:Be,decimalSeparator:St=".",groupSeparator:Vt=","}=We,{getPrefixCls:Rt,direction:ht,statistic:Bt}=ee.useContext(Me.E_),_t=Rt("statistic",st),[Fn,kn]=rt(_t),kt=ee.createElement(fe,Object.assign({decimalSeparator:St,groupSeparator:Vt,prefixCls:_t},We,{value:je})),un=xe()(_t,{[`${_t}-rtl`]:ht==="rtl"},Bt==null?void 0:Bt.className,at,Ze,kn);return Fn(ee.createElement("div",{className:un,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Ae),onMouseEnter:$e,onMouseLeave:Be},it&&ee.createElement("div",{className:`${_t}-title`},it),ee.createElement(ue.Z,{paragraph:!1,loading:Xt,className:`${_t}-skeleton`},ee.createElement("div",{style:mt,className:`${_t}-content`},gt&&ee.createElement("span",{className:`${_t}-content-prefix`},gt),qe?qe(kt):kt,Pt&&ee.createElement("span",{className:`${_t}-content-suffix`},Pt)))))};const ge=[["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 Ve(We,st){let at=We;const Ze=/\[[^\]]*]/g,Ae=(st.match(Ze)||[]).map(qe=>qe.slice(1,-1)),mt=st.replace(Ze,"[]"),je=ge.reduce((qe,gt)=>{let[Pt,Xt]=gt;if(qe.includes(Pt)){const $e=Math.floor(at/Xt);return at-=$e*Xt,qe.replace(new RegExp(`${Pt}+`,"g"),Be=>{const St=Be.length;return $e.toString().padStart(St,"0")})}return qe},mt);let it=0;return je.replace(Ze,()=>{const qe=Ae[it];return it+=1,qe})}function lt(We,st){const{format:at=""}=st,Ze=new Date(We).getTime(),Ae=Date.now(),mt=Math.max(Ze-Ae,0);return Ve(mt,at)}const He=1e3/30;function Oe(We){return new Date(We).getTime()}const ve=We=>{const{value:st,format:at="HH:mm:ss",onChange:Ze,onFinish:Ae}=We,mt=(0,de.Z)(),je=ee.useRef(null),it=()=>{Ae==null||Ae(),je.current&&(clearInterval(je.current),je.current=null)},qe=()=>{const Xt=Oe(st);Xt>=Date.now()&&(je.current=setInterval(()=>{mt(),Ze==null||Ze(Xt-Date.now()),Xt<Date.now()&&it()},He))};ee.useEffect(()=>(qe(),()=>{je.current&&(clearInterval(je.current),je.current=null)}),[st]);const gt=(Xt,$e)=>lt(Xt,Object.assign(Object.assign({},$e),{format:at})),Pt=Xt=>(0,ke.Tm)(Xt,{title:void 0});return ee.createElement(_e,Object.assign({},We,{valueRender:Pt,formatter:gt}))};var ye=ee.memo(ve);_e.Countdown=ye;var ze=_e},33507:function(vn,Tt){"use strict";const te=ee=>({[ee.componentCls]:{[`${ee.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ee.motionDurationMid} ${ee.motionEaseInOut},
opacity ${ee.motionDurationMid} ${ee.motionEaseInOut} !important`}},[`${ee.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ee.motionDurationMid} ${ee.motionEaseInOut},
opacity ${ee.motionDurationMid} ${ee.motionEaseInOut} !important`}}});Tt.Z=te},33297:function(vn,Tt,te){"use strict";te.d(Tt,{Fm:function(){return De}});var ee=te(34367),de=te(93590);const ke=new ee.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ge=new ee.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xe=new ee.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Me=new ee.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ue=new ee.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ee=new ee.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fe=new ee.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),we=new ee.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Ue={"move-up":{inKeyframes:fe,outKeyframes:we},"move-down":{inKeyframes:ke,outKeyframes:Ge},"move-left":{inKeyframes:xe,outKeyframes:Me},"move-right":{inKeyframes:ue,outKeyframes:Ee}},De=(Ke,rt)=>{const{antCls:Qe}=Ke,_e=`${Qe}-${rt}`,{inKeyframes:ge,outKeyframes:Ve}=Ue[rt];return[(0,de.R)(_e,ge,Ve,Ke.motionDurationMid),{[`
${_e}-enter,
${_e}-appear
`]:{opacity:0,animationTimingFunction:Ke.motionEaseOutCirc},[`${_e}-leave`]:{animationTimingFunction:Ke.motionEaseInOutCirc}}]}},67771:function(vn,Tt,te){"use strict";te.d(Tt,{Qt:function(){return xe},Uw:function(){return Ge},fJ:function(){return ke},ly:function(){return Me},oN:function(){return De}});var ee=te(34367),de=te(93590);const ke=new ee.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ge=new ee.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xe=new ee.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Me=new ee.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ue=new ee.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Ee=new ee.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),fe=new ee.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),we=new ee.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ue={"slide-up":{inKeyframes:ke,outKeyframes:Ge},"slide-down":{inKeyframes:xe,outKeyframes:Me},"slide-left":{inKeyframes:ue,outKeyframes:Ee},"slide-right":{inKeyframes:fe,outKeyframes:we}},De=(Ke,rt)=>{const{antCls:Qe}=Ke,_e=`${Qe}-${rt}`,{inKeyframes:ge,outKeyframes:Ve}=Ue[rt];return[(0,de.R)(_e,ge,Ve,Ke.motionDurationMid),{[`
${_e}-enter,
${_e}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ke.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${_e}-leave`]:{animationTimingFunction:Ke.motionEaseInQuint}}]}},49867:function(vn,Tt,te){"use strict";te.d(Tt,{N:function(){return ee}});const ee=de=>({color:de.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${de.motionDurationSlow}`,"&:focus, &:hover":{color:de.colorLinkHover},"&:active":{color:de.colorLinkActive}})},47897:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return me}});var ee=te(3407),de=te(94184),ke=te.n(de);function Ge(){return Ge=Object.assign?Object.assign.bind():function(pe){for(var le=1;le<arguments.length;le++){var Le=arguments[le];for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&(pe[dt]=Le[dt])}return pe},Ge.apply(this,arguments)}function xe(pe){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},xe(pe)}function Me(pe,le){if(xe(pe)!=="object"||pe===null)return pe;var Le=pe[Symbol.toPrimitive];if(Le!==void 0){var dt=Le.call(pe,le||"default");if(xe(dt)!=="object")return dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(pe)}function ue(pe){var le=Me(pe,"string");return xe(le)==="symbol"?le:String(le)}function Ee(pe,le,Le){return le=ue(le),le in pe?Object.defineProperty(pe,le,{value:Le,enumerable:!0,configurable:!0,writable:!0}):pe[le]=Le,pe}function fe(pe){if(Array.isArray(pe))return pe}function we(pe,le){var Le=pe==null?null:typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(Le!=null){var dt,Nt,tn,an,Yt=[],dn=!0,Mt=!1;try{if(tn=(Le=Le.call(pe)).next,le===0){if(Object(Le)!==Le)return;dn=!1}else for(;!(dn=(dt=tn.call(Le)).done)&&(Yt.push(dt.value),Yt.length!==le);dn=!0);}catch(Wt){Mt=!0,Nt=Wt}finally{try{if(!dn&&Le.return!=null&&(an=Le.return(),Object(an)!==an))return}finally{if(Mt)throw Nt}}return Yt}}function Ue(pe,le){(le==null||le>pe.length)&&(le=pe.length);for(var Le=0,dt=new Array(le);Le<le;Le++)dt[Le]=pe[Le];return dt}function De(pe,le){if(pe){if(typeof pe=="string")return Ue(pe,le);var Le=Object.prototype.toString.call(pe).slice(8,-1);if(Le==="Object"&&pe.constructor&&(Le=pe.constructor.name),Le==="Map"||Le==="Set")return Array.from(pe);if(Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le))return Ue(pe,le)}}function Ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(pe,le){return fe(pe)||we(pe,le)||De(pe,le)||Ke()}function Qe(pe,le){if(pe==null)return{};var Le={},dt=Object.keys(pe),Nt,tn;for(tn=0;tn<dt.length;tn++)Nt=dt[tn],!(le.indexOf(Nt)>=0)&&(Le[Nt]=pe[Nt]);return Le}function _e(pe,le){if(pe==null)return{};var Le=Qe(pe,le),dt,Nt;if(Object.getOwnPropertySymbols){var tn=Object.getOwnPropertySymbols(pe);for(Nt=0;Nt<tn.length;Nt++)dt=tn[Nt],!(le.indexOf(dt)>=0)&&Object.prototype.propertyIsEnumerable.call(pe,dt)&&(Le[dt]=pe[dt])}return Le}var ge=te(67294);function Ve(pe){if(Array.isArray(pe))return pe}function lt(pe,le){var Le=pe==null?null:typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(Le!=null){var dt,Nt,tn,an,Yt=[],dn=!0,Mt=!1;try{if(tn=(Le=Le.call(pe)).next,le===0){if(Object(Le)!==Le)return;dn=!1}else for(;!(dn=(dt=tn.call(Le)).done)&&(Yt.push(dt.value),Yt.length!==le);dn=!0);}catch(Wt){Mt=!0,Nt=Wt}finally{try{if(!dn&&Le.return!=null&&(an=Le.return(),Object(an)!==an))return}finally{if(Mt)throw Nt}}return Yt}}function He(pe,le){(le==null||le>pe.length)&&(le=pe.length);for(var Le=0,dt=new Array(le);Le<le;Le++)dt[Le]=pe[Le];return dt}function Oe(pe,le){if(pe){if(typeof pe=="string")return He(pe,le);var Le=Object.prototype.toString.call(pe).slice(8,-1);if(Le==="Object"&&pe.constructor&&(Le=pe.constructor.name),Le==="Map"||Le==="Set")return Array.from(pe);if(Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le))return He(pe,le)}}function ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(pe,le){return Ve(pe)||lt(pe,le)||Oe(pe,le)||ve()}function ze(pe){var le=ge.useRef();le.current=pe;var Le=ge.useCallback(function(){for(var dt,Nt=arguments.length,tn=new Array(Nt),an=0;an<Nt;an++)tn[an]=arguments[an];return(dt=le.current)===null||dt===void 0?void 0:dt.call.apply(dt,[le].concat(tn))},[]);return Le}function We(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var st=We()?ge.useLayoutEffect:ge.useEffect,at=function(le,Le){var dt=ge.useRef(!0);st(function(){return le(dt.current)},Le),st(function(){return dt.current=!1,function(){dt.current=!0}},[])},Ze=function(le,Le){at(function(dt){if(!dt)return le()},Le)},Ae=null;function mt(pe){var le=ge.useRef(!1),Le=ge.useState(pe),dt=ye(Le,2),Nt=dt[0],tn=dt[1];ge.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function an(Yt,dn){dn&&le.current||tn(Yt)}return[Nt,an]}function je(pe){return pe!==void 0}function it(pe,le){var Le=le||{},dt=Le.defaultValue,Nt=Le.value,tn=Le.onChange,an=Le.postState,Yt=mt(function(){return je(Nt)?Nt:je(dt)?typeof dt=="function"?dt():dt:typeof pe=="function"?pe():pe}),dn=ye(Yt,2),Mt=dn[0],Wt=dn[1],qt=Nt!==void 0?Nt:Mt,Gt=an?an(qt):qt,jt=ze(tn),sr=mt([qt]),Dt=ye(sr,2),Jt=Dt[0],Gn=Dt[1];Ze(function(){var Sn=Jt[0];Mt!==Sn&&jt(Mt,Sn)},[Jt]),Ze(function(){je(Nt)||Wt(Nt)},[Nt]);var Bn=ze(function(Sn,or){Wt(Sn,or),Gn([qt],or)});return[Gt,Bn]}var qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var Le=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||Le>=qe.F1&&Le<=qe.F12)return!1;switch(Le){case qe.ALT:case qe.CAPS_LOCK:case qe.CONTEXT_MENU:case qe.CTRL:case qe.DOWN:case qe.END:case qe.ESC:case qe.HOME:case qe.INSERT:case qe.LEFT:case qe.MAC_FF_META:case qe.META:case qe.NUMLOCK:case qe.NUM_CENTER:case qe.PAGE_DOWN:case qe.PAGE_UP:case qe.PAUSE:case qe.PRINT_SCREEN:case qe.RIGHT:case qe.SHIFT:case qe.UP:case qe.WIN_KEY:case qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=qe.ZERO&&le<=qe.NINE||le>=qe.NUM_ZERO&&le<=qe.NUM_MULTIPLY||le>=qe.A&&le<=qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case qe.SPACE:case qe.QUESTION_MARK:case qe.NUM_PLUS:case qe.NUM_MINUS:case qe.NUM_PERIOD:case qe.NUM_DIVISION:case qe.SEMICOLON:case qe.DASH:case qe.EQUALS:case qe.COMMA:case qe.PERIOD:case qe.SLASH:case qe.APOSTROPHE:case qe.SINGLE_QUOTE:case qe.OPEN_SQUARE_BRACKET:case qe.BACKSLASH:case qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=qe,Pt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Xt=ge.forwardRef(function(pe,le){var Le,dt=pe.prefixCls,Nt=dt===void 0?"rc-switch":dt,tn=pe.className,an=pe.checked,Yt=pe.defaultChecked,dn=pe.disabled,Mt=pe.loadingIcon,Wt=pe.checkedChildren,qt=pe.unCheckedChildren,Gt=pe.onClick,jt=pe.onChange,sr=pe.onKeyDown,Dt=_e(pe,Pt),Jt=it(!1,{value:an,defaultValue:Yt}),Gn=rt(Jt,2),Bn=Gn[0],Sn=Gn[1];function or(Qr,Ir){var Dn=Bn;return dn||(Dn=Qr,Sn(Dn),jt==null||jt(Dn,Ir)),Dn}function gr(Qr){Qr.which===gt.LEFT?or(!1,Qr):Qr.which===gt.RIGHT&&or(!0,Qr),sr==null||sr(Qr)}function kr(Qr){var Ir=or(!Bn,Qr);Gt==null||Gt(Ir,Qr)}var Lr=ke()(Nt,tn,(Le={},Ee(Le,"".concat(Nt,"-checked"),Bn),Ee(Le,"".concat(Nt,"-disabled"),dn),Le));return ge.createElement("button",Ge({},Dt,{type:"button",role:"switch","aria-checked":Bn,disabled:dn,className:Lr,ref:le,onKeyDown:gr,onClick:kr}),Mt,ge.createElement("span",{className:"".concat(Nt,"-inner")},ge.createElement("span",{className:"".concat(Nt,"-inner-checked")},Wt),ge.createElement("span",{className:"".concat(Nt,"-inner-unchecked")},qt)))});Xt.displayName="Switch";var $e=Xt,Be=te(45353),St=te(53124),Vt=te(98866),Rt=te(98675),ht=te(84780),Bt=te(14747),_t=te(67968),Fn=te(45503);const kn=pe=>{const{componentCls:le,trackHeightSM:Le,trackPadding:dt,trackMinWidthSM:Nt,innerMinMarginSM:tn,innerMaxMarginSM:an,handleSizeSM:Yt}=pe,dn=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:Nt,height:Le,lineHeight:`${Le}px`,[`${le}-inner`]:{paddingInlineStart:an,paddingInlineEnd:tn,[`${dn}-checked`]:{marginInlineStart:`calc(-100% + ${Yt+dt*2}px - ${an*2}px)`,marginInlineEnd:`calc(100% - ${Yt+dt*2}px + ${an*2}px)`},[`${dn}-unchecked`]:{marginTop:-Le,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:Yt,height:Yt},[`${le}-loading-icon`]:{top:(Yt-pe.switchLoadingIconSize)/2,fontSize:pe.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:tn,paddingInlineEnd:an,[`${dn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${dn}-unchecked`]:{marginInlineStart:`calc(100% - ${Yt+dt*2}px + ${an*2}px)`,marginInlineEnd:`calc(-100% + ${Yt+dt*2}px - ${an*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${Yt+dt}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${dn}`]:{[`${dn}-unchecked`]:{marginInlineStart:pe.marginXXS/2,marginInlineEnd:-pe.marginXXS/2}},[`&${le}-checked ${dn}`]:{[`${dn}-checked`]:{marginInlineStart:-pe.marginXXS/2,marginInlineEnd:pe.marginXXS/2}}}}}}},kt=pe=>{const{componentCls:le,handleSize:Le}=pe;return{[le]:{[`${le}-loading-icon${pe.iconCls}`]:{position:"relative",top:(Le-pe.fontSize)/2,color:pe.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:pe.switchColor}}}},un=pe=>{const{componentCls:le,motion:Le,trackPadding:dt,handleBg:Nt,handleShadow:tn,handleSize:an}=pe,Yt=`${le}-handle`;return{[le]:{[Yt]:{position:"absolute",top:dt,insetInlineStart:dt,width:an,height:an,transition:`all ${pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Nt,borderRadius:an/2,boxShadow:tn,transition:`all ${pe.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${Yt}`]:{insetInlineStart:`calc(100% - ${an+dt}px)`},[`&:not(${le}-disabled):active`]:Le?{[`${Yt}::before`]:{insetInlineEnd:pe.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${Yt}::before`]:{insetInlineEnd:0,insetInlineStart:pe.switchHandleActiveInset}}:{}}}},Wn=pe=>{const{componentCls:le,trackHeight:Le,trackPadding:dt,innerMinMargin:Nt,innerMaxMargin:tn,handleSize:an}=pe,Yt=`${le}-inner`;return{[le]:{[Yt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:tn,paddingInlineEnd:Nt,transition:`padding-inline-start ${pe.switchDuration} ease-in-out, padding-inline-end ${pe.switchDuration} ease-in-out`,[`${Yt}-checked, ${Yt}-unchecked`]:{display:"block",color:pe.colorTextLightSolid,fontSize:pe.fontSizeSM,transition:`margin-inline-start ${pe.switchDuration} ease-in-out, margin-inline-end ${pe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Yt}-checked`]:{marginInlineStart:`calc(-100% + ${an+dt*2}px - ${tn*2}px)`,marginInlineEnd:`calc(100% - ${an+dt*2}px + ${tn*2}px)`},[`${Yt}-unchecked`]:{marginTop:-Le,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${Yt}`]:{paddingInlineStart:Nt,paddingInlineEnd:tn,[`${Yt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Yt}-unchecked`]:{marginInlineStart:`calc(100% - ${an+dt*2}px + ${tn*2}px)`,marginInlineEnd:`calc(-100% + ${an+dt*2}px - ${tn*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Yt}`]:{[`${Yt}-unchecked`]:{marginInlineStart:dt*2,marginInlineEnd:-dt*2}},[`&${le}-checked ${Yt}`]:{[`${Yt}-checked`]:{marginInlineStart:-dt*2,marginInlineEnd:dt*2}}}}}},An=pe=>{const{componentCls:le,trackHeight:Le,trackMinWidth:dt}=pe;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:dt,height:Le,lineHeight:`${Le}px`,verticalAlign:"middle",background:pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:pe.colorTextTertiary}}),(0,Bt.Qy)(pe)),{[`&${le}-checked`]:{background:pe.switchColor,[`&:hover:not(${le}-disabled)`]:{background:pe.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Ie=(0,_t.Z)("Switch",pe=>{const le=(0,Fn.TS)(pe,{switchDuration:pe.motionDurationMid,switchColor:pe.colorPrimary,switchDisabledOpacity:pe.opacityLoading,switchLoadingIconSize:pe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[An(le),Wn(le),un(le),kt(le),kn(le)]},pe=>{const{fontSize:le,lineHeight:Le,controlHeight:dt,colorWhite:Nt}=pe,tn=le*Le,an=dt/2,Yt=2,dn=tn-Yt*2,Mt=an-Yt*2;return{trackHeight:tn,trackHeightSM:an,trackMinWidth:dn*2+Yt*4,trackMinWidthSM:Mt*2+Yt*2,trackPadding:Yt,handleBg:Nt,handleSize:dn,handleSizeSM:Mt,handleShadow:`0 2px 4px 0 ${new ht.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:dn/2,innerMaxMargin:dn+Yt+Yt*2,innerMinMarginSM:Mt/2,innerMaxMarginSM:Mt+Yt+Yt*2}}),he=function(pe,le){var Le={};for(var dt in pe)Object.prototype.hasOwnProperty.call(pe,dt)&&le.indexOf(dt)<0&&(Le[dt]=pe[dt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,dt=Object.getOwnPropertySymbols(pe);Nt<dt.length;Nt++)le.indexOf(dt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(pe,dt[Nt])&&(Le[dt[Nt]]=pe[dt[Nt]]);return Le};const ce=ge.forwardRef((pe,le)=>{const{prefixCls:Le,size:dt,disabled:Nt,loading:tn,className:an,rootClassName:Yt,style:dn}=pe,Mt=he(pe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Wt,direction:qt,switch:Gt}=ge.useContext(St.E_),jt=ge.useContext(Vt.Z),sr=(Nt!=null?Nt:jt)||tn,Dt=Wt("switch",Le),Jt=ge.createElement("div",{className:`${Dt}-handle`},tn&&ge.createElement(ee.Z,{className:`${Dt}-loading-icon`})),[Gn,Bn]=Ie(Dt),Sn=(0,Rt.Z)(dt),or=ke()(Gt==null?void 0:Gt.className,{[`${Dt}-small`]:Sn==="small",[`${Dt}-loading`]:tn,[`${Dt}-rtl`]:qt==="rtl"},an,Yt,Bn),gr=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),dn);return Gn(ge.createElement(Be.Z,{component:"Switch"},ge.createElement($e,Object.assign({},Mt,{prefixCls:Dt,className:or,style:gr,disabled:sr,ref:le,loadingIcon:Jt}))))});ce.__ANT_SWITCH=!0;var me=ce},9430:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return Ru}});var ee={},de="rc-table-internal-hook",ke=te(97685),Ge=te(66680),xe=te(8410),Me=te(91881),ue=te(67294),Ee=te(73935);function fe(Fe){var Re=ue.createContext(void 0),ct=function(Qt){var en=Qt.value,Tn=Qt.children,er=ue.useRef(en);er.current=en;var Zn=ue.useState(function(){return{getValue:function(){return er.current},listeners:new Set}}),xr=(0,ke.Z)(Zn,1),Tr=xr[0];return(0,xe.Z)(function(){(0,Ee.unstable_batchedUpdates)(function(){Tr.listeners.forEach(function(Nn){Nn(en)})})},[en]),ue.createElement(Re.Provider,{value:Tr},Tn)};return{Context:Re,Provider:ct,defaultValue:Fe}}function we(Fe,Re){var ct=(0,Ge.Z)(typeof Re=="function"?Re:function(Nn){if(Re===void 0)return Nn;if(!Array.isArray(Re))return Nn[Re];var oi={};return Re.forEach(function(hi){oi[hi]=Nn[hi]}),oi}),At=ue.useContext(Fe==null?void 0:Fe.Context),Qt=At||{},en=Qt.listeners,Tn=Qt.getValue,er=ue.useRef();er.current=ct(At?Tn():Fe==null?void 0:Fe.defaultValue);var Zn=ue.useState({}),xr=(0,ke.Z)(Zn,2),Tr=xr[1];return(0,xe.Z)(function(){if(!At)return;function Nn(oi){var hi=ct(oi);(0,Me.Z)(er.current,hi,!0)||Tr({})}return en.add(Nn),function(){en.delete(Nn)}},[At]),er.current}var Ue=te(87462),De=te(42550);function Ke(){var Fe=ue.createContext(null);function Re(){return ue.useContext(Fe)}function ct(Qt,en){var Tn=(0,De.Yr)(Qt),er=function(xr,Tr){var Nn=Tn?{ref:Tr}:{},oi=ue.useRef(0),hi=ue.useRef(xr),mi=Re();return mi!==null?ue.createElement(Qt,(0,Ue.Z)({},xr,Nn)):((!en||en(hi.current,xr))&&(oi.current+=1),hi.current=xr,ue.createElement(Fe.Provider,{value:oi.current},ue.createElement(Qt,(0,Ue.Z)({},xr,Nn))))};return Tn?ue.forwardRef(er):er}function At(Qt,en){var Tn=(0,De.Yr)(Qt),er=function(xr,Tr){var Nn=Tn?{ref:Tr}:{};return Re(),ue.createElement(Qt,(0,Ue.Z)({},xr,Nn))};return Tn?ue.memo(ue.forwardRef(er),en):ue.memo(er,en)}return{makeImmutable:ct,responseImmutable:At,useImmutableMark:Re}}var rt=Ke(),Qe=rt.makeImmutable,_e=rt.responseImmutable,ge=rt.useImmutableMark,Ve=Ke(),lt=Ve.makeImmutable,He=Ve.responseImmutable,Oe=Ve.useImmutableMark,ve=fe(),ye=ve;function ze(Fe,Re){var ct=ue.useRef(0);ct.current+=1;var At=ue.useRef(Fe),Qt=[];Object.keys(Fe||{}).map(function(Tn){var er;(Fe==null?void 0:Fe[Tn])!==((er=At.current)===null||er===void 0?void 0:er[Tn])&&Qt.push(Tn)}),At.current=Fe;var en=ue.useRef([]);return Qt.length&&(en.current=Qt),ue.useDebugValue(ct.current),ue.useDebugValue(en.current.join(", ")),Re&&console.log("".concat(Re,":"),ct.current,en.current),ct.current}var We=null,st=ue.memo(function(){var Fe=ze();return ue.createElement("h1",null,"Render Times: ",Fe)});st.displayName="RenderBlock";var at=te(71002),Ze=te(1413),Ae=te(4942),mt=te(94184),je=te.n(mt);function it(Fe,Re,ct){var At=ue.useRef({});return(!("value"in At.current)||ct(At.current.condition,Re))&&(At.current.value=Fe(),At.current.condition=Re),At.current.value}var qe={},gt=[],Pt=function(Re){gt.push(Re)};function Xt(Fe,Re){if(0)var ct}function $e(Fe,Re){if(0)var ct}function Be(){qe={}}function St(Fe,Re,ct){!Re&&!qe[ct]&&(Fe(!1,ct),qe[ct]=!0)}function Vt(Fe,Re){St(Xt,Fe,Re)}function Rt(Fe,Re){St($e,Fe,Re)}Vt.preMessage=Pt,Vt.resetWarned=Be,Vt.noteOnce=Rt;var ht=Vt;function Bt(Fe,Re){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,At=new Set;function Qt(en,Tn){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Zn=At.has(en);if(ht(!Zn,"Warning: There may be circular references"),Zn)return!1;if(en===Tn)return!0;if(ct&&er>1)return!1;At.add(en);var xr=er+1;if(Array.isArray(en)){if(!Array.isArray(Tn)||en.length!==Tn.length)return!1;for(var Tr=0;Tr<en.length;Tr++)if(!Qt(en[Tr],Tn[Tr],xr))return!1;return!0}if(en&&Tn&&(0,at.Z)(en)==="object"&&(0,at.Z)(Tn)==="object"){var Nn=Object.keys(en);return Nn.length!==Object.keys(Tn).length?!1:Nn.every(function(oi){return Qt(en[oi],Tn[oi],xr)})}return!1}return Qt(Fe,Re)}var _t=Bt;function Fn(Fe,Re){for(var ct=Fe,At=0;At<Re.length;At+=1){if(ct==null)return;ct=ct[Re[At]]}return ct}var kn=ue.createContext({renderWithProps:!1}),kt=kn,un="RC_TABLE_KEY";function Wn(Fe){return Fe==null?[]:Array.isArray(Fe)?Fe:[Fe]}function An(Fe){var Re=[],ct={};return Fe.forEach(function(At){for(var Qt=At||{},en=Qt.key,Tn=Qt.dataIndex,er=en||Wn(Tn).join("-")||un;ct[er];)er="".concat(er,"_next");ct[er]=!0,Re.push(er)}),Re}function Ie(Fe){return Fe!=null}function he(Fe){return Fe&&(0,at.Z)(Fe)==="object"&&!Array.isArray(Fe)&&!ue.isValidElement(Fe)}function ce(Fe,Re,ct,At,Qt,en){var Tn=ue.useContext(kt),er=Oe(),Zn=it(function(){if(Ie(At))return[At];var xr=Re==null||Re===""?[]:Array.isArray(Re)?Re:[Re],Tr=Fn(Fe,xr),Nn=Tr,oi=void 0;if(Qt){var hi=Qt(Tr,Fe,ct);he(hi)?(Nn=hi.children,oi=hi.props,Tn.renderWithProps=!0):Nn=hi}return[Nn,oi]},[er,Fe,At,Re,Qt,ct],function(xr,Tr){if(en){var Nn=(0,ke.Z)(xr,2),oi=Nn[1],hi=(0,ke.Z)(Tr,2),mi=hi[1];return en(mi,oi)}return Tn.renderWithProps?!0:!_t(xr,Tr,!0)});return Zn}function me(Fe,Re,ct,At){var Qt=Fe+Re-1;return Fe<=At&&Qt>=ct}function pe(Fe,Re){return we(ye,function(ct){var At=me(Fe,Re||1,ct.hoverStartRow,ct.hoverEndRow);return[At,ct.onHover]})}var le=function(Re){var ct=Re.ellipsis,At=Re.rowType,Qt=Re.children,en,Tn=ct===!0?{showTitle:!0}:ct;return Tn&&(Tn.showTitle||At==="header")&&(typeof Qt=="string"||typeof Qt=="number"?en=Qt.toString():ue.isValidElement(Qt)&&typeof Qt.props.children=="string"&&(en=Qt.props.children)),en};function Le(Fe){var Re,ct,At,Qt,en,Tn,er,Zn,xr=Fe.component,Tr=Fe.children,Nn=Fe.ellipsis,oi=Fe.scope,hi=Fe.prefixCls,mi=Fe.className,Hi=Fe.align,Ci=Fe.record,ea=Fe.render,Gi=Fe.dataIndex,ha=Fe.renderIndex,qa=Fe.shouldCellUpdate,Za=Fe.index,Ja=Fe.rowType,To=Fe.colSpan,al=Fe.rowSpan,Da=Fe.fixLeft,Fi=Fe.fixRight,Bi=Fe.firstFixLeft,Ri=Fe.lastFixLeft,pa=Fe.firstFixRight,Ta=Fe.lastFixRight,Jo=Fe.appendNode,Do=Fe.additionalProps,wo=Do===void 0?{}:Do,ul=Fe.isSticky,fl="".concat(hi,"-cell"),Nl=we(ye,["supportSticky","allColumnsFixedLeft"]),Ml=Nl.supportSticky,ds=Nl.allColumnsFixedLeft,fs=ce(Ci,Gi,ha,Tr,ea,qa),hl=(0,ke.Z)(fs,2),_s=hl[0],jl=hl[1],es={},Yl=typeof Da=="number"&&Ml,ol=typeof Fi=="number"&&Ml;Yl&&(es.position="sticky",es.left=Da),ol&&(es.position="sticky",es.right=Fi);var Ia=(Re=(ct=(At=jl==null?void 0:jl.colSpan)!==null&&At!==void 0?At:wo.colSpan)!==null&&ct!==void 0?ct:To)!==null&&Re!==void 0?Re:1,Mo=(Qt=(en=(Tn=jl==null?void 0:jl.rowSpan)!==null&&Tn!==void 0?Tn:wo.rowSpan)!==null&&en!==void 0?en:al)!==null&&Qt!==void 0?Qt:1,Ho=pe(Za,Mo),Ga=(0,ke.Z)(Ho,2),Ul=Ga[0],Aa=Ga[1],cl=function(Ps){var gu;Ci&&Aa(Za,Za+Mo-1),wo==null||(gu=wo.onMouseEnter)===null||gu===void 0||gu.call(wo,Ps)},Zl=function(Ps){var gu;Ci&&Aa(-1,-1),wo==null||(gu=wo.onMouseLeave)===null||gu===void 0||gu.call(wo,Ps)};if(Ia===0||Mo===0)return null;var _l=(er=wo.title)!==null&&er!==void 0?er:le({rowType:Ja,ellipsis:Nn,children:_s}),fu=je()(fl,mi,(Zn={},(0,Ae.Z)(Zn,"".concat(fl,"-fix-left"),Yl&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-left-first"),Bi&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-left-last"),Ri&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-left-all"),Ri&&ds&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-right"),ol&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-right-first"),pa&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-fix-right-last"),Ta&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-ellipsis"),Nn),(0,Ae.Z)(Zn,"".concat(fl,"-with-append"),Jo),(0,Ae.Z)(Zn,"".concat(fl,"-fix-sticky"),(Yl||ol)&&ul&&Ml),(0,Ae.Z)(Zn,"".concat(fl,"-row-hover"),!jl&&Ul),Zn),wo.className,jl==null?void 0:jl.className),zs={};Hi&&(zs.textAlign=Hi);var Su=(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},es),wo.style),zs),jl==null?void 0:jl.style),Pi=_s;return(0,at.Z)(Pi)==="object"&&!Array.isArray(Pi)&&!ue.isValidElement(Pi)&&(Pi=null),Nn&&(Ri||pa)&&(Pi=ue.createElement("span",{className:"".concat(fl,"-content")},Pi)),ue.createElement(xr,(0,Ue.Z)({},jl,wo,{className:fu,style:Su,title:_l,scope:oi,onMouseEnter:cl,onMouseLeave:Zl,colSpan:Ia!==1?Ia:null,rowSpan:Mo!==1?Mo:null}),Jo,Pi)}var dt=ue.memo(Le);function Nt(Fe,Re,ct,At,Qt,en){var Tn=ct[Fe]||{},er=ct[Re]||{},Zn,xr;Tn.fixed==="left"?Zn=At.left[Qt==="rtl"?Re:Fe]:er.fixed==="right"&&(xr=At.right[Qt==="rtl"?Fe:Re]);var Tr=!1,Nn=!1,oi=!1,hi=!1,mi=ct[Re+1],Hi=ct[Fe-1],Ci=!(en!=null&&en.children);if(Qt==="rtl"){if(Zn!==void 0){var ea=Hi&&Hi.fixed==="left";hi=!ea&&Ci}else if(xr!==void 0){var Gi=mi&&mi.fixed==="right";oi=!Gi&&Ci}}else if(Zn!==void 0){var ha=mi&&mi.fixed==="left";Tr=!ha&&Ci}else if(xr!==void 0){var qa=Hi&&Hi.fixed==="right";Nn=!qa&&Ci}return{fixLeft:Zn,fixRight:xr,lastFixLeft:Tr,firstFixRight:Nn,lastFixRight:oi,firstFixLeft:hi,isSticky:At.isSticky}}var tn=ue.createContext({}),an=tn;function Yt(Fe){var Re=Fe.className,ct=Fe.index,At=Fe.children,Qt=Fe.colSpan,en=Qt===void 0?1:Qt,Tn=Fe.rowSpan,er=Fe.align,Zn=we(ye,["prefixCls","direction"]),xr=Zn.prefixCls,Tr=Zn.direction,Nn=ue.useContext(an),oi=Nn.scrollColumnIndex,hi=Nn.stickyOffsets,mi=Nn.flattenColumns,Hi=Nn.columns,Ci=ct+en-1,ea=Ci+1===oi?en+1:en,Gi=Nt(ct,ct+ea-1,mi,hi,Tr,Hi==null?void 0:Hi[ct]);return ue.createElement(dt,(0,Ue.Z)({className:Re,index:ct,component:"td",prefixCls:xr,record:null,dataIndex:null,align:er,colSpan:ea,rowSpan:Tn,render:function(){return At}},Gi))}var dn=te(45987),Mt=["children"];function Wt(Fe){var Re=Fe.children,ct=(0,dn.Z)(Fe,Mt);return ue.createElement("tr",ct,Re)}function qt(Fe){var Re=Fe.children;return Re}qt.Row=Wt,qt.Cell=Yt;var Gt=qt;function jt(Fe){var Re=Fe.children,ct=Fe.stickyOffsets,At=Fe.flattenColumns,Qt=Fe.columns,en=we(ye,"prefixCls"),Tn=At.length-1,er=At[Tn],Zn=ue.useMemo(function(){return{stickyOffsets:ct,flattenColumns:At,scrollColumnIndex:er!=null&&er.scrollbar?Tn:null,columns:Qt}},[er,At,Tn,ct,Qt]);return ue.createElement(an.Provider,{value:Zn},ue.createElement("tfoot",{className:"".concat(en,"-summary")},Re))}var sr=He(jt),Dt=Gt;function Jt(Fe){var Re=ue.useRef();Re.current=Fe;var ct=ue.useCallback(function(){for(var At,Qt=arguments.length,en=new Array(Qt),Tn=0;Tn<Qt;Tn++)en[Tn]=arguments[Tn];return(At=Re.current)===null||At===void 0?void 0:At.call.apply(At,[Re].concat(en))},[]);return ct}function Gn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Bn=Gn()?ue.useLayoutEffect:ue.useEffect,Sn=function(Re,ct){var At=React.useRef(!0);Bn(function(){return Re(At.current)},ct),Bn(function(){return At.current=!1,function(){At.current=!0}},[])},or=function(Re,ct){Sn(function(At){if(!At)return Re()},ct)},gr=null;function kr(Fe){var Re=React.useRef(!1),ct=React.useState(Fe),At=_slicedToArray(ct,2),Qt=At[0],en=At[1];React.useEffect(function(){return Re.current=!1,function(){Re.current=!0}},[]);function Tn(er,Zn){Zn&&Re.current||en(er)}return[Qt,Tn]}function Lr(Fe){return Fe!==void 0}function Qr(Fe,Re){var ct=Re||{},At=ct.defaultValue,Qt=ct.value,en=ct.onChange,Tn=ct.postState,er=useState(function(){return Lr(Qt)?Qt:Lr(At)?typeof At=="function"?At():At:typeof Fe=="function"?Fe():Fe}),Zn=_slicedToArray(er,2),xr=Zn[0],Tr=Zn[1],Nn=Qt!==void 0?Qt:xr,oi=Tn?Tn(Nn):Nn,hi=useEvent(en),mi=useState([Nn]),Hi=_slicedToArray(mi,2),Ci=Hi[0],ea=Hi[1];useLayoutUpdateEffect(function(){var ha=Ci[0];xr!==ha&&hi(xr,ha)},[Ci]),useLayoutUpdateEffect(function(){Lr(Qt)||Tr(Qt)},[Qt]);var Gi=useEvent(function(ha,qa){Tr(ha,qa),ea([Nn],qa)});return[oi,Gi]}var Ir=te(35110);function Dn(Fe,Re){typeof Fe=="function"?Fe(Re):(0,at.Z)(Fe)==="object"&&Fe&&"current"in Fe&&(Fe.current=Re)}function cr(){for(var Fe=arguments.length,Re=new Array(Fe),ct=0;ct<Fe;ct++)Re[ct]=arguments[ct];var At=Re.filter(function(Qt){return Qt});return At.length<=1?At[0]:function(Qt){Re.forEach(function(en){Dn(en,Qt)})}}function vr(){for(var Fe=arguments.length,Re=new Array(Fe),ct=0;ct<Fe;ct++)Re[ct]=arguments[ct];return useMemo(function(){return cr.apply(void 0,Re)},Re,function(At,Qt){return At.length!==Qt.length||At.every(function(en,Tn){return en!==Qt[Tn]})})}function Ur(Fe){var Re,ct,At=isMemo(Fe)?Fe.type.type:Fe.type;return!(typeof At=="function"&&!((Re=At.prototype)!==null&&Re!==void 0&&Re.render)||typeof Fe=="function"&&!((ct=Fe.prototype)!==null&&ct!==void 0&&ct.render))}function ti(Fe){return!isValidElement(Fe)||isFragment(Fe)?!1:Ur(Fe)}function Kt(Fe,Re,ct,At){if(!Re.length)return ct;var Qt=_toArray(Re),en=Qt[0],Tn=Qt.slice(1),er;return!Fe&&typeof en=="number"?er=[]:Array.isArray(Fe)?er=_toConsumableArray(Fe):er=_objectSpread({},Fe),At&&ct===void 0&&Tn.length===1?delete er[en][Tn[0]]:er[en]=Kt(er[en],Tn,ct,At),er}function _n(Fe,Re,ct){var At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Re.length&&At&&ct===void 0&&!get(Fe,Re.slice(0,-1))?Fe:Kt(Fe,Re,ct,At)}function nn(Fe){return _typeof(Fe)==="object"&&Fe!==null&&Object.getPrototypeOf(Fe)===Object.prototype}function In(Fe){return Array.isArray(Fe)?[]:{}}var nr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Rr(){for(var Fe=arguments.length,Re=new Array(Fe),ct=0;ct<Fe;ct++)Re[ct]=arguments[ct];var At=In(Re[0]);return Re.forEach(function(Qt){function en(Tn,er){var Zn=new Set(er),xr=get(Qt,Tn),Tr=Array.isArray(xr);if(Tr||nn(xr)){if(!Zn.has(xr)){Zn.add(xr);var Nn=get(At,Tn);Tr?At=_n(At,Tn,[]):(!Nn||_typeof(Nn)!=="object")&&(At=_n(At,Tn,In(xr))),nr(xr).forEach(function(oi){en([].concat(_toConsumableArray(Tn),[oi]),Zn)})}}else At=_n(At,Tn,xr)}en([])}),At}var Pr=te(48555),br=function(Fe){if(!Fe)return!1;if(Fe instanceof Element){if(Fe.offsetParent)return!0;if(Fe.getBBox){var Re=Fe.getBBox(),ct=Re.width,At=Re.height;if(ct||At)return!0}if(Fe.getBoundingClientRect){var Qt=Fe.getBoundingClientRect(),en=Qt.width,Tn=Qt.height;if(en||Tn)return!0}}return!1},xt=function(Re){if(Gn()&&window.document.documentElement){var ct=Array.isArray(Re)?Re:[Re],At=window.document.documentElement;return ct.some(function(Qt){return Qt in At.style})}return!1},$t=function(Re,ct){if(!xt(Re))return!1;var At=document.createElement("div"),Qt=At.style[Re];return At.style[Re]=ct,At.style[Re]!==Qt};function fn(Fe,Re){return!Array.isArray(Fe)&&Re!==void 0?$t(Fe,Re):xt(Fe)}var Mn;function yt(Fe){if(typeof document=="undefined")return 0;if(Fe||Mn===void 0){var Re=document.createElement("div");Re.style.width="100%",Re.style.height="200px";var ct=document.createElement("div"),At=ct.style;At.position="absolute",At.top="0",At.left="0",At.pointerEvents="none",At.visibility="hidden",At.width="200px",At.height="150px",At.overflow="hidden",ct.appendChild(Re),document.body.appendChild(ct);var Qt=Re.offsetWidth;ct.style.overflow="scroll";var en=Re.offsetWidth;Qt===en&&(en=ct.clientWidth),document.body.removeChild(ct),Mn=Qt-en}return Mn}function Ut(Fe){var Re=Fe.match(/^(.*)px$/),ct=Number(Re==null?void 0:Re[1]);return Number.isNaN(ct)?yt():ct}function Cn(Fe){if(typeof document=="undefined"||!Fe||!(Fe instanceof Element))return{width:0,height:0};var Re=getComputedStyle(Fe,"::-webkit-scrollbar"),ct=Re.width,At=Re.height;return{width:Ut(ct),height:Ut(At)}}var cn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,zn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Hn="".concat(cn," ").concat(zn).split(/[\s\n]+/),Mr="aria-",gi="data-";function Xr(Fe,Re){return Fe.indexOf(Re)===0}function Gr(Fe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct;Re===!1?ct={aria:!0,data:!0,attr:!0}:Re===!0?ct={aria:!0}:ct=(0,Ze.Z)({},Re);var At={};return Object.keys(Fe).forEach(function(Qt){(ct.aria&&(Qt==="role"||Xr(Qt,Mr))||ct.data&&Xr(Qt,gi)||ct.attr&&Hn.includes(Qt))&&(At[Qt]=Fe[Qt])}),At}function di(Fe,Re,ct,At,Qt,en,Tn){Fe.push({record:Re,indent:ct,index:Tn});var er=en(Re),Zn=Qt==null?void 0:Qt.has(er);if(Re&&Array.isArray(Re[At])&&Zn)for(var xr=0;xr<Re[At].length;xr+=1)di(Fe,Re[At][xr],ct+1,At,Qt,en,xr)}function ci(Fe,Re,ct,At){var Qt=ue.useMemo(function(){if(ct!=null&&ct.size){for(var en=[],Tn=0;Tn<(Fe==null?void 0:Fe.length);Tn+=1){var er=Fe[Tn];di(en,er,0,Re,ct,At,Tn)}return en}return Fe==null?void 0:Fe.map(function(Zn,xr){return{record:Zn,indent:0,index:xr}})},[Fe,Re,ct,At]);return Qt}function Si(Fe){var Re=Fe.prefixCls,ct=Fe.children,At=Fe.component,Qt=Fe.cellComponent,en=Fe.className,Tn=Fe.expanded,er=Fe.colSpan,Zn=Fe.isEmpty,xr=we(ye,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Tr=xr.scrollbarSize,Nn=xr.fixHeader,oi=xr.fixColumn,hi=xr.componentWidth,mi=xr.horizonScroll,Hi=ct;return(Zn?mi&&hi:oi)&&(Hi=ue.createElement("div",{style:{width:hi-(Nn?Tr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Re,"-expanded-row-fixed")},Hi)),ue.createElement(At,{className:en,style:{display:Tn?null:"none"}},ue.createElement(dt,{component:Qt,prefixCls:Re,colSpan:er},Hi))}var Jn=Si;function Jr(Fe,Re,ct,At){var Qt=we(ye,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),en=Qt.flattenColumns,Tn=Qt.expandableType,er=Qt.expandedKeys,Zn=Qt.childrenColumnName,xr=Qt.onTriggerExpand,Tr=Qt.rowExpandable,Nn=Qt.onRow,oi=Qt.expandRowByClick,hi=Qt.rowClassName,mi=Tn==="nest",Hi=Tn==="row"&&(!Tr||Tr(Fe)),Ci=Hi||mi,ea=er&&er.has(Re),Gi=Zn&&Fe&&Fe[Zn],ha=Jt(xr),qa=Nn==null?void 0:Nn(Fe,ct),Za=qa==null?void 0:qa.onClick,Ja=function(Fi){oi&&Ci&&xr(Fe,Fi);for(var Bi=arguments.length,Ri=new Array(Bi>1?Bi-1:0),pa=1;pa<Bi;pa++)Ri[pa-1]=arguments[pa];Za==null||Za.apply(void 0,[Fi].concat(Ri))},To;typeof hi=="string"?To=hi:typeof hi=="function"&&(To=hi(Fe,ct,At));var al=An(en);return(0,Ze.Z)((0,Ze.Z)({},Qt),{},{columnsKey:al,nestExpandable:mi,expanded:ea,hasNestChildren:Gi,record:Fe,onTriggerExpand:ha,rowSupportExpand:Hi,expandable:Ci,rowProps:(0,Ze.Z)((0,Ze.Z)({},qa),{},{className:je()(To,qa==null?void 0:qa.className),onClick:Ja})})}function Oa(Fe,Re,ct,At,Qt){var en=Fe.record,Tn=Fe.prefixCls,er=Fe.columnsKey,Zn=Fe.fixedInfoList,xr=Fe.expandIconColumnIndex,Tr=Fe.nestExpandable,Nn=Fe.indentSize,oi=Fe.expandIcon,hi=Fe.expanded,mi=Fe.hasNestChildren,Hi=Fe.onTriggerExpand,Ci=er[ct],ea=Zn[ct],Gi;ct===(xr||0)&&Tr&&(Gi=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(Nn*At,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(At)}),oi({prefixCls:Tn,expanded:hi,expandable:mi,record:en,onExpand:Hi})));var ha;return Re.onCell&&(ha=Re.onCell(en,Qt)),{key:Ci,fixedInfo:ea,appendCellNode:Gi,additionalCellProps:ha||{}}}function Qa(Fe){var Re=Fe.className,ct=Fe.style,At=Fe.record,Qt=Fe.index,en=Fe.renderIndex,Tn=Fe.rowKey,er=Fe.indent,Zn=er===void 0?0:er,xr=Fe.rowComponent,Tr=Fe.cellComponent,Nn=Fe.scopeCellComponent,oi=Jr(At,Tn,Qt,Zn),hi=oi.prefixCls,mi=oi.flattenColumns,Hi=oi.expandedRowClassName,Ci=oi.expandedRowRender,ea=oi.rowProps,Gi=oi.expanded,ha=oi.rowSupportExpand,qa=ue.useState(!1),Za=(0,ke.Z)(qa,2),Ja=Za[0],To=Za[1];ue.useEffect(function(){Gi&&To(!0)},[Gi]);var al=ue.createElement(xr,(0,Ue.Z)({},ea,{"data-row-key":Tn,className:je()(Re,"".concat(hi,"-row"),"".concat(hi,"-row-level-").concat(Zn),ea==null?void 0:ea.className),style:(0,Ze.Z)((0,Ze.Z)({},ct),ea==null?void 0:ea.style)}),mi.map(function(Ri,pa){var Ta=Ri.render,Jo=Ri.dataIndex,Do=Ri.className,wo=Oa(oi,Ri,pa,Zn,Qt),ul=wo.key,fl=wo.fixedInfo,Nl=wo.appendCellNode,Ml=wo.additionalCellProps;return ue.createElement(dt,(0,Ue.Z)({className:Do,ellipsis:Ri.ellipsis,align:Ri.align,scope:Ri.rowScope,component:Ri.rowScope?Nn:Tr,prefixCls:hi,key:ul,record:At,index:Qt,renderIndex:en,dataIndex:Jo,render:Ta,shouldCellUpdate:Ri.shouldCellUpdate},fl,{appendNode:Nl,additionalProps:Ml}))})),Da;if(ha&&(Ja||Gi)){var Fi=Ci(At,Qt,Zn+1,Gi),Bi=Hi&&Hi(At,Qt,Zn);Da=ue.createElement(Jn,{expanded:Gi,className:je()("".concat(hi,"-expanded-row"),"".concat(hi,"-expanded-row-level-").concat(Zn+1),Bi),prefixCls:hi,component:xr,cellComponent:Tr,colSpan:mi.length,isEmpty:!1},Fi)}return ue.createElement(ue.Fragment,null,al,Da)}Qa.displayName="BodyRow";var Li=He(Qa);function qi(Fe){var Re=Fe.columnKey,ct=Fe.onColumnResize,At=ue.useRef();return ue.useEffect(function(){At.current&&ct(Re,At.current.offsetWidth)},[]),ue.createElement(Pr.Z,{data:Re},ue.createElement("td",{ref:At,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function $a(Fe){var Re=Fe.prefixCls,ct=Fe.columnsKey,At=Fe.onColumnResize;return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(Re,"-measure-row"),style:{height:0,fontSize:0}},ue.createElement(Pr.Z.Collection,{onBatchResize:function(en){en.forEach(function(Tn){var er=Tn.data,Zn=Tn.size;At(er,Zn.offsetWidth)})}},ct.map(function(Qt){return ue.createElement(qi,{key:Qt,columnKey:Qt,onColumnResize:At})})))}function zi(Fe){var Re=Fe.data,ct=Fe.measureColumnWidth,At=we(ye,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Qt=At.prefixCls,en=At.getComponent,Tn=At.onColumnResize,er=At.flattenColumns,Zn=At.getRowKey,xr=At.expandedKeys,Tr=At.childrenColumnName,Nn=At.emptyNode,oi=ci(Re,Tr,xr,Zn),hi=ue.useRef({renderWithProps:!1}),mi=en(["body","wrapper"],"tbody"),Hi=en(["body","row"],"tr"),Ci=en(["body","cell"],"td"),ea=en(["body","cell"],"th"),Gi;Re.length?Gi=oi.map(function(qa,Za){var Ja=qa.record,To=qa.indent,al=qa.index,Da=Zn(Ja,Za);return ue.createElement(Li,{key:Da,rowKey:Da,record:Ja,index:Za,renderIndex:al,rowComponent:Hi,cellComponent:Ci,scopeCellComponent:ea,getRowKey:Zn,indent:To})}):Gi=ue.createElement(Jn,{expanded:!0,className:"".concat(Qt,"-placeholder"),prefixCls:Qt,component:Hi,cellComponent:Ci,colSpan:er.length,isEmpty:!0},Nn);var ha=An(er);return ue.createElement(kt.Provider,{value:hi.current},ue.createElement(mi,{className:"".concat(Qt,"-tbody")},ct&&ue.createElement($a,{prefixCls:Qt,columnsKey:ha,onColumnResize:Tn}),Gi))}zi.displayName="Body";var to=He(zi),_r=["expandable"],Wo="RC_TABLE_INTERNAL_COL_DEFINE";function _o(Fe){var Re=Fe.expandable,ct=(0,dn.Z)(Fe,_r),At;return"expandable"in Fe?At=(0,Ze.Z)((0,Ze.Z)({},ct),Re):At=ct,At.showExpandColumn===!1&&(At.expandIconColumnIndex=-1),At}var bl=["columnType"];function jo(Fe){for(var Re=Fe.colWidths,ct=Fe.columns,At=Fe.columCount,Qt=[],en=At||ct.length,Tn=!1,er=en-1;er>=0;er-=1){var Zn=Re[er],xr=ct&&ct[er],Tr=xr&&xr[Wo];if(Zn||Tr||Tn){var Nn=Tr||{},oi=Nn.columnType,hi=(0,dn.Z)(Nn,bl);Qt.unshift(ue.createElement("col",(0,Ue.Z)({key:er,style:{width:Zn}},hi))),Tn=!0}}return ue.createElement("colgroup",null,Qt)}var Po=jo,la=te(74902),el=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function No(Fe,Re){return(0,ue.useMemo)(function(){for(var ct=[],At=0;At<Re;At+=1){var Qt=Fe[At];if(Qt!==void 0)ct[At]=Qt;else return null}return ct},[Fe.join("_"),Re])}var rl=ue.forwardRef(function(Fe,Re){var ct=Fe.className,At=Fe.noData,Qt=Fe.columns,en=Fe.flattenColumns,Tn=Fe.colWidths,er=Fe.columCount,Zn=Fe.stickyOffsets,xr=Fe.direction,Tr=Fe.fixHeader,Nn=Fe.stickyTopOffset,oi=Fe.stickyBottomOffset,hi=Fe.stickyClassName,mi=Fe.onScroll,Hi=Fe.maxContentScroll,Ci=Fe.children,ea=(0,dn.Z)(Fe,el),Gi=we(ye,["prefixCls","scrollbarSize","isSticky"]),ha=Gi.prefixCls,qa=Gi.scrollbarSize,Za=Gi.isSticky,Ja=Za&&!Tr?0:qa,To=ue.useRef(null),al=ue.useCallback(function(Do){Dn(Re,Do),Dn(To,Do)},[]);ue.useEffect(function(){var Do;function wo(ul){var fl=ul,Nl=fl.currentTarget,Ml=fl.deltaX;Ml&&(mi({currentTarget:Nl,scrollLeft:Nl.scrollLeft+Ml}),ul.preventDefault())}return(Do=To.current)===null||Do===void 0||Do.addEventListener("wheel",wo),function(){var ul;(ul=To.current)===null||ul===void 0||ul.removeEventListener("wheel",wo)}},[]);var Da=ue.useMemo(function(){return en.every(function(Do){return Do.width})},[en]),Fi=en[en.length-1],Bi={fixed:Fi?Fi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ha,"-cell-scrollbar")}}},Ri=(0,ue.useMemo)(function(){return Ja?[].concat((0,la.Z)(Qt),[Bi]):Qt},[Ja,Qt]),pa=(0,ue.useMemo)(function(){return Ja?[].concat((0,la.Z)(en),[Bi]):en},[Ja,en]),Ta=(0,ue.useMemo)(function(){var Do=Zn.right,wo=Zn.left;return(0,Ze.Z)((0,Ze.Z)({},Zn),{},{left:xr==="rtl"?[].concat((0,la.Z)(wo.map(function(ul){return ul+Ja})),[0]):wo,right:xr==="rtl"?Do:[].concat((0,la.Z)(Do.map(function(ul){return ul+Ja})),[0]),isSticky:Za})},[Ja,Zn,Za]),Jo=No(Tn,er);return ue.createElement("div",{style:(0,Ze.Z)({overflow:"hidden"},Za?{top:Nn,bottom:oi}:{}),ref:al,className:je()(ct,(0,Ae.Z)({},hi,!!hi))},ue.createElement("table",{style:{tableLayout:"fixed",visibility:At||Jo?null:"hidden"}},(!At||!Hi||Da)&&ue.createElement(Po,{colWidths:Jo?[].concat((0,la.Z)(Jo),[Ja]):[],columCount:er+1,columns:pa}),Ci((0,Ze.Z)((0,Ze.Z)({},ea),{},{stickyOffsets:Ta,columns:Ri,flattenColumns:pa}))))});rl.displayName="FixedHolder";var vl=ue.memo(rl);function ll(Fe){var Re=Fe.cells,ct=Fe.stickyOffsets,At=Fe.flattenColumns,Qt=Fe.rowComponent,en=Fe.cellComponent,Tn=Fe.tdCellComponent,er=Fe.onHeaderRow,Zn=Fe.index,xr=we(ye,["prefixCls","direction"]),Tr=xr.prefixCls,Nn=xr.direction,oi;er&&(oi=er(Re.map(function(mi){return mi.column}),Zn));var hi=An(Re.map(function(mi){return mi.column}));return ue.createElement(Qt,oi,Re.map(function(mi,Hi){var Ci=mi.column,ea=Nt(mi.colStart,mi.colEnd,At,ct,Nn,Ci),Gi;return Ci&&Ci.onHeaderCell&&(Gi=mi.column.onHeaderCell(Ci)),ue.createElement(dt,(0,Ue.Z)({},mi,{scope:Ci.title?mi.colSpan>1?"colgroup":"col":null,ellipsis:Ci.ellipsis,align:Ci.align,component:Ci.title?en:Tn,prefixCls:Tr,key:hi[Hi]},ea,{additionalProps:Gi,rowType:"header"}))}))}ll.displayName="HeaderRow";var Uo=ll;function gl(Fe){var Re=[];function ct(Tn,er){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[Zn]=Re[Zn]||[];var xr=er,Tr=Tn.filter(Boolean).map(function(Nn){var oi={key:Nn.key,className:Nn.className||"",children:Nn.title,column:Nn,colStart:xr},hi=1,mi=Nn.children;return mi&&mi.length>0&&(hi=ct(mi,xr,Zn+1).reduce(function(Hi,Ci){return Hi+Ci},0),oi.hasSubColumns=!0),"colSpan"in Nn&&(hi=Nn.colSpan),"rowSpan"in Nn&&(oi.rowSpan=Nn.rowSpan),oi.colSpan=hi,oi.colEnd=oi.colStart+hi-1,Re[Zn].push(oi),xr+=hi,hi});return Tr}ct(Fe,0);for(var At=Re.length,Qt=function(er){Re[er].forEach(function(Zn){!("rowSpan"in Zn)&&!Zn.hasSubColumns&&(Zn.rowSpan=At-er)})},en=0;en<At;en+=1)Qt(en);return Re}function wl(Fe){var Re=Fe.stickyOffsets,ct=Fe.columns,At=Fe.flattenColumns,Qt=Fe.onHeaderRow,en=we(ye,["prefixCls","getComponent"]),Tn=en.prefixCls,er=en.getComponent,Zn=ue.useMemo(function(){return gl(ct)},[ct]),xr=er(["header","wrapper"],"thead"),Tr=er(["header","row"],"tr"),Nn=er(["header","cell"],"th"),oi=er(["header","cell"],"td");return ue.createElement(xr,{className:"".concat(Tn,"-thead")},Zn.map(function(hi,mi){var Hi=ue.createElement(Uo,{key:mi,flattenColumns:At,cells:hi,stickyOffsets:Re,rowComponent:Tr,cellComponent:Nn,tdCellComponent:oi,onHeaderRow:Qt,index:mi});return Hi}))}var dl=He(wl);function io(Fe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=[];return ue.Children.forEach(Fe,function(At){At==null&&!Re.keepEmpty||(Array.isArray(At)?ct=ct.concat(io(At)):(0,Ir.isFragment)(At)&&At.props?ct=ct.concat(io(At.props.children,Re)):ct.push(At))}),ct}function wn(Fe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Re=="number"?Re:Re.endsWith("%")?Fe*parseFloat(Re)/100:null}function pn(Fe,Re){return ue.useMemo(function(){if(Re&&Re>0){var ct=0,At=0;Fe.forEach(function(xr){var Tr=wn(Re,xr.width);Tr?ct+=Tr:At+=1});var Qt=Re-ct,en=At,Tn=Qt/At,er=0,Zn=Fe.map(function(xr){var Tr=(0,Ze.Z)({},xr),Nn=wn(Re,Tr.width);if(Nn)Tr.width=Nn;else{var oi=Math.floor(Tn);Tr.width=en===1?Qt:oi,Qt-=oi,en-=1}return er+=Tr.width,Tr});return[Zn,er]}return[Fe,Re]},[Fe,Re])}var ar=["children"],tr=["fixed"];function Yr(Fe){return io(Fe).filter(function(Re){return ue.isValidElement(Re)}).map(function(Re){var ct=Re.key,At=Re.props,Qt=At.children,en=(0,dn.Z)(At,ar),Tn=(0,Ze.Z)({key:ct},en);return Qt&&(Tn.children=Yr(Qt)),Tn})}function $i(Fe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Fe.filter(function(ct){return ct&&(0,at.Z)(ct)==="object"}).reduce(function(ct,At,Qt){var en=At.fixed,Tn=en===!0?"left":en,er="".concat(Re,"-").concat(Qt),Zn=At.children;return Zn&&Zn.length>0?[].concat((0,la.Z)(ct),(0,la.Z)($i(Zn,er).map(function(xr){return(0,Ze.Z)({fixed:Tn},xr)}))):[].concat((0,la.Z)(ct),[(0,Ze.Z)((0,Ze.Z)({key:er},At),{},{fixed:Tn})])},[])}function ia(Fe){for(var Re=!0,ct=0;ct<Fe.length;ct+=1){var At=Fe[ct];if(Re&&At.fixed!=="left")Re=!1;else if(!Re&&At.fixed==="left"){warning(!1,"Index ".concat(ct-1," of `columns` missing `fixed='left'` prop."));break}}for(var Qt=!0,en=Fe.length-1;en>=0;en-=1){var Tn=Fe[en];if(Qt&&Tn.fixed!=="right")Qt=!1;else if(!Qt&&Tn.fixed==="right"){warning(!1,"Index ".concat(en+1," of `columns` missing `fixed='right'` prop."));break}}}function sa(Fe){return Fe.map(function(Re){var ct=Re.fixed,At=(0,dn.Z)(Re,tr),Qt=ct;return ct==="left"?Qt="right":ct==="right"&&(Qt="left"),(0,Ze.Z)({fixed:Qt},At)})}function ka(Fe,Re){var ct=Fe.prefixCls,At=Fe.columns,Qt=Fe.children,en=Fe.expandable,Tn=Fe.expandedKeys,er=Fe.columnTitle,Zn=Fe.getRowKey,xr=Fe.onTriggerExpand,Tr=Fe.expandIcon,Nn=Fe.rowExpandable,oi=Fe.expandIconColumnIndex,hi=Fe.direction,mi=Fe.expandRowByClick,Hi=Fe.columnWidth,Ci=Fe.fixed,ea=Fe.scrollWidth,Gi=ue.useMemo(function(){return At||Yr(Qt)},[At,Qt]),ha=ue.useMemo(function(){if(en){var Fi,Bi=Gi.slice();if(!Bi.includes(ee)){var Ri=oi||0;Ri>=0&&Bi.splice(Ri,0,ee)}var pa=Bi.indexOf(ee);Bi=Bi.filter(function(wo,ul){return wo!==ee||ul===pa});var Ta=Gi[pa],Jo;(Ci==="left"||Ci)&&!oi?Jo="left":(Ci==="right"||Ci)&&oi===Gi.length?Jo="right":Jo=Ta?Ta.fixed:null;var Do=(Fi={},(0,Ae.Z)(Fi,Wo,{className:"".concat(ct,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ae.Z)(Fi,"title",er),(0,Ae.Z)(Fi,"fixed",Jo),(0,Ae.Z)(Fi,"className","".concat(ct,"-row-expand-icon-cell")),(0,Ae.Z)(Fi,"width",Hi),(0,Ae.Z)(Fi,"render",function(ul,fl,Nl){var Ml=Zn(fl,Nl),ds=Tn.has(Ml),fs=Nn?Nn(fl):!0,hl=Tr({prefixCls:ct,expanded:ds,expandable:fs,record:fl,onExpand:xr});return mi?ue.createElement("span",{onClick:function(jl){return jl.stopPropagation()}},hl):hl}),Fi);return Bi.map(function(wo){return wo===ee?Do:wo})}return Gi.filter(function(wo){return wo!==ee})},[en,Gi,Zn,Tn,Tr,hi]),qa=ue.useMemo(function(){var Fi=ha;return Re&&(Fi=Re(Fi)),Fi.length||(Fi=[{render:function(){return null}}]),Fi},[Re,ha,hi]),Za=ue.useMemo(function(){return hi==="rtl"?sa($i(qa)):$i(qa)},[qa,hi,ea]),Ja=pn(Za,ea),To=(0,ke.Z)(Ja,2),al=To[0],Da=To[1];return[qa,al,Da]}var ga=ka;function ho(Fe){var Re,ct=Fe.prefixCls,At=Fe.record,Qt=Fe.onExpand,en=Fe.expanded,Tn=Fe.expandable,er="".concat(ct,"-row-expand-icon");if(!Tn)return ue.createElement("span",{className:je()(er,"".concat(ct,"-row-spaced"))});var Zn=function(Tr){Qt(At,Tr),Tr.stopPropagation()};return ue.createElement("span",{className:je()(er,(Re={},(0,Ae.Z)(Re,"".concat(ct,"-row-expanded"),en),(0,Ae.Z)(Re,"".concat(ct,"-row-collapsed"),!en),Re)),onClick:Zn})}function ao(Fe,Re,ct){var At=[];function Qt(en){(en||[]).forEach(function(Tn,er){At.push(Re(Tn,er)),Qt(Tn[ct])})}return Qt(Fe),At}function mo(Fe,Re,ct){var At=_o(Fe),Qt=At.expandIcon,en=At.expandedRowKeys,Tn=At.defaultExpandedRowKeys,er=At.defaultExpandAllRows,Zn=At.expandedRowRender,xr=At.onExpand,Tr=At.onExpandedRowsChange,Nn=At.childrenColumnName,oi=Qt||ho,hi=Nn||"children",mi=ue.useMemo(function(){return Zn?"row":Fe.expandable&&Fe.internalHooks===de&&Fe.expandable.__PARENT_RENDER_ICON__||Re.some(function(Za){return Za&&(0,at.Z)(Za)==="object"&&Za[hi]})?"nest":!1},[!!Zn,Re]),Hi=ue.useState(function(){return Tn||(er?ao(Re,ct,hi):[])}),Ci=(0,ke.Z)(Hi,2),ea=Ci[0],Gi=Ci[1],ha=ue.useMemo(function(){return new Set(en||ea||[])},[en,ea]),qa=ue.useCallback(function(Za){var Ja=ct(Za,Re.indexOf(Za)),To,al=ha.has(Ja);al?(ha.delete(Ja),To=(0,la.Z)(ha)):To=[].concat((0,la.Z)(ha),[Ja]),Gi(To),xr&&xr(!al,Za),Tr&&Tr(To)},[ct,ha,Re,xr,Tr]);return[At,mi,ha,oi,hi,qa]}function Un(Fe,Re,ct,At){var Qt=Fe.map(function(en,Tn){return Nt(Tn,Tn,Fe,Re,ct,At==null?void 0:At[Tn])});return it(function(){return Qt},[Qt],function(en,Tn){return!_t(en,Tn)})}function ir(Fe){var Re=(0,ue.useRef)(Fe),ct=(0,ue.useState)({}),At=(0,ke.Z)(ct,2),Qt=At[1],en=(0,ue.useRef)(null),Tn=(0,ue.useRef)([]);function er(Zn){Tn.current.push(Zn);var xr=Promise.resolve();en.current=xr,xr.then(function(){if(en.current===xr){var Tr=Tn.current,Nn=Re.current;Tn.current=[],Tr.forEach(function(oi){Re.current=oi(Re.current)}),en.current=null,Nn!==Re.current&&Qt({})}})}return(0,ue.useEffect)(function(){return function(){en.current=null}},[]),[Re.current,er]}function Sr(Fe){var Re=(0,ue.useRef)(Fe||null),ct=(0,ue.useRef)();function At(){window.clearTimeout(ct.current)}function Qt(Tn){Re.current=Tn,At(),ct.current=window.setTimeout(function(){Re.current=null,ct.current=void 0},100)}function en(){return Re.current}return(0,ue.useEffect)(function(){return At},[]),[Qt,en]}function Ce(){var Fe=ue.useState(-1),Re=(0,ke.Z)(Fe,2),ct=Re[0],At=Re[1],Qt=ue.useState(-1),en=(0,ke.Z)(Qt,2),Tn=en[0],er=en[1],Zn=ue.useCallback(function(xr,Tr){At(xr),er(Tr)},[]);return[ct,Tn,Zn]}var Xe=Gn()?window:null;function nt(Fe,Re){var ct=(0,at.Z)(Fe)==="object"?Fe:{},At=ct.offsetHeader,Qt=At===void 0?0:At,en=ct.offsetSummary,Tn=en===void 0?0:en,er=ct.offsetScroll,Zn=er===void 0?0:er,xr=ct.getContainer,Tr=xr===void 0?function(){return Xe}:xr,Nn=Tr()||Xe;return ue.useMemo(function(){var oi=!!Fe;return{isSticky:oi,stickyClassName:oi?"".concat(Re,"-sticky-holder"):"",offsetHeader:Qt,offsetSummary:Tn,offsetScroll:Zn,container:Nn}},[Zn,Qt,Tn,Re,Nn])}function ut(Fe,Re,ct){var At=(0,ue.useMemo)(function(){for(var Qt=[],en=[],Tn=0,er=0,Zn=0;Zn<Re;Zn+=1)if(ct==="rtl"){en[Zn]=er,er+=Fe[Zn]||0;var xr=Re-Zn-1;Qt[xr]=Tn,Tn+=Fe[xr]||0}else{Qt[Zn]=Tn,Tn+=Fe[Zn]||0;var Tr=Re-Zn-1;en[Tr]=er,er+=Fe[Tr]||0}return{left:Qt,right:en}},[Fe,Re,ct]);return At}var ft=ut;function Ct(Fe){var Re=Fe.className,ct=Fe.children;return ue.createElement("div",{className:Re},ct)}var wt=Ct;function sn(Fe,Re,ct,At){var Qt=Ee.unstable_batchedUpdates?function(Tn){Ee.unstable_batchedUpdates(ct,Tn)}:ct;return Fe!=null&&Fe.addEventListener&&Fe.addEventListener(Re,Qt,At),{remove:function(){Fe!=null&&Fe.removeEventListener&&Fe.removeEventListener(Re,Qt,At)}}}var En=/margin|padding|width|height|max|min|offset/,ur={left:!0,top:!0},yr={cssFloat:1,styleFloat:1,float:1};function fr(Fe){return Fe.nodeType===1?Fe.ownerDocument.defaultView.getComputedStyle(Fe,null):{}}function Qn(Fe,Re,ct){if(Re=Re.toLowerCase(),ct==="auto"){if(Re==="height")return Fe.offsetHeight;if(Re==="width")return Fe.offsetWidth}return Re in ur||(ur[Re]=En.test(Re)),ur[Re]?parseFloat(ct)||0:ct}function Yn(Fe,Re){var ct=arguments.length,At=fr(Fe);return Re=yr[Re]?"cssFloat"in Fe.style?"cssFloat":"styleFloat":Re,ct===1?At:Qn(Fe,Re,At[Re]||Fe.style[Re])}function On(Fe,Re,ct){var At=arguments.length;if(Re=yr[Re]?"cssFloat"in Fe.style?"cssFloat":"styleFloat":Re,At===3)return typeof ct=="number"&&En.test(Re)&&(ct="".concat(ct,"px")),Fe.style[Re]=ct,ct;for(var Qt in Re)Re.hasOwnProperty(Qt)&&On(Fe,Qt,Re[Qt]);return fr(Fe)}function hr(Fe){return Fe===document.body?document.documentElement.clientWidth:Fe.offsetWidth}function zr(Fe){return Fe===document.body?window.innerHeight||document.documentElement.clientHeight:Fe.offsetHeight}function Er(){var Fe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Re=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Fe,height:Re}}function wr(){var Fe=document.documentElement.clientWidth,Re=window.innerHeight||document.documentElement.clientHeight;return{width:Fe,height:Re}}function Br(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Or(Fe){var Re=Fe.getBoundingClientRect(),ct=document.documentElement;return{left:Re.left+(window.pageXOffset||ct.scrollLeft)-(ct.clientLeft||document.body.clientLeft||0),top:Re.top+(window.pageYOffset||ct.scrollTop)-(ct.clientTop||document.body.clientTop||0)}}var Wr=function(Re,ct){var At,Qt,en=Re.scrollBodyRef,Tn=Re.onScroll,er=Re.offsetScroll,Zn=Re.container,xr=we(ye,"prefixCls"),Tr=((At=en.current)===null||At===void 0?void 0:At.scrollWidth)||0,Nn=((Qt=en.current)===null||Qt===void 0?void 0:Qt.clientWidth)||0,oi=Tr&&Nn*(Nn/Tr),hi=ue.useRef(),mi=ir({scrollLeft:0,isHiddenScrollBar:!1}),Hi=(0,ke.Z)(mi,2),Ci=Hi[0],ea=Hi[1],Gi=ue.useRef({delta:0,x:0}),ha=ue.useState(!1),qa=(0,ke.Z)(ha,2),Za=qa[0],Ja=qa[1],To=function(){Ja(!1)},al=function(pa){pa.persist(),Gi.current.delta=pa.pageX-Ci.scrollLeft,Gi.current.x=0,Ja(!0),pa.preventDefault()},Da=function(pa){var Ta,Jo=pa||((Ta=window)===null||Ta===void 0?void 0:Ta.event),Do=Jo.buttons;if(!Za||Do===0){Za&&Ja(!1);return}var wo=Gi.current.x+pa.pageX-Gi.current.x-Gi.current.delta;wo<=0&&(wo=0),wo+oi>=Nn&&(wo=Nn-oi),Tn({scrollLeft:wo/Nn*(Tr+2)}),Gi.current.x=pa.pageX},Fi=function(){if(en.current){var pa=Or(en.current).top,Ta=pa+en.current.offsetHeight,Jo=Zn===window?document.documentElement.scrollTop+window.innerHeight:Or(Zn).top+Zn.clientHeight;Ta-yt()<=Jo||pa>=Jo-er?ea(function(Do){return(0,Ze.Z)((0,Ze.Z)({},Do),{},{isHiddenScrollBar:!0})}):ea(function(Do){return(0,Ze.Z)((0,Ze.Z)({},Do),{},{isHiddenScrollBar:!1})})}},Bi=function(pa){ea(function(Ta){return(0,Ze.Z)((0,Ze.Z)({},Ta),{},{scrollLeft:pa/Tr*Nn||0})})};return ue.useImperativeHandle(ct,function(){return{setScrollLeft:Bi}}),ue.useEffect(function(){var Ri=sn(document.body,"mouseup",To,!1),pa=sn(document.body,"mousemove",Da,!1);return Fi(),function(){Ri.remove(),pa.remove()}},[oi,Za]),ue.useEffect(function(){var Ri=sn(Zn,"scroll",Fi,!1),pa=sn(window,"resize",Fi,!1);return function(){Ri.remove(),pa.remove()}},[Zn]),ue.useEffect(function(){Ci.isHiddenScrollBar||ea(function(Ri){var pa=en.current;return pa?(0,Ze.Z)((0,Ze.Z)({},Ri),{},{scrollLeft:pa.scrollLeft/pa.scrollWidth*pa.clientWidth}):Ri})},[Ci.isHiddenScrollBar]),Tr<=Nn||!oi||Ci.isHiddenScrollBar?null:ue.createElement("div",{style:{height:yt(),width:Nn,bottom:er},className:"".concat(xr,"-sticky-scroll")},ue.createElement("div",{onMouseDown:al,ref:hi,className:je()("".concat(xr,"-sticky-scroll-bar"),(0,Ae.Z)({},"".concat(xr,"-sticky-scroll-bar-active"),Za)),style:{width:"".concat(oi,"px"),transform:"translate3d(".concat(Ci.scrollLeft,"px, 0, 0)")}}))},pt=ue.forwardRef(Wr);function vt(Fe){return null}var mn=vt;function ln(Fe){return null}var $n=ln,mr="rc-table",Ft=[],It={};function Ht(){return"No Data"}function on(Fe){var Re,ct=(0,Ze.Z)({rowKey:"key",prefixCls:mr,emptyText:Ht},Fe),At=ct.prefixCls,Qt=ct.className,en=ct.rowClassName,Tn=ct.style,er=ct.data,Zn=ct.rowKey,xr=ct.scroll,Tr=ct.tableLayout,Nn=ct.direction,oi=ct.title,hi=ct.footer,mi=ct.summary,Hi=ct.caption,Ci=ct.id,ea=ct.showHeader,Gi=ct.components,ha=ct.emptyText,qa=ct.onRow,Za=ct.onHeaderRow,Ja=ct.internalHooks,To=ct.transformColumns,al=ct.internalRefs,Da=ct.tailor,Fi=ct.sticky,Bi=er||Ft,Ri=!!Bi.length,pa=Ja===de,Ta=ue.useCallback(function(Xl,ms){return Fn(Gi,Xl)||ms},[Gi]),Jo=ue.useMemo(function(){return typeof Zn=="function"?Zn:function(Xl){var ms=Xl&&Xl[Zn];return ms}},[Zn]),Do=Ta(["body"]),wo=Ce(),ul=(0,ke.Z)(wo,3),fl=ul[0],Nl=ul[1],Ml=ul[2],ds=mo(ct,Bi,Jo),fs=(0,ke.Z)(ds,6),hl=fs[0],_s=fs[1],jl=fs[2],es=fs[3],Yl=fs[4],ol=fs[5],Ia=xr==null?void 0:xr.x,Mo=ue.useState(0),Ho=(0,ke.Z)(Mo,2),Ga=Ho[0],Ul=Ho[1],Aa=ga((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},ct),hl),{},{expandable:!!hl.expandedRowRender,columnTitle:hl.columnTitle,expandedKeys:jl,getRowKey:Jo,onTriggerExpand:ol,expandIcon:es,expandIconColumnIndex:hl.expandIconColumnIndex,direction:Nn,scrollWidth:pa&&Da&&typeof Ia=="number"?Ia:null}),pa?To:null),cl=(0,ke.Z)(Aa,3),Zl=cl[0],_l=cl[1],fu=cl[2],zs=fu!=null?fu:Ia,Su=ue.useMemo(function(){return{columns:Zl,flattenColumns:_l}},[Zl,_l]),Pi=ue.useRef(),Tu=ue.useRef(),Ps=ue.useRef(),gu=ue.useRef(),xu=ue.useRef(),Wl=ue.useState(!1),Ql=(0,ke.Z)(Wl,2),hs=Ql[0],Sl=Ql[1],Us=ue.useState(!1),Fl=(0,ke.Z)(Us,2),Ks=Fl[0],qs=Fl[1],eu=ir(new Map),wu=(0,ke.Z)(eu,2),Is=wu[0],Au=wu[1],Fs=An(_l),tu=Fs.map(function(Xl){return Is.get(Xl)}),nu=ue.useMemo(function(){return tu},[tu.join("_")]),Ns=ft(nu,_l.length,Nn),Cs=xr&&Ie(xr.y),vs=xr&&Ie(zs)||!!hl.fixed,Wu=vs&&_l.some(function(Xl){var ms=Xl.fixed;return ms}),lc=ue.useRef(),xs=nt(Fi,At),hu=xs.isSticky,Yc=xs.offsetHeader,sc=xs.offsetSummary,Tl=xs.offsetScroll,Oo=xs.stickyClassName,Zs=xs.container,ts=ue.useMemo(function(){return mi==null?void 0:mi(Bi)},[mi,Bi]),ru=(Cs||hu)&&ue.isValidElement(ts)&&ts.type===Gt&&ts.props.fixed,qr,Mu,Xu;Cs&&(Mu={overflowY:"scroll",maxHeight:xr.y}),vs&&(qr={overflowX:"auto"},Cs||(Mu={overflowY:"hidden"}),Xu={width:zs===!0?"auto":zs,minWidth:"100%"});var Xc=ue.useCallback(function(Xl,ms){br(Pi.current)&&Au(function(Ou){if(Ou.get(Xl)!==ms){var nc=new Map(Ou);return nc.set(Xl,ms),nc}return Ou})},[]),cd=Sr(null),Ju=(0,ke.Z)(cd,2),Tc=Ju[0],Id=Ju[1];function iu(Xl,ms){ms&&(typeof ms=="function"?ms(Xl):ms.scrollLeft!==Xl&&(ms.scrollLeft=Xl,ms.scrollLeft!==Xl&&setTimeout(function(){ms.scrollLeft=Xl},0)))}var _u=Jt(function(Xl){var ms=Xl.currentTarget,Ou=Xl.scrollLeft,nc=Nn==="rtl",Jl=typeof Ou=="number"?Ou:ms.scrollLeft,pd=ms||It;if(!Id()||Id()===pd){var md;Tc(pd),iu(Jl,Tu.current),iu(Jl,Ps.current),iu(Jl,xu.current),iu(Jl,(md=lc.current)===null||md===void 0?void 0:md.setScrollLeft)}var cc=ms||Tu.current;if(cc){var vd=cc.scrollWidth,Cc=cc.clientWidth;if(vd===Cc){Sl(!1),qs(!1);return}nc?(Sl(-Jl<vd-Cc),qs(-Jl>0)):(Sl(Jl>0),qs(Jl<vd-Cc))}}),Rc=function(){vs&&Ps.current?_u({currentTarget:Ps.current}):(Sl(!1),qs(!1))},Jc=function(ms){var Ou=ms.width;Ou!==Ga&&(Rc(),Ul(Pi.current?Pi.current.offsetWidth:Ou))},Fd=ue.useRef(!1);ue.useEffect(function(){Fd.current&&Rc()},[vs,er,Zl.length]),ue.useEffect(function(){Fd.current=!0},[]);var Od=ue.useState(0),$c=(0,ke.Z)(Od,2),_c=$c[0],Ec=$c[1],Eu=ue.useState(!0),ec=(0,ke.Z)(Eu,2),dd=ec[0],fd=ec[1];ue.useEffect(function(){(!Da||!pa)&&(Ps.current instanceof Element?Ec(Cn(Ps.current).width):Ec(Cn(gu.current).width)),fd(fn("position","sticky"))},[]),ue.useEffect(function(){pa&&al&&(al.body.current=Ps.current)});var uc=ue.useCallback(function(Xl){return ue.createElement(ue.Fragment,null,ue.createElement(dl,Xl),ru==="top"&&ue.createElement(sr,Xl,ts))},[ru,ts]),Nd=ue.useCallback(function(Xl){return ue.createElement(sr,Xl,ts)},[ts]),zc=Ta(["table"],"table"),qc=ue.useMemo(function(){return Tr||(Wu?zs==="max-content"?"auto":"fixed":Cs||hu||_l.some(function(Xl){var ms=Xl.ellipsis;return ms})?"fixed":"auto")},[Cs,Wu,_l,Tr,hu]),hd,ed={colWidths:nu,columCount:_l.length,stickyOffsets:Ns,onHeaderRow:Za,fixHeader:Cs,scroll:xr},pl=ue.useMemo(function(){return Ri?null:typeof ha=="function"?ha():ha},[Ri,ha]),Ld=ue.createElement(to,{data:Bi,measureColumnWidth:Cs||vs||hu}),td=ue.createElement(Po,{colWidths:_l.map(function(Xl){var ms=Xl.width;return ms}),columns:_l}),ju=Hi!=null?ue.createElement("caption",{className:"".concat(At,"-caption")},Hi):void 0,Gu=Gr(ct,{data:!0}),tc=Gr(ct,{aria:!0});if(Cs||hu){var Kc;typeof Do=="function"?(Kc=Do(Bi,{scrollbarSize:_c,ref:Ps,onScroll:_u}),ed.colWidths=_l.map(function(Xl,ms){var Ou=Xl.width,nc=ms===_l.length-1?Ou-_c:Ou;return typeof nc=="number"&&!Number.isNaN(nc)?nc:0})):Kc=ue.createElement("div",{style:(0,Ze.Z)((0,Ze.Z)({},qr),Mu),onScroll:_u,ref:Ps,className:je()("".concat(At,"-body"))},ue.createElement(zc,(0,Ue.Z)({style:(0,Ze.Z)((0,Ze.Z)({},Xu),{},{tableLayout:qc})},tc),ju,td,Ld,!ru&&ts&&ue.createElement(sr,{stickyOffsets:Ns,flattenColumns:_l,columns:Zl},ts)));var nd=(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({noData:!Bi.length,maxContentScroll:vs&&zs==="max-content"},ed),Su),{},{direction:Nn,stickyClassName:Oo,onScroll:_u});hd=ue.createElement(ue.Fragment,null,ea!==!1&&ue.createElement(vl,(0,Ue.Z)({},nd,{stickyTopOffset:Yc,className:"".concat(At,"-header"),ref:Tu}),uc),Kc,ru&&ru!=="top"&&ue.createElement(vl,(0,Ue.Z)({},nd,{stickyBottomOffset:sc,className:"".concat(At,"-summary"),ref:xu}),Nd),hu&&ue.createElement(pt,{ref:lc,offsetScroll:Tl,scrollBodyRef:Ps,onScroll:_u,container:Zs}))}else hd=ue.createElement("div",{style:(0,Ze.Z)((0,Ze.Z)({},qr),Mu),className:je()("".concat(At,"-content")),onScroll:_u,ref:Ps},ue.createElement(zc,(0,Ue.Z)({style:(0,Ze.Z)((0,Ze.Z)({},Xu),{},{tableLayout:qc})},tc),ju,td,ea!==!1&&ue.createElement(dl,(0,Ue.Z)({},ed,Su)),Ld,ts&&ue.createElement(sr,{stickyOffsets:Ns,flattenColumns:_l,columns:Zl},ts)));var Hc=ue.createElement("div",(0,Ue.Z)({className:je()(At,Qt,(Re={},(0,Ae.Z)(Re,"".concat(At,"-rtl"),Nn==="rtl"),(0,Ae.Z)(Re,"".concat(At,"-ping-left"),hs),(0,Ae.Z)(Re,"".concat(At,"-ping-right"),Ks),(0,Ae.Z)(Re,"".concat(At,"-layout-fixed"),Tr==="fixed"),(0,Ae.Z)(Re,"".concat(At,"-fixed-header"),Cs),(0,Ae.Z)(Re,"".concat(At,"-fixed-column"),Wu),(0,Ae.Z)(Re,"".concat(At,"-scroll-horizontal"),vs),(0,Ae.Z)(Re,"".concat(At,"-has-fix-left"),_l[0]&&_l[0].fixed),(0,Ae.Z)(Re,"".concat(At,"-has-fix-right"),_l[_l.length-1]&&_l[_l.length-1].fixed==="right"),Re)),style:Tn,id:Ci,ref:Pi},Gu),oi&&ue.createElement(wt,{className:"".concat(At,"-title")},oi(Bi)),ue.createElement("div",{ref:gu,className:"".concat(At,"-container")},hd),hi&&ue.createElement(wt,{className:"".concat(At,"-footer")},hi(Bi)));vs&&(Hc=ue.createElement(Pr.Z,{onResize:Jc},Hc));var vc=Un(_l,Ns,Nn,Zl),Td=ue.useMemo(function(){return{scrollX:zs,prefixCls:At,getComponent:Ta,scrollbarSize:_c,direction:Nn,fixedInfoList:vc,isSticky:hu,supportSticky:dd,componentWidth:Ga,fixHeader:Cs,fixColumn:Wu,horizonScroll:vs,tableLayout:qc,rowClassName:en,expandedRowClassName:hl.expandedRowClassName,expandIcon:es,expandableType:_s,expandRowByClick:hl.expandRowByClick,expandedRowRender:hl.expandedRowRender,onTriggerExpand:ol,expandIconColumnIndex:hl.expandIconColumnIndex,indentSize:hl.indentSize,allColumnsFixedLeft:_l.every(function(Xl){return Xl.fixed==="left"}),emptyNode:pl,columns:Zl,flattenColumns:_l,onColumnResize:Xc,hoverStartRow:fl,hoverEndRow:Nl,onHover:Ml,rowExpandable:hl.rowExpandable,onRow:qa,getRowKey:Jo,expandedKeys:jl,childrenColumnName:Yl}},[zs,At,Ta,_c,Nn,vc,hu,dd,Ga,Cs,Wu,vs,qc,en,hl.expandedRowClassName,es,_s,hl.expandRowByClick,hl.expandedRowRender,ol,hl.expandIconColumnIndex,hl.indentSize,pl,Zl,_l,Xc,fl,Nl,Ml,hl.rowExpandable,qa,Jo,jl,Yl]);return ue.createElement(ye.Provider,{value:Td},Hc)}function Vn(Fe){return lt(on,Fe)}var dr=Vn();dr.EXPAND_COLUMN=ee,dr.INTERNAL_HOOKS=de,dr.Column=mn,dr.ColumnGroup=$n,dr.Summary=Dt;var Kn=dr,rr=te(73299),Fr=fe(null),ii=fe(null);function Zr(Fe,Re,ct){var At=Re||1;return ct[Fe+At]-(ct[Fe]||0)}function Ar(Fe){var Re=Fe.rowInfo,ct=Fe.column,At=Fe.colIndex,Qt=Fe.indent,en=Fe.index,Tn=Fe.renderIndex,er=Fe.record,Zn=Fe.style,xr=Fe.className,Tr=Fe.inverse,Nn=Fe.getHeight,oi=ct.render,hi=ct.dataIndex,mi=ct.className,Hi=ct.width,Ci=we(ii,["columnsOffset"]),ea=Ci.columnsOffset,Gi=Oa(Re,ct,At,Qt,en),ha=Gi.key,qa=Gi.fixedInfo,Za=Gi.appendCellNode,Ja=Gi.additionalCellProps,To=Ja.style,al=Ja.colSpan,Da=al===void 0?1:al,Fi=Ja.rowSpan,Bi=Fi===void 0?1:Fi,Ri=At-1,pa=Zr(Ri,Da,ea),Ta=Da>1?Hi-pa:0,Jo=(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},To),Zn),{},{flex:"0 0 ".concat(pa,"px"),width:"".concat(pa,"px"),marginRight:Ta,pointerEvents:"auto"}),Do=ue.useMemo(function(){return Tr?Bi<=1:Da===0||Bi===0||Bi>1},[Bi,Da,Tr]);Do?Jo.visibility="hidden":Tr&&(Jo.height=Nn==null?void 0:Nn(Bi));var wo=Do?function(){return null}:oi,ul={};return(Bi===0||Da===0)&&(ul.rowSpan=1,ul.colSpan=1),ue.createElement(dt,(0,Ue.Z)({className:je()(mi,xr),ellipsis:ct.ellipsis,align:ct.align,scope:ct.rowScope,component:"div",prefixCls:Re.prefixCls,key:ha,record:er,index:en,renderIndex:Tn,dataIndex:hi,render:wo,shouldCellUpdate:ct.shouldCellUpdate},qa,{appendNode:Za,additionalProps:(0,Ze.Z)((0,Ze.Z)({},Ja),{},{style:Jo},ul)}))}var Vr=Ar,li=["data","index","className","rowKey","style","extra","getHeight"],Mi=ue.forwardRef(function(Fe,Re){var ct=Fe.data,At=Fe.index,Qt=Fe.className,en=Fe.rowKey,Tn=Fe.style,er=Fe.extra,Zn=Fe.getHeight,xr=(0,dn.Z)(Fe,li),Tr=ct.record,Nn=ct.indent,oi=ct.index,hi=we(ye,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mi=hi.scrollX,Hi=hi.flattenColumns,Ci=hi.prefixCls,ea=hi.fixColumn,Gi=hi.componentWidth,ha=Jr(Tr,en,At,Nn),qa=ha.rowSupportExpand,Za=ha.expanded,Ja=ha.rowProps,To=ha.expandedRowRender,al=ha.expandedRowClassName,Da;if(qa&&Za){var Fi=To(Tr,At,Nn+1,Za),Bi=al==null?void 0:al(Tr,At,Nn),Ri={};ea&&(Ri={style:(0,Ae.Z)({},"--virtual-width","".concat(Gi,"px"))});var pa="".concat(Ci,"-expanded-row-cell");Da=ue.createElement("div",{className:je()("".concat(Ci,"-expanded-row"),"".concat(Ci,"-expanded-row-level-").concat(Nn+1),Bi)},ue.createElement(dt,{component:"div",prefixCls:Ci,className:je()(pa,(0,Ae.Z)({},"".concat(pa,"-fixed"),ea)),additionalProps:Ri},Fi))}var Ta=(0,Ze.Z)((0,Ze.Z)({},Tn),{},{width:mi});er&&(Ta.position="absolute",Ta.pointerEvents="none");var Jo=ue.createElement("div",(0,Ue.Z)({},Ja,xr,{ref:qa?null:Re,className:je()(Qt,"".concat(Ci,"-row"),Ja==null?void 0:Ja.className,(0,Ae.Z)({},"".concat(Ci,"-row-extra"),er)),style:(0,Ze.Z)((0,Ze.Z)({},Ta),Ja==null?void 0:Ja.style)}),Hi.map(function(Do,wo){return ue.createElement(Vr,{key:wo,rowInfo:ha,column:Do,colIndex:wo,indent:Nn,index:At,renderIndex:oi,record:Tr,inverse:er,getHeight:Zn})}));return qa?ue.createElement("div",{ref:Re},Jo,Da):Jo}),si=He(Mi),Kr=si,Wi=ue.forwardRef(function(Fe,Re){var ct=Fe.data,At=Fe.onScroll,Qt=we(ye,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),en=Qt.flattenColumns,Tn=Qt.onColumnResize,er=Qt.getRowKey,Zn=Qt.expandedKeys,xr=Qt.prefixCls,Tr=Qt.childrenColumnName,Nn=Qt.emptyNode,oi=Qt.scrollX,hi=we(Fr),mi=hi.scrollY,Hi=hi.listItemHeight,Ci=ue.useRef(),ea=ci(ct,Tr,Zn,er),Gi=ue.useMemo(function(){var Da=0;return en.map(function(Fi){var Bi=Fi.width,Ri=Fi.key;return Da+=Bi,[Ri,Bi,Da]})},[en]),ha=ue.useMemo(function(){return Gi.map(function(Da){return Da[2]})},[Gi]);ue.useEffect(function(){Gi.forEach(function(Da){var Fi=(0,ke.Z)(Da,2),Bi=Fi[0],Ri=Fi[1];Tn(Bi,Ri)})},[Gi]),ue.useImperativeHandle(Re,function(){var Da={};return Object.defineProperty(Da,"scrollLeft",{get:function(){var Bi;return((Bi=Ci.current)===null||Bi===void 0?void 0:Bi.getScrollInfo().x)||0},set:function(Bi){var Ri;(Ri=Ci.current)===null||Ri===void 0||Ri.scrollTo({left:Bi})}}),Da});var qa=function(Fi,Bi){var Ri,pa=(Ri=ea[Bi])===null||Ri===void 0?void 0:Ri.record,Ta=Fi.onCell;if(Ta){var Jo,Do=Ta(pa,Bi);return(Jo=Do==null?void 0:Do.rowSpan)!==null&&Jo!==void 0?Jo:1}return 1},Za=function(Fi){var Bi=Fi.start,Ri=Fi.end,pa=Fi.getSize,Ta=Fi.offsetY;if(Ri<0)return null;for(var Jo=en.filter(function(Ia){return qa(Ia,Bi)===0}),Do=Bi,wo=function(Mo){if(Jo=Jo.filter(function(Ho){return qa(Ho,Mo)===0}),!Jo.length)return Do=Mo,"break"},ul=Bi;ul>=0;ul-=1){var fl=wo(ul);if(fl==="break")break}for(var Nl=en.filter(function(Ia){return qa(Ia,Ri)!==1}),Ml=Ri,ds=function(Mo){if(Nl=Nl.filter(function(Ho){return qa(Ho,Mo)!==1}),!Nl.length)return Ml=Math.max(Mo-1,Ri),"break"},fs=Ri;fs<ea.length;fs+=1){var hl=ds(fs);if(hl==="break")break}for(var _s=[],jl=function(Mo){var Ho=ea[Mo];if(!Ho)return"continue";en.some(function(Ga){return qa(Ga,Mo)>1})&&_s.push(Mo)},es=Do;es<=Ml;es+=1)var Yl=jl(es);var ol=_s.map(function(Ia){var Mo=ea[Ia],Ho=er(Mo.record,Ia),Ga=function(cl){var Zl=Ia+cl-1,_l=er(ea[Zl].record,Zl),fu=pa(Ho,_l);return fu.bottom-fu.top},Ul=pa(Ho);return ue.createElement(Kr,{key:Ia,data:Mo,rowKey:Ho,index:Ia,style:{top:-Ta+Ul.top},extra:!0,getHeight:Ga})});return ol},Ja=ue.useMemo(function(){return{columnsOffset:ha}},[ha]),To="".concat(xr,"-tbody"),al;return ea.length?al=ue.createElement(rr.Z,{fullHeight:!1,ref:Ci,className:je()(To,"".concat(To,"-virtual")),height:mi,itemHeight:Hi||24,data:ea,itemKey:function(Fi){return er(Fi.record)},scrollWidth:oi,onVirtualScroll:function(Fi){var Bi=Fi.x;At({scrollLeft:Bi})},extraRender:Za},function(Da,Fi,Bi){var Ri=er(Da.record,Fi);return ue.createElement(Kr,(0,Ue.Z)({data:Da,rowKey:Ri,index:Fi},Bi))}):al=ue.createElement("div",{className:je()("".concat(xr,"-placeholder"))},ue.createElement(dt,{component:"div",prefixCls:xr},Nn)),ue.createElement(ii.Provider,{value:Ja},al)}),Zi=He(Wi),Na=Zi,Ha=function(Re,ct){var At=ct.ref,Qt=ct.onScroll;return ue.createElement(Na,{ref:At,data:Re,onScroll:Qt})},La=100;function Ea(Fe){var Re=Fe.columns,ct=Fe.scroll,At=Fe.prefixCls,Qt=At===void 0?mr:At,en=Fe.className,Tn=Fe.listItemHeight,er=ct||{},Zn=er.x,xr=er.y;typeof Zn!="number"&&(Zn=((Re||[]).length+1)*La),typeof xr!="number"&&(xr=500);var Tr=ue.useMemo(function(){return{scrollY:xr,listItemHeight:Tn}},[xr,Tn]);return ue.createElement(Fr.Provider,{value:Tr},ue.createElement(Kn,(0,Ue.Z)({},Fe,{className:je()(en,"".concat(Qt,"-virtual")),scroll:(0,Ze.Z)((0,Ze.Z)({},ct),{},{x:Zn}),components:{body:Ha},columns:Re,internalHooks:de,tailor:!0})))}function Ra(Fe){return lt(Ea,Fe)}var va=Ra(),oo=null;function Ca(Fe){return null}var Qi=Ca;function ja(Fe){return null}var bo=ja,ca=te(10366),Vo=te(58375),Go=te(53124),tl=te(88258),zo=te(98675),no=te(25378),kl=te(24457),Co=te(28452),_a=te(57953),Ao=te(29691);function ml(Fe){return function(ct){let{prefixCls:At,onExpand:Qt,record:en,expanded:Tn,expandable:er}=ct;const Zn=`${At}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:xr=>{Qt(en,xr),xr.stopPropagation()},className:je()(Zn,{[`${Zn}-spaced`]:!er,[`${Zn}-expanded`]:er&&Tn,[`${Zn}-collapsed`]:er&&!Tn}),"aria-label":Tn?Fe.collapse:Fe.expand,"aria-expanded":Tn})}}var Ko=ml;function $o(Fe,Re){return"key"in Fe&&Fe.key!==void 0&&Fe.key!==null?Fe.key:Fe.dataIndex?Array.isArray(Fe.dataIndex)?Fe.dataIndex.join("."):Fe.dataIndex:Re}function Ya(Fe,Re){return Re?`${Re}-${Fe}`:`${Fe}`}function yl(Fe,Re){return typeof Fe=="function"?Fe(Re):Fe}function Il(Fe,Re){const ct=yl(Fe,Re);return Object.prototype.toString.call(ct)==="[object Object]"?"":ct}var xl={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"},il=xl,El=te(84089),Al=function(Re,ct){return ue.createElement(El.Z,(0,Ue.Z)({},Re,{ref:ct,icon:il}))},Bl=ue.forwardRef(Al),Ol=te(7699),Lt=te(57838);function rn(Fe){const Re=ue.useRef(Fe),ct=(0,Lt.Z)();return[()=>Re.current,At=>{Re.current=At,ct()}]}var gn=te(71577),Xn=te(84567),ta=te(85418),ui=te(32983),wi=te(68508),bi=te(76529),Oi=te(78045),Pa=te(79870),fa=te(72395),ro=te(69677);function Qo(Fe){let{value:Re,onChange:ct,filterSearch:At,tablePrefixCls:Qt,locale:en}=Fe;return At?ue.createElement("div",{className:`${Qt}-filter-dropdown-search`},ue.createElement(ro.default,{prefix:ue.createElement(fa.Z,null),placeholder:en.filterSearchPlaceholder,onChange:ct,value:Re,htmlSize:1,className:`${Qt}-filter-dropdown-search-input`})):null}var xo=Qo,xi=te(92389);const Sa=Fe=>{const{keyCode:Re}=Fe;Re===xi.Z.ENTER&&Fe.stopPropagation()};var Ai=ue.forwardRef((Fe,Re)=>ue.createElement("div",{className:Fe.className,onClick:ct=>ct.stopPropagation(),onKeyDown:Sa,ref:Re},Fe.children));function ki(Fe){let Re=[];return(Fe||[]).forEach(ct=>{let{value:At,children:Qt}=ct;Re.push(At),Qt&&(Re=[].concat((0,la.Z)(Re),(0,la.Z)(ki(Qt))))}),Re}function ya(Fe){return Fe.some(Re=>{let{children:ct}=Re;return ct})}function Ye(Fe,Re){return typeof Re=="string"||typeof Re=="number"?Re==null?void 0:Re.toString().toLowerCase().includes(Fe.trim().toLowerCase()):!1}function tt(Fe){let{filters:Re,prefixCls:ct,filteredKeys:At,filterMultiple:Qt,searchValue:en,filterSearch:Tn}=Fe;return Re.map((er,Zn)=>{const xr=String(er.value);if(er.children)return{key:xr||Zn,label:er.text,popupClassName:`${ct}-dropdown-submenu`,children:tt({filters:er.children,prefixCls:ct,filteredKeys:At,filterMultiple:Qt,searchValue:en,filterSearch:Tn})};const Tr=Qt?Xn.default:Oi.ZP,Nn={key:er.value!==void 0?xr:Zn,label:ue.createElement(ue.Fragment,null,ue.createElement(Tr,{checked:At.includes(xr)}),ue.createElement("span",null,er.text))};return en.trim()?typeof Tn=="function"?Tn(en,er)?Nn:null:Ye(en,er.text)?Nn:null:Nn})}function zt(Fe){var Re,ct;const{tablePrefixCls:At,prefixCls:Qt,column:en,dropdownPrefixCls:Tn,columnKey:er,filterMultiple:Zn,filterMode:xr="menu",filterSearch:Tr=!1,filterState:Nn,triggerFilter:oi,locale:hi,children:mi,getPopupContainer:Hi}=Fe,{filterDropdownOpen:Ci,onFilterDropdownOpenChange:ea,filterResetToDefaultFilteredValue:Gi,defaultFilteredValue:ha,filterDropdownVisible:qa,onFilterDropdownVisibleChange:Za}=en,[Ja,To]=ue.useState(!1),al=!!(Nn&&(!((Re=Nn.filteredKeys)===null||Re===void 0)&&Re.length||Nn.forceFiltered)),Da=Aa=>{To(Aa),ea==null||ea(Aa),Za==null||Za(Aa)},Fi=(ct=Ci!=null?Ci:qa)!==null&&ct!==void 0?ct:Ja,Bi=Nn==null?void 0:Nn.filteredKeys,[Ri,pa]=rn(Bi||[]),Ta=Aa=>{let{selectedKeys:cl}=Aa;pa(cl)},Jo=(Aa,cl)=>{let{node:Zl,checked:_l}=cl;Ta(Zn?{selectedKeys:Aa}:{selectedKeys:_l&&Zl.key?[Zl.key]:[]})};ue.useEffect(()=>{Ja&&Ta({selectedKeys:Bi||[]})},[Bi]);const[Do,wo]=ue.useState([]),ul=Aa=>{wo(Aa)},[fl,Nl]=ue.useState(""),Ml=Aa=>{const{value:cl}=Aa.target;Nl(cl)};ue.useEffect(()=>{Ja||Nl("")},[Ja]);const ds=Aa=>{const cl=Aa&&Aa.length?Aa:null;if(cl===null&&(!Nn||!Nn.filteredKeys)||(0,Ol.Z)(cl,Nn==null?void 0:Nn.filteredKeys,!0))return null;oi({column:en,key:er,filteredKeys:cl})},fs=()=>{Da(!1),ds(Ri())},hl=function(){let{confirm:Aa,closeDropdown:cl}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Aa&&ds([]),cl&&Da(!1),Nl(""),pa(Gi?(ha||[]).map(Zl=>String(Zl)):[])},_s=function(){let{closeDropdown:Aa}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Aa&&Da(!1),ds(Ri())},jl=Aa=>{Aa&&Bi!==void 0&&pa(Bi||[]),Da(Aa),!Aa&&!en.filterDropdown&&fs()},es=je()({[`${Tn}-menu-without-submenu`]:!ya(en.filters||[])}),Yl=Aa=>{if(Aa.target.checked){const cl=ki(en==null?void 0:en.filters).map(Zl=>String(Zl));pa(cl)}else pa([])},ol=Aa=>{let{filters:cl}=Aa;return(cl||[]).map((Zl,_l)=>{const fu=String(Zl.value),zs={title:Zl.text,key:Zl.value!==void 0?fu:_l};return Zl.children&&(zs.children=ol({filters:Zl.children})),zs})},Ia=Aa=>{var cl;return Object.assign(Object.assign({},Aa),{text:Aa.title,value:Aa.key,children:((cl=Aa.children)===null||cl===void 0?void 0:cl.map(Zl=>Ia(Zl)))||[]})};let Mo;if(typeof en.filterDropdown=="function")Mo=en.filterDropdown({prefixCls:`${Tn}-custom`,setSelectedKeys:Aa=>Ta({selectedKeys:Aa}),selectedKeys:Ri(),confirm:_s,clearFilters:hl,filters:en.filters,visible:Fi,close:()=>{Da(!1)}});else if(en.filterDropdown)Mo=en.filterDropdown;else{const Aa=Ri()||[],cl=()=>(en.filters||[]).length===0?ue.createElement(ui.Z,{image:ui.Z.PRESENTED_IMAGE_SIMPLE,description:hi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xr==="tree"?ue.createElement(ue.Fragment,null,ue.createElement(xo,{filterSearch:Tr,value:fl,onChange:Ml,tablePrefixCls:At,locale:hi}),ue.createElement("div",{className:`${At}-filter-dropdown-tree`},Zn?ue.createElement(Xn.default,{checked:Aa.length===ki(en.filters).length,indeterminate:Aa.length>0&&Aa.length<ki(en.filters).length,className:`${At}-filter-dropdown-checkall`,onChange:Yl},hi.filterCheckall):null,ue.createElement(Pa.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Zn,checkStrictly:!Zn,className:`${Tn}-menu`,onCheck:Jo,checkedKeys:Aa,selectedKeys:Aa,showIcon:!1,treeData:ol({filters:en.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:fl.trim()?_l=>typeof Tr=="function"?Tr(fl,Ia(_l)):Ye(fl,_l.title):void 0}))):ue.createElement(ue.Fragment,null,ue.createElement(xo,{filterSearch:Tr,value:fl,onChange:Ml,tablePrefixCls:At,locale:hi}),ue.createElement(wi.default,{selectable:!0,multiple:Zn,prefixCls:`${Tn}-menu`,className:es,onSelect:Ta,onDeselect:Ta,selectedKeys:Aa,getPopupContainer:Hi,openKeys:Do,onOpenChange:ul,items:tt({filters:en.filters||[],filterSearch:Tr,prefixCls:Qt,filteredKeys:Ri(),filterMultiple:Zn,searchValue:fl})})),Zl=()=>Gi?(0,Ol.Z)((ha||[]).map(_l=>String(_l)),Aa,!0):Aa.length===0;Mo=ue.createElement(ue.Fragment,null,cl(),ue.createElement("div",{className:`${Qt}-dropdown-btns`},ue.createElement(gn.ZP,{type:"link",size:"small",disabled:Zl(),onClick:()=>hl()},hi.filterReset),ue.createElement(gn.ZP,{type:"primary",size:"small",onClick:fs},hi.filterConfirm)))}en.filterDropdown&&(Mo=ue.createElement(bi.J,{selectable:void 0},Mo));const Ho=()=>ue.createElement(Ai,{className:`${Qt}-dropdown`},Mo);let Ga;typeof en.filterIcon=="function"?Ga=en.filterIcon(al):en.filterIcon?Ga=en.filterIcon:Ga=ue.createElement(Bl,null);const{direction:Ul}=ue.useContext(Go.E_);return ue.createElement("div",{className:`${Qt}-column`},ue.createElement("span",{className:`${At}-column-title`},mi),ue.createElement(ta.Z,{dropdownRender:Ho,trigger:["click"],open:Fi,onOpenChange:jl,getPopupContainer:Hi,placement:Ul==="rtl"?"bottomLeft":"bottomRight"},ue.createElement("span",{role:"button",tabIndex:-1,className:je()(`${Qt}-trigger`,{active:al}),onClick:Aa=>{Aa.stopPropagation()}},Ga)))}var Ot=zt;function hn(Fe,Re,ct){let At=[];return(Fe||[]).forEach((Qt,en)=>{var Tn;const er=Ya(en,ct);if(Qt.filters||"filterDropdown"in Qt||"onFilter"in Qt)if("filteredValue"in Qt){let Zn=Qt.filteredValue;"filterDropdown"in Qt||(Zn=(Tn=Zn==null?void 0:Zn.map(String))!==null&&Tn!==void 0?Tn:Zn),At.push({column:Qt,key:$o(Qt,er),filteredKeys:Zn,forceFiltered:Qt.filtered})}else At.push({column:Qt,key:$o(Qt,er),filteredKeys:Re&&Qt.defaultFilteredValue?Qt.defaultFilteredValue:void 0,forceFiltered:Qt.filtered});"children"in Qt&&(At=[].concat((0,la.Z)(At),(0,la.Z)(hn(Qt.children,Re,er))))}),At}function Pn(Fe,Re,ct,At,Qt,en,Tn,er){return ct.map((Zn,xr)=>{const Tr=Ya(xr,er),{filterMultiple:Nn=!0,filterMode:oi,filterSearch:hi}=Zn;let mi=Zn;if(mi.filters||mi.filterDropdown){const Hi=$o(mi,Tr),Ci=At.find(ea=>{let{key:Gi}=ea;return Hi===Gi});mi=Object.assign(Object.assign({},mi),{title:ea=>ue.createElement(Ot,{tablePrefixCls:Fe,prefixCls:`${Fe}-filter`,dropdownPrefixCls:Re,column:mi,columnKey:Hi,filterState:Ci,filterMultiple:Nn,filterMode:oi,filterSearch:hi,triggerFilter:en,locale:Qt,getPopupContainer:Tn},yl(Zn.title,ea))})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:Pn(Fe,Re,mi.children,At,Qt,en,Tn,Tr)})),mi})}function xn(Fe){const Re={};return Fe.forEach(ct=>{let{key:At,filteredKeys:Qt,column:en}=ct;const{filters:Tn,filterDropdown:er}=en;if(er)Re[At]=Qt||null;else if(Array.isArray(Qt)){const Zn=ki(Tn);Re[At]=Zn.filter(xr=>Qt.includes(String(xr)))}else Re[At]=null}),Re}function lr(Fe,Re){return Re.reduce((ct,At)=>{const{column:{onFilter:Qt,filters:en},filteredKeys:Tn}=At;return Qt&&Tn&&Tn.length?ct.filter(er=>Tn.some(Zn=>{const xr=ki(en),Tr=xr.findIndex(oi=>String(oi)===String(Zn)),Nn=Tr!==-1?xr[Tr]:Zn;return Qt(Nn,er)})):ct},Fe)}const pr=Fe=>Fe.flatMap(Re=>"children"in Re?[Re].concat((0,la.Z)(pr(Re.children||[]))):[Re]);function qn(Fe){let{prefixCls:Re,dropdownPrefixCls:ct,mergedColumns:At,onFilterChange:Qt,getPopupContainer:en,locale:Tn}=Fe;const er=ue.useMemo(()=>pr(At||[]),[At]),[Zn,xr]=ue.useState(()=>hn(er,!0)),Tr=ue.useMemo(()=>{const mi=hn(er,!1);if(mi.length===0)return mi;let Hi=!0,Ci=!0;if(mi.forEach(ea=>{let{filteredKeys:Gi}=ea;Gi!==void 0?Hi=!1:Ci=!1}),Hi){const ea=(er||[]).map((Gi,ha)=>$o(Gi,Ya(ha)));return Zn.filter(Gi=>{let{key:ha}=Gi;return ea.includes(ha)}).map(Gi=>{const ha=er[ea.findIndex(qa=>qa===Gi.key)];return Object.assign(Object.assign({},Gi),{column:Object.assign(Object.assign({},Gi.column),ha),forceFiltered:ha.filtered})})}return mi},[er,Zn]),Nn=ue.useMemo(()=>xn(Tr),[Tr]),oi=mi=>{const Hi=Tr.filter(Ci=>{let{key:ea}=Ci;return ea!==mi.key});Hi.push(mi),xr(Hi),Qt(xn(Hi),Hi)};return[mi=>Pn(Re,ct,mi,Tr,Tn,oi,en),Tr,Nn]}var pi=qn;function ei(Fe,Re,ct){const At=ue.useRef({});function Qt(en){if(!At.current||At.current.data!==Fe||At.current.childrenColumnName!==Re||At.current.getRowKey!==ct){let er=function(Zn){Zn.forEach((xr,Tr)=>{const Nn=ct(xr,Tr);Tn.set(Nn,xr),xr&&typeof xr=="object"&&Re in xr&&er(xr[Re]||[])})};const Tn=new Map;er(Fe),At.current={data:Fe,childrenColumnName:Re,kvMap:Tn,getRowKey:ct}}return At.current.kvMap.get(en)}return[Qt]}var ni=te(38780),$r=function(Fe,Re){var ct={};for(var At in Fe)Object.prototype.hasOwnProperty.call(Fe,At)&&Re.indexOf(At)<0&&(ct[At]=Fe[At]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,At=Object.getOwnPropertySymbols(Fe);Qt<At.length;Qt++)Re.indexOf(At[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,At[Qt])&&(ct[At[Qt]]=Fe[At[Qt]]);return ct};const fi=10;function ri(Fe,Re){const ct={current:Fe.current,pageSize:Fe.pageSize};return Object.keys(Re&&typeof Re=="object"?Re:{}).forEach(Qt=>{const en=Fe[Qt];typeof en!="function"&&(ct[Qt]=en)}),ct}function Ki(Fe,Re,ct){const At=ct&&typeof ct=="object"?ct:{},{total:Qt=0}=At,en=$r(At,["total"]),[Tn,er]=(0,ue.useState)(()=>({current:"defaultCurrent"in en?en.defaultCurrent:1,pageSize:"defaultPageSize"in en?en.defaultPageSize:fi})),Zn=(0,ni.Z)(Tn,en,{total:Qt>0?Qt:Fe}),xr=Math.ceil((Qt||Fe)/Zn.pageSize);Zn.current>xr&&(Zn.current=xr||1);const Tr=(oi,hi)=>{er({current:oi!=null?oi:1,pageSize:hi||Zn.pageSize})},Nn=(oi,hi)=>{var mi;ct&&((mi=ct.onChange)===null||mi===void 0||mi.call(ct,oi,hi)),Tr(oi,hi),Re(oi,hi||(Zn==null?void 0:Zn.pageSize))};return ct===!1?[{},()=>{}]:[Object.assign(Object.assign({},Zn),{onChange:Nn}),Tr]}var Ma=Ki,Ua=te(42922),Xa=te(29873),za=te(97153),lo=te(83898),wa=te(5663);const Ka={},so="SELECT_ALL",Vi="SELECT_INVERT",Xi="SELECT_NONE",da=[],So=(Fe,Re)=>{let ct=[];return(Re||[]).forEach(At=>{ct.push(At),At&&typeof At=="object"&&Fe in At&&(ct=[].concat((0,la.Z)(ct),(0,la.Z)(So(Fe,At[Fe]))))}),ct};var Eo=(Fe,Re)=>{const{preserveSelectedRowKeys:ct,selectedRowKeys:At,defaultSelectedRowKeys:Qt,getCheckboxProps:en,onChange:Tn,onSelect:er,onSelectAll:Zn,onSelectInvert:xr,onSelectNone:Tr,onSelectMultiple:Nn,columnWidth:oi,type:hi,selections:mi,fixed:Hi,renderCell:Ci,hideSelectAll:ea,checkStrictly:Gi=!0}=Re||{},{prefixCls:ha,data:qa,pageData:Za,getRecordByKey:Ja,getRowKey:To,expandType:al,childrenColumnName:Da,locale:Fi,getPopupContainer:Bi}=Fe,[Ri,pa]=(0,wa.Z)(At||Qt||da,{value:At}),Ta=ue.useRef(new Map),Jo=(0,ue.useCallback)(Ia=>{if(ct){const Mo=new Map;Ia.forEach(Ho=>{let Ga=Ja(Ho);!Ga&&Ta.current.has(Ho)&&(Ga=Ta.current.get(Ho)),Mo.set(Ho,Ga)}),Ta.current=Mo}},[Ja,ct]);ue.useEffect(()=>{Jo(Ri)},[Ri]);const{keyEntities:Do}=(0,ue.useMemo)(()=>{if(Gi)return{keyEntities:null};let Ia=qa;if(ct){const Mo=new Set(qa.map((Ga,Ul)=>To(Ga,Ul))),Ho=Array.from(Ta.current).reduce((Ga,Ul)=>{let[Aa,cl]=Ul;return Mo.has(Aa)?Ga:Ga.concat(cl)},[]);Ia=[].concat((0,la.Z)(Ia),(0,la.Z)(Ho))}return(0,lo.I8)(Ia,{externalGetKey:To,childrenPropName:Da})},[qa,To,Gi,Da,ct]),wo=(0,ue.useMemo)(()=>So(Da,Za),[Da,Za]),ul=(0,ue.useMemo)(()=>{const Ia=new Map;return wo.forEach((Mo,Ho)=>{const Ga=To(Mo,Ho),Ul=(en?en(Mo):null)||{};Ia.set(Ga,Ul)}),Ia},[wo,To,en]),fl=(0,ue.useCallback)(Ia=>{var Mo;return!!(!((Mo=ul.get(To(Ia)))===null||Mo===void 0)&&Mo.disabled)},[ul,To]),[Nl,Ml]=(0,ue.useMemo)(()=>{if(Gi)return[Ri||[],[]];const{checkedKeys:Ia,halfCheckedKeys:Mo}=(0,za.S)(Ri,!0,Do,fl);return[Ia||[],Mo]},[Ri,Gi,Do,fl]),ds=(0,ue.useMemo)(()=>{const Ia=hi==="radio"?Nl.slice(0,1):Nl;return new Set(Ia)},[Nl,hi]),fs=(0,ue.useMemo)(()=>hi==="radio"?new Set:new Set(Ml),[Ml,hi]),[hl,_s]=(0,ue.useState)(null);ue.useEffect(()=>{Re||pa(da)},[!!Re]);const jl=(0,ue.useCallback)((Ia,Mo)=>{let Ho,Ga;Jo(Ia),ct?(Ho=Ia,Ga=Ia.map(Ul=>Ta.current.get(Ul))):(Ho=[],Ga=[],Ia.forEach(Ul=>{const Aa=Ja(Ul);Aa!==void 0&&(Ho.push(Ul),Ga.push(Aa))})),pa(Ho),Tn==null||Tn(Ho,Ga,{type:Mo})},[pa,Ja,Tn,ct]),es=(0,ue.useCallback)((Ia,Mo,Ho,Ga)=>{if(er){const Ul=Ho.map(Aa=>Ja(Aa));er(Ja(Ia),Mo,Ul,Ga)}jl(Ho,"single")},[er,Ja,jl]),Yl=(0,ue.useMemo)(()=>!mi||ea?null:(mi===!0?[so,Vi,Xi]:mi).map(Mo=>Mo===so?{key:"all",text:Fi.selectionAll,onSelect(){jl(qa.map((Ho,Ga)=>To(Ho,Ga)).filter(Ho=>{const Ga=ul.get(Ho);return!(Ga!=null&&Ga.disabled)||ds.has(Ho)}),"all")}}:Mo===Vi?{key:"invert",text:Fi.selectInvert,onSelect(){const Ho=new Set(ds);Za.forEach((Ul,Aa)=>{const cl=To(Ul,Aa),Zl=ul.get(cl);Zl!=null&&Zl.disabled||(Ho.has(cl)?Ho.delete(cl):Ho.add(cl))});const Ga=Array.from(Ho);xr&&xr(Ga),jl(Ga,"invert")}}:Mo===Xi?{key:"none",text:Fi.selectNone,onSelect(){Tr==null||Tr(),jl(Array.from(ds).filter(Ho=>{const Ga=ul.get(Ho);return Ga==null?void 0:Ga.disabled}),"none")}}:Mo).map(Mo=>Object.assign(Object.assign({},Mo),{onSelect:function(){for(var Ho,Ga,Ul=arguments.length,Aa=new Array(Ul),cl=0;cl<Ul;cl++)Aa[cl]=arguments[cl];(Ga=Mo.onSelect)===null||Ga===void 0||(Ho=Ga).call.apply(Ho,[Mo].concat(Aa)),_s(null)}})),[mi,ds,Za,To,xr,jl]);return[(0,ue.useCallback)(Ia=>{var Mo;if(!Re)return Ia.filter(Wl=>Wl!==Ka);let Ho=(0,la.Z)(Ia);const Ga=new Set(ds),Ul=wo.map(To).filter(Wl=>!ul.get(Wl).disabled),Aa=Ul.every(Wl=>Ga.has(Wl)),cl=Ul.some(Wl=>Ga.has(Wl)),Zl=()=>{const Wl=[];Aa?Ul.forEach(hs=>{Ga.delete(hs),Wl.push(hs)}):Ul.forEach(hs=>{Ga.has(hs)||(Ga.add(hs),Wl.push(hs))});const Ql=Array.from(Ga);Zn==null||Zn(!Aa,Ql.map(hs=>Ja(hs)),Wl.map(hs=>Ja(hs))),jl(Ql,"all"),_s(null)};let _l;if(hi!=="radio"){let Wl;if(Yl){const Fl={getPopupContainer:Bi,items:Yl.map((Ks,qs)=>{const{key:eu,text:wu,onSelect:Is}=Ks;return{key:eu!=null?eu:qs,onClick:()=>{Is==null||Is(Ul)},label:wu}})};Wl=ue.createElement("div",{className:`${ha}-selection-extra`},ue.createElement(ta.Z,{menu:Fl,getPopupContainer:Bi},ue.createElement("span",null,ue.createElement(Ua.Z,null))))}const Ql=wo.map((Fl,Ks)=>{const qs=To(Fl,Ks),eu=ul.get(qs)||{};return Object.assign({checked:Ga.has(qs)},eu)}).filter(Fl=>{let{disabled:Ks}=Fl;return Ks}),hs=!!Ql.length&&Ql.length===wo.length,Sl=hs&&Ql.every(Fl=>{let{checked:Ks}=Fl;return Ks}),Us=hs&&Ql.some(Fl=>{let{checked:Ks}=Fl;return Ks});_l=!ea&&ue.createElement("div",{className:`${ha}-selection`},ue.createElement(Xn.default,{checked:hs?Sl:!!wo.length&&Aa,indeterminate:hs?!Sl&&Us:!Aa&&cl,onChange:Zl,disabled:wo.length===0||hs,"aria-label":Wl?"Custom selection":"Select all",skipGroup:!0}),Wl)}let fu;hi==="radio"?fu=(Wl,Ql,hs)=>{const Sl=To(Ql,hs),Us=Ga.has(Sl);return{node:ue.createElement(Oi.ZP,Object.assign({},ul.get(Sl),{checked:Us,onClick:Fl=>Fl.stopPropagation(),onChange:Fl=>{Ga.has(Sl)||es(Sl,!0,[Sl],Fl.nativeEvent)}})),checked:Us}}:fu=(Wl,Ql,hs)=>{var Sl;const Us=To(Ql,hs),Fl=Ga.has(Us),Ks=fs.has(Us),qs=ul.get(Us);let eu;return al==="nest"?eu=Ks:eu=(Sl=qs==null?void 0:qs.indeterminate)!==null&&Sl!==void 0?Sl:Ks,{node:ue.createElement(Xn.default,Object.assign({},qs,{indeterminate:eu,checked:Fl,skipGroup:!0,onClick:wu=>wu.stopPropagation(),onChange:wu=>{let{nativeEvent:Is}=wu;const{shiftKey:Au}=Is;let Fs=-1,tu=-1;if(Au&&Gi){const nu=new Set([hl,Us]);Ul.some((Ns,Cs)=>{if(nu.has(Ns))if(Fs===-1)Fs=Cs;else return tu=Cs,!0;return!1})}if(tu!==-1&&Fs!==tu&&Gi){const nu=Ul.slice(Fs,tu+1),Ns=[];Fl?nu.forEach(vs=>{Ga.has(vs)&&(Ns.push(vs),Ga.delete(vs))}):nu.forEach(vs=>{Ga.has(vs)||(Ns.push(vs),Ga.add(vs))});const Cs=Array.from(Ga);Nn==null||Nn(!Fl,Cs.map(vs=>Ja(vs)),Ns.map(vs=>Ja(vs))),jl(Cs,"multiple")}else{const nu=Nl;if(Gi){const Ns=Fl?(0,Xa._5)(nu,Us):(0,Xa.L0)(nu,Us);es(Us,!Fl,Ns,Is)}else{const Ns=(0,za.S)([].concat((0,la.Z)(nu),[Us]),!0,Do,fl),{checkedKeys:Cs,halfCheckedKeys:vs}=Ns;let Wu=Cs;if(Fl){const lc=new Set(Cs);lc.delete(Us),Wu=(0,za.S)(Array.from(lc),{checked:!1,halfCheckedKeys:vs},Do,fl).checkedKeys}es(Us,!Fl,Wu,Is)}}_s(Fl?null:Us)}})),checked:Fl}};const zs=(Wl,Ql,hs)=>{const{node:Sl,checked:Us}=fu(Wl,Ql,hs);return Ci?Ci(Us,Ql,hs,Sl):Sl};if(!Ho.includes(Ka))if(Ho.findIndex(Wl=>{var Ql;return((Ql=Wl[Wo])===null||Ql===void 0?void 0:Ql.columnType)==="EXPAND_COLUMN"})===0){const[Wl,...Ql]=Ho;Ho=[Wl,Ka].concat((0,la.Z)(Ql))}else Ho=[Ka].concat((0,la.Z)(Ho));const Su=Ho.indexOf(Ka);Ho=Ho.filter((Wl,Ql)=>Wl!==Ka||Ql===Su);const Pi=Ho[Su-1],Tu=Ho[Su+1];let Ps=Hi;Ps===void 0&&((Tu==null?void 0:Tu.fixed)!==void 0?Ps=Tu.fixed:(Pi==null?void 0:Pi.fixed)!==void 0&&(Ps=Pi.fixed)),Ps&&Pi&&((Mo=Pi[Wo])===null||Mo===void 0?void 0:Mo.columnType)==="EXPAND_COLUMN"&&Pi.fixed===void 0&&(Pi.fixed=Ps);const gu=je()(`${ha}-selection-col`,{[`${ha}-selection-col-with-dropdown`]:mi&&hi==="checkbox"}),xu={fixed:Ps,width:oi,className:`${ha}-selection-column`,title:Re.columnTitle||_l,render:zs,onCell:Re.onCell,[Wo]:{className:gu}};return Ho.map(Wl=>Wl===Ka?xu:Wl)},[To,wo,Re,Nl,ds,fs,oi,Yl,al,hl,ul,Nn,es,fl]),ds]},vo=te(33463),Io=te(28575),Lo=te(83062);const Fo="ascend",Yo="descend";function jn(Fe){return typeof Fe.sorter=="object"&&typeof Fe.sorter.multiple=="number"?Fe.sorter.multiple:!1}function ai(Fe){return typeof Fe=="function"?Fe:Fe&&typeof Fe=="object"&&Fe.compare?Fe.compare:!1}function ba(Fe,Re){return Re?Fe[Fe.indexOf(Re)+1]:Fe[0]}function na(Fe,Re,ct){let At=[];function Qt(en,Tn){At.push({column:en,key:$o(en,Tn),multiplePriority:jn(en),sortOrder:en.sortOrder})}return(Fe||[]).forEach((en,Tn)=>{const er=Ya(Tn,ct);en.children?("sortOrder"in en&&Qt(en,er),At=[].concat((0,la.Z)(At),(0,la.Z)(na(en.children,Re,er)))):en.sorter&&("sortOrder"in en?Qt(en,er):Re&&en.defaultSortOrder&&At.push({column:en,key:$o(en,er),multiplePriority:jn(en),sortOrder:en.defaultSortOrder}))}),At}function Nr(Fe,Re,ct,At,Qt,en,Tn,er){return(Re||[]).map((Zn,xr)=>{const Tr=Ya(xr,er);let Nn=Zn;if(Nn.sorter){const oi=Nn.sortDirections||Qt,hi=Nn.showSorterTooltip===void 0?Tn:Nn.showSorterTooltip,mi=$o(Nn,Tr),Hi=ct.find(al=>{let{key:Da}=al;return Da===mi}),Ci=Hi?Hi.sortOrder:null,ea=ba(oi,Ci);let Gi;if(Zn.sortIcon)Gi=Zn.sortIcon({sortOrder:Ci});else{const al=oi.includes(Fo)&&ue.createElement(Io.Z,{className:je()(`${Fe}-column-sorter-up`,{active:Ci===Fo})}),Da=oi.includes(Yo)&&ue.createElement(vo.Z,{className:je()(`${Fe}-column-sorter-down`,{active:Ci===Yo})});Gi=ue.createElement("span",{className:je()(`${Fe}-column-sorter`,{[`${Fe}-column-sorter-full`]:!!(al&&Da)})},ue.createElement("span",{className:`${Fe}-column-sorter-inner`,"aria-hidden":"true"},al,Da))}const{cancelSort:ha,triggerAsc:qa,triggerDesc:Za}=en||{};let Ja=ha;ea===Yo?Ja=Za:ea===Fo&&(Ja=qa);const To=typeof hi=="object"?hi:{title:Ja};Nn=Object.assign(Object.assign({},Nn),{className:je()(Nn.className,{[`${Fe}-column-sort`]:Ci}),title:al=>{const Da=ue.createElement("div",{className:`${Fe}-column-sorters`},ue.createElement("span",{className:`${Fe}-column-title`},yl(Zn.title,al)),Gi);return hi?ue.createElement(Lo.Z,Object.assign({},To),Da):Da},onHeaderCell:al=>{const Da=Zn.onHeaderCell&&Zn.onHeaderCell(al)||{},Fi=Da.onClick,Bi=Da.onKeyDown;Da.onClick=Ta=>{At({column:Zn,key:mi,sortOrder:ea,multiplePriority:jn(Zn)}),Fi==null||Fi(Ta)},Da.onKeyDown=Ta=>{Ta.keyCode===xi.Z.ENTER&&(At({column:Zn,key:mi,sortOrder:ea,multiplePriority:jn(Zn)}),Bi==null||Bi(Ta))};const Ri=Il(Zn.title,{}),pa=Ri==null?void 0:Ri.toString();return Ci?Da["aria-sort"]=Ci==="ascend"?"ascending":"descending":Da["aria-label"]=pa||"",Da.className=je()(Da.className,`${Fe}-column-has-sorters`),Da.tabIndex=0,Zn.ellipsis&&(Da.title=(Ri!=null?Ri:"").toString()),Da}})}return"children"in Nn&&(Nn=Object.assign(Object.assign({},Nn),{children:Nr(Fe,Nn.children,ct,At,Qt,en,Tn,Tr)})),Nn})}function Ti(Fe){const{column:Re,sortOrder:ct}=Fe;return{column:Re,order:ct,field:Re.dataIndex,columnKey:Re.key}}function Ni(Fe){const Re=Fe.filter(ct=>{let{sortOrder:At}=ct;return At}).map(Ti);return Re.length===0&&Fe.length?Object.assign(Object.assign({},Ti(Fe[Fe.length-1])),{column:void 0}):Re.length<=1?Re[0]||{}:Re}function ra(Fe,Re,ct){const At=Re.slice().sort((Tn,er)=>er.multiplePriority-Tn.multiplePriority),Qt=Fe.slice(),en=At.filter(Tn=>{let{column:{sorter:er},sortOrder:Zn}=Tn;return ai(er)&&Zn});return en.length?Qt.sort((Tn,er)=>{for(let Zn=0;Zn<en.length;Zn+=1){const xr=en[Zn],{column:{sorter:Tr},sortOrder:Nn}=xr,oi=ai(Tr);if(oi&&Nn){const hi=oi(Tn,er,Nn);if(hi!==0)return Nn===Fo?hi:-hi}}return 0}).map(Tn=>{const er=Tn[ct];return er?Object.assign(Object.assign({},Tn),{[ct]:ra(er,Re,ct)}):Tn}):Qt}function Ei(Fe){let{prefixCls:Re,mergedColumns:ct,onSorterChange:At,sortDirections:Qt,tableLocale:en,showSorterTooltip:Tn}=Fe;const[er,Zn]=ue.useState(na(ct,!0)),xr=ue.useMemo(()=>{let mi=!0;const Hi=na(ct,!1);if(!Hi.length)return er;const Ci=[];function ea(ha){mi?Ci.push(ha):Ci.push(Object.assign(Object.assign({},ha),{sortOrder:null}))}let Gi=null;return Hi.forEach(ha=>{Gi===null?(ea(ha),ha.sortOrder&&(ha.multiplePriority===!1?mi=!1:Gi=!0)):(Gi&&ha.multiplePriority!==!1||(mi=!1),ea(ha))}),Ci},[ct,er]),Tr=ue.useMemo(()=>{const mi=xr.map(Hi=>{let{column:Ci,sortOrder:ea}=Hi;return{column:Ci,order:ea}});return{sortColumns:mi,sortColumn:mi[0]&&mi[0].column,sortOrder:mi[0]&&mi[0].order}},[xr]);function Nn(mi){let Hi;mi.multiplePriority===!1||!xr.length||xr[0].multiplePriority===!1?Hi=[mi]:Hi=[].concat((0,la.Z)(xr.filter(Ci=>{let{key:ea}=Ci;return ea!==mi.key})),[mi]),Zn(Hi),At(Ni(Hi),Hi)}return[mi=>Nr(Re,mi,xr,Nn,Qt,en,Tn),xr,Tr,()=>Ni(xr)]}function Ii(Fe,Re){return Fe.map(ct=>{const At=Object.assign({},ct);return At.title=yl(ct.title,Re),"children"in At&&(At.children=Ii(At.children,Re)),At})}function Ui(Fe){return[ue.useCallback(ct=>Ii(ct,Fe),[Fe])]}var Ba=Vn((Fe,Re)=>{const{_renderTimes:ct}=Fe,{_renderTimes:At}=Re;return ct!==At}),go=Ra((Fe,Re)=>{const{_renderTimes:ct}=Fe,{_renderTimes:At}=Re;return ct!==At}),yi=te(84780),co=te(14747),Va=te(67968),ko=te(45503),Dl=Fe=>{const{componentCls:Re}=Fe,ct=`${Fe.lineWidth}px ${Fe.lineType} ${Fe.tableBorderColor}`,At=(Qt,en,Tn)=>({[`&${Re}-${Qt}`]:{[`> ${Re}-container`]:{[`> ${Re}-content, > ${Re}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`-${en}px -${Tn+Fe.lineWidth}px`}}}}}});return{[`${Re}-wrapper`]:{[`${Re}${Re}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Re}-title`]:{border:ct,borderBottom:0},[`> ${Re}-container`]:{borderInlineStart:ct,borderTop:ct,[`
> ${Re}-content,
> ${Re}-header,
> ${Re}-body,
> ${Re}-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:ct},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ct},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Re}-cell-fix-right-first::after`]:{borderInlineEnd:ct}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`-${Fe.tablePaddingVertical}px -${Fe.tablePaddingHorizontal+Fe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Fe.lineWidth,bottom:0,borderInlineEnd:ct,content:'""'}}}}}},[`&${Re}-scroll-horizontal`]:{[`> ${Re}-container > ${Re}-body`]:{"> table > tbody":{[`
> tr${Re}-expanded-row,
> tr${Re}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},At("middle",Fe.tablePaddingVerticalMiddle,Fe.tablePaddingHorizontalMiddle)),At("small",Fe.tablePaddingVerticalSmall,Fe.tablePaddingHorizontalSmall)),{[`> ${Re}-footer`]:{border:ct,borderTop:0}}),[`${Re}-cell`]:{[`${Re}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Fe.lineWidth}px 0 ${Fe.lineWidth}px ${Fe.tableHeaderBg}`}},[`${Re}-bordered ${Re}-cell-scrollbar`]:{borderInlineEnd:ct}}}},Hl=Fe=>{const{componentCls:Re}=Fe;return{[`${Re}-wrapper`]:{[`${Re}-cell-ellipsis`]:Object.assign(Object.assign({},co.vS),{wordBreak:"keep-all",[`
&${Re}-cell-fix-left-last,
&${Re}-cell-fix-right-first
`]:{overflow:"visible",[`${Re}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Re}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ts=Fe=>{const{componentCls:Re}=Fe;return{[`${Re}-wrapper`]:{[`${Re}-tbody > tr${Re}-placeholder`]:{textAlign:"center",color:Fe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Fe.colorBgContainer}}}}},ks=te(49867),ps=Fe=>{const{componentCls:Re,antCls:ct,controlInteractiveSize:At,motionDurationSlow:Qt,lineWidth:en,paddingXS:Tn,lineType:er,tableBorderColor:Zn,tableExpandIconBg:xr,tableExpandColumnWidth:Tr,borderRadius:Nn,fontSize:oi,fontSizeSM:hi,lineHeight:mi,tablePaddingVertical:Hi,tablePaddingHorizontal:Ci,tableExpandedRowBg:ea,paddingXXS:Gi}=Fe,ha=At/2-en,qa=ha*2+en*3,Za=`${en}px ${er} ${Zn}`,Ja=Gi-en;return{[`${Re}-wrapper`]:{[`${Re}-expand-icon-col`]:{width:Tr},[`${Re}-row-expand-icon-cell`]:{textAlign:"center",[`${Re}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Re}-row-indent`]:{height:1,float:"left"},[`${Re}-row-expand-icon`]:Object.assign(Object.assign({},(0,ks.N)(Fe)),{position:"relative",float:"left",boxSizing:"border-box",width:qa,height:qa,padding:0,color:"inherit",lineHeight:`${qa}px`,background:xr,border:Za,borderRadius:Nn,transform:`scale(${At/qa})`,transition:`all ${Qt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Qt} ease-out`,content:'""'},"&::before":{top:ha,insetInlineEnd:Ja,insetInlineStart:Ja,height:en},"&::after":{top:Ja,bottom:Ja,insetInlineStart:ha,width:en,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"}}),[`${Re}-row-indent + ${Re}-row-expand-icon`]:{marginTop:(oi*mi-en*3)/2-Math.ceil((hi*1.4-en*3)/2),marginInlineEnd:Tn},[`tr${Re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ea}},[`${ct}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Re}-expanded-row-fixed`]:{position:"relative",margin:`-${Hi}px -${Ci}px`,padding:`${Hi}px ${Ci}px`}}}},Bs=Fe=>{const{componentCls:Re,antCls:ct,iconCls:At,tableFilterDropdownWidth:Qt,tableFilterDropdownSearchWidth:en,paddingXXS:Tn,paddingXS:er,colorText:Zn,lineWidth:xr,lineType:Tr,tableBorderColor:Nn,tableHeaderIconColor:oi,fontSizeSM:hi,tablePaddingHorizontal:mi,borderRadius:Hi,motionDurationSlow:Ci,colorTextDescription:ea,colorPrimary:Gi,tableHeaderFilterActiveBg:ha,colorTextDisabled:qa,tableFilterDropdownBg:Za,tableFilterDropdownHeight:Ja,controlItemBgHover:To,controlItemBgActive:al,boxShadowSecondary:Da,filterDropdownMenuBg:Fi}=Fe,Bi=`${ct}-dropdown`,Ri=`${Re}-filter-dropdown`,pa=`${ct}-tree`,Ta=`${xr}px ${Tr} ${Nn}`;return[{[`${Re}-wrapper`]:{[`${Re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Tn,marginInline:`${Tn}px ${-mi/2}px`,padding:`0 ${Tn}px`,color:oi,fontSize:hi,borderRadius:Hi,cursor:"pointer",transition:`all ${Ci}`,"&:hover":{color:ea,background:ha},"&.active":{color:Gi}}}},{[`${ct}-dropdown`]:{[Ri]:Object.assign(Object.assign({},(0,co.Wf)(Fe)),{minWidth:Qt,backgroundColor:Za,borderRadius:Hi,boxShadow:Da,overflow:"hidden",[`${Bi}-menu`]:{maxHeight:Ja,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Fi,"&:empty::after":{display:"block",padding:`${er}px 0`,color:qa,fontSize:hi,textAlign:"center",content:'"Not Found"'}},[`${Ri}-tree`]:{paddingBlock:`${er}px 0`,paddingInline:er,[pa]:{padding:0},[`${pa}-treenode ${pa}-node-content-wrapper:hover`]:{backgroundColor:To},[`${pa}-treenode-checkbox-checked ${pa}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:al}}},[`${Ri}-search`]:{padding:er,borderBottom:Ta,"&-input":{input:{minWidth:en},[At]:{color:qa}}},[`${Ri}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${Ri}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${er-xr}px ${er}px`,overflow:"hidden",borderTop:Ta}})}},{[`${ct}-dropdown ${Ri}, ${Ri}-submenu`]:{[`${ct}-checkbox-wrapper + span`]:{paddingInlineStart:er,color:Zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},us=Fe=>{const{componentCls:Re,lineWidth:ct,colorSplit:At,motionDurationSlow:Qt,zIndexTableFixed:en,tableBg:Tn,zIndexTableSticky:er}=Fe,Zn=At;return{[`${Re}-wrapper`]:{[`
${Re}-cell-fix-left,
${Re}-cell-fix-right
`]:{position:"sticky !important",zIndex:en,background:Tn},[`
${Re}-cell-fix-left-first::after,
${Re}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-ct,width:30,transform:"translateX(100%)",transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},[`${Re}-cell-fix-left-all::after`]:{display:"none"},[`
${Re}-cell-fix-right-first::after,
${Re}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-ct,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},[`${Re}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:er+1,width:30,transition:`box-shadow ${Qt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Re}-ping-left`]:{[`&:not(${Re}-has-fix-left) ${Re}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Zn}`}},[`
${Re}-cell-fix-left-first::after,
${Re}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Zn}`},[`${Re}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Re}-ping-right`]:{[`&:not(${Re}-has-fix-right) ${Re}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Zn}`}},[`
${Re}-cell-fix-right-first::after,
${Re}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Zn}`}}}}},Os=Fe=>{const{componentCls:Re,antCls:ct}=Fe;return{[`${Re}-wrapper`]:{[`${Re}-pagination${ct}-pagination`]:{margin:`${Fe.margin}px 0`},[`${Re}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Fe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ys=Fe=>{const{componentCls:Re,tableRadius:ct}=Fe;return{[`${Re}-wrapper`]:{[Re]:{[`${Re}-title, ${Re}-header`]:{borderRadius:`${ct}px ${ct}px 0 0`},[`${Re}-title + ${Re}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Re}-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:ct,borderStartEndRadius:ct,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ct},"> *:last-child":{borderStartEndRadius:ct}}},"&-footer":{borderRadius:`0 0 ${ct}px ${ct}px`}}}}},Fu=Fe=>{const{componentCls:Re}=Fe;return{[`${Re}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Re}-pagination-left`]:{justifyContent:"flex-end"},[`${Re}-pagination-right`]:{justifyContent:"flex-start"},[`${Re}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Re}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Re}-row-indent`]:{float:"right"}}}}},Ll=Fe=>{const{componentCls:Re,antCls:ct,iconCls:At,fontSizeIcon:Qt,padding:en,paddingXS:Tn,tableHeaderIconColor:er,tableHeaderIconColorHover:Zn,tableSelectionColumnWidth:xr}=Fe;return{[`${Re}-wrapper`]:{[`${Re}-selection-col`]:{width:xr,[`&${Re}-selection-col-with-dropdown`]:{width:xr+Qt+en/4}},[`${Re}-bordered ${Re}-selection-col`]:{width:xr+Tn*2,[`&${Re}-selection-col-with-dropdown`]:{width:xr+Qt+en/4+Tn*2}},[`
table tr th${Re}-selection-column,
table tr td${Re}-selection-column
`]:{paddingInlineEnd:Fe.paddingXS,paddingInlineStart:Fe.paddingXS,textAlign:"center",[`${ct}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Re}-selection-column${Re}-cell-fix-left`]:{zIndex:Fe.zIndexTableFixed+1},[`table tr th${Re}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Re}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Re}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Fe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Fe.tablePaddingHorizontal/4}px`,[At]:{color:er,fontSize:Qt,verticalAlign:"baseline","&:hover":{color:Zn}}}}}},Xs=Fe=>{const{componentCls:Re}=Fe,ct=(At,Qt,en,Tn)=>({[`${Re}${Re}-${At}`]:{fontSize:Tn,[`
${Re}-title,
${Re}-footer,
${Re}-cell,
${Re}-thead > tr > th,
${Re}-tbody > tr > th,
${Re}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Qt}px ${en}px`},[`${Re}-filter-trigger`]:{marginInlineEnd:`-${en/2}px`},[`${Re}-expanded-row-fixed`]:{margin:`-${Qt}px -${en}px`},[`${Re}-tbody`]:{[`${Re}-wrapper:only-child ${Re}`]:{marginBlock:`-${Qt}px`,marginInline:`${Fe.tableExpandColumnWidth-en}px -${en}px`}},[`${Re}-selection-column`]:{paddingInlineStart:`${en/4}px`}}});return{[`${Re}-wrapper`]:Object.assign(Object.assign({},ct("middle",Fe.tablePaddingVerticalMiddle,Fe.tablePaddingHorizontalMiddle,Fe.tableFontSizeMiddle)),ct("small",Fe.tablePaddingVerticalSmall,Fe.tablePaddingHorizontalSmall,Fe.tableFontSizeSmall))}},os=Fe=>{const{componentCls:Re,marginXXS:ct,fontSizeIcon:At,tableHeaderIconColor:Qt,tableHeaderIconColorHover:en}=Fe;return{[`${Re}-wrapper`]:{[`${Re}-thead th${Re}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Fe.motionDurationSlow}`,"&:hover":{background:Fe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Fe.colorPrimary},[`
&${Re}-cell-fix-left:hover,
&${Re}-cell-fix-right:hover
`]:{background:Fe.tableFixedHeaderSortActiveBg}},[`${Re}-thead th${Re}-column-sort`]:{background:Fe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Re}-column-sort`]:{background:Fe.tableBodySortBg},[`${Re}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Re}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Re}-column-sorter`]:{marginInlineStart:ct,color:Qt,fontSize:0,transition:`color ${Fe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:At,"&.active":{color:Fe.colorPrimary}},[`${Re}-column-sorter-up + ${Re}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Re}-column-sorters:hover ${Re}-column-sorter`]:{color:en}}}},rs=Fe=>{const{componentCls:Re,opacityLoading:ct,tableScrollThumbBg:At,tableScrollThumbBgHover:Qt,tableScrollThumbSize:en,tableScrollBg:Tn,zIndexTableSticky:er,stickyScrollBarBorderRadius:Zn}=Fe,xr=`${Fe.lineWidth}px ${Fe.lineType} ${Fe.tableBorderColor}`;return{[`${Re}-wrapper`]:{[`${Re}-sticky`]:{"&-holder":{position:"sticky",zIndex:er,background:Fe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${en}px !important`,zIndex:er,display:"flex",alignItems:"center",background:Tn,borderTop:xr,opacity:ct,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:en,backgroundColor:At,borderRadius:Zn,transition:`all ${Fe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Qt}}}}}}},Ds=Fe=>{const{componentCls:Re,lineWidth:ct,tableBorderColor:At}=Fe,Qt=`${ct}px ${Fe.lineType} ${At}`;return{[`${Re}-wrapper`]:{[`${Re}-summary`]:{position:"relative",zIndex:Fe.zIndexTableFixed,background:Fe.tableBg,"> tr":{"> th, > td":{borderBottom:Qt}}},[`div${Re}-summary`]:{boxShadow:`0 -${ct}px 0 ${At}`}}}},sl=Fe=>{const{componentCls:Re}=Fe,ct=`${Fe.lineWidth}px ${Fe.lineType} ${Fe.tableBorderColor}`,At=`${Re}-expanded-row-cell`;return{[`${Re}-wrapper`]:{[`${Re}-tbody-virtual`]:{[`${Re}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Re}-cell`]:{borderBottom:ct},[`${Re}-expanded-row`]:{[`${At}${At}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Fe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Re}-bordered`]:{[`${Re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ct,position:"absolute"},[`${Re}-cell`]:{borderInlineEnd:ct,[`&${Re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Fe.lineWidth,borderInlineStart:ct}}}}}}};const oa=Fe=>{const{componentCls:Re,fontWeightStrong:ct,tablePaddingVertical:At,tablePaddingHorizontal:Qt,lineWidth:en,lineType:Tn,tableBorderColor:er,tableFontSize:Zn,tableBg:xr,tableRadius:Tr,tableHeaderTextColor:Nn,motionDurationMid:oi,tableHeaderBg:hi,tableHeaderCellSplitColor:mi,tableRowHoverBg:Hi,tableSelectedRowBg:Ci,tableSelectedRowHoverBg:ea,tableFooterTextColor:Gi,tableFooterBg:ha,paddingContentVerticalLG:qa}=Fe,Za=`${en}px ${Tn} ${er}`;return{[`${Re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,co.dF)()),{[Re]:Object.assign(Object.assign({},(0,co.Wf)(Fe)),{fontSize:Zn,background:xr,borderRadius:`${Tr}px ${Tr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Tr}px ${Tr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Re}-cell,
${Re}-thead > tr > th,
${Re}-tbody > tr > th,
${Re}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${qa}px ${Qt}px`,overflowWrap:"break-word"},[`${Re}-title`]:{padding:`${At}px ${Qt}px`},[`${Re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Nn,fontWeight:ct,textAlign:"start",background:hi,borderBottom:Za,transition:`background ${oi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Re}-selection-column):not(${Re}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:mi,transform:"translateY(-50%)",transition:`background-color ${oi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${oi}, border-color ${oi}`,borderBottom:Za,[`
> ${Re}-wrapper:only-child,
> ${Re}-expanded-row-fixed > ${Re}-wrapper:only-child
`]:{[Re]:{marginBlock:`-${At}px`,marginInline:`${Fe.tableExpandColumnWidth-Qt}px -${Qt}px`,[`${Re}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Nn,fontWeight:ct,textAlign:"start",background:hi,borderBottom:Za,transition:`background ${oi} ease`},[`
&${Re}-row:hover > th,
&${Re}-row:hover > td,
> th${Re}-cell-row-hover,
> td${Re}-cell-row-hover
`]:{background:Hi},[`&${Re}-row-selected`]:{"> th, > td":{background:Ci},"&:hover > th, &:hover > td":{background:ea}}}},[`${Re}-footer`]:{padding:`${At}px ${Qt}px`,color:Gi,background:ha}})}};var eo=(0,Va.Z)("Table",Fe=>{const{colorTextHeading:Re,colorSplit:ct,colorIcon:At,colorIconHover:Qt,opacityLoading:en,colorBgContainer:Tn,controlInteractiveSize:er,headerBg:Zn,headerColor:xr,headerSortActiveBg:Tr,headerSortHoverBg:Nn,bodySortBg:oi,rowHoverBg:hi,rowSelectedBg:mi,rowSelectedHoverBg:Hi,rowExpandedBg:Ci,cellPaddingBlock:ea,cellPaddingInline:Gi,cellPaddingBlockMD:ha,cellPaddingInlineMD:qa,cellPaddingBlockSM:Za,cellPaddingInlineSM:Ja,borderColor:To,footerBg:al,footerColor:Da,headerBorderRadius:Fi,cellFontSize:Bi,cellFontSizeMD:Ri,cellFontSizeSM:pa,headerSplitColor:Ta,fixedHeaderSortActiveBg:Jo,headerFilterHoverBg:Do,filterDropdownBg:wo,expandIconBg:ul,selectionColumnWidth:fl,stickyScrollBarBg:Nl}=Fe,Ml=new yi.C(At),ds=new yi.C(Qt),fs=2,hl=(0,ko.TS)(Fe,{tableFontSize:Bi,tableBg:Tn,tableRadius:Fi,tablePaddingVertical:ea,tablePaddingHorizontal:Gi,tablePaddingVerticalMiddle:ha,tablePaddingHorizontalMiddle:qa,tablePaddingVerticalSmall:Za,tablePaddingHorizontalSmall:Ja,tableBorderColor:To,tableHeaderTextColor:xr,tableHeaderBg:Zn,tableFooterTextColor:Da,tableFooterBg:al,tableHeaderCellSplitColor:Ta,tableHeaderSortBg:Tr,tableHeaderSortHoverBg:Nn,tableHeaderIconColor:Ml.clone().setAlpha(Ml.getAlpha()*en).toRgbString(),tableHeaderIconColorHover:ds.clone().setAlpha(ds.getAlpha()*en).toRgbString(),tableBodySortBg:oi,tableFixedHeaderSortActiveBg:Jo,tableHeaderFilterActiveBg:Do,tableFilterDropdownBg:wo,tableRowHoverBg:hi,tableSelectedRowBg:mi,tableSelectedRowHoverBg:Hi,zIndexTableFixed:fs,zIndexTableSticky:fs+1,tableFontSizeMiddle:Ri,tableFontSizeSmall:pa,tableSelectionColumnWidth:fl,tableExpandIconBg:ul,tableExpandColumnWidth:er+2*Fe.padding,tableExpandedRowBg:Ci,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Nl,tableScrollThumbBgHover:Re,tableScrollBg:ct});return[oa(hl),Os(hl),Ds(hl),os(hl),Bs(hl),Dl(hl),Ys(hl),ps(hl),Ds(hl),Ts(hl),Ll(hl),us(hl),rs(hl),Hl(hl),Xs(hl),Fu(hl),sl(hl)]},Fe=>{const{colorFillAlter:Re,colorBgContainer:ct,colorTextHeading:At,colorFillSecondary:Qt,colorFillContent:en,controlItemBgActive:Tn,controlItemBgActiveHover:er,padding:Zn,paddingSM:xr,paddingXS:Tr,colorBorderSecondary:Nn,borderRadiusLG:oi,fontSize:hi,controlHeight:mi,colorTextPlaceholder:Hi}=Fe,Ci=new yi.C(Qt).onBackground(ct).toHexShortString(),ea=new yi.C(en).onBackground(ct).toHexShortString(),Gi=new yi.C(Re).onBackground(ct).toHexShortString();return{headerBg:Gi,headerColor:At,headerSortActiveBg:Ci,headerSortHoverBg:ea,bodySortBg:Gi,rowHoverBg:Gi,rowSelectedBg:Tn,rowSelectedHoverBg:er,rowExpandedBg:Re,cellPaddingBlock:Zn,cellPaddingInline:Zn,cellPaddingBlockMD:xr,cellPaddingInlineMD:Tr,cellPaddingBlockSM:Tr,cellPaddingInlineSM:Tr,borderColor:Nn,headerBorderRadius:oi,footerBg:Gi,footerColor:At,cellFontSize:hi,cellFontSizeMD:hi,cellFontSizeSM:hi,headerSplitColor:Nn,fixedHeaderSortActiveBg:Ci,headerFilterHoverBg:en,filterDropdownMenuBg:ct,filterDropdownBg:ct,expandIconBg:ct,selectionColumnWidth:mi,stickyScrollBarBg:Hi,stickyScrollBarBorderRadius:100}});const Bo=[],Xo=(Fe,Re)=>{const{prefixCls:ct,className:At,rootClassName:Qt,style:en,size:Tn,bordered:er,dropdownPrefixCls:Zn,dataSource:xr,pagination:Tr,rowSelection:Nn,rowKey:oi="key",rowClassName:hi,columns:mi,children:Hi,childrenColumnName:Ci,onChange:ea,getPopupContainer:Gi,loading:ha,expandIcon:qa,expandable:Za,expandedRowRender:Ja,expandIconColumnIndex:To,indentSize:al,scroll:Da,sortDirections:Fi,locale:Bi,showSorterTooltip:Ri=!0,virtual:pa}=Fe,Ta=ue.useMemo(()=>mi||Yr(Hi),[mi,Hi]),Jo=ue.useMemo(()=>Ta.some(Tl=>Tl.responsive),[Ta]),Do=(0,no.Z)(Jo),wo=ue.useMemo(()=>{const Tl=new Set(Object.keys(Do).filter(Oo=>Do[Oo]));return Ta.filter(Oo=>!Oo.responsive||Oo.responsive.some(Zs=>Tl.has(Zs)))},[Ta,Do]),ul=(0,ca.Z)(Fe,["className","style","columns"]),{locale:fl=kl.Z,direction:Nl,table:Ml,renderEmpty:ds,getPrefixCls:fs,getPopupContainer:hl}=ue.useContext(Go.E_),_s=(0,zo.Z)(Tn),jl=Object.assign(Object.assign({},fl.Table),Bi),es=xr||Bo,Yl=fs("table",ct),ol=fs("dropdown",Zn),Ia=Object.assign({childrenColumnName:Ci,expandIconColumnIndex:To},Za),{childrenColumnName:Mo="children"}=Ia,Ho=ue.useMemo(()=>es.some(Tl=>Tl==null?void 0:Tl[Mo])?"nest":Ja||Za&&Za.expandedRowRender?"row":null,[es]),Ga={body:ue.useRef()},Ul=ue.useMemo(()=>typeof oi=="function"?oi:Tl=>Tl==null?void 0:Tl[oi],[oi]),[Aa]=ei(es,Mo,Ul),cl={},Zl=function(Tl,Oo){let Zs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ts,ru,qr;const Mu=Object.assign(Object.assign({},cl),Tl);Zs&&((ts=cl.resetPagination)===null||ts===void 0||ts.call(cl),!((ru=Mu.pagination)===null||ru===void 0)&&ru.current&&(Mu.pagination.current=1),Tr&&Tr.onChange&&Tr.onChange(1,(qr=Mu.pagination)===null||qr===void 0?void 0:qr.pageSize)),Da&&Da.scrollToFirstRowOnChange!==!1&&Ga.body.current&&(0,Vo.Z)(0,{getContainer:()=>Ga.body.current}),ea==null||ea(Mu.pagination,Mu.filters,Mu.sorter,{currentDataSource:lr(ra(es,Mu.sorterStates,Mo),Mu.filterStates),action:Oo})},_l=(Tl,Oo)=>{Zl({sorter:Tl,sorterStates:Oo},"sort",!1)},[fu,zs,Su,Pi]=Ei({prefixCls:Yl,mergedColumns:wo,onSorterChange:_l,sortDirections:Fi||["ascend","descend"],tableLocale:jl,showSorterTooltip:Ri}),Tu=ue.useMemo(()=>ra(es,zs,Mo),[es,zs]);cl.sorter=Pi(),cl.sorterStates=zs;const Ps=(Tl,Oo)=>{Zl({filters:Tl,filterStates:Oo},"filter",!0)},[gu,xu,Wl]=pi({prefixCls:Yl,locale:jl,dropdownPrefixCls:ol,mergedColumns:wo,onFilterChange:Ps,getPopupContainer:Gi||hl}),Ql=lr(Tu,xu);cl.filters=Wl,cl.filterStates=xu;const hs=ue.useMemo(()=>{const Tl={};return Object.keys(Wl).forEach(Oo=>{Wl[Oo]!==null&&(Tl[Oo]=Wl[Oo])}),Object.assign(Object.assign({},Su),{filters:Tl})},[Su,Wl]),[Sl]=Ui(hs),Us=(Tl,Oo)=>{Zl({pagination:Object.assign(Object.assign({},cl.pagination),{current:Tl,pageSize:Oo})},"paginate")},[Fl,Ks]=Ma(Ql.length,Us,Tr);cl.pagination=Tr===!1?{}:ri(Fl,Tr),cl.resetPagination=Ks;const qs=ue.useMemo(()=>{if(Tr===!1||!Fl.pageSize)return Ql;const{current:Tl=1,total:Oo,pageSize:Zs=fi}=Fl;return Ql.length<Oo?Ql.length>Zs?Ql.slice((Tl-1)*Zs,Tl*Zs):Ql:Ql.slice((Tl-1)*Zs,Tl*Zs)},[!!Tr,Ql,Fl&&Fl.current,Fl&&Fl.pageSize,Fl&&Fl.total]),[eu,wu]=Eo({prefixCls:Yl,data:Ql,pageData:qs,getRowKey:Ul,getRecordByKey:Aa,expandType:Ho,childrenColumnName:Mo,locale:jl,getPopupContainer:Gi||hl},Nn),Is=(Tl,Oo,Zs)=>{let ts;return typeof hi=="function"?ts=je()(hi(Tl,Oo,Zs)):ts=je()(hi),je()({[`${Yl}-row-selected`]:wu.has(Ul(Tl,Oo))},ts)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||qa||Ko(jl),Ho==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Nn?1:0:Ia.expandIconColumnIndex>0&&Nn&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof al=="number"?al:15);const Au=ue.useCallback(Tl=>Sl(eu(gu(fu(Tl)))),[fu,gu,eu]);let Fs,tu;if(Tr!==!1&&(Fl!=null&&Fl.total)){let Tl;Fl.size?Tl=Fl.size:Tl=_s==="small"||_s==="middle"?"small":void 0;const Oo=ru=>ue.createElement(Co.Z,Object.assign({},Fl,{className:je()(`${Yl}-pagination ${Yl}-pagination-${ru}`,Fl.className),size:Tl})),Zs=Nl==="rtl"?"left":"right",{position:ts}=Fl;if(ts!==null&&Array.isArray(ts)){const ru=ts.find(Xu=>Xu.includes("top")),qr=ts.find(Xu=>Xu.includes("bottom")),Mu=ts.every(Xu=>`${Xu}`=="none");!ru&&!qr&&!Mu&&(tu=Oo(Zs)),ru&&(Fs=Oo(ru.toLowerCase().replace("top",""))),qr&&(tu=Oo(qr.toLowerCase().replace("bottom","")))}else tu=Oo(Zs)}let nu;typeof ha=="boolean"?nu={spinning:ha}:typeof ha=="object"&&(nu=Object.assign({spinning:!0},ha));const[Ns,Cs]=eo(Yl),[,vs]=(0,Ao.Z)(),Wu=je()(`${Yl}-wrapper`,Ml==null?void 0:Ml.className,{[`${Yl}-wrapper-rtl`]:Nl==="rtl"},At,Qt,Cs),lc=Object.assign(Object.assign({},Ml==null?void 0:Ml.style),en),xs=Bi&&Bi.emptyText||(ds==null?void 0:ds("Table"))||ue.createElement(tl.Z,{componentName:"Table"}),hu=pa?go:Ba,Yc={},sc=ue.useMemo(()=>{const{fontSize:Tl,lineHeight:Oo,padding:Zs,paddingXS:ts,paddingSM:ru}=vs,qr=Math.floor(Tl*Oo);switch(_s){case"large":return Zs*2+qr;case"small":return ts*2+qr;default:return ru*2+qr}},[vs,_s]);return pa&&(Yc.listItemHeight=sc),Ns(ue.createElement("div",{ref:Re,className:Wu,style:lc},ue.createElement(_a.Z,Object.assign({spinning:!1},nu),Fs,ue.createElement(hu,Object.assign({},Yc,ul,{columns:wo,direction:Nl,expandable:Ia,prefixCls:Yl,className:je()({[`${Yl}-middle`]:_s==="middle",[`${Yl}-small`]:_s==="small",[`${Yl}-bordered`]:er,[`${Yl}-empty`]:es.length===0}),data:qs,rowKey:Ul,rowClassName:Is,emptyText:xs,internalHooks:de,internalRefs:Ga,transformColumns:Au})),tu)))};var is=ue.forwardRef(Xo);const as=(Fe,Re)=>{const ct=ue.useRef(0);return ct.current+=1,ue.createElement(is,Object.assign({},Fe,{ref:Re,_renderTimes:ct.current}))},Rs=ue.forwardRef(as);Rs.SELECTION_COLUMN=Ka,Rs.EXPAND_COLUMN=ee,Rs.SELECTION_ALL=so,Rs.SELECTION_INVERT=Vi,Rs.SELECTION_NONE=Xi,Rs.Column=Qi,Rs.ColumnGroup=bo,Rs.Summary=Dt;var su=Rs,Ru=su},66368:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return Sr}});var ee=te(73475),de=te(25877),ke=te(38308),Ge=te(94184),xe=te.n(Ge),Me=te(87462),ue=te(4942),Ee=te(1413),fe=te(97685),we=te(71002),Ue=te(45987),De=te(67294),Ke=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ce=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ce)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ce==null?void 0:Ce.substr(0,4))};function rt(Ce){var Xe=De.useRef();Xe.current=Ce;var nt=De.useCallback(function(){for(var ut,ft=arguments.length,Ct=new Array(ft),wt=0;wt<ft;wt++)Ct[wt]=arguments[wt];return(ut=Xe.current)===null||ut===void 0?void 0:ut.call.apply(ut,[Xe].concat(Ct))},[]);return nt}function Qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _e=Qe()?De.useLayoutEffect:De.useEffect,ge=function(Xe,nt){var ut=De.useRef(!0);_e(function(){return Xe(ut.current)},nt),_e(function(){return ut.current=!1,function(){ut.current=!0}},[])},Ve=function(Xe,nt){ge(function(ut){if(!ut)return Xe()},nt)},lt=null;function He(Ce){var Xe=De.useRef(!1),nt=De.useState(Ce),ut=(0,fe.Z)(nt,2),ft=ut[0],Ct=ut[1];De.useEffect(function(){return Xe.current=!1,function(){Xe.current=!0}},[]);function wt(sn,En){En&&Xe.current||Ct(sn)}return[ft,wt]}function Oe(Ce){return Ce!==void 0}function ve(Ce,Xe){var nt=Xe||{},ut=nt.defaultValue,ft=nt.value,Ct=nt.onChange,wt=nt.postState,sn=He(function(){return Oe(ft)?ft:Oe(ut)?typeof ut=="function"?ut():ut:typeof Ce=="function"?Ce():Ce}),En=(0,fe.Z)(sn,2),ur=En[0],yr=En[1],fr=ft!==void 0?ft:ur,Qn=wt?wt(fr):fr,Yn=rt(Ct),On=He([fr]),hr=(0,fe.Z)(On,2),zr=hr[0],Er=hr[1];Ve(function(){var Br=zr[0];ur!==Br&&Yn(ur,Br)},[zr]),Ve(function(){Oe(ft)||yr(ft)},[ft]);var wr=rt(function(Br,Or){yr(Br,Or),Er([fr],Or)});return[Qn,wr]}var ye=te(62874),ze=(0,De.createContext)(null),We=De.forwardRef(function(Ce,Xe){var nt=Ce.prefixCls,ut=Ce.className,ft=Ce.style,Ct=Ce.id,wt=Ce.active,sn=Ce.tabKey,En=Ce.children;return De.createElement("div",{id:Ct&&"".concat(Ct,"-panel-").concat(sn),role:"tabpanel",tabIndex:wt?0:-1,"aria-labelledby":Ct&&"".concat(Ct,"-tab-").concat(sn),"aria-hidden":!wt,style:ft,className:xe()(nt,wt&&"".concat(nt,"-active"),ut),ref:Xe},En)}),st=We,at=["key","forceRender","style","className"];function Ze(Ce){var Xe=Ce.id,nt=Ce.activeKey,ut=Ce.animated,ft=Ce.tabPosition,Ct=Ce.destroyInactiveTabPane,wt=De.useContext(ze),sn=wt.prefixCls,En=wt.tabs,ur=ut.tabPane,yr="".concat(sn,"-tabpane");return De.createElement("div",{className:xe()("".concat(sn,"-content-holder"))},De.createElement("div",{className:xe()("".concat(sn,"-content"),"".concat(sn,"-content-").concat(ft),(0,ue.Z)({},"".concat(sn,"-content-animated"),ur))},En.map(function(fr){var Qn=fr.key,Yn=fr.forceRender,On=fr.style,hr=fr.className,zr=(0,Ue.Z)(fr,at),Er=Qn===nt;return De.createElement(ye.Z,(0,Me.Z)({key:Qn,visible:Er,forceRender:Yn,removeOnLeave:!!Ct,leavedClassName:"".concat(yr,"-hidden")},ut.tabPaneMotion),function(wr,Br){var Or=wr.style,Wr=wr.className;return De.createElement(st,(0,Me.Z)({},zr,{prefixCls:yr,id:Xe,tabKey:Qn,animated:ur,active:Er,style:(0,Ee.Z)((0,Ee.Z)({},On),Or),className:xe()(hr,Wr),ref:Br}))})})))}var Ae=te(74902),mt=te(48555),je=te(59864);function it(Ce,Xe,nt){var ut=De.useRef({});return(!("value"in ut.current)||nt(ut.current.condition,Xe))&&(ut.current.value=Ce(),ut.current.condition=Xe),ut.current.value}function qe(Ce,Xe){typeof Ce=="function"?Ce(Xe):(0,we.Z)(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=Xe)}function gt(){for(var Ce=arguments.length,Xe=new Array(Ce),nt=0;nt<Ce;nt++)Xe[nt]=arguments[nt];var ut=Xe.filter(function(ft){return ft});return ut.length<=1?ut[0]:function(ft){Xe.forEach(function(Ct){qe(Ct,ft)})}}function Pt(){for(var Ce=arguments.length,Xe=new Array(Ce),nt=0;nt<Ce;nt++)Xe[nt]=arguments[nt];return it(function(){return gt.apply(void 0,Xe)},Xe,function(ut,ft){return ut.length===ft.length&&ut.every(function(Ct,wt){return Ct===ft[wt]})})}function Xt(Ce){var Xe,nt,ut=isMemo(Ce)?Ce.type.type:Ce.type;return!(typeof ut=="function"&&!((Xe=ut.prototype)!==null&&Xe!==void 0&&Xe.render)||typeof Ce=="function"&&!((nt=Ce.prototype)!==null&&nt!==void 0&&nt.render))}var $e={width:0,height:0,left:0,top:0};function Be(Ce,Xe,nt){return(0,De.useMemo)(function(){for(var ut,ft=new Map,Ct=Xe.get((ut=Ce[0])===null||ut===void 0?void 0:ut.key)||$e,wt=Ct.left+Ct.width,sn=0;sn<Ce.length;sn+=1){var En=Ce[sn].key,ur=Xe.get(En);if(!ur){var yr;ur=Xe.get((yr=Ce[sn-1])===null||yr===void 0?void 0:yr.key)||$e}var fr=ft.get(En)||(0,Ee.Z)({},ur);fr.right=wt-fr.left-fr.width,ft.set(En,fr)}return ft},[Ce.map(function(ut){return ut.key}).join("_"),Xe,nt])}function St(Ce,Xe){var nt=De.useRef(Ce),ut=De.useState({}),ft=(0,fe.Z)(ut,2),Ct=ft[1];function wt(sn){var En=typeof sn=="function"?sn(nt.current):sn;En!==nt.current&&Xe(En,nt.current),nt.current=En,Ct({})}return[nt.current,wt]}var Vt=.1,Rt=.01,ht=20,Bt=Math.pow(.995,ht);function _t(Ce,Xe){var nt=(0,De.useState)(),ut=(0,fe.Z)(nt,2),ft=ut[0],Ct=ut[1],wt=(0,De.useState)(0),sn=(0,fe.Z)(wt,2),En=sn[0],ur=sn[1],yr=(0,De.useState)(0),fr=(0,fe.Z)(yr,2),Qn=fr[0],Yn=fr[1],On=(0,De.useState)(),hr=(0,fe.Z)(On,2),zr=hr[0],Er=hr[1],wr=(0,De.useRef)();function Br(ln){var $n=ln.touches[0],mr=$n.screenX,Ft=$n.screenY;Ct({x:mr,y:Ft}),window.clearInterval(wr.current)}function Or(ln){if(ft){ln.preventDefault();var $n=ln.touches[0],mr=$n.screenX,Ft=$n.screenY;Ct({x:mr,y:Ft});var It=mr-ft.x,Ht=Ft-ft.y;Xe(It,Ht);var on=Date.now();ur(on),Yn(on-En),Er({x:It,y:Ht})}}function Wr(){if(ft&&(Ct(null),Er(null),zr)){var ln=zr.x/Qn,$n=zr.y/Qn,mr=Math.abs(ln),Ft=Math.abs($n);if(Math.max(mr,Ft)<Vt)return;var It=ln,Ht=$n;wr.current=window.setInterval(function(){if(Math.abs(It)<Rt&&Math.abs(Ht)<Rt){window.clearInterval(wr.current);return}It*=Bt,Ht*=Bt,Xe(It*ht,Ht*ht)},ht)}}var pt=(0,De.useRef)();function vt(ln){var $n=ln.deltaX,mr=ln.deltaY,Ft=0,It=Math.abs($n),Ht=Math.abs(mr);It===Ht?Ft=pt.current==="x"?$n:mr:It>Ht?(Ft=$n,pt.current="x"):(Ft=mr,pt.current="y"),Xe(-Ft,-Ft)&&ln.preventDefault()}var mn=(0,De.useRef)(null);mn.current={onTouchStart:Br,onTouchMove:Or,onTouchEnd:Wr,onWheel:vt},De.useEffect(function(){function ln(It){mn.current.onTouchStart(It)}function $n(It){mn.current.onTouchMove(It)}function mr(It){mn.current.onTouchEnd(It)}function Ft(It){mn.current.onWheel(It)}return document.addEventListener("touchmove",$n,{passive:!1}),document.addEventListener("touchend",mr,{passive:!1}),Ce.current.addEventListener("touchstart",ln,{passive:!1}),Ce.current.addEventListener("wheel",Ft),function(){document.removeEventListener("touchmove",$n),document.removeEventListener("touchend",mr)}},[])}function Fn(Ce){var Xe=(0,De.useState)(0),nt=(0,fe.Z)(Xe,2),ut=nt[0],ft=nt[1],Ct=(0,De.useRef)(0),wt=(0,De.useRef)();return wt.current=Ce,Ve(function(){var sn;(sn=wt.current)===null||sn===void 0||sn.call(wt)},[ut]),function(){Ct.current===ut&&(Ct.current+=1,ft(Ct.current))}}function kn(Ce){var Xe=(0,De.useRef)([]),nt=(0,De.useState)({}),ut=(0,fe.Z)(nt,2),ft=ut[1],Ct=(0,De.useRef)(typeof Ce=="function"?Ce():Ce),wt=Fn(function(){var En=Ct.current;Xe.current.forEach(function(ur){En=ur(En)}),Xe.current=[],Ct.current=En,ft({})});function sn(En){Xe.current.push(En),wt()}return[Ct.current,sn]}var kt={width:0,height:0,left:0,top:0,right:0};function un(Ce,Xe,nt,ut,ft,Ct,wt){var sn=wt.tabs,En=wt.tabPosition,ur=wt.rtl,yr,fr,Qn;return["top","bottom"].includes(En)?(yr="width",fr=ur?"right":"left",Qn=Math.abs(nt)):(yr="height",fr="top",Qn=-nt),(0,De.useMemo)(function(){if(!sn.length)return[0,0];for(var Yn=sn.length,On=Yn,hr=0;hr<Yn;hr+=1){var zr=Ce.get(sn[hr].key)||kt;if(zr[fr]+zr[yr]>Qn+Xe){On=hr-1;break}}for(var Er=0,wr=Yn-1;wr>=0;wr-=1){var Br=Ce.get(sn[wr].key)||kt;if(Br[fr]<Qn){Er=wr+1;break}}return Er>=On?[0,0]:[Er,On]},[Ce,Xe,ut,ft,Ct,Qn,En,sn.map(function(Yn){return Yn.key}).join("_"),ur])}function Wn(Ce){var Xe;return Ce instanceof Map?(Xe={},Ce.forEach(function(nt,ut){Xe[ut]=nt})):Xe=Ce,JSON.stringify(Xe)}var An="TABS_DQ";function Ie(Ce){return String(Ce).replace(/"/g,An)}function he(Ce,Xe,nt,ut){return!(!nt||ut||Ce===!1||Ce===void 0&&(Xe===!1||Xe===null))}function ce(Ce,Xe){var nt=Ce.prefixCls,ut=Ce.editable,ft=Ce.locale,Ct=Ce.style;return!ut||ut.showAdd===!1?null:De.createElement("button",{ref:Xe,type:"button",className:"".concat(nt,"-nav-add"),style:Ct,"aria-label":(ft==null?void 0:ft.addAriaLabel)||"Add tab",onClick:function(sn){ut.onEdit("add",{event:sn})}},ut.addIcon||"+")}var me=De.forwardRef(ce),pe=De.forwardRef(function(Ce,Xe){var nt=Ce.position,ut=Ce.prefixCls,ft=Ce.extra;if(!ft)return null;var Ct,wt={};return(0,we.Z)(ft)==="object"&&!De.isValidElement(ft)?wt=ft:wt.right=ft,nt==="right"&&(Ct=wt.right),nt==="left"&&(Ct=wt.left),Ct?De.createElement("div",{className:"".concat(ut,"-extra-content"),ref:Xe},Ct):null}),le=pe,Le=te(62709);function dt(Ce,Xe,nt){var ut=React.useRef({});return(!("value"in ut.current)||nt(ut.current.condition,Xe))&&(ut.current.value=Ce(),ut.current.condition=Xe),ut.current.value}function Nt(Ce,Xe){typeof Ce=="function"?Ce(Xe):(0,we.Z)(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=Xe)}function tn(){for(var Ce=arguments.length,Xe=new Array(Ce),nt=0;nt<Ce;nt++)Xe[nt]=arguments[nt];var ut=Xe.filter(function(ft){return ft});return ut.length<=1?ut[0]:function(ft){Xe.forEach(function(Ct){Nt(Ct,ft)})}}function an(){for(var Ce=arguments.length,Xe=new Array(Ce),nt=0;nt<Ce;nt++)Xe[nt]=arguments[nt];return useMemo(function(){return tn.apply(void 0,Xe)},Xe,function(ut,ft){return ut.length===ft.length&&ut.every(function(Ct,wt){return Ct===ft[wt]})})}function Yt(Ce){var Xe,nt,ut=(0,je.isMemo)(Ce)?Ce.type.type:Ce.type;return!(typeof ut=="function"&&!((Xe=ut.prototype)!==null&&Xe!==void 0&&Xe.render)||typeof Ce=="function"&&!((nt=Ce.prototype)!==null&&nt!==void 0&&nt.render))}var dn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Xe){var nt=Xe.keyCode;if(Xe.altKey&&!Xe.ctrlKey||Xe.metaKey||nt>=dn.F1&&nt<=dn.F12)return!1;switch(nt){case dn.ALT:case dn.CAPS_LOCK:case dn.CONTEXT_MENU:case dn.CTRL:case dn.DOWN:case dn.END:case dn.ESC:case dn.HOME:case dn.INSERT:case dn.LEFT:case dn.MAC_FF_META:case dn.META:case dn.NUMLOCK:case dn.NUM_CENTER:case dn.PAGE_DOWN:case dn.PAGE_UP:case dn.PAUSE:case dn.PRINT_SCREEN:case dn.RIGHT:case dn.SHIFT:case dn.UP:case dn.WIN_KEY:case dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Xe){if(Xe>=dn.ZERO&&Xe<=dn.NINE||Xe>=dn.NUM_ZERO&&Xe<=dn.NUM_MULTIPLY||Xe>=dn.A&&Xe<=dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Xe===0)return!0;switch(Xe){case dn.SPACE:case dn.QUESTION_MARK:case dn.NUM_PLUS:case dn.NUM_MINUS:case dn.NUM_PERIOD:case dn.NUM_DIVISION:case dn.SEMICOLON:case dn.DASH:case dn.EQUALS:case dn.COMMA:case dn.PERIOD:case dn.SLASH:case dn.APOSTROPHE:case dn.SINGLE_QUOTE:case dn.OPEN_SQUARE_BRACKET:case dn.BACKSLASH:case dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Mt=dn,Wt=function(Xe){return+setTimeout(Xe,16)},qt=function(Xe){return clearTimeout(Xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Wt=function(Xe){return window.requestAnimationFrame(Xe)},qt=function(Xe){return window.cancelAnimationFrame(Xe)});var Gt=0,jt=new Map;function sr(Ce){jt.delete(Ce)}var Dt=function(Xe){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Gt+=1;var ut=Gt;function ft(Ct){if(Ct===0)sr(ut),Xe();else{var wt=Wt(function(){ft(Ct-1)});jt.set(ut,wt)}}return ft(nt),ut};Dt.cancel=function(Ce){var Xe=jt.get(Ce);return sr(Xe),qt(Xe)};var Jt=Dt,Gn=Mt.ESC,Bn=Mt.TAB;function Sn(Ce){var Xe=Ce.visible,nt=Ce.triggerRef,ut=Ce.onVisibleChange,ft=Ce.autoFocus,Ct=Ce.overlayRef,wt=De.useRef(!1),sn=function(){if(Xe){var fr,Qn;(fr=nt.current)===null||fr===void 0||(Qn=fr.focus)===null||Qn===void 0||Qn.call(fr),ut==null||ut(!1)}},En=function(){var fr;return(fr=Ct.current)!==null&&fr!==void 0&&fr.focus?(Ct.current.focus(),wt.current=!0,!0):!1},ur=function(fr){switch(fr.keyCode){case Gn:sn();break;case Bn:{var Qn=!1;wt.current||(Qn=En()),Qn?fr.preventDefault():sn();break}}};De.useEffect(function(){return Xe?(window.addEventListener("keydown",ur),ft&&Jt(En,3),function(){window.removeEventListener("keydown",ur),wt.current=!1}):function(){wt.current=!1}},[Xe])}var or=(0,De.forwardRef)(function(Ce,Xe){var nt=Ce.overlay,ut=Ce.arrow,ft=Ce.prefixCls,Ct=(0,De.useMemo)(function(){var sn;return typeof nt=="function"?sn=nt():sn=nt,sn},[nt]),wt=tn(Xe,Ct==null?void 0:Ct.ref);return De.createElement(De.Fragment,null,ut&&De.createElement("div",{className:"".concat(ft,"-arrow")}),De.cloneElement(Ct,{ref:Yt(Ct)?wt:void 0}))}),gr=or,kr={adjustX:1,adjustY:1},Lr=[0,0],Qr={topLeft:{points:["bl","tl"],overflow:kr,offset:[0,-4],targetOffset:Lr},top:{points:["bc","tc"],overflow:kr,offset:[0,-4],targetOffset:Lr},topRight:{points:["br","tr"],overflow:kr,offset:[0,-4],targetOffset:Lr},bottomLeft:{points:["tl","bl"],overflow:kr,offset:[0,4],targetOffset:Lr},bottom:{points:["tc","bc"],overflow:kr,offset:[0,4],targetOffset:Lr},bottomRight:{points:["tr","br"],overflow:kr,offset:[0,4],targetOffset:Lr}},Ir=Qr,Dn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function cr(Ce,Xe){var nt,ut=Ce.arrow,ft=ut===void 0?!1:ut,Ct=Ce.prefixCls,wt=Ct===void 0?"rc-dropdown":Ct,sn=Ce.transitionName,En=Ce.animation,ur=Ce.align,yr=Ce.placement,fr=yr===void 0?"bottomLeft":yr,Qn=Ce.placements,Yn=Qn===void 0?Ir:Qn,On=Ce.getPopupContainer,hr=Ce.showAction,zr=Ce.hideAction,Er=Ce.overlayClassName,wr=Ce.overlayStyle,Br=Ce.visible,Or=Ce.trigger,Wr=Or===void 0?["hover"]:Or,pt=Ce.autoFocus,vt=Ce.overlay,mn=Ce.children,ln=Ce.onVisibleChange,$n=(0,Ue.Z)(Ce,Dn),mr=De.useState(),Ft=(0,fe.Z)(mr,2),It=Ft[0],Ht=Ft[1],on="visible"in Ce?Br:It,Vn=De.useRef(null),dr=De.useRef(null),Kn=De.useRef(null);De.useImperativeHandle(Xe,function(){return Vn.current});var rr=function(Kr){Ht(Kr),ln==null||ln(Kr)};Sn({visible:on,triggerRef:Kn,onVisibleChange:rr,autoFocus:pt,overlayRef:dr});var Fr=function(Kr){var Wi=Ce.onOverlayClick;Ht(!1),Wi&&Wi(Kr)},ii=function(){return De.createElement(gr,{ref:dr,overlay:vt,prefixCls:wt,arrow:ft})},Zr=function(){return typeof vt=="function"?ii:ii()},Ar=function(){var Kr=Ce.minOverlayWidthMatchTrigger,Wi=Ce.alignPoint;return"minOverlayWidthMatchTrigger"in Ce?Kr:!Wi},Vr=function(){var Kr=Ce.openClassName;return Kr!==void 0?Kr:"".concat(wt,"-open")},li=De.cloneElement(mn,{className:xe()((nt=mn.props)===null||nt===void 0?void 0:nt.className,on&&Vr()),ref:Yt(mn)?tn(Kn,mn.ref):void 0}),Mi=zr;return!Mi&&Wr.indexOf("contextMenu")!==-1&&(Mi=["click"]),De.createElement(Le.Z,(0,Me.Z)({builtinPlacements:Yn},$n,{prefixCls:wt,ref:Vn,popupClassName:xe()(Er,(0,ue.Z)({},"".concat(wt,"-show-arrow"),ft)),popupStyle:wr,action:Wr,showAction:hr,hideAction:Mi,popupPlacement:fr,popupAlign:ur,popupTransitionName:sn,popupAnimation:En,popupVisible:on,stretch:Ar()?"minWidth":"",popup:Zr(),onPopupVisibleChange:rr,onPopupClick:Fr,getPopupContainer:On}),li)}var vr=De.forwardRef(cr),Ur=vr,ti=te(78595),Kt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Xe){var nt=Xe.keyCode;if(Xe.altKey&&!Xe.ctrlKey||Xe.metaKey||nt>=Kt.F1&&nt<=Kt.F12)return!1;switch(nt){case Kt.ALT:case Kt.CAPS_LOCK:case Kt.CONTEXT_MENU:case Kt.CTRL:case Kt.DOWN:case Kt.END:case Kt.ESC:case Kt.HOME:case Kt.INSERT:case Kt.LEFT:case Kt.MAC_FF_META:case Kt.META:case Kt.NUMLOCK:case Kt.NUM_CENTER:case Kt.PAGE_DOWN:case Kt.PAGE_UP:case Kt.PAUSE:case Kt.PRINT_SCREEN:case Kt.RIGHT:case Kt.SHIFT:case Kt.UP:case Kt.WIN_KEY:case Kt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Xe){if(Xe>=Kt.ZERO&&Xe<=Kt.NINE||Xe>=Kt.NUM_ZERO&&Xe<=Kt.NUM_MULTIPLY||Xe>=Kt.A&&Xe<=Kt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Xe===0)return!0;switch(Xe){case Kt.SPACE:case Kt.QUESTION_MARK:case Kt.NUM_PLUS:case Kt.NUM_MINUS:case Kt.NUM_PERIOD:case Kt.NUM_DIVISION:case Kt.SEMICOLON:case Kt.DASH:case Kt.EQUALS:case Kt.COMMA:case Kt.PERIOD:case Kt.SLASH:case Kt.APOSTROPHE:case Kt.SINGLE_QUOTE:case Kt.OPEN_SQUARE_BRACKET:case Kt.BACKSLASH:case Kt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_n=Kt;function nn(Ce,Xe){var nt=Ce.prefixCls,ut=Ce.id,ft=Ce.tabs,Ct=Ce.locale,wt=Ce.mobile,sn=Ce.moreIcon,En=sn===void 0?"More":sn,ur=Ce.moreTransitionName,yr=Ce.style,fr=Ce.className,Qn=Ce.editable,Yn=Ce.tabBarGutter,On=Ce.rtl,hr=Ce.removeAriaLabel,zr=Ce.onTabClick,Er=Ce.getPopupContainer,wr=Ce.popupClassName,Br=(0,De.useState)(!1),Or=(0,fe.Z)(Br,2),Wr=Or[0],pt=Or[1],vt=(0,De.useState)(null),mn=(0,fe.Z)(vt,2),ln=mn[0],$n=mn[1],mr="".concat(ut,"-more-popup"),Ft="".concat(nt,"-dropdown"),It=ln!==null?"".concat(mr,"-").concat(ln):null,Ht=Ct==null?void 0:Ct.dropdownAriaLabel;function on(Zr,Ar){Zr.preventDefault(),Zr.stopPropagation(),Qn.onEdit("remove",{key:Ar,event:Zr})}var Vn=De.createElement(ti.ZP,{onClick:function(Ar){var Vr=Ar.key,li=Ar.domEvent;zr(Vr,li),pt(!1)},prefixCls:"".concat(Ft,"-menu"),id:mr,tabIndex:-1,role:"listbox","aria-activedescendant":It,selectedKeys:[ln],"aria-label":Ht!==void 0?Ht:"expanded dropdown"},ft.map(function(Zr){var Ar=Zr.closable,Vr=Zr.disabled,li=Zr.closeIcon,Mi=Zr.key,si=Zr.label,Kr=he(Ar,li,Qn,Vr);return De.createElement(ti.sN,{key:Mi,id:"".concat(mr,"-").concat(Mi),role:"option","aria-controls":ut&&"".concat(ut,"-panel-").concat(Mi),disabled:Vr},De.createElement("span",null,si),Kr&&De.createElement("button",{type:"button","aria-label":hr||"remove",tabIndex:0,className:"".concat(Ft,"-menu-item-remove"),onClick:function(Zi){Zi.stopPropagation(),on(Zi,Mi)}},li||Qn.removeIcon||"\xD7"))}));function dr(Zr){for(var Ar=ft.filter(function(Kr){return!Kr.disabled}),Vr=Ar.findIndex(function(Kr){return Kr.key===ln})||0,li=Ar.length,Mi=0;Mi<li;Mi+=1){Vr=(Vr+Zr+li)%li;var si=Ar[Vr];if(!si.disabled){$n(si.key);return}}}function Kn(Zr){var Ar=Zr.which;if(!Wr){[_n.DOWN,_n.SPACE,_n.ENTER].includes(Ar)&&(pt(!0),Zr.preventDefault());return}switch(Ar){case _n.UP:dr(-1),Zr.preventDefault();break;case _n.DOWN:dr(1),Zr.preventDefault();break;case _n.ESC:pt(!1);break;case _n.SPACE:case _n.ENTER:ln!==null&&zr(ln,Zr);break}}(0,De.useEffect)(function(){var Zr=document.getElementById(It);Zr&&Zr.scrollIntoView&&Zr.scrollIntoView(!1)},[ln]),(0,De.useEffect)(function(){Wr||$n(null)},[Wr]);var rr=(0,ue.Z)({},On?"marginRight":"marginLeft",Yn);ft.length||(rr.visibility="hidden",rr.order=1);var Fr=xe()((0,ue.Z)({},"".concat(Ft,"-rtl"),On)),ii=wt?null:De.createElement(Ur,{prefixCls:Ft,overlay:Vn,trigger:["hover"],visible:ft.length?Wr:!1,transitionName:ur,onVisibleChange:pt,overlayClassName:xe()(Fr,wr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Er},De.createElement("button",{type:"button",className:"".concat(nt,"-nav-more"),style:rr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":mr,id:"".concat(ut,"-more"),"aria-expanded":Wr,onKeyDown:Kn},En));return De.createElement("div",{className:xe()("".concat(nt,"-nav-operations"),fr),style:yr,ref:Xe},ii,De.createElement(me,{prefixCls:nt,locale:Ct,editable:Qn}))}var In=De.memo(De.forwardRef(nn),function(Ce,Xe){return Xe.tabMoving});function nr(Ce){var Xe,nt=Ce.prefixCls,ut=Ce.id,ft=Ce.active,Ct=Ce.tab,wt=Ct.key,sn=Ct.label,En=Ct.disabled,ur=Ct.closeIcon,yr=Ce.closable,fr=Ce.renderWrapper,Qn=Ce.removeAriaLabel,Yn=Ce.editable,On=Ce.onClick,hr=Ce.onFocus,zr=Ce.style,Er="".concat(nt,"-tab"),wr=he(yr,ur,Yn,En);function Br(pt){En||On(pt)}function Or(pt){pt.preventDefault(),pt.stopPropagation(),Yn.onEdit("remove",{key:wt,event:pt})}var Wr=De.createElement("div",{key:wt,"data-node-key":Ie(wt),className:xe()(Er,(Xe={},(0,ue.Z)(Xe,"".concat(Er,"-with-remove"),wr),(0,ue.Z)(Xe,"".concat(Er,"-active"),ft),(0,ue.Z)(Xe,"".concat(Er,"-disabled"),En),Xe)),style:zr,onClick:Br},De.createElement("div",{role:"tab","aria-selected":ft,id:ut&&"".concat(ut,"-tab-").concat(wt),className:"".concat(Er,"-btn"),"aria-controls":ut&&"".concat(ut,"-panel-").concat(wt),"aria-disabled":En,tabIndex:En?null:0,onClick:function(vt){vt.stopPropagation(),Br(vt)},onKeyDown:function(vt){[_n.SPACE,_n.ENTER].includes(vt.which)&&(vt.preventDefault(),Br(vt))},onFocus:hr},sn),wr&&De.createElement("button",{type:"button","aria-label":Qn||"remove",tabIndex:0,className:"".concat(Er,"-remove"),onClick:function(vt){vt.stopPropagation(),Or(vt)}},ur||Yn.removeIcon||"\xD7"));return fr?fr(Wr):Wr}var Rr=nr,Pr=function(Xe){return+setTimeout(Xe,16)},br=function(Xe){return clearTimeout(Xe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Pr=function(Xe){return window.requestAnimationFrame(Xe)},br=function(Xe){return window.cancelAnimationFrame(Xe)});var xt=0,$t=new Map;function fn(Ce){$t.delete(Ce)}var Mn=function(Xe){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;xt+=1;var ut=xt;function ft(Ct){if(Ct===0)fn(ut),Xe();else{var wt=Pr(function(){ft(Ct-1)});$t.set(ut,wt)}}return ft(nt),ut};Mn.cancel=function(Ce){var Xe=$t.get(Ce);return fn(Xe),br(Xe)};var yt=Mn,Ut=function(Xe){var nt=Xe.activeTabOffset,ut=Xe.horizontal,ft=Xe.rtl,Ct=Xe.indicatorSize,wt=(0,De.useState)(),sn=(0,fe.Z)(wt,2),En=sn[0],ur=sn[1],yr=(0,De.useRef)(),fr=function(On){return typeof Ct=="function"?Ct(On):typeof Ct=="number"?Ct:On};function Qn(){yt.cancel(yr.current)}return(0,De.useEffect)(function(){var Yn={};return nt&&(ut?(ft?(Yn.right=nt.right+nt.width/2,Yn.transform="translateX(50%)"):(Yn.left=nt.left+nt.width/2,Yn.transform="translateX(-50%)"),Yn.width=fr(nt.width)):(Yn.top=nt.top+nt.height/2,Yn.transform="translateY(-50%)",Yn.height=fr(nt.height))),Qn(),yr.current=yt(function(){ur(Yn)}),Qn},[nt,ut,ft,Ct]),{style:En}},Cn=Ut,cn=function(Xe){var nt=Xe.current||{},ut=nt.offsetWidth,ft=ut===void 0?0:ut,Ct=nt.offsetHeight,wt=Ct===void 0?0:Ct;return[ft,wt]},zn=function(Xe,nt){return Xe[nt?0:1]};function Hn(Ce,Xe){var nt,ut=De.useContext(ze),ft=ut.prefixCls,Ct=ut.tabs,wt=Ce.className,sn=Ce.style,En=Ce.id,ur=Ce.animated,yr=Ce.activeKey,fr=Ce.rtl,Qn=Ce.extra,Yn=Ce.editable,On=Ce.locale,hr=Ce.tabPosition,zr=Ce.tabBarGutter,Er=Ce.children,wr=Ce.onTabClick,Br=Ce.onTabScroll,Or=Ce.indicatorSize,Wr=(0,De.useRef)(),pt=(0,De.useRef)(),vt=(0,De.useRef)(),mn=(0,De.useRef)(),ln=(0,De.useRef)(),$n=(0,De.useRef)(),mr=(0,De.useRef)(),Ft=hr==="top"||hr==="bottom",It=St(0,function(Yi,Ai){Ft&&Br&&Br({direction:Yi>Ai?"left":"right"})}),Ht=(0,fe.Z)(It,2),on=Ht[0],Vn=Ht[1],dr=St(0,function(Yi,Ai){!Ft&&Br&&Br({direction:Yi>Ai?"top":"bottom"})}),Kn=(0,fe.Z)(dr,2),rr=Kn[0],Fr=Kn[1],ii=(0,De.useState)([0,0]),Zr=(0,fe.Z)(ii,2),Ar=Zr[0],Vr=Zr[1],li=(0,De.useState)([0,0]),Mi=(0,fe.Z)(li,2),si=Mi[0],Kr=Mi[1],Wi=(0,De.useState)([0,0]),Zi=(0,fe.Z)(Wi,2),Na=Zi[0],Ha=Zi[1],La=(0,De.useState)([0,0]),Ea=(0,fe.Z)(La,2),Ra=Ea[0],va=Ea[1],oo=kn(new Map),Ca=(0,fe.Z)(oo,2),Qi=Ca[0],ja=Ca[1],bo=Be(Ct,Qi,si[0]),ca=zn(Ar,Ft),Vo=zn(si,Ft),Go=zn(Na,Ft),tl=zn(Ra,Ft),zo=ca<Vo+Go,no=zo?ca-tl:ca-Go,kl="".concat(ft,"-nav-operations-hidden"),Co=0,_a=0;Ft&&fr?(Co=0,_a=Math.max(0,Vo-no)):(Co=Math.min(0,no-Vo),_a=0);function Ao(Yi){return Yi<Co?Co:Yi>_a?_a:Yi}var ml=(0,De.useRef)(),Ko=(0,De.useState)(),$o=(0,fe.Z)(Ko,2),Ya=$o[0],yl=$o[1];function Il(){yl(Date.now())}function xl(){window.clearTimeout(ml.current)}_t(mn,function(Yi,Ai){function ki(ya,Ye){ya(function(tt){var zt=Ao(tt+Ye);return zt})}return zo?(Ft?ki(Vn,Yi):ki(Fr,Ai),xl(),Il(),!0):!1}),(0,De.useEffect)(function(){return xl(),Ya&&(ml.current=window.setTimeout(function(){yl(0)},100)),xl},[Ya]);var il=un(bo,no,Ft?on:rr,Vo,Go,tl,(0,Ee.Z)((0,Ee.Z)({},Ce),{},{tabs:Ct})),El=(0,fe.Z)(il,2),Al=El[0],Bl=El[1],Ol=rt(function(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yr,Ai=bo.get(Yi)||{width:0,height:0,left:0,right:0,top:0};if(Ft){var ki=on;fr?Ai.right<on?ki=Ai.right:Ai.right+Ai.width>on+no&&(ki=Ai.right+Ai.width-no):Ai.left<-on?ki=-Ai.left:Ai.left+Ai.width>-on+no&&(ki=-(Ai.left+Ai.width-no)),Fr(0),Vn(Ao(ki))}else{var ya=rr;Ai.top<-rr?ya=-Ai.top:Ai.top+Ai.height>-rr+no&&(ya=-(Ai.top+Ai.height-no)),Vn(0),Fr(Ao(ya))}}),Lt={};hr==="top"||hr==="bottom"?Lt[fr?"marginRight":"marginLeft"]=zr:Lt.marginTop=zr;var rn=Ct.map(function(Yi,Ai){var ki=Yi.key;return De.createElement(Rr,{id:En,prefixCls:ft,key:ki,tab:Yi,style:Ai===0?void 0:Lt,closable:Yi.closable,editable:Yn,active:ki===yr,renderWrapper:Er,removeAriaLabel:On==null?void 0:On.removeAriaLabel,onClick:function(Ye){wr(ki,Ye)},onFocus:function(){Ol(ki),Il(),mn.current&&(fr||(mn.current.scrollLeft=0),mn.current.scrollTop=0)}})}),gn=function(){return ja(function(){var Ai=new Map;return Ct.forEach(function(ki){var ya,Ye=ki.key,tt=(ya=ln.current)===null||ya===void 0?void 0:ya.querySelector('[data-node-key="'.concat(Ie(Ye),'"]'));tt&&Ai.set(Ye,{width:tt.offsetWidth,height:tt.offsetHeight,left:tt.offsetLeft,top:tt.offsetTop})}),Ai})};(0,De.useEffect)(function(){gn()},[Ct.map(function(Yi){return Yi.key}).join("_")]);var Xn=Fn(function(){var Yi=cn(Wr),Ai=cn(pt),ki=cn(vt);Vr([Yi[0]-Ai[0]-ki[0],Yi[1]-Ai[1]-ki[1]]);var ya=cn(mr);Ha(ya);var Ye=cn($n);va(Ye);var tt=cn(ln);Kr([tt[0]-ya[0],tt[1]-ya[1]]),gn()}),ta=Ct.slice(0,Al),ui=Ct.slice(Bl+1),wi=[].concat((0,Ae.Z)(ta),(0,Ae.Z)(ui)),bi=bo.get(yr),Oi=Cn({activeTabOffset:bi,horizontal:Ft,rtl:fr,indicatorSize:Or}),Pa=Oi.style;(0,De.useEffect)(function(){Ol()},[yr,Co,_a,Wn(bi),Wn(bo),Ft]),(0,De.useEffect)(function(){Xn()},[fr]);var fa=!!wi.length,ro="".concat(ft,"-nav-wrap"),Qo,xo,xi,Sa;return Ft?fr?(xo=on>0,Qo=on!==_a):(Qo=on<0,xo=on!==Co):(xi=rr<0,Sa=rr!==Co),De.createElement(mt.Z,{onResize:Xn},De.createElement("div",{ref:Pt(Xe,Wr),role:"tablist",className:xe()("".concat(ft,"-nav"),wt),style:sn,onKeyDown:function(){Il()}},De.createElement(le,{ref:pt,position:"left",extra:Qn,prefixCls:ft}),De.createElement(mt.Z,{onResize:Xn},De.createElement("div",{className:xe()(ro,(nt={},(0,ue.Z)(nt,"".concat(ro,"-ping-left"),Qo),(0,ue.Z)(nt,"".concat(ro,"-ping-right"),xo),(0,ue.Z)(nt,"".concat(ro,"-ping-top"),xi),(0,ue.Z)(nt,"".concat(ro,"-ping-bottom"),Sa),nt)),ref:mn},De.createElement(mt.Z,{onResize:Xn},De.createElement("div",{ref:ln,className:"".concat(ft,"-nav-list"),style:{transform:"translate(".concat(on,"px, ").concat(rr,"px)"),transition:Ya?"none":void 0}},rn,De.createElement(me,{ref:mr,prefixCls:ft,locale:On,editable:Yn,style:(0,Ee.Z)((0,Ee.Z)({},rn.length===0?void 0:Lt),{},{visibility:fa?"hidden":null})}),De.createElement("div",{className:xe()("".concat(ft,"-ink-bar"),(0,ue.Z)({},"".concat(ft,"-ink-bar-animated"),ur.inkBar)),style:Pa}))))),De.createElement(In,(0,Me.Z)({},Ce,{removeAriaLabel:On==null?void 0:On.removeAriaLabel,ref:$n,prefixCls:ft,tabs:wi,className:!fa&&kl,tabMoving:!!Ya})),De.createElement(le,{ref:vt,position:"right",extra:Qn,prefixCls:ft})))}var Mr=De.forwardRef(Hn),gi=["renderTabBar"],Xr=["label","key"];function Gr(Ce){var Xe=Ce.renderTabBar,nt=(0,Ue.Z)(Ce,gi),ut=De.useContext(ze),ft=ut.tabs;if(Xe){var Ct=(0,Ee.Z)((0,Ee.Z)({},nt),{},{panes:ft.map(function(wt){var sn=wt.label,En=wt.key,ur=(0,Ue.Z)(wt,Xr);return De.createElement(st,(0,Me.Z)({tab:sn,key:En,tabKey:En},ur))})});return Xe(Ct,Mr)}return De.createElement(Mr,nt)}var di={},ci=[],Si=function(Xe){ci.push(Xe)};function Jn(Ce,Xe){if(0)var nt}function Jr(Ce,Xe){if(0)var nt}function Oa(){di={}}function Qa(Ce,Xe,nt){!Xe&&!di[nt]&&(Ce(!1,nt),di[nt]=!0)}function Li(Ce,Xe){Qa(Jn,Ce,Xe)}function qi(Ce,Xe){Qa(Jr,Ce,Xe)}Li.preMessage=Si,Li.resetWarned=Oa,Li.noteOnce=qi;var $a=null;function zi(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Xe;return Ce===!1?Xe={inkBar:!1,tabPane:!1}:Ce===!0?Xe={inkBar:!0,tabPane:!1}:Xe=(0,Ee.Z)({inkBar:!0},(0,we.Z)(Ce)==="object"?Ce:{}),Xe.tabPaneMotion&&Xe.tabPane===void 0&&(Xe.tabPane=!0),!Xe.tabPaneMotion&&Xe.tabPane&&(Xe.tabPane=!1),Xe}var to=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],_r=0;function Wo(Ce,Xe){var nt,ut=Ce.id,ft=Ce.prefixCls,Ct=ft===void 0?"rc-tabs":ft,wt=Ce.className,sn=Ce.items,En=Ce.direction,ur=Ce.activeKey,yr=Ce.defaultActiveKey,fr=Ce.editable,Qn=Ce.animated,Yn=Ce.tabPosition,On=Yn===void 0?"top":Yn,hr=Ce.tabBarGutter,zr=Ce.tabBarStyle,Er=Ce.tabBarExtraContent,wr=Ce.locale,Br=Ce.moreIcon,Or=Ce.moreTransitionName,Wr=Ce.destroyInactiveTabPane,pt=Ce.renderTabBar,vt=Ce.onChange,mn=Ce.onTabClick,ln=Ce.onTabScroll,$n=Ce.getPopupContainer,mr=Ce.popupClassName,Ft=Ce.indicatorSize,It=(0,Ue.Z)(Ce,to),Ht=De.useMemo(function(){return(sn||[]).filter(function(va){return va&&(0,we.Z)(va)==="object"&&"key"in va})},[sn]),on=En==="rtl",Vn=zi(Qn),dr=(0,De.useState)(!1),Kn=(0,fe.Z)(dr,2),rr=Kn[0],Fr=Kn[1];(0,De.useEffect)(function(){Fr(Ke())},[]);var ii=ve(function(){var va;return(va=Ht[0])===null||va===void 0?void 0:va.key},{value:ur,defaultValue:yr}),Zr=(0,fe.Z)(ii,2),Ar=Zr[0],Vr=Zr[1],li=(0,De.useState)(function(){return Ht.findIndex(function(va){return va.key===Ar})}),Mi=(0,fe.Z)(li,2),si=Mi[0],Kr=Mi[1];(0,De.useEffect)(function(){var va=Ht.findIndex(function(Ca){return Ca.key===Ar});if(va===-1){var oo;va=Math.max(0,Math.min(si,Ht.length-1)),Vr((oo=Ht[va])===null||oo===void 0?void 0:oo.key)}Kr(va)},[Ht.map(function(va){return va.key}).join("_"),Ar,si]);var Wi=ve(null,{value:ut}),Zi=(0,fe.Z)(Wi,2),Na=Zi[0],Ha=Zi[1];(0,De.useEffect)(function(){ut||(Ha("rc-tabs-".concat(_r)),_r+=1)},[]);function La(va,oo){mn==null||mn(va,oo);var Ca=va!==Ar;Vr(va),Ca&&(vt==null||vt(va))}var Ea={id:Na,activeKey:Ar,animated:Vn,tabPosition:On,rtl:on,mobile:rr},Ra=(0,Ee.Z)((0,Ee.Z)({},Ea),{},{editable:fr,locale:wr,moreIcon:Br,moreTransitionName:Or,tabBarGutter:hr,onTabClick:La,onTabScroll:ln,extra:Er,style:zr,panes:null,getPopupContainer:$n,popupClassName:mr,indicatorSize:Ft});return De.createElement(ze.Provider,{value:{tabs:Ht,prefixCls:Ct}},De.createElement("div",(0,Me.Z)({ref:Xe,id:ut,className:xe()(Ct,"".concat(Ct,"-").concat(On),(nt={},(0,ue.Z)(nt,"".concat(Ct,"-mobile"),rr),(0,ue.Z)(nt,"".concat(Ct,"-editable"),fr),(0,ue.Z)(nt,"".concat(Ct,"-rtl"),on),nt),wt)},It),De.createElement(Gr,(0,Me.Z)({},Ra,{renderTabBar:pt})),De.createElement(Ze,(0,Me.Z)({destroyInactiveTabPane:Wr},Ea,{animated:Vn}))))}var _o=De.forwardRef(Wo),bl=_o,jo=bl,Po=te(53124),la=te(98675),No=()=>null,rl=te(33603);const vl={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ll(Ce){let Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},nt;return Xe===!1?nt={inkBar:!1,tabPane:!1}:Xe===!0?nt={inkBar:!0,tabPane:!0}:nt=Object.assign({inkBar:!0},typeof Xe=="object"?Xe:{}),nt.tabPane&&(nt.tabPaneMotion=Object.assign(Object.assign({},vl),{motionName:(0,rl.m)(Ce,"switch")})),nt}var Uo=te(37419),gl=function(Ce,Xe){var nt={};for(var ut in Ce)Object.prototype.hasOwnProperty.call(Ce,ut)&&Xe.indexOf(ut)<0&&(nt[ut]=Ce[ut]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ut=Object.getOwnPropertySymbols(Ce);ft<ut.length;ft++)Xe.indexOf(ut[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ut[ft])&&(nt[ut[ft]]=Ce[ut[ft]]);return nt};function wl(Ce){return Ce.filter(Xe=>Xe)}function dl(Ce,Xe){if(Ce)return Ce;const nt=(0,Uo.Z)(Xe).map(ut=>{if(De.isValidElement(ut)){const{key:ft,props:Ct}=ut,wt=Ct||{},{tab:sn}=wt,En=gl(wt,["tab"]);return Object.assign(Object.assign({key:String(ft)},En),{label:sn})}return null});return wl(nt)}var io=te(14747),wn=te(67968),pn=te(45503),ar=te(67771),Yr=Ce=>{const{componentCls:Xe,motionDurationSlow:nt}=Ce;return[{[Xe]:{[`${Xe}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${nt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${nt}`}}}}},[(0,ar.oN)(Ce,"slide-up"),(0,ar.oN)(Ce,"slide-down")]]};const $i=Ce=>{const{componentCls:Xe,tabsCardPadding:nt,cardBg:ut,cardGutter:ft,colorBorderSecondary:Ct,itemSelectedColor:wt}=Ce;return{[`${Xe}-card`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{margin:0,padding:nt,background:ut,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ct}`,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOut}`},[`${Xe}-tab-active`]:{color:wt,background:Ce.colorBgContainer},[`${Xe}-ink-bar`]:{visibility:"hidden"}},[`&${Xe}-top, &${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginLeft:{_skip_check_:!0,value:`${ft}px`}}}},[`&${Xe}-top`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:`${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0 0`},[`${Xe}-tab-active`]:{borderBottomColor:Ce.colorBgContainer}}},[`&${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:`0 0 ${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px`},[`${Xe}-tab-active`]:{borderTopColor:Ce.colorBgContainer}}},[`&${Xe}-left, &${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginTop:`${ft}px`}}},[`&${Xe}-left`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce.borderRadiusLG}px 0 0 ${Ce.borderRadiusLG}px`}},[`${Xe}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ce.colorBgContainer}}}},[`&${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0`}},[`${Xe}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ce.colorBgContainer}}}}}}},ia=Ce=>{const{componentCls:Xe,itemHoverColor:nt,dropdownEdgeChildVerticalPadding:ut}=Ce;return{[`${Xe}-dropdown`]:Object.assign(Object.assign({},(0,io.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ce.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Xe}-dropdown-menu`]:{maxHeight:Ce.tabsDropdownHeight,margin:0,padding:`${ut}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ce.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,"&-item":Object.assign(Object.assign({},io.vS),{display:"flex",alignItems:"center",minWidth:Ce.tabsDropdownWidth,margin:0,padding:`${Ce.paddingXXS}px ${Ce.paddingSM}px`,color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${Ce.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ce.marginSM},color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:nt}},"&:hover":{background:Ce.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ce.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},sa=Ce=>{const{componentCls:Xe,margin:nt,colorBorderSecondary:ut,horizontalMargin:ft,verticalItemPadding:Ct,verticalItemMargin:wt}=Ce;return{[`${Xe}-top, ${Xe}-bottom`]:{flexDirection:"column",[`> ${Xe}-nav, > div > ${Xe}-nav`]:{margin:ft,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ce.lineWidth}px ${Ce.lineType} ${ut}`,content:"''"},[`${Xe}-ink-bar`]:{height:Ce.lineWidthBold,"&-animated":{transition:`width ${Ce.motionDurationSlow}, left ${Ce.motionDurationSlow},
right ${Ce.motionDurationSlow}`}},[`${Xe}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ce.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ce.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ce.boxShadowTabsOverflowRight},[`&${Xe}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Xe}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Xe}-top`]:{[`> ${Xe}-nav,
> div > ${Xe}-nav`]:{"&::before":{bottom:0},[`${Xe}-ink-bar`]:{bottom:0}}},[`${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{order:1,marginTop:`${nt}px`,marginBottom:0,"&::before":{top:0},[`${Xe}-ink-bar`]:{top:0}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{order:0}},[`${Xe}-left, ${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{flexDirection:"column",minWidth:Ce.controlHeight*1.25,[`${Xe}-tab`]:{padding:Ct,textAlign:"center"},[`${Xe}-tab + ${Xe}-tab`]:{margin:wt},[`${Xe}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ce.controlHeight},"&::before":{top:0,boxShadow:Ce.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ce.boxShadowTabsOverflowBottom},[`&${Xe}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Xe}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Xe}-ink-bar`]:{width:Ce.lineWidthBold,"&-animated":{transition:`height ${Ce.motionDurationSlow}, top ${Ce.motionDurationSlow}`}},[`${Xe}-nav-list, ${Xe}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Xe}-left`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ce.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`},[`> ${Xe}-content > ${Xe}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ce.paddingLG}}}},[`${Xe}-right`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{order:1,[`${Xe}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Xe}-content-holder, > div > ${Xe}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ce.lineWidth},borderRight:{_skip_check_:!0,value:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`},[`> ${Xe}-content > ${Xe}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ce.paddingLG}}}}}},ka=Ce=>{const{componentCls:Xe,cardPaddingSM:nt,cardPaddingLG:ut,horizontalItemPaddingSM:ft,horizontalItemPaddingLG:Ct}=Ce;return{[Xe]:{"&-small":{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:ft,fontSize:Ce.titleFontSizeSM}}},"&-large":{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:Ct,fontSize:Ce.titleFontSizeLG}}}},[`${Xe}-card`]:{[`&${Xe}-small`]:{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:nt}},[`&${Xe}-bottom`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:`0 0 ${Ce.borderRadius}px ${Ce.borderRadius}px`}},[`&${Xe}-top`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:`${Ce.borderRadius}px ${Ce.borderRadius}px 0 0`}},[`&${Xe}-right`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce.borderRadius}px ${Ce.borderRadius}px 0`}}},[`&${Xe}-left`]:{[`> ${Xe}-nav ${Xe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce.borderRadius}px 0 0 ${Ce.borderRadius}px`}}}},[`&${Xe}-large`]:{[`> ${Xe}-nav`]:{[`${Xe}-tab`]:{padding:ut}}}}}},ga=Ce=>{const{componentCls:Xe,itemActiveColor:nt,itemHoverColor:ut,iconCls:ft,tabsHorizontalItemMargin:Ct,horizontalItemPadding:wt,itemSelectedColor:sn,itemColor:En}=Ce,ur=`${Xe}-tab`;return{[ur]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:wt,fontSize:Ce.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:En,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:nt}},(0,io.Qy)(Ce)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ce.marginXXS},marginLeft:{_skip_check_:!0,value:Ce.marginXS},color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ce.motionDurationSlow}`,"&:hover":{color:Ce.colorTextHeading}},"&:hover":{color:ut},[`&${ur}-active ${ur}-btn`]:{color:sn,textShadow:Ce.tabsActiveTextShadow},[`&${ur}-disabled`]:{color:Ce.colorTextDisabled,cursor:"not-allowed"},[`&${ur}-disabled ${ur}-btn, &${ur}-disabled ${Xe}-remove`]:{"&:focus, &:active":{color:Ce.colorTextDisabled}},[`& ${ur}-remove ${ft}`]:{margin:0},[ft]:{marginRight:{_skip_check_:!0,value:Ce.marginSM}}},[`${ur} + ${ur}`]:{margin:{_skip_check_:!0,value:Ct}}}},ho=Ce=>{const{componentCls:Xe,tabsHorizontalItemMarginRTL:nt,iconCls:ut,cardGutter:ft}=Ce;return{[`${Xe}-rtl`]:{direction:"rtl",[`${Xe}-nav`]:{[`${Xe}-tab`]:{margin:{_skip_check_:!0,value:nt},[`${Xe}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[ut]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ce.marginSM}px`}},[`${Xe}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ce.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ce.marginXXS}px`},[ut]:{margin:0}}}},[`&${Xe}-left`]:{[`> ${Xe}-nav`]:{order:1},[`> ${Xe}-content-holder`]:{order:0}},[`&${Xe}-right`]:{[`> ${Xe}-nav`]:{order:0},[`> ${Xe}-content-holder`]:{order:1}},[`&${Xe}-card${Xe}-top, &${Xe}-card${Xe}-bottom`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-tab + ${Xe}-tab`]:{marginRight:{_skip_check_:!0,value:ft},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Xe}-dropdown-rtl`]:{direction:"rtl"},[`${Xe}-menu-item`]:{[`${Xe}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ao=Ce=>{const{componentCls:Xe,tabsCardPadding:nt,cardHeight:ut,cardGutter:ft,itemHoverColor:Ct,itemActiveColor:wt,colorBorderSecondary:sn}=Ce;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,io.Wf)(Ce)),{display:"flex",[`> ${Xe}-nav, > div > ${Xe}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Xe}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Ce.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Xe}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ce.motionDurationSlow}`},[`${Xe}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Xe}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Xe}-nav-more`]:{position:"relative",padding:nt,background:"transparent",border:0,color:Ce.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ce.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Xe}-nav-add`]:Object.assign({minWidth:ut,marginLeft:{_skip_check_:!0,value:ft},padding:`0 ${Ce.paddingXS}px`,background:"transparent",border:`${Ce.lineWidth}px ${Ce.lineType} ${sn}`,borderRadius:`${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ce.colorText,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOut}`,"&:hover":{color:Ct},"&:active, &:focus:not(:focus-visible)":{color:wt}},(0,io.Qy)(Ce))},[`${Xe}-extra-content`]:{flex:"none"},[`${Xe}-ink-bar`]:{position:"absolute",background:Ce.inkBarColor,pointerEvents:"none"}}),ga(Ce)),{[`${Xe}-content`]:{position:"relative",width:"100%"},[`${Xe}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Xe}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Xe}-centered`]:{[`> ${Xe}-nav, > div > ${Xe}-nav`]:{[`${Xe}-nav-wrap`]:{[`&:not([class*='${Xe}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var mo=(0,wn.Z)("Tabs",Ce=>{const Xe=(0,pn.TS)(Ce,{tabsCardPadding:Ce.cardPadding||`${(Ce.cardHeight-Math.round(Ce.fontSize*Ce.lineHeight))/2-Ce.lineWidth}px ${Ce.padding}px`,dropdownEdgeChildVerticalPadding:Ce.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ce.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ce.horizontalItemGutter}px`});return[ka(Xe),ho(Xe),sa(Xe),ia(Xe),$i(Xe),ao(Xe),Yr(Xe)]},Ce=>{const Xe=Ce.controlHeightLG;return{zIndexPopup:Ce.zIndexPopupBase+50,cardBg:Ce.colorFillAlter,cardHeight:Xe,cardPadding:"",cardPaddingSM:`${Ce.paddingXXS*1.5}px ${Ce.padding}px`,cardPaddingLG:`${Ce.paddingXS}px ${Ce.padding}px ${Ce.paddingXXS*1.5}px`,titleFontSize:Ce.fontSize,titleFontSizeLG:Ce.fontSizeLG,titleFontSizeSM:Ce.fontSize,inkBarColor:Ce.colorPrimary,horizontalMargin:`0 0 ${Ce.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ce.paddingSM}px 0`,horizontalItemPaddingSM:`${Ce.paddingXS}px 0`,horizontalItemPaddingLG:`${Ce.padding}px 0`,verticalItemPadding:`${Ce.paddingXS}px ${Ce.paddingLG}px`,verticalItemMargin:`${Ce.margin}px 0 0 0`,itemColor:Ce.colorText,itemSelectedColor:Ce.colorPrimary,itemHoverColor:Ce.colorPrimaryHover,itemActiveColor:Ce.colorPrimaryActive,cardGutter:Ce.marginXXS/2}}),Un=function(Ce,Xe){var nt={};for(var ut in Ce)Object.prototype.hasOwnProperty.call(Ce,ut)&&Xe.indexOf(ut)<0&&(nt[ut]=Ce[ut]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ut=Object.getOwnPropertySymbols(Ce);ft<ut.length;ft++)Xe.indexOf(ut[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ut[ft])&&(nt[ut[ft]]=Ce[ut[ft]]);return nt};const ir=Ce=>{const{type:Xe,className:nt,rootClassName:ut,size:ft,onEdit:Ct,hideAdd:wt,centered:sn,addIcon:En,popupClassName:ur,children:yr,items:fr,animated:Qn,style:Yn,indicatorSize:On}=Ce,hr=Un(Ce,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:zr,moreIcon:Er=De.createElement(de.Z,null)}=hr,{direction:wr,tabs:Br,getPrefixCls:Or,getPopupContainer:Wr}=De.useContext(Po.E_),pt=Or("tabs",zr),[vt,mn]=mo(pt);let ln;Xe==="editable-card"&&(ln={onEdit:(on,Vn)=>{let{key:dr,event:Kn}=Vn;Ct==null||Ct(on==="add"?Kn:dr,on)},removeIcon:De.createElement(ee.Z,null),addIcon:En||De.createElement(ke.Z,null),showAdd:wt!==!0});const $n=Or(),mr=dl(fr,yr),Ft=ll(pt,Qn),It=(0,la.Z)(ft),Ht=Object.assign(Object.assign({},Br==null?void 0:Br.style),Yn);return vt(De.createElement(jo,Object.assign({direction:wr,getPopupContainer:Wr,moreTransitionName:`${$n}-slide-up`},hr,{items:mr,className:xe()({[`${pt}-${It}`]:It,[`${pt}-card`]:["card","editable-card"].includes(Xe),[`${pt}-editable-card`]:Xe==="editable-card",[`${pt}-centered`]:sn},Br==null?void 0:Br.className,nt,ut,mn),popupClassName:xe()(ur,mn),style:Ht,editable:ln,moreIcon:Er,prefixCls:pt,animated:Ft,indicatorSize:On!=null?On:Br==null?void 0:Br.indicatorSize})))};ir.TabPane=No;var Sr=ir},66309:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ze}});var ee=te(67294),de=te(73475),ke=te(94184),Ge=te.n(ke),xe=te(98787),Me=te(69760),ue=te(45353),Ee=te(53124),fe=te(14747),we=te(45503),Ue=te(67968);const De=Ae=>{const{paddingXXS:mt,lineWidth:je,tagPaddingHorizontal:it,componentCls:qe}=Ae,gt=it-je,Pt=mt-je;return{[qe]:Object.assign(Object.assign({},(0,fe.Wf)(Ae)),{display:"inline-block",height:"auto",marginInlineEnd:Ae.marginXS,paddingInline:gt,fontSize:Ae.tagFontSize,lineHeight:Ae.tagLineHeight,whiteSpace:"nowrap",background:Ae.defaultBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadiusSM,opacity:1,transition:`all ${Ae.motionDurationMid}`,textAlign:"start",position:"relative",[`&${qe}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Ae.defaultColor},[`${qe}-close-icon`]:{marginInlineStart:Pt,color:Ae.colorTextDescription,fontSize:Ae.tagIconSize,cursor:"pointer",transition:`all ${Ae.motionDurationMid}`,"&:hover":{color:Ae.colorTextHeading}},[`&${qe}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Ae.iconCls}-close, ${Ae.iconCls}-close:hover`]:{color:Ae.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${qe}-checkable-checked):hover`]:{color:Ae.colorPrimary,backgroundColor:Ae.colorFillSecondary},"&:active, &-checked":{color:Ae.colorTextLightSolid},"&-checked":{backgroundColor:Ae.colorPrimary,"&:hover":{backgroundColor:Ae.colorPrimaryHover}},"&:active":{backgroundColor:Ae.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Ae.iconCls} + span, > span + ${Ae.iconCls}`]:{marginInlineStart:gt}}),[`${qe}-borderless`]:{borderColor:"transparent",background:Ae.tagBorderlessBg}}},Ke=Ae=>{const{lineWidth:mt,fontSizeIcon:je}=Ae,it=Ae.fontSizeSM,qe=`${Ae.lineHeightSM*it}px`;return(0,we.TS)(Ae,{tagFontSize:it,tagLineHeight:qe,tagIconSize:je-2*mt,tagPaddingHorizontal:8,tagBorderlessBg:Ae.colorFillTertiary})},rt=Ae=>({defaultBg:Ae.colorFillQuaternary,defaultColor:Ae.colorText});var Qe=(0,Ue.Z)("Tag",Ae=>{const mt=Ke(Ae);return De(mt)},rt),_e=function(Ae,mt){var je={};for(var it in Ae)Object.prototype.hasOwnProperty.call(Ae,it)&&mt.indexOf(it)<0&&(je[it]=Ae[it]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,it=Object.getOwnPropertySymbols(Ae);qe<it.length;qe++)mt.indexOf(it[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,it[qe])&&(je[it[qe]]=Ae[it[qe]]);return je},Ve=Ae=>{const{prefixCls:mt,style:je,className:it,checked:qe,onChange:gt,onClick:Pt}=Ae,Xt=_e(Ae,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$e,tag:Be}=ee.useContext(Ee.E_),St=_t=>{gt==null||gt(!qe),Pt==null||Pt(_t)},Vt=$e("tag",mt),[Rt,ht]=Qe(Vt),Bt=Ge()(Vt,`${Vt}-checkable`,{[`${Vt}-checkable-checked`]:qe},Be==null?void 0:Be.className,it,ht);return Rt(ee.createElement("span",Object.assign({},Xt,{style:Object.assign(Object.assign({},je),Be==null?void 0:Be.style),className:Bt,onClick:St})))},lt=te(98719);const He=Ae=>(0,lt.Z)(Ae,(mt,je)=>{let{textColor:it,lightBorderColor:qe,lightColor:gt,darkColor:Pt}=je;return{[`${Ae.componentCls}-${mt}`]:{color:it,background:gt,borderColor:qe,"&-inverse":{color:Ae.colorTextLightSolid,background:Pt,borderColor:Pt},[`&${Ae.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Oe=(0,Ue.b)(["Tag","preset"],Ae=>{const mt=Ke(Ae);return He(mt)},rt);function ve(Ae){return typeof Ae!="string"?Ae:Ae.charAt(0).toUpperCase()+Ae.slice(1)}const ye=(Ae,mt,je)=>{const it=ve(je);return{[`${Ae.componentCls}-${mt}`]:{color:Ae[`color${je}`],background:Ae[`color${it}Bg`],borderColor:Ae[`color${it}Border`],[`&${Ae.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ze=(0,Ue.b)(["Tag","status"],Ae=>{const mt=Ke(Ae);return[ye(mt,"success","Success"),ye(mt,"processing","Info"),ye(mt,"error","Error"),ye(mt,"warning","Warning")]},rt),We=function(Ae,mt){var je={};for(var it in Ae)Object.prototype.hasOwnProperty.call(Ae,it)&&mt.indexOf(it)<0&&(je[it]=Ae[it]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,it=Object.getOwnPropertySymbols(Ae);qe<it.length;qe++)mt.indexOf(it[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,it[qe])&&(je[it[qe]]=Ae[it[qe]]);return je};const st=(Ae,mt)=>{const{prefixCls:je,className:it,rootClassName:qe,style:gt,children:Pt,icon:Xt,color:$e,onClose:Be,closeIcon:St,closable:Vt,bordered:Rt=!0}=Ae,ht=We(Ae,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Bt,direction:_t,tag:Fn}=ee.useContext(Ee.E_),[kn,kt]=ee.useState(!0);ee.useEffect(()=>{"visible"in ht&&kt(ht.visible)},[ht.visible]);const un=(0,xe.o2)($e),Wn=(0,xe.yT)($e),An=un||Wn,Ie=Object.assign(Object.assign({backgroundColor:$e&&!An?$e:void 0},Fn==null?void 0:Fn.style),gt),he=Bt("tag",je),[ce,me]=Qe(he),pe=Ge()(he,Fn==null?void 0:Fn.className,{[`${he}-${$e}`]:An,[`${he}-has-color`]:$e&&!An,[`${he}-hidden`]:!kn,[`${he}-rtl`]:_t==="rtl",[`${he}-borderless`]:!Rt},it,qe,me),le=Yt=>{Yt.stopPropagation(),Be==null||Be(Yt),!Yt.defaultPrevented&&kt(!1)},[,Le]=(0,Me.Z)(Vt,St,Yt=>Yt===null?ee.createElement(de.Z,{className:`${he}-close-icon`,onClick:le}):ee.createElement("span",{className:`${he}-close-icon`,onClick:le},Yt),null,!1),dt=typeof ht.onClick=="function"||Pt&&Pt.type==="a",Nt=Xt||null,tn=Nt?ee.createElement(ee.Fragment,null,Nt,Pt&&ee.createElement("span",null,Pt)):Pt,an=ee.createElement("span",Object.assign({},ht,{ref:mt,className:pe,style:Ie}),tn,Le,un&&ee.createElement(Oe,{key:"preset",prefixCls:he}),Wn&&ee.createElement(ze,{key:"status",prefixCls:he}));return ce(dt?ee.createElement(ue.Z,{component:"Tag"},an):an)},at=ee.forwardRef(st);at.CheckableTag=Ve;var Ze=at},79870:function(vn,Tt,te){"use strict";te.d(Tt,{default:function(){return mo}});var ee=te(87462),de=te(4942),ke=te(71002),Ge=te(1413),xe=te(74902),Me=te(15671),ue=te(43144),Ee=te(97326),fe=te(60136),we=te(51630),Ue=te(94184),De=te.n(Ue),Ke={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ir){var Sr=ir.keyCode;if(ir.altKey&&!ir.ctrlKey||ir.metaKey||Sr>=Ke.F1&&Sr<=Ke.F12)return!1;switch(Sr){case Ke.ALT:case Ke.CAPS_LOCK:case Ke.CONTEXT_MENU:case Ke.CTRL:case Ke.DOWN:case Ke.END:case Ke.ESC:case Ke.HOME:case Ke.INSERT:case Ke.LEFT:case Ke.MAC_FF_META:case Ke.META:case Ke.NUMLOCK:case Ke.NUM_CENTER:case Ke.PAGE_DOWN:case Ke.PAGE_UP:case Ke.PAUSE:case Ke.PRINT_SCREEN:case Ke.RIGHT:case Ke.SHIFT:case Ke.UP:case Ke.WIN_KEY:case Ke.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ir){if(ir>=Ke.ZERO&&ir<=Ke.NINE||ir>=Ke.NUM_ZERO&&ir<=Ke.NUM_MULTIPLY||ir>=Ke.A&&ir<=Ke.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ir===0)return!0;switch(ir){case Ke.SPACE:case Ke.QUESTION_MARK:case Ke.NUM_PLUS:case Ke.NUM_MINUS:case Ke.NUM_PERIOD:case Ke.NUM_DIVISION:case Ke.SEMICOLON:case Ke.DASH:case Ke.EQUALS:case Ke.COMMA:case Ke.PERIOD:case Ke.SLASH:case Ke.APOSTROPHE:case Ke.SINGLE_QUOTE:case Ke.OPEN_SQUARE_BRACKET:case Ke.BACKSLASH:case Ke.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rt=Ke,Qe=te(34952),_e=te(72978),ge=te(67294),Ve=te(69610);function lt(Un){var ir=Un.dropPosition,Sr=Un.dropLevelOffset,Ce=Un.indent,Xe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ir){case-1:Xe.top=0,Xe.left=-Sr*Ce;break;case 1:Xe.bottom=0,Xe.left=-Sr*Ce;break;case 0:Xe.bottom=0,Xe.left=Ce;break}return ge.createElement("div",{style:Xe})}var He=te(36459),Oe=te(97685),ve=te(45987);function ye(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ze=ye()?ge.useLayoutEffect:ge.useEffect,We=ze,st=function(ir,Sr){var Ce=React.useRef(!0);ze(function(){if(!Ce.current)return ir()},Sr),ze(function(){return Ce.current=!1,function(){Ce.current=!0}},[])},at=te(73299),Ze=te(73935);function Ae(Un){return Un instanceof HTMLElement||Un instanceof SVGElement}function mt(Un){return Ae(Un)?Un:Un instanceof ge.Component?Ze.findDOMNode(Un):null}var je=te(28580);function it(Un,ir,Sr){var Ce=React.useRef({});return(!("value"in Ce.current)||Sr(Ce.current.condition,ir))&&(Ce.current.value=Un(),Ce.current.condition=ir),Ce.current.value}function qe(Un,ir){typeof Un=="function"?Un(ir):(0,ke.Z)(Un)==="object"&&Un&&"current"in Un&&(Un.current=ir)}function gt(){for(var Un=arguments.length,ir=new Array(Un),Sr=0;Sr<Un;Sr++)ir[Sr]=arguments[Sr];var Ce=ir.filter(function(Xe){return Xe});return Ce.length<=1?Ce[0]:function(Xe){ir.forEach(function(nt){qe(nt,Xe)})}}function Pt(){for(var Un=arguments.length,ir=new Array(Un),Sr=0;Sr<Un;Sr++)ir[Sr]=arguments[Sr];return useMemo(function(){return gt.apply(void 0,ir)},ir,function(Ce,Xe){return Ce.length===Xe.length&&Ce.every(function(nt,ut){return nt===Xe[ut]})})}function Xt(Un){var ir,Sr,Ce=(0,je.isMemo)(Un)?Un.type.type:Un.type;return!(typeof Ce=="function"&&!((ir=Ce.prototype)!==null&&ir!==void 0&&ir.render)||typeof Un=="function"&&!((Sr=Un.prototype)!==null&&Sr!==void 0&&Sr.render))}function $e(Un,ir){var Sr={};return Sr[Un.toLowerCase()]=ir.toLowerCase(),Sr["Webkit".concat(Un)]="webkit".concat(ir),Sr["Moz".concat(Un)]="moz".concat(ir),Sr["ms".concat(Un)]="MS".concat(ir),Sr["O".concat(Un)]="o".concat(ir.toLowerCase()),Sr}function Be(Un,ir){var Sr={animationend:$e("Animation","AnimationEnd"),transitionend:$e("Transition","TransitionEnd")};return Un&&("AnimationEvent"in ir||delete Sr.animationend.animation,"TransitionEvent"in ir||delete Sr.transitionend.transition),Sr}var St=Be(ye(),typeof window!="undefined"?window:{}),Vt={};if(ye()){var Rt=document.createElement("div");Vt=Rt.style}var ht={};function Bt(Un){if(ht[Un])return ht[Un];var ir=St[Un];if(ir)for(var Sr=Object.keys(ir),Ce=Sr.length,Xe=0;Xe<Ce;Xe+=1){var nt=Sr[Xe];if(Object.prototype.hasOwnProperty.call(ir,nt)&&nt in Vt)return ht[Un]=ir[nt],ht[Un]}return""}var _t=Bt("animationend"),Fn=Bt("transitionend"),kn=!!(_t&&Fn),kt=_t||"animationend",un=Fn||"transitionend";function Wn(Un,ir){if(!Un)return null;if((0,ke.Z)(Un)==="object"){var Sr=ir.replace(/-\w/g,function(Ce){return Ce[1].toUpperCase()});return Un[Sr]}return"".concat(Un,"-").concat(ir)}var An="none",Ie="appear",he="enter",ce="leave",me="none",pe="prepare",le="start",Le="active",dt="end";function Nt(Un){var ir=ge.useRef(!1),Sr=ge.useState(Un),Ce=(0,Oe.Z)(Sr,2),Xe=Ce[0],nt=Ce[1];ge.useEffect(function(){return ir.current=!1,function(){ir.current=!0}},[]);function ut(ft,Ct){Ct&&ir.current||nt(ft)}return[Xe,ut]}var tn=function(ir){return+setTimeout(ir,16)},an=function(ir){return clearTimeout(ir)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(tn=function(ir){return window.requestAnimationFrame(ir)},an=function(ir){return window.cancelAnimationFrame(ir)});var Yt=0,dn=new Map;function Mt(Un){dn.delete(Un)}var Wt=function(ir){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Yt+=1;var Ce=Yt;function Xe(nt){if(nt===0)Mt(Ce),ir();else{var ut=tn(function(){Xe(nt-1)});dn.set(Ce,ut)}}return Xe(Sr),Ce};Wt.cancel=function(Un){var ir=dn.get(Un);return Mt(ir),an(ir)};var qt=Wt,Gt=function(){var Un=ge.useRef(null);function ir(){qt.cancel(Un.current)}function Sr(Ce){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;ir();var nt=qt(function(){Xe<=1?Ce({isCanceled:function(){return nt!==Un.current}}):Sr(Ce,Xe-1)});Un.current=nt}return ge.useEffect(function(){return function(){ir()}},[]),[Sr,ir]},jt=ye()?ge.useLayoutEffect:ge.useEffect,sr=jt,Dt=[pe,le,Le,dt],Jt=!1,Gn=!0;function Bn(Un){return Un===Le||Un===dt}var Sn=function(Un,ir){var Sr=Nt(me),Ce=(0,Oe.Z)(Sr,2),Xe=Ce[0],nt=Ce[1],ut=Gt(),ft=(0,Oe.Z)(ut,2),Ct=ft[0],wt=ft[1];function sn(){nt(pe,!0)}return sr(function(){if(Xe!==me&&Xe!==dt){var En=Dt.indexOf(Xe),ur=Dt[En+1],yr=ir(Xe);yr===Jt?nt(ur,!0):Ct(function(fr){function Qn(){fr.isCanceled()||nt(ur,!0)}yr===!0?Qn():Promise.resolve(yr).then(Qn)})}},[Un,Xe]),ge.useEffect(function(){return function(){wt()}},[]),[sn,Xe]},or=function(Un){var ir=(0,ge.useRef)(),Sr=(0,ge.useRef)(Un);Sr.current=Un;var Ce=ge.useCallback(function(ut){Sr.current(ut)},[]);function Xe(ut){ut&&(ut.removeEventListener(un,Ce),ut.removeEventListener(kt,Ce))}function nt(ut){ir.current&&ir.current!==ut&&Xe(ir.current),ut&&ut!==ir.current&&(ut.addEventListener(un,Ce),ut.addEventListener(kt,Ce),ir.current=ut)}return ge.useEffect(function(){return function(){Xe(ir.current)}},[]),[nt,Xe]};function gr(Un,ir,Sr,Ce){var Xe=Ce.motionEnter,nt=Xe===void 0?!0:Xe,ut=Ce.motionAppear,ft=ut===void 0?!0:ut,Ct=Ce.motionLeave,wt=Ct===void 0?!0:Ct,sn=Ce.motionDeadline,En=Ce.motionLeaveImmediately,ur=Ce.onAppearPrepare,yr=Ce.onEnterPrepare,fr=Ce.onLeavePrepare,Qn=Ce.onAppearStart,Yn=Ce.onEnterStart,On=Ce.onLeaveStart,hr=Ce.onAppearActive,zr=Ce.onEnterActive,Er=Ce.onLeaveActive,wr=Ce.onAppearEnd,Br=Ce.onEnterEnd,Or=Ce.onLeaveEnd,Wr=Ce.onVisibleChanged,pt=Nt(),vt=(0,Oe.Z)(pt,2),mn=vt[0],ln=vt[1],$n=Nt(An),mr=(0,Oe.Z)($n,2),Ft=mr[0],It=mr[1],Ht=Nt(null),on=(0,Oe.Z)(Ht,2),Vn=on[0],dr=on[1],Kn=(0,ge.useRef)(!1),rr=(0,ge.useRef)(null);function Fr(){return Sr()}var ii=(0,ge.useRef)(!1);function Zr(Ea){var Ra=Fr();if(!(Ea&&!Ea.deadline&&Ea.target!==Ra)){var va=ii.current,oo;Ft===Ie&&va?oo=wr==null?void 0:wr(Ra,Ea):Ft===he&&va?oo=Br==null?void 0:Br(Ra,Ea):Ft===ce&&va&&(oo=Or==null?void 0:Or(Ra,Ea)),Ft!==An&&va&&oo!==!1&&(It(An,!0),dr(null,!0))}}var Ar=or(Zr),Vr=(0,Oe.Z)(Ar,1),li=Vr[0],Mi=ge.useMemo(function(){var Ea,Ra,va;switch(Ft){case Ie:return Ea={},(0,de.Z)(Ea,pe,ur),(0,de.Z)(Ea,le,Qn),(0,de.Z)(Ea,Le,hr),Ea;case he:return Ra={},(0,de.Z)(Ra,pe,yr),(0,de.Z)(Ra,le,Yn),(0,de.Z)(Ra,Le,zr),Ra;case ce:return va={},(0,de.Z)(va,pe,fr),(0,de.Z)(va,le,On),(0,de.Z)(va,Le,Er),va;default:return{}}},[Ft]),si=Sn(Ft,function(Ea){if(Ea===pe){var Ra=Mi[pe];return Ra?Ra(Fr()):Jt}if(Zi in Mi){var va;dr(((va=Mi[Zi])===null||va===void 0?void 0:va.call(Mi,Fr(),null))||null)}return Zi===Le&&(li(Fr()),sn>0&&(clearTimeout(rr.current),rr.current=setTimeout(function(){Zr({deadline:!0})},sn))),Gn}),Kr=(0,Oe.Z)(si,2),Wi=Kr[0],Zi=Kr[1],Na=Bn(Zi);ii.current=Na,sr(function(){ln(ir);var Ea=Kn.current;if(Kn.current=!0,!!Un){var Ra;!Ea&&ir&&ft&&(Ra=Ie),Ea&&ir&&nt&&(Ra=he),(Ea&&!ir&&wt||!Ea&&En&&!ir&&wt)&&(Ra=ce),Ra&&(It(Ra),Wi())}},[ir]),(0,ge.useEffect)(function(){(Ft===Ie&&!ft||Ft===he&&!nt||Ft===ce&&!wt)&&It(An)},[ft,nt,wt]),(0,ge.useEffect)(function(){return function(){Kn.current=!1,clearTimeout(rr.current)}},[]);var Ha=ge.useRef(!1);(0,ge.useEffect)(function(){mn&&(Ha.current=!0),mn!==void 0&&Ft===An&&((Ha.current||mn)&&(Wr==null||Wr(mn)),Ha.current=!0)},[mn,Ft]);var La=Vn;return Mi[pe]&&Zi===le&&(La=(0,Ge.Z)({transition:"none"},La)),[Ft,Zi,La,mn!=null?mn:ir]}var kr=function(Un){(0,fe.Z)(Sr,Un);var ir=(0,we.Z)(Sr);function Sr(){return(0,Me.Z)(this,Sr),ir.apply(this,arguments)}return(0,ue.Z)(Sr,[{key:"render",value:function(){return this.props.children}}]),Sr}(ge.Component),Lr=kr;function Qr(Un){var ir=Un;(0,ke.Z)(Un)==="object"&&(ir=Un.transitionSupport);function Sr(Xe){return!!(Xe.motionName&&ir)}var Ce=ge.forwardRef(function(Xe,nt){var ut=Xe.visible,ft=ut===void 0?!0:ut,Ct=Xe.removeOnLeave,wt=Ct===void 0?!0:Ct,sn=Xe.forceRender,En=Xe.children,ur=Xe.motionName,yr=Xe.leavedClassName,fr=Xe.eventProps,Qn=Sr(Xe),Yn=(0,ge.useRef)(),On=(0,ge.useRef)();function hr(){try{return Yn.current instanceof HTMLElement?Yn.current:mt(On.current)}catch(Ht){return null}}var zr=gr(Qn,ft,hr,Xe),Er=(0,Oe.Z)(zr,4),wr=Er[0],Br=Er[1],Or=Er[2],Wr=Er[3],pt=ge.useRef(Wr);Wr&&(pt.current=!0);var vt=ge.useCallback(function(Ht){Yn.current=Ht,qe(nt,Ht)},[nt]),mn,ln=(0,Ge.Z)((0,Ge.Z)({},fr),{},{visible:ft});if(!En)mn=null;else if(wr===An||!Sr(Xe))Wr?mn=En((0,Ge.Z)({},ln),vt):!wt&&pt.current&&yr?mn=En((0,Ge.Z)((0,Ge.Z)({},ln),{},{className:yr}),vt):sn||!wt&&!yr?mn=En((0,Ge.Z)((0,Ge.Z)({},ln),{},{style:{display:"none"}}),vt):mn=null;else{var $n,mr;Br===pe?mr="prepare":Bn(Br)?mr="active":Br===le&&(mr="start"),mn=En((0,Ge.Z)((0,Ge.Z)({},ln),{},{className:De()(Wn(ur,wr),($n={},(0,de.Z)($n,Wn(ur,"".concat(wr,"-").concat(mr)),mr),(0,de.Z)($n,ur,typeof ur=="string"),$n)),style:Or}),vt)}if(ge.isValidElement(mn)&&Xt(mn)){var Ft=mn,It=Ft.ref;It||(mn=ge.cloneElement(mn,{ref:vt}))}return ge.createElement(Lr,{ref:On},mn)});return Ce.displayName="CSSMotion",Ce}var Ir=Qr(kn),Dn="add",cr="keep",vr="remove",Ur="removed";function ti(Un){var ir;return Un&&(0,ke.Z)(Un)==="object"&&"key"in Un?ir=Un:ir={key:Un},(0,Ge.Z)((0,Ge.Z)({},ir),{},{key:String(ir.key)})}function Kt(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Un.map(ti)}function _n(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sr=[],Ce=0,Xe=ir.length,nt=Kt(Un),ut=Kt(ir);nt.forEach(function(wt){for(var sn=!1,En=Ce;En<Xe;En+=1){var ur=ut[En];if(ur.key===wt.key){Ce<En&&(Sr=Sr.concat(ut.slice(Ce,En).map(function(yr){return(0,Ge.Z)((0,Ge.Z)({},yr),{},{status:Dn})})),Ce=En),Sr.push((0,Ge.Z)((0,Ge.Z)({},ur),{},{status:cr})),Ce+=1,sn=!0;break}}sn||Sr.push((0,Ge.Z)((0,Ge.Z)({},wt),{},{status:vr}))}),Ce<Xe&&(Sr=Sr.concat(ut.slice(Ce).map(function(wt){return(0,Ge.Z)((0,Ge.Z)({},wt),{},{status:Dn})})));var ft={};Sr.forEach(function(wt){var sn=wt.key;ft[sn]=(ft[sn]||0)+1});var Ct=Object.keys(ft).filter(function(wt){return ft[wt]>1});return Ct.forEach(function(wt){Sr=Sr.filter(function(sn){var En=sn.key,ur=sn.status;return En!==wt||ur!==vr}),Sr.forEach(function(sn){sn.key===wt&&(sn.status=cr)})}),Sr}var nn=["component","children","onVisibleChanged","onAllRemoved"],In=["status"],nr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Rr(Un){var ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ir,Sr=function(Ce){(0,fe.Z)(nt,Ce);var Xe=(0,we.Z)(nt);function nt(){var ut;(0,Me.Z)(this,nt);for(var ft=arguments.length,Ct=new Array(ft),wt=0;wt<ft;wt++)Ct[wt]=arguments[wt];return ut=Xe.call.apply(Xe,[this].concat(Ct)),(0,de.Z)((0,Ee.Z)(ut),"state",{keyEntities:[]}),(0,de.Z)((0,Ee.Z)(ut),"removeKey",function(sn){var En=ut.state.keyEntities,ur=En.map(function(yr){return yr.key!==sn?yr:(0,Ge.Z)((0,Ge.Z)({},yr),{},{status:Ur})});return ut.setState({keyEntities:ur}),ur.filter(function(yr){var fr=yr.status;return fr!==Ur}).length}),ut}return(0,ue.Z)(nt,[{key:"render",value:function(){var ft=this,Ct=this.state.keyEntities,wt=this.props,sn=wt.component,En=wt.children,ur=wt.onVisibleChanged,yr=wt.onAllRemoved,fr=(0,ve.Z)(wt,nn),Qn=sn||ge.Fragment,Yn={};return nr.forEach(function(On){Yn[On]=fr[On],delete fr[On]}),delete fr.keys,ge.createElement(Qn,fr,Ct.map(function(On){var hr=On.status,zr=(0,ve.Z)(On,In),Er=hr===Dn||hr===cr;return ge.createElement(ir,(0,ee.Z)({},Yn,{key:zr.key,visible:Er,eventProps:zr,onVisibleChanged:function(Br){if(ur==null||ur(Br,{key:zr.key}),!Br){var Or=ft.removeKey(zr.key);Or===0&&yr&&yr()}}}),En)}))}}],[{key:"getDerivedStateFromProps",value:function(ft,Ct){var wt=ft.keys,sn=Ct.keyEntities,En=Kt(wt),ur=_n(sn,En);return{keyEntities:ur.filter(function(yr){var fr=sn.find(function(Qn){var Yn=Qn.key;return yr.key===Yn});return!(fr&&fr.status===Ur&&yr.status===vr)})}}}]),nt}(ge.Component);return(0,de.Z)(Sr,"defaultProps",{component:"div"}),Sr}var Pr=Rr(kn),br=Ir,xt=te(56261);function $t(Un,ir){var Sr=ge.useState(!1),Ce=(0,Oe.Z)(Sr,2),Xe=Ce[0],nt=Ce[1];ge.useLayoutEffect(function(){if(Xe)return Un(),function(){ir()}},[Xe]),ge.useLayoutEffect(function(){return nt(!0),function(){nt(!1)}},[])}var fn=te(83898),Mn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yt=function(ir,Sr){var Ce=ir.className,Xe=ir.style,nt=ir.motion,ut=ir.motionNodes,ft=ir.motionType,Ct=ir.onMotionStart,wt=ir.onMotionEnd,sn=ir.active,En=ir.treeNodeRequiredProps,ur=(0,ve.Z)(ir,Mn),yr=ge.useState(!0),fr=(0,Oe.Z)(yr,2),Qn=fr[0],Yn=fr[1],On=ge.useContext(Ve.k),hr=On.prefixCls,zr=ut&&ft!=="hide";We(function(){ut&&zr!==Qn&&Yn(zr)},[ut]);var Er=function(){ut&&Ct()},wr=ge.useRef(!1),Br=function(){ut&&!wr.current&&(wr.current=!0,wt())};$t(Er,Br);var Or=function(pt){zr===pt&&Br()};return ut?ge.createElement(br,(0,ee.Z)({ref:Sr,visible:Qn},nt,{motionAppear:ft==="show",onVisibleChanged:Or}),function(Wr,pt){var vt=Wr.className,mn=Wr.style;return ge.createElement("div",{ref:pt,className:De()("".concat(hr,"-treenode-motion"),vt),style:mn},ut.map(function(ln){var $n=(0,ee.Z)({},((0,He.Z)(ln.data),ln.data)),mr=ln.title,Ft=ln.key,It=ln.isStart,Ht=ln.isEnd;delete $n.children;var on=(0,fn.H8)(Ft,En);return ge.createElement(xt.Z,(0,ee.Z)({},$n,on,{title:mr,active:sn,data:ln.data,key:Ft,isStart:It,isEnd:Ht}))}))}):ge.createElement(xt.Z,(0,ee.Z)({domRef:Sr,className:Ce,style:Xe},ur,{active:sn}))};yt.displayName="MotionTreeNode";var Ut=ge.forwardRef(yt),Cn=Ut;function cn(){var Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Sr=Un.length,Ce=ir.length;if(Math.abs(Sr-Ce)!==1)return{add:!1,key:null};function Xe(nt,ut){var ft=new Map;nt.forEach(function(wt){ft.set(wt,!0)});var Ct=ut.filter(function(wt){return!ft.has(wt)});return Ct.length===1?Ct[0]:null}return Sr<Ce?{add:!0,key:Xe(Un,ir)}:{add:!1,key:Xe(ir,Un)}}function zn(Un,ir,Sr){var Ce=Un.findIndex(function(ft){return ft.key===Sr}),Xe=Un[Ce+1],nt=ir.findIndex(function(ft){return ft.key===Sr});if(Xe){var ut=ir.findIndex(function(ft){return ft.key===Xe.key});return ir.slice(nt+1,ut)}return ir.slice(nt+1)}var Hn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Mr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gi=function(){},Xr="RC_TREE_MOTION_".concat(Math.random()),Gr={key:Xr},di={key:Xr,level:0,index:0,pos:"0",node:Gr,nodes:[Gr]},ci={parent:null,children:[],pos:di.pos,data:Gr,title:null,key:Xr,isStart:[],isEnd:[]};function Si(Un,ir,Sr,Ce){return ir===!1||!Sr?Un:Un.slice(0,Math.ceil(Sr/Ce)+1)}function Jn(Un){var ir=Un.key,Sr=Un.pos;return(0,fn.km)(ir,Sr)}function Jr(Un){for(var ir=String(Un.data.key),Sr=Un;Sr.parent;)Sr=Sr.parent,ir="".concat(Sr.data.key," > ").concat(ir);return ir}var Oa=ge.forwardRef(function(Un,ir){var Sr=Un.prefixCls,Ce=Un.data,Xe=Un.selectable,nt=Un.checkable,ut=Un.expandedKeys,ft=Un.selectedKeys,Ct=Un.checkedKeys,wt=Un.loadedKeys,sn=Un.loadingKeys,En=Un.halfCheckedKeys,ur=Un.keyEntities,yr=Un.disabled,fr=Un.dragging,Qn=Un.dragOverNodeKey,Yn=Un.dropPosition,On=Un.motion,hr=Un.height,zr=Un.itemHeight,Er=Un.virtual,wr=Un.focusable,Br=Un.activeItem,Or=Un.focused,Wr=Un.tabIndex,pt=Un.onKeyDown,vt=Un.onFocus,mn=Un.onBlur,ln=Un.onActiveChange,$n=Un.onListChangeStart,mr=Un.onListChangeEnd,Ft=(0,ve.Z)(Un,Hn),It=ge.useRef(null),Ht=ge.useRef(null);ge.useImperativeHandle(ir,function(){return{scrollTo:function(ja){It.current.scrollTo(ja)},getIndentWidth:function(){return Ht.current.offsetWidth}}});var on=ge.useState(ut),Vn=(0,Oe.Z)(on,2),dr=Vn[0],Kn=Vn[1],rr=ge.useState(Ce),Fr=(0,Oe.Z)(rr,2),ii=Fr[0],Zr=Fr[1],Ar=ge.useState(Ce),Vr=(0,Oe.Z)(Ar,2),li=Vr[0],Mi=Vr[1],si=ge.useState([]),Kr=(0,Oe.Z)(si,2),Wi=Kr[0],Zi=Kr[1],Na=ge.useState(null),Ha=(0,Oe.Z)(Na,2),La=Ha[0],Ea=Ha[1],Ra=ge.useRef(Ce);Ra.current=Ce;function va(){var Qi=Ra.current;Zr(Qi),Mi(Qi),Zi([]),Ea(null),mr()}We(function(){Kn(ut);var Qi=cn(dr,ut);if(Qi.key!==null)if(Qi.add){var ja=ii.findIndex(function(zo){var no=zo.key;return no===Qi.key}),bo=Si(zn(ii,Ce,Qi.key),Er,hr,zr),ca=ii.slice();ca.splice(ja+1,0,ci),Mi(ca),Zi(bo),Ea("show")}else{var Vo=Ce.findIndex(function(zo){var no=zo.key;return no===Qi.key}),Go=Si(zn(Ce,ii,Qi.key),Er,hr,zr),tl=Ce.slice();tl.splice(Vo+1,0,ci),Mi(tl),Zi(Go),Ea("hide")}else ii!==Ce&&(Zr(Ce),Mi(Ce))},[ut,Ce]),ge.useEffect(function(){fr||va()},[fr]);var oo=On?li:Ce,Ca={expandedKeys:ut,selectedKeys:ft,loadedKeys:wt,loadingKeys:sn,checkedKeys:Ct,halfCheckedKeys:En,dragOverNodeKey:Qn,dropPosition:Yn,keyEntities:ur};return ge.createElement(ge.Fragment,null,Or&&Br&&ge.createElement("span",{style:Mr,"aria-live":"assertive"},Jr(Br)),ge.createElement("div",null,ge.createElement("input",{style:Mr,disabled:wr===!1||yr,tabIndex:wr!==!1?Wr:null,onKeyDown:pt,onFocus:vt,onBlur:mn,value:"",onChange:gi,"aria-label":"for screen reader"})),ge.createElement("div",{className:"".concat(Sr,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ge.createElement("div",{className:"".concat(Sr,"-indent")},ge.createElement("div",{ref:Ht,className:"".concat(Sr,"-indent-unit")}))),ge.createElement(at.Z,(0,ee.Z)({},Ft,{data:oo,itemKey:Jn,height:hr,fullHeight:!1,virtual:Er,itemHeight:zr,prefixCls:"".concat(Sr,"-list"),ref:It,onVisibleChange:function(ja,bo){var ca=new Set(ja),Vo=bo.filter(function(Go){return!ca.has(Go)});Vo.some(function(Go){return Jn(Go)===Xr})&&va()}}),function(Qi){var ja=Qi.pos,bo=(0,ee.Z)({},((0,He.Z)(Qi.data),Qi.data)),ca=Qi.title,Vo=Qi.key,Go=Qi.isStart,tl=Qi.isEnd,zo=(0,fn.km)(Vo,ja);delete bo.key,delete bo.children;var no=(0,fn.H8)(zo,Ca);return ge.createElement(Cn,(0,ee.Z)({},bo,no,{title:ca,active:!!Br&&Vo===Br.key,pos:ja,data:Qi.data,isStart:Go,isEnd:tl,motion:On,motionNodes:Vo===Xr?Wi:null,motionType:La,onMotionStart:$n,onMotionEnd:va,treeNodeRequiredProps:Ca,onMouseMove:function(){ln(null)}}))}))});Oa.displayName="NodeList";var Qa=Oa,Li=te(29873),qi=te(97153),$a=te(3596),zi=10,to=function(Un){(0,fe.Z)(Sr,Un);var ir=(0,we.Z)(Sr);function Sr(){var Ce;(0,Me.Z)(this,Sr);for(var Xe=arguments.length,nt=new Array(Xe),ut=0;ut<Xe;ut++)nt[ut]=arguments[ut];return Ce=ir.call.apply(ir,[this].concat(nt)),Ce.destroyed=!1,Ce.delayedDragEnterLogic=void 0,Ce.loadingRetryTimes={},Ce.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,fn.w$)()},Ce.dragStartMousePosition=null,Ce.dragNode=void 0,Ce.currentMouseOverDroppableNodeKey=null,Ce.listRef=ge.createRef(),Ce.onNodeDragStart=function(ft,Ct){var wt=Ce.state,sn=wt.expandedKeys,En=wt.keyEntities,ur=Ce.props.onDragStart,yr=Ct.props.eventKey;Ce.dragNode=Ct,Ce.dragStartMousePosition={x:ft.clientX,y:ft.clientY};var fr=(0,Li._5)(sn,yr);Ce.setState({draggingNodeKey:yr,dragChildrenKeys:(0,Li.wA)(yr,En),indent:Ce.listRef.current.getIndentWidth()}),Ce.setExpandedKeys(fr),window.addEventListener("dragend",Ce.onWindowDragEnd),ur==null||ur({event:ft,node:(0,fn.F)(Ct.props)})},Ce.onNodeDragEnter=function(ft,Ct){var wt=Ce.state,sn=wt.expandedKeys,En=wt.keyEntities,ur=wt.dragChildrenKeys,yr=wt.flattenNodes,fr=wt.indent,Qn=Ce.props,Yn=Qn.onDragEnter,On=Qn.onExpand,hr=Qn.allowDrop,zr=Qn.direction,Er=Ct.props,wr=Er.pos,Br=Er.eventKey,Or=(0,Ee.Z)(Ce),Wr=Or.dragNode;if(Ce.currentMouseOverDroppableNodeKey!==Br&&(Ce.currentMouseOverDroppableNodeKey=Br),!Wr){Ce.resetDragState();return}var pt=(0,Li.OM)(ft,Wr,Ct,fr,Ce.dragStartMousePosition,hr,yr,En,sn,zr),vt=pt.dropPosition,mn=pt.dropLevelOffset,ln=pt.dropTargetKey,$n=pt.dropContainerKey,mr=pt.dropTargetPos,Ft=pt.dropAllowed,It=pt.dragOverNodeKey;if(ur.indexOf(ln)!==-1||!Ft){Ce.resetDragState();return}if(Ce.delayedDragEnterLogic||(Ce.delayedDragEnterLogic={}),Object.keys(Ce.delayedDragEnterLogic).forEach(function(Ht){clearTimeout(Ce.delayedDragEnterLogic[Ht])}),Wr.props.eventKey!==Ct.props.eventKey&&(ft.persist(),Ce.delayedDragEnterLogic[wr]=window.setTimeout(function(){if(Ce.state.draggingNodeKey!==null){var Ht=(0,xe.Z)(sn),on=(0,$a.Z)(En,Ct.props.eventKey);on&&(on.children||[]).length&&(Ht=(0,Li.L0)(sn,Ct.props.eventKey)),"expandedKeys"in Ce.props||Ce.setExpandedKeys(Ht),On==null||On(Ht,{node:(0,fn.F)(Ct.props),expanded:!0,nativeEvent:ft.nativeEvent})}},800)),Wr.props.eventKey===ln&&mn===0){Ce.resetDragState();return}Ce.setState({dragOverNodeKey:It,dropPosition:vt,dropLevelOffset:mn,dropTargetKey:ln,dropContainerKey:$n,dropTargetPos:mr,dropAllowed:Ft}),Yn==null||Yn({event:ft,node:(0,fn.F)(Ct.props),expandedKeys:sn})},Ce.onNodeDragOver=function(ft,Ct){var wt=Ce.state,sn=wt.dragChildrenKeys,En=wt.flattenNodes,ur=wt.keyEntities,yr=wt.expandedKeys,fr=wt.indent,Qn=Ce.props,Yn=Qn.onDragOver,On=Qn.allowDrop,hr=Qn.direction,zr=(0,Ee.Z)(Ce),Er=zr.dragNode;if(Er){var wr=(0,Li.OM)(ft,Er,Ct,fr,Ce.dragStartMousePosition,On,En,ur,yr,hr),Br=wr.dropPosition,Or=wr.dropLevelOffset,Wr=wr.dropTargetKey,pt=wr.dropContainerKey,vt=wr.dropAllowed,mn=wr.dropTargetPos,ln=wr.dragOverNodeKey;sn.indexOf(Wr)!==-1||!vt||(Er.props.eventKey===Wr&&Or===0?Ce.state.dropPosition===null&&Ce.state.dropLevelOffset===null&&Ce.state.dropTargetKey===null&&Ce.state.dropContainerKey===null&&Ce.state.dropTargetPos===null&&Ce.state.dropAllowed===!1&&Ce.state.dragOverNodeKey===null||Ce.resetDragState():Br===Ce.state.dropPosition&&Or===Ce.state.dropLevelOffset&&Wr===Ce.state.dropTargetKey&&pt===Ce.state.dropContainerKey&&mn===Ce.state.dropTargetPos&&vt===Ce.state.dropAllowed&&ln===Ce.state.dragOverNodeKey||Ce.setState({dropPosition:Br,dropLevelOffset:Or,dropTargetKey:Wr,dropContainerKey:pt,dropTargetPos:mn,dropAllowed:vt,dragOverNodeKey:ln}),Yn==null||Yn({event:ft,node:(0,fn.F)(Ct.props)}))}},Ce.onNodeDragLeave=function(ft,Ct){Ce.currentMouseOverDroppableNodeKey===Ct.props.eventKey&&!ft.currentTarget.contains(ft.relatedTarget)&&(Ce.resetDragState(),Ce.currentMouseOverDroppableNodeKey=null);var wt=Ce.props.onDragLeave;wt==null||wt({event:ft,node:(0,fn.F)(Ct.props)})},Ce.onWindowDragEnd=function(ft){Ce.onNodeDragEnd(ft,null,!0),window.removeEventListener("dragend",Ce.onWindowDragEnd)},Ce.onNodeDragEnd=function(ft,Ct){var wt=Ce.props.onDragEnd;Ce.setState({dragOverNodeKey:null}),Ce.cleanDragState(),wt==null||wt({event:ft,node:(0,fn.F)(Ct.props)}),Ce.dragNode=null,window.removeEventListener("dragend",Ce.onWindowDragEnd)},Ce.onNodeDrop=function(ft,Ct){var wt,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,En=Ce.state,ur=En.dragChildrenKeys,yr=En.dropPosition,fr=En.dropTargetKey,Qn=En.dropTargetPos,Yn=En.dropAllowed;if(Yn){var On=Ce.props.onDrop;if(Ce.setState({dragOverNodeKey:null}),Ce.cleanDragState(),fr!==null){var hr=(0,Ge.Z)((0,Ge.Z)({},(0,fn.H8)(fr,Ce.getTreeNodeRequiredProps())),{},{active:((wt=Ce.getActiveItem())===null||wt===void 0?void 0:wt.key)===fr,data:(0,$a.Z)(Ce.state.keyEntities,fr).node}),zr=ur.indexOf(fr)!==-1;(0,_e.ZP)(!zr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Er=(0,Li.yx)(Qn),wr={event:ft,node:(0,fn.F)(hr),dragNode:Ce.dragNode?(0,fn.F)(Ce.dragNode.props):null,dragNodesKeys:[Ce.dragNode.props.eventKey].concat(ur),dropToGap:yr!==0,dropPosition:yr+Number(Er[Er.length-1])};sn||On==null||On(wr),Ce.dragNode=null}}},Ce.cleanDragState=function(){var ft=Ce.state.draggingNodeKey;ft!==null&&Ce.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ce.dragStartMousePosition=null,Ce.currentMouseOverDroppableNodeKey=null},Ce.triggerExpandActionExpand=function(ft,Ct){var wt=Ce.state,sn=wt.expandedKeys,En=wt.flattenNodes,ur=Ct.expanded,yr=Ct.key,fr=Ct.isLeaf;if(!(fr||ft.shiftKey||ft.metaKey||ft.ctrlKey)){var Qn=En.filter(function(On){return On.key===yr})[0],Yn=(0,fn.F)((0,Ge.Z)((0,Ge.Z)({},(0,fn.H8)(yr,Ce.getTreeNodeRequiredProps())),{},{data:Qn.data}));Ce.setExpandedKeys(ur?(0,Li._5)(sn,yr):(0,Li.L0)(sn,yr)),Ce.onNodeExpand(ft,Yn)}},Ce.onNodeClick=function(ft,Ct){var wt=Ce.props,sn=wt.onClick,En=wt.expandAction;En==="click"&&Ce.triggerExpandActionExpand(ft,Ct),sn==null||sn(ft,Ct)},Ce.onNodeDoubleClick=function(ft,Ct){var wt=Ce.props,sn=wt.onDoubleClick,En=wt.expandAction;En==="doubleClick"&&Ce.triggerExpandActionExpand(ft,Ct),sn==null||sn(ft,Ct)},Ce.onNodeSelect=function(ft,Ct){var wt=Ce.state.selectedKeys,sn=Ce.state,En=sn.keyEntities,ur=sn.fieldNames,yr=Ce.props,fr=yr.onSelect,Qn=yr.multiple,Yn=Ct.selected,On=Ct[ur.key],hr=!Yn;hr?Qn?wt=(0,Li.L0)(wt,On):wt=[On]:wt=(0,Li._5)(wt,On);var zr=wt.map(function(Er){var wr=(0,$a.Z)(En,Er);return wr?wr.node:null}).filter(function(Er){return Er});Ce.setUncontrolledState({selectedKeys:wt}),fr==null||fr(wt,{event:"select",selected:hr,node:Ct,selectedNodes:zr,nativeEvent:ft.nativeEvent})},Ce.onNodeCheck=function(ft,Ct,wt){var sn=Ce.state,En=sn.keyEntities,ur=sn.checkedKeys,yr=sn.halfCheckedKeys,fr=Ce.props,Qn=fr.checkStrictly,Yn=fr.onCheck,On=Ct.key,hr,zr={event:"check",node:Ct,checked:wt,nativeEvent:ft.nativeEvent};if(Qn){var Er=wt?(0,Li.L0)(ur,On):(0,Li._5)(ur,On),wr=(0,Li._5)(yr,On);hr={checked:Er,halfChecked:wr},zr.checkedNodes=Er.map(function(mn){return(0,$a.Z)(En,mn)}).filter(function(mn){return mn}).map(function(mn){return mn.node}),Ce.setUncontrolledState({checkedKeys:Er})}else{var Br=(0,qi.S)([].concat((0,xe.Z)(ur),[On]),!0,En),Or=Br.checkedKeys,Wr=Br.halfCheckedKeys;if(!wt){var pt=new Set(Or);pt.delete(On);var vt=(0,qi.S)(Array.from(pt),{checked:!1,halfCheckedKeys:Wr},En);Or=vt.checkedKeys,Wr=vt.halfCheckedKeys}hr=Or,zr.checkedNodes=[],zr.checkedNodesPositions=[],zr.halfCheckedKeys=Wr,Or.forEach(function(mn){var ln=(0,$a.Z)(En,mn);if(ln){var $n=ln.node,mr=ln.pos;zr.checkedNodes.push($n),zr.checkedNodesPositions.push({node:$n,pos:mr})}}),Ce.setUncontrolledState({checkedKeys:Or},!1,{halfCheckedKeys:Wr})}Yn==null||Yn(hr,zr)},Ce.onNodeLoad=function(ft){var Ct=ft.key,wt=new Promise(function(sn,En){Ce.setState(function(ur){var yr=ur.loadedKeys,fr=yr===void 0?[]:yr,Qn=ur.loadingKeys,Yn=Qn===void 0?[]:Qn,On=Ce.props,hr=On.loadData,zr=On.onLoad;if(!hr||fr.indexOf(Ct)!==-1||Yn.indexOf(Ct)!==-1)return null;var Er=hr(ft);return Er.then(function(){var wr=Ce.state.loadedKeys,Br=(0,Li.L0)(wr,Ct);zr==null||zr(Br,{event:"load",node:ft}),Ce.setUncontrolledState({loadedKeys:Br}),Ce.setState(function(Or){return{loadingKeys:(0,Li._5)(Or.loadingKeys,Ct)}}),sn()}).catch(function(wr){if(Ce.setState(function(Or){return{loadingKeys:(0,Li._5)(Or.loadingKeys,Ct)}}),Ce.loadingRetryTimes[Ct]=(Ce.loadingRetryTimes[Ct]||0)+1,Ce.loadingRetryTimes[Ct]>=zi){var Br=Ce.state.loadedKeys;(0,_e.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ce.setUncontrolledState({loadedKeys:(0,Li.L0)(Br,Ct)}),sn()}En(wr)}),{loadingKeys:(0,Li.L0)(Yn,Ct)}})});return wt.catch(function(){}),wt},Ce.onNodeMouseEnter=function(ft,Ct){var wt=Ce.props.onMouseEnter;wt==null||wt({event:ft,node:Ct})},Ce.onNodeMouseLeave=function(ft,Ct){var wt=Ce.props.onMouseLeave;wt==null||wt({event:ft,node:Ct})},Ce.onNodeContextMenu=function(ft,Ct){var wt=Ce.props.onRightClick;wt&&(ft.preventDefault(),wt({event:ft,node:Ct}))},Ce.onFocus=function(){var ft=Ce.props.onFocus;Ce.setState({focused:!0});for(var Ct=arguments.length,wt=new Array(Ct),sn=0;sn<Ct;sn++)wt[sn]=arguments[sn];ft==null||ft.apply(void 0,wt)},Ce.onBlur=function(){var ft=Ce.props.onBlur;Ce.setState({focused:!1}),Ce.onActiveChange(null);for(var Ct=arguments.length,wt=new Array(Ct),sn=0;sn<Ct;sn++)wt[sn]=arguments[sn];ft==null||ft.apply(void 0,wt)},Ce.getTreeNodeRequiredProps=function(){var ft=Ce.state,Ct=ft.expandedKeys,wt=ft.selectedKeys,sn=ft.loadedKeys,En=ft.loadingKeys,ur=ft.checkedKeys,yr=ft.halfCheckedKeys,fr=ft.dragOverNodeKey,Qn=ft.dropPosition,Yn=ft.keyEntities;return{expandedKeys:Ct||[],selectedKeys:wt||[],loadedKeys:sn||[],loadingKeys:En||[],checkedKeys:ur||[],halfCheckedKeys:yr||[],dragOverNodeKey:fr,dropPosition:Qn,keyEntities:Yn}},Ce.setExpandedKeys=function(ft){var Ct=Ce.state,wt=Ct.treeData,sn=Ct.fieldNames,En=(0,fn.oH)(wt,ft,sn);Ce.setUncontrolledState({expandedKeys:ft,flattenNodes:En},!0)},Ce.onNodeExpand=function(ft,Ct){var wt=Ce.state.expandedKeys,sn=Ce.state,En=sn.listChanging,ur=sn.fieldNames,yr=Ce.props,fr=yr.onExpand,Qn=yr.loadData,Yn=Ct.expanded,On=Ct[ur.key];if(!En){var hr=wt.indexOf(On),zr=!Yn;if((0,_e.ZP)(Yn&&hr!==-1||!Yn&&hr===-1,"Expand state not sync with index check"),zr?wt=(0,Li.L0)(wt,On):wt=(0,Li._5)(wt,On),Ce.setExpandedKeys(wt),fr==null||fr(wt,{node:Ct,expanded:zr,nativeEvent:ft.nativeEvent}),zr&&Qn){var Er=Ce.onNodeLoad(Ct);Er&&Er.then(function(){var wr=(0,fn.oH)(Ce.state.treeData,wt,ur);Ce.setUncontrolledState({flattenNodes:wr})}).catch(function(){var wr=Ce.state.expandedKeys,Br=(0,Li._5)(wr,On);Ce.setExpandedKeys(Br)})}}},Ce.onListChangeStart=function(){Ce.setUncontrolledState({listChanging:!0})},Ce.onListChangeEnd=function(){setTimeout(function(){Ce.setUncontrolledState({listChanging:!1})})},Ce.onActiveChange=function(ft){var Ct=Ce.state.activeKey,wt=Ce.props.onActiveChange;Ct!==ft&&(Ce.setState({activeKey:ft}),ft!==null&&Ce.scrollTo({key:ft}),wt==null||wt(ft))},Ce.getActiveItem=function(){var ft=Ce.state,Ct=ft.activeKey,wt=ft.flattenNodes;return Ct===null?null:wt.find(function(sn){var En=sn.key;return En===Ct})||null},Ce.offsetActiveKey=function(ft){var Ct=Ce.state,wt=Ct.flattenNodes,sn=Ct.activeKey,En=wt.findIndex(function(fr){var Qn=fr.key;return Qn===sn});En===-1&&ft<0&&(En=wt.length),En=(En+ft+wt.length)%wt.length;var ur=wt[En];if(ur){var yr=ur.key;Ce.onActiveChange(yr)}else Ce.onActiveChange(null)},Ce.onKeyDown=function(ft){var Ct=Ce.state,wt=Ct.activeKey,sn=Ct.expandedKeys,En=Ct.checkedKeys,ur=Ct.fieldNames,yr=Ce.props,fr=yr.onKeyDown,Qn=yr.checkable,Yn=yr.selectable;switch(ft.which){case rt.UP:{Ce.offsetActiveKey(-1),ft.preventDefault();break}case rt.DOWN:{Ce.offsetActiveKey(1),ft.preventDefault();break}}var On=Ce.getActiveItem();if(On&&On.data){var hr=Ce.getTreeNodeRequiredProps(),zr=On.data.isLeaf===!1||!!(On.data[ur.children]||[]).length,Er=(0,fn.F)((0,Ge.Z)((0,Ge.Z)({},(0,fn.H8)(wt,hr)),{},{data:On.data,active:!0}));switch(ft.which){case rt.LEFT:{zr&&sn.includes(wt)?Ce.onNodeExpand({},Er):On.parent&&Ce.onActiveChange(On.parent.key),ft.preventDefault();break}case rt.RIGHT:{zr&&!sn.includes(wt)?Ce.onNodeExpand({},Er):On.children&&On.children.length&&Ce.onActiveChange(On.children[0].key),ft.preventDefault();break}case rt.ENTER:case rt.SPACE:{Qn&&!Er.disabled&&Er.checkable!==!1&&!Er.disableCheckbox?Ce.onNodeCheck({},Er,!En.includes(wt)):!Qn&&Yn&&!Er.disabled&&Er.selectable!==!1&&Ce.onNodeSelect({},Er);break}}}fr==null||fr(ft)},Ce.setUncontrolledState=function(ft){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ce.destroyed){var sn=!1,En=!0,ur={};Object.keys(ft).forEach(function(yr){if(yr in Ce.props){En=!1;return}sn=!0,ur[yr]=ft[yr]}),sn&&(!Ct||En)&&Ce.setState((0,Ge.Z)((0,Ge.Z)({},ur),wt))}},Ce.scrollTo=function(ft){Ce.listRef.current.scrollTo(ft)},Ce}return(0,ue.Z)(Sr,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Xe=this.props.activeKey;Xe!==void 0&&Xe!==this.state.activeKey&&(this.setState({activeKey:Xe}),Xe!==null&&this.scrollTo({key:Xe}))}},{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 Xe,nt=this.state,ut=nt.focused,ft=nt.flattenNodes,Ct=nt.keyEntities,wt=nt.draggingNodeKey,sn=nt.activeKey,En=nt.dropLevelOffset,ur=nt.dropContainerKey,yr=nt.dropTargetKey,fr=nt.dropPosition,Qn=nt.dragOverNodeKey,Yn=nt.indent,On=this.props,hr=On.prefixCls,zr=On.className,Er=On.style,wr=On.showLine,Br=On.focusable,Or=On.tabIndex,Wr=Or===void 0?0:Or,pt=On.selectable,vt=On.showIcon,mn=On.icon,ln=On.switcherIcon,$n=On.draggable,mr=On.checkable,Ft=On.checkStrictly,It=On.disabled,Ht=On.motion,on=On.loadData,Vn=On.filterTreeNode,dr=On.height,Kn=On.itemHeight,rr=On.virtual,Fr=On.titleRender,ii=On.dropIndicatorRender,Zr=On.onContextMenu,Ar=On.onScroll,Vr=On.direction,li=On.rootClassName,Mi=On.rootStyle,si=(0,Qe.Z)(this.props,{aria:!0,data:!0}),Kr;return $n&&((0,ke.Z)($n)==="object"?Kr=$n:typeof $n=="function"?Kr={nodeDraggable:$n}:Kr={}),ge.createElement(Ve.k.Provider,{value:{prefixCls:hr,selectable:pt,showIcon:vt,icon:mn,switcherIcon:ln,draggable:Kr,draggingNodeKey:wt,checkable:mr,checkStrictly:Ft,disabled:It,keyEntities:Ct,dropLevelOffset:En,dropContainerKey:ur,dropTargetKey:yr,dropPosition:fr,dragOverNodeKey:Qn,indent:Yn,direction:Vr,dropIndicatorRender:ii,loadData:on,filterTreeNode:Vn,titleRender:Fr,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}},ge.createElement("div",{role:"tree",className:De()(hr,zr,li,(Xe={},(0,de.Z)(Xe,"".concat(hr,"-show-line"),wr),(0,de.Z)(Xe,"".concat(hr,"-focused"),ut),(0,de.Z)(Xe,"".concat(hr,"-active-focused"),sn!==null),Xe)),style:Mi},ge.createElement(Qa,(0,ee.Z)({ref:this.listRef,prefixCls:hr,style:Er,data:ft,disabled:It,selectable:pt,checkable:!!mr,motion:Ht,dragging:wt!==null,height:dr,itemHeight:Kn,virtual:rr,focusable:Br,focused:ut,tabIndex:Wr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zr,onScroll:Ar},this.getTreeNodeRequiredProps(),si))))}}],[{key:"getDerivedStateFromProps",value:function(Xe,nt){var ut=nt.prevProps,ft={prevProps:Xe};function Ct(Br){return!ut&&Br in Xe||ut&&ut[Br]!==Xe[Br]}var wt,sn=nt.fieldNames;if(Ct("fieldNames")&&(sn=(0,fn.w$)(Xe.fieldNames),ft.fieldNames=sn),Ct("treeData")?wt=Xe.treeData:Ct("children")&&((0,_e.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),wt=(0,fn.zn)(Xe.children)),wt){ft.treeData=wt;var En=(0,fn.I8)(wt,{fieldNames:sn});ft.keyEntities=(0,Ge.Z)((0,de.Z)({},Xr,di),En.keyEntities)}var ur=ft.keyEntities||nt.keyEntities;if(Ct("expandedKeys")||ut&&Ct("autoExpandParent"))ft.expandedKeys=Xe.autoExpandParent||!ut&&Xe.defaultExpandParent?(0,Li.r7)(Xe.expandedKeys,ur):Xe.expandedKeys;else if(!ut&&Xe.defaultExpandAll){var yr=(0,Ge.Z)({},ur);delete yr[Xr],ft.expandedKeys=Object.keys(yr).map(function(Br){return yr[Br].key})}else!ut&&Xe.defaultExpandedKeys&&(ft.expandedKeys=Xe.autoExpandParent||Xe.defaultExpandParent?(0,Li.r7)(Xe.defaultExpandedKeys,ur):Xe.defaultExpandedKeys);if(ft.expandedKeys||delete ft.expandedKeys,wt||ft.expandedKeys){var fr=(0,fn.oH)(wt||nt.treeData,ft.expandedKeys||nt.expandedKeys,sn);ft.flattenNodes=fr}if(Xe.selectable&&(Ct("selectedKeys")?ft.selectedKeys=(0,Li.BT)(Xe.selectedKeys,Xe):!ut&&Xe.defaultSelectedKeys&&(ft.selectedKeys=(0,Li.BT)(Xe.defaultSelectedKeys,Xe))),Xe.checkable){var Qn;if(Ct("checkedKeys")?Qn=(0,Li.E6)(Xe.checkedKeys)||{}:!ut&&Xe.defaultCheckedKeys?Qn=(0,Li.E6)(Xe.defaultCheckedKeys)||{}:wt&&(Qn=(0,Li.E6)(Xe.checkedKeys)||{checkedKeys:nt.checkedKeys,halfCheckedKeys:nt.halfCheckedKeys}),Qn){var Yn=Qn,On=Yn.checkedKeys,hr=On===void 0?[]:On,zr=Yn.halfCheckedKeys,Er=zr===void 0?[]:zr;if(!Xe.checkStrictly){var wr=(0,qi.S)(hr,!0,ur);hr=wr.checkedKeys,Er=wr.halfCheckedKeys}ft.checkedKeys=hr,ft.halfCheckedKeys=Er}}return Ct("loadedKeys")&&(ft.loadedKeys=Xe.loadedKeys),ft}}]),Sr}(ge.Component);to.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:lt,allowDrop:function(){return!0},expandAction:!1},to.TreeNode=xt.Z;var _r=to,Wo=_r,_o=te(73148),bl=te(56747),jo={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"},Po=jo,la=te(84089),el=function(ir,Sr){return ge.createElement(la.Z,(0,ee.Z)({},ir,{ref:Sr,icon:Po}))},No=ge.forwardRef(el),rl=te(53124),vl=te(50881),ll=te(33603),Uo=te(32157);const gl=4;function wl(Un){const{dropPosition:ir,dropLevelOffset:Sr,prefixCls:Ce,indent:Xe,direction:nt="ltr"}=Un,ut=nt==="ltr"?"left":"right",ft=nt==="ltr"?"right":"left",Ct={[ut]:-Sr*Xe+gl,[ft]:0};switch(ir){case-1:Ct.top=-3;break;case 1:Ct.bottom=-3;break;default:Ct.bottom=-3,Ct[ut]=Xe+gl;break}return ge.createElement("div",{style:Ct,className:`${Ce}-drop-indicator`})}var dl=te(99184),wn=ge.forwardRef((Un,ir)=>{const{getPrefixCls:Sr,direction:Ce,virtual:Xe,tree:nt}=ge.useContext(rl.E_),{prefixCls:ut,className:ft,showIcon:Ct=!1,showLine:wt,switcherIcon:sn,blockNode:En=!1,children:ur,checkable:yr=!1,selectable:fr=!0,draggable:Qn,motion:Yn,style:On}=Un,hr=Sr("tree",ut),zr=Sr(),Er=Yn!=null?Yn:Object.assign(Object.assign({},(0,ll.Z)(zr)),{motionAppear:!1}),wr=Object.assign(Object.assign({},Un),{checkable:yr,selectable:fr,showIcon:Ct,motion:Er,blockNode:En,showLine:!!wt,dropIndicatorRender:wl}),[Br,Or]=(0,Uo.ZP)(hr),Wr=ge.useMemo(()=>{if(!Qn)return!1;let vt={};switch(typeof Qn){case"function":vt.nodeDraggable=Qn;break;case"object":vt=Object.assign({},Qn);break;default:break}return vt.icon!==!1&&(vt.icon=vt.icon||ge.createElement(vl.Z,null)),vt},[Qn]),pt=vt=>ge.createElement(dl.Z,{prefixCls:hr,switcherIcon:sn,treeNodeProps:vt,showLine:wt});return Br(ge.createElement(Wo,Object.assign({itemHeight:20,ref:ir,virtual:Xe},wr,{style:Object.assign(Object.assign({},nt==null?void 0:nt.style),On),prefixCls:hr,className:De()({[`${hr}-icon-hide`]:!Ct,[`${hr}-block-node`]:En,[`${hr}-unselectable`]:!fr,[`${hr}-rtl`]:Ce==="rtl"},nt==null?void 0:nt.className,ft,Or),direction:Ce,checkable:yr&&ge.createElement("span",{className:`${hr}-checkbox-inner`}),selectable:fr,switcherIcon:pt,draggable:Wr}),ur))}),pn;(function(Un){Un[Un.None=0]="None",Un[Un.Start=1]="Start",Un[Un.End=2]="End"})(pn||(pn={}));function ar(Un,ir){function Sr(Ce){const{key:Xe,children:nt}=Ce;ir(Xe,Ce)!==!1&&ar(nt||[],ir)}Un.forEach(Sr)}function tr(Un){let{treeData:ir,expandedKeys:Sr,startKey:Ce,endKey:Xe}=Un;const nt=[];let ut=pn.None;if(Ce&&Ce===Xe)return[Ce];if(!Ce||!Xe)return[];function ft(Ct){return Ct===Ce||Ct===Xe}return ar(ir,Ct=>{if(ut===pn.End)return!1;if(ft(Ct)){if(nt.push(Ct),ut===pn.None)ut=pn.Start;else if(ut===pn.Start)return ut=pn.End,!1}else ut===pn.Start&&nt.push(Ct);return Sr.includes(Ct)}),nt}function Yr(Un,ir){const Sr=(0,xe.Z)(ir),Ce=[];return ar(Un,(Xe,nt)=>{const ut=Sr.indexOf(Xe);return ut!==-1&&(Ce.push(nt),Sr.splice(ut,1)),!!Sr.length}),Ce}var $i=function(Un,ir){var Sr={};for(var Ce in Un)Object.prototype.hasOwnProperty.call(Un,Ce)&&ir.indexOf(Ce)<0&&(Sr[Ce]=Un[Ce]);if(Un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ce=Object.getOwnPropertySymbols(Un);Xe<Ce.length;Xe++)ir.indexOf(Ce[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Un,Ce[Xe])&&(Sr[Ce[Xe]]=Un[Ce[Xe]]);return Sr};function ia(Un){const{isLeaf:ir,expanded:Sr}=Un;return ir?ge.createElement(_o.Z,null):Sr?ge.createElement(bl.Z,null):ge.createElement(No,null)}function sa(Un){let{treeData:ir,children:Sr}=Un;return ir||(0,fn.zn)(Sr)}const ka=(Un,ir)=>{var{defaultExpandAll:Sr,defaultExpandParent:Ce,defaultExpandedKeys:Xe}=Un,nt=$i(Un,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ut=ge.useRef(),ft=ge.useRef(),Ct=()=>{const{keyEntities:Wr}=(0,fn.I8)(sa(nt));let pt;return Sr?pt=Object.keys(Wr):Ce?pt=(0,Li.r7)(nt.expandedKeys||Xe||[],Wr):pt=nt.expandedKeys||Xe,pt},[wt,sn]=ge.useState(nt.selectedKeys||nt.defaultSelectedKeys||[]),[En,ur]=ge.useState(()=>Ct());ge.useEffect(()=>{"selectedKeys"in nt&&sn(nt.selectedKeys)},[nt.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in nt&&ur(nt.expandedKeys)},[nt.expandedKeys]);const yr=(Wr,pt)=>{var vt;return"expandedKeys"in nt||ur(Wr),(vt=nt.onExpand)===null||vt===void 0?void 0:vt.call(nt,Wr,pt)},fr=(Wr,pt)=>{var vt;const{multiple:mn}=nt,{node:ln,nativeEvent:$n}=pt,{key:mr=""}=ln,Ft=sa(nt),It=Object.assign(Object.assign({},pt),{selected:!0}),Ht=($n==null?void 0:$n.ctrlKey)||($n==null?void 0:$n.metaKey),on=$n==null?void 0:$n.shiftKey;let Vn;mn&&Ht?(Vn=Wr,ut.current=mr,ft.current=Vn,It.selectedNodes=Yr(Ft,Vn)):mn&&on?(Vn=Array.from(new Set([].concat((0,xe.Z)(ft.current||[]),(0,xe.Z)(tr({treeData:Ft,expandedKeys:En,startKey:mr,endKey:ut.current}))))),It.selectedNodes=Yr(Ft,Vn)):(Vn=[mr],ut.current=mr,ft.current=Vn,It.selectedNodes=Yr(Ft,Vn)),(vt=nt.onSelect)===null||vt===void 0||vt.call(nt,Vn,It),"selectedKeys"in nt||sn(Vn)},{getPrefixCls:Qn,direction:Yn}=ge.useContext(rl.E_),{prefixCls:On,className:hr,showIcon:zr=!0,expandAction:Er="click"}=nt,wr=$i(nt,["prefixCls","className","showIcon","expandAction"]),Br=Qn("tree",On),Or=De()(`${Br}-directory`,{[`${Br}-directory-rtl`]:Yn==="rtl"},hr);return ge.createElement(wn,Object.assign({icon:ia,ref:ir,blockNode:!0},wr,{showIcon:zr,expandAction:Er,prefixCls:Br,className:Or,expandedKeys:En,selectedKeys:wt,onSelect:fr,onExpand:yr}))};var ho=ge.forwardRef(ka);const ao=wn;ao.DirectoryTree=ho,ao.TreeNode=xt.Z;var mo=ao},32157:function(vn,Tt,te){"use strict";te.d(Tt,{TM:function(){return Ke},Yk:function(){return De}});var ee=te(34367),de=te(63185),ke=te(14747),Ge=te(33507),xe=te(45503),Me=te(67968);const ue=new ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ee=(rt,Qe)=>({[`.${rt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Qe.motionDurationSlow}`}}}),fe=(rt,Qe)=>({[`.${rt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Qe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Qe.lineWidthBold}px solid ${Qe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),we=(rt,Qe)=>{const{treeCls:_e,treeNodeCls:ge,treeNodePadding:Ve,titleHeight:lt,nodeSelectedBg:He,nodeHoverBg:Oe}=Qe,ve=Qe.paddingXS;return{[_e]:Object.assign(Object.assign({},(0,ke.Wf)(Qe)),{background:Qe.colorBgContainer,borderRadius:Qe.borderRadius,transition:`background-color ${Qe.motionDurationSlow}`,[`&${_e}-rtl`]:{[`${_e}-switcher`]:{"&_close":{[`${_e}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${_e}-active-focused)`]:Object.assign({},(0,ke.oN)(Qe)),[`${_e}-list-holder-inner`]:{alignItems:"flex-start"},[`&${_e}-block-node`]:{[`${_e}-list-holder-inner`]:{alignItems:"stretch",[`${_e}-node-content-wrapper`]:{flex:"auto"},[`${ge}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ve,insetInlineStart:0,border:`1px solid ${Qe.colorPrimary}`,opacity:0,animationName:ue,animationDuration:Qe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ge}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Ve}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${_e}-node-content-wrapper`]:{color:Qe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${_e}-node-content-wrapper`]:Object.assign({},(0,ke.oN)(Qe)),[`&:not(${ge}-disabled).filter-node ${_e}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${_e}-draggable-icon`]:{flexShrink:0,width:lt,lineHeight:`${lt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Qe.motionDurationSlow}`,[`${ge}:hover &`]:{opacity:.45}},[`&${ge}-disabled`]:{[`${_e}-draggable-icon`]:{visibility:"hidden"}}}},[`${_e}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:lt}},[`${_e}-draggable-icon`]:{visibility:"hidden"},[`${_e}-switcher`]:Object.assign(Object.assign({},Ee(rt,Qe)),{position:"relative",flex:"none",alignSelf:"stretch",width:lt,margin:0,lineHeight:`${lt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${_e}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Qe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:lt/2,bottom:-Ve,marginInlineStart:-1,borderInlineEnd:`1px solid ${Qe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:lt/2*.8,height:lt/2,borderBottom:`1px solid ${Qe.colorBorder}`,content:'""'}}}),[`${_e}-checkbox`]:{top:"initial",marginInlineEnd:ve},[`${_e}-node-content-wrapper, ${_e}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:lt,margin:0,padding:`0 ${Qe.paddingXS/2}px`,color:"inherit",lineHeight:`${lt}px`,background:"transparent",borderRadius:Qe.borderRadius,cursor:"pointer",transition:`all ${Qe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Oe},[`&${_e}-node-selected`]:{backgroundColor:He},[`${_e}-iconEle`]:{display:"inline-block",width:lt,height:lt,lineHeight:`${lt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${_e}-unselectable ${_e}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${_e}-node-content-wrapper`]:Object.assign({lineHeight:`${lt}px`,userSelect:"none"},fe(rt,Qe)),[`${ge}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Qe.colorPrimary}`}},"&-show-line":{[`${_e}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:lt/2,bottom:-Ve,borderInlineEnd:`1px solid ${Qe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${_e}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ge}-leaf-last`]:{[`${_e}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${lt/2}px !important`}}}}})}},Ue=rt=>{const{treeCls:Qe,treeNodeCls:_e,treeNodePadding:ge,directoryNodeSelectedBg:Ve,directoryNodeSelectedColor:lt}=rt;return{[`${Qe}${Qe}-directory`]:{[_e]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ge,insetInlineStart:0,transition:`background-color ${rt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:rt.controlItemBgHover}},"> *":{zIndex:1},[`${Qe}-switcher`]:{transition:`color ${rt.motionDurationMid}`},[`${Qe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Qe}-node-selected`]:{color:lt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Ve},[`${Qe}-switcher`]:{color:lt},[`${Qe}-node-content-wrapper`]:{color:lt,background:"transparent"}}}}}},De=(rt,Qe)=>{const _e=`.${rt}`,ge=`${_e}-treenode`,Ve=Qe.paddingXS/2,lt=(0,xe.TS)(Qe,{treeCls:_e,treeNodeCls:ge,treeNodePadding:Ve});return[we(rt,lt),Ue(lt)]},Ke=rt=>{const{controlHeightSM:Qe}=rt;return{titleHeight:Qe,nodeHoverBg:rt.controlItemBgHover,nodeSelectedBg:rt.controlItemBgActive}};Tt.ZP=(0,Me.Z)("Tree",(rt,Qe)=>{let{prefixCls:_e}=Qe;return[{[rt.componentCls]:(0,de.C2)(`${_e}-checkbox`,rt)},De(_e,rt),(0,Ge.Z)(rt)]},rt=>{const{colorTextLightSolid:Qe,colorPrimary:_e}=rt;return Object.assign(Object.assign({},Ke(rt)),{directoryNodeSelectedColor:Qe,directoryNodeSelectedBg:_e})})},99184:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return _e}});var ee=te(87462),de=te(67294),ke={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"},Ge=ke,xe=te(84089),Me=function(Ve,lt){return de.createElement(xe.Z,(0,ee.Z)({},Ve,{ref:lt,icon:Ge}))},ue=de.forwardRef(Me),Ee=te(73148),fe=te(3407),we=te(34182),Ue=te(74664),De=te(94184),Ke=te.n(De),rt=te(96159),_e=ge=>{const{prefixCls:Ve,switcherIcon:lt,treeNodeProps:He,showLine:Oe}=ge,{isLeaf:ve,expanded:ye,loading:ze}=He;if(ze)return de.createElement(fe.Z,{className:`${Ve}-switcher-loading-icon`});let We;if(Oe&&typeof Oe=="object"&&(We=Oe.showLeafIcon),ve){if(!Oe)return null;if(typeof We!="boolean"&&We){const Ze=typeof We=="function"?We(He):We,Ae=`${Ve}-switcher-line-custom-icon`;return(0,rt.l$)(Ze)?(0,rt.Tm)(Ze,{className:Ke()(Ze.props.className||"",Ae)}):Ze}return We?de.createElement(Ee.Z,{className:`${Ve}-switcher-line-icon`}):de.createElement("span",{className:`${Ve}-switcher-leaf-line`})}const st=`${Ve}-switcher-icon`,at=typeof lt=="function"?lt(He):lt;return(0,rt.l$)(at)?(0,rt.Tm)(at,{className:Ke()(at.props.className||"",st)}):at!==void 0?at:Oe?ye?de.createElement(we.Z,{className:`${Ve}-switcher-line-icon`}):de.createElement(Ue.Z,{className:`${Ve}-switcher-line-icon`}):de.createElement(ue,{className:st})}},72665:function(vn,Tt){"use strict";var te;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,ke=ee?Symbol.for("react.portal"):60106,Ge=ee?Symbol.for("react.fragment"):60107,xe=ee?Symbol.for("react.strict_mode"):60108,Me=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ee=ee?Symbol.for("react.context"):60110,fe=ee?Symbol.for("react.async_mode"):60111,we=ee?Symbol.for("react.concurrent_mode"):60111,Ue=ee?Symbol.for("react.forward_ref"):60112,De=ee?Symbol.for("react.suspense"):60113,Ke=ee?Symbol.for("react.suspense_list"):60120,rt=ee?Symbol.for("react.memo"):60115,Qe=ee?Symbol.for("react.lazy"):60116,_e=ee?Symbol.for("react.block"):60121,ge=ee?Symbol.for("react.fundamental"):60117,Ve=ee?Symbol.for("react.responder"):60118,lt=ee?Symbol.for("react.scope"):60119;function He(ve){if(typeof ve=="object"&&ve!==null){var ye=ve.$$typeof;switch(ye){case de:switch(ve=ve.type,ve){case fe:case we:case Ge:case Me:case xe:case De:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case Ee:case Ue:case Qe:case rt:case ue:return ve;default:return ye}}case ke:return ye}}}function Oe(ve){return He(ve)===we}te=fe,te=we,te=Ee,te=ue,te=de,te=Ue,te=Ge,te=Qe,te=rt,te=ke,te=Me,te=xe,te=De,te=function(ve){return Oe(ve)||He(ve)===fe},te=Oe,te=function(ve){return He(ve)===Ee},te=function(ve){return He(ve)===ue},te=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===de},te=function(ve){return He(ve)===Ue},te=function(ve){return He(ve)===Ge},te=function(ve){return He(ve)===Qe},Tt.isMemo=function(ve){return He(ve)===rt},te=function(ve){return He(ve)===ke},te=function(ve){return He(ve)===Me},te=function(ve){return He(ve)===xe},te=function(ve){return He(ve)===De},te=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===Ge||ve===we||ve===Me||ve===xe||ve===De||ve===Ke||typeof ve=="object"&&ve!==null&&(ve.$$typeof===Qe||ve.$$typeof===rt||ve.$$typeof===ue||ve.$$typeof===Ee||ve.$$typeof===Ue||ve.$$typeof===ge||ve.$$typeof===Ve||ve.$$typeof===lt||ve.$$typeof===_e)},te=He},12060:function(vn,Tt,te){"use strict";vn.exports=te(72665)},41771:function(vn,Tt){"use strict";var te;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,ke=ee?Symbol.for("react.portal"):60106,Ge=ee?Symbol.for("react.fragment"):60107,xe=ee?Symbol.for("react.strict_mode"):60108,Me=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ee=ee?Symbol.for("react.context"):60110,fe=ee?Symbol.for("react.async_mode"):60111,we=ee?Symbol.for("react.concurrent_mode"):60111,Ue=ee?Symbol.for("react.forward_ref"):60112,De=ee?Symbol.for("react.suspense"):60113,Ke=ee?Symbol.for("react.suspense_list"):60120,rt=ee?Symbol.for("react.memo"):60115,Qe=ee?Symbol.for("react.lazy"):60116,_e=ee?Symbol.for("react.block"):60121,ge=ee?Symbol.for("react.fundamental"):60117,Ve=ee?Symbol.for("react.responder"):60118,lt=ee?Symbol.for("react.scope"):60119;function He(ve){if(typeof ve=="object"&&ve!==null){var ye=ve.$$typeof;switch(ye){case de:switch(ve=ve.type,ve){case fe:case we:case Ge:case Me:case xe:case De:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case Ee:case Ue:case Qe:case rt:case ue:return ve;default:return ye}}case ke:return ye}}}function Oe(ve){return He(ve)===we}te=fe,te=we,te=Ee,te=ue,te=de,te=Ue,te=Ge,te=Qe,te=rt,te=ke,te=Me,te=xe,te=De,te=function(ve){return Oe(ve)||He(ve)===fe},te=Oe,te=function(ve){return He(ve)===Ee},te=function(ve){return He(ve)===ue},te=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===de},te=function(ve){return He(ve)===Ue},Tt.isFragment=function(ve){return He(ve)===Ge},te=function(ve){return He(ve)===Qe},te=function(ve){return He(ve)===rt},te=function(ve){return He(ve)===ke},te=function(ve){return He(ve)===Me},te=function(ve){return He(ve)===xe},te=function(ve){return He(ve)===De},te=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===Ge||ve===we||ve===Me||ve===xe||ve===De||ve===Ke||typeof ve=="object"&&ve!==null&&(ve.$$typeof===Qe||ve.$$typeof===rt||ve.$$typeof===ue||ve.$$typeof===Ee||ve.$$typeof===Ue||ve.$$typeof===ge||ve.$$typeof===Ve||ve.$$typeof===lt||ve.$$typeof===_e)},te=He},47655:function(vn,Tt,te){"use strict";vn.exports=te(41771)},64701:function(vn,Tt,te){"use strict";te.r(Tt),te.d(Tt,{ResizableTextArea:function(){return Vt},default:function(){return kn}});var ee=te(87462),de=te(1413),ke=te(4942),Ge=te(71002),xe=te(97685),Me=te(45987),ue=te(74902),Ee=te(94184),fe=te.n(Ee),we=te(67656),Ue=te(87887),De=te(67294);function Ke(kt){var un=De.useRef();un.current=kt;var Wn=De.useCallback(function(){for(var An,Ie=arguments.length,he=new Array(Ie),ce=0;ce<Ie;ce++)he[ce]=arguments[ce];return(An=un.current)===null||An===void 0?void 0:An.call.apply(An,[un].concat(he))},[]);return Wn}function rt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qe=rt()?De.useLayoutEffect:De.useEffect,_e=Qe,ge=function(un,Wn){var An=De.useRef(!0);Qe(function(){if(!An.current)return un()},Wn),Qe(function(){return An.current=!1,function(){An.current=!0}},[])};function Ve(kt){var un=De.useRef(!1),Wn=De.useState(kt),An=(0,xe.Z)(Wn,2),Ie=An[0],he=An[1];De.useEffect(function(){return un.current=!1,function(){un.current=!0}},[]);function ce(me,pe){pe&&un.current||he(me)}return[Ie,ce]}function lt(kt){return kt!==void 0}function He(kt,un){var Wn=un||{},An=Wn.defaultValue,Ie=Wn.value,he=Wn.onChange,ce=Wn.postState,me=Ve(function(){return lt(Ie)?Ie:lt(An)?typeof An=="function"?An():An:typeof kt=="function"?kt():kt}),pe=(0,xe.Z)(me,2),le=pe[0],Le=pe[1],dt=Ie!==void 0?Ie:le,Nt=ce?ce(dt):dt,tn=Ke(he),an=Ve([dt]),Yt=(0,xe.Z)(an,2),dn=Yt[0],Mt=Yt[1];ge(function(){var qt=dn[0];le!==qt&&tn(le,qt)},[dn]),ge(function(){lt(Ie)||Le(Ie)},[Ie]);var Wt=Ke(function(qt,Gt){Le(qt,Gt),Mt([dt],Gt)});return[Nt,Wt]}var Oe=te(48555),ve=function(un){return+setTimeout(un,16)},ye=function(un){return clearTimeout(un)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ve=function(un){return window.requestAnimationFrame(un)},ye=function(un){return window.cancelAnimationFrame(un)});var ze=0,We=new Map;function st(kt){We.delete(kt)}var at=function(un){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ze+=1;var An=ze;function Ie(he){if(he===0)st(An),un();else{var ce=ve(function(){Ie(he-1)});We.set(An,ce)}}return Ie(Wn),An};at.cancel=function(kt){var un=We.get(kt);return st(un),ye(un)};var Ze=at,Ae=`
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;
`,mt=["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"],je={},it;function qe(kt){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wn=kt.getAttribute("id")||kt.getAttribute("data-reactid")||kt.getAttribute("name");if(un&&je[Wn])return je[Wn];var An=window.getComputedStyle(kt),Ie=An.getPropertyValue("box-sizing")||An.getPropertyValue("-moz-box-sizing")||An.getPropertyValue("-webkit-box-sizing"),he=parseFloat(An.getPropertyValue("padding-bottom"))+parseFloat(An.getPropertyValue("padding-top")),ce=parseFloat(An.getPropertyValue("border-bottom-width"))+parseFloat(An.getPropertyValue("border-top-width")),me=mt.map(function(le){return"".concat(le,":").concat(An.getPropertyValue(le))}).join(";"),pe={sizingStyle:me,paddingSize:he,borderSize:ce,boxSizing:Ie};return un&&Wn&&(je[Wn]=pe),pe}function gt(kt){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,An=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;it||(it=document.createElement("textarea"),it.setAttribute("tab-index","-1"),it.setAttribute("aria-hidden","true"),document.body.appendChild(it)),kt.getAttribute("wrap")?it.setAttribute("wrap",kt.getAttribute("wrap")):it.removeAttribute("wrap");var Ie=qe(kt,un),he=Ie.paddingSize,ce=Ie.borderSize,me=Ie.boxSizing,pe=Ie.sizingStyle;it.setAttribute("style","".concat(pe,";").concat(Ae)),it.value=kt.value||kt.placeholder||"";var le=void 0,Le=void 0,dt,Nt=it.scrollHeight;if(me==="border-box"?Nt+=ce:me==="content-box"&&(Nt-=he),Wn!==null||An!==null){it.value=" ";var tn=it.scrollHeight-he;Wn!==null&&(le=tn*Wn,me==="border-box"&&(le=le+he+ce),Nt=Math.max(le,Nt)),An!==null&&(Le=tn*An,me==="border-box"&&(Le=Le+he+ce),dt=Nt>Le?"":"hidden",Nt=Math.min(Le,Nt))}var an={height:Nt,overflowY:dt,resize:"none"};return le&&(an.minHeight=le),Le&&(an.maxHeight=Le),an}var Pt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xt=0,$e=1,Be=2,St=De.forwardRef(function(kt,un){var Wn=kt,An=Wn.prefixCls,Ie=Wn.onPressEnter,he=Wn.defaultValue,ce=Wn.value,me=Wn.autoSize,pe=Wn.onResize,le=Wn.className,Le=Wn.style,dt=Wn.disabled,Nt=Wn.onChange,tn=Wn.onInternalAutoSize,an=(0,Me.Z)(Wn,Pt),Yt=He(he,{value:ce,postState:function(In){return In!=null?In:""}}),dn=(0,xe.Z)(Yt,2),Mt=dn[0],Wt=dn[1],qt=function(In){Wt(In.target.value),Nt==null||Nt(In)},Gt=De.useRef();De.useImperativeHandle(un,function(){return{textArea:Gt.current}});var jt=De.useMemo(function(){return me&&(0,Ge.Z)(me)==="object"?[me.minRows,me.maxRows]:[]},[me]),sr=(0,xe.Z)(jt,2),Dt=sr[0],Jt=sr[1],Gn=!!me,Bn=function(){try{if(document.activeElement===Gt.current){var In=Gt.current,nr=In.selectionStart,Rr=In.selectionEnd,Pr=In.scrollTop;Gt.current.setSelectionRange(nr,Rr),Gt.current.scrollTop=Pr}}catch(br){}},Sn=De.useState(Be),or=(0,xe.Z)(Sn,2),gr=or[0],kr=or[1],Lr=De.useState(),Qr=(0,xe.Z)(Lr,2),Ir=Qr[0],Dn=Qr[1],cr=function(){kr(Xt)};_e(function(){Gn&&cr()},[ce,Dt,Jt,Gn]),_e(function(){if(gr===Xt)kr($e);else if(gr===$e){var nn=gt(Gt.current,!1,Dt,Jt);kr(Be),Dn(nn)}else Bn()},[gr]);var vr=De.useRef(),Ur=function(){Ze.cancel(vr.current)},ti=function(In){gr===Be&&(pe==null||pe(In),me&&(Ur(),vr.current=Ze(function(){cr()})))};De.useEffect(function(){return Ur},[]);var Kt=Gn?Ir:null,_n=(0,de.Z)((0,de.Z)({},Le),Kt);return(gr===Xt||gr===$e)&&(_n.overflowY="hidden",_n.overflowX="hidden"),De.createElement(Oe.Z,{onResize:ti,disabled:!(me||pe)},De.createElement("textarea",(0,ee.Z)({},an,{ref:Gt,style:_n,className:fe()(An,le,(0,ke.Z)({},"".concat(An,"-disabled"),dt)),disabled:dt,value:Mt,onChange:qt})))}),Vt=St,Rt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ht(kt,un){return(0,ue.Z)(kt||"").slice(0,un).join("")}function Bt(kt,un,Wn,An){var Ie=Wn;return kt?Ie=ht(Wn,An):(0,ue.Z)(un||"").length<Wn.length&&(0,ue.Z)(Wn||"").length>An&&(Ie=un),Ie}var _t=De.forwardRef(function(kt,un){var Wn,An=kt.defaultValue,Ie=kt.value,he=kt.onFocus,ce=kt.onBlur,me=kt.onChange,pe=kt.allowClear,le=kt.maxLength,Le=kt.onCompositionStart,dt=kt.onCompositionEnd,Nt=kt.suffix,tn=kt.prefixCls,an=tn===void 0?"rc-textarea":tn,Yt=kt.classes,dn=kt.showCount,Mt=kt.className,Wt=kt.style,qt=kt.disabled,Gt=kt.hidden,jt=kt.classNames,sr=kt.styles,Dt=kt.onResize,Jt=(0,Me.Z)(kt,Rt),Gn=He(An,{value:Ie,defaultValue:An}),Bn=(0,xe.Z)(Gn,2),Sn=Bn[0],or=Bn[1],gr=(0,De.useRef)(null),kr=De.useState(!1),Lr=(0,xe.Z)(kr,2),Qr=Lr[0],Ir=Lr[1],Dn=De.useState(!1),cr=(0,xe.Z)(Dn,2),vr=cr[0],Ur=cr[1],ti=De.useRef(),Kt=De.useRef(0),_n=De.useState(null),nn=(0,xe.Z)(_n,2),In=nn[0],nr=nn[1],Rr=function(){var di;(di=gr.current)===null||di===void 0||di.textArea.focus()};(0,De.useImperativeHandle)(un,function(){return{resizableTextArea:gr.current,focus:Rr,blur:function(){var di;(di=gr.current)===null||di===void 0||di.textArea.blur()}}}),(0,De.useEffect)(function(){Ir(function(Gr){return!qt&&Gr})},[qt]);var Pr=Number(le)>0,br=function(di){Ur(!0),ti.current=Sn,Kt.current=di.currentTarget.selectionStart,Le==null||Le(di)},xt=function(di){Ur(!1);var ci=di.currentTarget.value;if(Pr){var Si,Jn=Kt.current>=le+1||Kt.current===((Si=ti.current)===null||Si===void 0?void 0:Si.length);ci=Bt(Jn,ti.current,ci,le)}ci!==Sn&&(or(ci),(0,Ue.rJ)(di.currentTarget,di,me,ci)),dt==null||dt(di)},$t=function(di){var ci=di.target.value;if(!vr&&Pr){var Si=di.target.selectionStart>=le+1||di.target.selectionStart===ci.length||!di.target.selectionStart;ci=Bt(Si,Sn,ci,le)}or(ci),(0,Ue.rJ)(di.currentTarget,di,me,ci)},fn=function(di){var ci=Jt.onPressEnter,Si=Jt.onKeyDown;di.key==="Enter"&&ci&&ci(di),Si==null||Si(di)},Mn=function(di){Ir(!0),he==null||he(di)},yt=function(di){Ir(!1),ce==null||ce(di)},Ut=function(di){var ci;or(""),Rr(),(0,Ue.rJ)((ci=gr.current)===null||ci===void 0?void 0:ci.textArea,di,me)},Cn=(0,Ue.D7)(Sn);!vr&&Pr&&Ie==null&&(Cn=ht(Cn,le));var cn=Nt,zn;if(dn){var Hn=(0,ue.Z)(Cn).length;(0,Ge.Z)(dn)==="object"?zn=dn.formatter({value:Cn,count:Hn,maxLength:le}):zn="".concat(Hn).concat(Pr?" / ".concat(le):""),cn=De.createElement(De.Fragment,null,cn,De.createElement("span",{className:fe()("".concat(an,"-data-count"),jt==null?void 0:jt.count),style:sr==null?void 0:sr.count},zn))}var Mr=function(di){var ci;Dt==null||Dt(di),(ci=gr.current)!==null&&ci!==void 0&&ci.textArea.style.height&&nr(!0)},gi=!Jt.autoSize&&!dn&&!pe,Xr=De.createElement(we.BaseInput,{value:Cn,allowClear:pe,handleReset:Ut,suffix:cn,prefixCls:an,classes:{affixWrapper:fe()(Yt==null?void 0:Yt.affixWrapper,(Wn={},(0,ke.Z)(Wn,"".concat(an,"-show-count"),dn),(0,ke.Z)(Wn,"".concat(an,"-textarea-allow-clear"),pe),Wn))},disabled:qt,focused:Qr,className:Mt,style:(0,de.Z)((0,de.Z)({},Wt),In&&!gi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zn=="string"?zn:void 0}},hidden:Gt,inputElement:De.createElement(Vt,(0,ee.Z)({},Jt,{onKeyDown:fn,onChange:$t,onFocus:Mn,onBlur:yt,onCompositionStart:br,onCompositionEnd:xt,className:jt==null?void 0:jt.textarea,style:(0,de.Z)((0,de.Z)({},sr==null?void 0:sr.textarea),{},{resize:Wt==null?void 0:Wt.resize}),disabled:qt,prefixCls:an,onResize:Mr,ref:gr}))});return Xr}),Fn=_t,kn=Fn},56261:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return We}});var ee=te(87462),de=te(4942),ke=te(45987),Ge=te(1413),xe=te(15671),Me=te(43144),ue=te(97326),Ee=te(60136),fe=te(51630),we=te(94184),Ue=te.n(we),De=te(34952),Ke=te(67294),rt=te(69610),Qe=function(at){for(var Ze=at.prefixCls,Ae=at.level,mt=at.isStart,je=at.isEnd,it="".concat(Ze,"-indent-unit"),qe=[],gt=0;gt<Ae;gt+=1){var Pt;qe.push(Ke.createElement("span",{key:gt,className:Ue()(it,(Pt={},(0,de.Z)(Pt,"".concat(it,"-start"),mt[gt]),(0,de.Z)(Pt,"".concat(it,"-end"),je[gt]),Pt))}))}return Ke.createElement("span",{"aria-hidden":"true",className:"".concat(Ze,"-indent")},qe)},_e=Ke.memo(Qe),ge=te(3596),Ve=te(83898),lt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],He="open",Oe="close",ve="---",ye=function(st){(0,Ee.Z)(Ze,st);var at=(0,fe.Z)(Ze);function Ze(){var Ae;(0,xe.Z)(this,Ze);for(var mt=arguments.length,je=new Array(mt),it=0;it<mt;it++)je[it]=arguments[it];return Ae=at.call.apply(at,[this].concat(je)),Ae.state={dragNodeHighlight:!1},Ae.selectHandle=void 0,Ae.cacheIndent=void 0,Ae.onSelectorClick=function(qe){var gt=Ae.props.context.onNodeClick;gt(qe,(0,Ve.F)(Ae.props)),Ae.isSelectable()?Ae.onSelect(qe):Ae.onCheck(qe)},Ae.onSelectorDoubleClick=function(qe){var gt=Ae.props.context.onNodeDoubleClick;gt(qe,(0,Ve.F)(Ae.props))},Ae.onSelect=function(qe){if(!Ae.isDisabled()){var gt=Ae.props.context.onNodeSelect;gt(qe,(0,Ve.F)(Ae.props))}},Ae.onCheck=function(qe){if(!Ae.isDisabled()){var gt=Ae.props,Pt=gt.disableCheckbox,Xt=gt.checked,$e=Ae.props.context.onNodeCheck;if(!(!Ae.isCheckable()||Pt)){var Be=!Xt;$e(qe,(0,Ve.F)(Ae.props),Be)}}},Ae.onMouseEnter=function(qe){var gt=Ae.props.context.onNodeMouseEnter;gt(qe,(0,Ve.F)(Ae.props))},Ae.onMouseLeave=function(qe){var gt=Ae.props.context.onNodeMouseLeave;gt(qe,(0,Ve.F)(Ae.props))},Ae.onContextMenu=function(qe){var gt=Ae.props.context.onNodeContextMenu;gt(qe,(0,Ve.F)(Ae.props))},Ae.onDragStart=function(qe){var gt=Ae.props.context.onNodeDragStart;qe.stopPropagation(),Ae.setState({dragNodeHighlight:!0}),gt(qe,(0,ue.Z)(Ae));try{qe.dataTransfer.setData("text/plain","")}catch(Pt){}},Ae.onDragEnter=function(qe){var gt=Ae.props.context.onNodeDragEnter;qe.preventDefault(),qe.stopPropagation(),gt(qe,(0,ue.Z)(Ae))},Ae.onDragOver=function(qe){var gt=Ae.props.context.onNodeDragOver;qe.preventDefault(),qe.stopPropagation(),gt(qe,(0,ue.Z)(Ae))},Ae.onDragLeave=function(qe){var gt=Ae.props.context.onNodeDragLeave;qe.stopPropagation(),gt(qe,(0,ue.Z)(Ae))},Ae.onDragEnd=function(qe){var gt=Ae.props.context.onNodeDragEnd;qe.stopPropagation(),Ae.setState({dragNodeHighlight:!1}),gt(qe,(0,ue.Z)(Ae))},Ae.onDrop=function(qe){var gt=Ae.props.context.onNodeDrop;qe.preventDefault(),qe.stopPropagation(),Ae.setState({dragNodeHighlight:!1}),gt(qe,(0,ue.Z)(Ae))},Ae.onExpand=function(qe){var gt=Ae.props,Pt=gt.loading,Xt=gt.context.onNodeExpand;Pt||Xt(qe,(0,Ve.F)(Ae.props))},Ae.setSelectHandle=function(qe){Ae.selectHandle=qe},Ae.getNodeState=function(){var qe=Ae.props.expanded;return Ae.isLeaf()?null:qe?He:Oe},Ae.hasChildren=function(){var qe=Ae.props.eventKey,gt=Ae.props.context.keyEntities,Pt=(0,ge.Z)(gt,qe)||{},Xt=Pt.children;return!!(Xt||[]).length},Ae.isLeaf=function(){var qe=Ae.props,gt=qe.isLeaf,Pt=qe.loaded,Xt=Ae.props.context.loadData,$e=Ae.hasChildren();return gt===!1?!1:gt||!Xt&&!$e||Xt&&Pt&&!$e},Ae.isDisabled=function(){var qe=Ae.props.disabled,gt=Ae.props.context.disabled;return!!(gt||qe)},Ae.isCheckable=function(){var qe=Ae.props.checkable,gt=Ae.props.context.checkable;return!gt||qe===!1?!1:gt},Ae.syncLoadData=function(qe){var gt=qe.expanded,Pt=qe.loading,Xt=qe.loaded,$e=Ae.props.context,Be=$e.loadData,St=$e.onNodeLoad;Pt||Be&&gt&&!Ae.isLeaf()&&!Ae.hasChildren()&&!Xt&&St((0,Ve.F)(Ae.props))},Ae.isDraggable=function(){var qe=Ae.props,gt=qe.data,Pt=qe.context.draggable;return!!(Pt&&(!Pt.nodeDraggable||Pt.nodeDraggable(gt)))},Ae.renderDragHandler=function(){var qe=Ae.props.context,gt=qe.draggable,Pt=qe.prefixCls;return gt!=null&&gt.icon?Ke.createElement("span",{className:"".concat(Pt,"-draggable-icon")},gt.icon):null},Ae.renderSwitcherIconDom=function(qe){var gt=Ae.props.switcherIcon,Pt=Ae.props.context.switcherIcon,Xt=gt||Pt;return typeof Xt=="function"?Xt((0,Ge.Z)((0,Ge.Z)({},Ae.props),{},{isLeaf:qe})):Xt},Ae.renderSwitcher=function(){var qe=Ae.props.expanded,gt=Ae.props.context.prefixCls;if(Ae.isLeaf()){var Pt=Ae.renderSwitcherIconDom(!0);return Pt!==!1?Ke.createElement("span",{className:Ue()("".concat(gt,"-switcher"),"".concat(gt,"-switcher-noop"))},Pt):null}var Xt=Ue()("".concat(gt,"-switcher"),"".concat(gt,"-switcher_").concat(qe?He:Oe)),$e=Ae.renderSwitcherIconDom(!1);return $e!==!1?Ke.createElement("span",{onClick:Ae.onExpand,className:Xt},$e):null},Ae.renderCheckbox=function(){var qe=Ae.props,gt=qe.checked,Pt=qe.halfChecked,Xt=qe.disableCheckbox,$e=Ae.props.context.prefixCls,Be=Ae.isDisabled(),St=Ae.isCheckable();if(!St)return null;var Vt=typeof St!="boolean"?St:null;return Ke.createElement("span",{className:Ue()("".concat($e,"-checkbox"),gt&&"".concat($e,"-checkbox-checked"),!gt&&Pt&&"".concat($e,"-checkbox-indeterminate"),(Be||Xt)&&"".concat($e,"-checkbox-disabled")),onClick:Ae.onCheck},Vt)},Ae.renderIcon=function(){var qe=Ae.props.loading,gt=Ae.props.context.prefixCls;return Ke.createElement("span",{className:Ue()("".concat(gt,"-iconEle"),"".concat(gt,"-icon__").concat(Ae.getNodeState()||"docu"),qe&&"".concat(gt,"-icon_loading"))})},Ae.renderSelector=function(){var qe=Ae.state.dragNodeHighlight,gt=Ae.props,Pt=gt.title,Xt=Pt===void 0?ve:Pt,$e=gt.selected,Be=gt.icon,St=gt.loading,Vt=gt.data,Rt=Ae.props.context,ht=Rt.prefixCls,Bt=Rt.showIcon,_t=Rt.icon,Fn=Rt.loadData,kn=Rt.titleRender,kt=Ae.isDisabled(),un="".concat(ht,"-node-content-wrapper"),Wn;if(Bt){var An=Be||_t;Wn=An?Ke.createElement("span",{className:Ue()("".concat(ht,"-iconEle"),"".concat(ht,"-icon__customize"))},typeof An=="function"?An(Ae.props):An):Ae.renderIcon()}else Fn&&St&&(Wn=Ae.renderIcon());var Ie;typeof Xt=="function"?Ie=Xt(Vt):kn?Ie=kn(Vt):Ie=Xt;var he=Ke.createElement("span",{className:"".concat(ht,"-title")},Ie);return Ke.createElement("span",{ref:Ae.setSelectHandle,title:typeof Xt=="string"?Xt:"",className:Ue()("".concat(un),"".concat(un,"-").concat(Ae.getNodeState()||"normal"),!kt&&($e||qe)&&"".concat(ht,"-node-selected")),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave,onContextMenu:Ae.onContextMenu,onClick:Ae.onSelectorClick,onDoubleClick:Ae.onSelectorDoubleClick},Wn,he,Ae.renderDropIndicator())},Ae.renderDropIndicator=function(){var qe=Ae.props,gt=qe.disabled,Pt=qe.eventKey,Xt=Ae.props.context,$e=Xt.draggable,Be=Xt.dropLevelOffset,St=Xt.dropPosition,Vt=Xt.prefixCls,Rt=Xt.indent,ht=Xt.dropIndicatorRender,Bt=Xt.dragOverNodeKey,_t=Xt.direction,Fn=!!$e,kn=!gt&&Fn&&Bt===Pt,kt=Rt!=null?Rt:Ae.cacheIndent;return Ae.cacheIndent=Rt,kn?ht({dropPosition:St,dropLevelOffset:Be,indent:kt,prefixCls:Vt,direction:_t}):null},Ae}return(0,Me.Z)(Ze,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var mt=this.props.selectable,je=this.props.context.selectable;return typeof mt=="boolean"?mt:je}},{key:"render",value:function(){var mt,je=this.props,it=je.eventKey,qe=je.className,gt=je.style,Pt=je.dragOver,Xt=je.dragOverGapTop,$e=je.dragOverGapBottom,Be=je.isLeaf,St=je.isStart,Vt=je.isEnd,Rt=je.expanded,ht=je.selected,Bt=je.checked,_t=je.halfChecked,Fn=je.loading,kn=je.domRef,kt=je.active,un=je.data,Wn=je.onMouseMove,An=je.selectable,Ie=(0,ke.Z)(je,lt),he=this.props.context,ce=he.prefixCls,me=he.filterTreeNode,pe=he.keyEntities,le=he.dropContainerKey,Le=he.dropTargetKey,dt=he.draggingNodeKey,Nt=this.isDisabled(),tn=(0,De.Z)(Ie,{aria:!0,data:!0}),an=(0,ge.Z)(pe,it)||{},Yt=an.level,dn=Vt[Vt.length-1],Mt=this.isDraggable(),Wt=!Nt&&Mt,qt=dt===it,Gt=An!==void 0?{"aria-selected":!!An}:void 0;return Ke.createElement("div",(0,ee.Z)({ref:kn,className:Ue()(qe,"".concat(ce,"-treenode"),(mt={},(0,de.Z)(mt,"".concat(ce,"-treenode-disabled"),Nt),(0,de.Z)(mt,"".concat(ce,"-treenode-switcher-").concat(Rt?"open":"close"),!Be),(0,de.Z)(mt,"".concat(ce,"-treenode-checkbox-checked"),Bt),(0,de.Z)(mt,"".concat(ce,"-treenode-checkbox-indeterminate"),_t),(0,de.Z)(mt,"".concat(ce,"-treenode-selected"),ht),(0,de.Z)(mt,"".concat(ce,"-treenode-loading"),Fn),(0,de.Z)(mt,"".concat(ce,"-treenode-active"),kt),(0,de.Z)(mt,"".concat(ce,"-treenode-leaf-last"),dn),(0,de.Z)(mt,"".concat(ce,"-treenode-draggable"),Mt),(0,de.Z)(mt,"dragging",qt),(0,de.Z)(mt,"drop-target",Le===it),(0,de.Z)(mt,"drop-container",le===it),(0,de.Z)(mt,"drag-over",!Nt&&Pt),(0,de.Z)(mt,"drag-over-gap-top",!Nt&&Xt),(0,de.Z)(mt,"drag-over-gap-bottom",!Nt&&$e),(0,de.Z)(mt,"filter-node",me&&me((0,Ve.F)(this.props))),mt)),style:gt,draggable:Wt,"aria-grabbed":qt,onDragStart:Wt?this.onDragStart:void 0,onDragEnter:Mt?this.onDragEnter:void 0,onDragOver:Mt?this.onDragOver:void 0,onDragLeave:Mt?this.onDragLeave:void 0,onDrop:Mt?this.onDrop:void 0,onDragEnd:Mt?this.onDragEnd:void 0,onMouseMove:Wn},Gt,tn),Ke.createElement(_e,{prefixCls:ce,level:Yt,isStart:St,isEnd:Vt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ze}(Ke.Component),ze=function(at){return Ke.createElement(rt.k.Consumer,null,function(Ze){return Ke.createElement(ye,(0,ee.Z)({},at,{context:Ze}))})};ze.displayName="TreeNode",ze.isTreeNode=1;var We=ze},69610:function(vn,Tt,te){"use strict";te.d(Tt,{k:function(){return de}});var ee=te(67294),de=ee.createContext(null)},29873:function(vn,Tt,te){"use strict";te.d(Tt,{BT:function(){return _e},E6:function(){return lt},L0:function(){return we},OM:function(){return Qe},_5:function(){return fe},r7:function(){return He},wA:function(){return De},yx:function(){return Ue}});var ee=te(74902),de=te(71002),ke=te(72978),Ge=te(67294),xe=te(56261),Me=te(3596),ue=te(83898),Ee=null;function fe(Oe,ve){if(!Oe)return[];var ye=Oe.slice(),ze=ye.indexOf(ve);return ze>=0&&ye.splice(ze,1),ye}function we(Oe,ve){var ye=(Oe||[]).slice();return ye.indexOf(ve)===-1&&ye.push(ve),ye}function Ue(Oe){return Oe.split("-")}function De(Oe,ve){var ye=[],ze=(0,Me.Z)(ve,Oe);function We(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];st.forEach(function(at){var Ze=at.key,Ae=at.children;ye.push(Ze),We(Ae)})}return We(ze.children),ye}function Ke(Oe){if(Oe.parent){var ve=Ue(Oe.pos);return Number(ve[ve.length-1])===Oe.parent.children.length-1}return!1}function rt(Oe){var ve=Ue(Oe.pos);return Number(ve[ve.length-1])===0}function Qe(Oe,ve,ye,ze,We,st,at,Ze,Ae,mt){var je,it=Oe.clientX,qe=Oe.clientY,gt=Oe.target.getBoundingClientRect(),Pt=gt.top,Xt=gt.height,$e=(mt==="rtl"?-1:1)*(((We==null?void 0:We.x)||0)-it),Be=($e-12)/ze,St=(0,Me.Z)(Ze,ye.props.eventKey);if(qe<Pt+Xt/2){var Vt=at.findIndex(function(he){return he.key===St.key}),Rt=Vt<=0?0:Vt-1,ht=at[Rt].key;St=(0,Me.Z)(Ze,ht)}var Bt=St.key,_t=St,Fn=St.key,kn=0,kt=0;if(!Ae.includes(Bt))for(var un=0;un<Be&&Ke(St);un+=1)St=St.parent,kt+=1;var Wn=ve.props.data,An=St.node,Ie=!0;return rt(St)&&St.level===0&&qe<Pt+Xt/2&&st({dragNode:Wn,dropNode:An,dropPosition:-1})&&St.key===ye.props.eventKey?kn=-1:(_t.children||[]).length&&Ae.includes(Fn)?st({dragNode:Wn,dropNode:An,dropPosition:0})?kn=0:Ie=!1:kt===0?Be>-1.5?st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1:st({dragNode:Wn,dropNode:An,dropPosition:0})?kn=0:st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1:st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1,{dropPosition:kn,dropLevelOffset:kt,dropTargetKey:St.key,dropTargetPos:St.pos,dragOverNodeKey:Fn,dropContainerKey:kn===0?null:((je=St.parent)===null||je===void 0?void 0:je.key)||null,dropAllowed:Ie}}function _e(Oe,ve){if(Oe){var ye=ve.multiple;return ye?Oe.slice():Oe.length?[Oe[0]]:Oe}}var ge=function(ve){return ve};function Ve(Oe,ve){if(!Oe)return[];var ye=ve||{},ze=ye.processProps,We=ze===void 0?ge:ze,st=Array.isArray(Oe)?Oe:[Oe];return st.map(function(at){var Ze=at.children,Ae=_objectWithoutProperties(at,Ee),mt=Ve(Ze,ve);return React.createElement(TreeNode,_extends({key:Ae.key},We(Ae)),mt)})}function lt(Oe){if(!Oe)return null;var ve;if(Array.isArray(Oe))ve={checkedKeys:Oe,halfCheckedKeys:void 0};else if((0,de.Z)(Oe)==="object")ve={checkedKeys:Oe.checked||void 0,halfCheckedKeys:Oe.halfChecked||void 0};else return(0,ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ve}function He(Oe,ve){var ye=new Set;function ze(We){if(!ye.has(We)){var st=(0,Me.Z)(ve,We);if(st){ye.add(We);var at=st.parent,Ze=st.node;Ze.disabled||at&&ze(at.key)}}}return(Oe||[]).forEach(function(We){ze(We)}),(0,ee.Z)(ye)}},97153:function(vn,Tt,te){"use strict";te.d(Tt,{S:function(){return ue}});var ee=te(72978),de=te(3596);function ke(Ee,fe){var we=new Set;return Ee.forEach(function(Ue){fe.has(Ue)||we.add(Ue)}),we}function Ge(Ee){var fe=Ee||{},we=fe.disabled,Ue=fe.disableCheckbox,De=fe.checkable;return!!(we||Ue)||De===!1}function xe(Ee,fe,we,Ue){for(var De=new Set(Ee),Ke=new Set,rt=0;rt<=we;rt+=1){var Qe=fe.get(rt)||new Set;Qe.forEach(function(lt){var He=lt.key,Oe=lt.node,ve=lt.children,ye=ve===void 0?[]:ve;De.has(He)&&!Ue(Oe)&&ye.filter(function(ze){return!Ue(ze.node)}).forEach(function(ze){De.add(ze.key)})})}for(var _e=new Set,ge=we;ge>=0;ge-=1){var Ve=fe.get(ge)||new Set;Ve.forEach(function(lt){var He=lt.parent,Oe=lt.node;if(!(Ue(Oe)||!lt.parent||_e.has(lt.parent.key))){if(Ue(lt.parent.node)){_e.add(He.key);return}var ve=!0,ye=!1;(He.children||[]).filter(function(ze){return!Ue(ze.node)}).forEach(function(ze){var We=ze.key,st=De.has(We);ve&&!st&&(ve=!1),!ye&&(st||Ke.has(We))&&(ye=!0)}),ve&&De.add(He.key),ye&&Ke.add(He.key),_e.add(He.key)}})}return{checkedKeys:Array.from(De),halfCheckedKeys:Array.from(ke(Ke,De))}}function Me(Ee,fe,we,Ue,De){for(var Ke=new Set(Ee),rt=new Set(fe),Qe=0;Qe<=Ue;Qe+=1){var _e=we.get(Qe)||new Set;_e.forEach(function(He){var Oe=He.key,ve=He.node,ye=He.children,ze=ye===void 0?[]:ye;!Ke.has(Oe)&&!rt.has(Oe)&&!De(ve)&&ze.filter(function(We){return!De(We.node)}).forEach(function(We){Ke.delete(We.key)})})}rt=new Set;for(var ge=new Set,Ve=Ue;Ve>=0;Ve-=1){var lt=we.get(Ve)||new Set;lt.forEach(function(He){var Oe=He.parent,ve=He.node;if(!(De(ve)||!He.parent||ge.has(He.parent.key))){if(De(He.parent.node)){ge.add(Oe.key);return}var ye=!0,ze=!1;(Oe.children||[]).filter(function(We){return!De(We.node)}).forEach(function(We){var st=We.key,at=Ke.has(st);ye&&!at&&(ye=!1),!ze&&(at||rt.has(st))&&(ze=!0)}),ye||Ke.delete(Oe.key),ze&&rt.add(Oe.key),ge.add(Oe.key)}})}return{checkedKeys:Array.from(Ke),halfCheckedKeys:Array.from(ke(rt,Ke))}}function ue(Ee,fe,we,Ue){var De=[],Ke;Ue?Ke=Ue:Ke=Ge;var rt=new Set(Ee.filter(function(Ve){var lt=!!(0,de.Z)(we,Ve);return lt||De.push(Ve),lt})),Qe=new Map,_e=0;Object.keys(we).forEach(function(Ve){var lt=we[Ve],He=lt.level,Oe=Qe.get(He);Oe||(Oe=new Set,Qe.set(He,Oe)),Oe.add(lt),_e=Math.max(_e,He)}),(0,ee.ZP)(!De.length,"Tree missing follow keys: ".concat(De.slice(0,100).map(function(Ve){return"'".concat(Ve,"'")}).join(", ")));var ge;return fe===!0?ge=xe(rt,Qe,_e,Ke):ge=Me(rt,fe.halfCheckedKeys,Qe,_e,Ke),ge}},3596:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ee}});function ee(de,ke){return de[ke]}},83898:function(vn,Tt,te){"use strict";te.d(Tt,{I8:function(){return He},F:function(){return ve},zn:function(){return ge},w$:function(){return Qe},oH:function(){return Ve},km:function(){return rt},H8:function(){return Oe}});var ee=te(71002),de=te(74902),ke=te(1413),Ge=te(45987),xe=te(67294),Me=te(28580);function ue(ye){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=[];return xe.Children.forEach(ye,function(st){st==null&&!ze.keepEmpty||(Array.isArray(st)?We=We.concat(ue(st)):(0,Me.isFragment)(st)&&st.props?We=We.concat(ue(st.props.children,ze)):We.push(st))}),We}function Ee(ye,ze){var We=(0,ke.Z)({},ye);return Array.isArray(ze)&&ze.forEach(function(st){delete We[st]}),We}var fe=te(72978),we=te(3596),Ue=["children"];function De(ye,ze){return"".concat(ye,"-").concat(ze)}function Ke(ye){return ye&&ye.type&&ye.type.isTreeNode}function rt(ye,ze){return ye!=null?ye:ze}function Qe(ye){var ze=ye||{},We=ze.title,st=ze._title,at=ze.key,Ze=ze.children,Ae=We||"title";return{title:Ae,_title:st||[Ae],key:at||"key",children:Ze||"children"}}function _e(ye,ze){var We=new Map;function st(at){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(at||[]).forEach(function(Ae){var mt=Ae[ze.key],je=Ae[ze.children];warning(mt!=null,"Tree node must have a certain key: [".concat(Ze).concat(mt,"]"));var it=String(mt);warning(!We.has(it)||mt===null||mt===void 0,"Same 'key' exist in the Tree: ".concat(it)),We.set(it,!0),st(je,"".concat(Ze).concat(it," > "))})}st(ye)}function ge(ye){function ze(We){var st=ue(We);return st.map(function(at){if(!Ke(at))return(0,fe.ZP)(!at,"Tree/TreeNode can only accept TreeNode as children."),null;var Ze=at.key,Ae=at.props,mt=Ae.children,je=(0,Ge.Z)(Ae,Ue),it=(0,ke.Z)({key:Ze},je),qe=ze(mt);return qe.length&&(it.children=qe),it}).filter(function(at){return at})}return ze(ye)}function Ve(ye,ze,We){var st=Qe(We),at=st._title,Ze=st.key,Ae=st.children,mt=new Set(ze===!0?[]:ze),je=[];function it(qe){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return qe.map(function(Pt,Xt){for(var $e=De(gt?gt.pos:"0",Xt),Be=rt(Pt[Ze],$e),St,Vt=0;Vt<at.length;Vt+=1){var Rt=at[Vt];if(Pt[Rt]!==void 0){St=Pt[Rt];break}}var ht=(0,ke.Z)((0,ke.Z)({},Ee(Pt,[].concat((0,de.Z)(at),[Ze,Ae]))),{},{title:St,key:Be,parent:gt,pos:$e,children:null,data:Pt,isStart:[].concat((0,de.Z)(gt?gt.isStart:[]),[Xt===0]),isEnd:[].concat((0,de.Z)(gt?gt.isEnd:[]),[Xt===qe.length-1])});return je.push(ht),ze===!0||mt.has(Be)?ht.children=it(Pt[Ae]||[],ht):ht.children=[],ht})}return it(ye),je}function lt(ye,ze,We){var st={};(0,ee.Z)(We)==="object"?st=We:st={externalGetKey:We},st=st||{};var at=st,Ze=at.childrenPropName,Ae=at.externalGetKey,mt=at.fieldNames,je=Qe(mt),it=je.key,qe=je.children,gt=Ze||qe,Pt;Ae?typeof Ae=="string"?Pt=function(Be){return Be[Ae]}:typeof Ae=="function"&&(Pt=function(Be){return Ae(Be)}):Pt=function(Be,St){return rt(Be[it],St)};function Xt($e,Be,St,Vt){var Rt=$e?$e[gt]:ye,ht=$e?De(St.pos,Be):"0",Bt=$e?[].concat((0,de.Z)(Vt),[$e]):[];if($e){var _t=Pt($e,ht),Fn={node:$e,index:Be,pos:ht,key:_t,parentPos:St.node?St.pos:null,level:St.level+1,nodes:Bt};ze(Fn)}Rt&&Rt.forEach(function(kn,kt){Xt(kn,kt,{node:$e,pos:ht,level:St?St.level+1:-1},Bt)})}Xt(null)}function He(ye){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},We=ze.initWrapper,st=ze.processEntity,at=ze.onProcessFinished,Ze=ze.externalGetKey,Ae=ze.childrenPropName,mt=ze.fieldNames,je=arguments.length>2?arguments[2]:void 0,it=Ze||je,qe={},gt={},Pt={posEntities:qe,keyEntities:gt};return We&&(Pt=We(Pt)||Pt),lt(ye,function(Xt){var $e=Xt.node,Be=Xt.index,St=Xt.pos,Vt=Xt.key,Rt=Xt.parentPos,ht=Xt.level,Bt=Xt.nodes,_t={node:$e,nodes:Bt,index:Be,key:Vt,pos:St,level:ht},Fn=rt(Vt,St);qe[St]=_t,gt[Fn]=_t,_t.parent=qe[Rt],_t.parent&&(_t.parent.children=_t.parent.children||[],_t.parent.children.push(_t)),st&&st(_t,Pt)},{externalGetKey:it,childrenPropName:Ae,fieldNames:mt}),at&&at(Pt),Pt}function Oe(ye,ze){var We=ze.expandedKeys,st=ze.selectedKeys,at=ze.loadedKeys,Ze=ze.loadingKeys,Ae=ze.checkedKeys,mt=ze.halfCheckedKeys,je=ze.dragOverNodeKey,it=ze.dropPosition,qe=ze.keyEntities,gt=(0,we.Z)(qe,ye),Pt={eventKey:ye,expanded:We.indexOf(ye)!==-1,selected:st.indexOf(ye)!==-1,loaded:at.indexOf(ye)!==-1,loading:Ze.indexOf(ye)!==-1,checked:Ae.indexOf(ye)!==-1,halfChecked:mt.indexOf(ye)!==-1,pos:String(gt?gt.pos:""),dragOver:je===ye&&it===0,dragOverGapTop:je===ye&&it===-1,dragOverGapBottom:je===ye&&it===1};return Pt}function ve(ye){var ze=ye.data,We=ye.expanded,st=ye.selected,at=ye.checked,Ze=ye.loaded,Ae=ye.loading,mt=ye.halfChecked,je=ye.dragOver,it=ye.dragOverGapTop,qe=ye.dragOverGapBottom,gt=ye.pos,Pt=ye.active,Xt=ye.eventKey,$e=(0,ke.Z)((0,ke.Z)({},ze),{},{expanded:We,selected:st,checked:at,loaded:Ze,loading:Ae,halfChecked:mt,dragOver:je,dragOverGapTop:it,dragOverGapBottom:qe,pos:gt,active:Pt,key:Xt});return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,fe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ye}}),$e}},34952:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});var ee=te(1413),de=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,ke=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ge="".concat(de," ").concat(ke).split(/[\s\n]+/),xe="aria-",Me="data-";function ue(fe,we){return fe.indexOf(we)===0}function Ee(fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;we===!1?Ue={aria:!0,data:!0,attr:!0}:we===!0?Ue={aria:!0}:Ue=(0,ee.Z)({},we);var De={};return Object.keys(fe).forEach(function(Ke){(Ue.aria&&(Ke==="role"||ue(Ke,xe))||Ue.data&&ue(Ke,Me)||Ue.attr&&Ge.includes(Ke))&&(De[Ke]=fe[Ke])}),De}},72978:function(vn,Tt,te){"use strict";var ee={};function de(Ee,fe){}function ke(Ee,fe){}function Ge(){ee={}}function xe(Ee,fe,we){!fe&&!ee[we]&&(Ee(!1,we),ee[we]=!0)}function Me(Ee,fe){xe(de,Ee,fe)}function ue(Ee,fe){xe(ke,Ee,fe)}Tt.ZP=Me},81533:function(vn,Tt){"use strict";var te;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,ke=ee?Symbol.for("react.portal"):60106,Ge=ee?Symbol.for("react.fragment"):60107,xe=ee?Symbol.for("react.strict_mode"):60108,Me=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ee=ee?Symbol.for("react.context"):60110,fe=ee?Symbol.for("react.async_mode"):60111,we=ee?Symbol.for("react.concurrent_mode"):60111,Ue=ee?Symbol.for("react.forward_ref"):60112,De=ee?Symbol.for("react.suspense"):60113,Ke=ee?Symbol.for("react.suspense_list"):60120,rt=ee?Symbol.for("react.memo"):60115,Qe=ee?Symbol.for("react.lazy"):60116,_e=ee?Symbol.for("react.block"):60121,ge=ee?Symbol.for("react.fundamental"):60117,Ve=ee?Symbol.for("react.responder"):60118,lt=ee?Symbol.for("react.scope"):60119;function He(ve){if(typeof ve=="object"&&ve!==null){var ye=ve.$$typeof;switch(ye){case de:switch(ve=ve.type,ve){case fe:case we:case Ge:case Me:case xe:case De:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case Ee:case Ue:case Qe:case rt:case ue:return ve;default:return ye}}case ke:return ye}}}function Oe(ve){return He(ve)===we}te=fe,te=we,te=Ee,te=ue,te=de,te=Ue,te=Ge,te=Qe,te=rt,te=ke,te=Me,te=xe,te=De,te=function(ve){return Oe(ve)||He(ve)===fe},te=Oe,te=function(ve){return He(ve)===Ee},te=function(ve){return He(ve)===ue},te=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===de},te=function(ve){return He(ve)===Ue},Tt.isFragment=function(ve){return He(ve)===Ge},te=function(ve){return He(ve)===Qe},Tt.isMemo=function(ve){return He(ve)===rt},te=function(ve){return He(ve)===ke},te=function(ve){return He(ve)===Me},te=function(ve){return He(ve)===xe},te=function(ve){return He(ve)===De},te=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===Ge||ve===we||ve===Me||ve===xe||ve===De||ve===Ke||typeof ve=="object"&&ve!==null&&(ve.$$typeof===Qe||ve.$$typeof===rt||ve.$$typeof===ue||ve.$$typeof===Ee||ve.$$typeof===Ue||ve.$$typeof===ge||ve.$$typeof===Ve||ve.$$typeof===lt||ve.$$typeof===_e)},te=He},28580:function(vn,Tt,te){"use strict";vn.exports=te(81533)},92389:function(vn,Tt){"use strict";var te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(de){var ke=de.keyCode;if(de.altKey&&!de.ctrlKey||de.metaKey||ke>=te.F1&&ke<=te.F12)return!1;switch(ke){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(de){if(de>=te.ZERO&&de<=te.NINE||de>=te.NUM_ZERO&&de<=te.NUM_MULTIPLY||de>=te.A&&de<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&de===0)return!0;switch(de){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Tt.Z=te},1337:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});var ee=te(1413),de=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,ke=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ge="".concat(de," ").concat(ke).split(/[\s\n]+/),xe="aria-",Me="data-";function ue(fe,we){return fe.indexOf(we)===0}function Ee(fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;we===!1?Ue={aria:!0,data:!0,attr:!0}:we===!0?Ue={aria:!0}:Ue=(0,ee.Z)({},we);var De={};return Object.keys(fe).forEach(function(Ke){(Ue.aria&&(Ke==="role"||ue(Ke,xe))||Ue.data&&ue(Ke,Me)||Ue.attr&&Ge.includes(Ke))&&(De[Ke]=fe[Ke])}),De}},88386:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){ee.defineOption("placeholder","",function(Ee,fe,we){var Ue=we&&we!=ee.Init;if(fe&&!Ue)Ee.on("blur",xe),Ee.on("change",Me),Ee.on("swapDoc",Me),ee.on(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose=function(){Ge(Ee)}),Me(Ee);else if(!fe&&Ue){Ee.off("blur",xe),Ee.off("change",Me),Ee.off("swapDoc",Me),ee.off(Ee.getInputField(),"compositionupdate",Ee.state.placeholderCompose),de(Ee);var De=Ee.getWrapperElement();De.className=De.className.replace(" CodeMirror-empty","")}fe&&!Ee.hasFocus()&&xe(Ee)});function de(Ee){Ee.state.placeholder&&(Ee.state.placeholder.parentNode.removeChild(Ee.state.placeholder),Ee.state.placeholder=null)}function ke(Ee){de(Ee);var fe=Ee.state.placeholder=document.createElement("pre");fe.style.cssText="height: 0; overflow: visible",fe.style.direction=Ee.getOption("direction"),fe.className="CodeMirror-placeholder CodeMirror-line-like";var we=Ee.getOption("placeholder");typeof we=="string"&&(we=document.createTextNode(we)),fe.appendChild(we),Ee.display.lineSpace.insertBefore(fe,Ee.display.lineSpace.firstChild)}function Ge(Ee){setTimeout(function(){var fe=!1,we=Ee.getInputField();we.nodeName=="TEXTAREA"?fe=!we.value:Ee.lineCount()==1&&(fe=!/[^\u200b]/.test(we.querySelector(".CodeMirror-line").textContent)),fe?ke(Ee):de(Ee)},20)}function xe(Ee){ue(Ee)&&ke(Ee)}function Me(Ee){var fe=Ee.getWrapperElement(),we=ue(Ee);fe.className=fe.className.replace(" CodeMirror-empty","")+(we?" CodeMirror-empty":""),we?ke(Ee):de(Ee)}function ue(Ee){return Ee.lineCount()===1&&Ee.getLine(0)===""}})},82801:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ke=ee.Pos;ee.defineOption("autoCloseBrackets",!1,function(Qe,_e,ge){ge&&ge!=ee.Init&&(Qe.removeKeyMap(xe),Qe.state.closeBrackets=null),_e&&(Me(Ge(_e,"pairs")),Qe.state.closeBrackets=_e,Qe.addKeyMap(xe))});function Ge(Qe,_e){return _e=="pairs"&&typeof Qe=="string"?Qe:typeof Qe=="object"&&Qe[_e]!=null?Qe[_e]:de[_e]}var xe={Backspace:fe,Enter:we};function Me(Qe){for(var _e=0;_e<Qe.length;_e++){var ge=Qe.charAt(_e),Ve="'"+ge+"'";xe[Ve]||(xe[Ve]=ue(ge))}}Me(de.pairs+"`");function ue(Qe){return function(_e){return De(_e,Qe)}}function Ee(Qe){var _e=Qe.state.closeBrackets;if(!_e||_e.override)return _e;var ge=Qe.getModeAt(Qe.getCursor());return ge.closeBrackets||_e}function fe(Qe){var _e=Ee(Qe);if(!_e||Qe.getOption("disableInput"))return ee.Pass;for(var ge=Ge(_e,"pairs"),Ve=Qe.listSelections(),lt=0;lt<Ve.length;lt++){if(!Ve[lt].empty())return ee.Pass;var He=Ke(Qe,Ve[lt].head);if(!He||ge.indexOf(He)%2!=0)return ee.Pass}for(var lt=Ve.length-1;lt>=0;lt--){var Oe=Ve[lt].head;Qe.replaceRange("",ke(Oe.line,Oe.ch-1),ke(Oe.line,Oe.ch+1),"+delete")}}function we(Qe){var _e=Ee(Qe),ge=_e&&Ge(_e,"explode");if(!ge||Qe.getOption("disableInput"))return ee.Pass;for(var Ve=Qe.listSelections(),lt=0;lt<Ve.length;lt++){if(!Ve[lt].empty())return ee.Pass;var He=Ke(Qe,Ve[lt].head);if(!He||ge.indexOf(He)%2!=0)return ee.Pass}Qe.operation(function(){var Oe=Qe.lineSeparator()||`
`;Qe.replaceSelection(Oe+Oe,null),Qe.execCommand("goCharLeft"),Ve=Qe.listSelections();for(var ve=0;ve<Ve.length;ve++){var ye=Ve[ve].head.line;Qe.indentLine(ye,null,!0),Qe.indentLine(ye+1,null,!0)}})}function Ue(Qe){var _e=ee.cmpPos(Qe.anchor,Qe.head)>0;return{anchor:new ke(Qe.anchor.line,Qe.anchor.ch+(_e?-1:1)),head:new ke(Qe.head.line,Qe.head.ch+(_e?1:-1))}}function De(Qe,_e){var ge=Ee(Qe);if(!ge||Qe.getOption("disableInput"))return ee.Pass;var Ve=Ge(ge,"pairs"),lt=Ve.indexOf(_e);if(lt==-1)return ee.Pass;for(var He=Ge(ge,"closeBefore"),Oe=Ge(ge,"triples"),ve=Ve.charAt(lt+1)==_e,ye=Qe.listSelections(),ze=lt%2==0,We,st=0;st<ye.length;st++){var at=ye[st],Ze=at.head,Ae,mt=Qe.getRange(Ze,ke(Ze.line,Ze.ch+1));if(ze&&!at.empty())Ae="surround";else if((ve||!ze)&&mt==_e)ve&&rt(Qe,Ze)?Ae="both":Oe.indexOf(_e)>=0&&Qe.getRange(Ze,ke(Ze.line,Ze.ch+3))==_e+_e+_e?Ae="skipThree":Ae="skip";else if(ve&&Ze.ch>1&&Oe.indexOf(_e)>=0&&Qe.getRange(ke(Ze.line,Ze.ch-2),Ze)==_e+_e){if(Ze.ch>2&&/\bstring/.test(Qe.getTokenTypeAt(ke(Ze.line,Ze.ch-2))))return ee.Pass;Ae="addFour"}else if(ve){var je=Ze.ch==0?" ":Qe.getRange(ke(Ze.line,Ze.ch-1),Ze);if(!ee.isWordChar(mt)&&je!=_e&&!ee.isWordChar(je))Ae="both";else return ee.Pass}else if(ze&&(mt.length===0||/\s/.test(mt)||He.indexOf(mt)>-1))Ae="both";else return ee.Pass;if(!We)We=Ae;else if(We!=Ae)return ee.Pass}var it=lt%2?Ve.charAt(lt-1):_e,qe=lt%2?_e:Ve.charAt(lt+1);Qe.operation(function(){if(We=="skip")Qe.execCommand("goCharRight");else if(We=="skipThree")for(var gt=0;gt<3;gt++)Qe.execCommand("goCharRight");else if(We=="surround"){for(var Pt=Qe.getSelections(),gt=0;gt<Pt.length;gt++)Pt[gt]=it+Pt[gt]+qe;Qe.replaceSelections(Pt,"around"),Pt=Qe.listSelections().slice();for(var gt=0;gt<Pt.length;gt++)Pt[gt]=Ue(Pt[gt]);Qe.setSelections(Pt)}else We=="both"?(Qe.replaceSelection(it+qe,null),Qe.triggerElectric(it+qe),Qe.execCommand("goCharLeft")):We=="addFour"&&(Qe.replaceSelection(it+it+it+it,"before"),Qe.execCommand("goCharRight"))})}function Ke(Qe,_e){var ge=Qe.getRange(ke(_e.line,_e.ch-1),ke(_e.line,_e.ch+1));return ge.length==2?ge:null}function rt(Qe,_e){var ge=Qe.getTokenAt(ke(_e.line,_e.ch+1));return/\bstring/.test(ge.type)&&ge.start==_e.ch&&(_e.ch==0||!/\bstring/.test(Qe.getTokenTypeAt(_e)))}})},57341:function(vn,Tt,te){(function(ee){ee(te(4631),te(4786))})(function(ee){ee.defineOption("autoCloseTags",!1,function(fe,we,Ue){if(Ue!=ee.Init&&Ue&&fe.removeKeyMap("autoCloseTags"),!!we){var De={name:"autoCloseTags"};(typeof we!="object"||we.whenClosing!==!1)&&(De["'/'"]=function(Ke){return Me(Ke)}),(typeof we!="object"||we.whenOpening!==!1)&&(De["'>'"]=function(Ke){return Ge(Ke)}),fe.addKeyMap(De)}});var de=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ke=["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 Ge(fe){if(fe.getOption("disableInput"))return ee.Pass;for(var we=fe.listSelections(),Ue=[],De=fe.getOption("autoCloseTags"),Ke=0;Ke<we.length;Ke++){if(!we[Ke].empty())return ee.Pass;var rt=we[Ke].head,Qe=fe.getTokenAt(rt),_e=ee.innerMode(fe.getMode(),Qe.state),ge=_e.state,Ve=_e.mode.xmlCurrentTag&&_e.mode.xmlCurrentTag(ge),lt=Ve&&Ve.name;if(!lt)return ee.Pass;var He=_e.mode.configuration=="html",Oe=typeof De=="object"&&De.dontCloseTags||He&&de,ve=typeof De=="object"&&De.indentTags||He&&ke;Qe.end>rt.ch&&(lt=lt.slice(0,lt.length-Qe.end+rt.ch));var ye=lt.toLowerCase();if(!lt||Qe.type=="string"&&(Qe.end!=rt.ch||!/[\"\']/.test(Qe.string.charAt(Qe.string.length-1))||Qe.string.length==1)||Qe.type=="tag"&&Ve.close||Qe.string.indexOf("/")==rt.ch-Qe.start-1||Oe&&ue(Oe,ye)>-1||Ee(fe,_e.mode.xmlCurrentContext&&_e.mode.xmlCurrentContext(ge)||[],lt,rt,!0))return ee.Pass;var ze=typeof De=="object"&&De.emptyTags;if(ze&&ue(ze,lt)>-1){Ue[Ke]={text:"/>",newPos:ee.Pos(rt.line,rt.ch+2)};continue}var We=ve&&ue(ve,ye)>-1;Ue[Ke]={indent:We,text:">"+(We?`
`:"")+"</"+lt+">",newPos:We?ee.Pos(rt.line+1,0):ee.Pos(rt.line,rt.ch+1)}}for(var st=typeof De=="object"&&De.dontIndentOnAutoClose,Ke=we.length-1;Ke>=0;Ke--){var at=Ue[Ke];fe.replaceRange(at.text,we[Ke].head,we[Ke].anchor,"+insert");var Ze=fe.listSelections().slice(0);Ze[Ke]={head:at.newPos,anchor:at.newPos},fe.setSelections(Ze),!st&&at.indent&&(fe.indentLine(at.newPos.line,null,!0),fe.indentLine(at.newPos.line+1,null,!0))}}function xe(fe,we){for(var Ue=fe.listSelections(),De=[],Ke=we?"/":"</",rt=fe.getOption("autoCloseTags"),Qe=typeof rt=="object"&&rt.dontIndentOnSlash,_e=0;_e<Ue.length;_e++){if(!Ue[_e].empty())return ee.Pass;var ge=Ue[_e].head,Ve=fe.getTokenAt(ge),lt=ee.innerMode(fe.getMode(),Ve.state),He=lt.state;if(we&&(Ve.type=="string"||Ve.string.charAt(0)!="<"||Ve.start!=ge.ch-1))return ee.Pass;var Oe,ve=lt.mode.name!="xml"&&fe.getMode().name=="htmlmixed";if(ve&&lt.mode.name=="javascript")Oe=Ke+"script";else if(ve&&lt.mode.name=="css")Oe=Ke+"style";else{var ye=lt.mode.xmlCurrentContext&&lt.mode.xmlCurrentContext(He);if(!ye||ye.length&&Ee(fe,ye,ye[ye.length-1],ge))return ee.Pass;Oe=Ke+ye[ye.length-1]}fe.getLine(ge.line).charAt(Ve.end)!=">"&&(Oe+=">"),De[_e]=Oe}if(fe.replaceSelections(De),Ue=fe.listSelections(),!Qe)for(var _e=0;_e<Ue.length;_e++)(_e==Ue.length-1||Ue[_e].head.line<Ue[_e+1].head.line)&&fe.indentLine(Ue[_e].head.line)}function Me(fe){return fe.getOption("disableInput")?ee.Pass:xe(fe,!0)}ee.commands.closeTag=function(fe){return xe(fe)};function ue(fe,we){if(fe.indexOf)return fe.indexOf(we);for(var Ue=0,De=fe.length;Ue<De;++Ue)if(fe[Ue]==we)return Ue;return-1}function Ee(fe,we,Ue,De,Ke){if(!ee.scanForClosingTag)return!1;var rt=Math.min(fe.lastLine()+1,De.line+500),Qe=ee.scanForClosingTag(fe,De,null,rt);if(!Qe||Qe.tag!=Ue)return!1;for(var _e=Ke?1:0,ge=we.length-1;ge>=0&&we[ge]==Ue;ge--)++_e;De=Qe.to;for(var ge=1;ge<_e;ge++){var Ve=ee.scanForClosingTag(fe,De,null,rt);if(!Ve||Ve.tag!=Ue)return!1;De=Ve.to}return!0}})},4786:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){"use strict";var de=ee.Pos;function ke(ge,Ve){return ge.line-Ve.line||ge.ch-Ve.ch}var Ge="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",xe=Ge+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Me=new RegExp("<(/?)(["+Ge+"]["+xe+"]*)","g");function ue(ge,Ve,lt,He){this.line=Ve,this.ch=lt,this.cm=ge,this.text=ge.getLine(Ve),this.min=He?Math.max(He.from,ge.firstLine()):ge.firstLine(),this.max=He?Math.min(He.to-1,ge.lastLine()):ge.lastLine()}function Ee(ge,Ve){var lt=ge.cm.getTokenTypeAt(de(ge.line,Ve));return lt&&/\btag\b/.test(lt)}function fe(ge){if(!(ge.line>=ge.max))return ge.ch=0,ge.text=ge.cm.getLine(++ge.line),!0}function we(ge){if(!(ge.line<=ge.min))return ge.text=ge.cm.getLine(--ge.line),ge.ch=ge.text.length,!0}function Ue(ge){for(;;){var Ve=ge.text.indexOf(">",ge.ch);if(Ve==-1){if(fe(ge))continue;return}if(!Ee(ge,Ve+1)){ge.ch=Ve+1;continue}var lt=ge.text.lastIndexOf("/",Ve),He=lt>-1&&!/\S/.test(ge.text.slice(lt+1,Ve));return ge.ch=Ve+1,He?"selfClose":"regular"}}function De(ge){for(;;){var Ve=ge.ch?ge.text.lastIndexOf("<",ge.ch-1):-1;if(Ve==-1){if(we(ge))continue;return}if(!Ee(ge,Ve+1)){ge.ch=Ve;continue}Me.lastIndex=Ve,ge.ch=Ve;var lt=Me.exec(ge.text);if(lt&&lt.index==Ve)return lt}}function Ke(ge){for(;;){Me.lastIndex=ge.ch;var Ve=Me.exec(ge.text);if(!Ve){if(fe(ge))continue;return}if(!Ee(ge,Ve.index+1)){ge.ch=Ve.index+1;continue}return ge.ch=Ve.index+Ve[0].length,Ve}}function rt(ge){for(;;){var Ve=ge.ch?ge.text.lastIndexOf(">",ge.ch-1):-1;if(Ve==-1){if(we(ge))continue;return}if(!Ee(ge,Ve+1)){ge.ch=Ve;continue}var lt=ge.text.lastIndexOf("/",Ve),He=lt>-1&&!/\S/.test(ge.text.slice(lt+1,Ve));return ge.ch=Ve+1,He?"selfClose":"regular"}}function Qe(ge,Ve){for(var lt=[];;){var He=Ke(ge),Oe,ve=ge.line,ye=ge.ch-(He?He[0].length:0);if(!He||!(Oe=Ue(ge)))return;if(Oe!="selfClose")if(He[1]){for(var ze=lt.length-1;ze>=0;--ze)if(lt[ze]==He[2]){lt.length=ze;break}if(ze<0&&(!Ve||Ve==He[2]))return{tag:He[2],from:de(ve,ye),to:de(ge.line,ge.ch)}}else lt.push(He[2])}}function _e(ge,Ve){for(var lt=[];;){var He=rt(ge);if(!He)return;if(He=="selfClose"){De(ge);continue}var Oe=ge.line,ve=ge.ch,ye=De(ge);if(!ye)return;if(ye[1])lt.push(ye[2]);else{for(var ze=lt.length-1;ze>=0;--ze)if(lt[ze]==ye[2]){lt.length=ze;break}if(ze<0&&(!Ve||Ve==ye[2]))return{tag:ye[2],from:de(ge.line,ge.ch),to:de(Oe,ve)}}}}ee.registerHelper("fold","xml",function(ge,Ve){for(var lt=new ue(ge,Ve.line,0);;){var He=Ke(lt);if(!He||lt.line!=Ve.line)return;var Oe=Ue(lt);if(!Oe)return;if(!He[1]&&Oe!="selfClose"){var ve=de(lt.line,lt.ch),ye=Qe(lt,He[2]);return ye&&ke(ye.from,ve)>0?{from:ve,to:ye.from}:null}}}),ee.findMatchingTag=function(ge,Ve,lt){var He=new ue(ge,Ve.line,Ve.ch,lt);if(!(He.text.indexOf(">")==-1&&He.text.indexOf("<")==-1)){var Oe=Ue(He),ve=Oe&&de(He.line,He.ch),ye=Oe&&De(He);if(!(!Oe||!ye||ke(He,Ve)>0)){var ze={from:de(He.line,He.ch),to:ve,tag:ye[2]};return Oe=="selfClose"?{open:ze,close:null,at:"open"}:ye[1]?{open:_e(He,ye[2]),close:ze,at:"close"}:(He=new ue(ge,ve.line,ve.ch,lt),{open:ze,close:Qe(He,ye[2]),at:"open"})}}},ee.findEnclosingTag=function(ge,Ve,lt,He){for(var Oe=new ue(ge,Ve.line,Ve.ch,lt);;){var ve=_e(Oe,He);if(!ve)break;var ye=new ue(ge,Ve.line,Ve.ch,lt),ze=Qe(ye,ve.tag);if(ze)return{open:ve,close:ze}}},ee.scanForClosingTag=function(ge,Ve,lt,He){var Oe=new ue(ge,Ve.line,Ve.ch,He?{from:0,to:He}:null);return Qe(Oe,lt)}})},4631:function(vn){(function(Tt,te){vn.exports=te()})(this,function(){"use strict";var Tt=navigator.userAgent,te=navigator.platform,ee=/gecko\/\d/i.test(Tt),de=/MSIE \d/.test(Tt),ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tt),Ge=/Edge\/(\d+)/.exec(Tt),xe=de||ke||Ge,Me=xe&&(de?document.documentMode||6:+(Ge||ke)[1]),ue=!Ge&&/WebKit\//.test(Tt),Ee=ue&&/Qt\/\d+\.\d+/.test(Tt),fe=!Ge&&/Chrome\//.test(Tt),we=/Opera\//.test(Tt),Ue=/Apple Computer/.test(navigator.vendor),De=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Tt),Ke=/PhantomJS/.test(Tt),rt=!Ge&&/AppleWebKit/.test(Tt)&&/Mobile\/\w+/.test(Tt),Qe=/Android/.test(Tt),_e=rt||Qe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Tt),ge=rt||/Mac/.test(te),Ve=/\bCrOS\b/.test(Tt),lt=/win/i.test(te),He=we&&Tt.match(/Version\/(\d*\.\d*)/);He&&(He=Number(He[1])),He&&He>=15&&(we=!1,ue=!0);var Oe=ge&&(Ee||we&&(He==null||He<12.11)),ve=ee||xe&&Me>=9;function ye(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var ze=function(x,z){var ie=x.className,re=ye(z).exec(ie);if(re){var oe=ie.slice(re.index+re[0].length);x.className=ie.slice(0,re.index)+(oe?re[1]+oe:"")}};function We(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function st(x,z){return We(x).appendChild(z)}function at(x,z,ie,re){var oe=document.createElement(x);if(ie&&(oe.className=ie),re&&(oe.style.cssText=re),typeof z=="string")oe.appendChild(document.createTextNode(z));else if(z)for(var be=0;be<z.length;++be)oe.appendChild(z[be]);return oe}function Ze(x,z,ie,re){var oe=at(x,z,ie,re);return oe.setAttribute("role","presentation"),oe}var Ae;document.createRange?Ae=function(x,z,ie,re){var oe=document.createRange();return oe.setEnd(re||x,ie),oe.setStart(x,z),oe}:Ae=function(x,z,ie){var re=document.body.createTextRange();try{re.moveToElementText(x.parentNode)}catch(oe){return re}return re.collapse(!0),re.moveEnd("character",ie),re.moveStart("character",z),re};function mt(x,z){if(z.nodeType==3&&(z=z.parentNode),x.contains)return x.contains(z);do if(z.nodeType==11&&(z=z.host),z==x)return!0;while(z=z.parentNode)}function je(){var x;try{x=document.activeElement}catch(z){x=document.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function it(x,z){var ie=x.className;ye(z).test(ie)||(x.className+=(ie?" ":"")+z)}function qe(x,z){for(var ie=x.split(" "),re=0;re<ie.length;re++)ie[re]&&!ye(ie[re]).test(z)&&(z+=" "+ie[re]);return z}var gt=function(x){x.select()};rt?gt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:xe&&(gt=function(x){try{x.select()}catch(z){}});function Pt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function Xt(x,z,ie){z||(z={});for(var re in x)x.hasOwnProperty(re)&&(ie!==!1||!z.hasOwnProperty(re))&&(z[re]=x[re]);return z}function $e(x,z,ie,re,oe){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var be=re||0,Ne=oe||0;;){var et=x.indexOf(" ",be);if(et<0||et>=z)return Ne+(z-be);Ne+=et-be,Ne+=ie-Ne%ie,be=et+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Be.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Be.prototype.set=function(x,z){this.f=z;var ie=+new Date+x;(!this.id||ie<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ie)};function St(x,z){for(var ie=0;ie<x.length;++ie)if(x[ie]==z)return ie;return-1}var Vt=50,Rt={toString:function(){return"CodeMirror.Pass"}},ht={scroll:!1},Bt={origin:"*mouse"},_t={origin:"+move"};function Fn(x,z,ie){for(var re=0,oe=0;;){var be=x.indexOf(" ",re);be==-1&&(be=x.length);var Ne=be-re;if(be==x.length||oe+Ne>=z)return re+Math.min(Ne,z-oe);if(oe+=be-re,oe+=ie-oe%ie,re=be+1,oe>=z)return re}}var kn=[""];function kt(x){for(;kn.length<=x;)kn.push(un(kn)+" ");return kn[x]}function un(x){return x[x.length-1]}function Wn(x,z){for(var ie=[],re=0;re<x.length;re++)ie[re]=z(x[re],re);return ie}function An(x,z,ie){for(var re=0,oe=ie(z);re<x.length&&ie(x[re])<=oe;)re++;x.splice(re,0,z)}function Ie(){}function he(x,z){var ie;return Object.create?ie=Object.create(x):(Ie.prototype=x,ie=new Ie),z&&Xt(z,ie),ie}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function me(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function pe(x,z){return z?z.source.indexOf("\\w")>-1&&me(x)?!0:z.test(x):me(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Le=/[\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 dt(x){return x.charCodeAt(0)>=768&&Le.test(x)}function Nt(x,z,ie){for(;(ie<0?z>0:z<x.length)&&dt(x.charAt(z));)z+=ie;return z}function tn(x,z,ie){for(var re=z>ie?-1:1;;){if(z==ie)return z;var oe=(z+ie)/2,be=re<0?Math.ceil(oe):Math.floor(oe);if(be==z)return x(be)?z:ie;x(be)?ie=be:z=be+re}}function an(x,z,ie,re){if(!x)return re(z,ie,"ltr",0);for(var oe=!1,be=0;be<x.length;++be){var Ne=x[be];(Ne.from<ie&&Ne.to>z||z==ie&&Ne.to==z)&&(re(Math.max(Ne.from,z),Math.min(Ne.to,ie),Ne.level==1?"rtl":"ltr",be),oe=!0)}oe||re(z,ie,"ltr")}var Yt=null;function dn(x,z,ie){var re;Yt=null;for(var oe=0;oe<x.length;++oe){var be=x[oe];if(be.from<z&&be.to>z)return oe;be.to==z&&(be.from!=be.to&&ie=="before"?re=oe:Yt=oe),be.from==z&&(be.from!=be.to&&ie!="before"?re=oe:Yt=oe)}return re!=null?re:Yt}var Mt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(bt){return bt<=247?x.charAt(bt):1424<=bt&&bt<=1524?"R":1536<=bt&&bt<=1785?z.charAt(bt-1536):1774<=bt&&bt<=2220?"r":8192<=bt&&bt<=8203?"w":bt==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,oe=/[stwN]/,be=/[LRr]/,Ne=/[Lb1n]/,et=/[1n]/;function ot(bt,yn,Rn){this.level=bt,this.from=yn,this.to=Rn}return function(bt,yn){var Rn=yn=="ltr"?"L":"R";if(bt.length==0||yn=="ltr"&&!re.test(bt))return!1;for(var Dr=bt.length,Cr=[],vi=0;vi<Dr;++vi)Cr.push(ie(bt.charCodeAt(vi)));for(var ji=0,ma=Rn;ji<Dr;++ji){var Wa=Cr[ji];Wa=="m"?Cr[ji]=ma:ma=Wa}for(var fo=0,Fa=Rn;fo<Dr;++fo){var po=Cr[fo];po=="1"&&Fa=="r"?Cr[fo]="n":be.test(po)&&(Fa=po,po=="r"&&(Cr[fo]="R"))}for(var qo=1,nl=Cr[0];qo<Dr-1;++qo){var Kl=Cr[qo];Kl=="+"&&nl=="1"&&Cr[qo+1]=="1"?Cr[qo]="1":Kl==","&&nl==Cr[qo+1]&&(nl=="1"||nl=="n")&&(Cr[qo]=nl),nl=Kl}for(var ws=0;ws<Dr;++ws){var Cu=Cr[ws];if(Cu==",")Cr[ws]="N";else if(Cu=="%"){var Vs=void 0;for(Vs=ws+1;Vs<Dr&&Cr[Vs]=="%";++Vs);for(var zu=ws&&Cr[ws-1]=="!"||Vs<Dr&&Cr[Vs]=="1"?"1":"N",Ku=ws;Ku<Vs;++Ku)Cr[Ku]=zu;ws=Vs-1}}for(var pu=0,Hu=Rn;pu<Dr;++pu){var Pl=Cr[pu];Hu=="L"&&Pl=="1"?Cr[pu]="L":be.test(Pl)&&(Hu=Pl)}for(var au=0;au<Dr;++au)if(oe.test(Cr[au])){var Gs=void 0;for(Gs=au+1;Gs<Dr&&oe.test(Cr[Gs]);++Gs);for(var ou=(au?Cr[au-1]:Rn)=="L",uu=(Gs<Dr?Cr[Gs]:Rn)=="L",Wc=ou==uu?ou?"L":"R":Rn,Uu=au;Uu<Gs;++Uu)Cr[Uu]=Wc;au=Gs-1}for(var ku=[],ls,yu=0;yu<Dr;)if(Ne.test(Cr[yu])){var Rd=yu;for(++yu;yu<Dr&&Ne.test(Cr[yu]);++yu);ku.push(new ot(0,Rd,yu))}else{var yc=yu,Sc=ku.length,dc=yn=="rtl"?1:0;for(++yu;yu<Dr&&Cr[yu]!="L";++yu);for(var mu=yc;mu<yu;)if(et.test(Cr[mu])){yc<mu&&(ku.splice(Sc,0,new ot(1,yc,mu)),Sc+=dc);var jc=mu;for(++mu;mu<yu&&et.test(Cr[mu]);++mu);ku.splice(Sc,0,new ot(2,jc,mu)),Sc+=dc,yc=mu}else++mu;yc<yu&&ku.splice(Sc,0,new ot(1,yc,yu))}return yn=="ltr"&&(ku[0].level==1&&(ls=bt.match(/^\s+/))&&(ku[0].from=ls[0].length,ku.unshift(new ot(0,0,ls[0].length))),un(ku).level==1&&(ls=bt.match(/\s+$/))&&(un(ku).to-=ls[0].length,ku.push(new ot(0,Dr-ls[0].length,Dr)))),yn=="rtl"?ku.reverse():ku}}();function Wt(x,z){var ie=x.order;return ie==null&&(ie=x.order=Mt(x.text,z)),ie}var qt=[],Gt=function(x,z,ie){if(x.addEventListener)x.addEventListener(z,ie,!1);else if(x.attachEvent)x.attachEvent("on"+z,ie);else{var re=x._handlers||(x._handlers={});re[z]=(re[z]||qt).concat(ie)}};function jt(x,z){return x._handlers&&x._handlers[z]||qt}function sr(x,z,ie){if(x.removeEventListener)x.removeEventListener(z,ie,!1);else if(x.detachEvent)x.detachEvent("on"+z,ie);else{var re=x._handlers,oe=re&&re[z];if(oe){var be=St(oe,ie);be>-1&&(re[z]=oe.slice(0,be).concat(oe.slice(be+1)))}}}function Dt(x,z){var ie=jt(x,z);if(ie.length)for(var re=Array.prototype.slice.call(arguments,2),oe=0;oe<ie.length;++oe)ie[oe].apply(null,re)}function Jt(x,z,ie){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Dt(x,ie||z.type,x,z),kr(z)||z.codemirrorIgnore}function Gn(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ie=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),re=0;re<z.length;++re)St(ie,z[re])==-1&&ie.push(z[re])}function Bn(x,z){return jt(x,z).length>0}function Sn(x){x.prototype.on=function(z,ie){Gt(this,z,ie)},x.prototype.off=function(z,ie){sr(this,z,ie)}}function or(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function gr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function kr(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Lr(x){or(x),gr(x)}function Qr(x){return x.target||x.srcElement}function Ir(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),ge&&x.ctrlKey&&z==1&&(z=3),z}var Dn=function(){if(xe&&Me<9)return!1;var x=at("div");return"draggable"in x||"dragDrop"in x}(),cr;function vr(x){if(cr==null){var z=at("span","\u200B");st(x,at("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(cr=z.offsetWidth<=1&&z.offsetHeight>2&&!(xe&&Me<8))}var ie=cr?at("span","\u200B"):at("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var Ur;function ti(x){if(Ur!=null)return Ur;var z=st(x,document.createTextNode("A\u062EA")),ie=Ae(z,0,1).getBoundingClientRect(),re=Ae(z,1,2).getBoundingClientRect();return We(x),!ie||ie.left==ie.right?!1:Ur=re.right-ie.right<3}var Kt=`
b`.split(/\n/).length!=3?function(x){for(var z=0,ie=[],re=x.length;z<=re;){var oe=x.indexOf(`
`,z);oe==-1&&(oe=x.length);var be=x.slice(z,x.charAt(oe-1)=="\r"?oe-1:oe),Ne=be.indexOf("\r");Ne!=-1?(ie.push(be.slice(0,Ne)),z+=Ne+1):(ie.push(be),z=oe+1)}return ie}:function(x){return x.split(/\r\n?|\n/)},_n=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ie){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},nn=function(){var x=at("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),In=null;function nr(x){if(In!=null)return In;var z=st(x,at("span","x")),ie=z.getBoundingClientRect(),re=Ae(z,0,1).getBoundingClientRect();return In=Math.abs(ie.left-re.left)>1}var Rr={},Pr={};function br(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),Rr[x]=z}function xt(x,z){Pr[x]=z}function $t(x){if(typeof x=="string"&&Pr.hasOwnProperty(x))x=Pr[x];else if(x&&typeof x.name=="string"&&Pr.hasOwnProperty(x.name)){var z=Pr[x.name];typeof z=="string"&&(z={name:z}),x=he(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return $t("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return $t("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function fn(x,z){z=$t(z);var ie=Rr[z.name];if(!ie)return fn(x,"text/plain");var re=ie(x,z);if(Mn.hasOwnProperty(z.name)){var oe=Mn[z.name];for(var be in oe)oe.hasOwnProperty(be)&&(re.hasOwnProperty(be)&&(re["_"+be]=re[be]),re[be]=oe[be])}if(re.name=z.name,z.helperType&&(re.helperType=z.helperType),z.modeProps)for(var Ne in z.modeProps)re[Ne]=z.modeProps[Ne];return re}var Mn={};function yt(x,z){var ie=Mn.hasOwnProperty(x)?Mn[x]:Mn[x]={};Xt(z,ie)}function Ut(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ie={};for(var re in z){var oe=z[re];oe instanceof Array&&(oe=oe.concat([])),ie[re]=oe}return ie}function Cn(x,z){for(var ie;x.innerMode&&(ie=x.innerMode(z),!(!ie||ie.mode==x));)z=ie.state,x=ie.mode;return ie||{mode:x,state:z}}function cn(x,z,ie){return x.startState?x.startState(z,ie):!0}var zn=function(x,z,ie){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ie};zn.prototype.eol=function(){return this.pos>=this.string.length},zn.prototype.sol=function(){return this.pos==this.lineStart},zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zn.prototype.eat=function(x){var z=this.string.charAt(this.pos),ie;if(typeof x=="string"?ie=z==x:ie=z&&(x.test?x.test(z):x(z)),ie)return++this.pos,z},zn.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},zn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},zn.prototype.skipToEnd=function(){this.pos=this.string.length},zn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},zn.prototype.backUp=function(x){this.pos-=x},zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},zn.prototype.indentation=function(){return $e(this.string,null,this.tabSize)-(this.lineStart?$e(this.string,this.lineStart,this.tabSize):0)},zn.prototype.match=function(x,z,ie){if(typeof x=="string"){var re=function(Ne){return ie?Ne.toLowerCase():Ne},oe=this.string.substr(this.pos,x.length);if(re(oe)==re(x))return z!==!1&&(this.pos+=x.length),!0}else{var be=this.string.slice(this.pos).match(x);return be&&be.index>0?null:(be&&z!==!1&&(this.pos+=be[0].length),be)}},zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},zn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},zn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},zn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Hn(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ie=x;!ie.lines;)for(var re=0;;++re){var oe=ie.children[re],be=oe.chunkSize();if(z<be){ie=oe;break}z-=be}return ie.lines[z]}function Mr(x,z,ie){var re=[],oe=z.line;return x.iter(z.line,ie.line+1,function(be){var Ne=be.text;oe==ie.line&&(Ne=Ne.slice(0,ie.ch)),oe==z.line&&(Ne=Ne.slice(z.ch)),re.push(Ne),++oe}),re}function gi(x,z,ie){var re=[];return x.iter(z,ie,function(oe){re.push(oe.text)}),re}function Xr(x,z){var ie=z-x.height;if(ie)for(var re=x;re;re=re.parent)re.height+=ie}function Gr(x){if(x.parent==null)return null;for(var z=x.parent,ie=St(z.lines,x),re=z.parent;re;z=re,re=re.parent)for(var oe=0;re.children[oe]!=z;++oe)ie+=re.children[oe].chunkSize();return ie+z.first}function di(x,z){var ie=x.first;e:do{for(var re=0;re<x.children.length;++re){var oe=x.children[re],be=oe.height;if(z<be){x=oe;continue e}z-=be,ie+=oe.chunkSize()}return ie}while(!x.lines);for(var Ne=0;Ne<x.lines.length;++Ne){var et=x.lines[Ne],ot=et.height;if(z<ot)break;z-=ot}return ie+Ne}function ci(x,z){return z>=x.first&&z<x.first+x.size}function Si(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Jn(x,z,ie){if(ie===void 0&&(ie=null),!(this instanceof Jn))return new Jn(x,z,ie);this.line=x,this.ch=z,this.sticky=ie}function Jr(x,z){return x.line-z.line||x.ch-z.ch}function Oa(x,z){return x.sticky==z.sticky&&Jr(x,z)==0}function Qa(x){return Jn(x.line,x.ch)}function Li(x,z){return Jr(x,z)<0?z:x}function qi(x,z){return Jr(x,z)<0?x:z}function $a(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function zi(x,z){if(z.line<x.first)return Jn(x.first,0);var ie=x.first+x.size-1;return z.line>ie?Jn(ie,Hn(x,ie).text.length):to(z,Hn(x,z.line).text.length)}function to(x,z){var ie=x.ch;return ie==null||ie>z?Jn(x.line,z):ie<0?Jn(x.line,0):x}function _r(x,z){for(var ie=[],re=0;re<z.length;re++)ie[re]=zi(x,z[re]);return ie}var Wo=function(x,z){this.state=x,this.lookAhead=z},_o=function(x,z,ie,re){this.state=z,this.doc=x,this.line=ie,this.maxLookAhead=re||0,this.baseTokens=null,this.baseTokenPos=1};_o.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},_o.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},_o.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},_o.fromSaved=function(x,z,ie){return z instanceof Wo?new _o(x,Ut(x.mode,z.state),ie,z.lookAhead):new _o(x,Ut(x.mode,z),ie)},_o.prototype.save=function(x){var z=x!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wo(z,this.maxLookAhead):z};function bl(x,z,ie,re){var oe=[x.state.modeGen],be={};Uo(x,z.text,x.doc.mode,ie,function(bt,yn){return oe.push(bt,yn)},be,re);for(var Ne=ie.state,et=function(bt){ie.baseTokens=oe;var yn=x.state.overlays[bt],Rn=1,Dr=0;ie.state=!0,Uo(x,z.text,yn.mode,ie,function(Cr,vi){for(var ji=Rn;Dr<Cr;){var ma=oe[Rn];ma>Cr&&oe.splice(Rn,1,Cr,oe[Rn+1],ma),Rn+=2,Dr=Math.min(Cr,ma)}if(vi)if(yn.opaque)oe.splice(ji,Rn-ji,Cr,"overlay "+vi),Rn=ji+2;else for(;ji<Rn;ji+=2){var Wa=oe[ji+1];oe[ji+1]=(Wa?Wa+" ":"")+"overlay "+vi}},be),ie.state=Ne,ie.baseTokens=null,ie.baseTokenPos=1},ot=0;ot<x.state.overlays.length;++ot)et(ot);return{styles:oe,classes:be.bgClass||be.textClass?be:null}}function jo(x,z,ie){if(!z.styles||z.styles[0]!=x.state.modeGen){var re=Po(x,Gr(z)),oe=z.text.length>x.options.maxHighlightLength&&Ut(x.doc.mode,re.state),be=bl(x,z,re);oe&&(re.state=oe),z.stateAfter=re.save(!oe),z.styles=be.styles,be.classes?z.styleClasses=be.classes:z.styleClasses&&(z.styleClasses=null),ie===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Po(x,z,ie){var re=x.doc,oe=x.display;if(!re.mode.startState)return new _o(re,!0,z);var be=gl(x,z,ie),Ne=be>re.first&&Hn(re,be-1).stateAfter,et=Ne?_o.fromSaved(re,Ne,be):new _o(re,cn(re.mode),be);return re.iter(be,z,function(ot){la(x,ot.text,et);var bt=et.line;ot.stateAfter=bt==z-1||bt%5==0||bt>=oe.viewFrom&&bt<oe.viewTo?et.save():null,et.nextLine()}),ie&&(re.modeFrontier=et.line),et}function la(x,z,ie,re){var oe=x.doc.mode,be=new zn(z,x.options.tabSize,ie);for(be.start=be.pos=re||0,z==""&&el(oe,ie.state);!be.eol();)No(oe,be,ie.state),be.start=be.pos}function el(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ie=Cn(x,z);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}}function No(x,z,ie,re){for(var oe=0;oe<10;oe++){re&&(re[0]=Cn(x,ie).mode);var be=x.token(z,ie);if(z.pos>z.start)return be}throw new Error("Mode "+x.name+" failed to advance stream.")}var rl=function(x,z,ie){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ie};function vl(x,z,ie,re){var oe=x.doc,be=oe.mode,Ne;z=zi(oe,z);var et=Hn(oe,z.line),ot=Po(x,z.line,ie),bt=new zn(et.text,x.options.tabSize,ot),yn;for(re&&(yn=[]);(re||bt.pos<z.ch)&&!bt.eol();)bt.start=bt.pos,Ne=No(be,bt,ot.state),re&&yn.push(new rl(bt,Ne,Ut(oe.mode,ot.state)));return re?yn:new rl(bt,Ne,ot.state)}function ll(x,z){if(x)for(;;){var ie=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ie)break;x=x.slice(0,ie.index)+x.slice(ie.index+ie[0].length);var re=ie[1]?"bgClass":"textClass";z[re]==null?z[re]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(z[re])||(z[re]+=" "+ie[2])}return x}function Uo(x,z,ie,re,oe,be,Ne){var et=ie.flattenSpans;et==null&&(et=x.options.flattenSpans);var ot=0,bt=null,yn=new zn(z,x.options.tabSize,re),Rn,Dr=x.options.addModeClass&&[null];for(z==""&&ll(el(ie,re.state),be);!yn.eol();){if(yn.pos>x.options.maxHighlightLength?(et=!1,Ne&&la(x,z,re,yn.pos),yn.pos=z.length,Rn=null):Rn=ll(No(ie,yn,re.state,Dr),be),Dr){var Cr=Dr[0].name;Cr&&(Rn="m-"+(Rn?Cr+" "+Rn:Cr))}if(!et||bt!=Rn){for(;ot<yn.start;)ot=Math.min(yn.start,ot+5e3),oe(ot,bt);bt=Rn}yn.start=yn.pos}for(;ot<yn.pos;){var vi=Math.min(yn.pos,ot+5e3);oe(vi,bt),ot=vi}}function gl(x,z,ie){for(var re,oe,be=x.doc,Ne=ie?-1:z-(x.doc.mode.innerMode?1e3:100),et=z;et>Ne;--et){if(et<=be.first)return be.first;var ot=Hn(be,et-1),bt=ot.stateAfter;if(bt&&(!ie||et+(bt instanceof Wo?bt.lookAhead:0)<=be.modeFrontier))return et;var yn=$e(ot.text,null,x.options.tabSize);(oe==null||re>yn)&&(oe=et-1,re=yn)}return oe}function wl(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ie=x.first,re=z-1;re>ie;re--){var oe=Hn(x,re).stateAfter;if(oe&&(!(oe instanceof Wo)||re+oe.lookAhead<z)){ie=re+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ie)}}var dl=!1,io=!1;function wn(){dl=!0}function pn(){io=!0}function ar(x,z,ie){this.marker=x,this.from=z,this.to=ie}function tr(x,z){if(x)for(var ie=0;ie<x.length;++ie){var re=x[ie];if(re.marker==z)return re}}function Yr(x,z){for(var ie,re=0;re<x.length;++re)x[re]!=z&&(ie||(ie=[])).push(x[re]);return ie}function $i(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function ia(x,z,ie){var re;if(x)for(var oe=0;oe<x.length;++oe){var be=x[oe],Ne=be.marker,et=be.from==null||(Ne.inclusiveLeft?be.from<=z:be.from<z);if(et||be.from==z&&Ne.type=="bookmark"&&(!ie||!be.marker.insertLeft)){var ot=be.to==null||(Ne.inclusiveRight?be.to>=z:be.to>z);(re||(re=[])).push(new ar(Ne,be.from,ot?null:be.to))}}return re}function sa(x,z,ie){var re;if(x)for(var oe=0;oe<x.length;++oe){var be=x[oe],Ne=be.marker,et=be.to==null||(Ne.inclusiveRight?be.to>=z:be.to>z);if(et||be.from==z&&Ne.type=="bookmark"&&(!ie||be.marker.insertLeft)){var ot=be.from==null||(Ne.inclusiveLeft?be.from<=z:be.from<z);(re||(re=[])).push(new ar(Ne,ot?null:be.from-z,be.to==null?null:be.to-z))}}return re}function ka(x,z){if(z.full)return null;var ie=ci(x,z.from.line)&&Hn(x,z.from.line).markedSpans,re=ci(x,z.to.line)&&Hn(x,z.to.line).markedSpans;if(!ie&&!re)return null;var oe=z.from.ch,be=z.to.ch,Ne=Jr(z.from,z.to)==0,et=ia(ie,oe,Ne),ot=sa(re,be,Ne),bt=z.text.length==1,yn=un(z.text).length+(bt?oe:0);if(et)for(var Rn=0;Rn<et.length;++Rn){var Dr=et[Rn];if(Dr.to==null){var Cr=tr(ot,Dr.marker);Cr?bt&&(Dr.to=Cr.to==null?null:Cr.to+yn):Dr.to=oe}}if(ot)for(var vi=0;vi<ot.length;++vi){var ji=ot[vi];if(ji.to!=null&&(ji.to+=yn),ji.from==null){var ma=tr(et,ji.marker);ma||(ji.from=yn,bt&&(et||(et=[])).push(ji))}else ji.from+=yn,bt&&(et||(et=[])).push(ji)}et&&(et=ga(et)),ot&&ot!=et&&(ot=ga(ot));var Wa=[et];if(!bt){var fo=z.text.length-2,Fa;if(fo>0&&et)for(var po=0;po<et.length;++po)et[po].to==null&&(Fa||(Fa=[])).push(new ar(et[po].marker,null,null));for(var qo=0;qo<fo;++qo)Wa.push(Fa);Wa.push(ot)}return Wa}function ga(x){for(var z=0;z<x.length;++z){var ie=x[z];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function ho(x,z,ie){var re=null;if(x.iter(z.line,ie.line+1,function(Cr){if(Cr.markedSpans)for(var vi=0;vi<Cr.markedSpans.length;++vi){var ji=Cr.markedSpans[vi].marker;ji.readOnly&&(!re||St(re,ji)==-1)&&(re||(re=[])).push(ji)}}),!re)return null;for(var oe=[{from:z,to:ie}],be=0;be<re.length;++be)for(var Ne=re[be],et=Ne.find(0),ot=0;ot<oe.length;++ot){var bt=oe[ot];if(!(Jr(bt.to,et.from)<0||Jr(bt.from,et.to)>0)){var yn=[ot,1],Rn=Jr(bt.from,et.from),Dr=Jr(bt.to,et.to);(Rn<0||!Ne.inclusiveLeft&&!Rn)&&yn.push({from:bt.from,to:et.from}),(Dr>0||!Ne.inclusiveRight&&!Dr)&&yn.push({from:et.to,to:bt.to}),oe.splice.apply(oe,yn),ot+=yn.length-3}}return oe}function ao(x){var z=x.markedSpans;if(z){for(var ie=0;ie<z.length;++ie)z[ie].marker.detachLine(x);x.markedSpans=null}}function mo(x,z){if(z){for(var ie=0;ie<z.length;++ie)z[ie].marker.attachLine(x);x.markedSpans=z}}function Un(x){return x.inclusiveLeft?-1:0}function ir(x){return x.inclusiveRight?1:0}function Sr(x,z){var ie=x.lines.length-z.lines.length;if(ie!=0)return ie;var re=x.find(),oe=z.find(),be=Jr(re.from,oe.from)||Un(x)-Un(z);if(be)return-be;var Ne=Jr(re.to,oe.to)||ir(x)-ir(z);return Ne||z.id-x.id}function Ce(x,z){var ie=io&&x.markedSpans,re;if(ie)for(var oe=void 0,be=0;be<ie.length;++be)oe=ie[be],oe.marker.collapsed&&(z?oe.from:oe.to)==null&&(!re||Sr(re,oe.marker)<0)&&(re=oe.marker);return re}function Xe(x){return Ce(x,!0)}function nt(x){return Ce(x,!1)}function ut(x,z){var ie=io&&x.markedSpans,re;if(ie)for(var oe=0;oe<ie.length;++oe){var be=ie[oe];be.marker.collapsed&&(be.from==null||be.from<z)&&(be.to==null||be.to>z)&&(!re||Sr(re,be.marker)<0)&&(re=be.marker)}return re}function ft(x,z,ie,re,oe){var be=Hn(x,z),Ne=io&&be.markedSpans;if(Ne)for(var et=0;et<Ne.length;++et){var ot=Ne[et];if(ot.marker.collapsed){var bt=ot.marker.find(0),yn=Jr(bt.from,ie)||Un(ot.marker)-Un(oe),Rn=Jr(bt.to,re)||ir(ot.marker)-ir(oe);if(!(yn>=0&&Rn<=0||yn<=0&&Rn>=0)&&(yn<=0&&(ot.marker.inclusiveRight&&oe.inclusiveLeft?Jr(bt.to,ie)>=0:Jr(bt.to,ie)>0)||yn>=0&&(ot.marker.inclusiveRight&&oe.inclusiveLeft?Jr(bt.from,re)<=0:Jr(bt.from,re)<0)))return!0}}}function Ct(x){for(var z;z=Xe(x);)x=z.find(-1,!0).line;return x}function wt(x){for(var z;z=nt(x);)x=z.find(1,!0).line;return x}function sn(x){for(var z,ie;z=nt(x);)x=z.find(1,!0).line,(ie||(ie=[])).push(x);return ie}function En(x,z){var ie=Hn(x,z),re=Ct(ie);return ie==re?z:Gr(re)}function ur(x,z){if(z>x.lastLine())return z;var ie=Hn(x,z),re;if(!yr(x,ie))return z;for(;re=nt(ie);)ie=re.find(1,!0).line;return Gr(ie)+1}function yr(x,z){var ie=io&&z.markedSpans;if(ie){for(var re=void 0,oe=0;oe<ie.length;++oe)if(re=ie[oe],!!re.marker.collapsed){if(re.from==null)return!0;if(!re.marker.widgetNode&&re.from==0&&re.marker.inclusiveLeft&&fr(x,z,re))return!0}}}function fr(x,z,ie){if(ie.to==null){var re=ie.marker.find(1,!0);return fr(x,re.line,tr(re.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==z.text.length)return!0;for(var oe=void 0,be=0;be<z.markedSpans.length;++be)if(oe=z.markedSpans[be],oe.marker.collapsed&&!oe.marker.widgetNode&&oe.from==ie.to&&(oe.to==null||oe.to!=ie.from)&&(oe.marker.inclusiveLeft||ie.marker.inclusiveRight)&&fr(x,z,oe))return!0}function Qn(x){x=Ct(x);for(var z=0,ie=x.parent,re=0;re<ie.lines.length;++re){var oe=ie.lines[re];if(oe==x)break;z+=oe.height}for(var be=ie.parent;be;ie=be,be=ie.parent)for(var Ne=0;Ne<be.children.length;++Ne){var et=be.children[Ne];if(et==ie)break;z+=et.height}return z}function Yn(x){if(x.height==0)return 0;for(var z=x.text.length,ie,re=x;ie=Xe(re);){var oe=ie.find(0,!0);re=oe.from.line,z+=oe.from.ch-oe.to.ch}for(re=x;ie=nt(re);){var be=ie.find(0,!0);z-=re.text.length-be.from.ch,re=be.to.line,z+=re.text.length-be.to.ch}return z}function On(x){var z=x.display,ie=x.doc;z.maxLine=Hn(ie,ie.first),z.maxLineLength=Yn(z.maxLine),z.maxLineChanged=!0,ie.iter(function(re){var oe=Yn(re);oe>z.maxLineLength&&(z.maxLineLength=oe,z.maxLine=re)})}var hr=function(x,z,ie){this.text=x,mo(this,z),this.height=ie?ie(this):1};hr.prototype.lineNo=function(){return Gr(this)},Sn(hr);function zr(x,z,ie,re){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),ao(x),mo(x,ie);var oe=re?re(x):1;oe!=x.height&&Xr(x,oe)}function Er(x){x.parent=null,ao(x)}var wr={},Br={};function Or(x,z){if(!x||/^\s*$/.test(x))return null;var ie=z.addModeClass?Br:wr;return ie[x]||(ie[x]=x.replace(/\S+/g,"cm-$&"))}function Wr(x,z){var ie=Ze("span",null,null,ue?"padding-right: .1px":null),re={pre:Ze("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var oe=0;oe<=(z.rest?z.rest.length:0);oe++){var be=oe?z.rest[oe-1]:z.line,Ne=void 0;re.pos=0,re.addToken=vt,ti(x.display.measure)&&(Ne=Wt(be,x.doc.direction))&&(re.addToken=ln(re.addToken,Ne)),re.map=[];var et=z!=x.display.externalMeasured&&Gr(be);mr(be,re,jo(x,be,et)),be.styleClasses&&(be.styleClasses.bgClass&&(re.bgClass=qe(be.styleClasses.bgClass,re.bgClass||"")),be.styleClasses.textClass&&(re.textClass=qe(be.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(vr(x.display.measure))),oe==0?(z.measure.map=re.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(re.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(ue){var ot=re.content.lastChild;(/\bcm-tab\b/.test(ot.className)||ot.querySelector&&ot.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return Dt(x,"renderLine",x,z.line,re.pre),re.pre.className&&(re.textClass=qe(re.pre.className,re.textClass||"")),re}function pt(x){var z=at("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function vt(x,z,ie,re,oe,be,Ne){if(z){var et=x.splitSpaces?mn(z,x.trailingSpace):z,ot=x.cm.state.specialChars,bt=!1,yn;if(!ot.test(z))x.col+=z.length,yn=document.createTextNode(et),x.map.push(x.pos,x.pos+z.length,yn),xe&&Me<9&&(bt=!0),x.pos+=z.length;else{yn=document.createDocumentFragment();for(var Rn=0;;){ot.lastIndex=Rn;var Dr=ot.exec(z),Cr=Dr?Dr.index-Rn:z.length-Rn;if(Cr){var vi=document.createTextNode(et.slice(Rn,Rn+Cr));xe&&Me<9?yn.appendChild(at("span",[vi])):yn.appendChild(vi),x.map.push(x.pos,x.pos+Cr,vi),x.col+=Cr,x.pos+=Cr}if(!Dr)break;Rn+=Cr+1;var ji=void 0;if(Dr[0]==" "){var ma=x.cm.options.tabSize,Wa=ma-x.col%ma;ji=yn.appendChild(at("span",kt(Wa),"cm-tab")),ji.setAttribute("role","presentation"),ji.setAttribute("cm-text"," "),x.col+=Wa}else Dr[0]=="\r"||Dr[0]==`
`?(ji=yn.appendChild(at("span",Dr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ji.setAttribute("cm-text",Dr[0]),x.col+=1):(ji=x.cm.options.specialCharPlaceholder(Dr[0]),ji.setAttribute("cm-text",Dr[0]),xe&&Me<9?yn.appendChild(at("span",[ji])):yn.appendChild(ji),x.col+=1);x.map.push(x.pos,x.pos+1,ji),x.pos++}}if(x.trailingSpace=et.charCodeAt(z.length-1)==32,ie||re||oe||bt||be||Ne){var fo=ie||"";re&&(fo+=re),oe&&(fo+=oe);var Fa=at("span",[yn],fo,be);if(Ne)for(var po in Ne)Ne.hasOwnProperty(po)&&po!="style"&&po!="class"&&Fa.setAttribute(po,Ne[po]);return x.content.appendChild(Fa)}x.content.appendChild(yn)}}function mn(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ie=z,re="",oe=0;oe<x.length;oe++){var be=x.charAt(oe);be==" "&&ie&&(oe==x.length-1||x.charCodeAt(oe+1)==32)&&(be="\xA0"),re+=be,ie=be==" "}return re}function ln(x,z){return function(ie,re,oe,be,Ne,et,ot){oe=oe?oe+" cm-force-border":"cm-force-border";for(var bt=ie.pos,yn=bt+re.length;;){for(var Rn=void 0,Dr=0;Dr<z.length&&(Rn=z[Dr],!(Rn.to>bt&&Rn.from<=bt));Dr++);if(Rn.to>=yn)return x(ie,re,oe,be,Ne,et,ot);x(ie,re.slice(0,Rn.to-bt),oe,be,null,et,ot),be=null,re=re.slice(Rn.to-bt),bt=Rn.to}}}function $n(x,z,ie,re){var oe=!re&&ie.widgetNode;oe&&x.map.push(x.pos,x.pos+z,oe),!re&&x.cm.display.input.needsContentAttribute&&(oe||(oe=x.content.appendChild(document.createElement("span"))),oe.setAttribute("cm-marker",ie.id)),oe&&(x.cm.display.input.setUneditable(oe),x.content.appendChild(oe)),x.pos+=z,x.trailingSpace=!1}function mr(x,z,ie){var re=x.markedSpans,oe=x.text,be=0;if(!re){for(var Ne=1;Ne<ie.length;Ne+=2)z.addToken(z,oe.slice(be,be=ie[Ne]),Or(ie[Ne+1],z.cm.options));return}for(var et=oe.length,ot=0,bt=1,yn="",Rn,Dr,Cr=0,vi,ji,ma,Wa,fo;;){if(Cr==ot){vi=ji=ma=Dr="",fo=null,Wa=null,Cr=1/0;for(var Fa=[],po=void 0,qo=0;qo<re.length;++qo){var nl=re[qo],Kl=nl.marker;if(Kl.type=="bookmark"&&nl.from==ot&&Kl.widgetNode)Fa.push(Kl);else if(nl.from<=ot&&(nl.to==null||nl.to>ot||Kl.collapsed&&nl.to==ot&&nl.from==ot)){if(nl.to!=null&&nl.to!=ot&&Cr>nl.to&&(Cr=nl.to,ji=""),Kl.className&&(vi+=" "+Kl.className),Kl.css&&(Dr=(Dr?Dr+";":"")+Kl.css),Kl.startStyle&&nl.from==ot&&(ma+=" "+Kl.startStyle),Kl.endStyle&&nl.to==Cr&&(po||(po=[])).push(Kl.endStyle,nl.to),Kl.title&&((fo||(fo={})).title=Kl.title),Kl.attributes)for(var ws in Kl.attributes)(fo||(fo={}))[ws]=Kl.attributes[ws];Kl.collapsed&&(!Wa||Sr(Wa.marker,Kl)<0)&&(Wa=nl)}else nl.from>ot&&Cr>nl.from&&(Cr=nl.from)}if(po)for(var Cu=0;Cu<po.length;Cu+=2)po[Cu+1]==Cr&&(ji+=" "+po[Cu]);if(!Wa||Wa.from==ot)for(var Vs=0;Vs<Fa.length;++Vs)$n(z,0,Fa[Vs]);if(Wa&&(Wa.from||0)==ot){if($n(z,(Wa.to==null?et+1:Wa.to)-ot,Wa.marker,Wa.from==null),Wa.to==null)return;Wa.to==ot&&(Wa=!1)}}if(ot>=et)break;for(var zu=Math.min(et,Cr);;){if(yn){var Ku=ot+yn.length;if(!Wa){var pu=Ku>zu?yn.slice(0,zu-ot):yn;z.addToken(z,pu,Rn?Rn+vi:vi,ma,ot+pu.length==Cr?ji:"",Dr,fo)}if(Ku>=zu){yn=yn.slice(zu-ot),ot=zu;break}ot=Ku,ma=""}yn=oe.slice(be,be=ie[bt++]),Rn=Or(ie[bt++],z.cm.options)}}}function Ft(x,z,ie){this.line=z,this.rest=sn(z),this.size=this.rest?Gr(un(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=yr(x,z)}function It(x,z,ie){for(var re=[],oe,be=z;be<ie;be=oe){var Ne=new Ft(x.doc,Hn(x.doc,be),be);oe=be+Ne.size,re.push(Ne)}return re}var Ht=null;function on(x){Ht?Ht.ops.push(x):x.ownsGroup=Ht={ops:[x],delayedCallbacks:[]}}function Vn(x){var z=x.delayedCallbacks,ie=0;do{for(;ie<z.length;ie++)z[ie].call(null);for(var re=0;re<x.ops.length;re++){var oe=x.ops[re];if(oe.cursorActivityHandlers)for(;oe.cursorActivityCalled<oe.cursorActivityHandlers.length;)oe.cursorActivityHandlers[oe.cursorActivityCalled++].call(null,oe.cm)}}while(ie<z.length)}function dr(x,z){var ie=x.ownsGroup;if(ie)try{Vn(ie)}finally{Ht=null,z(ie)}}var Kn=null;function rr(x,z){var ie=jt(x,z);if(ie.length){var re=Array.prototype.slice.call(arguments,2),oe;Ht?oe=Ht.delayedCallbacks:Kn?oe=Kn:(oe=Kn=[],setTimeout(Fr,0));for(var be=function(et){oe.push(function(){return ie[et].apply(null,re)})},Ne=0;Ne<ie.length;++Ne)be(Ne)}}function Fr(){var x=Kn;Kn=null;for(var z=0;z<x.length;++z)x[z]()}function ii(x,z,ie,re){for(var oe=0;oe<z.changes.length;oe++){var be=z.changes[oe];be=="text"?li(x,z):be=="gutter"?si(x,z,ie,re):be=="class"?Mi(x,z):be=="widget"&&Kr(x,z,re)}z.changes=null}function Zr(x){return x.node==x.text&&(x.node=at("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),xe&&Me<8&&(x.node.style.zIndex=2)),x.node}function Ar(x,z){var ie=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),z.background)ie?z.background.className=ie:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ie){var re=Zr(z);z.background=re.insertBefore(at("div",null,ie),re.firstChild),x.display.input.setUneditable(z.background)}}function Vr(x,z){var ie=x.display.externalMeasured;return ie&&ie.line==z.line?(x.display.externalMeasured=null,z.measure=ie.measure,ie.built):Wr(x,z)}function li(x,z){var ie=z.text.className,re=Vr(x,z);z.text==z.node&&(z.node=re.pre),z.text.parentNode.replaceChild(re.pre,z.text),z.text=re.pre,re.bgClass!=z.bgClass||re.textClass!=z.textClass?(z.bgClass=re.bgClass,z.textClass=re.textClass,Mi(x,z)):ie&&(z.text.className=ie)}function Mi(x,z){Ar(x,z),z.line.wrapClass?Zr(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ie=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ie||""}function si(x,z,ie,re){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var oe=Zr(z);z.gutterBackground=at("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),oe.insertBefore(z.gutterBackground,z.text)}var be=z.line.gutterMarkers;if(x.options.lineNumbers||be){var Ne=Zr(z),et=z.gutter=at("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(x.display.input.setUneditable(et),Ne.insertBefore(et,z.text),z.line.gutterClass&&(et.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!be||!be["CodeMirror-linenumbers"])&&(z.lineNumber=et.appendChild(at("div",Si(x.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),be)for(var ot=0;ot<x.display.gutterSpecs.length;++ot){var bt=x.display.gutterSpecs[ot].className,yn=be.hasOwnProperty(bt)&&be[bt];yn&&et.appendChild(at("div",[yn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[bt]+"px; width: "+re.gutterWidth[bt]+"px"))}}}function Kr(x,z,ie){z.alignable&&(z.alignable=null);for(var re=ye("CodeMirror-linewidget"),oe=z.node.firstChild,be=void 0;oe;oe=be)be=oe.nextSibling,re.test(oe.className)&&z.node.removeChild(oe);Zi(x,z,ie)}function Wi(x,z,ie,re){var oe=Vr(x,z);return z.text=z.node=oe.pre,oe.bgClass&&(z.bgClass=oe.bgClass),oe.textClass&&(z.textClass=oe.textClass),Mi(x,z),si(x,z,ie,re),Zi(x,z,re),z.node}function Zi(x,z,ie){if(Na(x,z.line,z,ie,!0),z.rest)for(var re=0;re<z.rest.length;re++)Na(x,z.rest[re],z,ie,!1)}function Na(x,z,ie,re,oe){if(z.widgets)for(var be=Zr(ie),Ne=0,et=z.widgets;Ne<et.length;++Ne){var ot=et[Ne],bt=at("div",[ot.node],"CodeMirror-linewidget"+(ot.className?" "+ot.className:""));ot.handleMouseEvents||bt.setAttribute("cm-ignore-events","true"),Ha(ot,bt,ie,re),x.display.input.setUneditable(bt),oe&&ot.above?be.insertBefore(bt,ie.gutter||ie.text):be.appendChild(bt),rr(ot,"redraw")}}function Ha(x,z,ie,re){if(x.noHScroll){(ie.alignable||(ie.alignable=[])).push(z);var oe=re.wrapperWidth;z.style.left=re.fixedPos+"px",x.coverGutter||(oe-=re.gutterTotalWidth,z.style.paddingLeft=re.gutterTotalWidth+"px"),z.style.width=oe+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-re.gutterTotalWidth+"px"))}function La(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!mt(document.body,x.node)){var ie="position: relative;";x.coverGutter&&(ie+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ie+="width: "+z.display.wrapper.clientWidth+"px;"),st(z.display.measure,at("div",[x.node],null,ie))}return x.height=x.node.parentNode.offsetHeight}function Ea(x,z){for(var ie=Qr(z);ie!=x.wrapper;ie=ie.parentNode)if(!ie||ie.nodeType==1&&ie.getAttribute("cm-ignore-events")=="true"||ie.parentNode==x.sizer&&ie!=x.mover)return!0}function Ra(x){return x.lineSpace.offsetTop}function va(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function oo(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=st(x.measure,at("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,re={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(x.cachedPaddingH=re),re}function Ca(x){return Vt-x.display.nativeBarWidth}function Qi(x){return x.display.scroller.clientWidth-Ca(x)-x.display.barWidth}function ja(x){return x.display.scroller.clientHeight-Ca(x)-x.display.barHeight}function bo(x,z,ie){var re=x.options.lineWrapping,oe=re&&Qi(x);if(!z.measure.heights||re&&z.measure.width!=oe){var be=z.measure.heights=[];if(re){z.measure.width=oe;for(var Ne=z.text.firstChild.getClientRects(),et=0;et<Ne.length-1;et++){var ot=Ne[et],bt=Ne[et+1];Math.abs(ot.bottom-bt.bottom)>2&&be.push((ot.bottom+bt.top)/2-ie.top)}}be.push(ie.bottom-ie.top)}}function ca(x,z,ie){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var re=0;re<x.rest.length;re++)if(x.rest[re]==z)return{map:x.measure.maps[re],cache:x.measure.caches[re]};for(var oe=0;oe<x.rest.length;oe++)if(Gr(x.rest[oe])>ie)return{map:x.measure.maps[oe],cache:x.measure.caches[oe],before:!0}}function Vo(x,z){z=Ct(z);var ie=Gr(z),re=x.display.externalMeasured=new Ft(x.doc,z,ie);re.lineN=ie;var oe=re.built=Wr(x,re);return re.text=oe.pre,st(x.display.lineMeasure,oe.pre),re}function Go(x,z,ie,re){return no(x,zo(x,z),ie,re)}function tl(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Yi(x,z)];var ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size)return ie}function zo(x,z){var ie=Gr(z),re=tl(x,ie);re&&!re.text?re=null:re&&re.changes&&(ii(x,re,ie,ro(x)),x.curOp.forceUpdate=!0),re||(re=Vo(x,z));var oe=ca(re,z,ie);return{line:z,view:re,rect:null,map:oe.map,cache:oe.cache,before:oe.before,hasHeights:!1}}function no(x,z,ie,re,oe){z.before&&(ie=-1);var be=ie+(re||""),Ne;return z.cache.hasOwnProperty(be)?Ne=z.cache[be]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(bo(x,z.view,z.rect),z.hasHeights=!0),Ne=Ao(x,z,ie,re),Ne.bogus||(z.cache[be]=Ne)),{left:Ne.left,right:Ne.right,top:oe?Ne.rtop:Ne.top,bottom:oe?Ne.rbottom:Ne.bottom}}var kl={left:0,right:0,top:0,bottom:0};function Co(x,z,ie){for(var re,oe,be,Ne,et,ot,bt=0;bt<x.length;bt+=3)if(et=x[bt],ot=x[bt+1],z<et?(oe=0,be=1,Ne="left"):z<ot?(oe=z-et,be=oe+1):(bt==x.length-3||z==ot&&x[bt+3]>z)&&(be=ot-et,oe=be-1,z>=ot&&(Ne="right")),oe!=null){if(re=x[bt+2],et==ot&&ie==(re.insertLeft?"left":"right")&&(Ne=ie),ie=="left"&&oe==0)for(;bt&&x[bt-2]==x[bt-3]&&x[bt-1].insertLeft;)re=x[(bt-=3)+2],Ne="left";if(ie=="right"&&oe==ot-et)for(;bt<x.length-3&&x[bt+3]==x[bt+4]&&!x[bt+5].insertLeft;)re=x[(bt+=3)+2],Ne="right";break}return{node:re,start:oe,end:be,collapse:Ne,coverStart:et,coverEnd:ot}}function _a(x,z){var ie=kl;if(z=="left")for(var re=0;re<x.length&&(ie=x[re]).left==ie.right;re++);else for(var oe=x.length-1;oe>=0&&(ie=x[oe]).left==ie.right;oe--);return ie}function Ao(x,z,ie,re){var oe=Co(z.map,ie,re),be=oe.node,Ne=oe.start,et=oe.end,ot=oe.collapse,bt;if(be.nodeType==3){for(var yn=0;yn<4;yn++){for(;Ne&&dt(z.line.text.charAt(oe.coverStart+Ne));)--Ne;for(;oe.coverStart+et<oe.coverEnd&&dt(z.line.text.charAt(oe.coverStart+et));)++et;if(xe&&Me<9&&Ne==0&&et==oe.coverEnd-oe.coverStart?bt=be.parentNode.getBoundingClientRect():bt=_a(Ae(be,Ne,et).getClientRects(),re),bt.left||bt.right||Ne==0)break;et=Ne,Ne=Ne-1,ot="right"}xe&&Me<11&&(bt=ml(x.display.measure,bt))}else{Ne>0&&(ot=re="right");var Rn;x.options.lineWrapping&&(Rn=be.getClientRects()).length>1?bt=Rn[re=="right"?Rn.length-1:0]:bt=be.getBoundingClientRect()}if(xe&&Me<9&&!Ne&&(!bt||!bt.left&&!bt.right)){var Dr=be.parentNode.getClientRects()[0];Dr?bt={left:Dr.left,right:Dr.left+fa(x.display),top:Dr.top,bottom:Dr.bottom}:bt=kl}for(var Cr=bt.top-z.rect.top,vi=bt.bottom-z.rect.top,ji=(Cr+vi)/2,ma=z.view.measure.heights,Wa=0;Wa<ma.length-1&&!(ji<ma[Wa]);Wa++);var fo=Wa?ma[Wa-1]:0,Fa=ma[Wa],po={left:(ot=="right"?bt.right:bt.left)-z.rect.left,right:(ot=="left"?bt.left:bt.right)-z.rect.left,top:fo,bottom:Fa};return!bt.left&&!bt.right&&(po.bogus=!0),x.options.singleCursorHeightPerLine||(po.rtop=Cr,po.rbottom=vi),po}function ml(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!nr(x))return z;var ie=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ie,right:z.right*ie,top:z.top*re,bottom:z.bottom*re}}function Ko(x){if(x.measure&&(x.measure.cache={},x.measure.heights=null,x.rest))for(var z=0;z<x.rest.length;z++)x.measure.caches[z]={}}function $o(x){x.display.externalMeasure=null,We(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Ko(x.display.view[z])}function Ya(x){$o(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function yl(){return fe&&Qe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Il(){return fe&&Qe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function xl(x){var z=0;if(x.widgets)for(var ie=0;ie<x.widgets.length;++ie)x.widgets[ie].above&&(z+=La(x.widgets[ie]));return z}function il(x,z,ie,re,oe){if(!oe){var be=xl(z);ie.top+=be,ie.bottom+=be}if(re=="line")return ie;re||(re="local");var Ne=Qn(z);if(re=="local"?Ne+=Ra(x.display):Ne-=x.display.viewOffset,re=="page"||re=="window"){var et=x.display.lineSpace.getBoundingClientRect();Ne+=et.top+(re=="window"?0:Il());var ot=et.left+(re=="window"?0:yl());ie.left+=ot,ie.right+=ot}return ie.top+=Ne,ie.bottom+=Ne,ie}function El(x,z,ie){if(ie=="div")return z;var re=z.left,oe=z.top;if(ie=="page")re-=yl(),oe-=Il();else if(ie=="local"||!ie){var be=x.display.sizer.getBoundingClientRect();re+=be.left,oe+=be.top}var Ne=x.display.lineSpace.getBoundingClientRect();return{left:re-Ne.left,top:oe-Ne.top}}function Al(x,z,ie,re,oe){return re||(re=Hn(x.doc,z.line)),il(x,re,Go(x,re,z.ch,oe),ie)}function Bl(x,z,ie,re,oe,be){re=re||Hn(x.doc,z.line),oe||(oe=zo(x,re));function Ne(vi,ji){var ma=no(x,oe,vi,ji?"right":"left",be);return ji?ma.left=ma.right:ma.right=ma.left,il(x,re,ma,ie)}var et=Wt(re,x.doc.direction),ot=z.ch,bt=z.sticky;if(ot>=re.text.length?(ot=re.text.length,bt="before"):ot<=0&&(ot=0,bt="after"),!et)return Ne(bt=="before"?ot-1:ot,bt=="before");function yn(vi,ji,ma){var Wa=et[ji],fo=Wa.level==1;return Ne(ma?vi-1:vi,fo!=ma)}var Rn=dn(et,ot,bt),Dr=Yt,Cr=yn(ot,Rn,bt=="before");return Dr!=null&&(Cr.other=yn(ot,Dr,bt!="before")),Cr}function Ol(x,z){var ie=0;z=zi(x.doc,z),x.options.lineWrapping||(ie=fa(x.display)*z.ch);var re=Hn(x.doc,z.line),oe=Qn(re)+Ra(x.display);return{left:ie,right:ie,top:oe,bottom:oe+re.height}}function Lt(x,z,ie,re,oe){var be=Jn(x,z,ie);return be.xRel=oe,re&&(be.outside=re),be}function rn(x,z,ie){var re=x.doc;if(ie+=x.display.viewOffset,ie<0)return Lt(re.first,0,null,-1,-1);var oe=di(re,ie),be=re.first+re.size-1;if(oe>be)return Lt(re.first+re.size-1,Hn(re,be).text.length,null,1,1);z<0&&(z=0);for(var Ne=Hn(re,oe);;){var et=ui(x,Ne,oe,z,ie),ot=ut(Ne,et.ch+(et.xRel>0||et.outside>0?1:0));if(!ot)return et;var bt=ot.find(1);if(bt.line==oe)return bt;Ne=Hn(re,oe=bt.line)}}function gn(x,z,ie,re){re-=xl(z);var oe=z.text.length,be=tn(function(Ne){return no(x,ie,Ne-1).bottom<=re},oe,0);return oe=tn(function(Ne){return no(x,ie,Ne).top>re},be,oe),{begin:be,end:oe}}function Xn(x,z,ie,re){ie||(ie=zo(x,z));var oe=il(x,z,no(x,ie,re),"line").top;return gn(x,z,ie,oe)}function ta(x,z,ie,re){return x.bottom<=ie?!1:x.top>ie?!0:(re?x.left:x.right)>z}function ui(x,z,ie,re,oe){oe-=Qn(z);var be=zo(x,z),Ne=xl(z),et=0,ot=z.text.length,bt=!0,yn=Wt(z,x.doc.direction);if(yn){var Rn=(x.options.lineWrapping?bi:wi)(x,z,ie,be,yn,re,oe);bt=Rn.level!=1,et=bt?Rn.from:Rn.to-1,ot=bt?Rn.to:Rn.from-1}var Dr=null,Cr=null,vi=tn(function(qo){var nl=no(x,be,qo);return nl.top+=Ne,nl.bottom+=Ne,ta(nl,re,oe,!1)?(nl.top<=oe&&nl.left<=re&&(Dr=qo,Cr=nl),!0):!1},et,ot),ji,ma,Wa=!1;if(Cr){var fo=re-Cr.left<Cr.right-re,Fa=fo==bt;vi=Dr+(Fa?0:1),ma=Fa?"after":"before",ji=fo?Cr.left:Cr.right}else{!bt&&(vi==ot||vi==et)&&vi++,ma=vi==0?"after":vi==z.text.length?"before":no(x,be,vi-(bt?1:0)).bottom+Ne<=oe==bt?"after":"before";var po=Bl(x,Jn(ie,vi,ma),"line",z,be);ji=po.left,Wa=oe<po.top?-1:oe>=po.bottom?1:0}return vi=Nt(z.text,vi,1),Lt(ie,vi,ma,Wa,re-ji)}function wi(x,z,ie,re,oe,be,Ne){var et=tn(function(Rn){var Dr=oe[Rn],Cr=Dr.level!=1;return ta(Bl(x,Jn(ie,Cr?Dr.to:Dr.from,Cr?"before":"after"),"line",z,re),be,Ne,!0)},0,oe.length-1),ot=oe[et];if(et>0){var bt=ot.level!=1,yn=Bl(x,Jn(ie,bt?ot.from:ot.to,bt?"after":"before"),"line",z,re);ta(yn,be,Ne,!0)&&yn.top>Ne&&(ot=oe[et-1])}return ot}function bi(x,z,ie,re,oe,be,Ne){var et=gn(x,z,re,Ne),ot=et.begin,bt=et.end;/\s/.test(z.text.charAt(bt-1))&&bt--;for(var yn=null,Rn=null,Dr=0;Dr<oe.length;Dr++){var Cr=oe[Dr];if(!(Cr.from>=bt||Cr.to<=ot)){var vi=Cr.level!=1,ji=no(x,re,vi?Math.min(bt,Cr.to)-1:Math.max(ot,Cr.from)).right,ma=ji<be?be-ji+1e9:ji-be;(!yn||Rn>ma)&&(yn=Cr,Rn=ma)}}return yn||(yn=oe[oe.length-1]),yn.from<ot&&(yn={from:ot,to:yn.to,level:yn.level}),yn.to>bt&&(yn={from:yn.from,to:bt,level:yn.level}),yn}var Oi;function Pa(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Oi==null){Oi=at("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Oi.appendChild(document.createTextNode("x")),Oi.appendChild(at("br"));Oi.appendChild(document.createTextNode("x"))}st(x.measure,Oi);var ie=Oi.offsetHeight/50;return ie>3&&(x.cachedTextHeight=ie),We(x.measure),ie||1}function fa(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=at("span","xxxxxxxxxx"),ie=at("pre",[z],"CodeMirror-line-like");st(x.measure,ie);var re=z.getBoundingClientRect(),oe=(re.right-re.left)/10;return oe>2&&(x.cachedCharWidth=oe),oe||10}function ro(x){for(var z=x.display,ie={},re={},oe=z.gutters.clientLeft,be=z.gutters.firstChild,Ne=0;be;be=be.nextSibling,++Ne){var et=x.display.gutterSpecs[Ne].className;ie[et]=be.offsetLeft+be.clientLeft+oe,re[et]=be.clientWidth}return{fixedPos:Qo(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ie,gutterWidth:re,wrapperWidth:z.wrapper.clientWidth}}function Qo(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function xo(x){var z=Pa(x.display),ie=x.options.lineWrapping,re=ie&&Math.max(5,x.display.scroller.clientWidth/fa(x.display)-3);return function(oe){if(yr(x.doc,oe))return 0;var be=0;if(oe.widgets)for(var Ne=0;Ne<oe.widgets.length;Ne++)oe.widgets[Ne].height&&(be+=oe.widgets[Ne].height);return ie?be+(Math.ceil(oe.text.length/re)||1)*z:be+z}}function xi(x){var z=x.doc,ie=xo(x);z.iter(function(re){var oe=ie(re);oe!=re.height&&Xr(re,oe)})}function Sa(x,z,ie,re){var oe=x.display;if(!ie&&Qr(z).getAttribute("cm-not-content")=="true")return null;var be,Ne,et=oe.lineSpace.getBoundingClientRect();try{be=z.clientX-et.left,Ne=z.clientY-et.top}catch(Rn){return null}var ot=rn(x,be,Ne),bt;if(re&&ot.xRel>0&&(bt=Hn(x.doc,ot.line).text).length==ot.ch){var yn=$e(bt,bt.length,x.options.tabSize)-bt.length;ot=Jn(ot.line,Math.max(0,Math.round((be-oo(x.display).left)/fa(x.display))-yn))}return ot}function Yi(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ie=x.display.view,re=0;re<ie.length;re++)if(z-=ie[re].size,z<0)return re}function Ai(x,z,ie,re){z==null&&(z=x.doc.first),ie==null&&(ie=x.doc.first+x.doc.size),re||(re=0);var oe=x.display;if(re&&ie<oe.viewTo&&(oe.updateLineNumbers==null||oe.updateLineNumbers>z)&&(oe.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=oe.viewTo)io&&En(x.doc,z)<oe.viewTo&&ya(x);else if(ie<=oe.viewFrom)io&&ur(x.doc,ie+re)>oe.viewFrom?ya(x):(oe.viewFrom+=re,oe.viewTo+=re);else if(z<=oe.viewFrom&&ie>=oe.viewTo)ya(x);else if(z<=oe.viewFrom){var be=Ye(x,ie,ie+re,1);be?(oe.view=oe.view.slice(be.index),oe.viewFrom=be.lineN,oe.viewTo+=re):ya(x)}else if(ie>=oe.viewTo){var Ne=Ye(x,z,z,-1);Ne?(oe.view=oe.view.slice(0,Ne.index),oe.viewTo=Ne.lineN):ya(x)}else{var et=Ye(x,z,z,-1),ot=Ye(x,ie,ie+re,1);et&&ot?(oe.view=oe.view.slice(0,et.index).concat(It(x,et.lineN,ot.lineN)).concat(oe.view.slice(ot.index)),oe.viewTo+=re):ya(x)}var bt=oe.externalMeasured;bt&&(ie<bt.lineN?bt.lineN+=re:z<bt.lineN+bt.size&&(oe.externalMeasured=null))}function ki(x,z,ie){x.curOp.viewChanged=!0;var re=x.display,oe=x.display.externalMeasured;if(oe&&z>=oe.lineN&&z<oe.lineN+oe.size&&(re.externalMeasured=null),!(z<re.viewFrom||z>=re.viewTo)){var be=re.view[Yi(x,z)];if(be.node!=null){var Ne=be.changes||(be.changes=[]);St(Ne,ie)==-1&&Ne.push(ie)}}}function ya(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function Ye(x,z,ie,re){var oe=Yi(x,z),be,Ne=x.display.view;if(!io||ie==x.doc.first+x.doc.size)return{index:oe,lineN:ie};for(var et=x.display.viewFrom,ot=0;ot<oe;ot++)et+=Ne[ot].size;if(et!=z){if(re>0){if(oe==Ne.length-1)return null;be=et+Ne[oe].size-z,oe++}else be=et-z;z+=be,ie+=be}for(;En(x.doc,ie)!=ie;){if(oe==(re<0?0:Ne.length-1))return null;ie+=re*Ne[oe-(re<0?1:0)].size,oe+=re}return{index:oe,lineN:ie}}function tt(x,z,ie){var re=x.display,oe=re.view;oe.length==0||z>=re.viewTo||ie<=re.viewFrom?(re.view=It(x,z,ie),re.viewFrom=z):(re.viewFrom>z?re.view=It(x,z,re.viewFrom).concat(re.view):re.viewFrom<z&&(re.view=re.view.slice(Yi(x,z))),re.viewFrom=z,re.viewTo<ie?re.view=re.view.concat(It(x,re.viewTo,ie)):re.viewTo>ie&&(re.view=re.view.slice(0,Yi(x,ie)))),re.viewTo=ie}function zt(x){for(var z=x.display.view,ie=0,re=0;re<z.length;re++){var oe=z[re];!oe.hidden&&(!oe.node||oe.changes)&&++ie}return ie}function Ot(x){x.display.input.showSelection(x.display.input.prepareSelection())}function hn(x,z){z===void 0&&(z=!0);for(var ie=x.doc,re={},oe=re.cursors=document.createDocumentFragment(),be=re.selection=document.createDocumentFragment(),Ne=0;Ne<ie.sel.ranges.length;Ne++)if(!(!z&&Ne==ie.sel.primIndex)){var et=ie.sel.ranges[Ne];if(!(et.from().line>=x.display.viewTo||et.to().line<x.display.viewFrom)){var ot=et.empty();(ot||x.options.showCursorWhenSelecting)&&Pn(x,et.head,oe),ot||lr(x,et,be)}}return re}function Pn(x,z,ie){var re=Bl(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),oe=ie.appendChild(at("div","\xA0","CodeMirror-cursor"));if(oe.style.left=re.left+"px",oe.style.top=re.top+"px",oe.style.height=Math.max(0,re.bottom-re.top)*x.options.cursorHeight+"px",re.other){var be=ie.appendChild(at("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));be.style.display="",be.style.left=re.other.left+"px",be.style.top=re.other.top+"px",be.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function xn(x,z){return x.top-z.top||x.left-z.left}function lr(x,z,ie){var re=x.display,oe=x.doc,be=document.createDocumentFragment(),Ne=oo(x.display),et=Ne.left,ot=Math.max(re.sizerWidth,Qi(x)-re.sizer.offsetLeft)-Ne.right,bt=oe.direction=="ltr";function yn(Fa,po,qo,nl){po<0&&(po=0),po=Math.round(po),nl=Math.round(nl),be.appendChild(at("div",null,"CodeMirror-selected","position: absolute; left: "+Fa+`px;
top: `+po+"px; width: "+(qo==null?ot-Fa:qo)+`px;
height: `+(nl-po)+"px"))}function Rn(Fa,po,qo){var nl=Hn(oe,Fa),Kl=nl.text.length,ws,Cu;function Vs(pu,Hu){return Al(x,Jn(Fa,pu),"div",nl,Hu)}function zu(pu,Hu,Pl){var au=Xn(x,nl,null,pu),Gs=Hu=="ltr"==(Pl=="after")?"left":"right",ou=Pl=="after"?au.begin:au.end-(/\s/.test(nl.text.charAt(au.end-1))?2:1);return Vs(ou,Gs)[Gs]}var Ku=Wt(nl,oe.direction);return an(Ku,po||0,qo==null?Kl:qo,function(pu,Hu,Pl,au){var Gs=Pl=="ltr",ou=Vs(pu,Gs?"left":"right"),uu=Vs(Hu-1,Gs?"right":"left"),Wc=po==null&&pu==0,Uu=qo==null&&Hu==Kl,ku=au==0,ls=!Ku||au==Ku.length-1;if(uu.top-ou.top<=3){var yu=(bt?Wc:Uu)&&ku,Rd=(bt?Uu:Wc)&&ls,yc=yu?et:(Gs?ou:uu).left,Sc=Rd?ot:(Gs?uu:ou).right;yn(yc,ou.top,Sc-yc,ou.bottom)}else{var dc,mu,jc,Bu;Gs?(dc=bt&&Wc&&ku?et:ou.left,mu=bt?ot:zu(pu,Pl,"before"),jc=bt?et:zu(Hu,Pl,"after"),Bu=bt&&Uu&&ls?ot:uu.right):(dc=bt?zu(pu,Pl,"before"):et,mu=!bt&&Wc&&ku?ot:ou.right,jc=!bt&&Uu&&ls?et:uu.left,Bu=bt?zu(Hu,Pl,"after"):ot),yn(dc,ou.top,mu-dc,ou.bottom),ou.bottom<uu.top&&yn(et,ou.bottom,null,uu.top),yn(jc,uu.top,Bu-jc,uu.bottom)}(!ws||xn(ou,ws)<0)&&(ws=ou),xn(uu,ws)<0&&(ws=uu),(!Cu||xn(ou,Cu)<0)&&(Cu=ou),xn(uu,Cu)<0&&(Cu=uu)}),{start:ws,end:Cu}}var Dr=z.from(),Cr=z.to();if(Dr.line==Cr.line)Rn(Dr.line,Dr.ch,Cr.ch);else{var vi=Hn(oe,Dr.line),ji=Hn(oe,Cr.line),ma=Ct(vi)==Ct(ji),Wa=Rn(Dr.line,Dr.ch,ma?vi.text.length+1:null).end,fo=Rn(Cr.line,ma?0:null,Cr.ch).start;ma&&(Wa.top<fo.top-2?(yn(Wa.right,Wa.top,null,Wa.bottom),yn(et,fo.top,fo.left,fo.bottom)):yn(Wa.right,Wa.top,fo.left-Wa.right,Wa.bottom)),Wa.bottom<fo.top&&yn(et,Wa.bottom,null,fo.top)}ie.appendChild(be)}function pr(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ie=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||ni(x),z.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function qn(x){x.state.focused||(x.display.input.focus(),ei(x))}function pi(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ni(x))},100)}function ei(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Dt(x,"focus",x,z),x.state.focused=!0,it(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),ue&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),pr(x))}function ni(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Dt(x,"blur",x,z),x.state.focused=!1,ze(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function $r(x){for(var z=x.display,ie=z.lineDiv.offsetTop,re=0;re<z.view.length;re++){var oe=z.view[re],be=x.options.lineWrapping,Ne=void 0,et=0;if(!oe.hidden){if(xe&&Me<8){var ot=oe.node.offsetTop+oe.node.offsetHeight;Ne=ot-ie,ie=ot}else{var bt=oe.node.getBoundingClientRect();Ne=bt.bottom-bt.top,!be&&oe.text.firstChild&&(et=oe.text.firstChild.getBoundingClientRect().right-bt.left-1)}var yn=oe.line.height-Ne;if((yn>.005||yn<-.005)&&(Xr(oe.line,Ne),fi(oe.line),oe.rest))for(var Rn=0;Rn<oe.rest.length;Rn++)fi(oe.rest[Rn]);if(et>x.display.sizerWidth){var Dr=Math.ceil(et/fa(x.display));Dr>x.display.maxLineLength&&(x.display.maxLineLength=Dr,x.display.maxLine=oe.line,x.display.maxLineChanged=!0)}}}}function fi(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ie=x.widgets[z],re=ie.node.parentNode;re&&(ie.height=re.offsetHeight)}}function ri(x,z,ie){var re=ie&&ie.top!=null?Math.max(0,ie.top):x.scroller.scrollTop;re=Math.floor(re-Ra(x));var oe=ie&&ie.bottom!=null?ie.bottom:re+x.wrapper.clientHeight,be=di(z,re),Ne=di(z,oe);if(ie&&ie.ensure){var et=ie.ensure.from.line,ot=ie.ensure.to.line;et<be?(be=et,Ne=di(z,Qn(Hn(z,et))+x.wrapper.clientHeight)):Math.min(ot,z.lastLine())>=Ne&&(be=di(z,Qn(Hn(z,ot))-x.wrapper.clientHeight),Ne=ot)}return{from:be,to:Math.max(Ne,be+1)}}function Ki(x,z){if(!Jt(x,"scrollCursorIntoView")){var ie=x.display,re=ie.sizer.getBoundingClientRect(),oe=null;if(z.top+re.top<0?oe=!0:z.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(oe=!1),oe!=null&&!Ke){var be=at("div","\u200B",null,`position: absolute;
top: `+(z.top-ie.viewOffset-Ra(x.display))+`px;
height: `+(z.bottom-z.top+Ca(x)+ie.barHeight)+`px;
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(be),be.scrollIntoView(oe),x.display.lineSpace.removeChild(be)}}}function Ma(x,z,ie,re){re==null&&(re=0);var oe;!x.options.lineWrapping&&z==ie&&(z=z.ch?Jn(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ie=z.sticky=="before"?Jn(z.line,z.ch+1,"before"):z);for(var be=0;be<5;be++){var Ne=!1,et=Bl(x,z),ot=!ie||ie==z?et:Bl(x,ie);oe={left:Math.min(et.left,ot.left),top:Math.min(et.top,ot.top)-re,right:Math.max(et.left,ot.left),bottom:Math.max(et.bottom,ot.bottom)+re};var bt=Xa(x,oe),yn=x.doc.scrollTop,Rn=x.doc.scrollLeft;if(bt.scrollTop!=null&&(Xi(x,bt.scrollTop),Math.abs(x.doc.scrollTop-yn)>1&&(Ne=!0)),bt.scrollLeft!=null&&(So(x,bt.scrollLeft),Math.abs(x.doc.scrollLeft-Rn)>1&&(Ne=!0)),!Ne)break}return oe}function Ua(x,z){var ie=Xa(x,z);ie.scrollTop!=null&&Xi(x,ie.scrollTop),ie.scrollLeft!=null&&So(x,ie.scrollLeft)}function Xa(x,z){var ie=x.display,re=Pa(x.display);z.top<0&&(z.top=0);var oe=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ie.scroller.scrollTop,be=ja(x),Ne={};z.bottom-z.top>be&&(z.bottom=z.top+be);var et=x.doc.height+va(ie),ot=z.top<re,bt=z.bottom>et-re;if(z.top<oe)Ne.scrollTop=ot?0:z.top;else if(z.bottom>oe+be){var yn=Math.min(z.top,(bt?et:z.bottom)-be);yn!=oe&&(Ne.scrollTop=yn)}var Rn=x.options.fixedGutter?0:ie.gutters.offsetWidth,Dr=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ie.scroller.scrollLeft-Rn,Cr=Qi(x)-ie.gutters.offsetWidth,vi=z.right-z.left>Cr;return vi&&(z.right=z.left+Cr),z.left<10?Ne.scrollLeft=0:z.left<Dr?Ne.scrollLeft=Math.max(0,z.left+Rn-(vi?0:10)):z.right>Cr+Dr-3&&(Ne.scrollLeft=z.right+(vi?0:10)-Cr),Ne}function za(x,z){z!=null&&(so(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function lo(x){so(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function wa(x,z,ie){(z!=null||ie!=null)&&so(x),z!=null&&(x.curOp.scrollLeft=z),ie!=null&&(x.curOp.scrollTop=ie)}function Ka(x,z){so(x),x.curOp.scrollToPos=z}function so(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ie=Ol(x,z.from),re=Ol(x,z.to);Vi(x,ie,re,z.margin)}}function Vi(x,z,ie,re){var oe=Xa(x,{left:Math.min(z.left,ie.left),top:Math.min(z.top,ie.top)-re,right:Math.max(z.right,ie.right),bottom:Math.max(z.bottom,ie.bottom)+re});wa(x,oe.scrollLeft,oe.scrollTop)}function Xi(x,z){Math.abs(x.doc.scrollTop-z)<2||(ee||Rl(x,{top:z}),da(x,z,!0),ee&&Rl(x),yi(x,100))}function da(x,z,ie){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ie)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function So(x,z,ie,re){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ie?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!re)&&(x.doc.scrollLeft=z,ps(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function uo(x){var z=x.display,ie=z.gutters.offsetWidth,re=Math.round(x.doc.height+va(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ie:0,docHeight:re,scrollHeight:re+Ca(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ie}}var Eo=function(x,z,ie){this.cm=ie;var re=this.vert=at("div",[at("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),oe=this.horiz=at("div",[at("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=oe.tabIndex=-1,x(re),x(oe),Gt(re,"scroll",function(){re.clientHeight&&z(re.scrollTop,"vertical")}),Gt(oe,"scroll",function(){oe.clientWidth&&z(oe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Eo.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ie=x.scrollHeight>x.clientHeight+1,re=x.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=z?re+"px":"0";var oe=x.viewHeight-(z?re:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+oe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ie?re+"px":"0",this.horiz.style.left=x.barLeft+"px";var be=x.viewWidth-x.barLeft-(ie?re:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?re:0,bottom:z?re:0}},Eo.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Eo.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Eo.prototype.zeroWidthHack=function(){var x=ge&&!De?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Eo.prototype.enableZeroWidthBar=function(x,z,ie){x.style.pointerEvents="auto";function re(){var oe=x.getBoundingClientRect(),be=ie=="vert"?document.elementFromPoint(oe.right-1,(oe.top+oe.bottom)/2):document.elementFromPoint((oe.right+oe.left)/2,oe.bottom-1);be!=x?x.style.pointerEvents="none":z.set(1e3,re)}z.set(1e3,re)},Eo.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var vo=function(){};vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};function Io(x,z){z||(z=uo(x));var ie=x.display.barWidth,re=x.display.barHeight;Lo(x,z);for(var oe=0;oe<4&&ie!=x.display.barWidth||re!=x.display.barHeight;oe++)ie!=x.display.barWidth&&x.options.lineWrapping&&$r(x),Lo(x,uo(x)),ie=x.display.barWidth,re=x.display.barHeight}function Lo(x,z){var ie=x.display,re=ie.scrollbars.update(z);ie.sizer.style.paddingRight=(ie.barWidth=re.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=re.bottom)+"px",ie.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=re.bottom+"px",ie.scrollbarFiller.style.width=re.right+"px"):ie.scrollbarFiller.style.display="",re.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=re.bottom+"px",ie.gutterFiller.style.width=z.gutterWidth+"px"):ie.gutterFiller.style.display=""}var Fo={native:Eo,null:vo};function Yo(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&ze(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Fo[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Gt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ie){ie=="horizontal"?So(x,z):Xi(x,z)},x),x.display.scrollbars.addClass&&it(x.display.wrapper,x.display.scrollbars.addClass)}var jn=0;function ai(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.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:++jn},on(x.curOp)}function ba(x){var z=x.curOp;z&&dr(z,function(ie){for(var re=0;re<ie.ops.length;re++)ie.ops[re].cm.curOp=null;na(ie)})}function na(x){for(var z=x.ops,ie=0;ie<z.length;ie++)Nr(z[ie]);for(var re=0;re<z.length;re++)Ti(z[re]);for(var oe=0;oe<z.length;oe++)Ni(z[oe]);for(var be=0;be<z.length;be++)ra(z[be]);for(var Ne=0;Ne<z.length;Ne++)Ei(z[Ne])}function Nr(x){var z=x.cm,ie=z.display;ko(z),x.updateMaxLine&&On(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ie.viewFrom||x.scrollToPos.to.line>=ie.viewTo)||ie.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new Va(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ti(x){x.updatedDisplay=x.mustUpdate&&zl(x.cm,x.update)}function Ni(x){var z=x.cm,ie=z.display;x.updatedDisplay&&$r(z),x.barMeasure=uo(z),ie.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Go(z,ie.maxLine,ie.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+x.adjustWidthTo+Ca(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+x.adjustWidthTo-Qi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ie.input.prepareSelection())}function ra(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&So(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ie=x.focus&&x.focus==je();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ie),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Io(z,x.barMeasure),x.updatedDisplay&&Qs(z,x.barMeasure),x.selectionChanged&&pr(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ie&&qn(x.cm)}function Ei(x){var z=x.cm,ie=z.display,re=z.doc;if(x.updatedDisplay&&Hl(z,x.update),ie.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),x.scrollTop!=null&&da(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&So(z,x.scrollLeft,!0,!0),x.scrollToPos){var oe=Ma(z,zi(re,x.scrollToPos.from),zi(re,x.scrollToPos.to),x.scrollToPos.margin);Ki(z,oe)}var be=x.maybeHiddenMarkers,Ne=x.maybeUnhiddenMarkers;if(be)for(var et=0;et<be.length;++et)be[et].lines.length||Dt(be[et],"hide");if(Ne)for(var ot=0;ot<Ne.length;++ot)Ne[ot].lines.length&&Dt(Ne[ot],"unhide");ie.wrapper.offsetHeight&&(re.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Dt(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function Ii(x,z){if(x.curOp)return z();ai(x);try{return z()}finally{ba(x)}}function Ui(x,z){return function(){if(x.curOp)return z.apply(x,arguments);ai(x);try{return z.apply(x,arguments)}finally{ba(x)}}}function Ba(x){return function(){if(this.curOp)return x.apply(this,arguments);ai(this);try{return x.apply(this,arguments)}finally{ba(this)}}}function go(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);ai(z);try{return x.apply(this,arguments)}finally{ba(z)}}}function yi(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Pt(co,x))}function co(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ie=+new Date+x.options.workTime,re=Po(x,z.highlightFrontier),oe=[];z.iter(re.line,Math.min(z.first+z.size,x.display.viewTo+500),function(be){if(re.line>=x.display.viewFrom){var Ne=be.styles,et=be.text.length>x.options.maxHighlightLength?Ut(z.mode,re.state):null,ot=bl(x,be,re,!0);et&&(re.state=et),be.styles=ot.styles;var bt=be.styleClasses,yn=ot.classes;yn?be.styleClasses=yn:bt&&(be.styleClasses=null);for(var Rn=!Ne||Ne.length!=be.styles.length||bt!=yn&&(!bt||!yn||bt.bgClass!=yn.bgClass||bt.textClass!=yn.textClass),Dr=0;!Rn&&Dr<Ne.length;++Dr)Rn=Ne[Dr]!=be.styles[Dr];Rn&&oe.push(re.line),be.stateAfter=re.save(),re.nextLine()}else be.text.length<=x.options.maxHighlightLength&&la(x,be.text,re),be.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>ie)return yi(x,x.options.workDelay),!0}),z.highlightFrontier=re.line,z.modeFrontier=Math.max(z.modeFrontier,re.line),oe.length&&Ii(x,function(){for(var be=0;be<oe.length;be++)ki(x,oe[be],"text")})}}var Va=function(x,z,ie){var re=x.display;this.viewport=z,this.visible=ri(re,x.doc,z),this.editorIsHidden=!re.wrapper.offsetWidth,this.wrapperHeight=re.wrapper.clientHeight,this.wrapperWidth=re.wrapper.clientWidth,this.oldDisplayWidth=Qi(x),this.force=ie,this.dims=ro(x),this.events=[]};Va.prototype.signal=function(x,z){Bn(x,z)&&this.events.push(arguments)},Va.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Dt.apply(null,this.events[x])};function ko(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Ca(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Ca(x)+"px",z.scrollbarsClipped=!0)}function Cl(x){if(x.hasFocus())return null;var z=je();if(!z||!mt(x.display.lineDiv,z))return null;var ie={activeElt:z};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&mt(x.display.lineDiv,re.anchorNode)&&(ie.anchorNode=re.anchorNode,ie.anchorOffset=re.anchorOffset,ie.focusNode=re.focusNode,ie.focusOffset=re.focusOffset)}return ie}function Dl(x){if(!(!x||!x.activeElt||x.activeElt==je())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&mt(document.body,x.anchorNode)&&mt(document.body,x.focusNode))){var z=window.getSelection(),ie=document.createRange();ie.setEnd(x.anchorNode,x.anchorOffset),ie.collapse(!1),z.removeAllRanges(),z.addRange(ie),z.extend(x.focusNode,x.focusOffset)}}function zl(x,z){var ie=x.display,re=x.doc;if(z.editorIsHidden)return ya(x),!1;if(!z.force&&z.visible.from>=ie.viewFrom&&z.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&zt(x)==0)return!1;ql(x)&&(ya(x),z.dims=ro(x));var oe=re.first+re.size,be=Math.max(z.visible.from-x.options.viewportMargin,re.first),Ne=Math.min(oe,z.visible.to+x.options.viewportMargin);ie.viewFrom<be&&be-ie.viewFrom<20&&(be=Math.max(re.first,ie.viewFrom)),ie.viewTo>Ne&&ie.viewTo-Ne<20&&(Ne=Math.min(oe,ie.viewTo)),io&&(be=En(x.doc,be),Ne=ur(x.doc,Ne));var et=be!=ie.viewFrom||Ne!=ie.viewTo||ie.lastWrapHeight!=z.wrapperHeight||ie.lastWrapWidth!=z.wrapperWidth;tt(x,be,Ne),ie.viewOffset=Qn(Hn(x.doc,ie.viewFrom)),x.display.mover.style.top=ie.viewOffset+"px";var ot=zt(x);if(!et&&ot==0&&!z.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var bt=Cl(x);return ot>4&&(ie.lineDiv.style.display="none"),Ts(x,ie.updateLineNumbers,z.dims),ot>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Dl(bt),We(ie.cursorDiv),We(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,et&&(ie.lastWrapHeight=z.wrapperHeight,ie.lastWrapWidth=z.wrapperWidth,yi(x,400)),ie.updateLineNumbers=null,!0}function Hl(x,z){for(var ie=z.viewport,re=!0;;re=!1){if(!re||!x.options.lineWrapping||z.oldDisplayWidth==Qi(x)){if(ie&&ie.top!=null&&(ie={top:Math.min(x.doc.height+va(x.display)-ja(x),ie.top)}),z.visible=ri(x.display,x.doc,ie),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else re&&(z.visible=ri(x.display,x.doc,ie));if(!zl(x,z))break;$r(x);var oe=uo(x);Ot(x),Io(x,oe),Qs(x,oe),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Rl(x,z){var ie=new Va(x,z);if(zl(x,ie)){$r(x),Hl(x,ie);var re=uo(x);Ot(x),Io(x,re),Qs(x,re),ie.finish()}}function Ts(x,z,ie){var re=x.display,oe=x.options.lineNumbers,be=re.lineDiv,Ne=be.firstChild;function et(vi){var ji=vi.nextSibling;return ue&&ge&&x.display.currentWheelTarget==vi?vi.style.display="none":vi.parentNode.removeChild(vi),ji}for(var ot=re.view,bt=re.viewFrom,yn=0;yn<ot.length;yn++){var Rn=ot[yn];if(!Rn.hidden)if(!Rn.node||Rn.node.parentNode!=be){var Dr=Wi(x,Rn,bt,ie);be.insertBefore(Dr,Ne)}else{for(;Ne!=Rn.node;)Ne=et(Ne);var Cr=oe&&z!=null&&z<=bt&&Rn.lineNumber;Rn.changes&&(St(Rn.changes,"gutter")>-1&&(Cr=!1),ii(x,Rn,bt,ie)),Cr&&(We(Rn.lineNumber),Rn.lineNumber.appendChild(document.createTextNode(Si(x.options,bt)))),Ne=Rn.node.nextSibling}bt+=Rn.size}for(;Ne;)Ne=et(Ne)}function ks(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qs(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+Ca(x)+"px"}function ps(x){var z=x.display,ie=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var re=Qo(z)-z.scroller.scrollLeft+x.doc.scrollLeft,oe=z.gutters.offsetWidth,be=re+"px",Ne=0;Ne<ie.length;Ne++)if(!ie[Ne].hidden){x.options.fixedGutter&&(ie[Ne].gutter&&(ie[Ne].gutter.style.left=be),ie[Ne].gutterBackground&&(ie[Ne].gutterBackground.style.left=be));var et=ie[Ne].alignable;if(et)for(var ot=0;ot<et.length;ot++)et[ot].style.left=be}x.options.fixedGutter&&(z.gutters.style.left=re+oe+"px")}}function ql(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ie=Si(x.options,z.first+z.size-1),re=x.display;if(ie.length!=re.lineNumChars){var oe=re.measure.appendChild(at("div",[at("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),be=oe.firstChild.offsetWidth,Ne=oe.offsetWidth-be;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(be,re.lineGutter.offsetWidth-Ne)+1,re.lineNumWidth=re.lineNumInnerWidth+Ne,re.lineNumChars=re.lineNumInnerWidth?ie.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",ks(x.display),!0}return!1}function Bs(x,z){for(var ie=[],re=!1,oe=0;oe<x.length;oe++){var be=x[oe],Ne=null;if(typeof be!="string"&&(Ne=be.style,be=be.className),be=="CodeMirror-linenumbers")if(z)re=!0;else continue;ie.push({className:be,style:Ne})}return z&&!re&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function gs(x){var z=x.gutters,ie=x.gutterSpecs;We(z),x.lineGutter=null;for(var re=0;re<ie.length;++re){var oe=ie[re],be=oe.className,Ne=oe.style,et=z.appendChild(at("div",null,"CodeMirror-gutter "+be));Ne&&(et.style.cssText=Ne),be=="CodeMirror-linenumbers"&&(x.lineGutter=et,et.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ie.length?"":"none",ks(x)}function us(x){gs(x.display),Ai(x),ps(x)}function js(x,z,ie,re){var oe=this;this.input=ie,oe.scrollbarFiller=at("div",null,"CodeMirror-scrollbar-filler"),oe.scrollbarFiller.setAttribute("cm-not-content","true"),oe.gutterFiller=at("div",null,"CodeMirror-gutter-filler"),oe.gutterFiller.setAttribute("cm-not-content","true"),oe.lineDiv=Ze("div",null,"CodeMirror-code"),oe.selectionDiv=at("div",null,null,"position: relative; z-index: 1"),oe.cursorDiv=at("div",null,"CodeMirror-cursors"),oe.measure=at("div",null,"CodeMirror-measure"),oe.lineMeasure=at("div",null,"CodeMirror-measure"),oe.lineSpace=Ze("div",[oe.measure,oe.lineMeasure,oe.selectionDiv,oe.cursorDiv,oe.lineDiv],null,"position: relative; outline: none");var be=Ze("div",[oe.lineSpace],"CodeMirror-lines");oe.mover=at("div",[be],null,"position: relative"),oe.sizer=at("div",[oe.mover],"CodeMirror-sizer"),oe.sizerWidth=null,oe.heightForcer=at("div",null,null,"position: absolute; height: "+Vt+"px; width: 1px;"),oe.gutters=at("div",null,"CodeMirror-gutters"),oe.lineGutter=null,oe.scroller=at("div",[oe.sizer,oe.heightForcer,oe.gutters],"CodeMirror-scroll"),oe.scroller.setAttribute("tabIndex","-1"),oe.wrapper=at("div",[oe.scrollbarFiller,oe.gutterFiller,oe.scroller],"CodeMirror"),xe&&Me<8&&(oe.gutters.style.zIndex=-1,oe.scroller.style.paddingRight=0),!ue&&!(ee&&_e)&&(oe.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(oe.wrapper):x(oe.wrapper)),oe.viewFrom=oe.viewTo=z.first,oe.reportedViewFrom=oe.reportedViewTo=z.first,oe.view=[],oe.renderedView=null,oe.externalMeasured=null,oe.viewOffset=0,oe.lastWrapHeight=oe.lastWrapWidth=0,oe.updateLineNumbers=null,oe.nativeBarWidth=oe.barHeight=oe.barWidth=0,oe.scrollbarsClipped=!1,oe.lineNumWidth=oe.lineNumInnerWidth=oe.lineNumChars=null,oe.alignWidgets=!1,oe.cachedCharWidth=oe.cachedTextHeight=oe.cachedPaddingH=null,oe.maxLine=null,oe.maxLineLength=0,oe.maxLineChanged=!1,oe.wheelDX=oe.wheelDY=oe.wheelStartX=oe.wheelStartY=null,oe.shift=!1,oe.selForContextMenu=null,oe.activeTouch=null,oe.gutterSpecs=Bs(re.gutters,re.lineNumbers),gs(oe),ie.init(oe)}var Os=0,cs=null;xe?cs=-.53:ee?cs=15:fe?cs=-.7:Ue&&(cs=-1/3);function Ys(x){var z=x.wheelDeltaX,ie=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ie==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ie=x.detail:ie==null&&(ie=x.wheelDelta),{x:z,y:ie}}function Zu(x){var z=Ys(x);return z.x*=cs,z.y*=cs,z}function Fu(x,z){var ie=Ys(z),re=ie.x,oe=ie.y,be=x.display,Ne=be.scroller,et=Ne.scrollWidth>Ne.clientWidth,ot=Ne.scrollHeight>Ne.clientHeight;if(re&&et||oe&&ot){if(oe&&ge&&ue){e:for(var bt=z.target,yn=be.view;bt!=Ne;bt=bt.parentNode)for(var Rn=0;Rn<yn.length;Rn++)if(yn[Rn].node==bt){x.display.currentWheelTarget=bt;break e}}if(re&&!ee&&!we&&cs!=null){oe&&ot&&Xi(x,Math.max(0,Ne.scrollTop+oe*cs)),So(x,Math.max(0,Ne.scrollLeft+re*cs)),(!oe||oe&&ot)&&or(z),be.wheelStartX=null;return}if(oe&&cs!=null){var Dr=oe*cs,Cr=x.doc.scrollTop,vi=Cr+be.wrapper.clientHeight;Dr<0?Cr=Math.max(0,Cr+Dr-50):vi=Math.min(x.doc.height,vi+Dr+50),Rl(x,{top:Cr,bottom:vi})}Os<20&&(be.wheelStartX==null?(be.wheelStartX=Ne.scrollLeft,be.wheelStartY=Ne.scrollTop,be.wheelDX=re,be.wheelDY=oe,setTimeout(function(){if(be.wheelStartX!=null){var ji=Ne.scrollLeft-be.wheelStartX,ma=Ne.scrollTop-be.wheelStartY,Wa=ma&&be.wheelDY&&ma/be.wheelDY||ji&&be.wheelDX&&ji/be.wheelDX;be.wheelStartX=be.wheelStartY=null,Wa&&(cs=(cs*Os+Wa)/(Os+1),++Os)}},200)):(be.wheelDX+=re,be.wheelDY+=oe))}}var ys=function(x,z){this.ranges=x,this.primIndex=z};ys.prototype.primary=function(){return this.ranges[this.primIndex]},ys.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ie=this.ranges[z],re=x.ranges[z];if(!Oa(ie.anchor,re.anchor)||!Oa(ie.head,re.head))return!1}return!0},ys.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Ll(Qa(this.ranges[z].anchor),Qa(this.ranges[z].head));return new ys(x,this.primIndex)},ys.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},ys.prototype.contains=function(x,z){z||(z=x);for(var ie=0;ie<this.ranges.length;ie++){var re=this.ranges[ie];if(Jr(z,re.from())>=0&&Jr(x,re.to())<=0)return ie}return-1};var Ll=function(x,z){this.anchor=x,this.head=z};Ll.prototype.from=function(){return qi(this.anchor,this.head)},Ll.prototype.to=function(){return Li(this.anchor,this.head)},Ll.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function bs(x,z,ie){var re=x&&x.options.selectionsMayTouch,oe=z[ie];z.sort(function(Dr,Cr){return Jr(Dr.from(),Cr.from())}),ie=St(z,oe);for(var be=1;be<z.length;be++){var Ne=z[be],et=z[be-1],ot=Jr(et.to(),Ne.from());if(re&&!Ne.empty()?ot>0:ot>=0){var bt=qi(et.from(),Ne.from()),yn=Li(et.to(),Ne.to()),Rn=et.empty()?Ne.from()==Ne.head:et.from()==et.head;be<=ie&&--ie,z.splice(--be,2,new Ll(Rn?yn:bt,Rn?bt:yn))}}return new ys(z,ie)}function Xs(x,z){return new ys([new Ll(x,z||x)],0)}function vu(x){return x.text?Jn(x.from.line+x.text.length-1,un(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function os(x,z){if(Jr(x,z.from)<0)return x;if(Jr(x,z.to)<=0)return vu(z);var ie=x.line+z.text.length-(z.to.line-z.from.line)-1,re=x.ch;return x.line==z.to.line&&(re+=vu(z).ch-z.to.ch),Jn(ie,re)}function Gl(x,z){for(var ie=[],re=0;re<x.sel.ranges.length;re++){var oe=x.sel.ranges[re];ie.push(new Ll(os(oe.anchor,z),os(oe.head,z)))}return bs(x.cm,ie,x.sel.primIndex)}function rs(x,z,ie){return x.line==z.line?Jn(ie.line,x.ch-z.ch+ie.ch):Jn(ie.line+(x.line-z.line),x.ch)}function Js(x,z,ie){for(var re=[],oe=Jn(x.first,0),be=oe,Ne=0;Ne<z.length;Ne++){var et=z[Ne],ot=rs(et.from,oe,be),bt=rs(vu(et),oe,be);if(oe=et.to,be=bt,ie=="around"){var yn=x.sel.ranges[Ne],Rn=Jr(yn.head,yn.anchor)<0;re[Ne]=new Ll(Rn?bt:ot,Rn?ot:bt)}else re[Ne]=new Ll(ot,ot)}return new ys(re,x.sel.primIndex)}function Ds(x){x.doc.mode=fn(x.options,x.doc.modeOption),$s(x)}function $s(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,yi(x,100),x.state.modeGen++,x.curOp&&Ai(x)}function sl(x,z){return z.from.ch==0&&z.to.ch==0&&un(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function oa(x,z,ie,re){function oe(fo){return ie?ie[fo]:null}function be(fo,Fa,po){zr(fo,Fa,po,re),rr(fo,"change",fo,z)}function Ne(fo,Fa){for(var po=[],qo=fo;qo<Fa;++qo)po.push(new hr(bt[qo],oe(qo),re));return po}var et=z.from,ot=z.to,bt=z.text,yn=Hn(x,et.line),Rn=Hn(x,ot.line),Dr=un(bt),Cr=oe(bt.length-1),vi=ot.line-et.line;if(z.full)x.insert(0,Ne(0,bt.length)),x.remove(bt.length,x.size-bt.length);else if(sl(x,z)){var ji=Ne(0,bt.length-1);be(Rn,Rn.text,Cr),vi&&x.remove(et.line,vi),ji.length&&x.insert(et.line,ji)}else if(yn==Rn)if(bt.length==1)be(yn,yn.text.slice(0,et.ch)+Dr+yn.text.slice(ot.ch),Cr);else{var ma=Ne(1,bt.length-1);ma.push(new hr(Dr+yn.text.slice(ot.ch),Cr,re)),be(yn,yn.text.slice(0,et.ch)+bt[0],oe(0)),x.insert(et.line+1,ma)}else if(bt.length==1)be(yn,yn.text.slice(0,et.ch)+bt[0]+Rn.text.slice(ot.ch),oe(0)),x.remove(et.line+1,vi);else{be(yn,yn.text.slice(0,et.ch)+bt[0],oe(0)),be(Rn,Dr+Rn.text.slice(ot.ch),Cr);var Wa=Ne(1,bt.length-1);vi>1&&x.remove(et.line+1,vi-1),x.insert(et.line+1,Wa)}rr(x,"change",x,z)}function eo(x,z,ie){function re(oe,be,Ne){if(oe.linked)for(var et=0;et<oe.linked.length;++et){var ot=oe.linked[et];if(ot.doc!=be){var bt=Ne&&ot.sharedHist;ie&&!bt||(z(ot.doc,bt),re(ot.doc,oe,bt))}}}re(x,null,!0)}function Bo(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,xi(x),Ds(x),Xo(x),x.options.lineWrapping||On(x),x.options.mode=z.modeOption,Ai(x)}function Xo(x){(x.doc.direction=="rtl"?it:ze)(x.display.lineDiv,"CodeMirror-rtl")}function is(x){Ii(x,function(){Xo(x),Ai(x)})}function as(x){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=x||1}function Rs(x,z){var ie={from:Qa(z.from),to:vu(z),text:Mr(x,z.from,z.to)};return Qt(x,ie,z.from.line,z.to.line+1),eo(x,function(re){return Qt(re,ie,z.from.line,z.to.line+1)},!0),ie}function su(x){for(;x.length;){var z=un(x);if(z.ranges)x.pop();else break}}function Ru(x,z){if(z)return su(x.done),un(x.done);if(x.done.length&&!un(x.done).ranges)return un(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),un(x.done)}function Fe(x,z,ie,re){var oe=x.history;oe.undone.length=0;var be=+new Date,Ne,et;if((oe.lastOp==re||oe.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&oe.lastModTime>be-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Ne=Ru(oe,oe.lastOp==re)))et=un(Ne.changes),Jr(z.from,z.to)==0&&Jr(z.from,et.to)==0?et.to=vu(z):Ne.changes.push(Rs(x,z));else{var ot=un(oe.done);for((!ot||!ot.ranges)&&At(x.sel,oe.done),Ne={changes:[Rs(x,z)],generation:oe.generation},oe.done.push(Ne);oe.done.length>oe.undoDepth;)oe.done.shift(),oe.done[0].ranges||oe.done.shift()}oe.done.push(ie),oe.generation=++oe.maxGeneration,oe.lastModTime=oe.lastSelTime=be,oe.lastOp=oe.lastSelOp=re,oe.lastOrigin=oe.lastSelOrigin=z.origin,et||Dt(x,"historyAdded")}function Re(x,z,ie,re){var oe=z.charAt(0);return oe=="*"||oe=="+"&&ie.ranges.length==re.ranges.length&&ie.somethingSelected()==re.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function ct(x,z,ie,re){var oe=x.history,be=re&&re.origin;ie==oe.lastSelOp||be&&oe.lastSelOrigin==be&&(oe.lastModTime==oe.lastSelTime&&oe.lastOrigin==be||Re(x,be,un(oe.done),z))?oe.done[oe.done.length-1]=z:At(z,oe.done),oe.lastSelTime=+new Date,oe.lastSelOrigin=be,oe.lastSelOp=ie,re&&re.clearRedo!==!1&&su(oe.undone)}function At(x,z){var ie=un(z);ie&&ie.ranges&&ie.equals(x)||z.push(x)}function Qt(x,z,ie,re){var oe=z["spans_"+x.id],be=0;x.iter(Math.max(x.first,ie),Math.min(x.first+x.size,re),function(Ne){Ne.markedSpans&&((oe||(oe=z["spans_"+x.id]={}))[be]=Ne.markedSpans),++be})}function en(x){if(!x)return null;for(var z,ie=0;ie<x.length;++ie)x[ie].marker.explicitlyCleared?z||(z=x.slice(0,ie)):z&&z.push(x[ie]);return z?z.length?z:null:x}function Tn(x,z){var ie=z["spans_"+x.id];if(!ie)return null;for(var re=[],oe=0;oe<z.text.length;++oe)re.push(en(ie[oe]));return re}function er(x,z){var ie=Tn(x,z),re=ka(x,z);if(!ie)return re;if(!re)return ie;for(var oe=0;oe<ie.length;++oe){var be=ie[oe],Ne=re[oe];if(be&&Ne)e:for(var et=0;et<Ne.length;++et){for(var ot=Ne[et],bt=0;bt<be.length;++bt)if(be[bt].marker==ot.marker)continue e;be.push(ot)}else Ne&&(ie[oe]=Ne)}return ie}function Zn(x,z,ie){for(var re=[],oe=0;oe<x.length;++oe){var be=x[oe];if(be.ranges){re.push(ie?ys.prototype.deepCopy.call(be):be);continue}var Ne=be.changes,et=[];re.push({changes:et});for(var ot=0;ot<Ne.length;++ot){var bt=Ne[ot],yn=void 0;if(et.push({from:bt.from,to:bt.to,text:bt.text}),z)for(var Rn in bt)(yn=Rn.match(/^spans_(\d+)$/))&&St(z,Number(yn[1]))>-1&&(un(et)[Rn]=bt[Rn],delete bt[Rn])}}return re}function xr(x,z,ie,re){if(re){var oe=x.anchor;if(ie){var be=Jr(z,oe)<0;be!=Jr(ie,oe)<0?(oe=z,z=ie):be!=Jr(z,ie)<0&&(z=ie)}return new Ll(oe,z)}else return new Ll(ie||z,z)}function Tr(x,z,ie,re,oe){oe==null&&(oe=x.cm&&(x.cm.display.shift||x.extend)),Ci(x,new ys([xr(x.sel.primary(),z,ie,oe)],0),re)}function Nn(x,z,ie){for(var re=[],oe=x.cm&&(x.cm.display.shift||x.extend),be=0;be<x.sel.ranges.length;be++)re[be]=xr(x.sel.ranges[be],z[be],null,oe);var Ne=bs(x.cm,re,x.sel.primIndex);Ci(x,Ne,ie)}function oi(x,z,ie,re){var oe=x.sel.ranges.slice(0);oe[z]=ie,Ci(x,bs(x.cm,oe,x.sel.primIndex),re)}function hi(x,z,ie,re){Ci(x,Xs(z,ie),re)}function mi(x,z,ie){var re={ranges:z.ranges,update:function(oe){this.ranges=[];for(var be=0;be<oe.length;be++)this.ranges[be]=new Ll(zi(x,oe[be].anchor),zi(x,oe[be].head))},origin:ie&&ie.origin};return Dt(x,"beforeSelectionChange",x,re),x.cm&&Dt(x.cm,"beforeSelectionChange",x.cm,re),re.ranges!=z.ranges?bs(x.cm,re.ranges,re.ranges.length-1):z}function Hi(x,z,ie){var re=x.history.done,oe=un(re);oe&&oe.ranges?(re[re.length-1]=z,ea(x,z,ie)):Ci(x,z,ie)}function Ci(x,z,ie){ea(x,z,ie),ct(x,x.sel,x.cm?x.cm.curOp.id:NaN,ie)}function ea(x,z,ie){(Bn(x,"beforeSelectionChange")||x.cm&&Bn(x.cm,"beforeSelectionChange"))&&(z=mi(x,z,ie));var re=ie&&ie.bias||(Jr(z.primary().head,x.sel.primary().head)<0?-1:1);Gi(x,qa(x,z,re,!0)),!(ie&&ie.scroll===!1)&&x.cm&&lo(x.cm)}function Gi(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Gn(x.cm)),rr(x,"cursorActivity",x))}function ha(x){Gi(x,qa(x,x.sel,null,!1))}function qa(x,z,ie,re){for(var oe,be=0;be<z.ranges.length;be++){var Ne=z.ranges[be],et=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[be],ot=Ja(x,Ne.anchor,et&&et.anchor,ie,re),bt=Ja(x,Ne.head,et&&et.head,ie,re);(oe||ot!=Ne.anchor||bt!=Ne.head)&&(oe||(oe=z.ranges.slice(0,be)),oe[be]=new Ll(ot,bt))}return oe?bs(x.cm,oe,z.primIndex):z}function Za(x,z,ie,re,oe){var be=Hn(x,z.line);if(be.markedSpans)for(var Ne=0;Ne<be.markedSpans.length;++Ne){var et=be.markedSpans[Ne],ot=et.marker,bt="selectLeft"in ot?!ot.selectLeft:ot.inclusiveLeft,yn="selectRight"in ot?!ot.selectRight:ot.inclusiveRight;if((et.from==null||(bt?et.from<=z.ch:et.from<z.ch))&&(et.to==null||(yn?et.to>=z.ch:et.to>z.ch))){if(oe&&(Dt(ot,"beforeCursorEnter"),ot.explicitlyCleared))if(be.markedSpans){--Ne;continue}else break;if(!ot.atomic)continue;if(ie){var Rn=ot.find(re<0?1:-1),Dr=void 0;if((re<0?yn:bt)&&(Rn=To(x,Rn,-re,Rn&&Rn.line==z.line?be:null)),Rn&&Rn.line==z.line&&(Dr=Jr(Rn,ie))&&(re<0?Dr<0:Dr>0))return Za(x,Rn,z,re,oe)}var Cr=ot.find(re<0?-1:1);return(re<0?bt:yn)&&(Cr=To(x,Cr,re,Cr.line==z.line?be:null)),Cr?Za(x,Cr,z,re,oe):null}}return z}function Ja(x,z,ie,re,oe){var be=re||1,Ne=Za(x,z,ie,be,oe)||!oe&&Za(x,z,ie,be,!0)||Za(x,z,ie,-be,oe)||!oe&&Za(x,z,ie,-be,!0);return Ne||(x.cantEdit=!0,Jn(x.first,0))}function To(x,z,ie,re){return ie<0&&z.ch==0?z.line>x.first?zi(x,Jn(z.line-1)):null:ie>0&&z.ch==(re||Hn(x,z.line)).text.length?z.line<x.first+x.size-1?Jn(z.line+1,0):null:new Jn(z.line,z.ch+ie)}function al(x){x.setSelection(Jn(x.firstLine(),0),Jn(x.lastLine()),ht)}function Da(x,z,ie){var re={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return re.canceled=!0}};return ie&&(re.update=function(oe,be,Ne,et){oe&&(re.from=zi(x,oe)),be&&(re.to=zi(x,be)),Ne&&(re.text=Ne),et!==void 0&&(re.origin=et)}),Dt(x,"beforeChange",x,re),x.cm&&Dt(x.cm,"beforeChange",x.cm,re),re.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function Fi(x,z,ie){if(x.cm){if(!x.cm.curOp)return Ui(x.cm,Fi)(x,z,ie);if(x.cm.state.suppressEdits)return}if(!((Bn(x,"beforeChange")||x.cm&&Bn(x.cm,"beforeChange"))&&(z=Da(x,z,!0),!z))){var re=dl&&!ie&&ho(x,z.from,z.to);if(re)for(var oe=re.length-1;oe>=0;--oe)Bi(x,{from:re[oe].from,to:re[oe].to,text:oe?[""]:z.text,origin:z.origin});else Bi(x,z)}}function Bi(x,z){if(!(z.text.length==1&&z.text[0]==""&&Jr(z.from,z.to)==0)){var ie=Gl(x,z);Fe(x,z,ie,x.cm?x.cm.curOp.id:NaN),Ta(x,z,ie,ka(x,z));var re=[];eo(x,function(oe,be){!be&&St(re,oe.history)==-1&&(fl(oe.history,z),re.push(oe.history)),Ta(oe,z,null,ka(oe,z))})}}function Ri(x,z,ie){var re=x.cm&&x.cm.state.suppressEdits;if(!(re&&!ie)){for(var oe=x.history,be,Ne=x.sel,et=z=="undo"?oe.done:oe.undone,ot=z=="undo"?oe.undone:oe.done,bt=0;bt<et.length&&(be=et[bt],!(ie?be.ranges&&!be.equals(x.sel):!be.ranges));bt++);if(bt!=et.length){for(oe.lastOrigin=oe.lastSelOrigin=null;;)if(be=et.pop(),be.ranges){if(At(be,ot),ie&&!be.equals(x.sel)){Ci(x,be,{clearRedo:!1});return}Ne=be}else if(re){et.push(be);return}else break;var yn=[];At(Ne,ot),ot.push({changes:yn,generation:oe.generation}),oe.generation=be.generation||++oe.maxGeneration;for(var Rn=Bn(x,"beforeChange")||x.cm&&Bn(x.cm,"beforeChange"),Dr=function(ji){var ma=be.changes[ji];if(ma.origin=z,Rn&&!Da(x,ma,!1))return et.length=0,{};yn.push(Rs(x,ma));var Wa=ji?Gl(x,ma):un(et);Ta(x,ma,Wa,er(x,ma)),!ji&&x.cm&&x.cm.scrollIntoView({from:ma.from,to:vu(ma)});var fo=[];eo(x,function(Fa,po){!po&&St(fo,Fa.history)==-1&&(fl(Fa.history,ma),fo.push(Fa.history)),Ta(Fa,ma,null,er(Fa,ma))})},Cr=be.changes.length-1;Cr>=0;--Cr){var vi=Dr(Cr);if(vi)return vi.v}}}}function pa(x,z){if(z!=0&&(x.first+=z,x.sel=new ys(Wn(x.sel.ranges,function(oe){return new Ll(Jn(oe.anchor.line+z,oe.anchor.ch),Jn(oe.head.line+z,oe.head.ch))}),x.sel.primIndex),x.cm)){Ai(x.cm,x.first,x.first-z,z);for(var ie=x.cm.display,re=ie.viewFrom;re<ie.viewTo;re++)ki(x.cm,re,"gutter")}}function Ta(x,z,ie,re){if(x.cm&&!x.cm.curOp)return Ui(x.cm,Ta)(x,z,ie,re);if(z.to.line<x.first){pa(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var oe=z.text.length-1-(x.first-z.from.line);pa(x,oe),z={from:Jn(x.first,0),to:Jn(z.to.line+oe,z.to.ch),text:[un(z.text)],origin:z.origin}}var be=x.lastLine();z.to.line>be&&(z={from:z.from,to:Jn(be,Hn(x,be).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Mr(x,z.from,z.to),ie||(ie=Gl(x,z)),x.cm?Jo(x.cm,z,re):oa(x,z,re),ea(x,ie,ht),x.cantEdit&&Ja(x,Jn(x.firstLine(),0))&&(x.cantEdit=!1)}}function Jo(x,z,ie){var re=x.doc,oe=x.display,be=z.from,Ne=z.to,et=!1,ot=be.line;x.options.lineWrapping||(ot=Gr(Ct(Hn(re,be.line))),re.iter(ot,Ne.line+1,function(Cr){if(Cr==oe.maxLine)return et=!0,!0})),re.sel.contains(z.from,z.to)>-1&&Gn(x),oa(re,z,ie,xo(x)),x.options.lineWrapping||(re.iter(ot,be.line+z.text.length,function(Cr){var vi=Yn(Cr);vi>oe.maxLineLength&&(oe.maxLine=Cr,oe.maxLineLength=vi,oe.maxLineChanged=!0,et=!1)}),et&&(x.curOp.updateMaxLine=!0)),wl(re,be.line),yi(x,400);var bt=z.text.length-(Ne.line-be.line)-1;z.full?Ai(x):be.line==Ne.line&&z.text.length==1&&!sl(x.doc,z)?ki(x,be.line,"text"):Ai(x,be.line,Ne.line+1,bt);var yn=Bn(x,"changes"),Rn=Bn(x,"change");if(Rn||yn){var Dr={from:be,to:Ne,text:z.text,removed:z.removed,origin:z.origin};Rn&&rr(x,"change",x,Dr),yn&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Dr)}x.display.selForContextMenu=null}function Do(x,z,ie,re,oe){var be;re||(re=ie),Jr(re,ie)<0&&(be=[re,ie],ie=be[0],re=be[1]),typeof z=="string"&&(z=x.splitLines(z)),Fi(x,{from:ie,to:re,text:z,origin:oe})}function wo(x,z,ie,re){ie<x.line?x.line+=re:z<x.line&&(x.line=z,x.ch=0)}function ul(x,z,ie,re){for(var oe=0;oe<x.length;++oe){var be=x[oe],Ne=!0;if(be.ranges){be.copied||(be=x[oe]=be.deepCopy(),be.copied=!0);for(var et=0;et<be.ranges.length;et++)wo(be.ranges[et].anchor,z,ie,re),wo(be.ranges[et].head,z,ie,re);continue}for(var ot=0;ot<be.changes.length;++ot){var bt=be.changes[ot];if(ie<bt.from.line)bt.from=Jn(bt.from.line+re,bt.from.ch),bt.to=Jn(bt.to.line+re,bt.to.ch);else if(z<=bt.to.line){Ne=!1;break}}Ne||(x.splice(0,oe+1),oe=0)}}function fl(x,z){var ie=z.from.line,re=z.to.line,oe=z.text.length-(re-ie)-1;ul(x.done,ie,re,oe),ul(x.undone,ie,re,oe)}function Nl(x,z,ie,re){var oe=z,be=z;return typeof z=="number"?be=Hn(x,$a(x,z)):oe=Gr(z),oe==null?null:(re(be,oe)&&x.cm&&ki(x.cm,oe,ie),be)}function Ml(x){this.lines=x,this.parent=null;for(var z=0,ie=0;ie<x.length;++ie)x[ie].parent=this,z+=x[ie].height;this.height=z}Ml.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ie=x,re=x+z;ie<re;++ie){var oe=this.lines[ie];this.height-=oe.height,Er(oe),rr(oe,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ie){this.height+=ie,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var re=0;re<z.length;++re)z[re].parent=this},iterN:function(x,z,ie){for(var re=x+z;x<re;++x)if(ie(this.lines[x]))return!0}};function ds(x){this.children=x;for(var z=0,ie=0,re=0;re<x.length;++re){var oe=x[re];z+=oe.chunkSize(),ie+=oe.height,oe.parent=this}this.size=z,this.height=ie,this.parent=null}ds.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ie=0;ie<this.children.length;++ie){var re=this.children[ie],oe=re.chunkSize();if(x<oe){var be=Math.min(z,oe-x),Ne=re.height;if(re.removeInner(x,be),this.height-=Ne-re.height,oe==be&&(this.children.splice(ie--,1),re.parent=null),(z-=be)==0)break;x=0}else x-=oe}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof Ml))){var et=[];this.collapse(et),this.children=[new Ml(et)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ie){this.size+=z.length,this.height+=ie;for(var re=0;re<this.children.length;++re){var oe=this.children[re],be=oe.chunkSize();if(x<=be){if(oe.insertInner(x,z,ie),oe.lines&&oe.lines.length>50){for(var Ne=oe.lines.length%25+25,et=Ne;et<oe.lines.length;){var ot=new Ml(oe.lines.slice(et,et+=25));oe.height-=ot.height,this.children.splice(++re,0,ot),ot.parent=this}oe.lines=oe.lines.slice(0,Ne),this.maybeSpill()}break}x-=be}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ie=new ds(z);if(x.parent){x.size-=ie.size,x.height-=ie.height;var oe=St(x.parent.children,x);x.parent.children.splice(oe+1,0,ie)}else{var re=new ds(x.children);re.parent=x,x.children=[re,ie],x=re}ie.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ie){for(var re=0;re<this.children.length;++re){var oe=this.children[re],be=oe.chunkSize();if(x<be){var Ne=Math.min(z,be-x);if(oe.iterN(x,Ne,ie))return!0;if((z-=Ne)==0)break;x=0}else x-=be}}};var fs=function(x,z,ie){if(ie)for(var re in ie)ie.hasOwnProperty(re)&&(this[re]=ie[re]);this.doc=x,this.node=z};fs.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ie=this.line,re=Gr(ie);if(!(re==null||!z)){for(var oe=0;oe<z.length;++oe)z[oe]==this&&z.splice(oe--,1);z.length||(ie.widgets=null);var be=La(this);Xr(ie,Math.max(0,ie.height-be)),x&&(Ii(x,function(){hl(x,ie,-be),ki(x,re,"widget")}),rr(x,"lineWidgetCleared",x,this,re))}},fs.prototype.changed=function(){var x=this,z=this.height,ie=this.doc.cm,re=this.line;this.height=null;var oe=La(this)-z;oe&&(yr(this.doc,re)||Xr(re,re.height+oe),ie&&Ii(ie,function(){ie.curOp.forceUpdate=!0,hl(ie,re,oe),rr(ie,"lineWidgetChanged",ie,x,Gr(re))}))},Sn(fs);function hl(x,z,ie){Qn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&za(x,ie)}function _s(x,z,ie,re){var oe=new fs(x,ie,re),be=x.cm;return be&&oe.noHScroll&&(be.display.alignWidgets=!0),Nl(x,z,"widget",function(Ne){var et=Ne.widgets||(Ne.widgets=[]);if(oe.insertAt==null?et.push(oe):et.splice(Math.min(et.length-1,Math.max(0,oe.insertAt)),0,oe),oe.line=Ne,be&&!yr(x,Ne)){var ot=Qn(Ne)<x.scrollTop;Xr(Ne,Ne.height+La(oe)),ot&&za(be,oe.height),be.curOp.forceUpdate=!0}return!0}),be&&rr(be,"lineWidgetAdded",be,oe,typeof z=="number"?z:Gr(z)),oe}var jl=0,es=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++jl};es.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&ai(x),Bn(this,"clear")){var ie=this.find();ie&&rr(this,"clear",ie.from,ie.to)}for(var re=null,oe=null,be=0;be<this.lines.length;++be){var Ne=this.lines[be],et=tr(Ne.markedSpans,this);x&&!this.collapsed?ki(x,Gr(Ne),"text"):x&&(et.to!=null&&(oe=Gr(Ne)),et.from!=null&&(re=Gr(Ne))),Ne.markedSpans=Yr(Ne.markedSpans,et),et.from==null&&this.collapsed&&!yr(this.doc,Ne)&&x&&Xr(Ne,Pa(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var ot=0;ot<this.lines.length;++ot){var bt=Ct(this.lines[ot]),yn=Yn(bt);yn>x.display.maxLineLength&&(x.display.maxLine=bt,x.display.maxLineLength=yn,x.display.maxLineChanged=!0)}re!=null&&x&&this.collapsed&&Ai(x,re,oe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&ha(x.doc)),x&&rr(x,"markerCleared",x,this,re,oe),z&&ba(x),this.parent&&this.parent.clear()}},es.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ie,re,oe=0;oe<this.lines.length;++oe){var be=this.lines[oe],Ne=tr(be.markedSpans,this);if(Ne.from!=null&&(ie=Jn(z?be:Gr(be),Ne.from),x==-1))return ie;if(Ne.to!=null&&(re=Jn(z?be:Gr(be),Ne.to),x==1))return re}return ie&&{from:ie,to:re}},es.prototype.changed=function(){var x=this,z=this.find(-1,!0),ie=this,re=this.doc.cm;!z||!re||Ii(re,function(){var oe=z.line,be=Gr(z.line),Ne=tl(re,be);if(Ne&&(Ko(Ne),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!yr(ie.doc,oe)&&ie.height!=null){var et=ie.height;ie.height=null;var ot=La(ie)-et;ot&&Xr(oe,oe.height+ot)}rr(re,"markerChanged",re,x)})},es.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||St(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},es.prototype.detachLine=function(x){if(this.lines.splice(St(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Sn(es);function Yl(x,z,ie,re,oe){if(re&&re.shared)return Ia(x,z,ie,re,oe);if(x.cm&&!x.cm.curOp)return Ui(x.cm,Yl)(x,z,ie,re,oe);var be=new es(x,oe),Ne=Jr(z,ie);if(re&&Xt(re,be,!1),Ne>0||Ne==0&&be.clearWhenEmpty!==!1)return be;if(be.replacedWith&&(be.collapsed=!0,be.widgetNode=Ze("span",[be.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||be.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(be.widgetNode.insertLeft=!0)),be.collapsed){if(ft(x,z.line,z,ie,be)||z.line!=ie.line&&ft(x,ie.line,z,ie,be))throw new Error("Inserting collapsed marker partially overlapping an existing one");pn()}be.addToHistory&&Fe(x,{from:z,to:ie,origin:"markText"},x.sel,NaN);var et=z.line,ot=x.cm,bt;if(x.iter(et,ie.line+1,function(Rn){ot&&be.collapsed&&!ot.options.lineWrapping&&Ct(Rn)==ot.display.maxLine&&(bt=!0),be.collapsed&&et!=z.line&&Xr(Rn,0),$i(Rn,new ar(be,et==z.line?z.ch:null,et==ie.line?ie.ch:null)),++et}),be.collapsed&&x.iter(z.line,ie.line+1,function(Rn){yr(x,Rn)&&Xr(Rn,0)}),be.clearOnEnter&&Gt(be,"beforeCursorEnter",function(){return be.clear()}),be.readOnly&&(wn(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),be.collapsed&&(be.id=++jl,be.atomic=!0),ot){if(bt&&(ot.curOp.updateMaxLine=!0),be.collapsed)Ai(ot,z.line,ie.line+1);else if(be.className||be.startStyle||be.endStyle||be.css||be.attributes||be.title)for(var yn=z.line;yn<=ie.line;yn++)ki(ot,yn,"text");be.atomic&&ha(ot.doc),rr(ot,"markerAdded",ot,be)}return be}var ol=function(x,z){this.markers=x,this.primary=z;for(var ie=0;ie<x.length;++ie)x[ie].parent=this};ol.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();rr(this,"clear")}},ol.prototype.find=function(x,z){return this.primary.find(x,z)},Sn(ol);function Ia(x,z,ie,re,oe){re=Xt(re),re.shared=!1;var be=[Yl(x,z,ie,re,oe)],Ne=be[0],et=re.widgetNode;return eo(x,function(ot){et&&(re.widgetNode=et.cloneNode(!0)),be.push(Yl(ot,zi(ot,z),zi(ot,ie),re,oe));for(var bt=0;bt<ot.linked.length;++bt)if(ot.linked[bt].isParent)return;Ne=un(be)}),new ol(be,Ne)}function Mo(x){return x.findMarks(Jn(x.first,0),x.clipPos(Jn(x.lastLine())),function(z){return z.parent})}function Ho(x,z){for(var ie=0;ie<z.length;ie++){var re=z[ie],oe=re.find(),be=x.clipPos(oe.from),Ne=x.clipPos(oe.to);if(Jr(be,Ne)){var et=Yl(x,be,Ne,re.primary,re.primary.type);re.markers.push(et),et.parent=re}}}function Ga(x){for(var z=function(re){var oe=x[re],be=[oe.primary.doc];eo(oe.primary.doc,function(ot){return be.push(ot)});for(var Ne=0;Ne<oe.markers.length;Ne++){var et=oe.markers[Ne];St(be,et.doc)==-1&&(et.parent=null,oe.markers.splice(Ne--,1))}},ie=0;ie<x.length;ie++)z(ie)}var Ul=0,Aa=function(x,z,ie,re,oe){if(!(this instanceof Aa))return new Aa(x,z,ie,re,oe);ie==null&&(ie=0),ds.call(this,[new Ml([new hr("",null)])]),this.first=ie,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ie;var be=Jn(ie,0);this.sel=Xs(be),this.history=new as(null),this.id=++Ul,this.modeOption=z,this.lineSep=re,this.direction=oe=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),oa(this,{from:be,to:be,text:x}),Ci(this,Xs(be),ht)};Aa.prototype=he(ds.prototype,{constructor:Aa,iter:function(x,z,ie){ie?this.iterN(x-this.first,z-x,ie):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ie=0,re=0;re<z.length;++re)ie+=z[re].height;this.insertInner(x-this.first,z,ie)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=gi(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:go(function(x){var z=Jn(this.first,0),ie=this.first+this.size-1;Fi(this,{from:z,to:Jn(ie,Hn(this,ie).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&wa(this.cm,0,0),Ci(this,Xs(z),ht)}),replaceRange:function(x,z,ie,re){z=zi(this,z),ie=ie?zi(this,ie):z,Do(this,x,z,ie,re)},getRange:function(x,z,ie){var re=Mr(this,zi(this,x),zi(this,z));return ie===!1?re:re.join(ie||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(ci(this,x))return Hn(this,x)},getLineNumber:function(x){return Gr(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Hn(this,x)),Ct(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return zi(this,x)},getCursor:function(x){var z=this.sel.primary(),ie;return x==null||x=="head"?ie=z.head:x=="anchor"?ie=z.anchor:x=="end"||x=="to"||x===!1?ie=z.to():ie=z.from(),ie},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:go(function(x,z,ie){hi(this,zi(this,typeof x=="number"?Jn(x,z||0):x),null,ie)}),setSelection:go(function(x,z,ie){hi(this,zi(this,x),zi(this,z||x),ie)}),extendSelection:go(function(x,z,ie){Tr(this,zi(this,x),z&&zi(this,z),ie)}),extendSelections:go(function(x,z){Nn(this,_r(this,x),z)}),extendSelectionsBy:go(function(x,z){var ie=Wn(this.sel.ranges,x);Nn(this,_r(this,ie),z)}),setSelections:go(function(x,z,ie){if(x.length){for(var re=[],oe=0;oe<x.length;oe++)re[oe]=new Ll(zi(this,x[oe].anchor),zi(this,x[oe].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Ci(this,bs(this.cm,re,z),ie)}}),addSelection:go(function(x,z,ie){var re=this.sel.ranges.slice(0);re.push(new Ll(zi(this,x),zi(this,z||x))),Ci(this,bs(this.cm,re,re.length-1),ie)}),getSelection:function(x){for(var z=this.sel.ranges,ie,re=0;re<z.length;re++){var oe=Mr(this,z[re].from(),z[re].to());ie=ie?ie.concat(oe):oe}return x===!1?ie:ie.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ie=this.sel.ranges,re=0;re<ie.length;re++){var oe=Mr(this,ie[re].from(),ie[re].to());x!==!1&&(oe=oe.join(x||this.lineSeparator())),z[re]=oe}return z},replaceSelection:function(x,z,ie){for(var re=[],oe=0;oe<this.sel.ranges.length;oe++)re[oe]=x;this.replaceSelections(re,z,ie||"+input")},replaceSelections:go(function(x,z,ie){for(var re=[],oe=this.sel,be=0;be<oe.ranges.length;be++){var Ne=oe.ranges[be];re[be]={from:Ne.from(),to:Ne.to(),text:this.splitLines(x[be]),origin:ie}}for(var et=z&&z!="end"&&Js(this,re,z),ot=re.length-1;ot>=0;ot--)Fi(this,re[ot]);et?Hi(this,et):this.cm&&lo(this.cm)}),undo:go(function(){Ri(this,"undo")}),redo:go(function(){Ri(this,"redo")}),undoSelection:go(function(){Ri(this,"undo",!0)}),redoSelection:go(function(){Ri(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ie=0,re=0;re<x.done.length;re++)x.done[re].ranges||++z;for(var oe=0;oe<x.undone.length;oe++)x.undone[oe].ranges||++ie;return{undo:z,redo:ie}},clearHistory:function(){var x=this;this.history=new as(this.history.maxGeneration),eo(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:Zn(this.history.done),undone:Zn(this.history.undone)}},setHistory:function(x){var z=this.history=new as(this.history.maxGeneration);z.done=Zn(x.done.slice(0),null,!0),z.undone=Zn(x.undone.slice(0),null,!0)},setGutterMarker:go(function(x,z,ie){return Nl(this,x,"gutter",function(re){var oe=re.gutterMarkers||(re.gutterMarkers={});return oe[z]=ie,!ie&&le(oe)&&(re.gutterMarkers=null),!0})}),clearGutter:go(function(x){var z=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[x]&&Nl(z,ie,"gutter",function(){return ie.gutterMarkers[x]=null,le(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!ci(this,x)||(z=x,x=Hn(this,x),!x))return null}else if(z=Gr(x),z==null)return null;return{line:z,handle:x,text:x.text,gutterMarkers:x.gutterMarkers,textClass:x.textClass,bgClass:x.bgClass,wrapClass:x.wrapClass,widgets:x.widgets}},addLineClass:go(function(x,z,ie){return Nl(this,x,z=="gutter"?"gutter":"class",function(re){var oe=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!re[oe])re[oe]=ie;else{if(ye(ie).test(re[oe]))return!1;re[oe]+=" "+ie}return!0})}),removeLineClass:go(function(x,z,ie){return Nl(this,x,z=="gutter"?"gutter":"class",function(re){var oe=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",be=re[oe];if(be)if(ie==null)re[oe]=null;else{var Ne=be.match(ye(ie));if(!Ne)return!1;var et=Ne.index+Ne[0].length;re[oe]=be.slice(0,Ne.index)+(!Ne.index||et==be.length?"":" ")+be.slice(et)||null}else return!1;return!0})}),addLineWidget:go(function(x,z,ie){return _s(this,x,z,ie)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ie){return Yl(this,zi(this,x),zi(this,z),ie,ie&&ie.type||"range")},setBookmark:function(x,z){var ie={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=zi(this,x),Yl(this,x,x,ie,"bookmark")},findMarksAt:function(x){x=zi(this,x);var z=[],ie=Hn(this,x.line).markedSpans;if(ie)for(var re=0;re<ie.length;++re){var oe=ie[re];(oe.from==null||oe.from<=x.ch)&&(oe.to==null||oe.to>=x.ch)&&z.push(oe.marker.parent||oe.marker)}return z},findMarks:function(x,z,ie){x=zi(this,x),z=zi(this,z);var re=[],oe=x.line;return this.iter(x.line,z.line+1,function(be){var Ne=be.markedSpans;if(Ne)for(var et=0;et<Ne.length;et++){var ot=Ne[et];!(ot.to!=null&&oe==x.line&&x.ch>=ot.to||ot.from==null&&oe!=x.line||ot.from!=null&&oe==z.line&&ot.from>=z.ch)&&(!ie||ie(ot.marker))&&re.push(ot.marker.parent||ot.marker)}++oe}),re},getAllMarks:function(){var x=[];return this.iter(function(z){var ie=z.markedSpans;if(ie)for(var re=0;re<ie.length;++re)ie[re].from!=null&&x.push(ie[re].marker)}),x},posFromIndex:function(x){var z,ie=this.first,re=this.lineSeparator().length;return this.iter(function(oe){var be=oe.text.length+re;if(be>x)return z=x,!0;x-=be,++ie}),zi(this,Jn(ie,z))},indexFromPos:function(x){x=zi(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ie=this.lineSeparator().length;return this.iter(this.first,x.line,function(re){z+=re.text.length+ie}),z},copy:function(x){var z=new Aa(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,x&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(x){x||(x={});var z=this.first,ie=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ie&&(ie=x.to);var re=new Aa(gi(this,z,ie),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(re.history=this.history),(this.linked||(this.linked=[])).push({doc:re,sharedHist:x.sharedHist}),re.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Ho(re,Mo(this)),re},unlinkDoc:function(x){if(x instanceof pl&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ie=this.linked[z];if(ie.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Ga(Mo(this));break}}if(x.history==this.history){var re=[x.id];eo(x,function(oe){return re.push(oe.id)},!0),x.history=new as(null),x.history.done=Zn(this.history.done,re),x.history.undone=Zn(this.history.undone,re)}},iterLinkedDocs:function(x){eo(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Kt(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:go(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&is(this.cm))})}),Aa.prototype.eachLine=Aa.prototype.iter;var cl=0;function Zl(x){var z=this;if(zs(z),!(Jt(z,x)||Ea(z.display,x))){or(x),xe&&(cl=+new Date);var ie=Sa(z,x,!0),re=x.dataTransfer.files;if(!(!ie||z.isReadOnly()))if(re&&re.length&&window.FileReader&&window.File)for(var oe=re.length,be=Array(oe),Ne=0,et=function(){++Ne==oe&&Ui(z,function(){ie=zi(z.doc,ie);var Cr={from:ie,to:ie,text:z.doc.splitLines(be.filter(function(vi){return vi!=null}).join(z.doc.lineSeparator())),origin:"paste"};Fi(z.doc,Cr),Hi(z.doc,Xs(zi(z.doc,ie),zi(z.doc,vu(Cr))))})()},ot=function(Cr,vi){if(z.options.allowDropFileTypes&&St(z.options.allowDropFileTypes,Cr.type)==-1){et();return}var ji=new FileReader;ji.onerror=function(){return et()},ji.onload=function(){var ma=ji.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ma)){et();return}be[vi]=ma,et()},ji.readAsText(Cr)},bt=0;bt<re.length;bt++)ot(re[bt],bt);else{if(z.state.draggingText&&z.doc.sel.contains(ie)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var yn=x.dataTransfer.getData("Text");if(yn){var Rn;if(z.state.draggingText&&!z.state.draggingText.copy&&(Rn=z.listSelections()),ea(z.doc,Xs(ie,ie)),Rn)for(var Dr=0;Dr<Rn.length;++Dr)Do(z.doc,"",Rn[Dr].anchor,Rn[Dr].head,"drag");z.replaceSelection(yn,"around","paste"),z.display.input.focus()}}catch(Cr){}}}}function _l(x,z){if(xe&&(!x.state.draggingText||+new Date-cl<100)){Lr(z);return}if(!(Jt(x,z)||Ea(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!Ue)){var ie=at("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",we&&(ie.width=ie.height=1,x.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),z.dataTransfer.setDragImage(ie,0,0),we&&ie.parentNode.removeChild(ie)}}function fu(x,z){var ie=Sa(x,z);if(ie){var re=document.createDocumentFragment();Pn(x,ie,re),x.display.dragCursor||(x.display.dragCursor=at("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),st(x.display.dragCursor,re)}}function zs(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function Su(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ie=[],re=0;re<z.length;re++){var oe=z[re].CodeMirror;oe&&ie.push(oe)}ie.length&&ie[0].operation(function(){for(var be=0;be<ie.length;be++)x(ie[be])})}}var Pi=!1;function Tu(){Pi||(Ps(),Pi=!0)}function Ps(){var x;Gt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,Su(gu)},100))}),Gt(window,"blur",function(){return Su(ni)})}function gu(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var xu={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"},Wl=0;Wl<10;Wl++)xu[Wl+48]=xu[Wl+96]=String(Wl);for(var Ql=65;Ql<=90;Ql++)xu[Ql]=String.fromCharCode(Ql);for(var hs=1;hs<=12;hs++)xu[hs+111]=xu[hs+63235]="F"+hs;var Sl={};Sl.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"},Sl.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"},Sl.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"},Sl.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"]},Sl.default=ge?Sl.macDefault:Sl.pcDefault;function Us(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ie,re,oe,be,Ne=0;Ne<z.length-1;Ne++){var et=z[Ne];if(/^(cmd|meta|m)$/i.test(et))be=!0;else if(/^a(lt)?$/i.test(et))ie=!0;else if(/^(c|ctrl|control)$/i.test(et))re=!0;else if(/^s(hift)?$/i.test(et))oe=!0;else throw new Error("Unrecognized modifier name: "+et)}return ie&&(x="Alt-"+x),re&&(x="Ctrl-"+x),be&&(x="Cmd-"+x),oe&&(x="Shift-"+x),x}function Fl(x){var z={};for(var ie in x)if(x.hasOwnProperty(ie)){var re=x[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(re=="..."){delete x[ie];continue}for(var oe=Wn(ie.split(" "),Us),be=0;be<oe.length;be++){var Ne=void 0,et=void 0;be==oe.length-1?(et=oe.join(" "),Ne=re):(et=oe.slice(0,be+1).join(" "),Ne="...");var ot=z[et];if(!ot)z[et]=Ne;else if(ot!=Ne)throw new Error("Inconsistent bindings for "+et)}delete x[ie]}for(var bt in z)x[bt]=z[bt];return x}function Ks(x,z,ie,re){z=Is(z);var oe=z.call?z.call(x,re):z[x];if(oe===!1)return"nothing";if(oe==="...")return"multi";if(oe!=null&&ie(oe))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Ks(x,z.fallthrough,ie,re);for(var be=0;be<z.fallthrough.length;be++){var Ne=Ks(x,z.fallthrough[be],ie,re);if(Ne)return Ne}}}function qs(x){var z=typeof x=="string"?x:xu[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function eu(x,z,ie){var re=x;return z.altKey&&re!="Alt"&&(x="Alt-"+x),(Oe?z.metaKey:z.ctrlKey)&&re!="Ctrl"&&(x="Ctrl-"+x),(Oe?z.ctrlKey:z.metaKey)&&re!="Mod"&&(x="Cmd-"+x),!ie&&z.shiftKey&&re!="Shift"&&(x="Shift-"+x),x}function wu(x,z){if(we&&x.keyCode==34&&x.char)return!1;var ie=xu[x.keyCode];return ie==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ie=x.code),eu(ie,x,z))}function Is(x){return typeof x=="string"?Sl[x]:x}function Au(x,z){for(var ie=x.doc.sel.ranges,re=[],oe=0;oe<ie.length;oe++){for(var be=z(ie[oe]);re.length&&Jr(be.from,un(re).to)<=0;){var Ne=re.pop();if(Jr(Ne.from,be.from)<0){be.from=Ne.from;break}}re.push(be)}Ii(x,function(){for(var et=re.length-1;et>=0;et--)Do(x.doc,"",re[et].from,re[et].to,"+delete");lo(x)})}function Fs(x,z,ie){var re=Nt(x.text,z+ie,ie);return re<0||re>x.text.length?null:re}function tu(x,z,ie){var re=Fs(x,z.ch,ie);return re==null?null:new Jn(z.line,re,ie<0?"after":"before")}function nu(x,z,ie,re,oe){if(x){z.doc.direction=="rtl"&&(oe=-oe);var be=Wt(ie,z.doc.direction);if(be){var Ne=oe<0?un(be):be[0],et=oe<0==(Ne.level==1),ot=et?"after":"before",bt;if(Ne.level>0||z.doc.direction=="rtl"){var yn=zo(z,ie);bt=oe<0?ie.text.length-1:0;var Rn=no(z,yn,bt).top;bt=tn(function(Dr){return no(z,yn,Dr).top==Rn},oe<0==(Ne.level==1)?Ne.from:Ne.to-1,bt),ot=="before"&&(bt=Fs(ie,bt,1))}else bt=oe<0?Ne.to:Ne.from;return new Jn(re,bt,ot)}}return new Jn(re,oe<0?ie.text.length:0,oe<0?"before":"after")}function Ns(x,z,ie,re){var oe=Wt(z,x.doc.direction);if(!oe)return tu(z,ie,re);ie.ch>=z.text.length?(ie.ch=z.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var be=dn(oe,ie.ch,ie.sticky),Ne=oe[be];if(x.doc.direction=="ltr"&&Ne.level%2==0&&(re>0?Ne.to>ie.ch:Ne.from<ie.ch))return tu(z,ie,re);var et=function(Wa,fo){return Fs(z,Wa instanceof Jn?Wa.ch:Wa,fo)},ot,bt=function(Wa){return x.options.lineWrapping?(ot=ot||zo(x,z),Xn(x,z,ot,Wa)):{begin:0,end:z.text.length}},yn=bt(ie.sticky=="before"?et(ie,-1):ie.ch);if(x.doc.direction=="rtl"||Ne.level==1){var Rn=Ne.level==1==re<0,Dr=et(ie,Rn?1:-1);if(Dr!=null&&(Rn?Dr<=Ne.to&&Dr<=yn.end:Dr>=Ne.from&&Dr>=yn.begin)){var Cr=Rn?"before":"after";return new Jn(ie.line,Dr,Cr)}}var vi=function(Wa,fo,Fa){for(var po=function(ws,Cu){return Cu?new Jn(ie.line,et(ws,1),"before"):new Jn(ie.line,ws,"after")};Wa>=0&&Wa<oe.length;Wa+=fo){var qo=oe[Wa],nl=fo>0==(qo.level!=1),Kl=nl?Fa.begin:et(Fa.end,-1);if(qo.from<=Kl&&Kl<qo.to||(Kl=nl?qo.from:et(qo.to,-1),Fa.begin<=Kl&&Kl<Fa.end))return po(Kl,nl)}},ji=vi(be+re,re,yn);if(ji)return ji;var ma=re>0?yn.end:et(yn.begin,-1);return ma!=null&&!(re>0&&ma==z.text.length)&&(ji=vi(re>0?0:oe.length-1,re,bt(ma)),ji)?ji:null}var Cs={selectAll:al,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),ht)},killLine:function(x){return Au(x,function(z){if(z.empty()){var ie=Hn(x.doc,z.head.line).text.length;return z.head.ch==ie&&z.head.line<x.lastLine()?{from:z.head,to:Jn(z.head.line+1,0)}:{from:z.head,to:Jn(z.head.line,ie)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Au(x,function(z){return{from:Jn(z.from().line,0),to:zi(x.doc,Jn(z.to().line+1,0))}})},delLineLeft:function(x){return Au(x,function(z){return{from:Jn(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Au(x,function(z){var ie=x.charCoords(z.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return{from:re,to:z.from()}})},delWrappedLineRight:function(x){return Au(x,function(z){var ie=x.charCoords(z.head,"div").top+5,re=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div");return{from:z.from(),to:re}})},undo:function(x){return x.undo()},redo:function(x){return x.redo()},undoSelection:function(x){return x.undoSelection()},redoSelection:function(x){return x.redoSelection()},goDocStart:function(x){return x.extendSelection(Jn(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Jn(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return vs(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return lc(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Wu(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ie=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ie},"div")},_t)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ie=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ie},"div")},_t)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ie=x.cursorCoords(z.head,"div").top+5,re=x.coordsChar({left:0,top:ie},"div");return re.ch<x.getLine(re.line).search(/\S/)?lc(x,z.head):re},_t)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ie=x.listSelections(),re=x.options.tabSize,oe=0;oe<ie.length;oe++){var be=ie[oe].from(),Ne=$e(x.getLine(be.line),be.ch,re);z.push(kt(re-Ne%re))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return Ii(x,function(){for(var z=x.listSelections(),ie=[],re=0;re<z.length;re++)if(z[re].empty()){var oe=z[re].head,be=Hn(x.doc,oe.line).text;if(be){if(oe.ch==be.length&&(oe=new Jn(oe.line,oe.ch-1)),oe.ch>0)oe=new Jn(oe.line,oe.ch+1),x.replaceRange(be.charAt(oe.ch-1)+be.charAt(oe.ch-2),Jn(oe.line,oe.ch-2),oe,"+transpose");else if(oe.line>x.doc.first){var Ne=Hn(x.doc,oe.line-1).text;Ne&&(oe=new Jn(oe.line,1),x.replaceRange(be.charAt(0)+x.doc.lineSeparator()+Ne.charAt(Ne.length-1),Jn(oe.line-1,Ne.length-1),oe,"+transpose"))}}ie.push(new Ll(oe,oe))}x.setSelections(ie)})},newlineAndIndent:function(x){return Ii(x,function(){for(var z=x.listSelections(),ie=z.length-1;ie>=0;ie--)x.replaceRange(x.doc.lineSeparator(),z[ie].anchor,z[ie].head,"+input");z=x.listSelections();for(var re=0;re<z.length;re++)x.indentLine(z[re].from().line,null,!0);lo(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function vs(x,z){var ie=Hn(x.doc,z),re=Ct(ie);return re!=ie&&(z=Gr(re)),nu(!0,x,re,z,1)}function Wu(x,z){var ie=Hn(x.doc,z),re=wt(ie);return re!=ie&&(z=Gr(re)),nu(!0,x,ie,z,-1)}function lc(x,z){var ie=vs(x,z.line),re=Hn(x.doc,ie.line),oe=Wt(re,x.doc.direction);if(!oe||oe[0].level==0){var be=Math.max(ie.ch,re.text.search(/\S/)),Ne=z.line==ie.line&&z.ch<=be&&z.ch;return Jn(ie.line,Ne?0:be,ie.sticky)}return ie}function xs(x,z,ie){if(typeof z=="string"&&(z=Cs[z],!z))return!1;x.display.input.ensurePolled();var re=x.display.shift,oe=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ie&&(x.display.shift=!1),oe=z(x)!=Rt}finally{x.display.shift=re,x.state.suppressEdits=!1}return oe}function hu(x,z,ie){for(var re=0;re<x.state.keyMaps.length;re++){var oe=Ks(z,x.state.keyMaps[re],ie,x);if(oe)return oe}return x.options.extraKeys&&Ks(z,x.options.extraKeys,ie,x)||Ks(z,x.options.keyMap,ie,x)}var Yc=new Be;function sc(x,z,ie,re){var oe=x.state.keySeq;if(oe){if(qs(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Yc.set(50,function(){x.state.keySeq==oe&&(x.state.keySeq=null,x.display.input.reset())}),Tl(x,oe+" "+z,ie,re))return!0}return Tl(x,z,ie,re)}function Tl(x,z,ie,re){var oe=hu(x,z,re);return oe=="multi"&&(x.state.keySeq=z),oe=="handled"&&rr(x,"keyHandled",x,z,ie),(oe=="handled"||oe=="multi")&&(or(ie),pr(x)),!!oe}function Oo(x,z){var ie=wu(z,!0);return ie?z.shiftKey&&!x.state.keySeq?sc(x,"Shift-"+ie,z,function(re){return xs(x,re,!0)})||sc(x,ie,z,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return xs(x,re)}):sc(x,ie,z,function(re){return xs(x,re)}):!1}function Zs(x,z,ie){return sc(x,"'"+ie+"'",z,function(re){return xs(x,re,!0)})}var ts=null;function ru(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=je(),!Jt(z,x))){xe&&Me<11&&x.keyCode==27&&(x.returnValue=!1);var ie=x.keyCode;z.display.shift=ie==16||x.shiftKey;var re=Oo(z,x);we&&(ts=re?ie:null,!re&&ie==88&&!nn&&(ge?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ee&&!ge&&!re&&ie==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&qr(z)}}function qr(x){var z=x.display.lineDiv;it(z,"CodeMirror-crosshair");function ie(re){(re.keyCode==18||!re.altKey)&&(ze(z,"CodeMirror-crosshair"),sr(document,"keyup",ie),sr(document,"mouseover",ie))}Gt(document,"keyup",ie),Gt(document,"mouseover",ie)}function Mu(x){x.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,x)}function Xu(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Ea(z.display,x)||Jt(z,x)||x.ctrlKey&&!x.altKey||ge&&x.metaKey)){var ie=x.keyCode,re=x.charCode;if(we&&ie==ts){ts=null,or(x);return}if(!(we&&(!x.which||x.which<10)&&Oo(z,x))){var oe=String.fromCharCode(re==null?ie:re);oe!="\b"&&(Zs(z,x,oe)||z.display.input.onKeyPress(x))}}}var Xc=400,cd=function(x,z,ie){this.time=x,this.pos=z,this.button=ie};cd.prototype.compare=function(x,z,ie){return this.time+Xc>x&&Jr(z,this.pos)==0&&ie==this.button};var Ju,Tc;function Id(x,z){var ie=+new Date;return Tc&&Tc.compare(ie,x,z)?(Ju=Tc=null,"triple"):Ju&&Ju.compare(ie,x,z)?(Tc=new cd(ie,x,z),Ju=null,"double"):(Ju=new cd(ie,x,z),Tc=null,"single")}function iu(x){var z=this,ie=z.display;if(!(Jt(z,x)||ie.activeTouch&&ie.input.supportsTouch())){if(ie.input.ensurePolled(),ie.shift=x.shiftKey,Ea(ie,x)){ue||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(!Eu(z,x)){var re=Sa(z,x),oe=Ir(x),be=re?Id(re,oe):"single";window.focus(),oe==1&&z.state.selectingText&&z.state.selectingText(x),!(re&&_u(z,oe,re,be,x))&&(oe==1?re?Jc(z,re,be,x):Qr(x)==ie.scroller&&or(x):oe==2?(re&&Tr(z.doc,re),setTimeout(function(){return ie.input.focus()},20)):oe==3&&(ve?z.display.input.onContextMenu(x):pi(z)))}}}function _u(x,z,ie,re,oe){var be="Click";return re=="double"?be="Double"+be:re=="triple"&&(be="Triple"+be),be=(z==1?"Left":z==2?"Middle":"Right")+be,sc(x,eu(be,oe),oe,function(Ne){if(typeof Ne=="string"&&(Ne=Cs[Ne]),!Ne)return!1;var et=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),et=Ne(x,ie)!=Rt}finally{x.state.suppressEdits=!1}return et})}function Rc(x,z,ie){var re=x.getOption("configureMouse"),oe=re?re(x,z,ie):{};if(oe.unit==null){var be=Ve?ie.shiftKey&&ie.metaKey:ie.altKey;oe.unit=be?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(oe.extend==null||x.doc.extend)&&(oe.extend=x.doc.extend||ie.shiftKey),oe.addNew==null&&(oe.addNew=ge?ie.metaKey:ie.ctrlKey),oe.moveOnDrag==null&&(oe.moveOnDrag=!(ge?ie.altKey:ie.ctrlKey)),oe}function Jc(x,z,ie,re){xe?setTimeout(Pt(qn,x),0):x.curOp.focus=je();var oe=Rc(x,ie,re),be=x.doc.sel,Ne;x.options.dragDrop&&Dn&&!x.isReadOnly()&&ie=="single"&&(Ne=be.contains(z))>-1&&(Jr((Ne=be.ranges[Ne]).from(),z)<0||z.xRel>0)&&(Jr(Ne.to(),z)>0||z.xRel<0)?Fd(x,re,z,oe):$c(x,re,z,oe)}function Fd(x,z,ie,re){var oe=x.display,be=!1,Ne=Ui(x,function(bt){ue&&(oe.scroller.draggable=!1),x.state.draggingText=!1,sr(oe.wrapper.ownerDocument,"mouseup",Ne),sr(oe.wrapper.ownerDocument,"mousemove",et),sr(oe.scroller,"dragstart",ot),sr(oe.scroller,"drop",Ne),be||(or(bt),re.addNew||Tr(x.doc,ie,null,null,re.extend),ue&&!Ue||xe&&Me==9?setTimeout(function(){oe.wrapper.ownerDocument.body.focus({preventScroll:!0}),oe.input.focus()},20):oe.input.focus())}),et=function(bt){be=be||Math.abs(z.clientX-bt.clientX)+Math.abs(z.clientY-bt.clientY)>=10},ot=function(){return be=!0};ue&&(oe.scroller.draggable=!0),x.state.draggingText=Ne,Ne.copy=!re.moveOnDrag,oe.scroller.dragDrop&&oe.scroller.dragDrop(),Gt(oe.wrapper.ownerDocument,"mouseup",Ne),Gt(oe.wrapper.ownerDocument,"mousemove",et),Gt(oe.scroller,"dragstart",ot),Gt(oe.scroller,"drop",Ne),pi(x),setTimeout(function(){return oe.input.focus()},20)}function Od(x,z,ie){if(ie=="char")return new Ll(z,z);if(ie=="word")return x.findWordAt(z);if(ie=="line")return new Ll(Jn(z.line,0),zi(x.doc,Jn(z.line+1,0)));var re=ie(x,z);return new Ll(re.from,re.to)}function $c(x,z,ie,re){var oe=x.display,be=x.doc;or(z);var Ne,et,ot=be.sel,bt=ot.ranges;if(re.addNew&&!re.extend?(et=be.sel.contains(ie),et>-1?Ne=bt[et]:Ne=new Ll(ie,ie)):(Ne=be.sel.primary(),et=be.sel.primIndex),re.unit=="rectangle")re.addNew||(Ne=new Ll(ie,ie)),ie=Sa(x,z,!0,!0),et=-1;else{var yn=Od(x,ie,re.unit);re.extend?Ne=xr(Ne,yn.anchor,yn.head,re.extend):Ne=yn}re.addNew?et==-1?(et=bt.length,Ci(be,bs(x,bt.concat([Ne]),et),{scroll:!1,origin:"*mouse"})):bt.length>1&&bt[et].empty()&&re.unit=="char"&&!re.extend?(Ci(be,bs(x,bt.slice(0,et).concat(bt.slice(et+1)),0),{scroll:!1,origin:"*mouse"}),ot=be.sel):oi(be,et,Ne,Bt):(et=0,Ci(be,new ys([Ne],0),Bt),ot=be.sel);var Rn=ie;function Dr(Fa){if(Jr(Rn,Fa)!=0)if(Rn=Fa,re.unit=="rectangle"){for(var po=[],qo=x.options.tabSize,nl=$e(Hn(be,ie.line).text,ie.ch,qo),Kl=$e(Hn(be,Fa.line).text,Fa.ch,qo),ws=Math.min(nl,Kl),Cu=Math.max(nl,Kl),Vs=Math.min(ie.line,Fa.line),zu=Math.min(x.lastLine(),Math.max(ie.line,Fa.line));Vs<=zu;Vs++){var Ku=Hn(be,Vs).text,pu=Fn(Ku,ws,qo);ws==Cu?po.push(new Ll(Jn(Vs,pu),Jn(Vs,pu))):Ku.length>pu&&po.push(new Ll(Jn(Vs,pu),Jn(Vs,Fn(Ku,Cu,qo))))}po.length||po.push(new Ll(ie,ie)),Ci(be,bs(x,ot.ranges.slice(0,et).concat(po),et),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Fa)}else{var Hu=Ne,Pl=Od(x,Fa,re.unit),au=Hu.anchor,Gs;Jr(Pl.anchor,au)>0?(Gs=Pl.head,au=qi(Hu.from(),Pl.anchor)):(Gs=Pl.anchor,au=Li(Hu.to(),Pl.head));var ou=ot.ranges.slice(0);ou[et]=_c(x,new Ll(zi(be,au),Gs)),Ci(be,bs(x,ou,et),Bt)}}var Cr=oe.wrapper.getBoundingClientRect(),vi=0;function ji(Fa){var po=++vi,qo=Sa(x,Fa,!0,re.unit=="rectangle");if(qo)if(Jr(qo,Rn)!=0){x.curOp.focus=je(),Dr(qo);var nl=ri(oe,be);(qo.line>=nl.to||qo.line<nl.from)&&setTimeout(Ui(x,function(){vi==po&&ji(Fa)}),150)}else{var Kl=Fa.clientY<Cr.top?-20:Fa.clientY>Cr.bottom?20:0;Kl&&setTimeout(Ui(x,function(){vi==po&&(oe.scroller.scrollTop+=Kl,ji(Fa))}),50)}}function ma(Fa){x.state.selectingText=!1,vi=1/0,Fa&&(or(Fa),oe.input.focus()),sr(oe.wrapper.ownerDocument,"mousemove",Wa),sr(oe.wrapper.ownerDocument,"mouseup",fo),be.history.lastSelOrigin=null}var Wa=Ui(x,function(Fa){Fa.buttons===0||!Ir(Fa)?ma(Fa):ji(Fa)}),fo=Ui(x,ma);x.state.selectingText=fo,Gt(oe.wrapper.ownerDocument,"mousemove",Wa),Gt(oe.wrapper.ownerDocument,"mouseup",fo)}function _c(x,z){var ie=z.anchor,re=z.head,oe=Hn(x.doc,ie.line);if(Jr(ie,re)==0&&ie.sticky==re.sticky)return z;var be=Wt(oe);if(!be)return z;var Ne=dn(be,ie.ch,ie.sticky),et=be[Ne];if(et.from!=ie.ch&&et.to!=ie.ch)return z;var ot=Ne+(et.from==ie.ch==(et.level!=1)?0:1);if(ot==0||ot==be.length)return z;var bt;if(re.line!=ie.line)bt=(re.line-ie.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var yn=dn(be,re.ch,re.sticky),Rn=yn-Ne||(re.ch-ie.ch)*(et.level==1?-1:1);yn==ot-1||yn==ot?bt=Rn<0:bt=Rn>0}var Dr=be[ot+(bt?-1:0)],Cr=bt==(Dr.level==1),vi=Cr?Dr.from:Dr.to,ji=Cr?"after":"before";return ie.ch==vi&&ie.sticky==ji?z:new Ll(new Jn(ie.line,vi,ji),re)}function Ec(x,z,ie,re){var oe,be;if(z.touches)oe=z.touches[0].clientX,be=z.touches[0].clientY;else try{oe=z.clientX,be=z.clientY}catch(Dr){return!1}if(oe>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;re&&or(z);var Ne=x.display,et=Ne.lineDiv.getBoundingClientRect();if(be>et.bottom||!Bn(x,ie))return kr(z);be-=et.top-Ne.viewOffset;for(var ot=0;ot<x.display.gutterSpecs.length;++ot){var bt=Ne.gutters.childNodes[ot];if(bt&&bt.getBoundingClientRect().right>=oe){var yn=di(x.doc,be),Rn=x.display.gutterSpecs[ot];return Dt(x,ie,x,yn,Rn.className,z),kr(z)}}}function Eu(x,z){return Ec(x,z,"gutterClick",!0)}function ec(x,z){Ea(x.display,z)||dd(x,z)||Jt(x,z,"contextmenu")||ve||x.display.input.onContextMenu(z)}function dd(x,z){return Bn(x,"gutterContextMenu")?Ec(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ya(x)}var uc={toString:function(){return"CodeMirror.Init"}},Nd={},zc={};function qc(x){var z=x.optionHandlers;function ie(re,oe,be,Ne){x.defaults[re]=oe,be&&(z[re]=Ne?function(et,ot,bt){bt!=uc&&be(et,ot,bt)}:be)}x.defineOption=ie,x.Init=uc,ie("value","",function(re,oe){return re.setValue(oe)},!0),ie("mode",null,function(re,oe){re.doc.modeOption=oe,Ds(re)},!0),ie("indentUnit",2,Ds,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(re){$s(re),Ya(re),Ai(re)},!0),ie("lineSeparator",null,function(re,oe){if(re.doc.lineSep=oe,!!oe){var be=[],Ne=re.doc.first;re.doc.iter(function(ot){for(var bt=0;;){var yn=ot.text.indexOf(oe,bt);if(yn==-1)break;bt=yn+oe.length,be.push(Jn(Ne,yn))}Ne++});for(var et=be.length-1;et>=0;et--)Do(re.doc,oe,be[et],Jn(be[et].line,be[et].ch+oe.length))}}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,oe,be){re.state.specialChars=new RegExp(oe.source+(oe.test(" ")?"":"| "),"g"),be!=uc&&re.refresh()}),ie("specialCharPlaceholder",pt,function(re){return re.refresh()},!0),ie("electricChars",!0),ie("inputStyle",_e?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ie("spellcheck",!1,function(re,oe){return re.getInputField().spellcheck=oe},!0),ie("autocorrect",!1,function(re,oe){return re.getInputField().autocorrect=oe},!0),ie("autocapitalize",!1,function(re,oe){return re.getInputField().autocapitalize=oe},!0),ie("rtlMoveVisually",!lt),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(re){fd(re),us(re)},!0),ie("keyMap","default",function(re,oe,be){var Ne=Is(oe),et=be!=uc&&Is(be);et&&et.detach&&et.detach(re,Ne),Ne.attach&&Ne.attach(re,et||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,ed,!0),ie("gutters",[],function(re,oe){re.display.gutterSpecs=Bs(oe,re.options.lineNumbers),us(re)},!0),ie("fixedGutter",!0,function(re,oe){re.display.gutters.style.left=oe?Qo(re.display)+"px":"0",re.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(re){return Io(re)},!0),ie("scrollbarStyle","native",function(re){Yo(re),Io(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(re,oe){re.display.gutterSpecs=Bs(re.options.gutters,oe),us(re)},!0),ie("firstLineNumber",1,us,!0),ie("lineNumberFormatter",function(re){return re},us,!0),ie("showCursorWhenSelecting",!1,Ot,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(re,oe){oe=="nocursor"&&(ni(re),re.display.input.blur()),re.display.input.readOnlyChanged(oe)}),ie("screenReaderLabel",null,function(re,oe){oe=oe===""?null:oe,re.display.input.screenReaderLabelChanged(oe)}),ie("disableInput",!1,function(re,oe){oe||re.display.input.reset()},!0),ie("dragDrop",!0,hd),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,Ot,!0),ie("singleCursorHeightPerLine",!0,Ot,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,$s,!0),ie("addModeClass",!1,$s,!0),ie("pollInterval",100),ie("undoDepth",200,function(re,oe){return re.doc.history.undoDepth=oe}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(re){return re.refresh()},!0),ie("maxHighlightLength",1e4,$s,!0),ie("moveInputWithCursor",!0,function(re,oe){oe||re.display.input.resetPosition()}),ie("tabindex",null,function(re,oe){return re.display.input.getField().tabIndex=oe||""}),ie("autofocus",null),ie("direction","ltr",function(re,oe){return re.doc.setDirection(oe)},!0),ie("phrases",null)}function hd(x,z,ie){var re=ie&&ie!=uc;if(!z!=!re){var oe=x.display.dragFunctions,be=z?Gt:sr;be(x.display.scroller,"dragstart",oe.start),be(x.display.scroller,"dragenter",oe.enter),be(x.display.scroller,"dragover",oe.over),be(x.display.scroller,"dragleave",oe.leave),be(x.display.scroller,"drop",oe.drop)}}function ed(x){x.options.lineWrapping?(it(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(ze(x.display.wrapper,"CodeMirror-wrap"),On(x)),xi(x),Ai(x),Ya(x),setTimeout(function(){return Io(x)},100)}function pl(x,z){var ie=this;if(!(this instanceof pl))return new pl(x,z);this.options=z=z?Xt(z):{},Xt(Nd,z,!1);var re=z.value;typeof re=="string"?re=new Aa(re,z.mode,null,z.lineSeparator,z.direction):z.mode&&(re.modeOption=z.mode),this.doc=re;var oe=new pl.inputStyles[z.inputStyle](this),be=this.display=new js(x,re,oe,z);be.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yo(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 Be,keySeq:null,specialChars:null},z.autofocus&&!_e&&be.input.focus(),xe&&Me<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),Ld(this),Tu(),ai(this),this.curOp.forceUpdate=!0,Bo(this,re),z.autofocus&&!_e||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&ei(ie)},20):ni(this);for(var Ne in zc)zc.hasOwnProperty(Ne)&&zc[Ne](this,z[Ne],uc);ql(this),z.finishInit&&z.finishInit(this);for(var et=0;et<td.length;++et)td[et](this);ba(this),ue&&z.lineWrapping&&getComputedStyle(be.lineDiv).textRendering=="optimizelegibility"&&(be.lineDiv.style.textRendering="auto")}pl.defaults=Nd,pl.optionHandlers=zc;function Ld(x){var z=x.display;Gt(z.scroller,"mousedown",Ui(x,iu)),xe&&Me<11?Gt(z.scroller,"dblclick",Ui(x,function(ot){if(!Jt(x,ot)){var bt=Sa(x,ot);if(!(!bt||Eu(x,ot)||Ea(x.display,ot))){or(ot);var yn=x.findWordAt(bt);Tr(x.doc,yn.anchor,yn.head)}}})):Gt(z.scroller,"dblclick",function(ot){return Jt(x,ot)||or(ot)}),Gt(z.scroller,"contextmenu",function(ot){return ec(x,ot)}),Gt(z.input.getField(),"contextmenu",function(ot){z.scroller.contains(ot.target)||ec(x,ot)});var ie,re={end:0};function oe(){z.activeTouch&&(ie=setTimeout(function(){return z.activeTouch=null},1e3),re=z.activeTouch,re.end=+new Date)}function be(ot){if(ot.touches.length!=1)return!1;var bt=ot.touches[0];return bt.radiusX<=1&&bt.radiusY<=1}function Ne(ot,bt){if(bt.left==null)return!0;var yn=bt.left-ot.left,Rn=bt.top-ot.top;return yn*yn+Rn*Rn>20*20}Gt(z.scroller,"touchstart",function(ot){if(!Jt(x,ot)&&!be(ot)&&!Eu(x,ot)){z.input.ensurePolled(),clearTimeout(ie);var bt=+new Date;z.activeTouch={start:bt,moved:!1,prev:bt-re.end<=300?re:null},ot.touches.length==1&&(z.activeTouch.left=ot.touches[0].pageX,z.activeTouch.top=ot.touches[0].pageY)}}),Gt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Gt(z.scroller,"touchend",function(ot){var bt=z.activeTouch;if(bt&&!Ea(z,ot)&&bt.left!=null&&!bt.moved&&new Date-bt.start<300){var yn=x.coordsChar(z.activeTouch,"page"),Rn;!bt.prev||Ne(bt,bt.prev)?Rn=new Ll(yn,yn):!bt.prev.prev||Ne(bt,bt.prev.prev)?Rn=x.findWordAt(yn):Rn=new Ll(Jn(yn.line,0),zi(x.doc,Jn(yn.line+1,0))),x.setSelection(Rn.anchor,Rn.head),x.focus(),or(ot)}oe()}),Gt(z.scroller,"touchcancel",oe),Gt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Xi(x,z.scroller.scrollTop),So(x,z.scroller.scrollLeft,!0),Dt(x,"scroll",x))}),Gt(z.scroller,"mousewheel",function(ot){return Fu(x,ot)}),Gt(z.scroller,"DOMMouseScroll",function(ot){return Fu(x,ot)}),Gt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(ot){Jt(x,ot)||Lr(ot)},over:function(ot){Jt(x,ot)||(fu(x,ot),Lr(ot))},start:function(ot){return _l(x,ot)},drop:Ui(x,Zl),leave:function(ot){Jt(x,ot)||zs(x)}};var et=z.input.getField();Gt(et,"keyup",function(ot){return Mu.call(x,ot)}),Gt(et,"keydown",Ui(x,ru)),Gt(et,"keypress",Ui(x,Xu)),Gt(et,"focus",function(ot){return ei(x,ot)}),Gt(et,"blur",function(ot){return ni(x,ot)})}var td=[];pl.defineInitHook=function(x){return td.push(x)};function ju(x,z,ie,re){var oe=x.doc,be;ie==null&&(ie="add"),ie=="smart"&&(oe.mode.indent?be=Po(x,z).state:ie="prev");var Ne=x.options.tabSize,et=Hn(oe,z),ot=$e(et.text,null,Ne);et.stateAfter&&(et.stateAfter=null);var bt=et.text.match(/^\s*/)[0],yn;if(!re&&!/\S/.test(et.text))yn=0,ie="not";else if(ie=="smart"&&(yn=oe.mode.indent(be,et.text.slice(bt.length),et.text),yn==Rt||yn>150)){if(!re)return;ie="prev"}ie=="prev"?z>oe.first?yn=$e(Hn(oe,z-1).text,null,Ne):yn=0:ie=="add"?yn=ot+x.options.indentUnit:ie=="subtract"?yn=ot-x.options.indentUnit:typeof ie=="number"&&(yn=ot+ie),yn=Math.max(0,yn);var Rn="",Dr=0;if(x.options.indentWithTabs)for(var Cr=Math.floor(yn/Ne);Cr;--Cr)Dr+=Ne,Rn+=" ";if(Dr<yn&&(Rn+=kt(yn-Dr)),Rn!=bt)return Do(oe,Rn,Jn(z,0),Jn(z,bt.length),"+input"),et.stateAfter=null,!0;for(var vi=0;vi<oe.sel.ranges.length;vi++){var ji=oe.sel.ranges[vi];if(ji.head.line==z&&ji.head.ch<bt.length){var ma=Jn(z,bt.length);oi(oe,vi,new Ll(ma,ma));break}}}var Gu=null;function tc(x){Gu=x}function Kc(x,z,ie,re,oe){var be=x.doc;x.display.shift=!1,re||(re=be.sel);var Ne=+new Date-200,et=oe=="paste"||x.state.pasteIncoming>Ne,ot=Kt(z),bt=null;if(et&&re.ranges.length>1)if(Gu&&Gu.text.join(`
`)==z){if(re.ranges.length%Gu.text.length==0){bt=[];for(var yn=0;yn<Gu.text.length;yn++)bt.push(be.splitLines(Gu.text[yn]))}}else ot.length==re.ranges.length&&x.options.pasteLinesPerSelection&&(bt=Wn(ot,function(Wa){return[Wa]}));for(var Rn=x.curOp.updateInput,Dr=re.ranges.length-1;Dr>=0;Dr--){var Cr=re.ranges[Dr],vi=Cr.from(),ji=Cr.to();Cr.empty()&&(ie&&ie>0?vi=Jn(vi.line,vi.ch-ie):x.state.overwrite&&!et?ji=Jn(ji.line,Math.min(Hn(be,ji.line).text.length,ji.ch+un(ot).length)):et&&Gu&&Gu.lineWise&&Gu.text.join(`
`)==ot.join(`
`)&&(vi=ji=Jn(vi.line,0)));var ma={from:vi,to:ji,text:bt?bt[Dr%bt.length]:ot,origin:oe||(et?"paste":x.state.cutIncoming>Ne?"cut":"+input")};Fi(x.doc,ma),rr(x,"inputRead",x,ma)}z&&!et&&Hc(x,z),lo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Rn),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function nd(x,z){var ie=x.clipboardData&&x.clipboardData.getData("Text");if(ie)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&Ii(z,function(){return Kc(z,ie,0,null,"paste")}),!0}function Hc(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ie=x.doc.sel,re=ie.ranges.length-1;re>=0;re--){var oe=ie.ranges[re];if(!(oe.head.ch>100||re&&ie.ranges[re-1].head.line==oe.head.line)){var be=x.getModeAt(oe.head),Ne=!1;if(be.electricChars){for(var et=0;et<be.electricChars.length;et++)if(z.indexOf(be.electricChars.charAt(et))>-1){Ne=ju(x,oe.head.line,"smart");break}}else be.electricInput&&be.electricInput.test(Hn(x.doc,oe.head.line).text.slice(0,oe.head.ch))&&(Ne=ju(x,oe.head.line,"smart"));Ne&&rr(x,"electricInput",x,oe.head.line)}}}function vc(x){for(var z=[],ie=[],re=0;re<x.doc.sel.ranges.length;re++){var oe=x.doc.sel.ranges[re].head.line,be={anchor:Jn(oe,0),head:Jn(oe+1,0)};ie.push(be),z.push(x.getRange(be.anchor,be.head))}return{text:z,ranges:ie}}function Td(x,z,ie,re){x.setAttribute("autocorrect",ie?"":"off"),x.setAttribute("autocapitalize",re?"":"off"),x.setAttribute("spellcheck",!!z)}function Xl(){var x=at("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=at("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ue?x.style.width="1000px":x.setAttribute("wrap","off"),rt&&(x.style.border="1px solid black"),Td(x),z}function ms(x){var z=x.optionHandlers,ie=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(re,oe){var be=this.options,Ne=be[re];be[re]==oe&&re!="mode"||(be[re]=oe,z.hasOwnProperty(re)&&Ui(this,z[re])(this,oe,Ne),Dt(this,"optionChange",this,re))},getOption:function(re){return this.options[re]},getDoc:function(){return this.doc},addKeyMap:function(re,oe){this.state.keyMaps[oe?"push":"unshift"](Is(re))},removeKeyMap:function(re){for(var oe=this.state.keyMaps,be=0;be<oe.length;++be)if(oe[be]==re||oe[be].name==re)return oe.splice(be,1),!0},addOverlay:Ba(function(re,oe){var be=re.token?re:x.getMode(this.options,re);if(be.startState)throw new Error("Overlays may not be stateful.");An(this.state.overlays,{mode:be,modeSpec:re,opaque:oe&&oe.opaque,priority:oe&&oe.priority||0},function(Ne){return Ne.priority}),this.state.modeGen++,Ai(this)}),removeOverlay:Ba(function(re){for(var oe=this.state.overlays,be=0;be<oe.length;++be){var Ne=oe[be].modeSpec;if(Ne==re||typeof re=="string"&&Ne.name==re){oe.splice(be,1),this.state.modeGen++,Ai(this);return}}}),indentLine:Ba(function(re,oe,be){typeof oe!="string"&&typeof oe!="number"&&(oe==null?oe=this.options.smartIndent?"smart":"prev":oe=oe?"add":"subtract"),ci(this.doc,re)&&ju(this,re,oe,be)}),indentSelection:Ba(function(re){for(var oe=this.doc.sel.ranges,be=-1,Ne=0;Ne<oe.length;Ne++){var et=oe[Ne];if(et.empty())et.head.line>be&&(ju(this,et.head.line,re,!0),be=et.head.line,Ne==this.doc.sel.primIndex&&lo(this));else{var ot=et.from(),bt=et.to(),yn=Math.max(be,ot.line);be=Math.min(this.lastLine(),bt.line-(bt.ch?0:1))+1;for(var Rn=yn;Rn<be;++Rn)ju(this,Rn,re);var Dr=this.doc.sel.ranges;ot.ch==0&&oe.length==Dr.length&&Dr[Ne].from().ch>0&&oi(this.doc,Ne,new Ll(ot,Dr[Ne].to()),ht)}}}),getTokenAt:function(re,oe){return vl(this,re,oe)},getLineTokens:function(re,oe){return vl(this,Jn(re),oe,!0)},getTokenTypeAt:function(re){re=zi(this.doc,re);var oe=jo(this,Hn(this.doc,re.line)),be=0,Ne=(oe.length-1)/2,et=re.ch,ot;if(et==0)ot=oe[2];else for(;;){var bt=be+Ne>>1;if((bt?oe[bt*2-1]:0)>=et)Ne=bt;else if(oe[bt*2+1]<et)be=bt+1;else{ot=oe[bt*2+2];break}}var yn=ot?ot.indexOf("overlay "):-1;return yn<0?ot:yn==0?null:ot.slice(0,yn-1)},getModeAt:function(re){var oe=this.doc.mode;return oe.innerMode?x.innerMode(oe,this.getTokenAt(re).state).mode:oe},getHelper:function(re,oe){return this.getHelpers(re,oe)[0]},getHelpers:function(re,oe){var be=[];if(!ie.hasOwnProperty(oe))return be;var Ne=ie[oe],et=this.getModeAt(re);if(typeof et[oe]=="string")Ne[et[oe]]&&be.push(Ne[et[oe]]);else if(et[oe])for(var ot=0;ot<et[oe].length;ot++){var bt=Ne[et[oe][ot]];bt&&be.push(bt)}else et.helperType&&Ne[et.helperType]?be.push(Ne[et.helperType]):Ne[et.name]&&be.push(Ne[et.name]);for(var yn=0;yn<Ne._global.length;yn++){var Rn=Ne._global[yn];Rn.pred(et,this)&&St(be,Rn.val)==-1&&be.push(Rn.val)}return be},getStateAfter:function(re,oe){var be=this.doc;return re=$a(be,re==null?be.first+be.size-1:re),Po(this,re+1,oe).state},cursorCoords:function(re,oe){var be,Ne=this.doc.sel.primary();return re==null?be=Ne.head:typeof re=="object"?be=zi(this.doc,re):be=re?Ne.from():Ne.to(),Bl(this,be,oe||"page")},charCoords:function(re,oe){return Al(this,zi(this.doc,re),oe||"page")},coordsChar:function(re,oe){return re=El(this,re,oe||"page"),rn(this,re.left,re.top)},lineAtHeight:function(re,oe){return re=El(this,{top:re,left:0},oe||"page").top,di(this.doc,re+this.display.viewOffset)},heightAtLine:function(re,oe,be){var Ne=!1,et;if(typeof re=="number"){var ot=this.doc.first+this.doc.size-1;re<this.doc.first?re=this.doc.first:re>ot&&(re=ot,Ne=!0),et=Hn(this.doc,re)}else et=re;return il(this,et,{top:0,left:0},oe||"page",be||Ne).top+(Ne?this.doc.height-Qn(et):0)},defaultTextHeight:function(){return Pa(this.display)},defaultCharWidth:function(){return fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,oe,be,Ne,et){var ot=this.display;re=Bl(this,zi(this.doc,re));var bt=re.bottom,yn=re.left;if(oe.style.position="absolute",oe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(oe),ot.sizer.appendChild(oe),Ne=="over")bt=re.top;else if(Ne=="above"||Ne=="near"){var Rn=Math.max(ot.wrapper.clientHeight,this.doc.height),Dr=Math.max(ot.sizer.clientWidth,ot.lineSpace.clientWidth);(Ne=="above"||re.bottom+oe.offsetHeight>Rn)&&re.top>oe.offsetHeight?bt=re.top-oe.offsetHeight:re.bottom+oe.offsetHeight<=Rn&&(bt=re.bottom),yn+oe.offsetWidth>Dr&&(yn=Dr-oe.offsetWidth)}oe.style.top=bt+"px",oe.style.left=oe.style.right="",et=="right"?(yn=ot.sizer.clientWidth-oe.offsetWidth,oe.style.right="0px"):(et=="left"?yn=0:et=="middle"&&(yn=(ot.sizer.clientWidth-oe.offsetWidth)/2),oe.style.left=yn+"px"),be&&Ua(this,{left:yn,top:bt,right:yn+oe.offsetWidth,bottom:bt+oe.offsetHeight})},triggerOnKeyDown:Ba(ru),triggerOnKeyPress:Ba(Xu),triggerOnKeyUp:Mu,triggerOnMouseDown:Ba(iu),execCommand:function(re){if(Cs.hasOwnProperty(re))return Cs[re].call(null,this)},triggerElectric:Ba(function(re){Hc(this,re)}),findPosH:function(re,oe,be,Ne){var et=1;oe<0&&(et=-1,oe=-oe);for(var ot=zi(this.doc,re),bt=0;bt<oe&&(ot=Ou(this.doc,ot,et,be,Ne),!ot.hitSide);++bt);return ot},moveH:Ba(function(re,oe){var be=this;this.extendSelectionsBy(function(Ne){return be.display.shift||be.doc.extend||Ne.empty()?Ou(be.doc,Ne.head,re,oe,be.options.rtlMoveVisually):re<0?Ne.from():Ne.to()},_t)}),deleteH:Ba(function(re,oe){var be=this.doc.sel,Ne=this.doc;be.somethingSelected()?Ne.replaceSelection("",null,"+delete"):Au(this,function(et){var ot=Ou(Ne,et.head,re,oe,!1);return re<0?{from:ot,to:et.head}:{from:et.head,to:ot}})}),findPosV:function(re,oe,be,Ne){var et=1,ot=Ne;oe<0&&(et=-1,oe=-oe);for(var bt=zi(this.doc,re),yn=0;yn<oe;++yn){var Rn=Bl(this,bt,"div");if(ot==null?ot=Rn.left:Rn.left=ot,bt=nc(this,Rn,et,be),bt.hitSide)break}return bt},moveV:Ba(function(re,oe){var be=this,Ne=this.doc,et=[],ot=!this.display.shift&&!Ne.extend&&Ne.sel.somethingSelected();if(Ne.extendSelectionsBy(function(yn){if(ot)return re<0?yn.from():yn.to();var Rn=Bl(be,yn.head,"div");yn.goalColumn!=null&&(Rn.left=yn.goalColumn),et.push(Rn.left);var Dr=nc(be,Rn,re,oe);return oe=="page"&&yn==Ne.sel.primary()&&za(be,Al(be,Dr,"div").top-Rn.top),Dr},_t),et.length)for(var bt=0;bt<Ne.sel.ranges.length;bt++)Ne.sel.ranges[bt].goalColumn=et[bt]}),findWordAt:function(re){var oe=this.doc,be=Hn(oe,re.line).text,Ne=re.ch,et=re.ch;if(be){var ot=this.getHelper(re,"wordChars");(re.sticky=="before"||et==be.length)&&Ne?--Ne:++et;for(var bt=be.charAt(Ne),yn=pe(bt,ot)?function(Rn){return pe(Rn,ot)}:/\s/.test(bt)?function(Rn){return/\s/.test(Rn)}:function(Rn){return!/\s/.test(Rn)&&!pe(Rn)};Ne>0&&yn(be.charAt(Ne-1));)--Ne;for(;et<be.length&&yn(be.charAt(et));)++et}return new Ll(Jn(re.line,Ne),Jn(re.line,et))},toggleOverwrite:function(re){re!=null&&re==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?it(this.display.cursorDiv,"CodeMirror-overwrite"):ze(this.display.cursorDiv,"CodeMirror-overwrite"),Dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==je()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ba(function(re,oe){wa(this,re,oe)}),getScrollInfo:function(){var re=this.display.scroller;return{left:re.scrollLeft,top:re.scrollTop,height:re.scrollHeight-Ca(this)-this.display.barHeight,width:re.scrollWidth-Ca(this)-this.display.barWidth,clientHeight:ja(this),clientWidth:Qi(this)}},scrollIntoView:Ba(function(re,oe){re==null?(re={from:this.doc.sel.primary().head,to:null},oe==null&&(oe=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Jn(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=oe||0,re.from.line!=null?Ka(this,re):Vi(this,re.from,re.to,re.margin)}),setSize:Ba(function(re,oe){var be=this,Ne=function(ot){return typeof ot=="number"||/^\d+$/.test(String(ot))?ot+"px":ot};re!=null&&(this.display.wrapper.style.width=Ne(re)),oe!=null&&(this.display.wrapper.style.height=Ne(oe)),this.options.lineWrapping&&$o(this);var et=this.display.viewFrom;this.doc.iter(et,this.display.viewTo,function(ot){if(ot.widgets){for(var bt=0;bt<ot.widgets.length;bt++)if(ot.widgets[bt].noHScroll){ki(be,et,"widget");break}}++et}),this.curOp.forceUpdate=!0,Dt(this,"refresh",this)}),operation:function(re){return Ii(this,re)},startOperation:function(){return ai(this)},endOperation:function(){return ba(this)},refresh:Ba(function(){var re=this.display.cachedTextHeight;Ai(this),this.curOp.forceUpdate=!0,Ya(this),wa(this,this.doc.scrollLeft,this.doc.scrollTop),ks(this.display),(re==null||Math.abs(re-Pa(this.display))>.5||this.options.lineWrapping)&&xi(this),Dt(this,"refresh",this)}),swapDoc:Ba(function(re){var oe=this.doc;return oe.cm=null,this.state.selectingText&&this.state.selectingText(),Bo(this,re),Ya(this),this.display.input.reset(),wa(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,rr(this,"swapDoc",this,oe),oe}),phrase:function(re){var oe=this.options.phrases;return oe&&Object.prototype.hasOwnProperty.call(oe,re)?oe[re]:re},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}},Sn(x),x.registerHelper=function(re,oe,be){ie.hasOwnProperty(re)||(ie[re]=x[re]={_global:[]}),ie[re][oe]=be},x.registerGlobalHelper=function(re,oe,be,Ne){x.registerHelper(re,oe,Ne),ie[re]._global.push({pred:be,val:Ne})}}function Ou(x,z,ie,re,oe){var be=z,Ne=ie,et=Hn(x,z.line),ot=oe&&x.direction=="rtl"?-ie:ie;function bt(){var fo=z.line+ot;return fo<x.first||fo>=x.first+x.size?!1:(z=new Jn(fo,z.ch,z.sticky),et=Hn(x,fo))}function yn(fo){var Fa;if(re=="codepoint"){var po=et.text.charCodeAt(z.ch+(re>0?0:-1));isNaN(po)?Fa=null:Fa=new Jn(z.line,Math.max(0,Math.min(et.text.length,z.ch+ie*(po>=55296&&po<56320?2:1))),-ie)}else oe?Fa=Ns(x.cm,et,z,ie):Fa=tu(et,z,ie);if(Fa==null)if(!fo&&bt())z=nu(oe,x.cm,et,z.line,ot);else return!1;else z=Fa;return!0}if(re=="char"||re=="codepoint")yn();else if(re=="column")yn(!0);else if(re=="word"||re=="group")for(var Rn=null,Dr=re=="group",Cr=x.cm&&x.cm.getHelper(z,"wordChars"),vi=!0;!(ie<0&&!yn(!vi));vi=!1){var ji=et.text.charAt(z.ch)||`
`,ma=pe(ji,Cr)?"w":Dr&&ji==`
`?"n":!Dr||/\s/.test(ji)?null:"p";if(Dr&&!vi&&!ma&&(ma="s"),Rn&&Rn!=ma){ie<0&&(ie=1,yn(),z.sticky="after");break}if(ma&&(Rn=ma),ie>0&&!yn(!vi))break}var Wa=Ja(x,z,be,Ne,!0);return Oa(be,Wa)&&(Wa.hitSide=!0),Wa}function nc(x,z,ie,re){var oe=x.doc,be=z.left,Ne;if(re=="page"){var et=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ot=Math.max(et-.5*Pa(x.display),3);Ne=(ie>0?z.bottom:z.top)+ie*ot}else re=="line"&&(Ne=ie>0?z.bottom+3:z.top-3);for(var bt;bt=rn(x,be,Ne),!!bt.outside;){if(ie<0?Ne<=0:Ne>=oe.height){bt.hitSide=!0;break}Ne+=ie*5}return bt}var Jl=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Jl.prototype.init=function(x){var z=this,ie=this,re=ie.cm,oe=ie.div=x.lineDiv;Td(oe,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function be(et){for(var ot=et.target;ot;ot=ot.parentNode){if(ot==oe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ot.className))break}return!1}Gt(oe,"paste",function(et){!be(et)||Jt(re,et)||nd(et,re)||Me<=11&&setTimeout(Ui(re,function(){return z.updateFromDOM()}),20)}),Gt(oe,"compositionstart",function(et){z.composing={data:et.data,done:!1}}),Gt(oe,"compositionupdate",function(et){z.composing||(z.composing={data:et.data,done:!1})}),Gt(oe,"compositionend",function(et){z.composing&&(et.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Gt(oe,"touchstart",function(){return ie.forceCompositionEnd()}),Gt(oe,"input",function(){z.composing||z.readFromDOMSoon()});function Ne(et){if(!(!be(et)||Jt(re,et))){if(re.somethingSelected())tc({lineWise:!1,text:re.getSelections()}),et.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var ot=vc(re);tc({lineWise:!0,text:ot.text}),et.type=="cut"&&re.operation(function(){re.setSelections(ot.ranges,0,ht),re.replaceSelection("",null,"cut")})}else return;if(et.clipboardData){et.clipboardData.clearData();var bt=Gu.text.join(`
`);if(et.clipboardData.setData("Text",bt),et.clipboardData.getData("Text")==bt){et.preventDefault();return}}var yn=Xl(),Rn=yn.firstChild;re.display.lineSpace.insertBefore(yn,re.display.lineSpace.firstChild),Rn.value=Gu.text.join(`
`);var Dr=document.activeElement;gt(Rn),setTimeout(function(){re.display.lineSpace.removeChild(yn),Dr.focus(),Dr==oe&&ie.showPrimarySelection()},50)}}Gt(oe,"copy",Ne),Gt(oe,"cut",Ne)},Jl.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Jl.prototype.prepareSelection=function(){var x=hn(this.cm,!1);return x.focus=document.activeElement==this.div,x},Jl.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Jl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Jl.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ie=z.doc.sel.primary(),re=ie.from(),oe=ie.to();if(z.display.viewTo==z.display.viewFrom||re.line>=z.display.viewTo||oe.line<z.display.viewFrom){x.removeAllRanges();return}var be=Cc(z,x.anchorNode,x.anchorOffset),Ne=Cc(z,x.focusNode,x.focusOffset);if(!(be&&!be.bad&&Ne&&!Ne.bad&&Jr(qi(be,Ne),re)==0&&Jr(Li(be,Ne),oe)==0)){var et=z.display.view,ot=re.line>=z.display.viewFrom&&pd(z,re)||{node:et[0].measure.map[2],offset:0},bt=oe.line<z.display.viewTo&&pd(z,oe);if(!bt){var yn=et[et.length-1].measure,Rn=yn.maps?yn.maps[yn.maps.length-1]:yn.map;bt={node:Rn[Rn.length-1],offset:Rn[Rn.length-2]-Rn[Rn.length-3]}}if(!ot||!bt){x.removeAllRanges();return}var Dr=x.rangeCount&&x.getRangeAt(0),Cr;try{Cr=Ae(ot.node,ot.offset,bt.offset,bt.node)}catch(vi){}Cr&&(!ee&&z.state.focused?(x.collapse(ot.node,ot.offset),Cr.collapsed||(x.removeAllRanges(),x.addRange(Cr))):(x.removeAllRanges(),x.addRange(Cr)),Dr&&x.anchorNode==null?x.addRange(Dr):ee&&this.startGracePeriod()),this.rememberSelection()}},Jl.prototype.startGracePeriod=function(){var x=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){x.gracePeriod=!1,x.selectionChanged()&&x.cm.operation(function(){return x.cm.curOp.selectionChanged=!0})},20)},Jl.prototype.showMultipleSelections=function(x){st(this.cm.display.cursorDiv,x.cursors),st(this.cm.display.selectionDiv,x.selection)},Jl.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},Jl.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return mt(this.div,z)},Jl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Jl.prototype.blur=function(){this.div.blur()},Jl.prototype.getField=function(){return this.div},Jl.prototype.supportsTouch=function(){return!0},Jl.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():Ii(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Jl.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},Jl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Qe&&fe&&this.cm.display.gutterSpecs.length&&md(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ie=Cc(z,x.anchorNode,x.anchorOffset),re=Cc(z,x.focusNode,x.focusOffset);ie&&re&&Ii(z,function(){Ci(z.doc,Xs(ie,re),ht),(ie.bad||re.bad)&&(z.curOp.selectionChanged=!0)})}}},Jl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ie=x.doc.sel.primary(),re=ie.from(),oe=ie.to();if(re.ch==0&&re.line>x.firstLine()&&(re=Jn(re.line-1,Hn(x.doc,re.line-1).length)),oe.ch==Hn(x.doc,oe.line).text.length&&oe.line<x.lastLine()&&(oe=Jn(oe.line+1,0)),re.line<z.viewFrom||oe.line>z.viewTo-1)return!1;var be,Ne,et;re.line==z.viewFrom||(be=Yi(x,re.line))==0?(Ne=Gr(z.view[0].line),et=z.view[0].node):(Ne=Gr(z.view[be].line),et=z.view[be-1].node.nextSibling);var ot=Yi(x,oe.line),bt,yn;if(ot==z.view.length-1?(bt=z.viewTo-1,yn=z.lineDiv.lastChild):(bt=Gr(z.view[ot+1].line)-1,yn=z.view[ot+1].node.previousSibling),!et)return!1;for(var Rn=x.doc.splitLines(vd(x,et,yn,Ne,bt)),Dr=Mr(x.doc,Jn(Ne,0),Jn(bt,Hn(x.doc,bt).text.length));Rn.length>1&&Dr.length>1;)if(un(Rn)==un(Dr))Rn.pop(),Dr.pop(),bt--;else if(Rn[0]==Dr[0])Rn.shift(),Dr.shift(),Ne++;else break;for(var Cr=0,vi=0,ji=Rn[0],ma=Dr[0],Wa=Math.min(ji.length,ma.length);Cr<Wa&&ji.charCodeAt(Cr)==ma.charCodeAt(Cr);)++Cr;for(var fo=un(Rn),Fa=un(Dr),po=Math.min(fo.length-(Rn.length==1?Cr:0),Fa.length-(Dr.length==1?Cr:0));vi<po&&fo.charCodeAt(fo.length-vi-1)==Fa.charCodeAt(Fa.length-vi-1);)++vi;if(Rn.length==1&&Dr.length==1&&Ne==re.line)for(;Cr&&Cr>re.ch&&fo.charCodeAt(fo.length-vi-1)==Fa.charCodeAt(Fa.length-vi-1);)Cr--,vi++;Rn[Rn.length-1]=fo.slice(0,fo.length-vi).replace(/^\u200b+/,""),Rn[0]=Rn[0].slice(Cr).replace(/\u200b+$/,"");var qo=Jn(Ne,Cr),nl=Jn(bt,Dr.length?un(Dr).length-vi:0);if(Rn.length>1||Rn[0]||Jr(qo,nl))return Do(x.doc,Rn,qo,nl,"+input"),!0},Jl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Jl.prototype.reset=function(){this.forceCompositionEnd()},Jl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Jl.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Jl.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&Ii(this.cm,function(){return Ai(x.cm)})},Jl.prototype.setUneditable=function(x){x.contentEditable="false"},Jl.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Ui(this.cm,Kc)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Jl.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Jl.prototype.onContextMenu=function(){},Jl.prototype.resetPosition=function(){},Jl.prototype.needsContentAttribute=!0;function pd(x,z){var ie=tl(x,z.line);if(!ie||ie.hidden)return null;var re=Hn(x.doc,z.line),oe=ca(ie,re,z.line),be=Wt(re,x.doc.direction),Ne="left";if(be){var et=dn(be,z.ch);Ne=et%2?"right":"left"}var ot=Co(oe.map,z.ch,Ne);return ot.offset=ot.collapse=="right"?ot.end:ot.start,ot}function md(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function vd(x,z,ie,re,oe){var be="",Ne=!1,et=x.doc.lineSeparator(),ot=!1;function bt(Cr){return function(vi){return vi.id==Cr}}function yn(){Ne&&(be+=et,ot&&(be+=et),Ne=ot=!1)}function Rn(Cr){Cr&&(yn(),be+=Cr)}function Dr(Cr){if(Cr.nodeType==1){var vi=Cr.getAttribute("cm-text");if(vi){Rn(vi);return}var ji=Cr.getAttribute("cm-marker"),ma;if(ji){var Wa=x.findMarks(Jn(re,0),Jn(oe+1,0),bt(+ji));Wa.length&&(ma=Wa[0].find(0))&&Rn(Mr(x.doc,ma.from,ma.to).join(et));return}if(Cr.getAttribute("contenteditable")=="false")return;var fo=/^(pre|div|p|li|table|br)$/i.test(Cr.nodeName);if(!/^br$/i.test(Cr.nodeName)&&Cr.textContent.length==0)return;fo&&yn();for(var Fa=0;Fa<Cr.childNodes.length;Fa++)Dr(Cr.childNodes[Fa]);/^(pre|p)$/i.test(Cr.nodeName)&&(ot=!0),fo&&(Ne=!0)}else Cr.nodeType==3&&Rn(Cr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Dr(z),z!=ie;)z=z.nextSibling,ot=!1;return be}function Cc(x,z,ie){var re;if(z==x.display.lineDiv){if(re=x.display.lineDiv.childNodes[ie],!re)return cc(x.clipPos(Jn(x.display.viewTo-1)),!0);z=null,ie=0}else for(re=z;;re=re.parentNode){if(!re||re==x.display.lineDiv)return null;if(re.parentNode&&re.parentNode==x.display.lineDiv)break}for(var oe=0;oe<x.display.view.length;oe++){var be=x.display.view[oe];if(be.node==re)return dh(be,z,ie)}}function dh(x,z,ie){var re=x.text.firstChild,oe=!1;if(!z||!mt(re,z))return cc(Jn(Gr(x.line),0),!0);if(z==re&&(oe=!0,z=re.childNodes[ie],ie=0,!z)){var be=x.rest?un(x.rest):x.line;return cc(Jn(Gr(be),be.text.length),oe)}var Ne=z.nodeType==3?z:null,et=z;for(!Ne&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Ne=z.firstChild,ie&&(ie=Ne.nodeValue.length));et.parentNode!=re;)et=et.parentNode;var ot=x.measure,bt=ot.maps;function yn(ma,Wa,fo){for(var Fa=-1;Fa<(bt?bt.length:0);Fa++)for(var po=Fa<0?ot.map:bt[Fa],qo=0;qo<po.length;qo+=3){var nl=po[qo+2];if(nl==ma||nl==Wa){var Kl=Gr(Fa<0?x.line:x.rest[Fa]),ws=po[qo]+fo;return(fo<0||nl!=ma)&&(ws=po[qo+(fo?1:0)]),Jn(Kl,ws)}}}var Rn=yn(Ne,et,ie);if(Rn)return cc(Rn,oe);for(var Dr=et.nextSibling,Cr=Ne?Ne.nodeValue.length-ie:0;Dr;Dr=Dr.nextSibling){if(Rn=yn(Dr,Dr.firstChild,0),Rn)return cc(Jn(Rn.line,Rn.ch-Cr),oe);Cr+=Dr.textContent.length}for(var vi=et.previousSibling,ji=ie;vi;vi=vi.previousSibling){if(Rn=yn(vi,vi.firstChild,-1),Rn)return cc(Jn(Rn.line,Rn.ch+ji),oe);ji+=vi.textContent.length}}var Ss=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};Ss.prototype.init=function(x){var z=this,ie=this,re=this.cm;this.createField(x);var oe=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),rt&&(oe.style.width="0px"),Gt(oe,"input",function(){xe&&Me>=9&&z.hasSelection&&(z.hasSelection=null),ie.poll()}),Gt(oe,"paste",function(Ne){Jt(re,Ne)||nd(Ne,re)||(re.state.pasteIncoming=+new Date,ie.fastPoll())});function be(Ne){if(!Jt(re,Ne)){if(re.somethingSelected())tc({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var et=vc(re);tc({lineWise:!0,text:et.text}),Ne.type=="cut"?re.setSelections(et.ranges,null,ht):(ie.prevInput="",oe.value=et.text.join(`
`),gt(oe))}else return;Ne.type=="cut"&&(re.state.cutIncoming=+new Date)}}Gt(oe,"cut",be),Gt(oe,"copy",be),Gt(x.scroller,"paste",function(Ne){if(!(Ea(x,Ne)||Jt(re,Ne))){if(!oe.dispatchEvent){re.state.pasteIncoming=+new Date,ie.focus();return}var et=new Event("paste");et.clipboardData=Ne.clipboardData,oe.dispatchEvent(et)}}),Gt(x.lineSpace,"selectstart",function(Ne){Ea(x,Ne)||or(Ne)}),Gt(oe,"compositionstart",function(){var Ne=re.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:Ne,range:re.markText(Ne,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Gt(oe,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},Ss.prototype.createField=function(x){this.wrapper=Xl(),this.textarea=this.wrapper.firstChild},Ss.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},Ss.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ie=x.doc,re=hn(x);if(x.options.moveInputWithCursor){var oe=Bl(x,ie.sel.primary().head,"div"),be=z.wrapper.getBoundingClientRect(),Ne=z.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,oe.top+Ne.top-be.top)),re.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,oe.left+Ne.left-be.left))}return re},Ss.prototype.showSelection=function(x){var z=this.cm,ie=z.display;st(ie.cursorDiv,x.cursors),st(ie.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},Ss.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ie=z.getSelection();this.textarea.value=ie,z.state.focused&&gt(this.textarea),xe&&Me>=9&&(this.hasSelection=ie)}else x||(this.prevInput=this.textarea.value="",xe&&Me>=9&&(this.hasSelection=null))}},Ss.prototype.getField=function(){return this.textarea},Ss.prototype.supportsTouch=function(){return!1},Ss.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_e||je()!=this.textarea))try{this.textarea.focus()}catch(x){}},Ss.prototype.blur=function(){this.textarea.blur()},Ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ss.prototype.receivedFocus=function(){this.slowPoll()},Ss.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},Ss.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ie(){var re=z.poll();!re&&!x?(x=!0,z.polling.set(60,ie)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ie)},Ss.prototype.poll=function(){var x=this,z=this.cm,ie=this.textarea,re=this.prevInput;if(this.contextMenuPending||!z.state.focused||_n(ie)&&!re&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var oe=ie.value;if(oe==re&&!z.somethingSelected())return!1;if(xe&&Me>=9&&this.hasSelection===oe||ge&&/[\uf700-\uf7ff]/.test(oe))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var be=oe.charCodeAt(0);if(be==8203&&!re&&(re="\u200B"),be==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ne=0,et=Math.min(re.length,oe.length);Ne<et&&re.charCodeAt(Ne)==oe.charCodeAt(Ne);)++Ne;return Ii(z,function(){Kc(z,oe.slice(Ne),re.length-Ne,null,x.composing?"*compose":null),oe.length>1e3||oe.indexOf(`
`)>-1?ie.value=x.prevInput="":x.prevInput=oe,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ss.prototype.onKeyPress=function(){xe&&Me>=9&&(this.hasSelection=null),this.fastPoll()},Ss.prototype.onContextMenu=function(x){var z=this,ie=z.cm,re=ie.display,oe=z.textarea;z.contextMenuPending&&z.contextMenuPending();var be=Sa(ie,x),Ne=re.scroller.scrollTop;if(!be||we)return;var et=ie.options.resetSelectionOnContextMenu;et&&ie.doc.sel.contains(be)==-1&&Ui(ie,Ci)(ie.doc,Xs(be),ht);var ot=oe.style.cssText,bt=z.wrapper.style.cssText,yn=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",oe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(x.clientY-yn.top-5)+"px; left: "+(x.clientX-yn.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rn;ue&&(Rn=window.scrollY),re.input.focus(),ue&&window.scrollTo(null,Rn),re.input.reset(),ie.somethingSelected()||(oe.value=z.prevInput=" "),z.contextMenuPending=Cr,re.selForContextMenu=ie.doc.sel,clearTimeout(re.detectingSelectAll);function Dr(){if(oe.selectionStart!=null){var ji=ie.somethingSelected(),ma="\u200B"+(ji?oe.value:"");oe.value="\u21DA",oe.value=ma,z.prevInput=ji?"":"\u200B",oe.selectionStart=1,oe.selectionEnd=ma.length,re.selForContextMenu=ie.doc.sel}}function Cr(){if(z.contextMenuPending==Cr&&(z.contextMenuPending=!1,z.wrapper.style.cssText=bt,oe.style.cssText=ot,xe&&Me<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=Ne),oe.selectionStart!=null)){(!xe||xe&&Me<9)&&Dr();var ji=0,ma=function(){re.selForContextMenu==ie.doc.sel&&oe.selectionStart==0&&oe.selectionEnd>0&&z.prevInput=="\u200B"?Ui(ie,al)(ie):ji++<10?re.detectingSelectAll=setTimeout(ma,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(ma,200)}}if(xe&&Me>=9&&Dr(),ve){Lr(x);var vi=function(){sr(window,"mouseup",vi),setTimeout(Cr,20)};Gt(window,"mouseup",vi)}else setTimeout(Cr,50)},Ss.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},Ss.prototype.setUneditable=function(){},Ss.prototype.needsContentAttribute=!1;function Zc(x,z){if(z=z?Xt(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ie=je();z.autofocus=ie==x||x.getAttribute("autofocus")!=null&&ie==document.body}function re(){x.value=et.getValue()}var oe;if(x.form&&(Gt(x.form,"submit",re),!z.leaveSubmitMethodAlone)){var be=x.form;oe=be.submit;try{var Ne=be.submit=function(){re(),be.submit=oe,be.submit(),be.submit=Ne}}catch(ot){}}z.finishInit=function(ot){ot.save=re,ot.getTextArea=function(){return x},ot.toTextArea=function(){ot.toTextArea=isNaN,re(),x.parentNode.removeChild(ot.getWrapperElement()),x.style.display="",x.form&&(sr(x.form,"submit",re),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=oe))}},x.style.display="none";var et=pl(function(ot){return x.parentNode.insertBefore(ot,x.nextSibling)},z);return et}function rd(x){x.off=sr,x.on=Gt,x.wheelEventPixels=Zu,x.Doc=Aa,x.splitLines=Kt,x.countColumn=$e,x.findColumn=Fn,x.isWordChar=me,x.Pass=Rt,x.signal=Dt,x.Line=hr,x.changeEnd=vu,x.scrollbarModel=Fo,x.Pos=Jn,x.cmpPos=Jr,x.modes=Rr,x.mimeModes=Pr,x.resolveMode=$t,x.getMode=fn,x.modeExtensions=Mn,x.extendMode=yt,x.copyState=Ut,x.startState=cn,x.innerMode=Cn,x.commands=Cs,x.keyMap=Sl,x.keyName=wu,x.isModifierKey=qs,x.lookupKey=Ks,x.normalizeKeyMap=Fl,x.StringStream=zn,x.SharedTextMarker=ol,x.TextMarker=es,x.LineWidget=fs,x.e_preventDefault=or,x.e_stopPropagation=gr,x.e_stop=Lr,x.addClass=it,x.contains=mt,x.rmClass=ze,x.keyNames=xu}qc(pl),ms(pl);var gc="iter insert remove copy getEditor constructor".split(" ");for(var $u in Aa.prototype)Aa.prototype.hasOwnProperty($u)&&St(gc,$u)<0&&(pl.prototype[$u]=function(x){return function(){return x.apply(this.doc,arguments)}}(Aa.prototype[$u]));return Sn(Aa),pl.inputStyles={textarea:Ss,contenteditable:Jl},pl.defineMode=function(x){!pl.defaults.mode&&x!="null"&&(pl.defaults.mode=x),br.apply(this,arguments)},pl.defineMIME=xt,pl.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),pl.defineMIME("text/plain","null"),pl.defineExtension=function(x,z){pl.prototype[x]=z},pl.defineDocExtension=function(x,z){Aa.prototype[x]=z},pl.fromTextArea=Zc,rd(pl),pl.version="5.58.2",pl})},49047:function(vn,Tt,te){(function(ee){ee(te(4631),te(29589),te(52539))})(function(ee){"use strict";ee.defineMode("markdown",function(de,ke){var Ge=ee.getMode(de,"text/html"),xe=Ge.name=="null";function Me($e){if(ee.findModeByName){var Be=ee.findModeByName($e);Be&&($e=Be.mime||Be.mimes[0])}var St=ee.getMode(de,$e);return St.name=="null"?null:St}ke.highlightFormatting===void 0&&(ke.highlightFormatting=!1),ke.maxBlockquoteDepth===void 0&&(ke.maxBlockquoteDepth=0),ke.taskLists===void 0&&(ke.taskLists=!1),ke.strikethrough===void 0&&(ke.strikethrough=!1),ke.emoji===void 0&&(ke.emoji=!1),ke.fencedCodeBlockHighlighting===void 0&&(ke.fencedCodeBlockHighlighting=!0),ke.fencedCodeBlockDefaultMode===void 0&&(ke.fencedCodeBlockDefaultMode="text/plain"),ke.xml===void 0&&(ke.xml=!0),ke.tokenTypeOverrides===void 0&&(ke.tokenTypeOverrides={});var ue={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 Ee in ue)ue.hasOwnProperty(Ee)&&ke.tokenTypeOverrides[Ee]&&(ue[Ee]=ke.tokenTypeOverrides[Ee]);var fe=/^([*\-_])(?:\s*\1){2,}\s*$/,we=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ue=/^\[(x| )\](?=\s)/i,De=ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ke=/^ {0,3}(?:\={1,}|-{2,})\s*$/,rt=/^[^#!\[\]*_\\<>` "'(~:]+/,Qe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,_e=/^\s*\[[^\]]+?\]:.*$/,ge=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ve=" ";function lt($e,Be,St){return Be.f=Be.inline=St,St($e,Be)}function He($e,Be,St){return Be.f=Be.block=St,St($e,Be)}function Oe($e){return!$e||!/\S/.test($e.string)}function ve($e){if($e.linkTitle=!1,$e.linkHref=!1,$e.linkText=!1,$e.em=!1,$e.strong=!1,$e.strikethrough=!1,$e.quote=0,$e.indentedCode=!1,$e.f==ze){var Be=xe;if(!Be){var St=ee.innerMode(Ge,$e.htmlState);Be=St.mode.name=="xml"&&St.state.tagStart===null&&!St.state.context&&St.state.tokenize.isInText}Be&&($e.f=Ze,$e.block=ye,$e.htmlState=null)}return $e.trailingSpace=0,$e.trailingSpaceNewLine=!1,$e.prevLine=$e.thisLine,$e.thisLine={stream:null},null}function ye($e,Be){var St=$e.column()===Be.indentation,Vt=Oe(Be.prevLine.stream),Rt=Be.indentedCode,ht=Be.prevLine.hr,Bt=Be.list!==!1,_t=(Be.listStack[Be.listStack.length-1]||0)+3;Be.indentedCode=!1;var Fn=Be.indentation;if(Be.indentationDiff===null&&(Be.indentationDiff=Be.indentation,Bt)){for(Be.list=null;Fn<Be.listStack[Be.listStack.length-1];)Be.listStack.pop(),Be.listStack.length?Be.indentation=Be.listStack[Be.listStack.length-1]:Be.list=!1;Be.list!==!1&&(Be.indentationDiff=Fn-Be.listStack[Be.listStack.length-1])}var kn=!Vt&&!ht&&!Be.prevLine.header&&(!Bt||!Rt)&&!Be.prevLine.fencedCodeEnd,kt=(Be.list===!1||ht||Vt)&&Be.indentation<=_t&&$e.match(fe),un=null;if(Be.indentationDiff>=4&&(Rt||Be.prevLine.fencedCodeEnd||Be.prevLine.header||Vt))return $e.skipToEnd(),Be.indentedCode=!0,ue.code;if($e.eatSpace())return null;if(St&&Be.indentation<=_t&&(un=$e.match(De))&&un[1].length<=6)return Be.quote=0,Be.header=un[1].length,Be.thisLine.header=!0,ke.highlightFormatting&&(Be.formatting="header"),Be.f=Be.inline,st(Be);if(Be.indentation<=_t&&$e.eat(">"))return Be.quote=St?1:Be.quote+1,ke.highlightFormatting&&(Be.formatting="quote"),$e.eatSpace(),st(Be);if(!kt&&!Be.setext&&St&&Be.indentation<=_t&&(un=$e.match(we))){var Wn=un[1]?"ol":"ul";return Be.indentation=Fn+$e.current().length,Be.list=!0,Be.quote=0,Be.listStack.push(Be.indentation),Be.em=!1,Be.strong=!1,Be.code=!1,Be.strikethrough=!1,ke.taskLists&&$e.match(Ue,!1)&&(Be.taskList=!0),Be.f=Be.inline,ke.highlightFormatting&&(Be.formatting=["list","list-"+Wn]),st(Be)}else{if(St&&Be.indentation<=_t&&(un=$e.match(Qe,!0)))return Be.quote=0,Be.fencedEndRE=new RegExp(un[1]+"+ *$"),Be.localMode=ke.fencedCodeBlockHighlighting&&Me(un[2]||ke.fencedCodeBlockDefaultMode),Be.localMode&&(Be.localState=ee.startState(Be.localMode)),Be.f=Be.block=We,ke.highlightFormatting&&(Be.formatting="code-block"),Be.code=-1,st(Be);if(Be.setext||(!kn||!Bt)&&!Be.quote&&Be.list===!1&&!Be.code&&!kt&&!_e.test($e.string)&&(un=$e.lookAhead(1))&&(un=un.match(Ke)))return Be.setext?(Be.header=Be.setext,Be.setext=0,$e.skipToEnd(),ke.highlightFormatting&&(Be.formatting="header")):(Be.header=un[0].charAt(0)=="="?1:2,Be.setext=Be.header),Be.thisLine.header=!0,Be.f=Be.inline,st(Be);if(kt)return $e.skipToEnd(),Be.hr=!0,Be.thisLine.hr=!0,ue.hr;if($e.peek()==="[")return lt($e,Be,qe)}return lt($e,Be,Be.inline)}function ze($e,Be){var St=Ge.token($e,Be.htmlState);if(!xe){var Vt=ee.innerMode(Ge,Be.htmlState);(Vt.mode.name=="xml"&&Vt.state.tagStart===null&&!Vt.state.context&&Vt.state.tokenize.isInText||Be.md_inside&&$e.current().indexOf(">")>-1)&&(Be.f=Ze,Be.block=ye,Be.htmlState=null)}return St}function We($e,Be){var St=Be.listStack[Be.listStack.length-1]||0,Vt=Be.indentation<St,Rt=St+3;if(Be.fencedEndRE&&Be.indentation<=Rt&&(Vt||$e.match(Be.fencedEndRE))){ke.highlightFormatting&&(Be.formatting="code-block");var ht;return Vt||(ht=st(Be)),Be.localMode=Be.localState=null,Be.block=ye,Be.f=Ze,Be.fencedEndRE=null,Be.code=0,Be.thisLine.fencedCodeEnd=!0,Vt?He($e,Be,Be.block):ht}else return Be.localMode?Be.localMode.token($e,Be.localState):($e.skipToEnd(),ue.code)}function st($e){var Be=[];if($e.formatting){Be.push(ue.formatting),typeof $e.formatting=="string"&&($e.formatting=[$e.formatting]);for(var St=0;St<$e.formatting.length;St++)Be.push(ue.formatting+"-"+$e.formatting[St]),$e.formatting[St]==="header"&&Be.push(ue.formatting+"-"+$e.formatting[St]+"-"+$e.header),$e.formatting[St]==="quote"&&(!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=$e.quote?Be.push(ue.formatting+"-"+$e.formatting[St]+"-"+$e.quote):Be.push("error"))}if($e.taskOpen)return Be.push("meta"),Be.length?Be.join(" "):null;if($e.taskClosed)return Be.push("property"),Be.length?Be.join(" "):null;if($e.linkHref?Be.push(ue.linkHref,"url"):($e.strong&&Be.push(ue.strong),$e.em&&Be.push(ue.em),$e.strikethrough&&Be.push(ue.strikethrough),$e.emoji&&Be.push(ue.emoji),$e.linkText&&Be.push(ue.linkText),$e.code&&Be.push(ue.code),$e.image&&Be.push(ue.image),$e.imageAltText&&Be.push(ue.imageAltText,"link"),$e.imageMarker&&Be.push(ue.imageMarker)),$e.header&&Be.push(ue.header,ue.header+"-"+$e.header),$e.quote&&(Be.push(ue.quote),!ke.maxBlockquoteDepth||ke.maxBlockquoteDepth>=$e.quote?Be.push(ue.quote+"-"+$e.quote):Be.push(ue.quote+"-"+ke.maxBlockquoteDepth)),$e.list!==!1){var Vt=($e.listStack.length-1)%3;Vt?Vt===1?Be.push(ue.list2):Be.push(ue.list3):Be.push(ue.list1)}return $e.trailingSpaceNewLine?Be.push("trailing-space-new-line"):$e.trailingSpace&&Be.push("trailing-space-"+($e.trailingSpace%2?"a":"b")),Be.length?Be.join(" "):null}function at($e,Be){if($e.match(rt,!0))return st(Be)}function Ze($e,Be){var St=Be.text($e,Be);if(typeof St!="undefined")return St;if(Be.list)return Be.list=null,st(Be);if(Be.taskList){var Vt=$e.match(Ue,!0)[1]===" ";return Vt?Be.taskOpen=!0:Be.taskClosed=!0,ke.highlightFormatting&&(Be.formatting="task"),Be.taskList=!1,st(Be)}if(Be.taskOpen=!1,Be.taskClosed=!1,Be.header&&$e.match(/^#+$/,!0))return ke.highlightFormatting&&(Be.formatting="header"),st(Be);var Rt=$e.next();if(Be.linkTitle){Be.linkTitle=!1;var ht=Rt;Rt==="("&&(ht=")"),ht=(ht+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Bt="^\\s*(?:[^"+ht+"\\\\]+|\\\\\\\\|\\\\.)"+ht;if($e.match(new RegExp(Bt),!0))return ue.linkHref}if(Rt==="`"){var _t=Be.formatting;ke.highlightFormatting&&(Be.formatting="code"),$e.eatWhile("`");var Fn=$e.current().length;if(Be.code==0&&(!Be.quote||Fn==1))return Be.code=Fn,st(Be);if(Fn==Be.code){var kn=st(Be);return Be.code=0,kn}else return Be.formatting=_t,st(Be)}else if(Be.code)return st(Be);if(Rt==="\\"&&($e.next(),ke.highlightFormatting)){var kt=st(Be),un=ue.formatting+"-escape";return kt?kt+" "+un:un}if(Rt==="!"&&$e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Be.imageMarker=!0,Be.image=!0,ke.highlightFormatting&&(Be.formatting="image"),st(Be);if(Rt==="["&&Be.imageMarker&&$e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Be.imageMarker=!1,Be.imageAltText=!0,ke.highlightFormatting&&(Be.formatting="image"),st(Be);if(Rt==="]"&&Be.imageAltText){ke.highlightFormatting&&(Be.formatting="image");var kt=st(Be);return Be.imageAltText=!1,Be.image=!1,Be.inline=Be.f=mt,kt}if(Rt==="["&&!Be.image)return Be.linkText&&$e.match(/^.*?\]/)||(Be.linkText=!0,ke.highlightFormatting&&(Be.formatting="link")),st(Be);if(Rt==="]"&&Be.linkText){ke.highlightFormatting&&(Be.formatting="link");var kt=st(Be);return Be.linkText=!1,Be.inline=Be.f=$e.match(/\(.*?\)| ?\[.*?\]/,!1)?mt:Ze,kt}if(Rt==="<"&&$e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Be.f=Be.inline=Ae,ke.highlightFormatting&&(Be.formatting="link");var kt=st(Be);return kt?kt+=" ":kt="",kt+ue.linkInline}if(Rt==="<"&&$e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Be.f=Be.inline=Ae,ke.highlightFormatting&&(Be.formatting="link");var kt=st(Be);return kt?kt+=" ":kt="",kt+ue.linkEmail}if(ke.xml&&Rt==="<"&&$e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Wn=$e.string.indexOf(">",$e.pos);if(Wn!=-1){var An=$e.string.substring($e.start,Wn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(An)&&(Be.md_inside=!0)}return $e.backUp(1),Be.htmlState=ee.startState(Ge),He($e,Be,ze)}if(ke.xml&&Rt==="<"&&$e.match(/^\/\w*?>/))return Be.md_inside=!1,"tag";if(Rt==="*"||Rt==="_"){for(var Ie=1,he=$e.pos==1?" ":$e.string.charAt($e.pos-2);Ie<3&&$e.eat(Rt);)Ie++;var ce=$e.peek()||" ",me=!/\s/.test(ce)&&(!ge.test(ce)||/\s/.test(he)||ge.test(he)),pe=!/\s/.test(he)&&(!ge.test(he)||/\s/.test(ce)||ge.test(ce)),le=null,Le=null;if(Ie%2&&(!Be.em&&me&&(Rt==="*"||!pe||ge.test(he))?le=!0:Be.em==Rt&&pe&&(Rt==="*"||!me||ge.test(ce))&&(le=!1)),Ie>1&&(!Be.strong&&me&&(Rt==="*"||!pe||ge.test(he))?Le=!0:Be.strong==Rt&&pe&&(Rt==="*"||!me||ge.test(ce))&&(Le=!1)),Le!=null||le!=null){ke.highlightFormatting&&(Be.formatting=le==null?"strong":Le==null?"em":"strong em"),le===!0&&(Be.em=Rt),Le===!0&&(Be.strong=Rt);var kn=st(Be);return le===!1&&(Be.em=!1),Le===!1&&(Be.strong=!1),kn}}else if(Rt===" "&&($e.eat("*")||$e.eat("_"))){if($e.peek()===" ")return st(Be);$e.backUp(1)}if(ke.strikethrough){if(Rt==="~"&&$e.eatWhile(Rt)){if(Be.strikethrough){ke.highlightFormatting&&(Be.formatting="strikethrough");var kn=st(Be);return Be.strikethrough=!1,kn}else if($e.match(/^[^\s]/,!1))return Be.strikethrough=!0,ke.highlightFormatting&&(Be.formatting="strikethrough"),st(Be)}else if(Rt===" "&&$e.match(/^~~/,!0)){if($e.peek()===" ")return st(Be);$e.backUp(2)}}if(ke.emoji&&Rt===":"&&$e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Be.emoji=!0,ke.highlightFormatting&&(Be.formatting="emoji");var dt=st(Be);return Be.emoji=!1,dt}return Rt===" "&&($e.match(/^ +$/,!1)?Be.trailingSpace++:Be.trailingSpace&&(Be.trailingSpaceNewLine=!0)),st(Be)}function Ae($e,Be){var St=$e.next();if(St===">"){Be.f=Be.inline=Ze,ke.highlightFormatting&&(Be.formatting="link");var Vt=st(Be);return Vt?Vt+=" ":Vt="",Vt+ue.linkInline}return $e.match(/^[^>]+/,!0),ue.linkInline}function mt($e,Be){if($e.eatSpace())return null;var St=$e.next();return St==="("||St==="["?(Be.f=Be.inline=it(St==="("?")":"]"),ke.highlightFormatting&&(Be.formatting="link-string"),Be.linkHref=!0,st(Be)):"error"}var je={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function it($e){return function(Be,St){var Vt=Be.next();if(Vt===$e){St.f=St.inline=Ze,ke.highlightFormatting&&(St.formatting="link-string");var Rt=st(St);return St.linkHref=!1,Rt}return Be.match(je[$e]),St.linkHref=!0,st(St)}}function qe($e,Be){return $e.match(/^([^\]\\]|\\.)*\]:/,!1)?(Be.f=gt,$e.next(),ke.highlightFormatting&&(Be.formatting="link"),Be.linkText=!0,st(Be)):lt($e,Be,Ze)}function gt($e,Be){if($e.match(/^\]:/,!0)){Be.f=Be.inline=Pt,ke.highlightFormatting&&(Be.formatting="link");var St=st(Be);return Be.linkText=!1,St}return $e.match(/^([^\]\\]|\\.)+/,!0),ue.linkText}function Pt($e,Be){return $e.eatSpace()?null:($e.match(/^[^\s]+/,!0),$e.peek()===void 0?Be.linkTitle=!0:$e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Be.f=Be.inline=Ze,ue.linkHref+" url")}var Xt={startState:function(){return{f:ye,prevLine:{stream:null},thisLine:{stream:null},block:ye,htmlState:null,indentation:0,inline:Ze,text:at,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($e){return{f:$e.f,prevLine:$e.prevLine,thisLine:$e.thisLine,block:$e.block,htmlState:$e.htmlState&&ee.copyState(Ge,$e.htmlState),indentation:$e.indentation,localMode:$e.localMode,localState:$e.localMode?ee.copyState($e.localMode,$e.localState):null,inline:$e.inline,text:$e.text,formatting:!1,linkText:$e.linkText,linkTitle:$e.linkTitle,linkHref:$e.linkHref,code:$e.code,em:$e.em,strong:$e.strong,strikethrough:$e.strikethrough,emoji:$e.emoji,header:$e.header,setext:$e.setext,hr:$e.hr,taskList:$e.taskList,list:$e.list,listStack:$e.listStack.slice(0),quote:$e.quote,indentedCode:$e.indentedCode,trailingSpace:$e.trailingSpace,trailingSpaceNewLine:$e.trailingSpaceNewLine,md_inside:$e.md_inside,fencedEndRE:$e.fencedEndRE}},token:function($e,Be){if(Be.formatting=!1,$e!=Be.thisLine.stream){if(Be.header=0,Be.hr=!1,$e.match(/^\s*$/,!0))return ve(Be),null;if(Be.prevLine=Be.thisLine,Be.thisLine={stream:$e},Be.taskList=!1,Be.trailingSpace=0,Be.trailingSpaceNewLine=!1,!Be.localState&&(Be.f=Be.block,Be.f!=ze)){var St=$e.match(/^\s*/,!0)[0].replace(/\t/g,Ve).length;if(Be.indentation=St,Be.indentationDiff=null,St>0)return null}}return Be.f($e,Be)},innerMode:function($e){return $e.block==ze?{state:$e.htmlState,mode:Ge}:$e.localState?{state:$e.localState,mode:$e.localMode}:{state:$e,mode:Xt}},indent:function($e,Be,St){return $e.block==ze&&Ge.indent?Ge.indent($e.htmlState,Be,St):$e.localState&&$e.localMode.indent?$e.localMode.indent($e.localState,Be,St):ee.Pass},blankLine:ve,getType:st,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xt},"xml"),ee.defineMIME("text/markdown","markdown"),ee.defineMIME("text/x-markdown","markdown")})},52539:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){"use strict";ee.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 de=0;de<ee.modeInfo.length;de++){var ke=ee.modeInfo[de];ke.mimes&&(ke.mime=ke.mimes[0])}ee.findModeByMIME=function(Ge){Ge=Ge.toLowerCase();for(var xe=0;xe<ee.modeInfo.length;xe++){var Me=ee.modeInfo[xe];if(Me.mime==Ge)return Me;if(Me.mimes){for(var ue=0;ue<Me.mimes.length;ue++)if(Me.mimes[ue]==Ge)return Me}}if(/\+xml$/.test(Ge))return ee.findModeByMIME("application/xml");if(/\+json$/.test(Ge))return ee.findModeByMIME("application/json")},ee.findModeByExtension=function(Ge){Ge=Ge.toLowerCase();for(var xe=0;xe<ee.modeInfo.length;xe++){var Me=ee.modeInfo[xe];if(Me.ext){for(var ue=0;ue<Me.ext.length;ue++)if(Me.ext[ue]==Ge)return Me}}},ee.findModeByFileName=function(Ge){for(var xe=0;xe<ee.modeInfo.length;xe++){var Me=ee.modeInfo[xe];if(Me.file&&Me.file.test(Ge))return Me}var ue=Ge.lastIndexOf("."),Ee=ue>-1&&Ge.substring(ue+1,Ge.length);if(Ee)return ee.findModeByExtension(Ee)},ee.findModeByName=function(Ge){Ge=Ge.toLowerCase();for(var xe=0;xe<ee.modeInfo.length;xe++){var Me=ee.modeInfo[xe];if(Me.name.toLowerCase()==Ge)return Me;if(Me.alias){for(var ue=0;ue<Me.alias.length;ue++)if(Me.alias[ue].toLowerCase()==Ge)return Me}}}})},80785:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){"use strict";ee.defineMode("stex",function(de,ke){"use strict";function Ge(rt,Qe){rt.cmdState.push(Qe)}function xe(rt){return rt.cmdState.length>0?rt.cmdState[rt.cmdState.length-1]:null}function Me(rt){var Qe=rt.cmdState.pop();Qe&&Qe.closeBracket()}function ue(rt){for(var Qe=rt.cmdState,_e=Qe.length-1;_e>=0;_e--){var ge=Qe[_e];if(ge.name!="DEFAULT")return ge}return{styleIdentifier:function(){return null}}}function Ee(rt,Qe,_e){return function(){this.name=rt,this.bracketNo=0,this.style=Qe,this.styles=_e,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var fe={};fe.importmodule=Ee("importmodule","tag",["string","builtin"]),fe.documentclass=Ee("documentclass","tag",["","atom"]),fe.usepackage=Ee("usepackage","tag",["atom"]),fe.begin=Ee("begin","tag",["atom"]),fe.end=Ee("end","tag",["atom"]),fe.label=Ee("label","tag",["atom"]),fe.ref=Ee("ref","tag",["atom"]),fe.eqref=Ee("eqref","tag",["atom"]),fe.cite=Ee("cite","tag",["atom"]),fe.bibitem=Ee("bibitem","tag",["atom"]),fe.Bibitem=Ee("Bibitem","tag",["atom"]),fe.RBibitem=Ee("RBibitem","tag",["atom"]),fe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function we(rt,Qe){rt.f=Qe}function Ue(rt,Qe){var _e;if(rt.match(/^\\[a-zA-Z@]+/)){var ge=rt.current().slice(1);return _e=fe.hasOwnProperty(ge)?fe[ge]:fe.DEFAULT,_e=new _e,Ge(Qe,_e),we(Qe,Ke),_e.style}if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/\\]/))return"tag";if(rt.match("\\["))return we(Qe,function(lt,He){return De(lt,He,"\\]")}),"keyword";if(rt.match("\\("))return we(Qe,function(lt,He){return De(lt,He,"\\)")}),"keyword";if(rt.match("$$"))return we(Qe,function(lt,He){return De(lt,He,"$$")}),"keyword";if(rt.match("$"))return we(Qe,function(lt,He){return De(lt,He,"$")}),"keyword";var Ve=rt.next();if(Ve=="%")return rt.skipToEnd(),"comment";if(Ve=="}"||Ve=="]"){if(_e=xe(Qe),_e)_e.closeBracket(Ve),we(Qe,Ke);else return"error";return"bracket"}else return Ve=="{"||Ve=="["?(_e=fe.DEFAULT,_e=new _e,Ge(Qe,_e),"bracket"):/\d/.test(Ve)?(rt.eatWhile(/[\w.%]/),"atom"):(rt.eatWhile(/[\w\-_]/),_e=ue(Qe),_e.name=="begin"&&(_e.argument=rt.current()),_e.styleIdentifier())}function De(rt,Qe,_e){if(rt.eatSpace())return null;if(_e&&rt.match(_e))return we(Qe,Ue),"keyword";if(rt.match(/^\\[a-zA-Z@]+/))return"tag";if(rt.match(/^[a-zA-Z]+/))return"variable-2";if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/]/)||rt.match(/^[\^_&]/))return"tag";if(rt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(rt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ge=rt.next();return ge=="{"||ge=="}"||ge=="["||ge=="]"||ge=="("||ge==")"?"bracket":ge=="%"?(rt.skipToEnd(),"comment"):"error"}function Ke(rt,Qe){var _e=rt.peek(),ge;return _e=="{"||_e=="["?(ge=xe(Qe),ge.openBracket(_e),rt.eat(_e),we(Qe,Ue),"bracket"):/[ \t\r]/.test(_e)?(rt.eat(_e),null):(we(Qe,Ue),Me(Qe),Ue(rt,Qe))}return{startState:function(){var rt=ke.inMathMode?function(Qe,_e){return De(Qe,_e)}:Ue;return{cmdState:[],f:rt}},copyState:function(rt){return{cmdState:rt.cmdState.slice(),f:rt.f}},token:function(rt,Qe){return Qe.f(rt,Qe)},blankLine:function(rt){rt.f=Ue,rt.cmdState.length=0},lineComment:"%"}}),ee.defineMIME("text/x-stex","stex"),ee.defineMIME("text/x-latex","stex")})},29589:function(vn,Tt,te){(function(ee){ee(te(4631))})(function(ee){"use strict";var de={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},ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ee.defineMode("xml",function(Ge,xe){var Me=Ge.indentUnit,ue={},Ee=xe.htmlMode?de:ke;for(var fe in Ee)ue[fe]=Ee[fe];for(var fe in xe)ue[fe]=xe[fe];var we,Ue;function De(Ae,mt){function je(gt){return mt.tokenize=gt,gt(Ae,mt)}var it=Ae.next();if(it=="<")return Ae.eat("!")?Ae.eat("[")?Ae.match("CDATA[")?je(Qe("atom","]]>")):null:Ae.match("--")?je(Qe("comment","-->")):Ae.match("DOCTYPE",!0,!0)?(Ae.eatWhile(/[\w\._\-]/),je(_e(1))):null:Ae.eat("?")?(Ae.eatWhile(/[\w\._\-]/),mt.tokenize=Qe("meta","?>"),"meta"):(we=Ae.eat("/")?"closeTag":"openTag",mt.tokenize=Ke,"tag bracket");if(it=="&"){var qe;return Ae.eat("#")?Ae.eat("x")?qe=Ae.eatWhile(/[a-fA-F\d]/)&&Ae.eat(";"):qe=Ae.eatWhile(/[\d]/)&&Ae.eat(";"):qe=Ae.eatWhile(/[\w\.\-:]/)&&Ae.eat(";"),qe?"atom":"error"}else return Ae.eatWhile(/[^&<]/),null}De.isInText=!0;function Ke(Ae,mt){var je=Ae.next();if(je==">"||je=="/"&&Ae.eat(">"))return mt.tokenize=De,we=je==">"?"endTag":"selfcloseTag","tag bracket";if(je=="=")return we="equals",null;if(je=="<"){mt.tokenize=De,mt.state=He,mt.tagName=mt.tagStart=null;var it=mt.tokenize(Ae,mt);return it?it+" tag error":"tag error"}else return/[\'\"]/.test(je)?(mt.tokenize=rt(je),mt.stringStartCol=Ae.column(),mt.tokenize(Ae,mt)):(Ae.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function rt(Ae){var mt=function(je,it){for(;!je.eol();)if(je.next()==Ae){it.tokenize=Ke;break}return"string"};return mt.isInAttribute=!0,mt}function Qe(Ae,mt){return function(je,it){for(;!je.eol();){if(je.match(mt)){it.tokenize=De;break}je.next()}return Ae}}function _e(Ae){return function(mt,je){for(var it;(it=mt.next())!=null;){if(it=="<")return je.tokenize=_e(Ae+1),je.tokenize(mt,je);if(it==">")if(Ae==1){je.tokenize=De;break}else return je.tokenize=_e(Ae-1),je.tokenize(mt,je)}return"meta"}}function ge(Ae,mt,je){this.prev=Ae.context,this.tagName=mt,this.indent=Ae.indented,this.startOfLine=je,(ue.doNotIndent.hasOwnProperty(mt)||Ae.context&&Ae.context.noIndent)&&(this.noIndent=!0)}function Ve(Ae){Ae.context&&(Ae.context=Ae.context.prev)}function lt(Ae,mt){for(var je;;){if(!Ae.context||(je=Ae.context.tagName,!ue.contextGrabbers.hasOwnProperty(je)||!ue.contextGrabbers[je].hasOwnProperty(mt)))return;Ve(Ae)}}function He(Ae,mt,je){return Ae=="openTag"?(je.tagStart=mt.column(),Oe):Ae=="closeTag"?ve:He}function Oe(Ae,mt,je){return Ae=="word"?(je.tagName=mt.current(),Ue="tag",We):ue.allowMissingTagName&&Ae=="endTag"?(Ue="tag bracket",We(Ae,mt,je)):(Ue="error",Oe)}function ve(Ae,mt,je){if(Ae=="word"){var it=mt.current();return je.context&&je.context.tagName!=it&&ue.implicitlyClosed.hasOwnProperty(je.context.tagName)&&Ve(je),je.context&&je.context.tagName==it||ue.matchClosing===!1?(Ue="tag",ye):(Ue="tag error",ze)}else return ue.allowMissingTagName&&Ae=="endTag"?(Ue="tag bracket",ye(Ae,mt,je)):(Ue="error",ze)}function ye(Ae,mt,je){return Ae!="endTag"?(Ue="error",ye):(Ve(je),He)}function ze(Ae,mt,je){return Ue="error",ye(Ae,mt,je)}function We(Ae,mt,je){if(Ae=="word")return Ue="attribute",st;if(Ae=="endTag"||Ae=="selfcloseTag"){var it=je.tagName,qe=je.tagStart;return je.tagName=je.tagStart=null,Ae=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(it)?lt(je,it):(lt(je,it),je.context=new ge(je,it,qe==je.indented)),He}return Ue="error",We}function st(Ae,mt,je){return Ae=="equals"?at:(ue.allowMissing||(Ue="error"),We(Ae,mt,je))}function at(Ae,mt,je){return Ae=="string"?Ze:Ae=="word"&&ue.allowUnquoted?(Ue="string",We):(Ue="error",We(Ae,mt,je))}function Ze(Ae,mt,je){return Ae=="string"?Ze:We(Ae,mt,je)}return{startState:function(Ae){var mt={tokenize:De,state:He,indented:Ae||0,tagName:null,tagStart:null,context:null};return Ae!=null&&(mt.baseIndent=Ae),mt},token:function(Ae,mt){if(!mt.tagName&&Ae.sol()&&(mt.indented=Ae.indentation()),Ae.eatSpace())return null;we=null;var je=mt.tokenize(Ae,mt);return(je||we)&&je!="comment"&&(Ue=null,mt.state=mt.state(we||je,Ae,mt),Ue&&(je=Ue=="error"?je+" error":Ue)),je},indent:function(Ae,mt,je){var it=Ae.context;if(Ae.tokenize.isInAttribute)return Ae.tagStart==Ae.indented?Ae.stringStartCol+1:Ae.indented+Me;if(it&&it.noIndent)return ee.Pass;if(Ae.tokenize!=Ke&&Ae.tokenize!=De)return je?je.match(/^(\s*)/)[0].length:0;if(Ae.tagName)return ue.multilineTagIndentPastTag!==!1?Ae.tagStart+Ae.tagName.length+2:Ae.tagStart+Me*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/<!\[CDATA\[/.test(mt))return 0;var qe=mt&&/^<(\/)?([\w_:\.-]*)/.exec(mt);if(qe&&qe[1])for(;it;)if(it.tagName==qe[2]){it=it.prev;break}else if(ue.implicitlyClosed.hasOwnProperty(it.tagName))it=it.prev;else break;else if(qe)for(;it;){var gt=ue.contextGrabbers[it.tagName];if(gt&&gt.hasOwnProperty(qe[2]))it=it.prev;else break}for(;it&&it.prev&&!it.startOfLine;)it=it.prev;return it?it.indent+Me:Ae.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(Ae){Ae.state==at&&(Ae.state=We)},xmlCurrentTag:function(Ae){return Ae.tagName?{name:Ae.tagName,close:Ae.type=="closeTag"}:null},xmlCurrentContext:function(Ae){for(var mt=[],je=Ae.context;je;je=je.prev)je.tagName&&mt.push(je.tagName);return mt.reverse()}}}),ee.defineMIME("text/xml","xml"),ee.defineMIME("application/xml","xml"),ee.mimeModes.hasOwnProperty("text/html")||ee.defineMIME("text/html",{name:"xml",htmlMode:!0})})},19575:function(vn,Tt,te){var ee,de;(function(ke,Ge){vn.exports=Ge(ke)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(ke){"use strict";ke=ke||{};var Ge=ke.Base64,xe="2.6.4",Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(je){for(var it={},qe=0,gt=je.length;qe<gt;qe++)it[je.charAt(qe)]=qe;return it}(Me),Ee=String.fromCharCode,fe=function(je){if(je.length<2){var it=je.charCodeAt(0);return it<128?je:it<2048?Ee(192|it>>>6)+Ee(128|it&63):Ee(224|it>>>12&15)+Ee(128|it>>>6&63)+Ee(128|it&63)}else{var it=65536+(je.charCodeAt(0)-55296)*1024+(je.charCodeAt(1)-56320);return Ee(240|it>>>18&7)+Ee(128|it>>>12&63)+Ee(128|it>>>6&63)+Ee(128|it&63)}},we=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ue=function(je){return je.replace(we,fe)},De=function(je){var it=[0,2,1][je.length%3],qe=je.charCodeAt(0)<<16|(je.length>1?je.charCodeAt(1):0)<<8|(je.length>2?je.charCodeAt(2):0),gt=[Me.charAt(qe>>>18),Me.charAt(qe>>>12&63),it>=2?"=":Me.charAt(qe>>>6&63),it>=1?"=":Me.charAt(qe&63)];return gt.join("")},Ke=ke.btoa&&typeof ke.btoa=="function"?function(je){return ke.btoa(je)}:function(je){if(je.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return je.replace(/[\s\S]{1,3}/g,De)},rt=function(je){return Ke(Ue(String(je)))},Qe=function(je){return je.replace(/[+\/]/g,function(it){return it=="+"?"-":"_"}).replace(/=/g,"")},_e=function(je,it){return it?Qe(rt(je)):rt(je)},ge=function(je){return _e(je,!0)},Ve;ke.Uint8Array&&(Ve=function(je,it){for(var qe="",gt=0,Pt=je.length;gt<Pt;gt+=3){var Xt=je[gt],$e=je[gt+1],Be=je[gt+2],St=Xt<<16|$e<<8|Be;qe+=Me.charAt(St>>>18)+Me.charAt(St>>>12&63)+(typeof $e!="undefined"?Me.charAt(St>>>6&63):"=")+(typeof Be!="undefined"?Me.charAt(St&63):"=")}return it?Qe(qe):qe});var lt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,He=function(je){switch(je.length){case 4:var it=(7&je.charCodeAt(0))<<18|(63&je.charCodeAt(1))<<12|(63&je.charCodeAt(2))<<6|63&je.charCodeAt(3),qe=it-65536;return Ee((qe>>>10)+55296)+Ee((qe&1023)+56320);case 3:return Ee((15&je.charCodeAt(0))<<12|(63&je.charCodeAt(1))<<6|63&je.charCodeAt(2));default:return Ee((31&je.charCodeAt(0))<<6|63&je.charCodeAt(1))}},Oe=function(je){return je.replace(lt,He)},ve=function(je){var it=je.length,qe=it%4,gt=(it>0?ue[je.charAt(0)]<<18:0)|(it>1?ue[je.charAt(1)]<<12:0)|(it>2?ue[je.charAt(2)]<<6:0)|(it>3?ue[je.charAt(3)]:0),Pt=[Ee(gt>>>16),Ee(gt>>>8&255),Ee(gt&255)];return Pt.length-=[0,0,2,1][qe],Pt.join("")},ye=ke.atob&&typeof ke.atob=="function"?function(je){return ke.atob(je)}:function(je){return je.replace(/\S{1,4}/g,ve)},ze=function(je){return ye(String(je).replace(/[^A-Za-z0-9\+\/]/g,""))},We=function(je){return Oe(ye(je))},st=function(je){return String(je).replace(/[-_]/g,function(it){return it=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},at=function(je){return We(st(je))},Ze;ke.Uint8Array&&(Ze=function(je){return Uint8Array.from(ze(st(je)),function(it){return it.charCodeAt(0)})});var Ae=function(){var je=ke.Base64;return ke.Base64=Ge,je};if(ke.Base64={VERSION:xe,atob:ze,btoa:Ke,fromBase64:at,toBase64:_e,utob:Ue,encode:_e,encodeURI:ge,btou:Oe,decode:at,noConflict:Ae,fromUint8Array:Ve,toUint8Array:Ze},typeof Object.defineProperty=="function"){var mt=function(je){return{value:je,enumerable:!1,writable:!0,configurable:!0}};ke.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",mt(function(){return at(this)})),Object.defineProperty(String.prototype,"toBase64",mt(function(je){return _e(this,je)})),Object.defineProperty(String.prototype,"toBase64URI",mt(function(){return _e(this,!0)}))}}return ke.Meteor&&(Base64=ke.Base64),vn.exports?vn.exports.Base64=ke.Base64:(ee=[],de=function(){return ke.Base64}.apply(Tt,ee),de!==void 0&&(vn.exports=de)),{Base64:ke.Base64}})},15979:function(vn,Tt,te){"use strict";te.d(Tt,{hP:function(){return An}});var ee=function(Ie,he){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,me){ce.__proto__=me}||function(ce,me){for(var pe in me)Object.prototype.hasOwnProperty.call(me,pe)&&(ce[pe]=me[pe])})(Ie,he)};function de(Ie,he){function ce(){this.constructor=Ie}ee(Ie,he),Ie.prototype=he===null?Object.create(he):(ce.prototype=he.prototype,new ce)}function ke(Ie,he,ce,me){return new(ce||(ce=Promise))(function(pe,le){function Le(tn){try{Nt(me.next(tn))}catch(an){le(an)}}function dt(tn){try{Nt(me.throw(tn))}catch(an){le(an)}}function Nt(tn){var an;tn.done?pe(tn.value):(an=tn.value,an instanceof ce?an:new ce(function(Yt){Yt(an)})).then(Le,dt)}Nt((me=me.apply(Ie,he||[])).next())})}function Ge(Ie,he){var ce,me,pe,le,Le={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return le={next:dt(0),throw:dt(1),return:dt(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function dt(Nt){return function(tn){return function(an){if(ce)throw new TypeError("Generator is already executing.");for(;Le;)try{if(ce=1,me&&(pe=2&an[0]?me.return:an[0]?me.throw||((pe=me.return)&&pe.call(me),0):me.next)&&!(pe=pe.call(me,an[1])).done)return pe;switch(me=0,pe&&(an=[2&an[0],pe.value]),an[0]){case 0:case 1:pe=an;break;case 4:return Le.label++,{value:an[1],done:!1};case 5:Le.label++,me=an[1],an=[0];continue;case 7:an=Le.ops.pop(),Le.trys.pop();continue;default:if(pe=Le.trys,!((pe=pe.length>0&&pe[pe.length-1])||an[0]!==6&&an[0]!==2)){Le=0;continue}if(an[0]===3&&(!pe||an[1]>pe[0]&&an[1]<pe[3])){Le.label=an[1];break}if(an[0]===6&&Le.label<pe[1]){Le.label=pe[1],pe=an;break}if(pe&&Le.label<pe[2]){Le.label=pe[2],Le.ops.push(an);break}pe[2]&&Le.ops.pop(),Le.trys.pop();continue}an=he.call(Ie,Le)}catch(Yt){an=[6,Yt],me=0}finally{ce=pe=0}if(5&an[0])throw an[1];return{value:an[0]?an[1]:void 0,done:!0}}([Nt,tn])}}}function xe(){for(var Ie=0,he=0,ce=arguments.length;he<ce;he++)Ie+=arguments[he].length;var me=Array(Ie),pe=0;for(he=0;he<ce;he++)for(var le=arguments[he],Le=0,dt=le.length;Le<dt;Le++,pe++)me[pe]=le[Le];return me}var Me=function(){function Ie(){}return Ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ie.setAttributes=function(he,ce){for(var me=0,pe=ce;me<pe.length;me++){var le=pe[me],Le=le[0],dt=le[1];he.setAttribute(Le,dt)}},Ie.createRect=function(he,ce,me){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",he.toString()),pe.setAttribute("height",ce.toString()),me&&Ie.setAttributes(pe,me),pe},Ie.createLine=function(he,ce,me,pe,le){var Le=document.createElementNS("http://www.w3.org/2000/svg","line");return Le.setAttribute("x1",he.toString()),Le.setAttribute("y1",ce.toString()),Le.setAttribute("x2",me.toString()),Le.setAttribute("y2",pe.toString()),le&&Ie.setAttributes(Le,le),Le},Ie.createPolygon=function(he,ce){var me=document.createElementNS("http://www.w3.org/2000/svg","polygon");return me.setAttribute("points",he),ce&&Ie.setAttributes(me,ce),me},Ie.createCircle=function(he,ce){var me=document.createElementNS("http://www.w3.org/2000/svg","circle");return me.setAttribute("cx",(he/2).toString()),me.setAttribute("cy",(he/2).toString()),me.setAttribute("r",he.toString()),ce&&Ie.setAttributes(me,ce),me},Ie.createEllipse=function(he,ce,me){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(he/2).toString()),pe.setAttribute("cy",(ce/2).toString()),pe.setAttribute("rx",(he/2).toString()),pe.setAttribute("ry",(ce/2).toString()),me&&Ie.setAttributes(pe,me),pe},Ie.createGroup=function(he){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return he&&Ie.setAttributes(ce,he),ce},Ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ie.createMarker=function(he,ce,me,pe,le,Le,dt){var Nt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ie.setAttributes(Nt,[["id",he],["orient",ce],["markerWidth",me.toString()],["markerHeight",pe.toString()],["refX",le.toString()],["refY",Le.toString()]]),Nt.appendChild(dt),Nt},Ie.createText=function(he){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),he&&Ie.setAttributes(ce,he),ce},Ie.createTSpan=function(he,ce){var me=document.createElementNS("http://www.w3.org/2000/svg","tspan");return me.textContent=he,ce&&Ie.setAttributes(me,ce),me},Ie.createImage=function(he){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return he&&Ie.setAttributes(ce,he),ce},Ie.createPoint=function(he,ce){var me=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return me.x=he,me.y=ce,me},Ie.createPath=function(he,ce){var me=document.createElementNS("http://www.w3.org/2000/svg","path");return me.setAttribute("d",he),ce&&Ie.setAttributes(me,ce),me},Ie}(),ue=function(){function Ie(){}return Ie.addKey=function(he){Ie.key=he},Object.defineProperty(Ie,"isLicensed",{get:function(){return!!Ie.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ie.key)},enumerable:!1,configurable:!0}),Ie}(),Ee=function(){function Ie(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ie.prototype.rasterize=function(he,ce,me){var pe=this;return new Promise(function(le){var Le=me!==void 0?me:document.createElement("canvas");he===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var dt=document.createElementNS("http://www.w3.org/2000/svg","svg");dt.setAttribute("xmlns","http://www.w3.org/2000/svg"),dt.setAttribute("width",ce.width.baseVal.valueAsString),dt.setAttribute("height",ce.height.baseVal.valueAsString),dt.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),dt.innerHTML=ce.innerHTML,pe.naturalSize===!0?(dt.width.baseVal.value=he.naturalWidth,dt.height.baseVal.value=he.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(dt.width.baseVal.value=pe.width,dt.height.baseVal.value=pe.height),Le.width=dt.width.baseVal.value,Le.height=dt.height.baseVal.value;var Nt=dt.outerHTML,tn=Le.getContext("2d");pe.markersOnly!==!0&&tn.drawImage(he,0,0,Le.width,Le.height);var an=window.URL,Yt=new Image(Le.width,Le.height);Yt.setAttribute("crossOrigin","anonymous");var dn=new Blob([Nt],{type:"image/svg+xml"}),Mt=an.createObjectURL(dn);Yt.onload=function(){tn.drawImage(Yt,0,0),an.revokeObjectURL(Mt);var Wt=Le.toDataURL(pe.imageType,pe.imageQuality);le(Wt)},Yt.src=Mt})},Ie}(),fe=function(){},we=function(){function Ie(he){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+he+"_"}return Object.defineProperty(Ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.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(Ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ie.prototype.addClass=function(he){return this.styleSheet===void 0&&this.addStyleSheet(),he.name=""+this.classNamePrefix+he.localName,this.classes.push(he),this.styleSheet.sheet.insertRule("."+he.name+" {"+he.style+"}",this.styleSheet.sheet.cssRules.length),he},Ie.prototype.addRule=function(he){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(he),this.styleSheet.sheet.insertRule(he.selector+" {"+he.style+"}",this.styleSheet.sheet.cssRules.length)},Ie.prototype.addStyleSheet=function(){var he;this.styleSheet=document.createElement("style"),((he=this.styleSheetRoot)!==null&&he!==void 0?he:document.head).appendChild(this.styleSheet),this.addRule(new Ue("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ue("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ue("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new De("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new De("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ie.prototype.removeStyleSheet=function(){var he;this.styleSheet&&(((he=this.styleSheetRoot)!==null&&he!==void 0?he:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ie}(),Ue=function(Ie,he){this.selector=Ie,this.style=he},De=function(Ie,he){this.localName=Ie,this.style=he},Ke=function(){function Ie(he,ce,me,pe,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=he,this.displayMode=ce,this.markerItems=me,this.uiStyleSettings=pe,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ie.prototype.show=function(he){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=he,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",this.uiContainer.appendChild(me),this.addActionButton(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(me,'<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(le){var Le=document.createElement("div");Le.className=""+ce.toolbarButtonStyleClass.name,Le.setAttribute("data-type-name",le.typeName),Le.innerHTML=le.icon,Le.addEventListener("click",function(){ce.markerToolbarButtonClicked(Le,le)}),ce.buttons.push(Le),ce.markerButtons.push(Le)}),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 pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<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(pe,'<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()},Ie.prototype.addButtonClickListener=function(he){this.buttonClickListeners.push(he)},Ie.prototype.removeButtonClickListener=function(he){this.buttonClickListeners.indexOf(he)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(he),1)},Ie.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ie.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var he=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<he||ce===he&&this.markerButtons.length-1===he?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===he&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},Ie.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")},Ie.prototype.resetButtonStyles=function(){var he=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(he.uiStyleSettings.toolbarButtonStyleColorsClassName?he.uiStyleSettings.toolbarButtonStyleColorsClassName:he.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(he.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?he.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:he.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(he.uiStyleSettings.toolbarButtonStyleColorsClassName?he.uiStyleSettings.toolbarButtonStyleColorsClassName:he.toolbarButtonStyleColorsClass.name)})},Ie.prototype.addActionButton=function(he,ce,me){var pe=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ce,le.setAttribute("data-action",me),le.addEventListener("click",function(){pe.actionToolbarButtonClicked(le,me)}),me){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}he.appendChild(le),this.buttons.push(le)},Ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new De("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 De("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new De("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new De("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 De("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var he=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new De("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*he)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*he)+`px;
padding: `+he+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new De("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ue("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ue("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ie.prototype.markerToolbarButtonClicked=function(he,ce){this.setActiveButton(he),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(me){return me("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},Ie.prototype.actionToolbarButtonClicked=function(he,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(me){return me("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ie.prototype.setActiveButton=function(he){this.resetButtonStyles(),he.className=he.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),he.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ie.prototype.setActiveMarkerButton=function(he){var ce=this.markerButtons.find(function(me){return me.getAttribute("data-type-name")===he});ce&&this.setActiveButton(ce)},Ie.prototype.setCurrentMarker=function(he){var ce=this;this.currentMarker=he,this.buttons.filter(function(me){return/delete|notes/.test(me.getAttribute("data-action"))}).forEach(function(me){ce.currentMarker===void 0?(me.style.fillOpacity="0.4",me.style.pointerEvents="none"):(me.style.fillOpacity="1",me.style.pointerEvents="all")})},Ie}(),rt=function(){function Ie(he,ce,me,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=he,this.displayMode=ce,this.uiStyleSettings=me,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ie.prototype.addStyles=function(){var he;this.toolboxStyleClass=this.styles.addClass(new De("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 De("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new De("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new De("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new De("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 De("toolbox-panel-row_colors",`
background-color: `+((he=this.uiStyleSettings.toolboxBackgroundColor)!==null&&he!==void 0?he:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new De("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
padding: `+ce+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new De("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ue("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ue("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ie.prototype.show=function(he){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=he,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ie.prototype.setPanelButtons=function(he){var ce,me,pe=this;this.panels=he,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((me=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&me!==void 0?me:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Le;le.uiStyleSettings=pe.uiStyleSettings;var dt=document.createElement("div");dt.className=pe.toolboxButtonStyleClass.name+" "+((Le=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Le!==void 0?Le:pe.toolboxButtonStyleColorsClass.name),dt.innerHTML=le.icon,dt.title=le.title,dt.addEventListener("click",function(){pe.panelButtonClick(le)}),pe.panelButtons.push(dt),pe.buttonRow.appendChild(dt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ie.prototype.panelButtonClick=function(he){var ce=this,me=-1;if(he!==this.activePanel){me=this.panels.indexOf(he),this.panelRow.innerHTML="";var pe=he.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),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=he}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Le){var dt,Nt;le.className=ce.toolboxButtonStyleClass.name+" "+(Le===me?""+((dt=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&dt!==void 0?dt:ce.toolboxActiveButtonStyleColorsClass.name):""+((Nt=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Nt!==void 0?Nt:ce.toolboxButtonStyleColorsClass.name))})},Ie}(),Qe=function(Ie,he){this.title=Ie,this.icon=he},_e=function(Ie){function he(ce,me,pe,le){var Le=Ie.call(this,ce,le||'<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 Le.colors=[],Le.addTransparent=!1,Le.colorBoxes=[],Le.colors=me,Le.currentColor=pe,Le.setCurrentColor=Le.setCurrentColor.bind(Le),Le.getColorBox=Le.getColorBox.bind(Le),Le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");return me.style.overflow="hidden",me.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var le=ce.getColorBox(pe);me.appendChild(le),ce.colorBoxes.push(le)}),me},he.prototype.getColorBox=function(ce){var me=this,pe=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-pe,Le=document.createElement("div");Le.style.display="inline-block",Le.style.boxSizing="content-box",Le.style.width=le-2+"px",Le.style.height=le-2+"px",Le.style.padding="1px",Le.style.marginRight="2px",Le.style.marginBottom="2px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderRadius=(le+2)/2+"px",Le.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){me.setCurrentColor(ce,Le)});var dt=document.createElement("div");return dt.style.display="inline-block",dt.style.width=le-2+"px",dt.style.height=le-2+"px",dt.style.backgroundColor=ce,dt.style.borderRadius=le/2+"px",ce==="transparent"&&(dt.style.fill=this.uiStyleSettings.toolboxAccentColor,dt.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>`),Le.appendChild(dt),Le},he.prototype.setCurrentColor=function(ce,me){var pe=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},he}(Qe),ge=function(){function Ie(he,ce,me){this._state="new",this._isSelected=!1,this._container=he,this._overlayContainer=ce,this.globalSettings=me,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ie.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ie.prototype.ownsTarget=function(he){return!1},Object.defineProperty(Ie.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ie.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ie.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ie.prototype.pointerDown=function(he,ce){},Ie.prototype.dblClick=function(he,ce){},Ie.prototype.manipulate=function(he){},Ie.prototype.pointerUp=function(he){this.stateChanged()},Ie.prototype.dispose=function(){},Ie.prototype.addMarkerVisualToContainer=function(he){this.container.childNodes.length>0?this.container.insertBefore(he,this.container.childNodes[0]):this.container.appendChild(he)},Ie.prototype.getState=function(){return{typeName:Ie.typeName,state:this.state,notes:this.notes}},Ie.prototype.restoreState=function(he){this._state=he.state,this.notes=he.notes},Ie.prototype.scale=function(he,ce){},Ie.prototype.colorChanged=function(he){this.onColorChanged&&this.onColorChanged(he),this.stateChanged()},Ie.prototype.fillColorChanged=function(he){this.onFillColorChanged&&this.onFillColorChanged(he),this.stateChanged()},Ie.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var he=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),he.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(he)&&this.onStateChanged(this)}},Ie.typeName="MarkerBase",Ie}(),Ve=function(){function Ie(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ie.prototype.findGripByVisual=function(he){return this.topLeft.ownsTarget(he)?this.topLeft:this.topCenter.ownsTarget(he)?this.topCenter:this.topRight.ownsTarget(he)?this.topRight:this.centerLeft.ownsTarget(he)?this.centerLeft:this.centerRight.ownsTarget(he)?this.centerRight:this.bottomLeft.ownsTarget(he)?this.bottomLeft:this.bottomCenter.ownsTarget(he)?this.bottomCenter:this.bottomRight.ownsTarget(he)?this.bottomRight:void 0},Ie}(),lt=function(){function Ie(){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 Ie.prototype.ownsTarget=function(he){return he===this.visual||he===this.visual.childNodes[0]||he===this.visual.childNodes[1]},Ie}(),He=function(){function Ie(){}return Ie.toITransformMatrix=function(he){return{a:he.a,b:he.b,c:he.c,d:he.d,e:he.e,f:he.f}},Ie.toSVGMatrix=function(he,ce){return he.a=ce.a,he.b=ce.b,he.c=ce.c,he.d=ce.d,he.e=ce.e,he.f=ce.f,he},Ie}(),Oe=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Me.createTransform()),le.setupControlBox(),le}return de(he,Ie),Object.defineProperty(he.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var me=Me.createTransform();this._visual.transform.baseVal.appendItem(me)},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(ce){return!!Ie.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var pe=this.unrotatePoint(ce);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(me),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(me)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},he.prototype.pointerUp=function(ce){var me=this.state;Ie.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",me==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},he.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},he.prototype.manipulate=function(ce){var me=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(me.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(me.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(me):this.state==="rotate"&&this.rotate(ce)},he.prototype.resize=function(ce){var me=this.manipulationStartLeft,pe=this.manipulationStartWidth,le=this.manipulationStartTop,Le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:me=this.manipulationStartLeft+ce.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-me;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Le=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Le=this.manipulationStartHeight+ce.y-this.manipulationStartY}pe>=0?(this.left=me,this.width=pe):(this.left=me+pe,this.width=-pe),Le>=0?(this.top=le,this.height=Le):(this.top=le+Le,this.height=-Le),this.setSize()},he.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},he.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var me=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*me,this.applyRotation()}},he.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},he.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var me=this.container.getCTM(),pe=Me.createPoint(ce.x,ce.y);return{x:(pe=pe.matrixTransform(me)).x,y:pe.y}},he.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var me=this.container.getCTM();me=me.inverse();var pe=Me.createPoint(ce.x,ce.y);return{x:(pe=pe.matrixTransform(me)).x,y:pe.y}},he.prototype.select=function(){Ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},he.prototype.deselect=function(){Ie.prototype.deselect.call(this),this.controlBox.style.display="none"},he.prototype.setupControlBox=function(){this.controlBox=Me.createGroup();var ce=Me.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),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 Ve,this.addControlGrips(),this.controlBox.style.display="none"},he.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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()},he.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()},he.prototype.createGrip=function(){var ce=new lt;return ce.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(ce.visual),ce},he.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,me=-ce/2,pe=me,le=(this.width+this.CB_DISTANCE)/2-ce/2,Le=(this.height+this.CB_DISTANCE)/2-ce/2,dt=this.height+this.CB_DISTANCE-ce/2,Nt=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,me,pe),this.positionGrip(this.controlGrips.topCenter.visual,le,pe),this.positionGrip(this.controlGrips.topRight.visual,Nt,pe),this.positionGrip(this.controlGrips.centerLeft.visual,me,Le),this.positionGrip(this.controlGrips.centerRight.visual,Nt,Le),this.positionGrip(this.controlGrips.bottomLeft.visual,me,dt),this.positionGrip(this.controlGrips.bottomCenter.visual,le,dt),this.positionGrip(this.controlGrips.bottomRight.visual,Nt,dt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,pe-3*this.CB_DISTANCE)},he.prototype.positionGrip=function(ce,me,pe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(me,pe),ce.transform.baseVal.replaceItem(le,0)},he.prototype.hideControlBox=function(){this.controlBox.style.display="none"},he.prototype.showControlBox=function(){this.controlBox.style.display=""},he.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:He.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:He.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ie.prototype.getState.call(this))},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce);var me=ce;this.left=me.left,this.top=me.top,this.width=me.width,this.height=me.height,this.rotationAngle=me.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(He.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,me.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(He.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,me.containerTransformMatrix))},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me);var pe=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:pe.x*ce,y:pe.y*me});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*me,this.adjustControlBox()},he}(ge),ve=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},he.prototype.manipulate=function(ce){Ie.prototype.manipulate.call(this,ce)},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),this.setSize()},he.prototype.setSize=function(){Ie.prototype.setSize.call(this),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},he.prototype.pointerUp=function(ce){Ie.prototype.pointerUp.call(this,ce),this.setSize()},he.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},he.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},he.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},he.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},he.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ie.prototype.getState.call(this))},he.prototype.restoreState=function(ce){var me=ce;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.opacity=me.opacity,this.createVisual(),Ie.prototype.restoreState.call(this,ce),this.setSize()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.setSize()},he.title="Rectangle marker",he}(Oe),ye=function(Ie){function he(ce,me,pe,le){var Le=Ie.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Le.widths=[],Le.widthBoxes=[],Le.widths=me,Le.currentWidth=pe,Le.setCurrentWidth=Le.setCurrentWidth.bind(Le),Le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",this.widths.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=pe===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(pe,le)}),me.appendChild(le);var Le=document.createElement("div");Le.innerText=pe.toString(),Le.style.marginRight="5px",le.appendChild(Le);var dt=document.createElement("div");dt.style.minHeight="20px",dt.style.flexGrow="2",dt.style.display="flex",dt.style.alignItems="center";var Nt=document.createElement("hr");Nt.style.minWidth="20px",Nt.style.border="0px",Nt.style.borderTop=pe+"px solid "+ce.uiStyleSettings.toolboxColor,Nt.style.flexGrow="2",dt.appendChild(Nt),le.appendChild(dt),ce.widthBoxes.push(le)}),me},he.prototype.setCurrentWidth=function(ce,me){var pe=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},he}(Qe),ze=function(Ie){function he(ce,me,pe,le){var Le=Ie.call(this,ce,le||'<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 Le.styles=[],Le.styleBoxes=[],Le.styles=me,Le.currentStyle=pe,Le.setCurrentStyle=Le.setCurrentStyle.bind(Le),Le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",this.styles.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=pe===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(pe,le)}),me.appendChild(le);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.overflow="hidden";var dt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
</svg>`;Le.innerHTML=dt,le.appendChild(Le),ce.styleBoxes.push(le)}),me},he.prototype.setCurrentStyle=function(ce,me){var pe=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},he}(Qe),We=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new _e("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new ze("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(he,Ie),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Ie.prototype.getState.call(this);return ce.typeName=he.typeName,ce},he.typeName="FrameMarker",he.title="Frame marker",he.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',he}(ve),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"},at=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!!Ie.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(me)?this.activeGrip=this.grip1:this.grip2.ownsTarget(me)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},he.prototype.pointerUp=function(ce){var me=this.state;Ie.prototype.pointerUp.call(this,ce),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(ce),this._state="select",me==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},he.prototype.adjustVisual=function(){},he.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},he.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},he.prototype.select=function(){Ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},he.prototype.deselect=function(){Ie.prototype.deselect.call(this),this.controlBox.style.display="none"},he.prototype.setupControlBox=function(){this.controlBox=Me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},he.prototype.adjustControlBox=function(){this.positionGrips()},he.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},he.prototype.createGrip=function(){var ce=new lt;return ce.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(ce.visual),ce},he.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},he.prototype.positionGrip=function(ce,me,pe){var le=ce.transform.baseVal.getItem(0);le.setTranslate(me,pe),ce.transform.baseVal.replaceItem(le,0)},he.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ie.prototype.getState.call(this))},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce);var me=ce;this.x1=me.x1,this.y1=me.y1,this.x2=me.x2,this.y2=me.y2},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.x1=this.x1*ce,this.y1=this.y1*me,this.x2=this.x2*ce,this.y2=this.y2*me,this.adjustVisual(),this.adjustControlBox()},he}(ge),Ze=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new _e("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new ze("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},he.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()]]))},he.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},he.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},he.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce);var me=ce;this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.createVisual(),this.adjustVisual()},he.typeName="LineMarker",he.title="Line marker",he.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',he}(at),Ae=function(Ie){function he(ce,me,pe,le){var Le=Ie.call(this,ce,le||'<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 Le.fonts=[],Le.fontBoxes=[],Le.fonts=me,Le.currentFont=pe,Le.setCurrentFont=Le.setCurrentFont.bind(Le),Le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");return me.style.overflow="hidden",me.style.flexGrow="2",this.fonts.forEach(function(pe){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=pe===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(pe,le)}),me.appendChild(le);var Le=document.createElement("div");Le.style.display="flex",Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.fontFamily=pe,Le.style.overflow="hidden";var dt=document.createElement("div");dt.style.whiteSpace="nowrap",dt.style.overflow="hidden",dt.style.textOverflow="ellipsis",dt.innerHTML="The quick brown fox jumps over the lazy dog",Le.appendChild(dt),le.appendChild(Le),ce.fontBoxes.push(le)}),me},he.prototype.setCurrentFont=function(ce,me){var pe=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},he}(Qe),mt=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=pe.defaultColor,le.fontFamily=pe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new _e("Color",pe.defaultColorSet,pe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Ae("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){if(Ie.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var me=!1;return this.textElement.childNodes.forEach(function(pe){pe===ce&&(me=!0)}),me},he.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()},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},he.prototype.renderText=function(){var ce=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(me){ce.textElement.appendChild(Me.createTSpan(me.trim()===""?" ":me.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},he.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),me=1;if(ce.width>0&&ce.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;me=Math.min(pe,le)}return me},he.prototype.getTextPosition=function(ce){var me=this.textElement.getBBox(),pe=0,le=0;return me.width>0&&me.height>0&&(pe=(this.width-me.width*ce)/2,le=this.height/2-me.height*ce/2),{x:pe,y:le}},he.prototype.sizeText=function(){var ce=this.textElement.getBBox(),me=this.getTextScale(),pe=this.getTextPosition(me);pe.y-=ce.y*me,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+me+", "+me+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(me,me))},he.prototype.manipulate=function(ce){Ie.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},he.prototype.setSize=function(){Ie.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()]]))},he.prototype.pointerUp=function(ce){var me=this.state;me==="creating"&&(this._suppressMarkerCreateEvent=!0),Ie.prototype.pointerUp.call(this,ce),this.setSize(),(me==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},he.prototype.showTextEditor=function(){var ce=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(me){me.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var me=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&me>.9;)me-=.1,ce.textEditor.style.fontSize=Math.max(me,.9)+"em"}),this.textEditor.addEventListener("keyup",function(me){me.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(me){if(me.clipboardData){var pe=me.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(pe)),me.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},he.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),me=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),le={x:pe.width*ce,y:pe.height*ce};me.x-=le.x/2,me.y-=le.y/2,this.textEditor.style.top=me.y+"px",this.textEditor.style.left=me.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-me.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},he.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},he.prototype.select=function(){Ie.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},he.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ie.prototype.deselect.call(this)},he.prototype.dblClick=function(ce,me){Ie.prototype.dblClick.call(this,ce,me),this.showTextEditor()},he.prototype.setColor=function(ce){this.textElement&&Me.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},he.prototype.setFont=function(ce){this.textElement&&Me.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},he.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},he.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){var me=ce;this.color=me.color,this.fontFamily=me.fontFamily,this.padding=me.padding,this.text=me.text,this.createVisual(),Ie.prototype.restoreState.call(this,ce),this.setSize()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.setSize(),this.sizeText(),this.positionTextEditor()},he.typeName="TextMarker",he.title="Text marker",he.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>',he}(Oe),je=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=pe.defaultColor,le.lineWidth=pe.defaultStrokeWidth,le.pixelRatio=pe.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new _e("Color",pe.defaultColorSet,pe.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},he.prototype.createVisual=function(){this.visual=Me.createGroup(),this.drawingImage=Me.createImage(),this.visual.appendChild(this.drawingImage);var ce=Me.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},he.prototype.pointerDown=function(ce,me){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(ce.x,ce.y),this.drawing=!0):Ie.prototype.pointerDown.call(this,ce,me)},he.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):Ie.prototype.manipulate.call(this,ce)},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},he.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ie.prototype.pointerUp.call(this,ce)},he.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)},he.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ie.prototype.select.call(this)},he.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ie.prototype.deselect.call(this)},he.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),me=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=me[0],le=me[1],Le=me[2],dt=me[3],Nt=!1,tn=0;tn<this.canvasElement.height;tn++)for(var an=0;an<this.canvasElement.width;an++)ce.data[tn*this.canvasElement.width*4+4*an+3]>0&&(Nt=!0,tn<le&&(le=tn),an<pe&&(pe=an),tn>dt&&(dt=tn),an>Le&&(Le=an));if(Nt){this.left=pe/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Le-pe)/this.pixelRatio,this.height=(dt-le)/this.pixelRatio;var Yt=document.createElement("canvas");Yt.width=Le-pe,Yt.height=dt-le,Yt.getContext("2d").putImageData(this.canvasContext.getImageData(pe,le,Le-pe,dt-le),0,0),this.drawingImgUrl=Yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},he.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})},he.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},he.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){this.createVisual(),Ie.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.setDrawingImage()},he.typeName="FreehandMarker",he.title="Freehand marker",he.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>',he}(Oe),it=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,pe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=me,le.setCurrentType=le.setCurrentType.bind(le),le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2";for(var pe=function(dt){var Nt="both";switch(dt){case 0:Nt="both";break;case 1:Nt="start";break;case 2:Nt="end";break;case 3:Nt="none"}var tn=document.createElement("div");if(tn.style.display="flex",tn.style.flexGrow="2",tn.style.alignItems="center",tn.style.justifyContent="space-between",tn.style.padding="5px",tn.style.borderWidth="2px",tn.style.borderStyle="solid",tn.style.borderColor=Nt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",tn.addEventListener("click",function(){ce.setCurrentType(Nt,tn)}),me.appendChild(tn),Nt==="both"||Nt==="start"){var an=document.createElement("div");an.style.display="flex",an.style.alignItems="center",an.style.minHeight="20px",an.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,an.style.marginLeft="5px",tn.appendChild(an)}var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.style.flexGrow="2";var dn=document.createElement("hr");if(dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),dn.style.flexGrow="2",Yt.appendChild(dn),tn.appendChild(Yt),Nt==="both"||Nt==="end"){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.minHeight="20px",Mt.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="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Mt.style.marginRight="5px",tn.appendChild(Mt)}le.typeBoxes.push(tn)},le=this,Le=0;Le<4;Le++)pe(Le);return me},he.prototype.setCurrentType=function(ce,me){var pe=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},he}(Qe),qe=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new it("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},he.prototype.getArrowPoints=function(ce,me){var pe=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-pe/2+","+(me+le/2)+" "+ce+","+(me-le/2)+" "+(ce+pe/2)+","+(me+le/2)},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="creating"&&this.createTips()},he.prototype.adjustVisual=function(){if(Ie.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 ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var me=this.arrow1.transform.baseVal.getItem(0);me.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(me,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},he.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce);var me=ce;this.arrowType=me.arrowType,this.createTips(),this.adjustVisual()},he.typeName="ArrowMarker",he.title="Arrow marker",he.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',he}(Ze),gt=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.fillColor=pe.defaultFillColor,le.strokeWidth=0,le.fillPanel=new _e("Color",pe.defaultColorSet,pe.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return de(he,Ie),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Ie.prototype.getState.call(this);return ce.typeName=he.typeName,ce},he.typeName="CoverMarker",he.title="Cover marker",he.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',he}(ve),Pt=function(Ie){function he(ce,me,pe,le){var Le=Ie.call(this,ce,le||'<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 Le.opacities=[],Le.opacityBoxes=[],Le.opacities=me,Le.currentOpacity=pe,Le.setCurrentOpacity=Le.setCurrentOpacity.bind(Le),Le}return de(he,Ie),he.prototype.getUi=function(){var ce=this,me=document.createElement("div");return me.style.display="flex",me.style.overflow="hidden",me.style.flexGrow="2",me.style.justifyContent="space-between",this.opacities.forEach(function(pe){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=pe===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(pe,le)}),me.appendChild(le);var Le=document.createElement("div");Le.innerText=100*pe+"%",le.appendChild(Le),ce.opacityBoxes.push(le)}),me},he.prototype.setCurrentOpacity=function(ce,me){var pe=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===me?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},he}(Qe),Xt=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=pe.defaultHighlightColor,le.strokeWidth=0,le.opacity=pe.defaultHighlightOpacity,le.fillPanel=new _e("Color",pe.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Pt("Opacity",pe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return de(he,Ie),he.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Ie.prototype.getState.call(this);return ce.typeName=he.typeName,ce},he.typeName="HighlightMarker",he.title="Highlight marker",he.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>',he}(gt),$e='<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>',Be='<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>',St=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=pe.defaultStrokeColor,le.bgColor=pe.defaultFillColor,le.fontFamily=pe.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new _e("Text color",pe.defaultColorSet,le.color,$e),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new _e("Fill color",pe.defaultColorSet,le.bgColor,Be),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Ae("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new lt,le.tipGrip.visual.transform.baseVal.appendItem(Me.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return Ie.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},he.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)},he.prototype.pointerDown=function(ce,me){this.state==="new"&&Ie.prototype.pointerDown.call(this,ce,me),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(me)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ie.prototype.pointerDown.call(this,ce,me)},he.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ie.prototype.pointerUp.call(this,ce);else{var me=this.state==="creating";Ie.prototype.pointerUp.call(this,ce),this.setTipPoints(me),this.positionTip()}},he.prototype.manipulate=function(ce){if(this.tipMoving){var me=this.unrotatePoint(ce);this.tipPosition={x:me.x-this.manipulationStartLeft,y:me.y-this.manipulationStartTop},this.positionTip()}else Ie.prototype.manipulate.call(this,ce)},he.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(Me.setAttributes(this.bgRectangle,[["fill",ce]]),Me.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},he.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},he.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var me=Math.min(this.height/2,15),pe=this.height/5;ce&&(this.tipPosition={x:me+pe/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:me,y:0},this.tipBase2Position={x:me+pe,y:0}):(this.tipBase1Position={x:0,y:me},this.tipBase2Position={x:0,y:me+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-me-pe,y:0},this.tipBase2Position={x:this.width-me,y:0}):(this.tipBase1Position={x:this.width,y:me},this.tipBase2Position={x:this.width,y:me+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-me-pe,y:this.height},this.tipBase2Position={x:this.width-me,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-me-pe},this.tipBase2Position={x:this.width,y:this.height-me}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,me=Math.min(this.width/2,15),this.tipBase1Position={x:me,y:this.height},this.tipBase2Position={x:me+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-me},this.tipBase2Position={x:0,y:this.height-me-pe})},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),this.positionTip()},he.prototype.positionTip=function(){Me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),he.prototype.select=function(){this.positionTip(),Ie.prototype.select.call(this)},he.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){var me=ce;this.bgColor=me.bgColor,this.tipPosition=me.tipPosition,Ie.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*me},this.positionTip()},he.typeName="CalloutMarker",he.title="Callout marker",he.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>',he}(mt),Vt=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.fillColor=pe.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new _e("Line color",xe(pe.defaultColorSet,["transparent"]),pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new _e("Fill color",xe(pe.defaultColorSet,["transparent"]),le.fillColor,Be),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new ze("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new Pt("Opacity",pe.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},he.prototype.manipulate=function(ce){Ie.prototype.manipulate.call(this,ce)},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),this.setSize()},he.prototype.setSize=function(){Ie.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()]])},he.prototype.pointerUp=function(ce){Ie.prototype.pointerUp.call(this,ce),this.setSize()},he.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},he.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},he.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},he.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},he.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){var me=ce;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.opacity=me.opacity,this.createVisual(),Ie.prototype.restoreState.call(this,ce),this.setSize()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.setSize()},he.typeName="EllipseMarker",he.title="Ellipse marker",he.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>',he}(Oe),Rt=function(Ie){function he(ce,me,pe){return Ie.call(this,ce,me,pe)||this}return de(he,Ie),Object.defineProperty(he.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.state==="creating"&&this.createTips()},he.prototype.adjustVisual=function(){if(Ie.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 ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),me=this.tip1.transform.baseVal.getItem(0);me.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(me,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Ie.prototype.getState.call(this);return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},he.typeName="MeasurementMarker",he.title="Measurement marker",he.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>',he}(Ze),ht=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.strokePanel.colors=pe.defaultColorSet,le.fillColor="transparent",le}return de(he,Ie),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Ie.prototype.getState.call(this);return ce.typeName=he.typeName,ce},he.typeName="EllipseFrameMarker",he.title="Ellipse frame marker",he.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>',he}(Vt),Bt=function(){function Ie(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ie.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ie.prototype.addUndoStep=function(he){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(he)||(this.undoStack.push(he),JSON.stringify(this.lastRedoStep)!==JSON.stringify(he)&&this.redoStack.splice(0,this.redoStack.length))},Ie.prototype.replaceLastUndoStep=function(he){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=he)},Ie.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ie.prototype.undo=function(){if(this.undoStack.length>1){var he=this.undoStack.pop();return he!==void 0&&this.redoStack.push(he),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ie.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ie}(),_t=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.strokePanel=new _e("Line color",pe.defaultColorSet,pe.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new ze("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},he.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},he.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)},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(me)&&(this.activeGrip=this.curveGrip,this._state="resize")},he.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()]]))},he.prototype.setupControlBox=function(){Ie.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)},he.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ie.prototype.addControlGrips.call(this)},he.prototype.positionGrips=function(){Ie.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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()))},he.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),Ie.prototype.manipulate.call(this,ce)},he.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),Ie.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},he.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},he.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},he.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},he.prototype.scale=function(ce,me){this.curveX=this.curveX*ce,this.curveY=this.curveY*me,Ie.prototype.scale.call(this,ce,me)},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ie.prototype.getState.call(this));return ce.typeName=he.typeName,ce},he.prototype.restoreState=function(ce){Ie.prototype.restoreState.call(this,ce);var me=ce;this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.curveX=me.curveX,this.curveY=me.curveY,this.createVisual(),this.adjustVisual()},he.typeName="CurveMarker",he.title="Curve marker",he.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>',he}(at),Fn=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,me,pe)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=pe.defaultColor,le.strokeWidth=pe.defaultStrokeWidth,le.strokeDasharray=pe.defaultStrokeDasharray,le.fillColor=pe.defaultFillColor,le.textColor=pe.defaultStrokeColor,le.fontFamily=pe.defaultFontFamily,le.fontSize=pe.defaultCaptionFontSize,le.captionText=pe.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new _e("Line color",xe(pe.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new _e("Fill color",xe(pe.defaultColorSet,["transparent"]),le.fillColor,Be),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new ye("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new ze("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Ae("Font",pe.defaultFontFamilies,pe.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new _e("Text color",pe.defaultColorSet,le.textColor,$e),le.textColorPanel.onColorChanged=le.setTextColor,le}return de(he,Ie),he.prototype.ownsTarget=function(ce){return!(!Ie.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},he.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()},he.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},he.prototype.pointerDown=function(ce,me){Ie.prototype.pointerDown.call(this,ce,me),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},he.prototype.manipulate=function(ce){Ie.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},he.prototype.resize=function(ce){Ie.prototype.resize.call(this,ce),this.setSize()},he.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.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')"]])},he.prototype.showTextEditor=function(){var ce=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(me){me.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(me){me.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(me){me.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},he.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"))},he.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},he.prototype.setFont=function(ce){this.captionElement&&Me.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},he.prototype.setTextColor=function(ce){this.captionElement&&Me.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},he.prototype.setSize=function(){Ie.prototype.setSize.call(this),Me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},he.prototype.pointerUp=function(ce){Ie.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},he.prototype.dblClick=function(ce,me){Ie.prototype.dblClick.call(this,ce,me),this.showTextEditor()},he.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&Me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},he.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&Me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},he.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&Me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},he.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&Me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),he.prototype.getState=function(){var ce=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},Ie.prototype.getState.call(this));return ce.typeName=this.typeName,ce},he.prototype.restoreState=function(ce){var me=ce;this.fillColor=me.fillColor,this.strokeColor=me.strokeColor,this.strokeWidth=me.strokeWidth,this.strokeDasharray=me.strokeDasharray,this.textColor=me.textColor,this.fontFamily=me.fontFamily,this.captionText=me.captionText,this.fontSize=me.fontSize,this.createVisual(),Ie.prototype.restoreState.call(this,ce),this.setSize()},he.prototype.scale=function(ce,me){Ie.prototype.scale.call(this,ce,me),this.setSize()},he.typeName="CaptionFrameMarker",he.title="Caption frame marker",he.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>',he}(Oe),kn=function(){function Ie(he,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=he,this.cancelable=ce}return Object.defineProperty(Ie.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ie.prototype.preventDefault=function(){this._defaultPrevented=!0},Ie}(),kt=function(Ie){function he(ce,me,pe){var le=Ie.call(this,ce,!1)||this;return le.dataUrl=me,le.state=pe,le}return de(he,Ie),he}(kn),un=function(Ie){function he(ce,me,pe){pe===void 0&&(pe=!1);var le=Ie.call(this,ce,pe)||this;return le.marker=me,le}return de(he,Ie),he}(kn),Wn=function(){function Ie(){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 Ie.prototype.addEventListener=function(he,ce){this[he].push(ce)},Ie.prototype.removeEventListener=function(he,ce){var me=this[he].indexOf(ce);me>-1&&this[he].splice(me,1)},Ie}(),An=function(){function Ie(he){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 Bt,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 Wn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ie.instanceCounter++,this.styles=new we(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=he,this.targetRoot=document.body,this.width=he.clientWidth,this.height=he.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(Ie.prototype,"ALL_MARKER_TYPES",{get:function(){return[We,je,qe,mt,ht,Vt,Xt,St,Rt,gt,Ze,_t,Fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[We,je,qe,mt,Vt,Xt,St]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"BASIC_MARKER_TYPES",{get:function(){return[We,je,qe,mt,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(he){var ce=this;this._availableMarkerTypes.splice(0),he.forEach(function(me){if(typeof me=="string"){var pe=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===me});pe!==void 0&&ce._availableMarkerTypes.push(pe)}else ce._availableMarkerTypes.push(me)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(he){this._zoomLevel=he,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(Ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ie.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ie.prototype.show=function(){var he=this;this.styles.styleSheetRoot===void 0&&fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new kn(he))})},Ie.prototype.render=function(){return ke(this,void 0,void 0,function(){var he;return Ge(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(he=new Ee).naturalSize=this.renderAtNaturalSize,he.imageType=this.renderImageType,he.imageQuality=this.renderImageQuality,he.markersOnly=this.renderMarkersOnly,he.width=this.renderWidth,he.height=this.renderHeight,[4,he.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,he.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},Ie.prototype.close=function(he){var ce=this;if(he===void 0&&(he=!1),this.isOpen){var me=!1;he||this.eventListeners.beforeclose.forEach(function(pe){var le=new kn(ce,!0);pe(le),le.defaultPrevented&&(me=!0)}),me||(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(pe){return pe(new kn(ce))}),this.detachEvents(),this._isOpen=!1)}},Ie.prototype.addMarkersToToolbar=function(){for(var he,ce=[],me=0;me<arguments.length;me++)ce[me]=arguments[me];(he=this._availableMarkerTypes).push.apply(he,ce)},Ie.prototype.addRenderEventListener=function(he){this.addEventListener("render",function(ce){he(ce.dataUrl,ce.state)})},Ie.prototype.removeRenderEventListener=function(he){},Ie.prototype.addCloseEventListener=function(he){this.addEventListener("close",function(){he()})},Ie.prototype.removeCloseEventListener=function(he){},Ie.prototype.setupResizeObserver=function(){var he=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){he.resize(he.target.clientWidth,he.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return he.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ie.prototype.onPopupTargetResize=function(){var he=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/he>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*he:this.editorCanvas.clientWidth,me=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/he;this.resize(ce,me)},Ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ie.prototype.resize=function(he,ce){this._isResizing=!0;var me=he/this.imageWidth,pe=ce/this.imageHeight;this.imageWidth=Math.round(he),this.imageHeight=Math.round(ce),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(me,pe),this._isResizing=!1},Ie.prototype.scaleMarkers=function(he,ce){var me,pe=this;this._currentMarker&&this._currentMarker instanceof mt?this._currentMarker.scale(he,ce):(me=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==pe._currentMarker&&le.scale(he,ce)}),me!==void 0&&this.setCurrentMarker(me)},Ie.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"},Ie.prototype.setTopLeft=function(){var he=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=he.left-ce.left,this.top=he.top-ce.top},Ie.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)},Ie.prototype.addDefs=function(){for(var he,ce=[],me=0;me<arguments.length;me++)ce[me]=arguments[me];this.defs=Me.createDefs(),this.addDefsToImage(),(he=this.defs).append.apply(he,ce)},Ie.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ie.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)},Ie.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ie.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ie.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)},Ie.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ie.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)},Ie.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 he=document.createElement("a");he.href="https://markerjs.com/",he.target="_blank",he.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>',he.title="Powered by marker.js",he.style.display="grid",he.style.alignItems="center",he.style.justifyItems="center",he.style.padding="3px",he.style.width="20px",he.style.height="20px",this.logoUI.appendChild(he),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ie.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")},Ie.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"},Ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ie.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 he=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=he+"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 Ke(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 rt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ie.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ie.prototype.removeMarker=function(he){this.markerImage.removeChild(he.container),this.markers.indexOf(he)>-1&&this.markers.splice(this.markers.indexOf(he),1),he.dispose()},Ie.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())},Ie.prototype.toolbarButtonClicked=function(he,ce){if(he==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(he==="action")switch(ce){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()}},Ie.prototype.deleteSelectedMarker=function(){var he=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var le=new un(he,he._currentMarker,!0);pe(le),le.defaultPrevented&&(ce=!0)}),!ce){var me=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(pe){return pe(new un(he,me))})}}},Ie.prototype.clear=function(){var he=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Le){var dt=new un(he,void 0,!0);Le(dt),dt.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var me=function(Le){var dt=pe.markers[Le];pe.setCurrentMarker(pe.markers[Le]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(Nt){return Nt(new un(he,dt))})},pe=this,le=this.markers.length-1;le>=0;le--)me(le);this.addUndoStep()}},Object.defineProperty(Ie.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ie.prototype.showNotesEditor=function(){var he;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=(he=this._currentMarker.notes)!==null&&he!==void 0?he:"",this.overlayContainer.appendChild(this.notesArea))},Ie.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)},Ie.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ie.prototype.addUndoStep=function(){var he=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),me=this.undoRedoManager.getLastUndoStep();if(!me||me.width===ce.width&&me.height===ce.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new kn(he))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(le){return le(new kn(he))})}},Ie.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ie.prototype.undoStep=function(){var he=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(me){return me(new kn(he))}))},Ie.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ie.prototype.redoStep=function(){var he=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(me){return me(new kn(he))}))},Ie.prototype.stepZoom=function(){var he=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=he<this.zoomSteps.length-1?this.zoomSteps[he+1]:this.zoomSteps[0]},Ie.prototype.panTo=function(he){this.contentDiv.scrollBy({left:this.prevPanPoint.x-he.x,top:this.prevPanPoint.y-he.y}),this.prevPanPoint=he},Ie.prototype.startRenderAndClose=function(){return ke(this,void 0,void 0,function(){var he,ce,me=this;return Ge(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return he=pe.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(le){return le(new kt(me,he,ce))}),this.close(!0),[2]}})})},Ie.prototype.getState=function(he){he===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(me){return ce.markers.push(me.getState())}),ce},Ie.prototype.restoreState=function(he){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);he.markers.forEach(function(me){var pe=ce._availableMarkerTypes.find(function(Le){return Le.typeName===me.typeName});if(pe!==void 0){var le=ce.addNewMarker(pe);le.restoreState(me),ce.markers.push(le)}}),he.width&&he.height&&(he.width!==this.imageWidth||he.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/he.width,this.imageHeight/he.height),this.eventListeners.restorestate.forEach(function(me){return me(new kn(ce))})},Ie.prototype.addNewMarker=function(he){var ce=Me.createGroup();return this.markerImage.appendChild(ce),new he(ce,this.overlayContainer,this.settings)},Ie.prototype.createNewMarker=function(he){var ce,me=this;(ce=typeof he=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===he}):he)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),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(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(pe){return pe(new un(me,me._currentMarker))}))},Ie.prototype.markerCreated=function(he){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(he),this.setCurrentMarker(he),he instanceof je&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(je):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(me){return me(new un(ce,ce._currentMarker))})},Ie.prototype.colorChanged=function(he){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=he,this.settings.defaultStrokeColor=he)},Ie.prototype.fillColorChanged=function(he){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=he)},Ie.prototype.markerStateChanged=function(he){var ce=this;this.eventListeners.markerchange.forEach(function(me){return me(new un(ce,he))})},Ie.prototype.setCurrentMarker=function(he){var ce=this;this._currentMarker!==he&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(me){return me(new un(ce,ce._currentMarker))})),this._currentMarker=he,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(me){return me(new un(ce,ce._currentMarker))}))},Ie.prototype.onPointerDown=function(he){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||he.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(me){return me.ownsTarget(he.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(he.clientX,he.clientY),he.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:he.clientX,y:he.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(he.clientX,he.clientY))},Ie.prototype.onDblClick=function(he){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(me){return me.ownsTarget(he.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(he.clientX,he.clientY),he.target):this.setCurrentMarker()}},Ie.prototype.onPointerMove=function(he){this.touchPoints!==1&&he.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||he.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(he.clientX,he.clientY)):this.zoomLevel>1&&this.panTo({x:he.clientX,y:he.clientY}))},Ie.prototype.onPointerUp=function(he){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(he.clientX,he.clientY)),this.isDragging=!1,this.addUndoStep()},Ie.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ie.prototype.onKeyUp=function(he){this._currentMarker===void 0||this.notesArea!==void 0||he.key!=="Delete"&&he.key!=="Backspace"||this.deleteSelectedMarker()},Ie.prototype.clientToLocalCoordinates=function(he,ce){var me=this.markerImage.getBoundingClientRect();return{x:(he-me.left)/this.zoomLevel,y:(ce-me.top)/this.zoomLevel}},Ie.prototype.onWindowResize=function(){this.positionUI()},Ie.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var he=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=he+"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()},Ie.prototype.addLicenseKey=function(he){ue.addKey(he)},Ie.prototype.addEventListener=function(he,ce){this.eventListeners.addEventListener(he,ce)},Ie.prototype.removeEventListener=function(he,ce){this.eventListeners.removeEventListener(he,ce)},Ie.prototype.renderState=function(he){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(he),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ie.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ie.prototype.focus=function(){var he=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new kn(he))}))},Ie.prototype.blur=function(){var he=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new kn(he))}))},Ie.instanceCounter=0,Ie}()},42767:function(vn,Tt){"use strict";var te;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,ke=ee?Symbol.for("react.portal"):60106,Ge=ee?Symbol.for("react.fragment"):60107,xe=ee?Symbol.for("react.strict_mode"):60108,Me=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ee=ee?Symbol.for("react.context"):60110,fe=ee?Symbol.for("react.async_mode"):60111,we=ee?Symbol.for("react.concurrent_mode"):60111,Ue=ee?Symbol.for("react.forward_ref"):60112,De=ee?Symbol.for("react.suspense"):60113,Ke=ee?Symbol.for("react.suspense_list"):60120,rt=ee?Symbol.for("react.memo"):60115,Qe=ee?Symbol.for("react.lazy"):60116,_e=ee?Symbol.for("react.block"):60121,ge=ee?Symbol.for("react.fundamental"):60117,Ve=ee?Symbol.for("react.responder"):60118,lt=ee?Symbol.for("react.scope"):60119;function He(ve){if(typeof ve=="object"&&ve!==null){var ye=ve.$$typeof;switch(ye){case de:switch(ve=ve.type,ve){case fe:case we:case Ge:case Me:case xe:case De:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case Ee:case Ue:case Qe:case rt:case ue:return ve;default:return ye}}case ke:return ye}}}function Oe(ve){return He(ve)===we}te=fe,te=we,te=Ee,te=ue,te=de,te=Ue,te=Ge,te=Qe,te=rt,te=ke,te=Me,te=xe,te=De,te=function(ve){return Oe(ve)||He(ve)===fe},te=Oe,te=function(ve){return He(ve)===Ee},te=function(ve){return He(ve)===ue},te=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===de},te=function(ve){return He(ve)===Ue},Tt.isFragment=function(ve){return He(ve)===Ge},te=function(ve){return He(ve)===Qe},te=function(ve){return He(ve)===rt},te=function(ve){return He(ve)===ke},te=function(ve){return He(ve)===Me},te=function(ve){return He(ve)===xe},te=function(ve){return He(ve)===De},te=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===Ge||ve===we||ve===Me||ve===xe||ve===De||ve===Ke||typeof ve=="object"&&ve!==null&&(ve.$$typeof===Qe||ve.$$typeof===rt||ve.$$typeof===ue||ve.$$typeof===Ee||ve.$$typeof===Ue||ve.$$typeof===ge||ve.$$typeof===Ve||ve.$$typeof===lt||ve.$$typeof===_e)},te=He},16357:function(vn,Tt,te){"use strict";vn.exports=te(42767)},95860:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return He}});var ee=te(87462),de=te(1413),ke=te(4942),Ge=te(97685),xe=te(45987),Me=te(94184),ue=te.n(Me),Ee=te(67294);function fe(Oe){var ve=Ee.useRef();ve.current=Oe;var ye=Ee.useCallback(function(){for(var ze,We=arguments.length,st=new Array(We),at=0;at<We;at++)st[at]=arguments[at];return(ze=ve.current)===null||ze===void 0?void 0:ze.call.apply(ze,[ve].concat(st))},[]);return ye}function we(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ue=we()?Ee.useLayoutEffect:Ee.useEffect,De=function(ve,ye){var ze=Ee.useRef(!0);Ue(function(){return ve(ze.current)},ye),Ue(function(){return ze.current=!1,function(){ze.current=!0}},[])},Ke=function(ve,ye){De(function(ze){if(!ze)return ve()},ye)},rt=null;function Qe(Oe){var ve=Ee.useRef(!1),ye=Ee.useState(Oe),ze=(0,Ge.Z)(ye,2),We=ze[0],st=ze[1];Ee.useEffect(function(){return ve.current=!1,function(){ve.current=!0}},[]);function at(Ze,Ae){Ae&&ve.current||st(Ze)}return[We,at]}function _e(Oe){return Oe!==void 0}function ge(Oe,ve){var ye=ve||{},ze=ye.defaultValue,We=ye.value,st=ye.onChange,at=ye.postState,Ze=Qe(function(){return _e(We)?We:_e(ze)?typeof ze=="function"?ze():ze:typeof Oe=="function"?Oe():Oe}),Ae=(0,Ge.Z)(Ze,2),mt=Ae[0],je=Ae[1],it=We!==void 0?We:mt,qe=at?at(it):it,gt=fe(st),Pt=Qe([it]),Xt=(0,Ge.Z)(Pt,2),$e=Xt[0],Be=Xt[1];Ke(function(){var Vt=$e[0];mt!==Vt&&gt(mt,Vt)},[$e]),Ke(function(){_e(We)||je(We)},[We]);var St=fe(function(Vt,Rt){je(Vt,Rt),Be([it],Rt)});return[qe,St]}var Ve=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],lt=(0,Ee.forwardRef)(function(Oe,ve){var ye,ze=Oe.prefixCls,We=ze===void 0?"rc-checkbox":ze,st=Oe.className,at=Oe.style,Ze=Oe.checked,Ae=Oe.disabled,mt=Oe.defaultChecked,je=mt===void 0?!1:mt,it=Oe.type,qe=it===void 0?"checkbox":it,gt=Oe.title,Pt=Oe.onChange,Xt=(0,xe.Z)(Oe,Ve),$e=(0,Ee.useRef)(null),Be=ge(je,{value:Ze}),St=(0,Ge.Z)(Be,2),Vt=St[0],Rt=St[1];(0,Ee.useImperativeHandle)(ve,function(){return{focus:function(){var Fn;(Fn=$e.current)===null||Fn===void 0||Fn.focus()},blur:function(){var Fn;(Fn=$e.current)===null||Fn===void 0||Fn.blur()},input:$e.current}});var ht=ue()(We,st,(ye={},(0,ke.Z)(ye,"".concat(We,"-checked"),Vt),(0,ke.Z)(ye,"".concat(We,"-disabled"),Ae),ye)),Bt=function(Fn){Ae||("checked"in Oe||Rt(Fn.target.checked),Pt==null||Pt({target:(0,de.Z)((0,de.Z)({},Oe),{},{type:qe,checked:Fn.target.checked}),stopPropagation:function(){Fn.stopPropagation()},preventDefault:function(){Fn.preventDefault()},nativeEvent:Fn.nativeEvent}))};return Ee.createElement("span",{className:ht,title:gt,style:at},Ee.createElement("input",(0,ee.Z)({},Xt,{className:"".concat(We,"-input"),ref:$e,onChange:Bt,disabled:Ae,checked:!!Vt,type:qe})),Ee.createElement("span",{className:"".concat(We,"-inner")}))}),He=lt},26819:function(vn,Tt){"use strict";var te;var ee=typeof Symbol=="function"&&Symbol.for,de=ee?Symbol.for("react.element"):60103,ke=ee?Symbol.for("react.portal"):60106,Ge=ee?Symbol.for("react.fragment"):60107,xe=ee?Symbol.for("react.strict_mode"):60108,Me=ee?Symbol.for("react.profiler"):60114,ue=ee?Symbol.for("react.provider"):60109,Ee=ee?Symbol.for("react.context"):60110,fe=ee?Symbol.for("react.async_mode"):60111,we=ee?Symbol.for("react.concurrent_mode"):60111,Ue=ee?Symbol.for("react.forward_ref"):60112,De=ee?Symbol.for("react.suspense"):60113,Ke=ee?Symbol.for("react.suspense_list"):60120,rt=ee?Symbol.for("react.memo"):60115,Qe=ee?Symbol.for("react.lazy"):60116,_e=ee?Symbol.for("react.block"):60121,ge=ee?Symbol.for("react.fundamental"):60117,Ve=ee?Symbol.for("react.responder"):60118,lt=ee?Symbol.for("react.scope"):60119;function He(ve){if(typeof ve=="object"&&ve!==null){var ye=ve.$$typeof;switch(ye){case de:switch(ve=ve.type,ve){case fe:case we:case Ge:case Me:case xe:case De:return ve;default:switch(ve=ve&&ve.$$typeof,ve){case Ee:case Ue:case Qe:case rt:case ue:return ve;default:return ye}}case ke:return ye}}}function Oe(ve){return He(ve)===we}te=fe,te=we,te=Ee,te=ue,te=de,te=Ue,te=Ge,te=Qe,te=rt,te=ke,te=Me,te=xe,te=De,te=function(ve){return Oe(ve)||He(ve)===fe},te=Oe,te=function(ve){return He(ve)===Ee},te=function(ve){return He(ve)===ue},te=function(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===de},te=function(ve){return He(ve)===Ue},te=function(ve){return He(ve)===Ge},te=function(ve){return He(ve)===Qe},Tt.isMemo=function(ve){return He(ve)===rt},te=function(ve){return He(ve)===ke},te=function(ve){return He(ve)===Me},te=function(ve){return He(ve)===xe},te=function(ve){return He(ve)===De},te=function(ve){return typeof ve=="string"||typeof ve=="function"||ve===Ge||ve===we||ve===Me||ve===xe||ve===De||ve===Ke||typeof ve=="object"&&ve!==null&&(ve.$$typeof===Qe||ve.$$typeof===rt||ve.$$typeof===ue||ve.$$typeof===Ee||ve.$$typeof===Ue||ve.$$typeof===ge||ve.$$typeof===Ve||ve.$$typeof===lt||ve.$$typeof===_e)},te=He},18459:function(vn,Tt,te){"use strict";vn.exports=te(26819)},16651:function(vn,Tt){"use strict";var te;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),fe=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),Qe;Qe=Symbol.for("react.module.reference");function _e(ge){if(typeof ge=="object"&&ge!==null){var Ve=ge.$$typeof;switch(Ve){case ee:switch(ge=ge.type,ge){case ke:case xe:case Ge:case we:case Ue:return ge;default:switch(ge=ge&&ge.$$typeof,ge){case Ee:case ue:case fe:case Ke:case De:case Me:return ge;default:return Ve}}case de:return Ve}}}te=ue,te=Me,te=ee,te=fe,te=ke,te=Ke,te=De,te=de,te=xe,te=Ge,te=we,te=Ue,te=function(){return!1},te=function(){return!1},te=function(ge){return _e(ge)===ue},te=function(ge){return _e(ge)===Me},te=function(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===ee},te=function(ge){return _e(ge)===fe},te=function(ge){return _e(ge)===ke},te=function(ge){return _e(ge)===Ke},te=function(ge){return _e(ge)===De},te=function(ge){return _e(ge)===de},te=function(ge){return _e(ge)===xe},te=function(ge){return _e(ge)===Ge},te=function(ge){return _e(ge)===we},te=function(ge){return _e(ge)===Ue},te=function(ge){return typeof ge=="string"||typeof ge=="function"||ge===ke||ge===xe||ge===Ge||ge===we||ge===Ue||ge===rt||typeof ge=="object"&&ge!==null&&(ge.$$typeof===Ke||ge.$$typeof===De||ge.$$typeof===Me||ge.$$typeof===ue||ge.$$typeof===fe||ge.$$typeof===Qe||ge.getModuleId!==void 0)},te=_e},33993:function(vn,Tt,te){"use strict";te(16651)},82523:function(vn,Tt){"use strict";var te;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),fe=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),Qe;Qe=Symbol.for("react.module.reference");function _e(ge){if(typeof ge=="object"&&ge!==null){var Ve=ge.$$typeof;switch(Ve){case ee:switch(ge=ge.type,ge){case ke:case xe:case Ge:case we:case Ue:return ge;default:switch(ge=ge&&ge.$$typeof,ge){case Ee:case ue:case fe:case Ke:case De:case Me:return ge;default:return Ve}}case de:return Ve}}}te=ue,te=Me,te=ee,te=fe,te=ke,te=Ke,te=De,te=de,te=xe,te=Ge,te=we,te=Ue,te=function(){return!1},te=function(){return!1},te=function(ge){return _e(ge)===ue},te=function(ge){return _e(ge)===Me},te=function(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===ee},te=function(ge){return _e(ge)===fe},te=function(ge){return _e(ge)===ke},te=function(ge){return _e(ge)===Ke},te=function(ge){return _e(ge)===De},te=function(ge){return _e(ge)===de},te=function(ge){return _e(ge)===xe},te=function(ge){return _e(ge)===Ge},te=function(ge){return _e(ge)===we},te=function(ge){return _e(ge)===Ue},te=function(ge){return typeof ge=="string"||typeof ge=="function"||ge===ke||ge===xe||ge===Ge||ge===we||ge===Ue||ge===rt||typeof ge=="object"&&ge!==null&&(ge.$$typeof===Ke||ge.$$typeof===De||ge.$$typeof===Me||ge.$$typeof===ue||ge.$$typeof===fe||ge.$$typeof===Qe||ge.getModuleId!==void 0)},te=_e},27183:function(vn,Tt,te){"use strict";te(82523)},67656:function(vn,Tt,te){"use strict";te.r(Tt),te.d(Tt,{BaseInput:function(){return we},default:function(){return lt}});var ee=te(87462),de=te(1413),ke=te(4942),Ge=te(71002),xe=te(94184),Me=te.n(xe),ue=te(67294),Ee=te(87887),fe=function(Oe){var ve,ye,ze=Oe.inputElement,We=Oe.prefixCls,st=Oe.prefix,at=Oe.suffix,Ze=Oe.addonBefore,Ae=Oe.addonAfter,mt=Oe.className,je=Oe.style,it=Oe.disabled,qe=Oe.readOnly,gt=Oe.focused,Pt=Oe.triggerFocus,Xt=Oe.allowClear,$e=Oe.value,Be=Oe.handleReset,St=Oe.hidden,Vt=Oe.classes,Rt=Oe.classNames,ht=Oe.dataAttrs,Bt=Oe.styles,_t=Oe.components,Fn=(_t==null?void 0:_t.affixWrapper)||"span",kn=(_t==null?void 0:_t.groupWrapper)||"span",kt=(_t==null?void 0:_t.wrapper)||"span",un=(_t==null?void 0:_t.groupAddon)||"span",Wn=(0,ue.useRef)(null),An=function(Yt){var dn;(dn=Wn.current)!==null&&dn!==void 0&&dn.contains(Yt.target)&&(Pt==null||Pt())},Ie=function(){var Yt;if(!Xt)return null;var dn=!it&&!qe&&$e,Mt="".concat(We,"-clear-icon"),Wt=(0,Ge.Z)(Xt)==="object"&&Xt!==null&&Xt!==void 0&&Xt.clearIcon?Xt.clearIcon:"\u2716";return ue.createElement("span",{onClick:Be,onMouseDown:function(Gt){return Gt.preventDefault()},className:Me()(Mt,(Yt={},(0,ke.Z)(Yt,"".concat(Mt,"-hidden"),!dn),(0,ke.Z)(Yt,"".concat(Mt,"-has-suffix"),!!at),Yt)),role:"button",tabIndex:-1},Wt)},he=(0,ue.cloneElement)(ze,{value:$e,hidden:St,className:Me()((ve=ze.props)===null||ve===void 0?void 0:ve.className,!(0,Ee.X3)(Oe)&&!(0,Ee.He)(Oe)&&mt)||null,style:(0,de.Z)((0,de.Z)({},(ye=ze.props)===null||ye===void 0?void 0:ye.style),!(0,Ee.X3)(Oe)&&!(0,Ee.He)(Oe)?je:{})});if((0,Ee.X3)(Oe)){var ce,me="".concat(We,"-affix-wrapper"),pe=Me()(me,(ce={},(0,ke.Z)(ce,"".concat(me,"-disabled"),it),(0,ke.Z)(ce,"".concat(me,"-focused"),gt),(0,ke.Z)(ce,"".concat(me,"-readonly"),qe),(0,ke.Z)(ce,"".concat(me,"-input-with-clear-btn"),at&&Xt&&$e),ce),!(0,Ee.He)(Oe)&&mt,Vt==null?void 0:Vt.affixWrapper,Rt==null?void 0:Rt.affixWrapper),le=(at||Xt)&&ue.createElement("span",{className:Me()("".concat(We,"-suffix"),Rt==null?void 0:Rt.suffix),style:Bt==null?void 0:Bt.suffix},Ie(),at);he=ue.createElement(Fn,(0,ee.Z)({className:pe,style:(0,de.Z)((0,de.Z)({},(0,Ee.He)(Oe)?void 0:je),Bt==null?void 0:Bt.affixWrapper),hidden:!(0,Ee.He)(Oe)&&St,onClick:An},ht==null?void 0:ht.affixWrapper,{ref:Wn}),st&&ue.createElement("span",{className:Me()("".concat(We,"-prefix"),Rt==null?void 0:Rt.prefix),style:Bt==null?void 0:Bt.prefix},st),(0,ue.cloneElement)(ze,{value:$e,hidden:null}),le)}if((0,Ee.He)(Oe)){var Le="".concat(We,"-group"),dt="".concat(Le,"-addon"),Nt=Me()("".concat(We,"-wrapper"),Le,Vt==null?void 0:Vt.wrapper),tn=Me()("".concat(We,"-group-wrapper"),mt,Vt==null?void 0:Vt.group);return ue.createElement(kn,{className:tn,style:je,hidden:St},ue.createElement(kt,{className:Nt},Ze&&ue.createElement(un,{className:dt},Ze),(0,ue.cloneElement)(he,{hidden:null}),Ae&&ue.createElement(un,{className:dt},Ae)))}return he},we=fe,Ue=te(74902),De=te(97685),Ke=te(45987),rt=te(21770),Qe=te(98423),_e=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ge=(0,ue.forwardRef)(function(He,Oe){var ve=He.autoComplete,ye=He.onChange,ze=He.onFocus,We=He.onBlur,st=He.onPressEnter,at=He.onKeyDown,Ze=He.prefixCls,Ae=Ze===void 0?"rc-input":Ze,mt=He.disabled,je=He.htmlSize,it=He.className,qe=He.maxLength,gt=He.suffix,Pt=He.showCount,Xt=He.type,$e=Xt===void 0?"text":Xt,Be=He.classes,St=He.classNames,Vt=He.styles,Rt=(0,Ke.Z)(He,_e),ht=(0,rt.Z)(He.defaultValue,{value:He.value}),Bt=(0,De.Z)(ht,2),_t=Bt[0],Fn=Bt[1],kn=(0,ue.useState)(!1),kt=(0,De.Z)(kn,2),un=kt[0],Wn=kt[1],An=(0,ue.useRef)(null),Ie=function(tn){An.current&&(0,Ee.nH)(An.current,tn)};(0,ue.useImperativeHandle)(Oe,function(){return{focus:Ie,blur:function(){var tn;(tn=An.current)===null||tn===void 0||tn.blur()},setSelectionRange:function(tn,an,Yt){var dn;(dn=An.current)===null||dn===void 0||dn.setSelectionRange(tn,an,Yt)},select:function(){var tn;(tn=An.current)===null||tn===void 0||tn.select()},input:An.current}}),(0,ue.useEffect)(function(){Wn(function(Nt){return Nt&&mt?!1:Nt})},[mt]);var he=function(tn){He.value===void 0&&Fn(tn.target.value),An.current&&(0,Ee.rJ)(An.current,tn,ye)},ce=function(tn){st&&tn.key==="Enter"&&st(tn),at==null||at(tn)},me=function(tn){Wn(!0),ze==null||ze(tn)},pe=function(tn){Wn(!1),We==null||We(tn)},le=function(tn){Fn(""),Ie(),An.current&&(0,Ee.rJ)(An.current,tn,ye)},Le=function(){var tn=(0,Qe.Z)(He,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ue.createElement("input",(0,ee.Z)({autoComplete:ve},tn,{onChange:he,onFocus:me,onBlur:pe,onKeyDown:ce,className:Me()(Ae,(0,ke.Z)({},"".concat(Ae,"-disabled"),mt),St==null?void 0:St.input),style:Vt==null?void 0:Vt.input,ref:An,size:je,type:$e}))},dt=function(){var tn=Number(qe)>0;if(gt||Pt){var an=(0,Ee.D7)(_t),Yt=(0,Ue.Z)(an).length,dn=(0,Ge.Z)(Pt)==="object"?Pt.formatter({value:an,count:Yt,maxLength:qe}):"".concat(Yt).concat(tn?" / ".concat(qe):"");return ue.createElement(ue.Fragment,null,!!Pt&&ue.createElement("span",{className:Me()("".concat(Ae,"-show-count-suffix"),(0,ke.Z)({},"".concat(Ae,"-show-count-has-suffix"),!!gt),St==null?void 0:St.count),style:(0,de.Z)({},Vt==null?void 0:Vt.count)},dn),gt)}return null};return ue.createElement(we,(0,ee.Z)({},Rt,{prefixCls:Ae,className:it,inputElement:Le(),handleReset:le,value:(0,Ee.D7)(_t),focused:un,triggerFocus:Ie,suffix:dt(),disabled:mt,classes:Be,classNames:St,styles:Vt}))}),Ve=ge,lt=Ve},87887:function(vn,Tt,te){"use strict";te.d(Tt,{D7:function(){return xe},He:function(){return ee},X3:function(){return de},nH:function(){return Ge},rJ:function(){return ke}});function ee(Me){return!!(Me.addonBefore||Me.addonAfter)}function de(Me){return!!(Me.prefix||Me.suffix||Me.allowClear)}function ke(Me,ue,Ee,fe){if(Ee){var we=ue;if(ue.type==="click"){var Ue=Me.cloneNode(!0);we=Object.create(ue,{target:{value:Ue},currentTarget:{value:Ue}}),Ue.value="",Ee(we);return}if(fe!==void 0){we=Object.create(ue,{target:{value:Me},currentTarget:{value:Me}}),Me.value=fe,Ee(we);return}Ee(we)}}function Ge(Me,ue){if(Me){Me.focus(ue);var Ee=ue||{},fe=Ee.cursor;if(fe){var we=Me.value.length;switch(fe){case"start":Me.setSelectionRange(0,0);break;case"end":Me.setSelectionRange(we,we);break;default:Me.setSelectionRange(0,we)}}}}function xe(Me){return typeof Me=="undefined"||Me===null?"":String(Me)}},78595:function(vn,Tt,te){"use strict";te.d(Tt,{iz:function(){return ka},ck:function(){return to},BW:function(){return sa},sN:function(){return to},Wd:function(){return ar},ZP:function(){return Xe},Xl:function(){return dn}});var ee=te(87462),de=te(4942),ke=te(1413),Ge=te(74902),xe=te(97685),Me=te(45987),ue=te(94184),Ee=te.n(ue),fe=te(67294),we=te(48555);function Ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var De=Ue()?fe.useLayoutEffect:fe.useEffect,Ke=function(ut,ft){var Ct=fe.useRef(!0);De(function(){return ut(Ct.current)},ft),De(function(){return Ct.current=!1,function(){Ct.current=!0}},[])},rt=function(ut,ft){Ke(function(Ct){if(!Ct)return ut()},ft)},Qe=Ke,_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ge=void 0;function Ve(nt,ut){var ft=nt.prefixCls,Ct=nt.invalidate,wt=nt.item,sn=nt.renderItem,En=nt.responsive,ur=nt.responsiveDisabled,yr=nt.registerSize,fr=nt.itemKey,Qn=nt.className,Yn=nt.style,On=nt.children,hr=nt.display,zr=nt.order,Er=nt.component,wr=Er===void 0?"div":Er,Br=(0,Me.Z)(nt,_e),Or=En&&!hr;function Wr($n){yr(fr,$n)}fe.useEffect(function(){return function(){Wr(null)}},[]);var pt=sn&&wt!==ge?sn(wt):On,vt;Ct||(vt={opacity:Or?0:1,height:Or?0:ge,overflowY:Or?"hidden":ge,order:En?zr:ge,pointerEvents:Or?"none":ge,position:Or?"absolute":ge});var mn={};Or&&(mn["aria-hidden"]=!0);var ln=fe.createElement(wr,(0,ee.Z)({className:Ee()(!Ct&&ft,Qn),style:(0,ke.Z)((0,ke.Z)({},vt),Yn)},mn,Br,{ref:ut}),pt);return En&&(ln=fe.createElement(we.Z,{onResize:function(mr){var Ft=mr.offsetWidth;Wr(Ft)},disabled:ur},ln)),ln}var lt=fe.forwardRef(Ve);lt.displayName="Item";var He=lt;function Oe(nt){var ut=fe.useRef();ut.current=nt;var ft=fe.useCallback(function(){for(var Ct,wt=arguments.length,sn=new Array(wt),En=0;En<wt;En++)sn[En]=arguments[En];return(Ct=ut.current)===null||Ct===void 0?void 0:Ct.call.apply(Ct,[ut].concat(sn))},[]);return ft}var ve=te(73935),ye=function(ut){return+setTimeout(ut,16)},ze=function(ut){return clearTimeout(ut)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ye=function(ut){return window.requestAnimationFrame(ut)},ze=function(ut){return window.cancelAnimationFrame(ut)});var We=0,st=new Map;function at(nt){st.delete(nt)}var Ze=function(ut){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;We+=1;var Ct=We;function wt(sn){if(sn===0)at(Ct),ut();else{var En=ye(function(){wt(sn-1)});st.set(Ct,En)}}return wt(ft),Ct};Ze.cancel=function(nt){var ut=st.get(nt);return at(ut),ze(ut)};var Ae=Ze;function mt(nt){if(typeof MessageChannel=="undefined")Ae(nt);else{var ut=new MessageChannel;ut.port1.onmessage=function(){return nt()},ut.port2.postMessage(void 0)}}function je(){var nt=fe.useRef(null),ut=function(Ct){nt.current||(nt.current=[],mt(function(){(0,ve.unstable_batchedUpdates)(function(){nt.current.forEach(function(wt){wt()}),nt.current=null})})),nt.current.push(Ct)};return ut}function it(nt,ut){var ft=fe.useState(ut),Ct=(0,xe.Z)(ft,2),wt=Ct[0],sn=Ct[1],En=Oe(function(ur){nt(function(){sn(ur)})});return[wt,En]}var qe=fe.createContext(null),gt=["component"],Pt=["className"],Xt=["className"],$e=function(ut,ft){var Ct=fe.useContext(qe);if(!Ct){var wt=ut.component,sn=wt===void 0?"div":wt,En=(0,Me.Z)(ut,gt);return fe.createElement(sn,(0,ee.Z)({},En,{ref:ft}))}var ur=Ct.className,yr=(0,Me.Z)(Ct,Pt),fr=ut.className,Qn=(0,Me.Z)(ut,Xt);return fe.createElement(qe.Provider,{value:null},fe.createElement(He,(0,ee.Z)({ref:ft,className:Ee()(ur,fr)},yr,Qn)))},Be=fe.forwardRef($e);Be.displayName="RawItem";var St=Be,Vt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Rt="responsive",ht="invalidate";function Bt(nt){return"+ ".concat(nt.length," ...")}function _t(nt,ut){var ft=nt.prefixCls,Ct=ft===void 0?"rc-overflow":ft,wt=nt.data,sn=wt===void 0?[]:wt,En=nt.renderItem,ur=nt.renderRawItem,yr=nt.itemKey,fr=nt.itemWidth,Qn=fr===void 0?10:fr,Yn=nt.ssr,On=nt.style,hr=nt.className,zr=nt.maxCount,Er=nt.renderRest,wr=nt.renderRawRest,Br=nt.suffix,Or=nt.component,Wr=Or===void 0?"div":Or,pt=nt.itemComponent,vt=nt.onVisibleChange,mn=(0,Me.Z)(nt,Vt),ln=Yn==="full",$n=je(),mr=it($n,null),Ft=(0,xe.Z)(mr,2),It=Ft[0],Ht=Ft[1],on=It||0,Vn=it($n,new Map),dr=(0,xe.Z)(Vn,2),Kn=dr[0],rr=dr[1],Fr=it($n,0),ii=(0,xe.Z)(Fr,2),Zr=ii[0],Ar=ii[1],Vr=it($n,0),li=(0,xe.Z)(Vr,2),Mi=li[0],si=li[1],Kr=it($n,0),Wi=(0,xe.Z)(Kr,2),Zi=Wi[0],Na=Wi[1],Ha=(0,fe.useState)(null),La=(0,xe.Z)(Ha,2),Ea=La[0],Ra=La[1],va=(0,fe.useState)(null),oo=(0,xe.Z)(va,2),Ca=oo[0],Qi=oo[1],ja=fe.useMemo(function(){return Ca===null&&ln?Number.MAX_SAFE_INTEGER:Ca||0},[Ca,It]),bo=(0,fe.useState)(!1),ca=(0,xe.Z)(bo,2),Vo=ca[0],Go=ca[1],tl="".concat(Ct,"-item"),zo=Math.max(Zr,Mi),no=zr===Rt,kl=sn.length&&no,Co=zr===ht,_a=kl||typeof zr=="number"&&sn.length>zr,Ao=(0,fe.useMemo)(function(){var ui=sn;return kl?It===null&&ln?ui=sn:ui=sn.slice(0,Math.min(sn.length,on/Qn)):typeof zr=="number"&&(ui=sn.slice(0,zr)),ui},[sn,Qn,It,zr,kl]),ml=(0,fe.useMemo)(function(){return kl?sn.slice(ja+1):sn.slice(Ao.length)},[sn,Ao,kl,ja]),Ko=(0,fe.useCallback)(function(ui,wi){var bi;return typeof yr=="function"?yr(ui):(bi=yr&&(ui==null?void 0:ui[yr]))!==null&&bi!==void 0?bi:wi},[yr]),$o=(0,fe.useCallback)(En||function(ui){return ui},[En]);function Ya(ui,wi,bi){Ca===ui&&(wi===void 0||wi===Ea)||(Qi(ui),bi||(Go(ui<sn.length-1),vt==null||vt(ui)),wi!==void 0&&Ra(wi))}function yl(ui,wi){Ht(wi.clientWidth)}function Il(ui,wi){rr(function(bi){var Oi=new Map(bi);return wi===null?Oi.delete(ui):Oi.set(ui,wi),Oi})}function xl(ui,wi){si(wi),Ar(Mi)}function il(ui,wi){Na(wi)}function El(ui){return Kn.get(Ko(Ao[ui],ui))}Qe(function(){if(on&&typeof zo=="number"&&Ao){var ui=Zi,wi=Ao.length,bi=wi-1;if(!wi){Ya(0,null);return}for(var Oi=0;Oi<wi;Oi+=1){var Pa=El(Oi);if(ln&&(Pa=Pa||0),Pa===void 0){Ya(Oi-1,void 0,!0);break}if(ui+=Pa,bi===0&&ui<=on||Oi===bi-1&&ui+El(bi)<=on){Ya(bi,null);break}else if(ui+zo>on){Ya(Oi-1,ui-Pa-Zi+Mi);break}}Br&&El(0)+Zi>on&&Ra(null)}},[on,Kn,Mi,Zi,Ko,Ao]);var Al=Vo&&!!ml.length,Bl={};Ea!==null&&kl&&(Bl={position:"absolute",left:Ea,top:0});var Ol={prefixCls:tl,responsive:kl,component:pt,invalidate:Co},Lt=ur?function(ui,wi){var bi=Ko(ui,wi);return fe.createElement(qe.Provider,{key:bi,value:(0,ke.Z)((0,ke.Z)({},Ol),{},{order:wi,item:ui,itemKey:bi,registerSize:Il,display:wi<=ja})},ur(ui,wi))}:function(ui,wi){var bi=Ko(ui,wi);return fe.createElement(He,(0,ee.Z)({},Ol,{order:wi,key:bi,item:ui,renderItem:$o,itemKey:bi,registerSize:Il,display:wi<=ja}))},rn,gn={order:Al?ja:Number.MAX_SAFE_INTEGER,className:"".concat(tl,"-rest"),registerSize:xl,display:Al};if(wr)wr&&(rn=fe.createElement(qe.Provider,{value:(0,ke.Z)((0,ke.Z)({},Ol),gn)},wr(ml)));else{var Xn=Er||Bt;rn=fe.createElement(He,(0,ee.Z)({},Ol,gn),typeof Xn=="function"?Xn(ml):Xn)}var ta=fe.createElement(Wr,(0,ee.Z)({className:Ee()(!Co&&Ct,hr),style:On,ref:ut},mn),Ao.map(Lt),_a?rn:null,Br&&fe.createElement(He,(0,ee.Z)({},Ol,{responsive:no,responsiveDisabled:!kl,order:ja,className:"".concat(tl,"-suffix"),registerSize:il,display:!0,style:Bl}),Br));return no&&(ta=fe.createElement(we.Z,{onResize:yl,disabled:!kl},ta)),ta}var Fn=fe.forwardRef(_t);Fn.displayName="Overflow",Fn.Item=St,Fn.RESPONSIVE=Rt,Fn.INVALIDATE=ht;var kn=Fn,kt=kn,un=te(21770),Wn=te(80334),An=te(91881),Ie=fe.createContext(null);function he(nt,ut){return nt===void 0?null:"".concat(nt,"-").concat(ut)}function ce(nt){var ut=fe.useContext(Ie);return he(ut,nt)}var me=te(56982),pe=["children","locked"],le=fe.createContext(null);function Le(nt,ut){var ft=(0,ke.Z)({},nt);return Object.keys(ut).forEach(function(Ct){var wt=ut[Ct];wt!==void 0&&(ft[Ct]=wt)}),ft}function dt(nt){var ut=nt.children,ft=nt.locked,Ct=(0,Me.Z)(nt,pe),wt=fe.useContext(le),sn=(0,me.Z)(function(){return Le(wt,Ct)},[wt,Ct],function(En,ur){return!ft&&(En[0]!==ur[0]||!(0,An.Z)(En[1],ur[1],!0))});return fe.createElement(le.Provider,{value:sn},ut)}var Nt=[],tn=fe.createContext(null);function an(){return fe.useContext(tn)}var Yt=fe.createContext(Nt);function dn(nt){var ut=fe.useContext(Yt);return fe.useMemo(function(){return nt!==void 0?[].concat((0,Ge.Z)(ut),[nt]):ut},[ut,nt])}var Mt=fe.createContext(null),Wt=fe.createContext({}),qt=Wt,Gt=te(15105),jt=te(75164),sr=function(nt){if(!nt)return!1;if(nt instanceof Element){if(nt.offsetParent)return!0;if(nt.getBBox){var ut=nt.getBBox(),ft=ut.width,Ct=ut.height;if(ft||Ct)return!0}if(nt.getBoundingClientRect){var wt=nt.getBoundingClientRect(),sn=wt.width,En=wt.height;if(sn||En)return!0}}return!1};function Dt(nt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(sr(nt)){var ft=nt.nodeName.toLowerCase(),Ct=["input","select","textarea","button"].includes(ft)||nt.isContentEditable||ft==="a"&&!!nt.getAttribute("href"),wt=nt.getAttribute("tabindex"),sn=Number(wt),En=null;return wt&&!Number.isNaN(sn)?En=sn:Ct&&En===null&&(En=0),Ct&&nt.disabled&&(En=null),En!==null&&(En>=0||ut&&En<0)}return!1}function Jt(nt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=(0,Ge.Z)(nt.querySelectorAll("*")).filter(function(Ct){return Dt(Ct,ut)});return Dt(nt,ut)&&ft.unshift(nt),ft}var Gn=null;function Bn(){Gn=document.activeElement}function Sn(){Gn=null}function or(){if(Gn)try{Gn.focus()}catch(nt){}}function gr(nt,ut){if(ut.keyCode===9){var ft=Jt(nt),Ct=ft[ut.shiftKey?0:ft.length-1],wt=Ct===document.activeElement||nt===document.activeElement;if(wt){var sn=ft[ut.shiftKey?ft.length-1:0];sn.focus(),ut.preventDefault()}}}var kr=Gt.Z.LEFT,Lr=Gt.Z.RIGHT,Qr=Gt.Z.UP,Ir=Gt.Z.DOWN,Dn=Gt.Z.ENTER,cr=Gt.Z.ESC,vr=Gt.Z.HOME,Ur=Gt.Z.END,ti=[Qr,Ir,kr,Lr];function Kt(nt,ut,ft,Ct){var wt,sn,En,ur,yr="prev",fr="next",Qn="children",Yn="parent";if(nt==="inline"&&Ct===Dn)return{inlineTrigger:!0};var On=(wt={},(0,de.Z)(wt,Qr,yr),(0,de.Z)(wt,Ir,fr),wt),hr=(sn={},(0,de.Z)(sn,kr,ft?fr:yr),(0,de.Z)(sn,Lr,ft?yr:fr),(0,de.Z)(sn,Ir,Qn),(0,de.Z)(sn,Dn,Qn),sn),zr=(En={},(0,de.Z)(En,Qr,yr),(0,de.Z)(En,Ir,fr),(0,de.Z)(En,Dn,Qn),(0,de.Z)(En,cr,Yn),(0,de.Z)(En,kr,ft?Qn:Yn),(0,de.Z)(En,Lr,ft?Yn:Qn),En),Er={inline:On,horizontal:hr,vertical:zr,inlineSub:On,horizontalSub:zr,verticalSub:zr},wr=(ur=Er["".concat(nt).concat(ut?"":"Sub")])===null||ur===void 0?void 0:ur[Ct];switch(wr){case yr:return{offset:-1,sibling:!0};case fr:return{offset:1,sibling:!0};case Yn:return{offset:-1,sibling:!1};case Qn:return{offset:1,sibling:!1};default:return null}}function _n(nt){for(var ut=nt;ut;){if(ut.getAttribute("data-menu-list"))return ut;ut=ut.parentElement}return null}function nn(nt,ut){for(var ft=nt||document.activeElement;ft;){if(ut.has(ft))return ft;ft=ft.parentElement}return null}function In(nt,ut){var ft=Jt(nt,!0);return ft.filter(function(Ct){return ut.has(Ct)})}function nr(nt,ut,ft){var Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!nt)return null;var wt=In(nt,ut),sn=wt.length,En=wt.findIndex(function(ur){return ft===ur});return Ct<0?En===-1?En=sn-1:En-=1:Ct>0&&(En+=1),En=(En+sn)%sn,wt[En]}function Rr(nt,ut,ft,Ct,wt,sn,En,ur,yr,fr){var Qn=fe.useRef(),Yn=fe.useRef();Yn.current=ut;var On=function(){jt.Z.cancel(Qn.current)};return fe.useEffect(function(){return function(){On()}},[]),function(hr){var zr=hr.which;if([].concat(ti,[Dn,cr,vr,Ur]).includes(zr)){var Er,wr,Br,Or=function(){Er=new Set,wr=new Map,Br=new Map;var dr=sn();return dr.forEach(function(Kn){var rr=document.querySelector("[data-menu-id='".concat(he(Ct,Kn),"']"));rr&&(Er.add(rr),Br.set(rr,Kn),wr.set(Kn,rr))}),Er};Or();var Wr=wr.get(ut),pt=nn(Wr,Er),vt=Br.get(pt),mn=Kt(nt,En(vt,!0).length===1,ft,zr);if(!mn&&zr!==vr&&zr!==Ur)return;(ti.includes(zr)||[vr,Ur].includes(zr))&&hr.preventDefault();var ln=function(dr){if(dr){var Kn=dr,rr=dr.querySelector("a");rr!=null&&rr.getAttribute("href")&&(Kn=rr);var Fr=Br.get(dr);ur(Fr),On(),Qn.current=(0,jt.Z)(function(){Yn.current===Fr&&Kn.focus()})}};if([vr,Ur].includes(zr)||mn.sibling||!pt){var $n;!pt||nt==="inline"?$n=wt.current:$n=_n(pt);var mr,Ft=In($n,Er);zr===vr?mr=Ft[0]:zr===Ur?mr=Ft[Ft.length-1]:mr=nr($n,Er,pt,mn.offset),ln(mr)}else if(mn.inlineTrigger)yr(vt);else if(mn.offset>0)yr(vt,!0),On(),Qn.current=(0,jt.Z)(function(){Or();var Vn=pt.getAttribute("aria-controls"),dr=document.getElementById(Vn),Kn=nr(dr,Er);ln(Kn)},5);else if(mn.offset<0){var It=En(vt,!0),Ht=It[It.length-2],on=wr.get(Ht);yr(Ht,!1),ln(on)}}fr==null||fr(hr)}}function Pr(nt){Promise.resolve().then(nt)}var br="__RC_UTIL_PATH_SPLIT__",xt=function(ut){return ut.join(br)},$t=function(ut){return ut.split(br)},fn="rc-menu-more";function Mn(){var nt=fe.useState({}),ut=(0,xe.Z)(nt,2),ft=ut[1],Ct=(0,fe.useRef)(new Map),wt=(0,fe.useRef)(new Map),sn=fe.useState([]),En=(0,xe.Z)(sn,2),ur=En[0],yr=En[1],fr=(0,fe.useRef)(0),Qn=(0,fe.useRef)(!1),Yn=function(){Qn.current||ft({})},On=(0,fe.useCallback)(function(Wr,pt){var vt=xt(pt);wt.current.set(vt,Wr),Ct.current.set(Wr,vt),fr.current+=1;var mn=fr.current;Pr(function(){mn===fr.current&&Yn()})},[]),hr=(0,fe.useCallback)(function(Wr,pt){var vt=xt(pt);wt.current.delete(vt),Ct.current.delete(Wr)},[]),zr=(0,fe.useCallback)(function(Wr){yr(Wr)},[]),Er=(0,fe.useCallback)(function(Wr,pt){var vt=Ct.current.get(Wr)||"",mn=$t(vt);return pt&&ur.includes(mn[0])&&mn.unshift(fn),mn},[ur]),wr=(0,fe.useCallback)(function(Wr,pt){return Wr.some(function(vt){var mn=Er(vt,!0);return mn.includes(pt)})},[Er]),Br=function(){var pt=(0,Ge.Z)(Ct.current.keys());return ur.length&&pt.push(fn),pt},Or=(0,fe.useCallback)(function(Wr){var pt="".concat(Ct.current.get(Wr)).concat(br),vt=new Set;return(0,Ge.Z)(wt.current.keys()).forEach(function(mn){mn.startsWith(pt)&&vt.add(wt.current.get(mn))}),vt},[]);return fe.useEffect(function(){return function(){Qn.current=!0}},[]),{registerPath:On,unregisterPath:hr,refreshOverflowKeys:zr,isSubPathKey:wr,getKeyPath:Er,getKeys:Br,getSubPathKeys:Or}}function yt(nt){var ut=fe.useRef(nt);ut.current=nt;var ft=fe.useCallback(function(){for(var Ct,wt=arguments.length,sn=new Array(wt),En=0;En<wt;En++)sn[En]=arguments[En];return(Ct=ut.current)===null||Ct===void 0?void 0:Ct.call.apply(Ct,[ut].concat(sn))},[]);return nt?ft:void 0}var Ut=Math.random().toFixed(5).toString().slice(2),Cn=0;function cn(nt){var ut=(0,un.Z)(nt,{value:nt}),ft=(0,xe.Z)(ut,2),Ct=ft[0],wt=ft[1];return fe.useEffect(function(){Cn+=1;var sn="".concat(Ut,"-").concat(Cn);wt("rc-menu-uuid-".concat(sn))},[]),Ct}var zn=te(15671),Hn=te(43144),Mr=te(60136),gi=te(51630),Xr=te(98423),Gr=te(42550);function di(nt,ut,ft,Ct){var wt=fe.useContext(le),sn=wt.activeKey,En=wt.onActive,ur=wt.onInactive,yr={active:sn===nt};return ut||(yr.onMouseEnter=function(fr){ft==null||ft({key:nt,domEvent:fr}),En(nt)},yr.onMouseLeave=function(fr){Ct==null||Ct({key:nt,domEvent:fr}),ur(nt)}),yr}function ci(nt){var ut=fe.useContext(le),ft=ut.mode,Ct=ut.rtl,wt=ut.inlineIndent;if(ft!=="inline")return null;var sn=nt;return Ct?{paddingRight:sn*wt}:{paddingLeft:sn*wt}}function Si(nt){var ut=nt.icon,ft=nt.props,Ct=nt.children,wt;return ut===null||ut===!1?null:(typeof ut=="function"?wt=fe.createElement(ut,(0,ke.Z)({},ft)):typeof ut!="boolean"&&(wt=ut),wt||Ct||null)}var Jn=["item"];function Jr(nt){var ut=nt.item,ft=(0,Me.Z)(nt,Jn);return Object.defineProperty(ft,"item",{get:function(){return(0,Wn.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ut}}),ft}var Oa=["title","attribute","elementRef"],Qa=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Li=["active"],qi=function(nt){(0,Mr.Z)(ft,nt);var ut=(0,gi.Z)(ft);function ft(){return(0,zn.Z)(this,ft),ut.apply(this,arguments)}return(0,Hn.Z)(ft,[{key:"render",value:function(){var wt=this.props,sn=wt.title,En=wt.attribute,ur=wt.elementRef,yr=(0,Me.Z)(wt,Oa),fr=(0,Xr.Z)(yr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Wn.ZP)(!En,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),fe.createElement(kt.Item,(0,ee.Z)({},En,{title:typeof sn=="string"?sn:void 0},fr,{ref:ur}))}}]),ft}(fe.Component),$a=fe.forwardRef(function(nt,ut){var ft,Ct=nt.style,wt=nt.className,sn=nt.eventKey,En=nt.warnKey,ur=nt.disabled,yr=nt.itemIcon,fr=nt.children,Qn=nt.role,Yn=nt.onMouseEnter,On=nt.onMouseLeave,hr=nt.onClick,zr=nt.onKeyDown,Er=nt.onFocus,wr=(0,Me.Z)(nt,Qa),Br=ce(sn),Or=fe.useContext(le),Wr=Or.prefixCls,pt=Or.onItemClick,vt=Or.disabled,mn=Or.overflowDisabled,ln=Or.itemIcon,$n=Or.selectedKeys,mr=Or.onActive,Ft=fe.useContext(qt),It=Ft._internalRenderMenuItem,Ht="".concat(Wr,"-item"),on=fe.useRef(),Vn=fe.useRef(),dr=vt||ur,Kn=(0,Gr.x1)(ut,Vn),rr=dn(sn),Fr=function(La){return{key:sn,keyPath:(0,Ge.Z)(rr).reverse(),item:on.current,domEvent:La}},ii=yr||ln,Zr=di(sn,dr,Yn,On),Ar=Zr.active,Vr=(0,Me.Z)(Zr,Li),li=$n.includes(sn),Mi=ci(rr.length),si=function(La){if(!dr){var Ea=Fr(La);hr==null||hr(Jr(Ea)),pt(Ea)}},Kr=function(La){if(zr==null||zr(La),La.which===Gt.Z.ENTER){var Ea=Fr(La);hr==null||hr(Jr(Ea)),pt(Ea)}},Wi=function(La){mr(sn),Er==null||Er(La)},Zi={};nt.role==="option"&&(Zi["aria-selected"]=li);var Na=fe.createElement(qi,(0,ee.Z)({ref:on,elementRef:Kn,role:Qn===null?"none":Qn||"menuitem",tabIndex:ur?null:-1,"data-menu-id":mn&&Br?null:Br},wr,Vr,Zi,{component:"li","aria-disabled":ur,style:(0,ke.Z)((0,ke.Z)({},Mi),Ct),className:Ee()(Ht,(ft={},(0,de.Z)(ft,"".concat(Ht,"-active"),Ar),(0,de.Z)(ft,"".concat(Ht,"-selected"),li),(0,de.Z)(ft,"".concat(Ht,"-disabled"),dr),ft),wt),onClick:si,onKeyDown:Kr,onFocus:Wi}),fr,fe.createElement(Si,{props:(0,ke.Z)((0,ke.Z)({},nt),{},{isSelected:li}),icon:ii}));return It&&(Na=It(Na,nt,{selected:li})),Na});function zi(nt,ut){var ft=nt.eventKey,Ct=an(),wt=dn(ft);return fe.useEffect(function(){if(Ct)return Ct.registerPath(ft,wt),function(){Ct.unregisterPath(ft,wt)}},[wt]),Ct?null:fe.createElement($a,(0,ee.Z)({},nt,{ref:ut}))}var to=fe.forwardRef(zi),_r=["className","children"],Wo=function(ut,ft){var Ct=ut.className,wt=ut.children,sn=(0,Me.Z)(ut,_r),En=fe.useContext(le),ur=En.prefixCls,yr=En.mode,fr=En.rtl;return fe.createElement("ul",(0,ee.Z)({className:Ee()(ur,fr&&"".concat(ur,"-rtl"),"".concat(ur,"-sub"),"".concat(ur,"-").concat(yr==="inline"?"inline":"vertical"),Ct),role:"menu"},sn,{"data-menu-list":!0,ref:ft}),wt)},_o=fe.forwardRef(Wo);_o.displayName="SubMenuList";var bl=_o,jo=te(50344);function Po(nt,ut){return(0,jo.Z)(nt).map(function(ft,Ct){if(fe.isValidElement(ft)){var wt,sn,En=ft.key,ur=(wt=(sn=ft.props)===null||sn===void 0?void 0:sn.eventKey)!==null&&wt!==void 0?wt:En,yr=ur==null;yr&&(ur="tmp_key-".concat([].concat((0,Ge.Z)(ut),[Ct]).join("-")));var fr={key:ur,eventKey:ur};return fe.cloneElement(ft,fr)}return ft})}var la=te(62709),el={adjustX:1,adjustY:1},No={topLeft:{points:["bl","tl"],overflow:el},topRight:{points:["br","tr"],overflow:el},bottomLeft:{points:["tl","bl"],overflow:el},bottomRight:{points:["tr","br"],overflow:el},leftTop:{points:["tr","tl"],overflow:el},leftBottom:{points:["br","bl"],overflow:el},rightTop:{points:["tl","tr"],overflow:el},rightBottom:{points:["bl","br"],overflow:el}},rl={topLeft:{points:["bl","tl"],overflow:el},topRight:{points:["br","tr"],overflow:el},bottomLeft:{points:["tl","bl"],overflow:el},bottomRight:{points:["tr","br"],overflow:el},rightTop:{points:["tr","tl"],overflow:el},rightBottom:{points:["br","bl"],overflow:el},leftTop:{points:["tl","tr"],overflow:el},leftBottom:{points:["bl","br"],overflow:el}},vl=null;function ll(nt,ut,ft){if(ut)return ut;if(ft)return ft[nt]||ft.other}var Uo={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function gl(nt){var ut=nt.prefixCls,ft=nt.visible,Ct=nt.children,wt=nt.popup,sn=nt.popupStyle,En=nt.popupClassName,ur=nt.popupOffset,yr=nt.disabled,fr=nt.mode,Qn=nt.onVisibleChange,Yn=fe.useContext(le),On=Yn.getPopupContainer,hr=Yn.rtl,zr=Yn.subMenuOpenDelay,Er=Yn.subMenuCloseDelay,wr=Yn.builtinPlacements,Br=Yn.triggerSubMenuAction,Or=Yn.forceSubMenuRender,Wr=Yn.rootClassName,pt=Yn.motion,vt=Yn.defaultMotions,mn=fe.useState(!1),ln=(0,xe.Z)(mn,2),$n=ln[0],mr=ln[1],Ft=hr?(0,ke.Z)((0,ke.Z)({},rl),wr):(0,ke.Z)((0,ke.Z)({},No),wr),It=Uo[fr],Ht=ll(fr,pt,vt),on=fe.useRef(Ht);fr!=="inline"&&(on.current=Ht);var Vn=(0,ke.Z)((0,ke.Z)({},on.current),{},{leavedClassName:"".concat(ut,"-hidden"),removeOnLeave:!1,motionAppear:!0}),dr=fe.useRef();return fe.useEffect(function(){return dr.current=(0,jt.Z)(function(){mr(ft)}),function(){jt.Z.cancel(dr.current)}},[ft]),fe.createElement(la.Z,{prefixCls:ut,popupClassName:Ee()("".concat(ut,"-popup"),(0,de.Z)({},"".concat(ut,"-rtl"),hr),En,Wr),stretch:fr==="horizontal"?"minWidth":null,getPopupContainer:On,builtinPlacements:Ft,popupPlacement:It,popupVisible:$n,popup:wt,popupStyle:sn,popupAlign:ur&&{offset:ur},action:yr?[]:[Br],mouseEnterDelay:zr,mouseLeaveDelay:Er,onPopupVisibleChange:Qn,forceRender:Or,popupMotion:Vn,fresh:!0},Ct)}var wl=te(62874);function dl(nt){var ut=nt.id,ft=nt.open,Ct=nt.keyPath,wt=nt.children,sn="inline",En=fe.useContext(le),ur=En.prefixCls,yr=En.forceSubMenuRender,fr=En.motion,Qn=En.defaultMotions,Yn=En.mode,On=fe.useRef(!1);On.current=Yn===sn;var hr=fe.useState(!On.current),zr=(0,xe.Z)(hr,2),Er=zr[0],wr=zr[1],Br=On.current?ft:!1;fe.useEffect(function(){On.current&&wr(!1)},[Yn]);var Or=(0,ke.Z)({},ll(sn,fr,Qn));Ct.length>1&&(Or.motionAppear=!1);var Wr=Or.onVisibleChanged;return Or.onVisibleChanged=function(pt){return!On.current&&!pt&&wr(!0),Wr==null?void 0:Wr(pt)},Er?null:fe.createElement(dt,{mode:sn,locked:!On.current},fe.createElement(wl.Z,(0,ee.Z)({visible:Br},Or,{forceRender:yr,removeOnLeave:!1,leavedClassName:"".concat(ur,"-hidden")}),function(pt){var vt=pt.className,mn=pt.style;return fe.createElement(bl,{id:ut,className:vt,style:mn},wt)}))}var io=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],wn=["active"],pn=function(ut){var ft,Ct=ut.style,wt=ut.className,sn=ut.title,En=ut.eventKey,ur=ut.warnKey,yr=ut.disabled,fr=ut.internalPopupClose,Qn=ut.children,Yn=ut.itemIcon,On=ut.expandIcon,hr=ut.popupClassName,zr=ut.popupOffset,Er=ut.popupStyle,wr=ut.onClick,Br=ut.onMouseEnter,Or=ut.onMouseLeave,Wr=ut.onTitleClick,pt=ut.onTitleMouseEnter,vt=ut.onTitleMouseLeave,mn=(0,Me.Z)(ut,io),ln=ce(En),$n=fe.useContext(le),mr=$n.prefixCls,Ft=$n.mode,It=$n.openKeys,Ht=$n.disabled,on=$n.overflowDisabled,Vn=$n.activeKey,dr=$n.selectedKeys,Kn=$n.itemIcon,rr=$n.expandIcon,Fr=$n.onItemClick,ii=$n.onOpenChange,Zr=$n.onActive,Ar=fe.useContext(qt),Vr=Ar._internalRenderSubMenuItem,li=fe.useContext(Mt),Mi=li.isSubPathKey,si=dn(),Kr="".concat(mr,"-submenu"),Wi=Ht||yr,Zi=fe.useRef(),Na=fe.useRef(),Ha=Yn!=null?Yn:Kn,La=On!=null?On:rr,Ea=It.includes(En),Ra=!on&&Ea,va=Mi(dr,En),oo=di(En,Wi,pt,vt),Ca=oo.active,Qi=(0,Me.Z)(oo,wn),ja=fe.useState(!1),bo=(0,xe.Z)(ja,2),ca=bo[0],Vo=bo[1],Go=function(il){Wi||Vo(il)},tl=function(il){Go(!0),Br==null||Br({key:En,domEvent:il})},zo=function(il){Go(!1),Or==null||Or({key:En,domEvent:il})},no=fe.useMemo(function(){return Ca||(Ft!=="inline"?ca||Mi([Vn],En):!1)},[Ft,Ca,Vn,ca,En,Mi]),kl=ci(si.length),Co=function(il){Wi||(Wr==null||Wr({key:En,domEvent:il}),Ft==="inline"&&ii(En,!Ea))},_a=yt(function(xl){wr==null||wr(Jr(xl)),Fr(xl)}),Ao=function(il){Ft!=="inline"&&ii(En,il)},ml=function(){Zr(En)},Ko=ln&&"".concat(ln,"-popup"),$o=fe.createElement("div",(0,ee.Z)({role:"menuitem",style:kl,className:"".concat(Kr,"-title"),tabIndex:Wi?null:-1,ref:Zi,title:typeof sn=="string"?sn:null,"data-menu-id":on&&ln?null:ln,"aria-expanded":Ra,"aria-haspopup":!0,"aria-controls":Ko,"aria-disabled":Wi,onClick:Co,onFocus:ml},Qi),sn,fe.createElement(Si,{icon:Ft!=="horizontal"?La:void 0,props:(0,ke.Z)((0,ke.Z)({},ut),{},{isOpen:Ra,isSubMenu:!0})},fe.createElement("i",{className:"".concat(Kr,"-arrow")}))),Ya=fe.useRef(Ft);if(Ft!=="inline"&&si.length>1?Ya.current="vertical":Ya.current=Ft,!on){var yl=Ya.current;$o=fe.createElement(gl,{mode:yl,prefixCls:Kr,visible:!fr&&Ra&&Ft!=="inline",popupClassName:hr,popupOffset:zr,popupStyle:Er,popup:fe.createElement(dt,{mode:yl==="horizontal"?"vertical":yl},fe.createElement(bl,{id:Ko,ref:Na},Qn)),disabled:Wi,onVisibleChange:Ao},$o)}var Il=fe.createElement(kt.Item,(0,ee.Z)({role:"none"},mn,{component:"li",style:Ct,className:Ee()(Kr,"".concat(Kr,"-").concat(Ft),wt,(ft={},(0,de.Z)(ft,"".concat(Kr,"-open"),Ra),(0,de.Z)(ft,"".concat(Kr,"-active"),no),(0,de.Z)(ft,"".concat(Kr,"-selected"),va),(0,de.Z)(ft,"".concat(Kr,"-disabled"),Wi),ft)),onMouseEnter:tl,onMouseLeave:zo}),$o,!on&&fe.createElement(dl,{id:Ko,open:Ra,keyPath:si},Qn));return Vr&&(Il=Vr(Il,ut,{selected:va,active:no,open:Ra,disabled:Wi})),fe.createElement(dt,{onItemClick:_a,mode:Ft==="horizontal"?"vertical":Ft,itemIcon:Ha,expandIcon:La},Il)};function ar(nt){var ut=nt.eventKey,ft=nt.children,Ct=dn(ut),wt=Po(ft,Ct),sn=an();fe.useEffect(function(){if(sn)return sn.registerPath(ut,Ct),function(){sn.unregisterPath(ut,Ct)}},[Ct]);var En;return sn?En=wt:En=fe.createElement(pn,nt,wt),fe.createElement(Yt.Provider,{value:Ct},En)}var tr=te(71002),Yr=["className","title","eventKey","children"],$i=["children"],ia=function(ut){var ft=ut.className,Ct=ut.title,wt=ut.eventKey,sn=ut.children,En=(0,Me.Z)(ut,Yr),ur=fe.useContext(le),yr=ur.prefixCls,fr="".concat(yr,"-item-group");return fe.createElement("li",(0,ee.Z)({role:"presentation"},En,{onClick:function(Yn){return Yn.stopPropagation()},className:Ee()(fr,ft)}),fe.createElement("div",{role:"presentation",className:"".concat(fr,"-title"),title:typeof Ct=="string"?Ct:void 0},Ct),fe.createElement("ul",{role:"group",className:"".concat(fr,"-list")},sn))};function sa(nt){var ut=nt.children,ft=(0,Me.Z)(nt,$i),Ct=dn(ft.eventKey),wt=Po(ut,Ct),sn=an();return sn?wt:fe.createElement(ia,(0,Xr.Z)(ft,["warnKey"]),wt)}function ka(nt){var ut=nt.className,ft=nt.style,Ct=fe.useContext(le),wt=Ct.prefixCls,sn=an();return sn?null:fe.createElement("li",{role:"separator",className:Ee()("".concat(wt,"-item-divider"),ut),style:ft})}var ga=["label","children","key","type"];function ho(nt){return(nt||[]).map(function(ut,ft){if(ut&&(0,tr.Z)(ut)==="object"){var Ct=ut,wt=Ct.label,sn=Ct.children,En=Ct.key,ur=Ct.type,yr=(0,Me.Z)(Ct,ga),fr=En!=null?En:"tmp-".concat(ft);return sn||ur==="group"?ur==="group"?fe.createElement(sa,(0,ee.Z)({key:fr},yr,{title:wt}),ho(sn)):fe.createElement(ar,(0,ee.Z)({key:fr},yr,{title:wt}),ho(sn)):ur==="divider"?fe.createElement(ka,(0,ee.Z)({key:fr},yr)):fe.createElement(to,(0,ee.Z)({key:fr},yr),wt)}return null}).filter(function(ut){return ut})}function ao(nt,ut,ft){var Ct=nt;return ut&&(Ct=ho(ut)),Po(Ct,ft)}var mo=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Un=[],ir=fe.forwardRef(function(nt,ut){var ft,Ct,wt=nt,sn=wt.prefixCls,En=sn===void 0?"rc-menu":sn,ur=wt.rootClassName,yr=wt.style,fr=wt.className,Qn=wt.tabIndex,Yn=Qn===void 0?0:Qn,On=wt.items,hr=wt.children,zr=wt.direction,Er=wt.id,wr=wt.mode,Br=wr===void 0?"vertical":wr,Or=wt.inlineCollapsed,Wr=wt.disabled,pt=wt.disabledOverflow,vt=wt.subMenuOpenDelay,mn=vt===void 0?.1:vt,ln=wt.subMenuCloseDelay,$n=ln===void 0?.1:ln,mr=wt.forceSubMenuRender,Ft=wt.defaultOpenKeys,It=wt.openKeys,Ht=wt.activeKey,on=wt.defaultActiveFirst,Vn=wt.selectable,dr=Vn===void 0?!0:Vn,Kn=wt.multiple,rr=Kn===void 0?!1:Kn,Fr=wt.defaultSelectedKeys,ii=wt.selectedKeys,Zr=wt.onSelect,Ar=wt.onDeselect,Vr=wt.inlineIndent,li=Vr===void 0?24:Vr,Mi=wt.motion,si=wt.defaultMotions,Kr=wt.triggerSubMenuAction,Wi=Kr===void 0?"hover":Kr,Zi=wt.builtinPlacements,Na=wt.itemIcon,Ha=wt.expandIcon,La=wt.overflowedIndicator,Ea=La===void 0?"...":La,Ra=wt.overflowedIndicatorPopupClassName,va=wt.getPopupContainer,oo=wt.onClick,Ca=wt.onOpenChange,Qi=wt.onKeyDown,ja=wt.openAnimation,bo=wt.openTransitionName,ca=wt._internalRenderMenuItem,Vo=wt._internalRenderSubMenuItem,Go=(0,Me.Z)(wt,mo),tl=fe.useMemo(function(){return ao(hr,On,Un)},[hr,On]),zo=fe.useState(!1),no=(0,xe.Z)(zo,2),kl=no[0],Co=no[1],_a=fe.useRef(),Ao=cn(Er),ml=zr==="rtl",Ko=(0,un.Z)(Ft,{value:It,postState:function(Xi){return Xi||Un}}),$o=(0,xe.Z)(Ko,2),Ya=$o[0],yl=$o[1],Il=function(Xi){var da=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function So(){yl(Xi),Ca==null||Ca(Xi)}da?(0,ve.flushSync)(So):So()},xl=fe.useState(Ya),il=(0,xe.Z)(xl,2),El=il[0],Al=il[1],Bl=fe.useRef(!1),Ol=fe.useMemo(function(){return(Br==="inline"||Br==="vertical")&&Or?["vertical",Or]:[Br,!1]},[Br,Or]),Lt=(0,xe.Z)(Ol,2),rn=Lt[0],gn=Lt[1],Xn=rn==="inline",ta=fe.useState(rn),ui=(0,xe.Z)(ta,2),wi=ui[0],bi=ui[1],Oi=fe.useState(gn),Pa=(0,xe.Z)(Oi,2),fa=Pa[0],ro=Pa[1];fe.useEffect(function(){bi(rn),ro(gn),Bl.current&&(Xn?yl(El):Il(Un))},[rn,gn]);var Qo=fe.useState(0),xo=(0,xe.Z)(Qo,2),xi=xo[0],Sa=xo[1],Yi=xi>=tl.length-1||wi!=="horizontal"||pt;fe.useEffect(function(){Xn&&Al(Ya)},[Ya]),fe.useEffect(function(){return Bl.current=!0,function(){Bl.current=!1}},[]);var Ai=Mn(),ki=Ai.registerPath,ya=Ai.unregisterPath,Ye=Ai.refreshOverflowKeys,tt=Ai.isSubPathKey,zt=Ai.getKeyPath,Ot=Ai.getKeys,hn=Ai.getSubPathKeys,Pn=fe.useMemo(function(){return{registerPath:ki,unregisterPath:ya}},[ki,ya]),xn=fe.useMemo(function(){return{isSubPathKey:tt}},[tt]);fe.useEffect(function(){Ye(Yi?Un:tl.slice(xi+1).map(function(Vi){return Vi.key}))},[xi,Yi]);var lr=(0,un.Z)(Ht||on&&((ft=tl[0])===null||ft===void 0?void 0:ft.key),{value:Ht}),pr=(0,xe.Z)(lr,2),qn=pr[0],pi=pr[1],ei=yt(function(Vi){pi(Vi)}),ni=yt(function(){pi(void 0)});(0,fe.useImperativeHandle)(ut,function(){return{list:_a.current,focus:function(Xi){var da,So=qn!=null?qn:(da=tl.find(function(Io){return!Io.props.disabled}))===null||da===void 0?void 0:da.key;if(So){var uo,Eo,vo;(uo=_a.current)===null||uo===void 0||(Eo=uo.querySelector("li[data-menu-id='".concat(he(Ao,So),"']")))===null||Eo===void 0||(vo=Eo.focus)===null||vo===void 0||vo.call(Eo,Xi)}}}});var $r=(0,un.Z)(Fr||[],{value:ii,postState:function(Xi){return Array.isArray(Xi)?Xi:Xi==null?Un:[Xi]}}),fi=(0,xe.Z)($r,2),ri=fi[0],Ki=fi[1],Ma=function(Xi){if(dr){var da=Xi.key,So=ri.includes(da),uo;rr?So?uo=ri.filter(function(vo){return vo!==da}):uo=[].concat((0,Ge.Z)(ri),[da]):uo=[da],Ki(uo);var Eo=(0,ke.Z)((0,ke.Z)({},Xi),{},{selectedKeys:uo});So?Ar==null||Ar(Eo):Zr==null||Zr(Eo)}!rr&&Ya.length&&wi!=="inline"&&Il(Un)},Ua=yt(function(Vi){oo==null||oo(Jr(Vi)),Ma(Vi)}),Xa=yt(function(Vi,Xi){var da=Ya.filter(function(uo){return uo!==Vi});if(Xi)da.push(Vi);else if(wi!=="inline"){var So=hn(Vi);da=da.filter(function(uo){return!So.has(uo)})}(0,An.Z)(Ya,da,!0)||Il(da,!0)}),za=function(Xi,da){var So=da!=null?da:!Ya.includes(Xi);Xa(Xi,So)},lo=Rr(wi,qn,ml,Ao,_a,Ot,zt,pi,za,Qi);fe.useEffect(function(){Co(!0)},[]);var wa=fe.useMemo(function(){return{_internalRenderMenuItem:ca,_internalRenderSubMenuItem:Vo}},[ca,Vo]),Ka=wi!=="horizontal"||pt?tl:tl.map(function(Vi,Xi){return fe.createElement(dt,{key:Vi.key,overflowDisabled:Xi>xi},Vi)}),so=fe.createElement(kt,(0,ee.Z)({id:Er,ref:_a,prefixCls:"".concat(En,"-overflow"),component:"ul",itemComponent:to,className:Ee()(En,"".concat(En,"-root"),"".concat(En,"-").concat(wi),fr,(Ct={},(0,de.Z)(Ct,"".concat(En,"-inline-collapsed"),fa),(0,de.Z)(Ct,"".concat(En,"-rtl"),ml),Ct),ur),dir:zr,style:yr,role:"menu",tabIndex:Yn,data:Ka,renderRawItem:function(Xi){return Xi},renderRawRest:function(Xi){var da=Xi.length,So=da?tl.slice(-da):null;return fe.createElement(ar,{eventKey:fn,title:Ea,disabled:Yi,internalPopupClose:da===0,popupClassName:Ra},So)},maxCount:wi!=="horizontal"||pt?kt.INVALIDATE:kt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Xi){Sa(Xi)},onKeyDown:lo},Go));return fe.createElement(qt.Provider,{value:wa},fe.createElement(Ie.Provider,{value:Ao},fe.createElement(dt,{prefixCls:En,rootClassName:ur,mode:wi,openKeys:Ya,rtl:ml,disabled:Wr,motion:kl?Mi:null,defaultMotions:kl?si:null,activeKey:qn,onActive:ei,onInactive:ni,selectedKeys:ri,inlineIndent:li,subMenuOpenDelay:mn,subMenuCloseDelay:$n,forceSubMenuRender:mr,builtinPlacements:Zi,triggerSubMenuAction:Wi,getPopupContainer:va,itemIcon:Na,expandIcon:Ha,onItemClick:Ua,onOpenChange:Xa},fe.createElement(Mt.Provider,{value:xn},so),fe.createElement("div",{style:{display:"none"},"aria-hidden":!0},fe.createElement(tn.Provider,{value:Pn},tl)))))}),Sr=ir,Ce=Sr;Ce.Item=to,Ce.SubMenu=ar,Ce.ItemGroup=sa,Ce.Divider=ka;var Xe=Ce},81626:function(vn,Tt){"use strict";Tt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},46762:function(vn,Tt){"use strict";var te;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),fe=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),Qe;Qe=Symbol.for("react.module.reference");function _e(ge){if(typeof ge=="object"&&ge!==null){var Ve=ge.$$typeof;switch(Ve){case ee:switch(ge=ge.type,ge){case ke:case xe:case Ge:case we:case Ue:return ge;default:switch(ge=ge&&ge.$$typeof,ge){case Ee:case ue:case fe:case Ke:case De:case Me:return ge;default:return Ve}}case de:return Ve}}}te=ue,te=Me,te=ee,te=fe,te=ke,te=Ke,te=De,te=de,te=xe,te=Ge,te=we,te=Ue,te=function(){return!1},te=function(){return!1},te=function(ge){return _e(ge)===ue},te=function(ge){return _e(ge)===Me},te=function(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===ee},te=function(ge){return _e(ge)===fe},Tt.isFragment=function(ge){return _e(ge)===ke},te=function(ge){return _e(ge)===Ke},te=function(ge){return _e(ge)===De},te=function(ge){return _e(ge)===de},te=function(ge){return _e(ge)===xe},te=function(ge){return _e(ge)===Ge},te=function(ge){return _e(ge)===we},te=function(ge){return _e(ge)===Ue},te=function(ge){return typeof ge=="string"||typeof ge=="function"||ge===ke||ge===xe||ge===Ge||ge===we||ge===Ue||ge===rt||typeof ge=="object"&&ge!==null&&(ge.$$typeof===Ke||ge.$$typeof===De||ge.$$typeof===Me||ge.$$typeof===ue||ge.$$typeof===fe||ge.$$typeof===Qe||ge.getModuleId!==void 0)},te=_e},35110:function(vn,Tt,te){"use strict";vn.exports=te(46762)},86128:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ze}});var ee=te(87462),de=te(4942),ke=te(45987),Ge=te(1413),xe=te(15671),Me=te(43144),ue=te(97326),Ee=te(60136),fe=te(51630),we=te(67294),Ue=te(94184),De=te.n(Ue),Ke=te(64217),rt=te(27822),Qe=function(st){for(var at=st.prefixCls,Ze=st.level,Ae=st.isStart,mt=st.isEnd,je="".concat(at,"-indent-unit"),it=[],qe=0;qe<Ze;qe+=1){var gt;it.push(we.createElement("span",{key:qe,className:De()(je,(gt={},(0,de.Z)(gt,"".concat(je,"-start"),Ae[qe]),(0,de.Z)(gt,"".concat(je,"-end"),mt[qe]),gt))}))}return we.createElement("span",{"aria-hidden":"true",className:"".concat(at,"-indent")},it)},_e=we.memo(Qe),ge=te(1089),Ve=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],lt="open",He="close",Oe="---",ve=function(We){(0,Ee.Z)(at,We);var st=(0,fe.Z)(at);function at(){var Ze;(0,xe.Z)(this,at);for(var Ae=arguments.length,mt=new Array(Ae),je=0;je<Ae;je++)mt[je]=arguments[je];return Ze=st.call.apply(st,[this].concat(mt)),Ze.state={dragNodeHighlight:!1},Ze.selectHandle=void 0,Ze.onSelectorClick=function(it){var qe=Ze.props.context.onNodeClick;qe(it,(0,ge.F)(Ze.props)),Ze.isSelectable()?Ze.onSelect(it):Ze.onCheck(it)},Ze.onSelectorDoubleClick=function(it){var qe=Ze.props.context.onNodeDoubleClick;qe(it,(0,ge.F)(Ze.props))},Ze.onSelect=function(it){if(!Ze.isDisabled()){var qe=Ze.props.context.onNodeSelect;it.preventDefault(),qe(it,(0,ge.F)(Ze.props))}},Ze.onCheck=function(it){if(!Ze.isDisabled()){var qe=Ze.props,gt=qe.disableCheckbox,Pt=qe.checked,Xt=Ze.props.context.onNodeCheck;if(!(!Ze.isCheckable()||gt)){it.preventDefault();var $e=!Pt;Xt(it,(0,ge.F)(Ze.props),$e)}}},Ze.onMouseEnter=function(it){var qe=Ze.props.context.onNodeMouseEnter;qe(it,(0,ge.F)(Ze.props))},Ze.onMouseLeave=function(it){var qe=Ze.props.context.onNodeMouseLeave;qe(it,(0,ge.F)(Ze.props))},Ze.onContextMenu=function(it){var qe=Ze.props.context.onNodeContextMenu;qe(it,(0,ge.F)(Ze.props))},Ze.onDragStart=function(it){var qe=Ze.props.context.onNodeDragStart;it.stopPropagation(),Ze.setState({dragNodeHighlight:!0}),qe(it,(0,ue.Z)(Ze));try{it.dataTransfer.setData("text/plain","")}catch(gt){}},Ze.onDragEnter=function(it){var qe=Ze.props.context.onNodeDragEnter;it.preventDefault(),it.stopPropagation(),qe(it,(0,ue.Z)(Ze))},Ze.onDragOver=function(it){var qe=Ze.props.context.onNodeDragOver;it.preventDefault(),it.stopPropagation(),qe(it,(0,ue.Z)(Ze))},Ze.onDragLeave=function(it){var qe=Ze.props.context.onNodeDragLeave;it.stopPropagation(),qe(it,(0,ue.Z)(Ze))},Ze.onDragEnd=function(it){var qe=Ze.props.context.onNodeDragEnd;it.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),qe(it,(0,ue.Z)(Ze))},Ze.onDrop=function(it){var qe=Ze.props.context.onNodeDrop;it.preventDefault(),it.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),qe(it,(0,ue.Z)(Ze))},Ze.onExpand=function(it){var qe=Ze.props,gt=qe.loading,Pt=qe.context.onNodeExpand;gt||Pt(it,(0,ge.F)(Ze.props))},Ze.setSelectHandle=function(it){Ze.selectHandle=it},Ze.getNodeState=function(){var it=Ze.props.expanded;return Ze.isLeaf()?null:it?lt:He},Ze.hasChildren=function(){var it=Ze.props.eventKey,qe=Ze.props.context.keyEntities,gt=qe[it]||{},Pt=gt.children;return!!(Pt||[]).length},Ze.isLeaf=function(){var it=Ze.props,qe=it.isLeaf,gt=it.loaded,Pt=Ze.props.context.loadData,Xt=Ze.hasChildren();return qe===!1?!1:qe||!Pt&&!Xt||Pt&&gt&&!Xt},Ze.isDisabled=function(){var it=Ze.props.disabled,qe=Ze.props.context.disabled;return!!(qe||it)},Ze.isCheckable=function(){var it=Ze.props.checkable,qe=Ze.props.context.checkable;return!qe||it===!1?!1:qe},Ze.syncLoadData=function(it){var qe=it.expanded,gt=it.loading,Pt=it.loaded,Xt=Ze.props.context,$e=Xt.loadData,Be=Xt.onNodeLoad;gt||$e&&qe&&!Ze.isLeaf()&&!Ze.hasChildren()&&!Pt&&Be((0,ge.F)(Ze.props))},Ze.isDraggable=function(){var it=Ze.props,qe=it.data,gt=it.context.draggable;return!!(gt&&(!gt.nodeDraggable||gt.nodeDraggable(qe)))},Ze.renderDragHandler=function(){var it=Ze.props.context,qe=it.draggable,gt=it.prefixCls;return qe!=null&&qe.icon?we.createElement("span",{className:"".concat(gt,"-draggable-icon")},qe.icon):null},Ze.renderSwitcherIconDom=function(it){var qe=Ze.props.switcherIcon,gt=Ze.props.context.switcherIcon,Pt=qe||gt;return typeof Pt=="function"?Pt((0,Ge.Z)((0,Ge.Z)({},Ze.props),{},{isLeaf:it})):Pt},Ze.renderSwitcher=function(){var it=Ze.props.expanded,qe=Ze.props.context.prefixCls;if(Ze.isLeaf()){var gt=Ze.renderSwitcherIconDom(!0);return gt!==!1?we.createElement("span",{className:De()("".concat(qe,"-switcher"),"".concat(qe,"-switcher-noop"))},gt):null}var Pt=De()("".concat(qe,"-switcher"),"".concat(qe,"-switcher_").concat(it?lt:He)),Xt=Ze.renderSwitcherIconDom(!1);return Xt!==!1?we.createElement("span",{onClick:Ze.onExpand,className:Pt},Xt):null},Ze.renderCheckbox=function(){var it=Ze.props,qe=it.checked,gt=it.halfChecked,Pt=it.disableCheckbox,Xt=Ze.props.context.prefixCls,$e=Ze.isDisabled(),Be=Ze.isCheckable();if(!Be)return null;var St=typeof Be!="boolean"?Be:null;return we.createElement("span",{className:De()("".concat(Xt,"-checkbox"),qe&&"".concat(Xt,"-checkbox-checked"),!qe&&gt&&"".concat(Xt,"-checkbox-indeterminate"),($e||Pt)&&"".concat(Xt,"-checkbox-disabled")),onClick:Ze.onCheck},St)},Ze.renderIcon=function(){var it=Ze.props.loading,qe=Ze.props.context.prefixCls;return we.createElement("span",{className:De()("".concat(qe,"-iconEle"),"".concat(qe,"-icon__").concat(Ze.getNodeState()||"docu"),it&&"".concat(qe,"-icon_loading"))})},Ze.renderSelector=function(){var it=Ze.state.dragNodeHighlight,qe=Ze.props,gt=qe.title,Pt=gt===void 0?Oe:gt,Xt=qe.selected,$e=qe.icon,Be=qe.loading,St=qe.data,Vt=Ze.props.context,Rt=Vt.prefixCls,ht=Vt.showIcon,Bt=Vt.icon,_t=Vt.loadData,Fn=Vt.titleRender,kn=Ze.isDisabled(),kt="".concat(Rt,"-node-content-wrapper"),un;if(ht){var Wn=$e||Bt;un=Wn?we.createElement("span",{className:De()("".concat(Rt,"-iconEle"),"".concat(Rt,"-icon__customize"))},typeof Wn=="function"?Wn(Ze.props):Wn):Ze.renderIcon()}else _t&&Be&&(un=Ze.renderIcon());var An;typeof Pt=="function"?An=Pt(St):Fn?An=Fn(St):An=Pt;var Ie=we.createElement("span",{className:"".concat(Rt,"-title")},An);return we.createElement("span",{ref:Ze.setSelectHandle,title:typeof Pt=="string"?Pt:"",className:De()("".concat(kt),"".concat(kt,"-").concat(Ze.getNodeState()||"normal"),!kn&&(Xt||it)&&"".concat(Rt,"-node-selected")),onMouseEnter:Ze.onMouseEnter,onMouseLeave:Ze.onMouseLeave,onContextMenu:Ze.onContextMenu,onClick:Ze.onSelectorClick,onDoubleClick:Ze.onSelectorDoubleClick},un,Ie,Ze.renderDropIndicator())},Ze.renderDropIndicator=function(){var it=Ze.props,qe=it.disabled,gt=it.eventKey,Pt=Ze.props.context,Xt=Pt.draggable,$e=Pt.dropLevelOffset,Be=Pt.dropPosition,St=Pt.prefixCls,Vt=Pt.indent,Rt=Pt.dropIndicatorRender,ht=Pt.dragOverNodeKey,Bt=Pt.direction,_t=!!Xt,Fn=!qe&&_t&&ht===gt;return Fn?Rt({dropPosition:Be,dropLevelOffset:$e,indent:Vt,prefixCls:St,direction:Bt}):null},Ze}return(0,Me.Z)(at,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ae=this.props.selectable,mt=this.props.context.selectable;return typeof Ae=="boolean"?Ae:mt}},{key:"render",value:function(){var Ae,mt=this.props,je=mt.eventKey,it=mt.className,qe=mt.style,gt=mt.dragOver,Pt=mt.dragOverGapTop,Xt=mt.dragOverGapBottom,$e=mt.isLeaf,Be=mt.isStart,St=mt.isEnd,Vt=mt.expanded,Rt=mt.selected,ht=mt.checked,Bt=mt.halfChecked,_t=mt.loading,Fn=mt.domRef,kn=mt.active,kt=mt.data,un=mt.onMouseMove,Wn=mt.selectable,An=(0,ke.Z)(mt,Ve),Ie=this.props.context,he=Ie.prefixCls,ce=Ie.filterTreeNode,me=Ie.keyEntities,pe=Ie.dropContainerKey,le=Ie.dropTargetKey,Le=Ie.draggingNodeKey,dt=this.isDisabled(),Nt=(0,Ke.Z)(An,{aria:!0,data:!0}),tn=me[je]||{},an=tn.level,Yt=St[St.length-1],dn=this.isDraggable(),Mt=!dt&&dn,Wt=Le===je,qt=Wn!==void 0?{"aria-selected":!!Wn}:void 0;return we.createElement("div",(0,ee.Z)({ref:Fn,className:De()(it,"".concat(he,"-treenode"),(Ae={},(0,de.Z)(Ae,"".concat(he,"-treenode-disabled"),dt),(0,de.Z)(Ae,"".concat(he,"-treenode-switcher-").concat(Vt?"open":"close"),!$e),(0,de.Z)(Ae,"".concat(he,"-treenode-checkbox-checked"),ht),(0,de.Z)(Ae,"".concat(he,"-treenode-checkbox-indeterminate"),Bt),(0,de.Z)(Ae,"".concat(he,"-treenode-selected"),Rt),(0,de.Z)(Ae,"".concat(he,"-treenode-loading"),_t),(0,de.Z)(Ae,"".concat(he,"-treenode-active"),kn),(0,de.Z)(Ae,"".concat(he,"-treenode-leaf-last"),Yt),(0,de.Z)(Ae,"".concat(he,"-treenode-draggable"),dn),(0,de.Z)(Ae,"dragging",Wt),(0,de.Z)(Ae,"drop-target",le===je),(0,de.Z)(Ae,"drop-container",pe===je),(0,de.Z)(Ae,"drag-over",!dt&&gt),(0,de.Z)(Ae,"drag-over-gap-top",!dt&&Pt),(0,de.Z)(Ae,"drag-over-gap-bottom",!dt&&Xt),(0,de.Z)(Ae,"filter-node",ce&&ce((0,ge.F)(this.props))),Ae)),style:qe,draggable:Mt,"aria-grabbed":Wt,onDragStart:Mt?this.onDragStart:void 0,onDragEnter:dn?this.onDragEnter:void 0,onDragOver:dn?this.onDragOver:void 0,onDragLeave:dn?this.onDragLeave:void 0,onDrop:dn?this.onDrop:void 0,onDragEnd:dn?this.onDragEnd:void 0,onMouseMove:un},qt,Nt),we.createElement(_e,{prefixCls:he,level:an,isStart:Be,isEnd:St}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),at}(we.Component),ye=function(st){return we.createElement(rt.k.Consumer,null,function(at){return we.createElement(ve,(0,ee.Z)({},st,{context:at}))})};ye.displayName="TreeNode",ye.isTreeNode=1;var ze=ye},27822:function(vn,Tt,te){"use strict";te.d(Tt,{k:function(){return de}});var ee=te(67294),de=ee.createContext(null)},10225:function(vn,Tt,te){"use strict";te.d(Tt,{BT:function(){return _e},Ds:function(){return Ue},E6:function(){return lt},L0:function(){return Ee},OM:function(){return Qe},_5:function(){return ue},bt:function(){return we},r7:function(){return He},wA:function(){return De},yx:function(){return fe}});var ee=te(74902),de=te(71002),ke=te(67294),Ge=te(80334),xe=te(86128),Me=null;function ue(Oe,ve){if(!Oe)return[];var ye=Oe.slice(),ze=ye.indexOf(ve);return ze>=0&&ye.splice(ze,1),ye}function Ee(Oe,ve){var ye=(Oe||[]).slice();return ye.indexOf(ve)===-1&&ye.push(ve),ye}function fe(Oe){return Oe.split("-")}function we(Oe,ve){return"".concat(Oe,"-").concat(ve)}function Ue(Oe){return Oe&&Oe.type&&Oe.type.isTreeNode}function De(Oe,ve){var ye=[],ze=ve[Oe];function We(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];st.forEach(function(at){var Ze=at.key,Ae=at.children;ye.push(Ze),We(Ae)})}return We(ze.children),ye}function Ke(Oe){if(Oe.parent){var ve=fe(Oe.pos);return Number(ve[ve.length-1])===Oe.parent.children.length-1}return!1}function rt(Oe){var ve=fe(Oe.pos);return Number(ve[ve.length-1])===0}function Qe(Oe,ve,ye,ze,We,st,at,Ze,Ae,mt){var je,it=Oe.clientX,qe=Oe.clientY,gt=Oe.target.getBoundingClientRect(),Pt=gt.top,Xt=gt.height,$e=(mt==="rtl"?-1:1)*(((We==null?void 0:We.x)||0)-it),Be=($e-12)/ze,St=Ze[ye.props.eventKey];if(qe<Pt+Xt/2){var Vt=at.findIndex(function(he){return he.key===St.key}),Rt=Vt<=0?0:Vt-1,ht=at[Rt].key;St=Ze[ht]}var Bt=St.key,_t=St,Fn=St.key,kn=0,kt=0;if(!Ae.includes(Bt))for(var un=0;un<Be&&Ke(St);un+=1)St=St.parent,kt+=1;var Wn=ve.props.data,An=St.node,Ie=!0;return rt(St)&&St.level===0&&qe<Pt+Xt/2&&st({dragNode:Wn,dropNode:An,dropPosition:-1})&&St.key===ye.props.eventKey?kn=-1:(_t.children||[]).length&&Ae.includes(Fn)?st({dragNode:Wn,dropNode:An,dropPosition:0})?kn=0:Ie=!1:kt===0?Be>-1.5?st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1:st({dragNode:Wn,dropNode:An,dropPosition:0})?kn=0:st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1:st({dragNode:Wn,dropNode:An,dropPosition:1})?kn=1:Ie=!1,{dropPosition:kn,dropLevelOffset:kt,dropTargetKey:St.key,dropTargetPos:St.pos,dragOverNodeKey:Fn,dropContainerKey:kn===0?null:((je=St.parent)===null||je===void 0?void 0:je.key)||null,dropAllowed:Ie}}function _e(Oe,ve){if(Oe){var ye=ve.multiple;return ye?Oe.slice():Oe.length?[Oe[0]]:Oe}}var ge=function(ve){return ve};function Ve(Oe,ve){if(!Oe)return[];var ye=ve||{},ze=ye.processProps,We=ze===void 0?ge:ze,st=Array.isArray(Oe)?Oe:[Oe];return st.map(function(at){var Ze=at.children,Ae=_objectWithoutProperties(at,Me),mt=Ve(Ze,ve);return React.createElement(TreeNode,_extends({key:Ae.key},We(Ae)),mt)})}function lt(Oe){if(!Oe)return null;var ve;if(Array.isArray(Oe))ve={checkedKeys:Oe,halfCheckedKeys:void 0};else if((0,de.Z)(Oe)==="object")ve={checkedKeys:Oe.checked||void 0,halfCheckedKeys:Oe.halfChecked||void 0};else return(0,Ge.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ve}function He(Oe,ve){var ye=new Set;function ze(We){if(!ye.has(We)){var st=ve[We];if(st){ye.add(We);var at=st.parent,Ze=st.node;Ze.disabled||at&&ze(at.key)}}}return(Oe||[]).forEach(function(We){ze(We)}),(0,ee.Z)(ye)}},17341:function(vn,Tt,te){"use strict";te.d(Tt,{S:function(){return Me}});var ee=te(80334);function de(ue,Ee){var fe=new Set;return ue.forEach(function(we){Ee.has(we)||fe.add(we)}),fe}function ke(ue){var Ee=ue||{},fe=Ee.disabled,we=Ee.disableCheckbox,Ue=Ee.checkable;return!!(fe||we)||Ue===!1}function Ge(ue,Ee,fe,we){for(var Ue=new Set(ue),De=new Set,Ke=0;Ke<=fe;Ke+=1){var rt=Ee.get(Ke)||new Set;rt.forEach(function(Ve){var lt=Ve.key,He=Ve.node,Oe=Ve.children,ve=Oe===void 0?[]:Oe;Ue.has(lt)&&!we(He)&&ve.filter(function(ye){return!we(ye.node)}).forEach(function(ye){Ue.add(ye.key)})})}for(var Qe=new Set,_e=fe;_e>=0;_e-=1){var ge=Ee.get(_e)||new Set;ge.forEach(function(Ve){var lt=Ve.parent,He=Ve.node;if(!(we(He)||!Ve.parent||Qe.has(Ve.parent.key))){if(we(Ve.parent.node)){Qe.add(lt.key);return}var Oe=!0,ve=!1;(lt.children||[]).filter(function(ye){return!we(ye.node)}).forEach(function(ye){var ze=ye.key,We=Ue.has(ze);Oe&&!We&&(Oe=!1),!ve&&(We||De.has(ze))&&(ve=!0)}),Oe&&Ue.add(lt.key),ve&&De.add(lt.key),Qe.add(lt.key)}})}return{checkedKeys:Array.from(Ue),halfCheckedKeys:Array.from(de(De,Ue))}}function xe(ue,Ee,fe,we,Ue){for(var De=new Set(ue),Ke=new Set(Ee),rt=0;rt<=we;rt+=1){var Qe=fe.get(rt)||new Set;Qe.forEach(function(lt){var He=lt.key,Oe=lt.node,ve=lt.children,ye=ve===void 0?[]:ve;!De.has(He)&&!Ke.has(He)&&!Ue(Oe)&&ye.filter(function(ze){return!Ue(ze.node)}).forEach(function(ze){De.delete(ze.key)})})}Ke=new Set;for(var _e=new Set,ge=we;ge>=0;ge-=1){var Ve=fe.get(ge)||new Set;Ve.forEach(function(lt){var He=lt.parent,Oe=lt.node;if(!(Ue(Oe)||!lt.parent||_e.has(lt.parent.key))){if(Ue(lt.parent.node)){_e.add(He.key);return}var ve=!0,ye=!1;(He.children||[]).filter(function(ze){return!Ue(ze.node)}).forEach(function(ze){var We=ze.key,st=De.has(We);ve&&!st&&(ve=!1),!ye&&(st||Ke.has(We))&&(ye=!0)}),ve||De.delete(He.key),ye&&Ke.add(He.key),_e.add(He.key)}})}return{checkedKeys:Array.from(De),halfCheckedKeys:Array.from(de(Ke,De))}}function Me(ue,Ee,fe,we){var Ue=[],De;we?De=we:De=ke;var Ke=new Set(ue.filter(function(ge){var Ve=!!fe[ge];return Ve||Ue.push(ge),Ve})),rt=new Map,Qe=0;Object.keys(fe).forEach(function(ge){var Ve=fe[ge],lt=Ve.level,He=rt.get(lt);He||(He=new Set,rt.set(lt,He)),He.add(Ve),Qe=Math.max(Qe,lt)}),(0,ee.ZP)(!Ue.length,"Tree missing follow keys: ".concat(Ue.slice(0,100).map(function(ge){return"'".concat(ge,"'")}).join(", ")));var _e;return Ee===!0?_e=Ge(Ke,rt,Qe,De):_e=xe(Ke,Ee.halfCheckedKeys,rt,Qe,De),_e}},1089:function(vn,Tt,te){"use strict";te.d(Tt,{F:function(){return Ve},H8:function(){return ge},I8:function(){return _e},km:function(){return we},oH:function(){return rt},w$:function(){return Ue},zn:function(){return Ke}});var ee=te(71002),de=te(74902),ke=te(1413),Ge=te(45987),xe=te(98423),Me=te(50344),ue=te(80334),Ee=te(10225),fe=["children"];function we(lt,He){return lt!=null?lt:He}function Ue(lt){var He=lt||{},Oe=He.title,ve=He._title,ye=He.key,ze=He.children,We=Oe||"title";return{title:We,_title:ve||[We],key:ye||"key",children:ze||"children"}}function De(lt,He){var Oe=new Map;function ve(ye){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ye||[]).forEach(function(We){var st=We[He.key],at=We[He.children];warning(st!=null,"Tree node must have a certain key: [".concat(ze).concat(st,"]"));var Ze=String(st);warning(!Oe.has(Ze)||st===null||st===void 0,"Same 'key' exist in the Tree: ".concat(Ze)),Oe.set(Ze,!0),ve(at,"".concat(ze).concat(Ze," > "))})}ve(lt)}function Ke(lt){function He(Oe){var ve=(0,Me.Z)(Oe);return ve.map(function(ye){if(!(0,Ee.Ds)(ye))return(0,ue.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var ze=ye.key,We=ye.props,st=We.children,at=(0,Ge.Z)(We,fe),Ze=(0,ke.Z)({key:ze},at),Ae=He(st);return Ae.length&&(Ze.children=Ae),Ze}).filter(function(ye){return ye})}return He(lt)}function rt(lt,He,Oe){var ve=Ue(Oe),ye=ve._title,ze=ve.key,We=ve.children,st=new Set(He===!0?[]:He),at=[];function Ze(Ae){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(je,it){for(var qe=(0,Ee.bt)(mt?mt.pos:"0",it),gt=we(je[ze],qe),Pt,Xt=0;Xt<ye.length;Xt+=1){var $e=ye[Xt];if(je[$e]!==void 0){Pt=je[$e];break}}var Be=(0,ke.Z)((0,ke.Z)({},(0,xe.Z)(je,[].concat((0,de.Z)(ye),[ze,We]))),{},{title:Pt,key:gt,parent:mt,pos:qe,children:null,data:je,isStart:[].concat((0,de.Z)(mt?mt.isStart:[]),[it===0]),isEnd:[].concat((0,de.Z)(mt?mt.isEnd:[]),[it===Ae.length-1])});return at.push(Be),He===!0||st.has(gt)?Be.children=Ze(je[We]||[],Be):Be.children=[],Be})}return Ze(lt),at}function Qe(lt,He,Oe){var ve={};(0,ee.Z)(Oe)==="object"?ve=Oe:ve={externalGetKey:Oe},ve=ve||{};var ye=ve,ze=ye.childrenPropName,We=ye.externalGetKey,st=ye.fieldNames,at=Ue(st),Ze=at.key,Ae=at.children,mt=ze||Ae,je;We?typeof We=="string"?je=function(gt){return gt[We]}:typeof We=="function"&&(je=function(gt){return We(gt)}):je=function(gt,Pt){return we(gt[Ze],Pt)};function it(qe,gt,Pt,Xt){var $e=qe?qe[mt]:lt,Be=qe?(0,Ee.bt)(Pt.pos,gt):"0",St=qe?[].concat((0,de.Z)(Xt),[qe]):[];if(qe){var Vt=je(qe,Be),Rt={node:qe,index:gt,pos:Be,key:Vt,parentPos:Pt.node?Pt.pos:null,level:Pt.level+1,nodes:St};He(Rt)}$e&&$e.forEach(function(ht,Bt){it(ht,Bt,{node:qe,pos:Be,level:Pt?Pt.level+1:-1},St)})}it(null)}function _e(lt){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=He.initWrapper,ve=He.processEntity,ye=He.onProcessFinished,ze=He.externalGetKey,We=He.childrenPropName,st=He.fieldNames,at=arguments.length>2?arguments[2]:void 0,Ze=ze||at,Ae={},mt={},je={posEntities:Ae,keyEntities:mt};return Oe&&(je=Oe(je)||je),Qe(lt,function(it){var qe=it.node,gt=it.index,Pt=it.pos,Xt=it.key,$e=it.parentPos,Be=it.level,St=it.nodes,Vt={node:qe,nodes:St,index:gt,key:Xt,pos:Pt,level:Be},Rt=we(Xt,Pt);Ae[Pt]=Vt,mt[Rt]=Vt,Vt.parent=Ae[$e],Vt.parent&&(Vt.parent.children=Vt.parent.children||[],Vt.parent.children.push(Vt)),ve&&ve(Vt,je)},{externalGetKey:Ze,childrenPropName:We,fieldNames:st}),ye&&ye(je),je}function ge(lt,He){var Oe=He.expandedKeys,ve=He.selectedKeys,ye=He.loadedKeys,ze=He.loadingKeys,We=He.checkedKeys,st=He.halfCheckedKeys,at=He.dragOverNodeKey,Ze=He.dropPosition,Ae=He.keyEntities,mt=Ae[lt],je={eventKey:lt,expanded:Oe.indexOf(lt)!==-1,selected:ve.indexOf(lt)!==-1,loaded:ye.indexOf(lt)!==-1,loading:ze.indexOf(lt)!==-1,checked:We.indexOf(lt)!==-1,halfChecked:st.indexOf(lt)!==-1,pos:String(mt?mt.pos:""),dragOver:at===lt&&Ze===0,dragOverGapTop:at===lt&&Ze===-1,dragOverGapBottom:at===lt&&Ze===1};return je}function Ve(lt){var He=lt.data,Oe=lt.expanded,ve=lt.selected,ye=lt.checked,ze=lt.loaded,We=lt.loading,st=lt.halfChecked,at=lt.dragOver,Ze=lt.dragOverGapTop,Ae=lt.dragOverGapBottom,mt=lt.pos,je=lt.active,it=lt.eventKey,qe=(0,ke.Z)((0,ke.Z)({},He),{},{expanded:Oe,selected:ve,checked:ye,loaded:ze,loading:We,halfChecked:st,dragOver:at,dragOverGapTop:Ze,dragOverGapBottom:Ae,pos:mt,active:je,key:it});return"props"in qe||Object.defineProperty(qe,"props",{get:function(){return(0,ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),lt}}),qe}},66680:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});var ee=te(67294);function de(ke){var Ge=ee.useRef();Ge.current=ke;var xe=ee.useCallback(function(){for(var Me,ue=arguments.length,Ee=new Array(ue),fe=0;fe<ue;fe++)Ee[fe]=arguments[fe];return(Me=Ge.current)===null||Me===void 0?void 0:Me.call.apply(Me,[Ge].concat(Ee))},[]);return xe}},21770:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Me}});var ee=te(97685),de=te(66680),ke=te(8410),Ge=te(63896);function xe(ue){return ue!==void 0}function Me(ue,Ee){var fe=Ee||{},we=fe.defaultValue,Ue=fe.value,De=fe.onChange,Ke=fe.postState,rt=(0,Ge.Z)(function(){return xe(Ue)?Ue:xe(we)?typeof we=="function"?we():we:typeof ue=="function"?ue():ue}),Qe=(0,ee.Z)(rt,2),_e=Qe[0],ge=Qe[1],Ve=Ue!==void 0?Ue:_e,lt=Ke?Ke(Ve):Ve,He=(0,de.Z)(De),Oe=(0,Ge.Z)([Ve]),ve=(0,ee.Z)(Oe,2),ye=ve[0],ze=ve[1];(0,ke.o)(function(){var st=ye[0];_e!==st&&He(_e,st)},[ye]),(0,ke.o)(function(){xe(Ue)||ge(Ue)},[Ue]);var We=(0,de.Z)(function(st,at){ge(st,at),ze([Ve],at)});return[lt,We]}},91881:function(vn,Tt,te){"use strict";var ee=te(71002),de=te(80334);function ke(Ge,xe){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=new Set;function Ee(fe,we){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,De=ue.has(fe);if((0,de.ZP)(!De,"Warning: There may be circular references"),De)return!1;if(fe===we)return!0;if(Me&&Ue>1)return!1;ue.add(fe);var Ke=Ue+1;if(Array.isArray(fe)){if(!Array.isArray(we)||fe.length!==we.length)return!1;for(var rt=0;rt<fe.length;rt++)if(!Ee(fe[rt],we[rt],Ke))return!1;return!0}if(fe&&we&&(0,ee.Z)(fe)==="object"&&(0,ee.Z)(we)==="object"){var Qe=Object.keys(fe);return Qe.length!==Object.keys(we).length?!1:Qe.every(function(_e){return Ee(fe[_e],we[_e],Ke)})}return!1}return Ee(Ge,xe)}Tt.Z=ke},98423:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return de}});var ee=te(1413);function de(ke,Ge){var xe=(0,ee.Z)({},ke);return Array.isArray(Ge)&&Ge.forEach(function(Me){delete xe[Me]}),xe}},64217:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});var ee=te(1413),de=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,ke=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ge="".concat(de," ").concat(ke).split(/[\s\n]+/),xe="aria-",Me="data-";function ue(fe,we){return fe.indexOf(we)===0}function Ee(fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;we===!1?Ue={aria:!0,data:!0,attr:!0}:we===!0?Ue={aria:!0}:Ue=(0,ee.Z)({},we);var De={};return Object.keys(fe).forEach(function(Ke){(Ue.aria&&(Ke==="role"||ue(Ke,xe))||Ue.data&&ue(Ke,Me)||Ue.attr&&Ge.includes(Ke))&&(De[Ke]=fe[Ke])}),De}},73299:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ti}});var ee=te(87462),de=te(1413),ke=te(71002),Ge=te(97685),xe=te(4942),Me=te(45987),ue=te(67294),Ee=te(73935),fe=te(94184),we=te.n(fe),Ue=te(48555),De=ue.forwardRef(function(Kt,_n){var nn=Kt.height,In=Kt.offsetY,nr=Kt.offsetX,Rr=Kt.children,Pr=Kt.prefixCls,br=Kt.onInnerResize,xt=Kt.innerProps,$t=Kt.rtl,fn=Kt.extra,Mn={},yt={display:"flex",flexDirection:"column"};if(In!==void 0){var Ut;Mn={height:nn,position:"relative",overflow:"hidden"},yt=(0,de.Z)((0,de.Z)({},yt),{},(Ut={transform:"translateY(".concat(In,"px)")},(0,xe.Z)(Ut,$t?"marginRight":"marginLeft",-nr),(0,xe.Z)(Ut,"position","absolute"),(0,xe.Z)(Ut,"left",0),(0,xe.Z)(Ut,"right",0),(0,xe.Z)(Ut,"top",0),Ut))}return ue.createElement("div",{style:Mn},ue.createElement(Ue.Z,{onResize:function(cn){var zn=cn.offsetHeight;zn&&br&&br()}},ue.createElement("div",(0,ee.Z)({style:yt,className:we()((0,xe.Z)({},"".concat(Pr,"-holder-inner"),Pr)),ref:_n},xt),Rr,fn)))});De.displayName="Filler";var Ke=De,rt=function(_n){return+setTimeout(_n,16)},Qe=function(_n){return clearTimeout(_n)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(rt=function(_n){return window.requestAnimationFrame(_n)},Qe=function(_n){return window.cancelAnimationFrame(_n)});var _e=0,ge=new Map;function Ve(Kt){ge.delete(Kt)}var lt=function(_n){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_e+=1;var In=_e;function nr(Rr){if(Rr===0)Ve(In),_n();else{var Pr=rt(function(){nr(Rr-1)});ge.set(In,Pr)}}return nr(nn),In};lt.cancel=function(Kt){var _n=ge.get(Kt);return Ve(_n),Qe(_n)};var He=lt;function Oe(Kt,_n){var nn="touches"in Kt?Kt.touches[0]:Kt;return nn[_n?"pageX":"pageY"]}var ve=ue.forwardRef(function(Kt,_n){var nn,In=Kt.prefixCls,nr=Kt.rtl,Rr=Kt.scrollOffset,Pr=Kt.scrollRange,br=Kt.onStartMove,xt=Kt.onStopMove,$t=Kt.onScroll,fn=Kt.horizontal,Mn=Kt.spinSize,yt=Kt.containerSize,Ut=Kt.style,Cn=Kt.thumbStyle,cn=ue.useState(!1),zn=(0,Ge.Z)(cn,2),Hn=zn[0],Mr=zn[1],gi=ue.useState(null),Xr=(0,Ge.Z)(gi,2),Gr=Xr[0],di=Xr[1],ci=ue.useState(null),Si=(0,Ge.Z)(ci,2),Jn=Si[0],Jr=Si[1],Oa=!nr,Qa=ue.useRef(),Li=ue.useRef(),qi=ue.useState(!1),$a=(0,Ge.Z)(qi,2),zi=$a[0],to=$a[1],_r=ue.useRef(),Wo=function(){clearTimeout(_r.current),to(!0),_r.current=setTimeout(function(){to(!1)},3e3)},_o=Pr-yt||0,bl=yt-Mn||0,jo=_o>0,Po=ue.useMemo(function(){if(Rr===0||_o===0)return 0;var wl=Rr/_o;return wl*bl},[Rr,_o,bl]),la=function(dl){dl.stopPropagation(),dl.preventDefault()},el=ue.useRef({top:Po,dragging:Hn,pageY:Gr,startTop:Jn});el.current={top:Po,dragging:Hn,pageY:Gr,startTop:Jn};var No=function(dl){Mr(!0),di(Oe(dl,fn)),Jr(el.current.top),br(),dl.stopPropagation(),dl.preventDefault()};ue.useEffect(function(){var wl=function(pn){pn.preventDefault()},dl=Qa.current,io=Li.current;return dl.addEventListener("touchstart",wl),io.addEventListener("touchstart",No),function(){dl.removeEventListener("touchstart",wl),io.removeEventListener("touchstart",No)}},[]);var rl=ue.useRef();rl.current=_o;var vl=ue.useRef();vl.current=bl,ue.useEffect(function(){if(Hn){var wl,dl=function(pn){var ar=el.current,tr=ar.dragging,Yr=ar.pageY,$i=ar.startTop;if(He.cancel(wl),tr){var ia=Oe(pn,fn)-Yr,sa=$i;!Oa&&fn?sa-=ia:sa+=ia;var ka=rl.current,ga=vl.current,ho=ga?sa/ga:0,ao=Math.ceil(ho*ka);ao=Math.max(ao,0),ao=Math.min(ao,ka),wl=He(function(){$t(ao,fn)})}},io=function(){Mr(!1),xt()};return window.addEventListener("mousemove",dl),window.addEventListener("touchmove",dl),window.addEventListener("mouseup",io),window.addEventListener("touchend",io),function(){window.removeEventListener("mousemove",dl),window.removeEventListener("touchmove",dl),window.removeEventListener("mouseup",io),window.removeEventListener("touchend",io),He.cancel(wl)}}},[Hn]),ue.useEffect(function(){Wo()},[Rr]),ue.useImperativeHandle(_n,function(){return{delayHidden:Wo}});var ll="".concat(In,"-scrollbar"),Uo={position:"absolute",visibility:zi&&jo?null:"hidden"},gl={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return fn?(Uo.height=8,Uo.left=0,Uo.right=0,Uo.bottom=0,gl.height="100%",gl.width=Mn,Oa?gl.left=Po:gl.right=Po):(Uo.width=8,Uo.top=0,Uo.bottom=0,Oa?Uo.right=0:Uo.left=0,gl.width="100%",gl.height=Mn,gl.top=Po),ue.createElement("div",{ref:Qa,className:we()(ll,(nn={},(0,xe.Z)(nn,"".concat(ll,"-horizontal"),fn),(0,xe.Z)(nn,"".concat(ll,"-vertical"),!fn),(0,xe.Z)(nn,"".concat(ll,"-visible"),zi),nn)),style:(0,de.Z)((0,de.Z)({},Uo),Ut),onMouseDown:la,onMouseMove:Wo},ue.createElement("div",{ref:Li,className:we()("".concat(ll,"-thumb"),(0,xe.Z)({},"".concat(ll,"-thumb-moving"),Hn)),style:(0,de.Z)((0,de.Z)({},gl),Cn),onMouseDown:No}))}),ye=ve;function ze(Kt){var _n=Kt.children,nn=Kt.setRef,In=ue.useCallback(function(nr){nn(nr)},[]);return ue.cloneElement(_n,{ref:In})}function We(Kt,_n,nn,In,nr,Rr,Pr){var br=Pr.getKey;return Kt.slice(_n,nn+1).map(function(xt,$t){var fn=_n+$t,Mn=Rr(xt,fn,{style:{width:In}}),yt=br(xt);return ue.createElement(ze,{key:yt,setRef:function(Cn){return nr(xt,Cn)}},Mn)})}function st(Kt){return Kt instanceof HTMLElement||Kt instanceof SVGElement}function at(Kt){return st(Kt)?Kt:Kt instanceof ue.Component?Ee.findDOMNode(Kt):null}var Ze=te(15671),Ae=te(43144),mt=function(){function Kt(){(0,Ze.Z)(this,Kt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Ae.Z)(Kt,[{key:"set",value:function(nn,In){this.maps[nn]=In,this.id+=1}},{key:"get",value:function(nn){return this.maps[nn]}}]),Kt}(),je=mt;function it(Kt,_n,nn){var In=ue.useState(0),nr=(0,Ge.Z)(In,2),Rr=nr[0],Pr=nr[1],br=(0,ue.useRef)(new Map),xt=(0,ue.useRef)(new je),$t=(0,ue.useRef)();function fn(){He.cancel($t.current)}function Mn(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;fn();var Cn=function(){br.current.forEach(function(zn,Hn){if(zn&&zn.offsetParent){var Mr=at(zn),gi=Mr.offsetHeight;xt.current.get(Hn)!==gi&&xt.current.set(Hn,Mr.offsetHeight)}}),Pr(function(zn){return zn+1})};Ut?Cn():$t.current=He(Cn)}function yt(Ut,Cn){var cn=Kt(Ut),zn=br.current.get(cn);Cn?(br.current.set(cn,Cn),Mn()):br.current.delete(cn),!zn!=!Cn&&(Cn?_n==null||_n(Ut):nn==null||nn(Ut))}return(0,ue.useEffect)(function(){return fn},[]),[yt,Mn,xt.current,Rr]}function qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gt=qe()?ue.useLayoutEffect:ue.useEffect,Pt=function(_n,nn){var In=ue.useRef(!0);gt(function(){return _n(In.current)},nn),gt(function(){return In.current=!1,function(){In.current=!0}},[])},Xt=function(_n,nn){Pt(function(In){if(!In)return _n()},nn)},$e=Pt;function Be(Kt){var _n=ue.useRef();_n.current=Kt;var nn=ue.useCallback(function(){for(var In,nr=arguments.length,Rr=new Array(nr),Pr=0;Pr<nr;Pr++)Rr[Pr]=arguments[Pr];return(In=_n.current)===null||In===void 0?void 0:In.call.apply(In,[_n].concat(Rr))},[]);return nn}function St(Kt){var _n=React.useRef(!1),nn=React.useState(Kt),In=_slicedToArray(nn,2),nr=In[0],Rr=In[1];React.useEffect(function(){return _n.current=!1,function(){_n.current=!0}},[]);function Pr(br,xt){xt&&_n.current||Rr(br)}return[nr,Pr]}function Vt(Kt){return Kt!==void 0}function Rt(Kt,_n){var nn=_n||{},In=nn.defaultValue,nr=nn.value,Rr=nn.onChange,Pr=nn.postState,br=useState(function(){return Vt(nr)?nr:Vt(In)?typeof In=="function"?In():In:typeof Kt=="function"?Kt():Kt}),xt=_slicedToArray(br,2),$t=xt[0],fn=xt[1],Mn=nr!==void 0?nr:$t,yt=Pr?Pr(Mn):Mn,Ut=useEvent(Rr),Cn=useState([Mn]),cn=_slicedToArray(Cn,2),zn=cn[0],Hn=cn[1];useLayoutUpdateEffect(function(){var gi=zn[0];$t!==gi&&Ut($t,gi)},[zn]),useLayoutUpdateEffect(function(){Vt(nr)||fn(nr)},[nr]);var Mr=useEvent(function(gi,Xr){fn(gi,Xr),Hn([Mn],Xr)});return[yt,Mr]}var ht=te(31461);function Bt(Kt,_n,nn){var In=React.useRef({});return(!("value"in In.current)||nn(In.current.condition,_n))&&(In.current.value=Kt(),In.current.condition=_n),In.current.value}function _t(Kt,_n){typeof Kt=="function"?Kt(_n):_typeof(Kt)==="object"&&Kt&&"current"in Kt&&(Kt.current=_n)}function Fn(){for(var Kt=arguments.length,_n=new Array(Kt),nn=0;nn<Kt;nn++)_n[nn]=arguments[nn];var In=_n.filter(function(nr){return nr});return In.length<=1?In[0]:function(nr){_n.forEach(function(Rr){_t(Rr,nr)})}}function kn(){for(var Kt=arguments.length,_n=new Array(Kt),nn=0;nn<Kt;nn++)_n[nn]=arguments[nn];return useMemo(function(){return Fn.apply(void 0,_n)},_n,function(In,nr){return In.length!==nr.length||In.every(function(Rr,Pr){return Rr!==nr[Pr]})})}function kt(Kt){var _n,nn,In=isMemo(Kt)?Kt.type.type:Kt.type;return!(typeof In=="function"&&!((_n=In.prototype)!==null&&_n!==void 0&&_n.render)||typeof Kt=="function"&&!((nn=Kt.prototype)!==null&&nn!==void 0&&nn.render))}function un(Kt){return!isValidElement(Kt)||isFragment(Kt)?!1:kt(Kt)}function Wn(Kt,_n,nn,In){if(!_n.length)return nn;var nr=_toArray(_n),Rr=nr[0],Pr=nr.slice(1),br;return!Kt&&typeof Rr=="number"?br=[]:Array.isArray(Kt)?br=_toConsumableArray(Kt):br=_objectSpread({},Kt),In&&nn===void 0&&Pr.length===1?delete br[Rr][Pr[0]]:br[Rr]=Wn(br[Rr],Pr,nn,In),br}function An(Kt,_n,nn){var In=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return _n.length&&In&&nn===void 0&&!get(Kt,_n.slice(0,-1))?Kt:Wn(Kt,_n,nn,In)}function Ie(Kt){return _typeof(Kt)==="object"&&Kt!==null&&Object.getPrototypeOf(Kt)===Object.prototype}function he(Kt){return Array.isArray(Kt)?[]:{}}var ce=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function me(){for(var Kt=arguments.length,_n=new Array(Kt),nn=0;nn<Kt;nn++)_n[nn]=arguments[nn];var In=he(_n[0]);return _n.forEach(function(nr){function Rr(Pr,br){var xt=new Set(br),$t=get(nr,Pr),fn=Array.isArray($t);if(fn||Ie($t)){if(!xt.has($t)){xt.add($t);var Mn=get(In,Pr);fn?In=An(In,Pr,[]):(!Mn||_typeof(Mn)!=="object")&&(In=An(In,Pr,he($t))),ce($t).forEach(function(yt){Rr([].concat(_toConsumableArray(Pr),[yt]),xt)})}}else In=An(In,Pr,$t)}Rr([])}),In}var pe={},le=[],Le=function(_n){le.push(_n)};function dt(Kt,_n){if(0)var nn}function Nt(Kt,_n){if(0)var nn}function tn(){pe={}}function an(Kt,_n,nn){!_n&&!pe[nn]&&(Kt(!1,nn),pe[nn]=!0)}function Yt(Kt,_n){an(dt,Kt,_n)}function dn(Kt,_n){an(Nt,Kt,_n)}Yt.preMessage=Le,Yt.resetWarned=tn,Yt.noteOnce=dn;var Mt=null,Wt=10;function qt(Kt,_n,nn,In,nr,Rr,Pr,br){var xt=ue.useRef(),$t=ue.useState(null),fn=(0,Ge.Z)($t,2),Mn=fn[0],yt=fn[1];return $e(function(){if(Mn&&Mn.times<Wt){if(!Kt.current){yt(function(Wo){return(0,de.Z)({},Wo)});return}Rr();var Ut=Mn.targetAlign,Cn=Mn.originAlign,cn=Mn.index,zn=Mn.offset,Hn=Kt.current.clientHeight,Mr=!1,gi=Ut,Xr=null;if(Hn){for(var Gr=Ut||Cn,di=0,ci=0,Si=0,Jn=Math.min(_n.length-1,cn),Jr=0;Jr<=Jn;Jr+=1){var Oa=nr(_n[Jr]);ci=di;var Qa=nn.get(Oa);Si=ci+(Qa===void 0?In:Qa),di=Si}for(var Li=Gr==="top"?zn:Hn-zn,qi=Jn;qi>=0;qi-=1){var $a=nr(_n[qi]),zi=nn.get($a);if(zi===void 0){Mr=!0;break}if(Li-=zi,Li<=0)break}switch(Gr){case"top":Xr=ci-zn;break;case"bottom":Xr=Si-Hn+zn;break;default:{var to=Kt.current.scrollTop,_r=to+Hn;ci<to?gi="top":Si>_r&&(gi="bottom")}}Xr!==null&&Pr(Xr),Xr!==Mn.lastTop&&(Mr=!0)}Mr&&yt(function(Wo){return(0,de.Z)((0,de.Z)({},Wo),{},{times:Wo.times+1,targetAlign:gi,lastTop:Xr})})}},[Mn,Kt.current]),function(Ut){if(Ut==null){br();return}if(He.cancel(xt.current),typeof Ut=="number")Pr(Ut);else if(Ut&&(0,ke.Z)(Ut)==="object"){var Cn,cn=Ut.align;"index"in Ut?Cn=Ut.index:Cn=_n.findIndex(function(Mr){return nr(Mr)===Ut.key});var zn=Ut.offset,Hn=zn===void 0?0:zn;yt({times:0,index:Cn,offset:Hn,originAlign:cn})}}}function Gt(Kt,_n,nn,In){var nr=nn-Kt,Rr=_n-nn,Pr=Math.min(nr,Rr)*2;if(In<=Pr){var br=Math.floor(In/2);return In%2?nn+br+1:nn-br}return nr>Rr?nn-(In-Rr):nn+(In-nr)}function jt(Kt,_n,nn){var In=Kt.length,nr=_n.length,Rr,Pr;if(In===0&&nr===0)return null;In<nr?(Rr=Kt,Pr=_n):(Rr=_n,Pr=Kt);var br={__EMPTY_ITEM__:!0};function xt(Cn){return Cn!==void 0?nn(Cn):br}for(var $t=null,fn=Math.abs(In-nr)!==1,Mn=0;Mn<Pr.length;Mn+=1){var yt=xt(Rr[Mn]),Ut=xt(Pr[Mn]);if(yt!==Ut){$t=Mn,fn=fn||yt!==xt(Pr[Mn+1]);break}}return $t===null?null:{index:$t,multiple:fn}}function sr(Kt,_n,nn){var In=ue.useState(Kt),nr=(0,Ge.Z)(In,2),Rr=nr[0],Pr=nr[1],br=ue.useState(null),xt=(0,Ge.Z)(br,2),$t=xt[0],fn=xt[1];return ue.useEffect(function(){var Mn=jt(Rr||[],Kt||[],_n);(Mn==null?void 0:Mn.index)!==void 0&&(nn==null||nn(Mn.index),fn(Kt[Mn.index])),Pr(Kt)},[Kt]),[$t]}var Dt=(typeof navigator=="undefined"?"undefined":(0,ke.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Jt=Dt,Gn=function(Kt,_n){var nn=(0,ue.useRef)(!1),In=(0,ue.useRef)(null);function nr(){clearTimeout(In.current),nn.current=!0,In.current=setTimeout(function(){nn.current=!1},50)}var Rr=(0,ue.useRef)({top:Kt,bottom:_n});return Rr.current.top=Kt,Rr.current.bottom=_n,function(Pr){var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=Pr<0&&Rr.current.top||Pr>0&&Rr.current.bottom;return br&&xt?(clearTimeout(In.current),nn.current=!1):(!xt||nn.current)&&nr(),!nn.current&&xt}};function Bn(Kt,_n,nn,In,nr){var Rr=(0,ue.useRef)(0),Pr=(0,ue.useRef)(null),br=(0,ue.useRef)(null),xt=(0,ue.useRef)(!1),$t=Gn(_n,nn);function fn(zn,Hn){He.cancel(Pr.current),Rr.current+=Hn,br.current=Hn,!$t(Hn)&&(Jt||zn.preventDefault(),Pr.current=He(function(){var Mr=xt.current?10:1;nr(Rr.current*Mr),Rr.current=0}))}function Mn(zn,Hn){nr(Hn,!0),Jt||zn.preventDefault()}var yt=(0,ue.useRef)(null),Ut=(0,ue.useRef)(null);function Cn(zn){if(Kt){He.cancel(Ut.current),Ut.current=He(function(){yt.current=null},2);var Hn=zn.deltaX,Mr=zn.deltaY,gi=zn.shiftKey,Xr=Hn,Gr=Mr;(yt.current==="sx"||!yt.current&&gi&&Mr&&!Hn)&&(Xr=Mr,Gr=0,yt.current="sx");var di=Math.abs(Xr),ci=Math.abs(Gr);yt.current===null&&(yt.current=In&&di>ci?"x":"y"),yt.current==="y"?fn(zn,Gr):Mn(zn,Xr)}}function cn(zn){Kt&&(xt.current=zn.detail===br.current)}return[Cn,cn]}var Sn=14/15;function or(Kt,_n,nn){var In=(0,ue.useRef)(!1),nr=(0,ue.useRef)(0),Rr=(0,ue.useRef)(null),Pr=(0,ue.useRef)(null),br,xt=function(yt){if(In.current){var Ut=Math.ceil(yt.touches[0].pageY),Cn=nr.current-Ut;nr.current=Ut,nn(Cn)&&yt.preventDefault(),clearInterval(Pr.current),Pr.current=setInterval(function(){Cn*=Sn,(!nn(Cn,!0)||Math.abs(Cn)<=.1)&&clearInterval(Pr.current)},16)}},$t=function(){In.current=!1,br()},fn=function(yt){br(),yt.touches.length===1&&!In.current&&(In.current=!0,nr.current=Math.ceil(yt.touches[0].pageY),Rr.current=yt.target,Rr.current.addEventListener("touchmove",xt),Rr.current.addEventListener("touchend",$t))};br=function(){Rr.current&&(Rr.current.removeEventListener("touchmove",xt),Rr.current.removeEventListener("touchend",$t))},$e(function(){return Kt&&_n.current.addEventListener("touchstart",fn),function(){var Mn;(Mn=_n.current)===null||Mn===void 0||Mn.removeEventListener("touchstart",fn),br(),clearInterval(Pr.current)}},[Kt])}var gr=20;function kr(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,nn=Kt/_n*100;return isNaN(nn)&&(nn=0),nn=Math.max(nn,gr),nn=Math.min(nn,Kt/2),Math.floor(nn)}function Lr(Kt,_n,nn,In){var nr=ue.useMemo(function(){return[new Map,[]]},[Kt,nn.id,In]),Rr=(0,Ge.Z)(nr,2),Pr=Rr[0],br=Rr[1],xt=function(fn){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fn,yt=Pr.get(fn),Ut=Pr.get(Mn);if(yt===void 0||Ut===void 0)for(var Cn=Kt.length,cn=br.length;cn<Cn;cn+=1){var zn,Hn=Kt[cn],Mr=_n(Hn);Pr.set(Mr,cn);var gi=(zn=nn.get(Mr))!==null&&zn!==void 0?zn:In;if(br[cn]=(br[cn-1]||0)+gi,Mr===fn&&(yt=cn),Mr===Mn&&(Ut=cn),yt!==void 0&&Ut!==void 0)break}return{top:br[yt-1]||0,bottom:br[Ut]}};return xt}var Qr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ir=[],Dn={overflowY:"auto",overflowAnchor:"none"};function cr(Kt,_n){var nn=Kt.prefixCls,In=nn===void 0?"rc-virtual-list":nn,nr=Kt.className,Rr=Kt.height,Pr=Kt.itemHeight,br=Kt.fullHeight,xt=br===void 0?!0:br,$t=Kt.style,fn=Kt.data,Mn=Kt.children,yt=Kt.itemKey,Ut=Kt.virtual,Cn=Kt.direction,cn=Kt.scrollWidth,zn=Kt.component,Hn=zn===void 0?"div":zn,Mr=Kt.onScroll,gi=Kt.onVirtualScroll,Xr=Kt.onVisibleChange,Gr=Kt.innerProps,di=Kt.extraRender,ci=Kt.styles,Si=(0,Me.Z)(Kt,Qr),Jn=!!(Ut!==!1&&Rr&&Pr),Jr=Jn&&fn&&(Pr*fn.length>Rr||!!cn),Oa=Cn==="rtl",Qa=we()(In,(0,xe.Z)({},"".concat(In,"-rtl"),Oa),nr),Li=fn||Ir,qi=(0,ue.useRef)(),$a=(0,ue.useRef)(),zi=(0,ue.useState)(0),to=(0,Ge.Z)(zi,2),_r=to[0],Wo=to[1],_o=(0,ue.useState)(0),bl=(0,Ge.Z)(_o,2),jo=bl[0],Po=bl[1],la=(0,ue.useState)(!1),el=(0,Ge.Z)(la,2),No=el[0],rl=el[1],vl=function(){rl(!0)},ll=function(){rl(!1)},Uo=ue.useCallback(function(on){return typeof yt=="function"?yt(on):on==null?void 0:on[yt]},[yt]),gl={getKey:Uo};function wl(on){Wo(function(Vn){var dr;typeof on=="function"?dr=on(Vn):dr=on;var Kn=ur(dr);return qi.current.scrollTop=Kn,Kn})}var dl=(0,ue.useRef)({start:0,end:Li.length}),io=(0,ue.useRef)(),wn=sr(Li,Uo),pn=(0,Ge.Z)(wn,1),ar=pn[0];io.current=ar;var tr=it(Uo,null,null),Yr=(0,Ge.Z)(tr,4),$i=Yr[0],ia=Yr[1],sa=Yr[2],ka=Yr[3],ga=ue.useMemo(function(){if(!Jn)return{scrollHeight:void 0,start:0,end:Li.length-1,offset:void 0};if(!Jr){var on;return{scrollHeight:((on=$a.current)===null||on===void 0?void 0:on.offsetHeight)||0,start:0,end:Li.length-1,offset:void 0}}for(var Vn=0,dr,Kn,rr,Fr=Li.length,ii=0;ii<Fr;ii+=1){var Zr=Li[ii],Ar=Uo(Zr),Vr=sa.get(Ar),li=Vn+(Vr===void 0?Pr:Vr);li>=_r&&dr===void 0&&(dr=ii,Kn=Vn),li>_r+Rr&&rr===void 0&&(rr=ii),Vn=li}return dr===void 0&&(dr=0,Kn=0,rr=Math.ceil(Rr/Pr)),rr===void 0&&(rr=Li.length-1),rr=Math.min(rr+1,Li.length-1),{scrollHeight:Vn,start:dr,end:rr,offset:Kn}},[Jr,Jn,_r,Li,ka,Rr]),ho=ga.scrollHeight,ao=ga.start,mo=ga.end,Un=ga.offset;dl.current.start=ao,dl.current.end=mo;var ir=ue.useState({width:0,height:Rr}),Sr=(0,Ge.Z)(ir,2),Ce=Sr[0],Xe=Sr[1],nt=function(Vn){Xe({width:Vn.width||Vn.offsetWidth,height:Vn.height||Vn.offsetHeight})},ut=(0,ue.useRef)(),ft=(0,ue.useRef)(),Ct=ue.useMemo(function(){return kr(Ce.width,cn)},[Ce.width,cn]),wt=ue.useMemo(function(){return kr(Ce.height,ho)},[Ce.height,ho]),sn=ho-Rr,En=(0,ue.useRef)(sn);En.current=sn;function ur(on){var Vn=on;return Number.isNaN(En.current)||(Vn=Math.min(Vn,En.current)),Vn=Math.max(Vn,0),Vn}var yr=_r<=0,fr=_r>=sn,Qn=Gn(yr,fr),Yn=function(){return{x:Oa?-jo:jo,y:_r}},On=(0,ue.useRef)(Yn()),hr=Be(function(){if(gi){var on=Yn();(On.current.x!==on.x||On.current.y!==on.y)&&(gi(on),On.current=on)}});function zr(on,Vn){var dr=on;Vn?((0,Ee.flushSync)(function(){Po(dr)}),hr()):wl(dr)}function Er(on){var Vn=on.currentTarget.scrollTop;Vn!==_r&&wl(Vn),Mr==null||Mr(on),hr()}var wr=function(Vn){var dr=Vn,Kn=cn-Ce.width;return dr=Math.max(dr,0),dr=Math.min(dr,Kn),dr},Br=Be(function(on,Vn){Vn?((0,Ee.flushSync)(function(){Po(function(dr){var Kn=dr+(Oa?-on:on);return wr(Kn)})}),hr()):wl(function(dr){var Kn=dr+on;return Kn})}),Or=Bn(Jn,yr,fr,!!cn,Br),Wr=(0,Ge.Z)(Or,2),pt=Wr[0],vt=Wr[1];or(Jn,qi,function(on,Vn){return Qn(on,Vn)?!1:(pt({preventDefault:function(){},deltaY:on}),!0)}),$e(function(){function on(dr){Jn&&dr.preventDefault()}var Vn=qi.current;return Vn.addEventListener("wheel",pt),Vn.addEventListener("DOMMouseScroll",vt),Vn.addEventListener("MozMousePixelScroll",on),function(){Vn.removeEventListener("wheel",pt),Vn.removeEventListener("DOMMouseScroll",vt),Vn.removeEventListener("MozMousePixelScroll",on)}},[Jn]),$e(function(){cn&&Po(function(on){return wr(on)})},[Ce.width,cn]);var mn=function(){var Vn,dr;(Vn=ut.current)===null||Vn===void 0||Vn.delayHidden(),(dr=ft.current)===null||dr===void 0||dr.delayHidden()},ln=qt(qi,Li,sa,Pr,Uo,function(){return ia(!0)},wl,mn);ue.useImperativeHandle(_n,function(){return{getScrollInfo:Yn,scrollTo:function(Vn){function dr(Kn){return Kn&&(0,ke.Z)(Kn)==="object"&&("left"in Kn||"top"in Kn)}dr(Vn)?(Vn.left!==void 0&&Po(wr(Vn.left)),ln(Vn.top)):ln(Vn)}}}),$e(function(){if(Xr){var on=Li.slice(ao,mo+1);Xr(on,Li)}},[ao,mo,Li]);var $n=Lr(Li,Uo,sa,Pr),mr=di==null?void 0:di({start:ao,end:mo,virtual:Jr,offsetX:jo,offsetY:Un,rtl:Oa,getSize:$n}),Ft=We(Li,ao,mo,cn,$i,Mn,gl),It=null;Rr&&(It=(0,de.Z)((0,xe.Z)({},xt?"height":"maxHeight",Rr),Dn),Jn&&(It.overflowY="hidden",cn&&(It.overflowX="hidden"),No&&(It.pointerEvents="none")));var Ht={};return Oa&&(Ht.dir="rtl"),ue.createElement("div",(0,ee.Z)({style:(0,de.Z)((0,de.Z)({},$t),{},{position:"relative"}),className:Qa},Ht,Si),ue.createElement(Ue.Z,{onResize:nt},ue.createElement(Hn,{className:"".concat(In,"-holder"),style:It,ref:qi,onScroll:Er,onMouseEnter:mn},ue.createElement(Ke,{prefixCls:In,height:ho,offsetX:jo,offsetY:Un,scrollWidth:cn,onInnerResize:ia,ref:$a,innerProps:Gr,rtl:Oa,extra:mr},Ft))),Jr&&ho>Rr&&ue.createElement(ye,{ref:ut,prefixCls:In,scrollOffset:_r,scrollRange:ho,rtl:Oa,onScroll:zr,onStartMove:vl,onStopMove:ll,spinSize:wt,containerSize:Ce.height,style:ci==null?void 0:ci.verticalScrollBar,thumbStyle:ci==null?void 0:ci.verticalScrollBarThumb}),Jr&&cn&&ue.createElement(ye,{ref:ft,prefixCls:In,scrollOffset:jo,scrollRange:cn,rtl:Oa,onScroll:zr,onStartMove:vl,onStopMove:ll,spinSize:Ct,containerSize:Ce.width,horizontal:!0,style:ci==null?void 0:ci.horizontalScrollBar,thumbStyle:ci==null?void 0:ci.horizontalScrollBarThumb}))}var vr=ue.forwardRef(cr);vr.displayName="List";var Ur=vr,ti=Ur},66392:function(vn,Tt){"use strict";var te;var ee=Symbol.for("react.element"),de=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ge=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ee=Symbol.for("react.server_context"),fe=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),Qe;Qe=Symbol.for("react.module.reference");function _e(ge){if(typeof ge=="object"&&ge!==null){var Ve=ge.$$typeof;switch(Ve){case ee:switch(ge=ge.type,ge){case ke:case xe:case Ge:case we:case Ue:return ge;default:switch(ge=ge&&ge.$$typeof,ge){case Ee:case ue:case fe:case Ke:case De:case Me:return ge;default:return Ve}}case de:return Ve}}}te=ue,te=Me,te=ee,te=fe,te=ke,te=Ke,te=De,te=de,te=xe,te=Ge,te=we,te=Ue,te=function(){return!1},te=function(){return!1},te=function(ge){return _e(ge)===ue},te=function(ge){return _e(ge)===Me},te=function(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===ee},te=function(ge){return _e(ge)===fe},te=function(ge){return _e(ge)===ke},te=function(ge){return _e(ge)===Ke},te=function(ge){return _e(ge)===De},te=function(ge){return _e(ge)===de},te=function(ge){return _e(ge)===xe},te=function(ge){return _e(ge)===Ge},te=function(ge){return _e(ge)===we},te=function(ge){return _e(ge)===Ue},te=function(ge){return typeof ge=="string"||typeof ge=="function"||ge===ke||ge===xe||ge===Ge||ge===we||ge===Ue||ge===rt||typeof ge=="object"&&ge!==null&&(ge.$$typeof===Ke||ge.$$typeof===De||ge.$$typeof===Me||ge.$$typeof===ue||ge.$$typeof===fe||ge.$$typeof===Qe||ge.getModuleId!==void 0)},te=_e},31461:function(vn,Tt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5hqwq107/R1UrJKh5DJB2N9KgagDeqc15g+S4PPG9OD5Ijg/LYXkvkHTrXA7sazdnxiTBINdvGDEp0N2p3IqhFa5AJ7d1QuUCSQZ3T5CcEePASSGBkRGrqL9rMMYRAyaTHJDMwii7W2OoBDY+tbLi33T6QYY7owdkh+WaNPUwukDGyG0ESMr9eXVl2fAB8w2uRcJWNufzPMAyGn7qXrllIZnDnVbF/HrIVPf0qgzYPKAhmxjGvAP3/GQPR5dndAOvLhfmBslJZJ0GnaHuCsMQ1tfK3DxfthsMIxhAOSC5WeSOMepcJQSEexJskiu5LiZp92UIBzW8r/+7i1J9zv+qIIckxpVlHJELKhCka2FS/SDJFkYASO6ipmSQ2eupM87IZpxqypkTriKZzoPtTwyrCZkWcefkbCtpxaQVAKbUtcjumrr6at78Ks7++tcNsYB1ZO3ckJKirETAHuh1oesANcS8DT+X2bF/xZS2VahJBey2gZe8DlDDjdyQK2j3lbxq0kB/DRJtG66pvusANcS8DT/XFV/2fvTMFL/fTzFJb9cBariRG3KFWgIgUDRcB6gh5m34ubUAChQN1wFquJEbcgVPCW2KhusANcS8DT+3zhxHiYaBU1bT/5K6vv1EFqg3CSXRcOfklR/+RPd2/Wf/2wL/BGiui/tFFRS/AAAAAElFTkSuQmCC"},79005:function(vn){"use strict";vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWABQfuovrf3VeMeClWhbVrwFC5Zl0Vfi1aLP/EHu976K42wAtmXBx2cCtk9ew+ZT+bsbbT4/XUWeT1cUf4Bt61faY9v8a2I/vxXn0X7+p86l/bYftu3n7/30Sof6bdAd2351LXmMOl++0nUt/hlxnrg+vVe/6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OdJZgunaIoFndzaNs4f3olD3/wb76LF1qnfSLTt2dfFvP9869xhk4pdVk7K28wg7U6MCR/2PwaTTJBM8cAxiYZIiH2GuxTHKDflgKQafrVjnLxBP/VsIowYKFhNLOcFasSkQHlSneyVFXAVk7wgOXFKJowGSAH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(vn){"use strict";vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBX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wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(vn){"use strict";vn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx9d3Kd3e3KWfn3xKN7UhnMuq+VnGblNKz9N1evXpOin/R/o1Gpe09ae3KX26U5/Vqj/qu44vkmtpS8aIY/3965RePUmJvaZnfphF6kvRJBkL71L6539N6c0vh01UWm9vqw0UWuS/2zI+fZ7L1Xe5z0w4/ON5qv7c6KmCdF3tcfb3oq+itPrzKqXbTym9/puUXv+mt8md3ZwBC62gRJRO7z4TuNg1hzuqxB7nEuru9397W2cKXl8EVLSaWhxBVYTIuYkQyjv9ucqxyLbmLkGJG3lGgYZ+i7RWhVfFrQxpjOXAeWs/H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cD3IscHwjH+85olXtHpGZ+yTA1vBVHZgzEZwf1UWSToAKj1Yi7ziIX8Gh3E8hl2H9/LZeiHUXHytHkniFL+8k/0ISO2WLRCIZuI015KOCAgYCDCAingSgQvU8otu9YEsL1zYFWOjW0SUjFiISapNUjDDKIWTY38AXuCALtYt/52lHR8VOC9WDnZ/XB6vTiA7UEB8QlNpHG30Ew3PIM8viGVa28CiSM16WskpraQnHMzInbKZmpmdlLr05dKxRw9sF71WH1Kx+UJRo6ofnxBe6O1tEjexMCk61P5me3GcFVsIa2cs1yar5EGzvG3FRopivTKxnuWGKOyDIdNe/+YbOM8CCLYRHqqpDMyd0p8Is4oC0STt4cZs628wWBbYnBECByU2ty32e5U9kTU7JoOMIGzAVIDuVTbZOOyETtJIz2r35ytseAijkAqz3KQnAQAvf0Kb2Rm1r4Miz470qd10IuBCQ8WrjeCpvH5AZs2GqjHnj5iOmDaiABrs28DSJNizJpTcp3VYd/cKAhVIZWBTjTqR9M2fIQGDFIbLznvV9tHncq8n3XY4cs9c+P0O6vTFw+4dYHW+ONu9veFb4GIm+J/LaXmBtdsEFdgFAA8Up9wTiocZaDRgbuB3DNjNmjQGvQ74fwJl5+NYwSun8H2aBo8h54oZTxALkTR9Zd/uT1Gsoi0bHIRf3l902VNxoWm3ctqzAaaBjmYGLDsTw9gg6XeY7graRINU7FDwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},36459:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return ee}});function ee(de){if(de==null)throw new TypeError("Cannot destructure "+de)}},84279:function(vn,Tt,te){"use strict";var ee=Object.defineProperty,de=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ue=(a,y,b)=>y in a?ee(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,Ee=(a,y)=>{for(var b in y||(y={}))xe.call(y,b)&&ue(a,b,y[b]);if(Ge)for(var b of Ge(y))Me.call(y,b)&&ue(a,b,y[b]);return a},fe=(a,y)=>de(a,ke(y)),we=a=>typeof a=="symbol"?a:a+"",Ue=(a,y)=>{var b={};for(var E in a)xe.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&Ge)for(var E of Ge(a))y.indexOf(E)<0&&Me.call(a,E)&&(b[E]=a[E]);return b};function De(a){return Array.isArray(a)}var Ke={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function rt(){return"window"in globalThis&&"document"in globalThis}function Qe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function _e(){return typeof navigator.vibrate=="function"}function ge(){var a,y;if(!rt())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Ve(){if(!rt())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function lt(){return HTMLElement.prototype.hasOwnProperty("popover")}var He={strings:Ke,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return He._locale||(He._locale=rt()?navigator.language.slice(0,5):"en-US"),He._locale},set locale(a){He._locale=a,He._numberFormatter=void 0,He.dirty=!0},get numberFormatter(){return He._numberFormatter||(He._numberFormatter=new Intl.NumberFormat(He.locale)),He._numberFormatter},merge(a,y){if(typeof a=="string"&&y)He.strings[a]=Ee(Ee({},He.strings[a]),y),He.dirty=!0;else for(const b of Object.keys(a))He.merge(b,a[b])},get dirty(){return He._dirty},set dirty(a){He._dirty||He._dirty===a||(He._dirty=!0,setTimeout(()=>{He._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return He._subscribers.push(a),He._subscribers.length-1},unsubscribe(a){a<0||a>=He._subscribers.length||(He._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ne=Oe(E);ne&&b.setAttribute("data-tooltip",ne)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ne=Oe(E);ne&&b.setAttribute("aria-label",ne)}}}};function Oe(a,...y){if(a===void 0)return;let b="";const E=He.locale;He.strings[E]&&(b=He.strings[E][a]);const ne=E.slice(0,2);if(!b&&He.strings[ne]&&(b=He.strings[ne][a]),b||(b=He.strings.en[a]),!b)return;const ae=/(%@|%([0-9]+)\$@)/g;let se=ae.exec(b),Se=0;for(;se;){if(y[Se++]){const Te=se[2]?parseInt(se[2],10)-1:Se-1;let Je=y[Te];typeof Je=="number"&&(Je=He.numberFormatter.format(Je)),b=b.replace(se[1],Je)}se=ae.exec(b)}return b=b.replace(/%%/g,"%"),b}var ve={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},ye={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},ze={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},We={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},st={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},at={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Ze(a){var y,b,E,ne,ae,se;const Se=a.split("!");let Pe,Te,Je,Et=255,Zt=255,bn=255,Ln=-1;const jr=Se.length>0&&Se[0].startsWith("-");jr&&(Se[0]=Se[0].slice(1));for(let aa=0;aa<Se.length;aa++){Pe=Et,Te=Zt,Je=bn;const Hr=(y=Se[aa].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],Di=Hr==null?void 0:Hr.toLowerCase(),ua=Hr&&(se=(ae=(ne=(E=(b=We[Di])!=null?b:We[st[Hr]])!=null?E:ye[Hr])!=null?ne:at[Hr])!=null?ae:ve[Hr])!=null?se:Se[aa].trim();let _i=ua.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(_i!=null&&_i[1]&&_i[2]&&_i[3])Et=Math.max(0,Math.min(255,Number.parseInt(_i[1],16))),Zt=Math.max(0,Math.min(255,Number.parseInt(_i[2],16))),bn=Math.max(0,Math.min(255,Number.parseInt(_i[3],16)));else if(_i=ua.match(/^#([\da-f]{3})$/i),_i!=null&&_i[1]){const yo=Number.parseInt(_i[1][0],16),Zo=Number.parseInt(_i[1][1],16),Ro=Number.parseInt(_i[1][2],16);Et=Math.max(0,Math.min(255,yo*16+yo)),Zt=Math.max(0,Math.min(255,Zo*16+Zo)),bn=Math.max(0,Math.min(255,Ro*16+Ro))}else if(_i=ua.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),_i!=null&&_i[1]&&_i[2]&&_i[3])Et=Math.max(0,Math.min(255,Number.parseInt(_i[1]))),Zt=Math.max(0,Math.min(255,Number.parseInt(_i[2]))),bn=Math.max(0,Math.min(255,Number.parseInt(_i[3])));else return;Ln>=0&&(Et=(1-Ln)*Et+Ln*Pe,Zt=(1-Ln)*Zt+Ln*Te,bn=(1-Ln)*bn+Ln*Je,Ln=-1),aa+1<Se.length&&(Ln=Math.max(0,Math.min(100,Number.parseInt(Se[++aa])))/100)}return Ln>=0&&(Et=Ln*Et+(1-Ln)*Pe,Zt=Ln*Zt+(1-Ln)*Te,bn=Ln*bn+(1-Ln)*Je),jr&&(Et=255-Et,Zt=255-Zt,bn=255-bn),"#"+("00"+Math.round(Et).toString(16)).slice(-2)+("00"+Math.round(Zt).toString(16)).slice(-2)+("00"+Math.round(bn).toString(16)).slice(-2)}function Ae(a){var y,b;return a=a.trim(),(b=(y=ze[a.toLowerCase()])!=null?y:ze[st[a]])!=null?b:Ze(a)}function mt(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&y.a===void 0&&(y.a=1),y}function je(a,y,b){return b<0&&(b+=6),b>=6&&(b-=6),b<1?(y-a)*b+a:b<3?y:b<4?(y-a)*(4-b)+a:a}function it(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ne=E<=.5?E*(b+1):E+b-E*b,ae=E*2-ne;return{r:Math.round(255*je(ae,ne,y+2)),g:Math.round(255*je(ae,ne,y)),b:Math.round(255*je(ae,ne,y-2))}}function qe(a){return a<0?0:a>255?255:Math.round(a)}function gt(a){const{r:y,g:b,b:E}=a;let ne=((1<<24)+(qe(y)<<16)+(qe(b)<<8)+qe(E)).toString(16).slice(1);return ne[0]===ne[1]&&ne[2]===ne[3]&&ne[4]===ne[5]&&ne[6]===ne[7]&&(ne=ne[0]+ne[2]+ne[4]),"#"+ne}function Pt(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ne=Math.min(y,b,E),ae=Math.max(y,b,E),se=ae-ne;let Se,Pe;ae===ne?Se=0:y===ae?Se=(b-E)/se:b===ae?Se=2+(E-y)/se:E===ae&&(Se=4+(y-b)/se),Se=Math.min(Se*60,360),Se<0&&(Se+=360);const Te=(ne+ae)/2;return ae===ne?Pe=0:Te<=.5?Pe=se/(ae+ne):Pe=se/(2-ae-ne),{h:Se,s:Pe,l:Te}}function Xt(a){let y=mt(a);if(!y)return a;let{h:b,s:E,l:ne}=Pt(y);return E+=.1,ne-=.1,gt(it({h:b,s:E,l:ne}))}var $e={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Be={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},St=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function Vt(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ne of St)if((!y||ne.variant===y)&&(!b||ne.style===b)&&E>=ne.offset&&E<ne.offset+ne.len){const ae=ne.start+E-ne.offset;return String.fromCodePoint(Be[ae]||ae)}return a}function Rt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Be)if(Be[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of St)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function ht(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ne=(y=E.codePointAt(0))!=null?y:0;let ae=$e[ne];if(ae)ae.startsWith("\\")?b+=ae+" ":b+=ae;else{const{char:se,variant:Se,style:Pe}=Rt(ne);switch(ae=se,Se){case"double-struck":ae=`\\mathbb{${ae}}`;break;case"fraktur":ae=`\\mathfrak{${ae}}`;break;case"script":ae=`\\mathscr{${ae}}`;break;case"sans-serif":ae=`\\mathsf{${ae}}`;break;case"monospace":ae=`\\mathtt{${ae}}`;break;case"calligraphic":ae=`\\mathcal{${ae}}`;break}switch(Pe){case"bold":ae=`\\mathbf{${ae}}`;break;case"italic":ae=`\\mathit{${ae}}`;break;case"bolditalic":ae=`\\mathbfit{${ae}}`;break}b+=ae}}return b}function Bt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var _t={},Fn=Ee({},$e),kn={},kt={},un={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},Wn={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},An={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},Ie={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:An},"amsmath.sty":{package:Wn,primitive:!0},"texvc.sty":{package:un,primitive:!1}},he={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,me,pe;Ve()?(me=new RegExp("\\p{Letter}","u"),pe=new RegExp("[0-9\\p{Letter}]","u")):(me=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,pe=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(_t[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},Fn[y]||(Fn[y]=a))}function Le(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ne=a.charAt(E);le(ne,ne.codePointAt(0))}return}for(const[E,ne,ae,se]of a)le(E,ne,ae!=null?ae:y,se!=null?se:b)}function dt(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function Nt(a){var y;return(y=kt[a])!=null?y:null}function tn(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ne=[];for(const se in kn)se.startsWith(y)&&!kn[se].infix&&ne.push({match:se,frequency:(b=kn[se].frequency)!=null?b:0});for(const se in _t)se.startsWith(y)&&ne.push({match:se,frequency:(E=_t[se].frequency)!=null?E:0});const ae=y.substring(1);for(const se of Object.keys(a.options.macros))se.startsWith(ae)&&ne.push({match:"\\"+se,frequency:0});return ne.sort((se,Se)=>{var Pe,Te;return se.frequency===Se.frequency?se.match.length===Se.match.length?se.match<Se.match?-1:1:se.match.length-Se.match.length:((Pe=Se.frequency)!=null?Pe:0)-((Te=se.frequency)!=null?Te:0)}),ne.map(se=>se.match)}function an(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function Yt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:an(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Yt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:an(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...Yt(b[E]))}return y}function dn(a){if(!a)return"";let y="",b=!0;for(const E of a)typeof E.value=="string"?y+=E.value:b=!1;return b?y:""}function Mt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)kt[E]=b}function Wt(a,y,b){typeof a=="string"&&(a=[a]);const ne={tabular:!0,params:Yt(y),createAtom:b};for(const ae of a)kt[ae]=ne}function qt(a,y,b){var E,ne;b||(b={});const ae={definitionType:"function",params:Yt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ne=b.infix)!=null?ne:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")kn["\\"+a]=ae;else for(const se of a)kn["\\"+se]=ae}var Gt;function jt(a){return Gt||(Gt=Dt(Ie)),a?Dt(Ee(Ee({},Gt),a)):Gt}function sr(a,y){var b,E,ne,ae;if(typeof a=="string"){let se=0;const Se=a;return/(^|[^\\])#1/.test(Se)&&(se=1),/(^|[^\\])#2/.test(Se)&&(se=2),/(^|[^\\])#3/.test(Se)&&(se=3),/(^|[^\\])#4/.test(Se)&&(se=4),/(^|[^\\])#5/.test(Se)&&(se=5),/(^|[^\\])#6/.test(Se)&&(se=6),/(^|[^\\])#7/.test(Se)&&(se=7),/(^|[^\\])#8/.test(Se)&&(se=8),/(^|[^\\])#9/.test(Se)&&(se=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:se,def:Se}}return Ee({expand:(ne=y==null?void 0:y.expand)!=null?ne:!0,captureSelection:(ae=y==null?void 0:y.captureSelection)!=null?ae:!0,args:0},a)}function Dt(a){if(!a)return{};const y={};for(const b of Object.keys(a)){const E=a[b];if(E==null)delete y[b];else if(typeof E=="object"&&"package"in E)for(const ne of Object.keys(E.package))y[ne]=sr(E.package[ne],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=sr(E)}return y}function Jt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=kn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=_t[a]:he[a]&&(b={definitionType:"symbol",type:"mord",codepoint:he[a]})}else if(y==="math"){if(b=_t[a],!b&&a.length===1){const E=Bn("math",a.codePointAt(0));return E.startsWith("\\")?fe(Ee({},Jt(E,"math")),{command:E}):null}}else he[a]?b={definitionType:"symbol",type:"mord",codepoint:he[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Gn(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Bn(a,y){if(y===void 0)return"";if(a==="math"&&Fn[y])return Fn[y];if(a==="text"){const b=Object.keys(he).find(E=>he[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Sn=[0,.68889,0,0,.72222],or=[0,.68889,0,0,.66667],gr=[0,.68889,0,0,.77778],kr=[0,.68889,0,0,.61111],Lr=[.16667,.68889,0,0,.77778],Qr=[0,.68889,0,0,.55556],Ir=[0,0,0,0,.25],Dn=[0,.825,0,0,2.33334],cr=[0,.9,0,0,2.33334],vr=[0,.68889,0,0,.54028],Ur=[-.03598,.46402,0,0,.5],ti=[-.13313,.36687,0,0,1],Kt=[.01354,.52239,0,0,1],_n=[.01354,.52239,0,0,1.11111],nn=[0,.54986,0,0,1],In=[0,.69224,0,0,.5],nr=[0,.43056,0,0,1],Rr=[.08198,.58198,0,0,.77778],Pr=[.19444,.69224,0,0,.41667],br=[.1808,.675,0,0,1],xt=[.19444,.69224,0,0,.83334],$t=[.13667,.63667,0,0,1],fn=[-.064,.437,0,0,1.334],Mn=[.08167,.58167,0,0,.77778],yt=[0,.69224,0,0,.72222],Ut=[0,.69224,0,0,.66667],Cn=[-.13313,.36687,0,0,.77778],cn=[.06062,.54986,0,0,.77778],zn=[0,.69224,0,0,.77778],Hn=[.25583,.75583,0,0,.77778],Mr=[.25142,.75726,0,0,.77778],gi=[.20576,.70576,0,0,.77778],Xr=[.30274,.79383,0,0,.77778],Gr=[.22958,.72958,0,0,.77778],di=[.1808,.675,0,0,.77778],ci=[.13667,.63667,0,0,.77778],Si=[.13597,.63597,0,0,.77778],Jn=[.03517,.54986,0,0,.77778],Jr=[0,.675,0,0,.77778],Oa=[.19444,.69224,0,0,.61111],Qa=[0,.54986,0,0,.76042],Li=[0,.54986,0,0,.66667],qi=[.0391,.5391,0,0,.77778],$a=[.03517,.54986,0,0,1.33334],zi=[.38569,.88569,0,0,.77778],to=[.23222,.74111,0,0,.77778],_r=[.19444,.69224,0,0,.77778],Wo=[0,.37788,0,0,.5],_o=[0,.54986,0,0,.72222],bl=[0,.69224,0,0,.83334],jo=[.11111,.69224,0,0,.66667],Po=[.26167,.75726,0,0,.77778],la=[.48256,.98256,0,0,.77778],el=[.28481,.79383,0,0,.77778],No=[.08167,.58167,0,0,.22222],rl=[.08167,.58167,0,0,.38889],vl=[0,.43056,.04028,0,.66667],ll=[.41951,.91951,0,0,.77778],Uo=[.24982,.74947,0,0,.38865],gl=[.08319,.58283,0,0,.75623],wl=[0,.10803,0,0,.27764],dl=[0,.47534,0,0,.50181],io=[.18906,.47534,0,0,.50181],wn=[0,.69141,0,0,.50181],pn=[.24982,.74947,0,0,.27764],ar=[0,.69141,0,0,.21471],tr=[.25,.75,0,0,.44722],Yr=[0,.64444,0,0,.575],$i=[.08556,.58556,0,0,.89444],ia=[0,.69444,0,0,.89444],sa=[0,.68611,0,0,.9],ka=[0,.68611,0,0,.86944],ga=[.25,.75,0,0,.575],ho=[.25,.75,0,0,.31944],ao=[0,.69444,0,0,.63889],mo=[0,.69444,0,0,.31944],Un=[0,.44444,0,0,.63889],ir=[0,.44444,0,0,.51111],Sr=[0,.69444,0,0,.575],Ce=[.13333,.63333,0,0,.89444],Xe=[0,.44444,0,0,.31944],nt=[0,.69444,0,0,.86944],ut=[0,.68611,0,0,.69166],ft=[0,.68611,0,0,.83055],Ct=[0,.68611,0,0,.89444],wt=[0,.69444,0,0,.60278],sn=[.19444,.69444,0,0,.51111],En=[0,.69444,0,0,.83055],ur=[-.10889,.39111,0,0,1.14999],yr=[.19444,.69444,0,0,.575],fr=[.19444,.69444,0,0,1.14999],Qn=[.19444,.69444,0,0,.70277],Yn=[.05556,.75,0,0,.575],On=[0,.68611,0,0,.95833],hr=[.08556,.58556,0,0,.76666],zr=[-.02639,.47361,0,0,.575],Er=[0,.44444,0,0,.89444],wr=[0,.55556,0,0,.76666],Br=[-.10889,.39111,0,0,.89444],Or=[.00222,.50222,0,0,.89444],Wr=[.19667,.69667,0,0,.89444],pt=[.08556,.58556,0,0,1.14999],vt=[0,.69444,0,0,.70277],mn=[-.02778,.47222,0,0,.575],ln=[.25,.75,0,0,.51111],$n=[-.13889,.36111,0,0,1.14999],mr=[.19444,.69444,0,0,1.02222],Ft=[.12963,.69444,0,0,.89444],It=[.19444,.69444,0,0,.44722],Ht=[0,.64444,.13167,0,.59111],on=[.19444,.64444,.13167,0,.59111],Vn=[0,.68611,.17208,0,.8961],dr=[.19444,.44444,.105,0,.53222],Kn=[0,.44444,.085,0,.82666],rr=[0,.69444,.06709,0,.59111],Fr=[0,.69444,.12945,0,.35555],ii=[0,.69444,0,0,.94888],Zr=[0,.69444,.11472,0,.59111],Ar=[0,.68611,.10778,0,.88555],Vr=[0,.69444,.07939,0,.62055],li=[0,.69444,.12417,0,.30667],Mi=[0,.64444,.13556,0,.51111],si=[.19444,.64444,.13556,0,.51111],Kr=[0,.68333,.16389,0,.74333],Wi=[.19444,.43056,.08847,0,.46],Zi=[0,.43056,.07514,0,.71555],Na=[0,.69444,.06646,0,.51111],Ha=[0,.69444,0,0,.83129],La=[0,.69444,.1225,0,.51111],Ea=[0,.68333,.09403,0,.76666],Ra=[0,.68333,.11111,0,.76666],va=[0,.69444,.06961,0,.51444],oo=[0,.69444,0,0,.27778],Ca=[.25,.75,0,0,.38889],Qi=[0,.64444,0,0,.5],ja=[0,.69444,0,0,.77778],bo=[0,.68333,0,0,.75],ca=[0,.68333,0,0,.77778],Vo=[0,.68333,0,0,.68056],Go=[0,.68333,0,0,.72222],tl=[.25,.75,0,0,.5],zo=[.25,.75,0,0,.27778],no=[0,.69444,0,0,.5],kl=[0,.69444,0,0,.55556],Co=[0,.43056,0,0,.44445],_a=[0,.43056,0,0,.5],Ao=[.19444,.43056,0,0,.55556],ml=[0,.43056,0,0,.55556],Ko=[.08333,.58333,0,0,.77778],$o=[0,.43056,0,0,.27778],Ya=[0,.66786,0,0,.27778],yl=[0,.69444,0,0,.75],Il=[0,.66786,0,0,.5],xl=[0,.68333,0,0,.625],il=[.19444,.69444,0,0,.44445],El=[0,.69444,0,0,.72222],Al=[.19444,.69444,0,0,.5],Bl=[.19444,.69444,0,0,1],Ol=[.011,.511,0,0,1.126],Lt=[.19444,.69444,0,0,.61111],rn=[.05556,.75,0,0,.5],gn=[0,.68333,0,0,.83334],Xn=[.0391,.5391,0,0,.66667],ta=[-.05555,.44445,0,0,.5],ui=[0,.43056,0,0,.77778],wi=[0,.55556,0,0,.66667],bi=[-.03625,.46375,0,0,.77778],Oi=[-.01688,.48312,0,0,.77778],Pa=[.0391,.5391,0,0,1],fa=[0,.69444,0,0,.61111],ro=[-.03472,.46528,0,0,.5],Qo=[.25,.75,0,0,.44445],xo=[-.14236,.35764,0,0,1],xi=[.244,.744,0,0,.412],Sa=[.19444,.69444,0,0,.88889],Yi=[.12963,.69444,0,0,.77778],Ai=[.19444,.69444,0,0,.38889],ki=[.011,.511,0,0,1.638],ya=[.19444,.69444,0,0,0],Ye=[0,.44444,0,0,.575],tt=[.19444,.44444,0,0,.575],zt=[0,.68611,0,0,.75555],Ot=[0,.69444,0,0,.66759],hn=[0,.68611,0,0,.80555],Pn=[0,.68611,.08229,0,.98229],xn=[0,.68611,0,0,.76666],lr=[0,.44444,0,0,.58472],pr=[.19444,.44444,0,0,.6118],qn=[.19444,.43056,0,0,.5],pi=[0,.68333,.02778,.08334,.76278],ei=[0,.68333,.08125,.05556,.83125],ni=[0,.43056,0,.05556,.48472],$r=[.19444,.43056,0,.08334,.51702],fi=[.25,.75,0,0,.42778],ri=[0,.69444,0,0,.55],Ki=[0,.69444,0,0,.73334],Ma=[0,.69444,0,0,.79445],Ua=[0,.69444,0,0,.51945],Xa=[0,.69444,0,0,.70278],za=[0,.69444,0,0,.76389],lo=[.25,.75,0,0,.34306],wa=[0,.69444,0,0,.56111],Ka=[0,.69444,0,0,.25556],so=[.19444,.45833,0,0,.56111],Vi=[0,.45833,0,0,.56111],Xi=[0,.69444,0,0,.30556],da=[0,.69444,0,0,.58056],So=[0,.69444,0,0,.67223],uo=[0,.69444,0,0,.85556],Eo=[0,.69444,0,0,.55834],vo=[0,.65556,.11156,0,.5],Io=[0,.69444,.08094,0,.70834],Lo=[.17014,0,0,0,.44445],Fo=[0,.69444,.0799,0,.5],Yo=[0,.69444,0,0,.73752],jn=[0,.69444,.09205,0,.5],ai=[0,.69444,.09031,0,.77778],ba=[0,.69444,.07816,0,.27778],na=[0,.69444,.00316,0,.5],Nr=[.19444,.69444,0,0,.83334],Ti=[.05556,.75,0,0,.83334],Ni=[0,.75,0,0,.5],ra=[.125,.08333,0,0,.27778],Ei=[0,.08333,0,0,.27778],Ii=[0,.65556,0,0,.5],Ui=[0,.69444,0,0,.47222],Ba=[0,.69444,0,0,.66667],go=[0,.69444,0,0,.59722],yi=[0,.69444,0,0,.54167],co=[0,.69444,0,0,.70834],Va=[.25,.75,0,0,.28889],ko=[0,.69444,0,0,.51667],Cl=[0,.44444,0,0,.44445],Dl=[.19444,.44444,0,0,.51667],zl=[0,.44444,0,0,.38333],Hl=[0,.44444,0,0,.51667],Rl=[0,.69444,0,0,.83334],Ts=[.35001,.85,0,0,.45834],ks=[.35001,.85,0,0,.57778],Qs=[.35001,.85,0,0,.41667],ps=[.35001,.85,0,0,.58334],ql=[0,.72222,0,0,.55556],Bs=[1e-5,.6,0,0,.66667],gs=[1e-5,.6,0,0,.77778],us=[.25001,.75,0,0,.94445],js=[.306,.805,.19445,0,.47222],Os=[.30612,.805,.19445,0,.47222],cs=[.25001,.75,0,0,.83334],Ys=[.35001,.85,0,0,.47222],Zu=[.25001,.75,0,0,1.11111],Fu=[.65002,1.15,0,0,.59722],ys=[.65002,1.15,0,0,.81111],Ll=[.65002,1.15,0,0,.47222],bs=[.65002,1.15,0,0,.66667],Xs=[0,.75,0,0,1],vu=[.55001,1.05,0,0,1.27778],os=[.862,1.36,.44445,0,.55556],Gl=[.86225,1.36,.44445,0,.55556],rs=[.55001,1.05,0,0,1.11111],Js=[.65002,1.15,0,0,.52778],Ds=[.65002,1.15,0,0,.61111],$s=[.55001,1.05,0,0,1.51112],sl=[.95003,1.45,0,0,.73611],oa=[.95003,1.45,0,0,1.04445],eo=[.95003,1.45,0,0,.52778],Bo=[.95003,1.45,0,0,.75],Xo=[0,.75,0,0,1.44445],is=[.95003,1.45,0,0,.58334],as=[1.25003,1.75,0,0,.79167],Rs=[1.25003,1.75,0,0,1.27778],su=[1.25003,1.75,0,0,.58334],Ru=[1.25003,1.75,0,0,.80556],Fe=[0,.825,0,0,1.8889],Re=[1.25003,1.75,0,0,.63889],ct=[.64502,1.155,0,0,.875],At=[1e-5,.6,0,0,.875],Qt=[-99e-5,.601,0,0,.66667],en=[.64502,1.155,0,0,.66667],Tn=[1e-5,.9,0,0,.88889],er=[.65002,1.15,0,0,.88889],Zn=[.90001,0,0,0,.88889],xr=[-.00499,.605,0,0,1.05556],Tr=[0,.12,0,0,.45],Nn=[0,.61111,0,0,.525],oi=[.08333,.69444,0,0,.525],hi=[-.08056,.53055,0,0,.525],mi=[-.05556,.55556,0,0,.525],Hi=[0,.43056,0,0,.525],Ci=[.22222,.43056,0,0,.525],ea=[0,0,0,0,.525],Gi={"AMS-Regular":{32:Ir,65:Sn,66:or,67:Sn,68:Sn,69:or,70:kr,71:gr,72:gr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:gr,76:or,77:[0,.68889,0,0,.94445],78:Sn,79:Lr,80:kr,81:Lr,82:Sn,83:Qr,84:or,85:Sn,86:Sn,87:[0,.68889,0,0,1],88:Sn,89:Sn,90:or,107:Qr,160:Ir,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Qr,295:vr,710:Dn,732:cr,770:Dn,771:cr,989:Mn,1008:vl,8245:[0,.54986,0,0,.275],8463:vr,8487:Sn,8498:Qr,8502:or,8503:[0,.68889,0,0,.44445],8504:or,8513:[0,.68889,0,0,.63889],8592:Ur,8594:Ur,8602:ti,8603:ti,8606:Kt,8608:Kt,8610:_n,8611:_n,8619:nn,8620:nn,8621:[-.13313,.37788,0,0,1.38889],8622:ti,8624:In,8625:In,8630:nr,8631:nr,8634:Rr,8635:Rr,8638:Pr,8639:Pr,8642:Pr,8643:Pr,8644:br,8646:br,8647:br,8648:xt,8649:br,8650:xt,8651:Kt,8652:Kt,8653:ti,8654:ti,8655:ti,8666:$t,8667:$t,8669:[-.13313,.37788,0,0,1],8672:fn,8674:fn,8705:[0,.825,0,0,.5],8708:Qr,8709:Mn,8717:[0,.43056,0,0,.42917],8722:Ur,8724:[.08198,.69224,0,0,.77778],8726:Mn,8733:zn,8736:yt,8737:yt,8738:[.03517,.52239,0,0,.72222],8739:No,8740:[.25142,.74111,0,0,.27778],8741:rl,8742:[.25142,.74111,0,0,.5],8756:Ut,8757:Ut,8764:Cn,8765:[-.13313,.37788,0,0,.77778],8769:Cn,8770:bi,8774:Xr,8776:Oi,8778:Mn,8782:cn,8783:cn,8785:Rr,8786:Rr,8787:Rr,8790:zn,8791:Gr,8796:[.08198,.91667,0,0,.77778],8806:Hn,8807:Hn,8808:Mr,8809:Mr,8812:[.25583,.75583,0,0,.5],8814:gi,8815:gi,8816:Xr,8817:Xr,8818:Gr,8819:Gr,8822:di,8823:di,8828:ci,8829:ci,8830:Gr,8831:Gr,8832:gi,8833:gi,8840:Xr,8841:Xr,8842:Si,8843:Si,8847:Jn,8848:Jn,8858:Rr,8859:Rr,8861:Rr,8862:Jr,8863:Jr,8864:Jr,8865:Jr,8872:[0,.69224,0,0,.61111],8873:yt,8874:[0,.69224,0,0,.88889],8876:kr,8877:kr,8878:Sn,8879:Sn,8882:Jn,8883:Jn,8884:ci,8885:ci,8888:[0,.54986,0,0,1.11111],8890:Ao,8891:Oa,8892:Oa,8901:[0,.54986,0,0,.27778],8903:Mn,8905:Mn,8906:Mn,8907:zn,8908:zn,8909:[-.03598,.46402,0,0,.77778],8910:Qa,8911:Qa,8912:Jn,8913:Jn,8914:Li,8915:Li,8916:Ut,8918:qi,8919:qi,8920:$a,8921:$a,8922:zi,8923:zi,8926:ci,8927:ci,8928:Xr,8929:Xr,8934:to,8935:to,8936:to,8937:to,8938:gi,8939:gi,8940:Xr,8941:Xr,8994:_r,8995:_r,9416:[.15559,.69224,0,0,.90222],9484:In,9488:In,9492:Wo,9496:Wo,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Jr,9633:Jr,9650:_o,9651:_o,9654:Jn,9660:_o,9661:_o,9664:Jn,9674:jo,9733:[.19444,.69224,0,0,.94445],10003:bl,10016:bl,10731:jo,10846:[.19444,.75583,0,0,.61111],10877:ci,10878:ci,10885:Hn,10886:Hn,10887:Si,10888:Si,10889:Po,10890:Po,10891:la,10892:la,10901:ci,10902:ci,10933:Mr,10934:Mr,10935:Po,10936:Po,10937:Po,10938:Po,10949:Hn,10950:Hn,10955:el,10956:el,57350:No,57351:rl,57352:Mn,57353:vl,57356:Mr,57357:Mr,57358:ll,57359:Xr,57360:Xr,57361:ll,57366:Mr,57367:Mr,57368:Mr,57369:Mr,57370:Si,57371:Si},"Caligraphic-Regular":{32:Ir,65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:Ir},"Fraktur-Regular":{32:Ir,33:[0,.69141,0,0,.29574],34:ar,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Uo,41:Uo,42:[0,.62119,0,0,.27764],43:gl,44:wl,45:gl,46:wl,47:[.24982,.74947,0,0,.50181],48:dl,49:dl,50:dl,51:io,52:io,53:io,54:wn,55:io,56:wn,57:io,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:pn,93:pn,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:Ir,8216:ar,8217:ar,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:Ir,33:[0,.69444,0,0,.35],34:wt,35:[.19444,.69444,0,0,.95833],36:Yn,37:[.05556,.75,0,0,.95833],38:ia,39:mo,40:tr,41:tr,42:[0,.75,0,0,.575],43:Ce,44:[.19444,.15556,0,0,.31944],45:zl,46:[0,.15556,0,0,.31944],47:ga,48:Yr,49:Yr,50:Yr,51:Yr,52:Yr,53:Yr,54:Yr,55:Yr,56:Yr,57:Yr,58:Xe,59:[.19444,.44444,0,0,.31944],60:$i,61:Br,62:$i,63:[0,.69444,0,0,.54305],64:ia,65:ka,66:[0,.68611,0,0,.81805],67:ft,68:[0,.68611,0,0,.88194],69:zt,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:sa,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:ut,77:[0,.68611,0,0,1.09166],78:sa,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:ka,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:ho,92:ga,93:ho,94:Sr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ao,99:ir,100:ao,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ao,105:mo,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:mo,109:[0,.44444,0,0,.95833],110:Un,111:Ye,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:Un,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:ir,123:ga,124:ho,125:ga,126:[.35,.34444,0,0,.575],160:Ir,163:[0,.69444,0,0,.86853],168:Sr,172:[0,.44444,0,0,.76666],176:nt,177:Ce,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Ce,216:[.04861,.73472,0,0,.89444],223:go,230:[0,.44444,0,0,.83055],247:Ce,248:[.09722,.54167,0,0,.575],305:Xe,338:[0,.68611,0,0,1.16944],339:Er,567:[.19444,.44444,0,0,.35139],710:Sr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Sr,715:Sr,728:Sr,729:mo,730:nt,732:Sr,733:Sr,915:ut,916:On,920:Ct,923:hn,926:xn,928:sa,931:ft,933:Ct,934:ft,936:Ct,937:ft,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:mo,8217:mo,8220:wt,8221:wt,8224:sn,8225:sn,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:Ot,8465:En,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:En,8501:vt,8592:ur,8593:yr,8594:ur,8595:yr,8596:ur,8597:ga,8598:fr,8599:fr,8600:fr,8601:fr,8636:ur,8637:ur,8640:ur,8641:ur,8656:ur,8657:Qn,8658:ur,8659:Qn,8660:ur,8661:[.25,.75,0,0,.70277],8704:ao,8706:[0,.69444,.06389,0,.62847],8707:ao,8709:Yn,8711:On,8712:hr,8715:hr,8722:Ce,8723:Ce,8725:ga,8726:ga,8727:mn,8728:zr,8729:zr,8730:[.18,.82,0,0,.95833],8733:Er,8734:[0,.44444,0,0,1.14999],8736:yt,8739:ho,8741:ga,8743:wr,8744:wr,8745:wr,8746:wr,8747:[.19444,.69444,.12778,0,.56875],8764:Br,8768:[.19444,.69444,0,0,.31944],8771:Or,8776:[.02444,.52444,0,0,.89444],8781:Or,8801:Or,8804:Wr,8805:Wr,8810:pt,8811:pt,8826:$i,8827:$i,8834:$i,8835:$i,8838:Wr,8839:Wr,8846:wr,8849:Wr,8850:Wr,8851:wr,8852:wr,8853:Ce,8854:Ce,8855:Ce,8856:Ce,8857:Ce,8866:vt,8867:vt,8868:ia,8869:ia,8900:zr,8901:[-.02639,.47361,0,0,.31944],8902:mn,8968:ln,8969:ln,8970:ln,8971:ln,8994:$n,8995:$n,9651:mr,9657:mn,9661:mr,9667:mn,9711:fr,9824:Ft,9825:Ft,9826:Ft,9827:Ft,9837:[0,.75,0,0,.44722],9838:It,9839:It,10216:tr,10217:tr,10815:sa,10927:Wr,10928:Wr,57376:ya},"Main-BoldItalic":{32:Ir,33:[0,.69444,.11417,0,.38611],34:Vr,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Fr,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Ht,49:Ht,50:Ht,51:Ht,52:on,53:Ht,54:Ht,55:on,56:Ht,57:Ht,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Zr,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:Vn,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:Vn,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:rr,95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:dr,104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:dr,114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:Ir,168:[0,.69444,.11473,0,.59111],176:ii,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:Kn,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Kn,567:[.19444,.44444,.04611,0,.385],710:rr,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:Fr,730:ii,732:Zr,733:Zr,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:Vn,931:[0,.68611,.11431,0,.82666],933:Ar,934:[0,.68611,.05632,0,.82666],936:Ar,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Fr,8217:Fr,8220:[0,.69444,.16772,0,.62055],8221:Vr},"Main-Italic":{32:Ir,33:li,34:va,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:li,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:Mi,49:Mi,50:Mi,51:Mi,52:si,53:Mi,54:Mi,55:si,56:Mi,57:Mi,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:La,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:Kr,73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:Kr,79:Ea,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:Kr,86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:Na,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:Wi,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:Wi,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:Ir,168:[0,.66786,.10474,0,.51111],176:Ha,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:Zi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Zi,710:Na,711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:Ha,732:[0,.66786,.11585,0,.51111],733:La,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ea,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Kr,931:[0,.68333,.12028,0,.71555],933:Ra,934:[0,.68333,.05986,0,.71555],936:Ra,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:li,8217:li,8220:[0,.69444,.1685,0,.51444],8221:va,8463:vr},"Main-Regular":{32:Ir,33:oo,34:no,35:Nr,36:rn,37:Ti,38:ja,39:oo,40:Ca,41:Ca,42:Ni,43:Ko,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:tl,48:Qi,49:Qi,50:Qi,51:Qi,52:Qi,53:Qi,54:Qi,55:Qi,56:Qi,57:Qi,58:$o,59:[.19444,.43056,0,0,.27778],60:qi,61:Cn,62:qi,63:Ui,64:ja,65:bo,66:[0,.68333,0,0,.70834],67:Go,68:[0,.68333,0,0,.76389],69:Vo,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:bo,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:ca,76:xl,77:[0,.68333,0,0,.91667],78:bo,79:ca,80:Vo,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Go,85:bo,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:bo,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:zo,92:tl,93:zo,94:no,95:[.31,.12056,.02778,0,.5],97:_a,98:kl,99:Co,100:kl,101:Co,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:kl,105:Ya,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:oo,109:[0,.43056,0,0,.83334],110:ml,111:_a,112:Ao,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:ml,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:Co,123:tl,124:zo,125:tl,126:[.35,.31786,0,0,.5],160:Ir,163:[0,.69444,0,0,.76909],167:il,168:Il,172:[0,.43056,0,0,.66667],176:yl,177:Ko,182:Lt,184:Lo,198:[0,.68333,0,0,.90278],215:Ko,216:[.04861,.73194,0,0,.77778],223:no,230:[0,.43056,0,0,.72222],247:Ko,248:[.09722,.52778,0,0,.5],305:$o,338:[0,.68333,0,0,1.01389],339:ui,567:[.19444,.43056,0,0,.30556],710:no,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:no,715:no,728:no,729:Ya,730:yl,732:Il,733:no,915:xl,916:gn,920:ca,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:bo,931:Go,933:ca,934:Go,936:ca,937:Go,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:oo,8217:oo,8220:no,8221:no,8224:il,8225:il,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:vr,8465:El,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:El,8501:fa,8592:ti,8593:Al,8594:ti,8595:Al,8596:ti,8597:tl,8598:Bl,8599:Bl,8600:Bl,8601:Bl,8614:[.011,.511,0,0,1],8617:Ol,8618:Ol,8636:ti,8637:ti,8640:ti,8641:ti,8652:[.011,.671,0,0,1],8656:ti,8657:Lt,8658:ti,8659:Lt,8660:ti,8661:[.25,.75,0,0,.61111],8704:kl,8706:[0,.69444,.05556,.08334,.5309],8707:kl,8709:rn,8711:gn,8712:Xn,8715:Xn,8722:Ko,8723:Ko,8725:tl,8726:tl,8727:ro,8728:ta,8729:ta,8730:[.2,.8,0,0,.83334],8733:ui,8734:nr,8736:yt,8739:zo,8741:tl,8743:wi,8744:wi,8745:wi,8746:wi,8747:[.19444,.69444,.11111,0,.41667],8764:Cn,8768:[.19444,.69444,0,0,.27778],8771:bi,8773:[-.022,.589,0,0,1],8776:Oi,8781:bi,8784:[-.133,.67,0,0,.778],8801:bi,8804:Si,8805:Si,8810:Pa,8811:Pa,8826:qi,8827:qi,8834:qi,8835:qi,8838:Si,8839:Si,8846:wi,8849:Si,8850:Si,8851:wi,8852:wi,8853:Ko,8854:Ko,8855:Ko,8856:Ko,8857:Ko,8866:fa,8867:fa,8868:ja,8869:ja,8872:[.249,.75,0,0,.867],8900:ta,8901:[-.05555,.44445,0,0,.27778],8902:ro,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:Qo,8969:Qo,8970:Qo,8971:Qo,8994:xo,8995:xo,9136:xi,9137:xi,9651:Sa,9657:ro,9661:Sa,9667:ro,9711:Bl,9824:Yi,9825:Yi,9826:Yi,9827:Yi,9837:[0,.75,0,0,.38889],9838:Ai,9839:Ai,10216:Ca,10217:Ca,10222:xi,10223:xi,10229:[.011,.511,0,0,1.609],10230:ki,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:ki,10815:bo,10927:Si,10928:Si,57376:ya},"Math-BoldItalic":{32:Ir,48:Ye,49:Ye,50:Ye,51:tt,52:tt,53:tt,54:Yr,55:tt,56:Yr,57:tt,65:ka,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:Pn,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:zt,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:Ot,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:lr,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:Ir,915:[0,.68611,.15972,0,.65694],916:On,920:[0,.68611,.03194,0,.86722],923:hn,926:[0,.68611,.07458,0,.84125],928:Pn,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:xn,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:lr,960:[0,.44444,.03704,0,.68241],961:pr,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:pr,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Ir,48:_a,49:_a,50:_a,51:qn,52:qn,53:qn,54:Qi,55:qn,56:Qi,57:qn,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:ei,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:pi,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:ni,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:Ir,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:pi,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:ei,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:ni,960:[0,.43056,.03588,0,.57003],961:$r,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:$r,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Ir,33:[0,.69444,0,0,.36667],34:Eo,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Xi,40:fi,41:fi,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:ri,49:ri,50:ri,51:ri,52:ri,53:ri,54:ri,55:ri,56:ri,57:ri,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Ua,64:Ki,65:Ki,66:Ki,67:Xa,68:Ma,69:[0,.69444,0,0,.64167],70:fa,71:Ki,72:Ma,73:[0,.69444,0,0,.33056],74:Ua,75:za,76:da,77:[0,.69444,0,0,.97778],78:Ma,79:Ma,80:Xa,81:[.10556,.69444,0,0,.79445],82:Xa,83:fa,84:Ki,85:za,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Ki,89:[0,.69444,.0275,0,.73334],90:So,91:lo,93:lo,94:ri,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:wa,99:[0,.45833,0,0,.48889],100:wa,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:wa,105:Ka,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Ka,109:[0,.45833,0,0,.86667],110:Vi,111:[0,.45833,0,0,.55],112:so,113:so,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Vi,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:Ir,168:ri,176:Ki,180:ri,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:ri,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:ri,729:Xi,730:Ki,732:ri,733:ri,915:da,916:[0,.69444,0,0,.91667],920:uo,923:So,926:Ki,928:Ma,931:Ma,933:uo,934:Ma,936:uo,937:Ma,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Xi,8217:Xi,8220:Eo,8221:Eo},"SansSerif-Italic":{32:Ir,33:[0,.69444,.05733,0,.31945],34:na,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:ba,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:ra,45:[0,.44444,.01946,0,.33333],46:Ei,47:[.25,.75,.13164,0,.5],48:vo,49:vo,50:vo,51:vo,52:vo,53:vo,54:vo,55:vo,56:vo,57:vo,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:Ba,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Io,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:yi,77:[0,.69444,.08094,0,.875],78:Io,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:Fo,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:Ir,168:[0,.67937,.06385,0,.5],176:Yo,184:Lo,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Fo,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:jn,715:no,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Yo,732:[0,.67659,.08826,0,.5],733:jn,915:[0,.69444,.13372,0,.54167],916:Rl,920:[0,.69444,.07555,0,.77778],923:fa,926:[0,.69444,.12816,0,.66667],928:Io,931:[0,.69444,.11983,0,.72222],933:ai,934:[0,.69444,.04603,0,.72222],936:ai,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ba,8217:ba,8220:[0,.69444,.14205,0,.5],8221:na},"SansSerif-Regular":{32:Ir,33:[0,.69444,0,0,.31945],34:no,35:Nr,36:rn,37:Ti,38:[0,.69444,0,0,.75834],39:oo,40:Ca,41:Ca,42:Ni,43:Ko,44:ra,45:[0,.44444,0,0,.33333],46:Ei,47:tl,48:Ii,49:Ii,50:Ii,51:Ii,52:Ii,53:Ii,54:Ii,55:Ii,56:Ii,57:Ii,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Ui,64:Ba,65:Ba,66:Ba,67:ao,68:[0,.69444,0,0,.72223],69:go,70:[0,.69444,0,0,.56945],71:Ba,72:co,73:oo,74:Ui,75:[0,.69444,0,0,.69445],76:yi,77:[0,.69444,0,0,.875],78:co,79:[0,.69444,0,0,.73611],80:ao,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:kl,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:Ba,89:[0,.69444,.025,0,.66667],90:fa,91:Va,93:Va,94:no,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ko,99:Cl,100:ko,101:Cl,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ko,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:Hl,111:[0,.44444,0,0,.5],112:Dl,113:Dl,114:[0,.44444,.01389,0,.34167],115:zl,116:[0,.57143,0,0,.36111],117:Hl,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:Ir,168:[0,.67937,0,0,.5],176:Ba,184:Lo,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:no,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:no,715:no,728:no,729:[0,.67937,0,0,.27778],730:Ba,732:[0,.67659,0,0,.5],733:no,915:yi,916:Rl,920:ja,923:fa,926:Ba,928:co,931:El,933:ja,934:El,936:ja,937:El,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:oo,8217:oo,8220:no,8221:no},"Script-Regular":{32:Ir,65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:Ir},"Size1-Regular":{32:Ir,40:Ts,41:Ts,47:ks,91:Qs,92:ks,93:Qs,123:ps,125:ps,160:Ir,710:ql,732:ql,770:ql,771:ql,8214:[-99e-5,.601,0,0,.77778],8593:Bs,8595:Bs,8657:gs,8659:gs,8719:us,8720:us,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:Os,8748:js,8749:js,8750:Os,8896:cs,8897:cs,8898:cs,8899:cs,8968:Ys,8969:Ys,8970:Ys,8971:Ys,9168:Qt,10216:Ys,10217:Ys,10752:Zu,10753:Zu,10754:Zu,10756:cs,10758:cs},"Size2-Regular":{32:Ir,40:Fu,41:Fu,47:ys,91:Ll,92:ys,93:Ll,123:bs,125:bs,160:Ir,710:Xs,732:Xs,770:Xs,771:Xs,8719:vu,8720:vu,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Gl,8748:os,8749:os,8750:Gl,8896:rs,8897:rs,8898:rs,8899:rs,8968:Js,8969:Js,8970:Js,8971:Js,10216:Ds,10217:Ds,10752:$s,10753:$s,10754:$s,10756:rs,10758:rs},"Size3-Regular":{32:Ir,40:sl,41:sl,47:oa,91:eo,92:oa,93:eo,123:Bo,125:Bo,160:Ir,710:Xo,732:Xo,770:Xo,771:Xo,8730:[.95003,1.45,0,0,1],8968:is,8969:is,8970:is,8971:is,10216:Bo,10217:Bo},"Size4-Regular":{32:Ir,40:as,41:as,47:Rs,91:su,92:Rs,93:su,123:Ru,125:Ru,160:Ir,710:Fe,732:Fe,770:Fe,771:Fe,8730:[1.25003,1.75,0,0,1],8968:Re,8969:Re,8970:Re,8971:Re,9115:ct,9116:At,9117:ct,9118:ct,9119:At,9120:ct,9121:en,9122:Qt,9123:en,9124:en,9125:Qt,9126:en,9127:Tn,9128:er,9129:Zn,9130:[0,.3,0,0,.88889],9131:Tn,9132:er,9133:Zn,9143:[.88502,.915,0,0,1.05556],10216:Ru,10217:Ru,57344:xr,57345:xr,57680:Tr,57681:Tr,57682:Tr,57683:Tr},"Typewriter-Regular":{32:ea,33:Nn,34:Nn,35:Nn,36:oi,37:oi,38:Nn,39:Nn,40:oi,41:oi,42:[0,.52083,0,0,.525],43:hi,44:[.13889,.125,0,0,.525],45:hi,46:[0,.125,0,0,.525],47:oi,48:Nn,49:Nn,50:Nn,51:Nn,52:Nn,53:Nn,54:Nn,55:Nn,56:Nn,57:Nn,58:Hi,59:[.13889,.43056,0,0,.525],60:mi,61:[-.19549,.41562,0,0,.525],62:mi,63:Nn,64:Nn,65:Nn,66:Nn,67:Nn,68:Nn,69:Nn,70:Nn,71:Nn,72:Nn,73:Nn,74:Nn,75:Nn,76:Nn,77:Nn,78:Nn,79:Nn,80:Nn,81:[.13889,.61111,0,0,.525],82:Nn,83:Nn,84:Nn,85:Nn,86:Nn,87:Nn,88:Nn,89:Nn,90:Nn,91:oi,92:oi,93:oi,94:Nn,95:[.09514,0,0,0,.525],96:Nn,97:Hi,98:Nn,99:Hi,100:Nn,101:Hi,102:Nn,103:Ci,104:Nn,105:Nn,106:[.22222,.61111,0,0,.525],107:Nn,108:Nn,109:Hi,110:Hi,111:Hi,112:Ci,113:Ci,114:Hi,115:Hi,116:[0,.55358,0,0,.525],117:Hi,118:Hi,119:Hi,120:Hi,121:Ci,122:Hi,123:oi,124:oi,125:oi,126:Nn,127:Nn,160:ea,176:Nn,184:[.19445,0,0,0,.525],305:Hi,567:Ci,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Nn,715:Nn,728:Nn,730:Nn,770:Nn,771:Nn,776:Nn,915:Nn,916:Nn,920:Nn,923:Nn,926:Nn,928:Nn,931:Nn,933:Nn,934:Nn,936:Nn,937:Nn,8216:Nn,8217:Nn,8242:Nn,9251:[.11111,.21944,0,0,.525]}},ha=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,qa=10,Za=.25,Ja=1.2,To=.431,al={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[To,To,To],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[Za,Za,Za],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},Da=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Fi=5,Bi={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ri(a,y){a===void 0&&(a=77);const b=Gi[y][a];if(b)return{defaultMetrics:!1,depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]};if(a===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const E=String.fromCodePoint(a);if(E in Bi)a=Bi[E].codePointAt(0);else if(ha.test(E))return a=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var pa={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ta={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},Jo={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
c -179 0 -524 -115 -524 -115
c -5 -1 -9 -5 -9 -10
c 0 -1 1 -2 1 -3
l 4 -22
c 1 -5 5 -9 11 -9
h 2
s 338 93 512 92
c 174 0 513 -92 513 -92
h 2
c 5 0 9 4 11 9
l 5 22
c 1 6 -2 12 -8 13
c 0 0 -342 115 -520 115
z
`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function Do(a){if(Ta[a]){const[Te,Je,Et]=Ta[a],Zt=`<span class="stretchy" style="height:${Et}em"><svg width="100%" height="${Et}em" viewBox="0 0 ${Te} ${Je}" preserveAspectRatio="none" ><path fill="currentcolor" d="${Jo[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Et/2)/100}em;min-width:0">${Zt}</span>`}const[y,b,E,ne]=pa[a];let ae,se;const Se=E/1e3;y.length===3?(ae=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],se=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ae=["slice-1-of-2","slice-2-of-2"],se=["xMinYMin","xMaxYMin"]):(ae=["slice-1-of-1"],se=[ne]);const Pe=y.map((Te,Je)=>`<span class="${ae[Je]}" style=height:${Se}em><svg width=400em height=${Se}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${se[Je]} slice"><path fill="currentcolor" d="${Jo[Te]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${Se}em;min-width:${b}em;">${Pe}</span>`}function wo(a){return pa[a]?pa[a][2]/1e3:Ta[a][2]}function ul(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ne=a.charCodeAt(b+1);if(ne>=56320&&ne<=57343){const ae=E-55296,se=ne-56320;E=Lc(2,16)+ae*Lc(2,10)+se,b++}}y.push(E)}return y}var fl=8205,Nl=[[fl,1],[65038,2],[127995,5],[129456,4],[917536,96]],Ml,ds=[127462,127487];function fs(a){var y;if(Ml===void 0){Ml={};for(const b of Nl)for(let E=b[0];E<=b[0]+b[1]-1;E++)Ml[E]=!0}return(y=Ml[a])!=null?y:!1}function hl(a){return a>=ds[0]&&a<=ds[1]}function _s(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ul(a);let E=0;for(;E<b.length;){const ne=b[E++],ae=b[E];if(ae===fl){const se=E-1;for(E+=2;b[E]===fl;)E+=2;y.push(String.fromCodePoint(...b.slice(se,E-se+1)))}else if(fs(ae)){const se=E-1;for(;fs(b[E]);)E+=b[E]===fl?2:1;y.push(String.fromCodePoint(...b.slice(se,2*E-se-1)))}else hl(ne)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ne))}return y}var jl=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=_s(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function es(a,y){var b,E,ne,ae;const se=[];let Se=a.next();if(Se&&Se!=="\\relax"){if(Se==="\\noexpand")Se=a.next(),Se&&se.push(Se);else if(Se==="\\obeyspaces")a.obeyspaces=!0;else if(Se==="\\bgroup")se.push("<{>");else if(Se==="\\egroup")se.push("<}>");else if(Se==="\\string"){if(Se=a.next(),Se)if(Se.startsWith("\\"))for(const Pe of Se)se.push(Pe==="\\"?"\\backslash":Pe);else Se==="<{>"?se.push("\\{"):Se==="<space>"?se.push("~"):Se==="<}>"&&se.push("\\}")}else if(Se==="\\csname"){for(;a.peek()==="<space>";)a.next();let Pe="",Te=!1,Je=[];do{if(Je.length===0)if(/^#[\d?@]$/.test(a.peek())){const Et=a.get().slice(1);Je=Yl((E=(b=y==null?void 0:y(Et))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),Se=Je[0]}else Se=a.next(),Je=Se?[Se]:[];Te=Je.length===0,!Te&&Se==="\\endcsname"&&(Te=!0,Je.shift()),Te||(Te=Se==="<$>"||Se==="<$$>"||Se==="<{>"||Se==="<}>"||typeof Se=="string"&&Se.length>1&&Se.startsWith("\\")),Te||(Pe+=Je.shift())}while(!Te);Pe&&se.push("\\"+Pe),se.push(...Je)}else if(Se!=="\\endcsname")if(Se.length>1&&Se.startsWith("#")){const Pe=Se.slice(1);se.push(...Yl((ae=(ne=y==null?void 0:y(Pe))!=null?ne:y==null?void 0:y("?"))!=null?ae:"\\placeholder{}",y))}else se.push(Se)}return se}function Yl(a,y=null){const b=[];let E="";for(const se of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const Se=se.match(/((?:\\%)|[^%])*/);Se!==null&&b.push(Se[0])}const ne=new jl(ht(b.join(""))),ae=[];do ae.push(...es(ne,y));while(!ne.end());return ae}function ol(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function Ia(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ol([a,...y.map(b=>`{${b}}`)])}function Mo(a){return ol(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Ho=class Df{constructor(y){Df._registry[y]=this}static createAtom(y,b,E){return Df._registry[y].createAtom(b,Jt(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ne=[];for(const ae of Ul(y)){const se=Df._registry[ae[0].mode];ne.push(...se.serialize(ae,b))}return ol(ne)}return ol(_l(y,b))}static getFont(y,b,E){return Df._registry[y].getFont(b,E)}};Ho._registry={};var Ga=Ho;function Ul(a){const y=[];let b=[],E="NONE";for(const ne of a)ne.type!=="first"&&(ne.mode!==E?(b.length>0&&y.push(b),b=[ne],E=ne.mode):b.push(ne));return b.length>0&&y.push(b),y}function Aa(a,y){const b=[];let E=[],ne;for(const ae of a)if(ae.type!=="first"&&ae.style){let se;y==="variant"?(se=ae.style.variant,ae.style.variantStyle&&ae.style.variantStyle!=="up"&&(se+="-"+ae.style.variantStyle)):se=ae.style[y],se===ne?E.push(ae):(E.length>0&&b.push(E),E=[ae],ne=se)}return E.length>0&&b.push(E),b}function cl(a,y){var b;const{parent:E}=a[0],ne=E==null?void 0:E.computedStyle.color,ae=[];for(const se of Ul(a)){const Se=y.defaultMode;for(const Pe of Aa(se,"color")){const Te=Pe[0].computedStyle,Je=Ga._registry[Pe[0].mode].serialize(Pe,fe(Ee({},y),{defaultMode:Se==="text"?"text":"math"}));!y.skipStyles&&Te.color&&Te.color!=="none"&&(!E||ne!==Te.color)?ae.push(Ia("\\textcolor",(b=Te.verbatimColor)!=null?b:Te.color,ol(Je))):ae.push(ol(Je))}}return ae}function Zl(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Aa(a,"backgroundColor").map(ne=>{var ae;if(ne.length>0||ne[0].type!=="box"){const se=ne[0].computedStyle;if(se.backgroundColor&&se.backgroundColor!=="none"&&(!b||E!==se.backgroundColor))return Ia("\\colorbox",(ae=se.verbatimBackgroundColor)!=null?ae:se.backgroundColor,ol(cl(ne,fe(Ee({},y),{defaultMode:"text"}))))}return ol(cl(ne,y))})}function _l(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ne=[];for(const ae of Aa(a,"fontSize")){const se=ae[0].computedStyle.fontSize,Se=Zl(ae,y);Se&&(se&&se!=="auto"&&(!b||E!==se)?ne.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][se],...Se):ne.push(...Se))}return ne}function fu(a){return a?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[a]:void 0}function zs(a){if(a.length===0)return"ord";const y=fu(a[0].type),b=fu(a[a.length-1].type);return y&&y===b?y:"ord"}function Su(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var Pi=class wp{constructor(y,b){var E,ne,ae,se,Se;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:De(y)?this.children=y.filter(Te=>Te!==null):y&&y instanceof wp&&(this.children=[y]),this.children)for(const Te of this.children)Te.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ne=b==null?void 0:b.classes)!=null?ne:"",this.isTight=(ae=b==null?void 0:b.isTight)!=null?ae:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let Pe=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(Pe=(Se=Ga.getFont((se=b.mode)!=null?se:"math",this,fe(Ee({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?Se:void 0),Pe||(Pe="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(b==null?void 0:b.maxFontSize)!==void 0&&(this.maxFontSize=b.maxFontSize),Wl(this,Pe)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ne=Su(b,E);ne.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ne)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=Su(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=Su(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=Su(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=Su(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ne=y.backgroundColor;this.isSelected&&(ne=Xt(ne)),ne&&ne!==b.backgroundColor&&(this.setStyle("background-color",ne),this.setStyle("display","inline-block"));const ae=y.scalingFactor;return this.scale=ae,this.skew*=ae,this.italic*=ae,this}toMarkup(){var y,b,E,ne;let ae=(y=this.value)!=null?y:"";if(this.children)for(const bn of this.children)ae+=bn.toMarkup();let se="";if(this.svgBody)se=Do(this.svgBody);else if(this.svgOverlay){se='<span style="',se+="display: inline-block;",se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,se+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,se+='">',se+=ae,se+="</span>",se+='<svg style="position:absolute;overflow:visible;',se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const bn=(b=this.cssProperties)==null?void 0:b.padding;bn?(se+=`top:${bn};`,se+=`left:${bn};`,se+=`width:calc(100% - 2 * ${bn} );`):se+="top:0;left:0;width:100%;",se+="z-index:2;",se+='"',this.svgStyle&&(se+=this.svgStyle),se+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,se+=`>${this.svgOverlay}</svg>`}let Se="";const Pe=this.classes.split(" ");Pe.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&Pe.push("ML__latex-caret"),this.isSelected&&Pe.push("ML__selected");const Te=Pe.length===1?Pe[0]:Pe.filter((bn,Ln,jr)=>bn.length>0&&jr.indexOf(bn)===Ln).join(" ");if(Te.length>0&&(Se+=` class="${Te}"`),this.id&&(Se+=` data-atom-id=${this.id}`),this.cssId&&(Se+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(Se+=" "+Object.keys(this.attributes).map(bn=>`${bn}="${this.attributes[bn]}"`).join(" ")),this.htmlData){const bn=this.htmlData.split(",");for(const Ln of bn){const jr=Ln.match(/([^=]+)=(.+$)/);if(jr){const aa=jr[1].trim().replace(/ /g,"-");aa&&(Se+=` data-${aa}="${jr[2]}" `)}else{const aa=Ln.trim().replace(/ /g,"-");aa&&(Se+=` data-${aa} `)}}}const Je=(ne=this.cssProperties)!=null?ne:{};this.hasExplicitWidth&&Je.width===void 0&&(Je.width=`${Math.ceil(this._width*100)/100}em`);const Et=Object.keys(Je).map(bn=>`${bn}:${Je[bn]}`);if(this.scale!==void 0&&this.scale!==1&&(ae.length>0||se.length>0)&&Et.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const bn=this.htmlStyle.split(";");let Ln="";for(const jr of bn){const aa=jr.match(/([^=]+):(.+$)/);if(aa){const Hr=aa[1].trim().replace(/ /g,"-");Hr&&(Ln+=`${Hr}:${aa[2]};`)}}Ln&&(Se+=` style="${Ln}"`)}Et.length>0&&(Se+=` style="${Et.join(";")}"`);let Zt="";return Se.length>0||se.length>0?Zt=`<span${Se}>${ae}${se}</span>`:Zt=ae,this.caret==="text"?Zt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(Zt+='<span class="ML__caret"></span>'),Zt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const Pe of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&Pe in y.cssProperties||this.cssProperties&&Pe in this.cssProperties)return!1}const ne=this.cssProperties?Object.keys(this.cssProperties).length:0,ae=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ne!==ae)return!1;if(ne>0){for(const Pe of Object.keys(this.cssProperties))if(this.cssProperties[Pe]!==y.cssProperties[Pe])return!1}const se=this.classes.trim().replace(/\s+/g," ").split(" "),Se=y.classes.trim().replace(/\s+/g," ").split(" ");if(se.length!==Se.length)return!1;se.sort(),Se.sort();for(const[Pe,Te]of se.entries())if(Te==="vertical-separator"||Te!==Se[Pe])return!1;return this.value+=y.value,this.height=Math.max(this.height,y.height),this.depth=Math.max(this.depth,y.depth),this._width=this._width+y._width,this.maxFontSize=Math.max(this.maxFontSize,y.maxFontSize),this.italic=y.italic,!0}};function Tu(a){if(!a||a.length===0)return[];a[0].children=Tu(a[0].children);const y=[a[0]];for(let b=1;b<a.length;b++)y[y.length-1].tryCoalesceWith(a[b])||(a[b].children=Tu(a[b].children),y.push(a[b]));return y}function Ps(a){return a.children&&(a.children=Tu(a.children)),a}function gu(a,y){if(!a)return new Pi(null,y);const b=new Pi(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ne=new Pi(null,{classes:"ML__strut--bottom",type:"ignore"});ne.setStyle("height",a.height+a.depth,"em"),ne.setStyle("vertical-align",-a.depth,"em"),E.push(ne)}return E.push(a),new Pi(E,fe(Ee({},y),{type:"lift"}))}function xu(a){const y=wo(a)/2,b=new Pi(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Wl(a,y){var b;if(a.type==="latex"){a.height=.9,a.depth=.2,a._width=1;return}if(a.value){a.height=-1/0,a.depth=-1/0,a._width=0,a.skew=-1/0,a.italic=-1/0;for(let E=0;E<a.value.length;E++){const ne=Ri(a.value.codePointAt(E),y);a.height=Math.max(a.height,ne.height),a.depth=Math.max(a.depth,ne.depth),a._width+=ne.width,a.skew=ne.skew,a.italic=ne.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ne=-1/0,ae=0;for(const se of a.children)se.height>E&&(E=se.height),se.depth>ne&&(ne=se.depth),ae=Math.max(ae,(b=se.maxFontSize)!=null?b:0);a.height=E,a.depth=ne,a._width=a.children.reduce((se,Se)=>se+Se.width,0),a.maxFontSize=ae}}function Ql(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ne=-b.shift-b.box.depth;let ae=ne;for(let se=1;se<y.length;se++){const Se=y[se],Pe=-Se.shift-ae-Se.box.depth,Te=Pe-(b.box.height+b.box.depth);ae=ae+Pe,E.push(Te),E.push(Se),b=Se}return[E,ne]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function hs(a){var y;const[b,E]=Ql(a);if(!b)return[[],0,0];const ne=new Pi(null,{classes:"pstrut"});let ae=0;for(const Ln of b)if(typeof Ln!="number"){const jr=Ln.box;ae=Math.max(ae,jr.maxFontSize,jr.height)}ae+=2,ne.height=ae,ne.setStyle("height",ae,"em");const se=[];let Se=E,Pe=E,Te=E,Je=0;for(const Ln of b){if(typeof Ln=="number")Te+=Ln;else{const jr=Ln.box,aa=(y=Ln.classes)!=null?y:[],Hr=new Pi([ne,jr],{classes:aa.join(" "),style:Ln.style});jr.setStyle("height",jr.height+jr.depth,"em"),jr.setStyle("display","inline-block"),Hr.setStyle("top",-ae-Te-jr.depth,"em"),Ln.marginLeft&&Hr.setStyle("margin-left",Ln.marginLeft,"em"),Ln.marginRight&&Hr.setStyle("margin-right",Ln.marginRight,"em"),se.push(Hr),Te+=jr.height+jr.depth,Je=Math.max(Je,Hr.width)}Se=Math.min(Se,Te),Pe=Math.max(Pe,Te)}se.forEach(Ln=>{Ln.softWidth=Je});const Et=new Pi(se,{classes:"vlist"});if(Et.softWidth=Je,Et.height=Pe,Et.setStyle("height",Pe,"em"),Se>=0)return[[new Pi(Et,{classes:"vlist-r"})],Pe,-Se];const Zt=new Pi(new Pi(null),{classes:"vlist"});Zt.height=-Se,Zt.setStyle("height",-Se,"em");const bn=new Pi(8203,{classes:"vlist-s",maxFontSize:0});return bn.softWidth=0,bn.height=0,bn.depth=0,[[new Pi([Et,bn],{classes:"vlist-r"}),new Pi(Zt,{classes:"vlist-r"})],Pe,-Se]}var Sl=class extends Pi{constructor(a,y){var b;const[E,ne,ae]=hs(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ne,this.depth=ae,this.softWidth=E.reduce((se,Se)=>Math.max(se,Se.width),0)}};function Us(a,y){var b,E,ne,ae,se;const Se=a.metrics,Pe=new Pi(y.base),Te=(b=y.baseShift)!=null?b:0,Je=(E=y.slant)!=null?E:0;let Et=0,Zt=0;y.above&&(Et=(ne=y.aboveShift)!=null?ne:Math.max(Se.bigOpSpacing1,Se.bigOpSpacing3-y.above.depth)),y.below&&(Zt=(ae=y.belowShift)!=null?ae:Math.max(Se.bigOpSpacing2,Se.bigOpSpacing4-y.below.height));let bn=null;if(y.below&&y.above){const Ln=Se.bigOpSpacing5+y.below.height+y.below.depth+Zt+Pe.depth+Te;bn=new Sl({bottom:Ln,children:[Se.bigOpSpacing5,{box:y.below,marginLeft:-Je,classes:["ML__center"]},Zt,{box:Pe,classes:["ML__center"]},Et,{box:y.above,marginLeft:Je,classes:["ML__center"]},Se.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)bn=new Sl({top:Pe.height-Te,children:[Se.bigOpSpacing5,{box:y.below,marginLeft:-Je,classes:["ML__center"]},Zt,{box:Pe,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const Ln=Pe.depth+Te;bn=new Sl({bottom:Ln,children:[{box:Pe,classes:["ML__center"]},Et,{box:y.above,marginLeft:Je,classes:["ML__center"]},Se.bigOpSpacing5]}).wrap(a)}else{const Ln=Pe.depth+Te;bn=new Sl({bottom:Ln,children:[{box:Pe},Se.bigOpSpacing5]}).wrap(a)}return new Pi(bn,{type:(se=y.type)!=null?se:"op"})}var Fl=7,Ks=6,qs=5,eu=4,wu=3,Is=2,Au=1,Fs=0,tu=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(al).reduce((ne,ae)=>fe(Ee({},ne),{[ae]:al[ae][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Ns[[Fs,Au,Fs,Au,Is,wu,Is,wu][this.id]]}get sub(){return Ns[[Fs,Fs,Fs,Fs,Is,Is,Is,Is][this.id]]}get fracNum(){return Ns[[Fs,Au,Fs,Au,Is,wu,eu,qs][this.id]]}get fracDen(){return Ns[[Fs,Fs,Fs,Fs,Is,Is,eu,eu][this.id]]}get cramp(){return Ns[[Fs,Fs,Is,Is,eu,eu,Ks,Ks][this.id]]}get isTight(){return this.sizeDelta<0}},nu={7:new tu(Fl,0,!1),6:new tu(Ks,0,!0),5:new tu(qs,0,!1),4:new tu(eu,0,!0),3:new tu(wu,-3,!1),2:new tu(Is,-3,!0),1:new tu(Au,-4,!1),0:new tu(Fs,-4,!0)},Ns=fe(Ee({},nu),{displaystyle:nu[Fl],textstyle:nu[qs],scriptstyle:nu[wu],scriptscriptstyle:nu[Au]});function Cs(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:qa,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(b=a.unit)!=null?b:"pt"];if(Number.isFinite(y)){const ne=Lc(10,y);return Math.round(a.dimension/qa*E*ne)/ne}return a.dimension*E}function vs(a,y){if(a===null)return 0;const b=Cs(a)/qa;if(Number.isFinite(y)){const E=Lc(10,y);return Math.round(b*E)/E}return b}function Wu(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function lc(a){let y=Wu(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Wu(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Wu(a.shrink)}`),y}function xs(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=lc(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ne=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ne).toString(16).toUpperCase(),ne<=255?E=E.padStart(2,"0"):ne<=65535?E=E.padStart(4,"0"):ne<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ne).toString(8),ne<=63?E=E.padStart(2,"0"):ne<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function hu(a,y){return a==null?null:"number"in a?fe(Ee({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?fe(Ee({},a),{factor:a.factor*y}):fe(Ee({},a),{factor:y}):"dimension"in a?fe(Ee({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:hu(a.glue,y),shrink:hu(a.shrink,y),grow:hu(a.grow,y)}:a.shrink?{glue:hu(a.glue,y),shrink:hu(a.shrink,y)}:a.grow?{glue:hu(a.glue,y),grow:hu(a.grow,y)}:{glue:hu(a.glue,y)}:null}var Yc={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function sc(){return Ee({},Yc)}function Tl(){return{registers:sc(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:He.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ze,backgroundColorMap:Ae,getMacro:a=>Gn(a,jt())}}var Oo=class Ap{constructor(y,b){var E,ne,ae,se,Se,Pe,Te,Je,Et,Zt,bn,Ln,jr,aa,Hr;let Di;y!=null&&y.parent?(this.parent=y.parent,Di=y.parent,this.registers={}):(Di=Ee(Ee({},Tl()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=Di.registers),Di.atomIdsSettings&&(this.atomIdsSettings=Ee({},Di.atomIdsSettings)),this.renderPlaceholder=Di.renderPlaceholder,this.isPhantom=(se=(ae=y==null?void 0:y.isPhantom)!=null?ae:(ne=this.parent)==null?void 0:ne.isPhantom)!=null?se:!1,this.letterShapeStyle=Di.letterShapeStyle,this.minFontScale=Di.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(Pe=(Se=this.parent)==null?void 0:Se.color)!=null?Pe:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Je=(Te=this.parent)==null?void 0:Te.backgroundColor)!=null?Je:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((Et=this.parent)==null?void 0:Et.size)?this.size=b.fontSize:this.size=(bn=(Zt=this.parent)==null?void 0:Zt.size)!=null?bn:Fi;let ua=(jr=(Ln=this.parent)==null?void 0:Ln.mathstyle)!=null?jr:Ns.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(Di instanceof Ap)switch(y.mathstyle){case"cramp":ua=ua.cramp;break;case"superscript":ua=ua.sup;break;case"subscript":ua=ua.sub;break;case"numerator":ua=ua.fracNum;break;case"denominator":ua=ua.fracDen;break}switch(y.mathstyle){case"textstyle":ua=Ns.textstyle;break;case"displaystyle":ua=Ns.displaystyle;break;case"scriptstyle":ua=Ns.scriptstyle;break;case"scriptscriptstyle":ua=Ns.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=ua,this.smartFence=Di.smartFence,this.placeholderSymbol=Di.placeholderSymbol,this.colorMap=(aa=Di.colorMap)!=null?aa:_i=>_i,this.backgroundColorMap=(Hr=Di.backgroundColorMap)!=null?Hr:_i=>_i,this.getMacro=Di.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Fl||this.mathstyle.id===Ks}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Da[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return vs(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ne=b.getRegister(y.register);if(ne===void 0)return;if(typeof ne=="string")return{string:Number(ne).toString()+ne};if(typeof ne=="number")return{number:E*ne};const ae=b.evaluate(ne);if(ae!==void 0)return"string"in ae?{string:Number(ne).toString()+ae.string}:"number"in ae?{number:E*ae.number}:"dimension"in ae?fe(Ee({},ae),{dimension:E*ae.dimension}):"glue"in ae?fe(Ee({},ae),{glue:fe(Ee({},ae.glue),{dimension:E*ae.glue.dimension}),shrink:ae.shrink?fe(Ee({},ae.shrink),{dimension:E*ae.shrink.dimension}):void 0,grow:ae.grow?fe(Ee({},ae.grow),{dimension:E*ae.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:Cs(E,b)/qa}toNumber(y){if(y===null)return null;const b=this.evaluate(y);return b===void 0?null:"number"in b?b.number:"dimension"in b?b.dimension:"glue"in b?b.glue.dimension:"string"in b?Number(b.string):null}toColor(y){var b,E;if(y===null)return null;const ne=this.evaluate(y);return ne===void 0?null:"string"in ne?(E=(b=this.colorMap)==null?void 0:b.call(this,ne.string))!=null?E:ne.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ne=this.evaluate(y);return ne===void 0?null:"string"in ne?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ne.string))!=null?E:ne.string:null}},Zs=["body","above","below","superscript","subscript"];function ts(a){return typeof a=="string"&&Zs.includes(a)}function ru(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var qr=class Gc{constructor(y){var b,E,ne,ae,se,Se;this.type=y.type,typeof y.value=="string"&&(this.value=y.value),this.command=(E=(b=y.command)!=null?b:this.value)!=null?E:"",this.mode=(ne=y.mode)!=null?ne:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=Ee({},y.style),this.displayContainsHighlight=(ae=y.displayContainsHighlight)!=null?ae:!1,this.captureSelection=(se=y.captureSelection)!=null?se:!1,this.skipBoundary=(Se=y.skipBoundary)!=null?Se:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,E){var ne;if(!b)return null;const ae=Mu(b),se=[];for(const Pe of ae){const Te=Pe[0].style,Je=Xu(y,Pe,{style:{color:Te.color,backgroundColor:Te.backgroundColor,fontSize:Te.fontSize}});Je&&se.push(Je)}if(se.length===0)return null;const Se=((ne=E==null?void 0:E.classes)!=null?ne:"").trim();return se.length===1&&!Se&&!(E!=null&&E.type)?se[0].wrap(y):new Pi(se,{classes:Se,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Ga.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ne}=y;for(;ne;)E.add(ne),ne=ne.parent;for(ne=b.parent;ne;){if(E.has(ne))return ne;ne=ne.parent}console.assert(!!ne)}static fromJson(y){return typeof y=="string"?new Gc({type:"mord",value:y,mode:"math"}):new Gc(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=Ee({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=cd(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ol([Ia(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ol([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Ga.serialize(this.body,fe(Ee({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Ga.serialize(this.above,y)}belowToLatex(y){return Ga.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=fe(Ee({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Ga.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=Ga.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(ts(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Zs)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(ts(y)),ts(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return ru(this.parentBranch)?this.parentBranch[0]:-1}get col(){return ru(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ne=typeof this.style.verbatimBackgroundColor=="string",ae=Ee(Ee({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ae.variant,delete ae.variantStyle,ne||delete ae.verbatimBackgroundColor,E||delete ae.verbatimColor,ae}applyStyle(y){this.isDirty=!0,this.style=Ee(Ee({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var E;if(!y||(console.assert(ts(b)),!ts(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ne=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ne:this._branches={[b]:ne};for(const ae of y)ae.parent=this,ae.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Gc({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ne of y)ne.parent=this,ne.parentBranch=b,E.push(ne);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ne of y)ne.parent=this,ne.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(ts(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),E=b.indexOf(y);console.assert(E>=0),b.splice(E,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of Zs)if(this._branches[b])for(const E of this._branches[b])y.push(...E.children),y.push(E);return this._children=y,y}render(y){if(this.type==="first"&&!y.atomIdsSettings)return null;const b=Jt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Oo({parent:y},this.style);let ne=this.createBox(E,{classes:this.parent?"":"ML__base"});return ne?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ne=this.attachSupsub(E,{base:ne})),ne.wrap(E)):null}attachSupsub(y,b){var E;const ne=b.base,ae=this.superscript,se=this.subscript;if(!ae&&!se)return ne;let Se=null,Pe=null;const Te=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Je=0;if(ae){const jr=new Oo({parent:y,mathstyle:"superscript"});Se=Gc.createBox(jr,ae),Te||(Je=ne.height-y.metrics.supDrop*jr.scalingFactor)}let Et=0;if(se){const jr=new Oo({parent:y,mathstyle:"subscript"});Pe=Gc.createBox(jr,se),Te||(Et=ne.depth+y.metrics.subDrop*jr.scalingFactor)}let Zt;y.isDisplayStyle?Zt=y.metrics.sup1:y.isCramped?Zt=y.metrics.sup3:Zt=y.metrics.sup2;const bn=.5/qa/y.scalingFactor;let Ln=null;if(Pe&&Se){Je=Math.max(Je,Zt,Se.depth+.25*y.metrics.xHeight),Et=Math.max(Et,y.metrics.sub2);const jr=y.metrics.defaultRuleThickness;if(Je-Se.depth-(Pe.height-Et)<4*jr){Et=4*jr-(Je-Se.depth)+Pe.height;const Hr=.8*y.metrics.xHeight-(Je-Se.depth);Hr>0&&(Je+=Hr,Et-=Hr)}const aa=this.isExtensibleSymbol&&ne.italic?-ne.italic:0;Ln=new Sl({individualShift:[{box:Pe,shift:Et,marginLeft:aa},{box:Se,shift:-Je}]}).wrap(y)}else Pe&&!Se?(Et=Math.max(Et,y.metrics.sub1,Pe.height-.8*To),Ln=new Sl({shift:Et,children:[{box:Pe,marginRight:bn,marginLeft:this.isCharacterBox()?-ne.italic:0}]})):!Pe&&Se&&(Je=Math.max(Je,Zt,Se.depth+.25*To),Ln=new Sl({shift:-Je,children:[{box:Se,marginRight:bn}]}));return new Pi([ne,new Pi(Ln,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Gc.createBox(new Oo({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ne=this.subscript?Gc.createBox(new Oo({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ne?b.base.wrap(y):Us(y,fe(Ee({},b),{above:E,below:ne}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ne,ae,se;const Se=(E=this.value)!=null?E:this.body,Pe=(ne=b==null?void 0:b.boxType)!=null?ne:fu(this.type);let Te=(ae=b==null?void 0:b.classes)!=null?ae:"";this.mode==="text"&&(Te+=" ML__text");const Je=typeof Se=="string"||Se===void 0?new Pi(Se!=null?Se:null,{type:Pe,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:fe(Ee({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Te}):(se=Gc.createBox(y,Se,{type:Pe,classes:Te}))!=null?se:new Pi(null);return y.isTight&&(Je.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Je.italic=0),Je.right=Je.italic,this.bind(y,Je),this.caret&&!this.superscript&&!this.subscript&&(Je.caret=this.caret),Je}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Mu(a){let y;const b=[];let E=[];for(const ne of a)if(!y&&!ne.style)E.push(ne);else{const ae=ne.computedStyle;y&&ae.color===y.color&&ae.backgroundColor===y.backgroundColor&&ae.fontSize===y.fontSize?E.push(ne):(E.length>0&&b.push(E),E=[ne],y=ae)}return E.length>0&&b.push(E),b}function Xu(a,y,b){var E,ne,ae,se,Se;if(!y||y.length===0)return null;const Pe=new Oo({parent:a},b.style),Te=!((E=Pe.atomIdsSettings)!=null&&E.groupNumbers);let Je=[];if(y.length===1){const Zt=y[0],bn=Zt.render(Pe);bn&&(Te&&Zt.isSelected&&bn.selected(!0),Je=[bn])}else{let Zt="",bn=!0;for(const Ln of y){(ne=Pe.atomIdsSettings)!=null&&ne.groupNumbers&&Zt&&(bn&&Ln.isDigit()||!bn&&Xc(Ln))&&(Pe.atomIdsSettings.overrideID=Zt);const jr=Ln.render(Pe);Pe.atomIdsSettings&&(Pe.atomIdsSettings.overrideID=void 0),jr&&((ae=Pe.atomIdsSettings)!=null&&ae.groupNumbers&&((Ln.isDigit()||Xc(Ln))&&(!Zt||bn!==Ln.isDigit())&&(bn=Ln.isDigit(),Zt=(se=Ln.id)!=null?se:""),Zt&&(!(Ln.isDigit()||Xc(Ln))||!Ln.hasEmptyBranch("superscript")||!Ln.hasEmptyBranch("subscript"))&&(Zt="")),Te&&Ln.isSelected&&jr.selected(!0),Je.push(jr))}}if(Je.length===0)return null;const Et=new Pi(Je,fe(Ee({isTight:Pe.isTight},b),{type:(Se=b.type)!=null?Se:"lift"}));return Et.isSelected=Je.every(Zt=>Zt.isSelected),Et.wrap(Pe)}function Xc(a){return a.mode==="text"}function cd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof qr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var Ju=class Mp extends qr{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new Mp(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:Bn("text",this.value.codePointAt(0))}};function Tc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Id(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Id(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function iu(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function _u(a){return typeof a=="number"&&!Number.isNaN(a)}function Rc(a){return Array.isArray(a)&&a.length===2}function Jc(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Fd(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ne=b.parent;for(;!E&&ne;)ne&&(E=ne.mode),ne=ne.parent}return E}function Od(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ne=!1,ae=!1,se=!1,Se=!1,Pe=!1,Te=!1,Je=!1,Et=!1,Zt=!1,bn=!1,Ln=!1,jr=!1,aa=!1,Hr=a[0],Di=0;for(;Hr!=null&&Hr.type&&/^(subsup|placeholder)$/.test(Hr.type);)Di+=1,Hr=a[Di];return b=!Hr||Hr.type==="first",Hr&&(jr=Hr.mode==="text",E=!jr&&Hr.type==="mord"&&me.test(Hr.value),ne=!jr&&Hr.type==="mord"&&/\d+$/.test(Hr.value),ae=!jr&&Hr.isFunction,se=Hr.type==="genfrac",Se=Hr.type==="surd",Pe=Hr.type==="mbin",Te=Hr.type==="mrel",Je=Hr.type==="mop"||Hr.type==="operator"||Hr.type==="extensible-symbol",Et=Hr.type==="mpunct"||Hr.type==="minner",Zt=Hr.type==="array",bn=Hr.type==="mopen",Ln=Hr.type==="mclose"||Hr.type==="leftright",aa=Hr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ne||y.after.includes("function")&&ae||y.after.includes("frac")&&se||y.after.includes("surd")&&Se||y.after.includes("binop")&&Pe||y.after.includes("relop")&&Te||y.after.includes("operator")&&Je||y.after.includes("punct")&&Et||y.after.includes("array")&&Zt||y.after.includes("openfence")&&bn||y.after.includes("closefence")&&Ln||y.after.includes("text")&&jr||y.after.includes("space")&&aa?y.value:""}function $c(a,y,b){return b?Od(a,b[y]):""}var _c={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function Ec(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=Nd(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",Eu(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Eu(a,y){var b,E,ne;if(!a)return"";let ae=!1,se;const Se=(b=y.inlineShortcuts)!=null?b:_c;if(!ae&&(a.startsWith("^")||a.startsWith("_"))&&(se=ec(a.slice(1),{inlineShortcuts:Se,noWrap:!0}),a=a[0]+"{"+se.match+"}",a+=Eu(se.rest,y),ae=!0),ae||(se=a.match(/^(sqrt|\u221A)(.*)/),se&&(se=ec(se[2],{inlineShortcuts:Se,noWrap:!0}),a="\\sqrt{"+((E=se.match)!=null?E:"\\placeholder{}")+"}",a+=Eu(se.rest,y),ae=!0)),ae||(se=a.match(/^(\\cbrt|\u221B)(.*)/),se&&(se=ec(se[2],{inlineShortcuts:Se,noWrap:!0}),a="\\sqrt[3]{"+((ne=se.match)!=null?ne:"\\placeholder{}")+"}",a+=Eu(se.rest,y),ae=!0)),ae||(se=a.match(/^abs(.*)/),se&&(se=ec(se[1],{inlineShortcuts:Se,noWrap:!0}),a="\\left|"+se.match+"\\right|",a+=Eu(se.rest,y),ae=!0)),ae||(se=a.match(/^["”“](.*?)["”“](.*)/),se&&(a="\\text{"+se[1]+"}",a+=Eu(se[2],y),ae=!0)),ae||(se=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),se&&(a=dd(se[1],Se),a+=Eu(se[2],y),ae=!0)),!ae&&/^([fgh])[^a-zA-Z]/.test(a)&&(se=ec(a.slice(1),{inlineShortcuts:Se,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+se.match+"\\right)":a[0]+se.match,a+=Eu(se.rest,y),ae=!0),ae||(se=a.match(/^([a-zA-Z]+)(.*)/),se&&(a=dd(se[1],Se),a+=Eu(se[2],y),ae=!0)),!ae)if(se=ec(a,{inlineShortcuts:Se,noWrap:!0}),se.match&&se.rest[0]==="/"){const Pe=ec(se.rest.slice(1),{inlineShortcuts:Se,noWrap:!0});Pe.match&&(a="\\frac{"+se.match+"}{"+Pe.match+"}"+Eu(Pe.rest,y)),ae=!0}else se.match&&(a=a.startsWith("(")?"\\left("+se.match+"\\right)"+Eu(se.rest,y):se.match+Eu(se.rest,y),ae=!0);return ae||(se=a.match(/^(\s+)(.*)$/),se&&(a=" "+Eu(se[2],y),ae=!0)),a}function ec(a,y){let b="";a=a.trim();let E=a,ne=a.charAt(0),ae={"(":")","{":"}","[":"]"}[ne];if(ae){let se=1,Se=1;for(;Se<a.length&&se>0;)a[Se]===ne&&se++,a[Se]===ae&&se--,Se++;se===0?(y.noWrap&&ne==="("?b=Eu(a.substring(1,Se-1),y):(ne==="{"&&ae==="}"&&(ne="\\{",ae="\\}"),b="\\left"+ne+Eu(a.substring(1,Se-1),y)+"\\right"+ae),E=a.slice(Math.max(0,Se))):(b=a.substring(1,Se),E="")}else{let se=a.match(/^([a-zA-Z]+)/);if(se){let Se=$c(null,a,y.inlineShortcuts);if(Se)return Se=Se.replace("_{#?}",""),Se=Se.replace("^{#?}",""),{match:Se,rest:a.slice(Se.length)}}if(se=a.match(/^([a-zA-Z])/),se)return{match:se[1],rest:a.slice(1)};if(se=a.match(/^(-)?\d+(\.\d*)?/),se)return{match:se[0],rest:a.slice(se[0].length)};/^\\(left|right)/.test(a)||(se=a.match(/^(\\[a-zA-Z]+)/),se&&(E=a.slice(se[1].length),b=se[1]))}return{match:b,rest:E}}function dd(a,y){let b=$c(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var fd=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function uc(a){const y=a.trim();for(const b of fd)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function Nd(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=uc(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var zc="$$",qc="$$",hd=(a,y,b)=>(fd.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${zc} ${y} ${qc}`),y),ed=class ch{constructor(y){ch._modes[y]=this}static onPaste(y,b,E){var ne;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const se=new DataTransfer;se.setData("text/plain",E),E=se}const ae=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ne=b.host)!=null&&ne.dispatchEvent(ae)?ch._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ne=E.selectionIsCollapsed?[0,E.lastOffset]:iu(E.selection),ae=E.getValue(ne,b);navigator.clipboard.writeText(ae).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ne=y.model,ae=ne.selectionIsCollapsed?[0,ne.lastOffset]:iu(ne.selection);let se=ne.getAtoms(ae);if(se.every(Se=>Se.mode==="text"||!Se.mode))b.clipboardData.setData("text/plain",se.filter(Se=>Se instanceof Ju).map(Se=>Se.value).join(""));else if(se.every(Se=>Se.mode==="latex"))b.clipboardData.setData("text/plain",ne.getAtoms(ae,{includeChildren:!0}).map(Se=>{var Pe;return(Pe=Se.value)!=null?Pe:""}).join(""));else{let Se;se.length===1&&se[0].verbatimLatex!==void 0?Se=se[0].verbatimLatex:Se=ne.getValue(ae,"latex-expanded"),b.clipboardData.setData("application/x-latex",Se);try{b.clipboardData.setData("text/plain",y.options.onExport(y,Se,ae))}catch(Pe){}if(se.length===1){const Pe=se[0];(Pe.type==="root"||Pe.type==="group")&&(se=Pe.body.filter(Te=>Te.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(se.map(Pe=>Pe.toJson())))}catch(Pe){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const Pe=window.MathfieldElement.computeEngine;if(Pe)try{const Te=Pe.jsonSerializationOptions;Pe.jsonSerializationOptions={metadata:["latex"]};const Je=Pe.parse(ne.getValue(ae,"latex-unstyled"));Pe.jsonSerializationOptions=Te;const Et=JSON.stringify(Je.json);Et&&b.clipboardData.setData("application/json",Et)}catch(Te){}}}b.preventDefault()}static insert(y,b,E={}){var ne;const ae=E.mode==="auto"?y.mode:(ne=E.mode)!=null?ne:y.mode;return ch._modes[ae].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};ed._modes={};var pl=ed,Ld=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],td={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function ju(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Gu(a){var y,b;return(b=(y=a.querySelector(".ML__caret"))!=null?y:a.querySelector(".ML__text-caret"))!=null?b:a.querySelector(".ML__latex-caret")}function tc(a){const y=Gu(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Kc(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function nd(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ne=y.right-y.left,ae=y.bottom-y.top,se=Math.ceil(y.left-E.left+a.field.scrollLeft*b),Se=Math.ceil(y.top-E.top);return{left:se,right:se+ne,top:Se,bottom:Se+ae}}function Hc(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ne of a.children)if(ne.nodeType===1&&"atomId"in ne.dataset&&!ne.classList.contains("pstrut")){const ae=Hc(ne);E.left=Math.min(E.left,ae.left),E.right=Math.max(E.right,ae.right),E.top=Math.min(E.top,ae.top),E.bottom=Math.max(E.bottom,ae.bottom)}return E}function vc(a,y){var b,E;if(!y.id)return null;let ne=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ne!==null)return ne;const ae=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ne=ae?Hc(ae):null,a.atomBoundsCache&&(ne?a.atomBoundsCache.set(y.id,ne):a.atomBoundsCache.delete(y.id)),ne!=null?ne:null}function Td(a,y,b){const E=new Map;for(const ne of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ne.style.backgroundColor)continue;const ae=a.field,se=ae.offsetWidth;let Pe=Math.floor(ae.getBoundingClientRect().width)/se;Pe=isNaN(Pe)?1:Pe;const Te=nd(a,vc(a,ne),Pe);if(Te){const Je=Kc(ne);if(E.has(Je)){const Et=E.get(Je);E.set(Je,{left:Math.min(Et.left,Te.left),right:Math.max(Et.right,Te.right),top:Math.min(Et.top,Te.top),bottom:Math.max(Et.bottom,Te.bottom)})}else E.set(Je,Te)}}return[...E.values()]}function Xl(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...Td(a,E,y)),[])}function ms(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Ou(a){let y=0,b=0;const E=a.offsetWidth,ne=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ne)}var nc=`@keyframes ML__caret-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.ML__container {
display: inline-flex;
flex-flow: row;
justify-content: space-between;
align-items: flex-end;
min-height: 39px;
/* Need some room for the virtual keyboard toggle */
width: 100%;
/* Encourage browsers to consider allocating a hardware accelerated
layer for this element. */
isolation: isolate;
/* Prevent the browser from trying to interpret touch gestures in the field */
/* "Disabling double-tap to zoom removes the need for browsers to
delay the generation of click events when the user taps the screen." */
touch-action: none;
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
--_selection-color: var(--selection-color, #000);
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
--_smart-fence-color: var(--smart-fence-color, currentColor);
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
--_correct-color: var(--correct-color, #10a000);
--_incorrect-color: var(--incorrect-color, #a01b00);
--_composition-background-color: var(--composition-background-color, #fff1c2);
--_composition-text-color: var(--composition-text-color, black);
--_composition-underline-color: var(--composition-underline-color, transparent);
}
/* This is the actual field content (formula) */
.ML__content {
display: flex;
align-items: center;
align-self: center;
position: relative;
overflow: hidden;
padding: 2px 3px 2px 1px;
width: 100%;
}
.ML__virtual-keyboard-toggle,
.ML__menu-toggle {
box-sizing: border-box;
display: flex;
align-self: center;
align-items: center;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
margin-right: 4px;
cursor: pointer;
/* Avoid some weird blinking with :hover */
border-radius: 8px;
border: 1px solid transparent;
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
color: hsl(var(--_hue), 40%, 50%);
fill: currentColor;
background: transparent;
}
.ML__virtual-keyboard-toggle:hover,
.ML__menu-toggle:hover {
background: hsla(0, 0%, 70%, 0.3);
color: #333;
fill: currentColor;
}
.ML__virtual-keyboard-toggle > span,
.ML__menu-toggle > span {
display: flex;
align-self: center;
align-items: center;
}
/* The invisible element used to capture keyboard events. We're just trying
really hard to make sure it doesn't show. */
.ML__keyboard-sink {
display: inline-block;
resize: none;
outline: none;
border: none;
/* Need these for Microsoft Edge */
position: fixed;
clip: rect(0 0 0 0);
/* Need this to prevent iOS Safari from auto-zooming */
font-size: 1em;
font-family: KaTeX_Main;
line-height: 0.5;
/* On Chromium, if this is 0, no keyboard events are received */
}
[part="placeholder"] {
color: var(--neutral-400);
}
.ML__composition {
background: var(--_composition-background-color);
color: var(--_composition-text-color);
text-decoration: underline var(--_composition-underline-color);
}
.ML__caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__text-caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__latex-caret::after {
content: '';
visibility: hidden;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_latex-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.019em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__focused .ML__latex-caret::after,
.ML__focused .ML__text-caret::after,
.ML__focused .ML__caret::after {
visibility: visible;
}
.ML__focused .ML__text {
background: var(--_text-highlight-background-color);
}
/* When using smartFence, the anticipated closing fence is displayed
with this style */
.ML__smart-fence__close {
opacity: var(--_smart-fence-opacity);
color: var(--_smart-fence-color);
}
.ML__selected,
.ML__focused .ML__selected .ML__contains-caret,
.ML__focused .ML__selected .ML__smart-fence__close,
.ML__focused .ML__selected .ML__placeholder {
color: var(--_selection-color);
opacity: 1;
}
.ML__selection {
box-sizing: border-box;
background: var(--_selection-background-color) !important;
}
.ML__contains-caret.ML__close,
.ML__contains-caret.ML__open,
.ML__contains-caret > .ML__close,
.ML__contains-caret > .ML__open,
.ML__contains-caret .ML__sqrt-sign,
.ML__contains-caret .ML__sqrt-line {
color: var(--_caret-color);
}
.ML__contains-highlight {
box-sizing: border-box;
background: transparent;
}
.ML__focused .ML__contains-highlight {
background: var(--_contains-highlight-background-color);
}
.ML__raw-latex {
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-weight: 400;
font-size: 0.8em;
letter-spacing: -0.05em;
color: var(--_latex-color);
}
.ML__suggestion {
color: var(--neutral-500);
}
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
.ML__virtual-keyboard-toggle:focus {
outline: none;
border-radius: 8px;
border: 2px solid hsl(var(--_hue), 40%, 50%);
}
.ML__virtual-keyboard-toggle.is-pressed,
.ML__virtual-keyboard-toggle.is-active:hover,
.ML__virtual-keyboard-toggle.is-active {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
/* Add an attribute 'data-tooltip' to automatically show a
tooltip over a element on hover.
*/
[data-tooltip] {
position: relative;
}
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
display: block;
z-index: 2;
pointer-events: none;
right: auto;
top: calc(-100% - 4px);
width: max-content;
max-width: 200px;
padding: 8px 8px;
border-radius: 4px;
background: #616161;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 13px;
/* Phone */
opacity: 0;
transform: scale(0.5);
}
@media only screen and (max-width: 767px) {
[data-tooltip]::after {
padding: 8px 16px;
font-size: 16px;
}
}
menu [data-tooltip]::after {
left: 100%;
top: 0%;
}
menu .ML__base {
cursor: default;
}
/** Don't display if we're tracking, i.e. have the pointer down */
.tracking [data-tooltip]:hover::after {
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
visibility: hidden;
}
/** But do display if tracking and inside a menu */
.tracking menu li[data-tooltip]:hover::after,
[data-tooltip]:hover::after {
visibility: visible;
opacity: 1;
transform: scale(1);
transition-property: opacity, scale;
transition-duration: 0.15s;
transition-delay: 1s;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__prompt {
border-radius: 2px;
}
.ML__editablePromptBox {
outline: 1px solid #acacac;
border-radius: 2px;
z-index: -1;
}
.ML__focusedPromptBox {
outline: highlight auto 1px;
}
.ML__lockedPromptBox {
background-color: rgba(142, 142, 141, 0.4);
z-index: -1;
}
.ML__correctPromptBox {
outline: 1px solid var(--_correct-color);
box-shadow: 0 0 5px var(--_correct-color);
}
.ML__incorrectPromptBox {
outline: 1px solid var(--_incorrect-color);
box-shadow: 0 0 5px var(--_incorrect-color);
}
.variant-submenu {
display: flex;
flex-direction: column;
padding: 8px;
}
.variant-submenu [part=menu-item] {
font-size: 2rem;
text-align: center;
margin: 0;
}
.insert-matrix-submenu {
display: grid;
padding: 8px;
align-content: center;
justify-content: center;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.insert-matrix-submenu [part=menu-item] {
font-size: 21px;
border: none;
border-radius: 0;
line-height: 21px;
text-align: center;
padding: 0;
margin: 0;
}
.border-submenu [part=menu-item] {
font-size: 2rem;
line-height: 1.2;
text-align: center;
}
.swatches-submenu {
--_swatch-size: 2rem;
--_columns: 4;
display: flex;
flex-flow: wrap;
padding: 8px;
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
box-sizing: border-box;
}
.menu-swatch {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: fit-content;
height: fit-content;
margin: 2px;
padding: 0;
background: var(--neutral-200);
}
.menu-swatch > .label {
padding: 0;
margin: 0;
line-height: 0;
}
.menu-swatch > .label > span {
display: inline-block;
margin: 6px;
min-width: var(--_swatch-size);
min-height: var(--_swatch-size);
border-radius: 50%;
}
.menu-swatch.active {
background: var(--neutral-100);
scale: 1.4;
}
.menu-swatch.active > .label > span {
border-radius: 2px;
}
.menu-swatch .ui-checkmark,
.menu-swatch .ui-mixedmark {
position: absolute;
margin: 0;
padding: 0;
color: white;
}
.menu-swatch.dark-contrast .ui-checkmark,
.menu-swatch.dark-contrast .ui-mixedmark {
color: #000;
}
`,Jl=`.ML__container {
min-height: auto !important;
--_hue: var(--hue, 212);
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
}
.ML__sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.ML__is-inline {
display: inline-block;
}
.ML__base {
visibility: inherit;
display: inline-block;
position: relative;
cursor: text;
padding: 0;
margin: 0;
box-sizing: content-box;
border: 0;
outline: 0;
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
text-decoration: none;
width: min-content;
}
.ML__strut,
.ML__strut--bottom {
display: inline-block;
min-height: 0.5em;
}
.ML__small-delim {
font-family: KaTeX_Main;
}
/* Text mode */
.ML__text {
font-family: var(--_text-font-family);
white-space: pre;
}
/* Use cmr for 'math upright' */
.ML__cmr {
font-family: KaTeX_Main;
font-style: normal;
}
.ML__mathit {
font-family: KaTeX_Math;
/* The KaTeX_Math font is italic by default, so the font-style below is only
useful when a fallback font is used
*/
font-style: italic;
}
.ML__mathbf {
font-family: KaTeX_Main;
font-weight: bold;
}
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
to match TeX idiosyncratic behavior */
.lcGreek.ML__mathbf {
font-family: KaTeX_Math;
font-weight: normal;
}
.ML__mathbfit {
font-family: KaTeX_Math;
font-weight: bold;
font-style: italic;
}
.ML__ams {
font-family: KaTeX_AMS;
}
/* Blackboard */
.ML__bb {
font-family: KaTeX_AMS;
}
.ML__cal {
font-family: KaTeX_Caligraphic;
}
.ML__frak {
font-family: KaTeX_Fraktur;
}
.ML__tt {
font-family: KaTeX_Typewriter;
}
.ML__script {
font-family: KaTeX_Script;
}
.ML__sans {
font-family: KaTeX_SansSerif;
}
.ML__series_ul {
font-weight: 100;
}
.ML__series_el {
font-weight: 100;
}
.ML__series_l {
font-weight: 200;
}
.ML__series_sl {
font-weight: 300;
}
.ML__series_sb {
font-weight: 500;
}
.ML__bold,
.ML__boldsymbol {
font-weight: 700;
}
.ML__series_eb {
font-weight: 800;
}
.ML__series_ub {
font-weight: 900;
}
.ML__series_uc {
font-stretch: ultra-condensed;
}
.ML__series_ec {
font-stretch: extra-condensed;
}
.ML__series_c {
font-stretch: condensed;
}
.ML__series_sc {
font-stretch: semi-condensed;
}
.ML__series_sx {
font-stretch: semi-expanded;
}
.ML__series_x {
font-stretch: expanded;
}
.ML__series_ex {
font-stretch: extra-expanded;
}
.ML__series_ux {
font-stretch: ultra-expanded;
}
.ML__it {
font-style: italic;
}
.ML__shape_ol {
-webkit-text-stroke: 1px black;
text-stroke: 1px black;
color: transparent;
}
.ML__shape_sc {
font-variant: small-caps;
}
.ML__shape_sl {
font-style: oblique;
}
/* First level emphasis */
.ML__emph {
color: #bc2612;
}
/* Second level emphasis */
.ML__emph .ML__emph {
color: #0c7f99;
}
.ML__highlight {
color: #007cb2;
background: #edd1b0;
}
.ML__center {
text-align: center;
}
.ML__label_padding {
padding: 0 0.5em;
}
.ML__frac-line {
width: 100%;
min-height: 1px;
}
.ML__frac-line:after {
content: '';
display: block;
margin-top: max(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
/* There's a bug since Chrome 62 where
sub-pixel border lines don't draw at some zoom
levels (110%, 90%).
Setting the min-height used to work around it, but that workaround
broke in Chrome 84 or so.
Setting the background (and the min-height) seems to work for now.
*/
background: currentColor;
box-sizing: content-box;
/* Vuetify sets the box-sizing to inherit
causes the fraction line to not draw at all sizes (see #26) */
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt {
display: inline-block;
}
.ML__sqrt-sign {
display: inline-block;
position: relative;
}
.ML__sqrt-line {
display: inline-block;
height: max(1px, 0.04em);
width: 100%;
}
.ML__sqrt-line:before {
content: '';
display: block;
margin-top: min(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
background: currentColor;
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt-line:after {
border-bottom-width: 1px;
content: ' ';
display: block;
margin-top: -0.1em;
}
.ML__sqrt-index {
margin-left: 0.27777778em;
margin-right: -0.55555556em;
}
.ML__delim-size1 {
font-family: KaTeX_Size1;
}
.ML__delim-size2 {
font-family: KaTeX_Size2;
}
.ML__delim-size3 {
font-family: KaTeX_Size3;
}
.ML__delim-size4 {
font-family: KaTeX_Size4;
}
.ML__delim-mult .delim-size1 > span {
font-family: KaTeX_Size1;
}
.ML__delim-mult .delim-size4 > span {
font-family: KaTeX_Size4;
}
.ML__accent-body > span {
font-family: KaTeX_Main;
width: 0;
}
.ML__accent-vec {
position: relative;
left: 0.24em;
}
/** The markup for a LaTeX formula, either in an editable mathfield or
in a static display.
*/
.ML__latex {
display: inline-block;
direction: ltr;
text-align: left;
text-indent: 0;
text-rendering: auto;
font-family: KaTeX_Main, 'Times New Roman', serif;
font-style: normal;
font-size-adjust: none;
font-stretch: normal;
font-variant-caps: normal;
letter-spacing: normal;
line-height: 1.2;
word-wrap: normal;
word-spacing: normal;
white-space: nowrap;
text-shadow: none;
-webkit-user-select: none;
user-select: none;
width: min-content;
}
.ML__latex .style-wrap {
position: relative;
}
.ML__latex .mfrac {
display: inline-block;
}
.ML__latex .left-right {
display: inline-block;
}
.ML__latex .vlist-t {
display: inline-table;
table-layout: fixed;
border-collapse: collapse;
}
.ML__latex .vlist-r {
display: table-row;
}
.ML__latex .vlist {
display: table-cell;
vertical-align: bottom;
position: relative;
}
.ML__latex .vlist > span {
display: block;
height: 0;
position: relative;
}
.ML__latex .vlist > span > span {
display: inline-block;
}
.ML__latex .vlist > span > .pstrut {
overflow: hidden;
width: 0;
}
.ML__latex .vlist-t2 {
margin-right: -2px;
}
.ML__latex .vlist-s {
display: table-cell;
vertical-align: bottom;
font-size: 1px;
width: 2px;
min-width: 2px;
}
.ML__latex .msubsup {
text-align: left;
}
.ML__latex .negativethinspace {
display: inline-block;
margin-left: -0.16667em;
height: 0.71em;
}
.ML__latex .thinspace {
display: inline-block;
width: 0.16667em;
height: 0.71em;
}
.ML__latex .mediumspace {
display: inline-block;
width: 0.22222em;
height: 0.71em;
}
.ML__latex .thickspace {
display: inline-block;
width: 0.27778em;
height: 0.71em;
}
.ML__latex .enspace {
display: inline-block;
width: 0.5em;
height: 0.71em;
}
.ML__latex .quad {
display: inline-block;
width: 1em;
height: 0.71em;
}
.ML__latex .qquad {
display: inline-block;
width: 2em;
height: 0.71em;
}
.ML__latex .llap,
.ML__latex .rlap {
width: 0;
position: relative;
display: inline-block;
}
.ML__latex .llap > .inner,
.ML__latex .rlap > .inner {
position: absolute;
}
.ML__latex .llap > .fix,
.ML__latex .rlap > .fix {
display: inline-block;
}
.ML__latex .llap > .inner {
right: 0;
}
.ML__latex .rlap > .inner {
left: 0;
}
.ML__latex .rule {
display: inline-block;
border: solid 0;
position: relative;
box-sizing: border-box;
}
.ML__latex .overline .overline-line,
.ML__latex .underline .underline-line {
width: 100%;
}
.ML__latex .overline .overline-line:before,
.ML__latex .underline .underline-line:before {
content: '';
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: block;
}
.ML__latex .overline .overline-line:after,
.ML__latex .underline .underline-line:after {
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
content: '';
display: block;
margin-top: -1px;
}
.ML__latex .stretchy {
display: block;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .stretchy:before,
.ML__latex .stretchy:after {
content: '';
}
.ML__latex .stretchy svg {
display: block;
position: absolute;
width: 100%;
height: inherit;
fill: currentColor;
stroke: currentColor;
fill-rule: nonzero;
fill-opacity: 1;
stroke-width: 1;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-miterlimit: 4;
stroke-dasharray: none;
stroke-dashoffset: 0;
stroke-opacity: 1;
}
.ML__latex .slice-1-of-2 {
display: inline-flex;
position: absolute;
left: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-2-of-2 {
display: inline-flex;
position: absolute;
right: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-1-of-3 {
display: inline-flex;
position: absolute;
left: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-2-of-3 {
display: inline-flex;
position: absolute;
left: 25%;
width: 50%;
overflow: hidden;
}
.ML__latex .slice-3-of-3 {
display: inline-flex;
position: absolute;
right: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-1-of-1 {
display: inline-flex;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .nulldelimiter {
display: inline-block;
}
.ML__latex .op-group {
display: inline-block;
}
.ML__latex .op-symbol {
position: relative;
}
.ML__latex .op-symbol.small-op {
font-family: KaTeX_Size1;
}
.ML__latex .op-symbol.large-op {
font-family: KaTeX_Size2;
}
.ML__latex .mtable .vertical-separator {
display: inline-block;
min-width: 1px;
box-sizing: border-box;
}
.ML__latex .mtable .arraycolsep {
display: inline-block;
}
.ML__latex .mtable .col-align-m > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-c > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-l > .vlist-t {
text-align: left;
}
.ML__latex .mtable .col-align-r > .vlist-t {
text-align: right;
}
.ML__error {
display: inline-block;
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
background-color: hsla(341, 100%, 40%, 0.1);
background-repeat: repeat-x;
background-size: 3px 3px;
padding-bottom: 3px;
background-position: 0 100%;
}
.ML__error > .ML__error {
background: transparent;
padding: 0;
}
.ML__placeholder {
color: var(--_placeholder-color);
opacity: var(--_placeholder-opacity);
padding-left: 0.4ex;
padding-right: 0.4ex;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.ML__notation {
position: absolute;
box-sizing: border-box;
line-height: 0;
}
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
For UI elements, see \`[data-ML__tooltip]\`
*/
.ML__tooltip-container {
position: relative;
transform: scale(0);
}
.ML__tooltip-container .ML__tooltip-content {
position: fixed;
display: inline-table;
visibility: hidden;
z-index: 2;
width: max-content;
max-width: 400px;
padding: 12px 12px;
border-radius: 8px;
background: #616161;
--_selection-color: #fff;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
}
.ML__tooltip-container .ML__tooltip-content .ML__text {
white-space: normal;
}
.ML__tooltip-container .ML__tooltip-content .ML__base {
display: contents;
}
.ML__tooltip-container:hover .ML__tooltip-content {
visibility: visible;
opacity: 1;
font-size: 0.75em;
transform: scale(1) translate(0, 3em);
}
`,pd=`#mathlive-environment-popover.is-visible {
visibility: visible;
}
#mathlive-environment-popover {
--_environment-panel-height: var(--environment-panel-height, 70px);
--_accent-color: var(--accent-color, #aaa);
--_background: var(--environment-panel-background, #fff);
--_button-background: var(--environment-panel-button-background, white);
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
--_button-text: var(--environment-panel-button-text, #e3e4e8);
position: absolute;
width: calc(var(--_environment-panel-height) * 2);
height: var(--_environment-panel-height);
border-radius: 4px;
border: 1.5px solid var(--_accent-color);
background-color: var(--_background);
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
pointer-events: all;
visibility: hidden;
}
#mathlive-environment-popover .MLEP__array-buttons {
height: calc(var(--_environment-panel-height) * 5/4);
width: calc(var(--_environment-panel-height) * 5/4);
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
}
#mathlive-environment-popover .MLEP__array-buttons .font {
fill: white;
}
#mathlive-environment-popover .MLEP__array-buttons circle {
fill: #7f7f7f;
transition: fill 300ms;
}
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
fill-opacity: 1;
fill: var(--_background);
stroke: var(--_accent-color);
stroke-width: 3px;
}
#mathlive-environment-popover .MLEP__array-buttons line {
stroke: var(--_accent-color);
stroke-opacity: 0;
stroke-width: 40;
pointer-events: none;
transition: stroke-opacity 300ms;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
fill: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
stroke-opacity: 1;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
height: 100%;
width: 50%;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
width: var(--_environment-panel-height);
height: var(--_environment-panel-height);
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
pointer-events: all;
margin-top: 2px;
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
height: calc(var(--_environment-panel-height) / 3 - 2px);
border-radius: calc(var(--_environment-panel-height) / 25);
background-color: var(--_button-background);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
background-color: var(--_button-background-hover);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
stroke: var(--_button-text);
stroke-width: 2;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
fill-opacity: 0;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
pointer-events: none;
background-color: var(--_button-background-active);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
stroke: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
fill: var(--_accent-color);
}
`,md=`/* The element that display info while in latex mode */
#mathlive-suggestion-popover {
background-color: rgba(97, 97, 97);
color: #fff;
text-align: center;
border-radius: 8px;
position: fixed;
z-index: 1;
display: none;
flex-direction: column;
justify-content: center;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#mathlive-suggestion-popover.top-tip::after {
content: '';
position: absolute;
top: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.bottom-tip::after {
content: '';
position: absolute;
bottom: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.is-animated {
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
}
#mathlive-suggestion-popover.is-visible {
display: flex;
}
@keyframes ML__fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* The wrapper class for the entire content of the popover panel */
#mathlive-suggestion-popover ul {
display: flex;
flex-flow: column;
list-style: none;
margin: 0;
padding: 0;
align-items: flex-start;
max-height: 400px;
overflow-y: auto;
}
#mathlive-suggestion-popover li {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 8px;
padding: 8px;
width: calc(100% - 16px - 16px);
column-gap: 1em;
border-radius: 8px;
cursor: pointer;
/* Since the content can be clicked on, provide feedback on hover */
}
#mathlive-suggestion-popover li a {
color: #5ea6fd;
padding-top: 0.3em;
margin-top: 0.4em;
display: block;
}
#mathlive-suggestion-popover li a:hover {
color: #5ea6fd;
text-decoration: underline;
}
#mathlive-suggestion-popover li:hover,
#mathlive-suggestion-popover li.is-pressed,
#mathlive-suggestion-popover li.is-active {
background: rgba(255, 255, 255, 0.1);
}
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
.ML__popover__command {
font-size: 1.6rem;
font-family: KaTeX_Main;
}
.ML__popover__current {
background: #5ea6fd;
color: #fff;
}
.ML__popover__latex {
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
align-self: center;
}
/* The keyboard shortcuts for a symbol as displayed in the popover */
.ML__popover__keybinding {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 0.8em;
opacity: 0.7;
}
/* Style for the character that joins the modifiers of a keyboard shortcut
(usually a "+" sign)*/
.ML__shortcut-join {
opacity: 0.5;
}
`,cc=`/* The element that displays the keys as the user type them */
#mathlive-keystroke-caption-panel {
visibility: hidden;
/*min-width: 160px;*/
/*background-color: rgba(97, 97, 200, .95);*/
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
border-color: var(--secondary-border, hsl(0, 0%, 91%));
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
text-align: center;
border-radius: 6px;
padding: 16px;
position: absolute;
z-index: 1;
display: flex;
flex-direction: row-reverse;
justify-content: center;
--keystroke: white;
--on-keystroke: #555;
--keystroke-border: #f7f7f7;
}
@media (prefers-color-scheme: dark) {
body:not([theme='light']) #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
}
body[theme='dark'] #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
#mathlive-keystroke-caption-panel > span {
min-width: 14px;
/*height: 8px;*/
margin: 0 8px 0 0;
padding: 4px;
background-color: var(--keystroke);
color: var(--on-keystroke);
fill: currentColor;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
border-radius: 6px;
border: 2px solid var(--keystroke-border);
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
}
`,vd=`.ML__keyboard {
--_keyboard-height: 0;
--_keyboard-zindex: var(--keyboard-zindex, 105);
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
--_padding-top: var(--keyboard-padding-top, 5px);
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_keycap-height: var(--keycap-height, 60px);
/* Keycap width (incl. margin) */
--_keycap-max-width: var(--keycap-max-width, 100px);
--_keycap-gap: var(--keycap-gap, 8px);
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
--_variant-keycap-length: var(--variant-keycap-length, 70px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
}
.is-math-mode .MLK__rows .if-text-mode,
.is-text-mode .MLK__rows .if-math-mode {
display: none;
}
.if-can-undo,
.if-can-redo,
.if-can-copy,
.if-can-cut,
.if-can-paste {
opacity: 0.4;
pointer-events: none;
}
.can-undo .if-can-undo,
.can-redo .if-can-redo,
.can-copy .if-can-copy,
.can-cut .if-can-cut,
.can-paste .if-can-paste {
opacity: 1;
pointer-events: all;
}
body > .ML__keyboard {
position: fixed;
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
}
body > .ML__keyboard.is-visible > .MLK__backdrop {
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
border-top: 1px solid var(--_border);
}
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
box-shadow: none;
border: none;
}
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__keyboard {
position: relative;
overflow: hidden;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: var(--_keyboard-zindex);
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
opacity: 1;
transform: none;
pointer-events: none;
}
.ML__keyboard :where(div) {
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
transform: none;
}
.MLK__backdrop {
position: absolute;
bottom: calc(-1 * var(--_keyboard-height));
width: 100%;
height: var(--_keyboard-height);
box-sizing: border-box;
padding-top: var(--_padding-top);
padding-bottom: var(--_padding-bottom);
padding-left: var(--_padding-horizontal);
padding-right: var(--_padding-horizontal);
opacity: 0;
visibility: hidden;
transform: translate(0, 0);
background: var(--_background);
}
.backdrop-is-transparent .MLK__backdrop {
background: transparent;
}
/* If a custom layout has a custom container/backdrop
(backdrop-is-transparent), make sure to let pointer event go through. */
.backdrop-is-transparent .MLK__plate {
background: transparent;
pointer-events: none;
}
/* If a custom layout has a custom container/backdrop, make sure to
allow pointer events on it. */
.backdrop-is-transparent .MLK__layer > div > div {
pointer-events: all;
}
.ML__keyboard.is-visible > .MLK__backdrop {
transform: translate(0, calc(-1 * var(--_keyboard-height)));
opacity: 1;
visibility: visible;
}
.caps-lock-indicator {
display: none;
width: 8px;
height: 8px;
background: #0cbc0c;
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
border-radius: 8px;
right: 8px;
top: 8px;
position: absolute;
}
.ML__keyboard.is-caps-lock .caps-lock-indicator {
display: block;
}
.ML__keyboard.is-caps-lock .shift {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
}
.MLK__plate {
position: absolute;
top: var(--_padding-top);
left: var(--_padding-horizontal);
width: calc(100% - 2 * var(--_padding-horizontal));
margin: 0;
padding: 0;
box-sizing: border-box;
container-type: inline-size;
touch-action: none;
-webkit-user-select: none;
user-select: none;
pointer-events: all;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
/* Size of toolbar labels */
font-weight: 400;
text-shadow: none;
}
.ML__box-placeholder {
color: var(--_box-placeholder-color);
}
.MLK__tex {
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__tex-math {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
font-style: italic;
}
.MLK__layer {
display: none;
outline: none;
}
.MLK__layer.is-visible {
display: flex;
flex-flow: column;
}
/* Keyboard layouts are made or rows of keys... */
.MLK__rows {
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
display: flex;
flex-flow: column;
align-items: center;
border-collapse: separate;
clear: both;
border: 0;
margin: 0;
margin-bottom: var(--_keycap-gap);
gap: var(--_keycap-gap);
/* If the styling include, e.g., some shadows, they will be
cut off by the overflow. In that case, set the padding to
compensate. */
padding-left: var(--_row-padding-left);
padding-right: var(--_row-padding-right);
overflow: visible;
touch-action: none;
}
.MLK__rows > .MLK__row {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
gap: var(--_keycap-gap);
margin: 0;
padding: 0;
/* For the alignment of the text on some modifiers (e.g. shift) */
/* Extra spacing between two adjacent keys */
}
.MLK__rows > .MLK__row .tex {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .tex-math {
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .big-op {
font-size: calc(1.25 * var(--_keycap-font-size));
}
.MLK__rows > .MLK__row .small {
font-size: var(--_keycap-small-font-size);
}
.MLK__rows > .MLK__row .bottom {
justify-content: flex-end;
}
.MLK__rows > .MLK__row .left {
align-items: flex-start;
padding-left: 12px;
}
.MLK__rows > .MLK__row .right {
align-items: flex-end;
padding-right: 12px;
}
.MLK__rows > .MLK__row .w0 {
width: 0;
}
.MLK__rows > .MLK__row .w5 {
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w15 {
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w20 {
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w40 {
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w50 {
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .MLK__keycap.w50 {
font-size: 80%;
padding-top: 10px;
font-weight: 100;
}
.MLK__rows > .MLK__row .separator {
background: transparent;
border: none;
pointer-events: none;
}
.MLK__rows > .MLK__row .horizontal-rule {
height: 6px;
margin-top: 3px;
margin-bottom: 0;
width: 100%;
border-radius: 0;
border-top: var(--_horizontal-rule);
}
.MLK__rows > .MLK__row .ghost {
background: var(--_toolbar-background);
border: none;
color: var(--_toolbar-text);
}
.MLK__rows > .MLK__row .ghost:hover {
background: var(--_toolbar-background-hover);
}
.MLK__rows > .MLK__row .bigfnbutton {
font-size: var(--_keycap-extra-small-font-size);
}
.MLK__rows > .MLK__row .shift,
.MLK__rows > .MLK__row .action {
color: var(--_keycap-secondary-text);
background: var(--_keycap-secondary-background);
border-color: var(--_keycap-secondary-border);
border-bottom-color: var(--_keycap-secondary-border-bottom);
line-height: 0.8;
font-size: min(1rem, var(--_keycap-small-font-size));
font-weight: 600;
padding: 8px 12px 8px 12px;
}
.MLK__rows > .MLK__row .shift:hover,
.MLK__rows > .MLK__row .action:hover {
background: var(--_keycap-secondary-background-hover);
}
.MLK__rows > .MLK__row .action.primary {
background: var(--_keycap-primary-background);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .action.primary:hover {
background: var(--_keycap-primary-background-hover);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .shift.selected,
.MLK__rows > .MLK__row .action.selected {
color: var(--_toolbar-text-active);
}
.MLK__rows > .MLK__row .shift.selected.is-pressed,
.MLK__rows > .MLK__row .action.selected.is-pressed,
.MLK__rows > .MLK__row .shift.selected.is-active,
.MLK__rows > .MLK__row .action.selected.is-active {
color: white;
}
.MLK__rows > .MLK__row .warning {
background: #cd0030;
color: white;
}
.MLK__rows > .MLK__row .warning svg.svg-glyph {
width: 24px;
height: 24px;
min-height: 24px;
}
/** A regular keycap
* Use the :where() pseudo-class to give it a very low specifity,
* so that it can be overriden by custom style.
*/
:where(.MLK__rows > .MLK__row div) {
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-evenly;
width: calc(var(--_keycap-width) - var(--_keycap-gap));
height: var(--_keycap-height);
box-sizing: border-box;
padding: 0;
vertical-align: top;
text-align: center;
float: left;
color: var(--_keycap-text);
fill: currentColor;
font-size: var(--_keycap-font-size);
background: var(--_keycap-background);
border: 1px solid var(--_keycap-border);
border-bottom-color: var(--_keycap-border-bottom);
border-radius: 6px;
cursor: pointer;
touch-action: none;
/* Keys with a variants panel */
position: relative;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
:where(.MLK__rows > .MLK__row div):hover {
overflow: visible;
background: var(--_keycap-background-hover);
}
:where(.MLK__rows > .MLK__row div) .ML__latex {
pointer-events: none;
touch-action: none;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
margin: 8px 0;
width: 20px;
height: 20px;
min-height: 20px;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
margin: 8px 0;
width: 24px;
height: 24px;
min-height: 24px;
}
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
font-size: 25px;
}
:where(.MLK__rows > .MLK__row div).is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
z-index: calc(var(--_keyboard-zindex) - 5);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
:where(.MLK__rows > .MLK__row div).action.is-active aside,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
display: none;
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
display: none;
}
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
}
:where(.MLK__rows > .MLK__row div).shift.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div) small {
color: var(--_keycap-secondary-text);
}
:where(.MLK__rows > .MLK__row div) aside {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
line-height: 10px;
color: var(--_keycap-secondary-text);
}
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
Note there are a different set of tooltip rules for the keyboard toggle
(it's in a different CSS tree) */
.ML__keyboard [data-tooltip] {
position: relative;
}
.ML__keyboard [data-tooltip]::after {
position: absolute;
display: inline-table;
content: attr(data-tooltip);
top: inherit;
bottom: 100%;
width: max-content;
max-width: 200px;
padding: 8px 8px;
background: #616161;
color: #fff;
text-align: center;
z-index: 2;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
border-radius: 2px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400;
font-size: 12px;
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
opacity: 0;
transform: scale(0.5);
}
.ML__keyboard [data-tooltip]:hover {
position: relative;
}
.ML__keyboard [data-tooltip]:hover::after {
opacity: 1;
transform: scale(1);
}
.MLK__toolbar {
align-self: center;
display: flex;
flex-flow: row;
justify-content: space-between;
width: 100%;
max-width: 996px;
min-height: 32px;
/* Icons for undo/redo, etc. */
}
.MLK__toolbar svg {
height: 20px;
width: 20px;
}
.MLK__toolbar > .left {
position: relative;
display: flex;
justify-content: flex-start;
flex-flow: row;
}
.MLK__toolbar > .right {
display: flex;
justify-content: flex-end;
flex-flow: row;
}
.MLK__toolbar > div > div {
/* "button" in the toolbar */
display: flex;
align-items: center;
justify-content: center;
color: var(--_toolbar-text);
fill: currentColor;
background: var(--_toolbar-background);
font-size: var(--_toolbar-font-size);
padding: 4px 15px;
cursor: pointer;
width: max-content;
min-width: 42px;
min-height: 34px;
border: none;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
padding-top: 8px;
margin-top: 0;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
border-radius: 8px;
box-shadow: none;
border-bottom: 2px solid transparent;
}
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
background: var(--_toolbar-background-hover);
}
.MLK__toolbar > div > div.disabled svg,
.MLK__toolbar > div > div.disabled:hover svg,
.MLK__toolbar > div > div.disabled.is-pressed svg {
color: var(--_toolbar-text);
opacity: 0.2;
}
.MLK__toolbar > div > div:hover,
.MLK__toolbar > div > div:active,
.MLK__toolbar > div > div.is-pressed,
.MLK__toolbar > div > div.is-active {
color: var(--_toolbar-text-active);
}
.MLK__toolbar > div > div.selected {
color: var(--_toolbar-text-active);
background: var(--_toolbar-background-selected);
border-radius: 0;
border-bottom-color: var(--_toolbar-text-active);
padding-bottom: 4px;
margin-bottom: 8px;
}
/* This is the element that displays variants on press+hold */
.MLK__variant-panel {
visibility: hidden;
position: fixed;
display: flex;
flex-flow: row wrap-reverse;
justify-content: center;
align-content: center;
margin: 0;
padding: 0;
bottom: auto;
top: 0;
box-sizing: content-box;
transform: none;
z-index: calc(var(--_keyboard-zindex) + 1);
touch-action: none;
max-width: 350px;
background: var(--_variant-panel-background);
text-align: center;
border-radius: 6px;
padding: 6px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: none;
}
.MLK__variant-panel.is-visible {
visibility: visible;
}
.MLK__variant-panel.compact {
--_variant-keycap-length: var(--variant-keycap-length, 50px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
}
.MLK__variant-panel .item {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--_variant-keycap-font-size);
height: var(--_variant-keycap-length);
width: var(--_variant-keycap-length);
margin: 0;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
pointer-events: all;
cursor: pointer;
color: var(--_variant-keycap-text);
fill: currentColor;
}
@media (max-height: 412px) {
.MLK__variant-panel .item {
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
.MLK__variant-panel .item .ML__latex {
pointer-events: none;
}
.MLK__variant-panel .item.is-active {
background: var(--_variant-keycap-background-active);
color: var(--_variant-keycap-text-active);
}
.MLK__variant-panel .item.is-pressed {
background: var(--_variant-keycap-background-pressed);
color: var(--_variant-keycap-text-pressed);
}
.MLK__variant-panel .item.small {
font-size: var(--_keycap-small-font-size);
}
.MLK__variant-panel .item.swatch-button {
box-sizing: border-box;
background: #fbfbfb;
}
.MLK__variant-panel .item.swatch-button > span {
display: inline-block;
margin: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
border-radius: 50%;
}
.MLK__variant-panel .item.swatch-button:hover {
background: #f0f0f0;
}
.MLK__variant-panel .item.swatch-button:hover > span {
border-radius: 2px;
}
.MLK__variant-panel .item.box > div,
.MLK__variant-panel .item.box > span {
border: 1px dashed rgba(0, 0, 0, 0.24);
}
.MLK__variant-panel .item .warning {
min-height: 60px;
min-width: 60px;
background: #cd0030;
color: white;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
}
.MLK__variant-panel .item .warning.is-pressed,
.MLK__variant-panel .item .warning.is-active {
background: red;
}
.MLK__variant-panel .item .warning svg.svg-glyph {
width: 50px;
height: 50px;
}
.MLK__variant-panel .item aside {
font-size: var(--_variant-keycap-aside-font-size);
line-height: 12px;
opacity: 0.78;
padding-top: 2px;
}
.MLK__keycap {
position: relative;
}
.MLK__shift {
display: block;
position: absolute;
right: 4px;
top: 4px;
font-size: var(--_keycap-shift-font-size);
color: var(--_keycap-shift-color);
}
.hide-shift .MLK__shift {
display: none;
}
@media (max-width: 414px) {
.MLK__variant-panel {
max-width: 350px;
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
/* @xs breakpoint: iPhone 5 */
@container (max-width: 414px) {
.MLK__rows {
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
--_keycap-height: max(var(--_keycap-height), 42px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
font-size: 100%;
margin-left: 2px;
margin-right: 2px;
}
.MLK__rows .shift,
.MLK__rows .action {
font-size: 65%;
}
.MLK__rows .warning svg.svg-glyph {
width: 14px;
height: 14px;
min-height: 14px;
}
}
@container (max-width: 744px) {
.MLK__rows {
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
--_keycap-height: max(var(--keycap-height, 52px), 52px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
padding-left: 0;
padding-right: 0;
}
.MLK__tooltip::after {
padding: 8px 16px;
font-size: 16px;
}
.MLK__rows > .MLK__row > div.fnbutton {
font-size: 16px;
}
.MLK__rows > .MLK__row > div.bigfnbutton {
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
}
.MLK__rows > .MLK__row > div.small {
font-size: 13px;
}
.MLK__rows > .MLK__row > div > aside {
display: none;
}
.MLK__shift {
display: none;
}
}
/* Medium breakpoint: larger phones */
@container (max-width: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@media (max-height: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@container (max-width: 1444px) {
.MLK__rows .if-wide {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
}
/* Same as the media query, but with a class */
[theme='dark'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
[theme='light'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--_keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
}
`,Cc=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,dh=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,Ss;function Zc(a){let y="";switch(a){case"mathfield-element":y=`
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
:host([hidden]) { display: none; }
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
:host(:focus), :host(:focus-within) {
outline: Highlight auto 1px; /* For Firefox */
outline: -webkit-focus-ring-color auto 1px;
}
:host([readonly]:focus), :host([readonly]:focus-within),
:host([read-only]:focus), :host([read-only]:focus-within) {
outline: none;
}
@media (hover: none) and (pointer: coarse) {
:host(:not(:focus)) :first-child { pointer-events: none !important; }
}`;break;case"core":y=Jl;break;case"mathfield":y=nc;break;case"environment-popover":y=pd;break;case"suggestion-popover":y=md;break;case"keystroke-caption":y=cc;break;case"virtual-keyboard":y=vd;break;case"ui":y=Cc;break;case"menu":y=dh;break;default:debugger}return y}function rd(a){return Ss||(Ss={}),Ss[a]||(Ss[a]=new CSSStyleSheet,Ss[a].replaceSync(Zc(a))),Ss[a]}var gc;function $u(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(Zc(a))),window.document.head.appendChild(b);return}if(gc||(gc={}),((y=gc[a])!=null?y:0)!==0)gc[a]+=1;else{const b=rd(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],gc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&gc!=null&&gc[a]&&(gc[a]-=1,gc[a]<=0)){const y=Ss[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends qr{constructor(y){var b;super(fe(Ee({},y),{type:"accent",body:(b=y.body)!=null?b:void 0})),y.accentChar?this.accent=y.accentChar:this.svgAccent=y==null?void 0:y.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(y){return new kp(y)}toJson(){return fe(Ee({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Oo({parent:y,mathstyle:"cramp"},this.style),ne=(b=qr.createBox(E,this.body))!=null?b:new Pi("\u25A2",{style:this.style});let ae=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ae=ne.skew);let se=Math.min(ne.height,To),Se;if(this.svgAccent)Se=xu(this.svgAccent),se=E.metrics.bigOpSpacing1-se;else if(this.accent){const Te=new Pi(this.accent,{fontFamily:"Main-Regular"});Te.italic=0;const Je=this.accent===8407?" ML__accent-vec":"";Se=new Pi(new Pi(Te),{classes:"ML__accent-body"+Je})}Se=new Sl({shift:0,children:[{box:new Pi(ne)},-se,{box:Se,marginLeft:ne.left+2*ae,classes:["ML__center"]}]});const Pe=new Pi(Se,{type:"lift"});return this.caret&&(Pe.caret=this.caret),this.bind(E,Pe.wrap(E)),this.attachSupsub(E,{base:Pe})}},ie={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},re=Object.fromEntries(Object.entries(ie).map(([a,y])=>[y,a]));function oe(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function be(a,y,b,E){var ne;const se=new Pi(oe(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ne=E.classes)!=null?ne:"")}).wrap(y);return b&&se.setTop((1-y.scalingFactor)*Za),se}function Ne(a,y,b,E,ne){var ae,se;const Se=new Oo({parent:E,mathstyle:"textstyle"},ne==null?void 0:ne.style),Pe=new Pi(oe(a),{fontFamily:`Size${y}-Regular`,isSelected:ne.isSelected,classes:((ae=ne.classes)!=null?ae:"")+` ML__delim-size${y}`,type:(se=ne.type)!=null?se:"ignore"}).wrap(Se);return b&&Pe.setTop((1-Se.scalingFactor)*Za),Pe}function et(a,y,b,E,ne){var ae;let se,Se,Pe,Te;se=Pe=Te=oe(a),Se=null;let Je="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?Pe=se=Te=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?Pe=se=Te=8741:a==="\\uparrow"?Pe=Te=9168:a==="\\Uparrow"?Pe=Te=8214:a==="\\downarrow"?se=Pe=9168:a==="\\Downarrow"?se=Pe=8214:a==="\\updownarrow"?(se=8593,Pe=9168,Te=8595):a==="\\Updownarrow"?(se=8657,Pe=8214,Te=8659):a==="["||a==="\\lbrack"?(se=9121,Pe=9122,Te=9123,Je="Size4-Regular"):a==="]"||a==="\\rbrack"?(se=9124,Pe=9125,Te=9126,Je="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(Pe=se=9122,Te=9123,Je="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(se=9121,Pe=Te=9122,Je="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(Pe=se=9125,Te=9126,Je="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(se=9124,Pe=Te=9125,Je="Size4-Regular"):a==="("||a==="\\lparen"?(se=9115,Pe=9116,Te=9117,Je="Size4-Regular"):a===")"||a==="\\rparen"?(se=9118,Pe=9119,Te=9120,Je="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(se=9127,Se=9128,Te=9129,Pe=9130,Je="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(se=9131,Se=9132,Te=9133,Pe=9130,Je="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(se=9127,Te=9129,Pe=9130,Je="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(se=9131,Te=9133,Pe=9130,Je="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(se=9127,Te=9133,Pe=9130,Je="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(se=9131,Te=9129,Pe=9130,Je="Size4-Regular"):a==="\\surd"?(se=57345,Te=9143,Pe=57344,Je="Size4-Regular"):a==="\\ulcorner"?(se=9484,Pe=Te=32):a==="\\urcorner"?(se=9488,Pe=Te=32):a==="\\llcorner"?(Te=9492,Pe=se=32):a==="\\lrcorner"&&(se=9496,Pe=se=32);const Et=Ri(se,Je),Zt=Et.height+Et.depth,bn=Ri(Pe,Je),Ln=bn.height+bn.depth,jr=Ri(Te,Je),aa=jr.height+jr.depth;let Hr=0,Di=1;if(Se!==null){const Pu=Ri(Se,Je);Hr=Pu.height+Pu.depth,Di=2}const ua=Zt+aa+Hr,_i=Math.max(0,Math.ceil((y-ua)/(Di*Ln))),yo=ua+_i*Di*Ln;let Zo=Za;b&&(Zo=Zo*E.scalingFactor);const Ro=yo/2-Zo,$l=.008,Es=[];Es.push({box:new Pi(Te,{fontFamily:Je})}),Es.push(-$l);const xa=new Pi(Pe,{fontFamily:Je});if(Se===null)for(let Pu=0;Pu<_i;Pu++)Es.push({box:xa});else{for(let Pu=0;Pu<_i;Pu++)Es.push({box:xa});Es.push(-$l),Es.push({box:new Pi(Se,{fontFamily:Je})}),Es.push(-$l);for(let Pu=0;Pu<_i;Pu++)Es.push({box:xa})}Es.push(-$l),Es.push({box:new Pi(se,{fontFamily:Je})});let ac="";Je==="Size1-Regular"?ac=" delim-size1":Je==="Size4-Regular"&&(ac=" delim-size4");const Pc=new Sl({bottom:Ro,children:Es},{classes:ac});return new Pi(Pc,fe(Ee({},ne!=null?ne:{}),{classes:((ae=ne==null?void 0:ne.classes)!=null?ae:"")+" ML__delim-mult"}))}var ot=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),bt=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),yn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Rn=[0,1.2,1.8,2.4,3];function Dr(a,y,b,E){return a===void 0||a==="."?po(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),ot.has(a)||yn.has(a)?Ne(a,y,!1,b,E):bt.has(a)?et(a,Rn[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Cr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],vi=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],ji=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function ma(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Wa(a,y,b,E){const ne={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let ae=ne;ae<b.length&&b[ae].type!=="stack";ae++){const se=Ri(a,ma(b[ae]));if(se.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let Se=se.height+se.depth;if(b[ae].type==="small"&&(b[ae].mathstyle==="scriptscriptstyle"?Se*=Math.max(Da[Math.max(1,E.size-2)],E.minFontScale):b[ae].mathstyle==="scriptstyle"&&(Se*=Math.max(Da[Math.max(1,E.size-1)],E.minFontScale))),Se>y)return b[ae]}return b[b.length-1]}function fo(a,y,b,E,ne,ae){if(!y||y.length===0||y===".")return po(ne);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let se;yn.has(y)?se=Cr:ot.has(y)?se=ji:se=vi;const Se=Wa(oe(y),b,se,ne),Pe=new Oo({parent:ne,mathstyle:Se.mathstyle},ae==null?void 0:ae.style);return Se.type==="small"?be(y,Pe,E,fe(Ee({},ae),{type:a})):Se.type==="large"?Ne(y,Se.size,E,Pe,fe(Ee({},ae),{type:a})):(console.assert(Se.type==="stack"),et(y,b,E,Pe,fe(Ee({},ae),{type:a})))}function Fa(a,y,b,E,ne,ae){if(y===".")return po(ne,ae==null?void 0:ae.classes);const se=Za*ne.scalingFactor,Se=901,Pe=5/qa,Te=Math.max(b-se,E+se),Je=Math.max(Te/500*Se,2*Te-Pe);return fo(a,y,Je,!0,ne,ae)}function po(a,y){const b=new Pi(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Oo({parent:a,mathstyle:"textstyle"}))}var qo=class Bp extends qr{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Bp(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},nl=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Kl=["cases","dcases","rcases"],ws=["align","align*","aligned","gather","gathered","split"],Cu=["array","subequations","eqnarray"];function Vs(a){return Cu.concat(ws).concat(Kl).concat(nl).includes(a)}function zu(a){return nl.includes(a)}function Ku(a){return Kl.includes(a)}function pu(a){return ws.includes(a)}function Hu(a,y,b){let E=0;for(const Te of b)"align"in Te&&(E+=1);let ne=0;const ae=[];for(const Te of y){let Je=0;for(ne=Math.max(ne,Math.min(Te.length,E));Je<Te.length;){const Et=[],Zt=Math.min(Te.length,Je+E);for(;Je<Zt;){const bn=Te[Je];bn.length===0?Et.push([new qr({type:"first",mode:a.mode})]):bn[0].type!=="first"?Et.push([new qr({type:"first",mode:a.mode}),...bn]):(console.assert(!bn.slice(1).some(Ln=>Ln.type==="first")),Et.push(bn)),Je+=1}ae.push(Et)}}ae.length>0&&ae[ae.length-1].length===1&&ae[ae.length-1][0].length===1&&ae[ae.length-1][0][0].type==="first"&&ae.pop();const se=[];for(const Te of ae){if(Te.length!==ne)for(let Je=Te.length;Je<ne;Je++)Te.push([new qr({type:"first",mode:a.mode}),new qo]);se.push(Te)}let Se=0,Pe=0;for(const Te of se){Pe=0;for(const Je of Te){for(const Et of Je)Et.parent=a,Et.parentBranch=[Se,Pe];Pe+=1}Se+=1}return a.isDirty=!0,se}var Pl=class Dp extends qr{constructor(y,b,E,ne={}){var ae;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ne.mathstyleName&&(this.mathstyleName=ne.mathstyleName),ne.columns&&(ne.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ne.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Hu(this,b,this.colFormat),ne.leftDelim&&(this.leftDelim=ne.leftDelim),ne.rightDelim&&(this.rightDelim=ne.rightDelim),ne.arraycolsep!==void 0&&(this.arraycolsep=ne.arraycolsep),this.colSeparationType=ne.colSeparationType,ne.arraystretch!==void 0&&(this.arraystretch=ne.arraystretch),this.minColumns=(ae=ne.minColumns)!=null?ae:1}static fromJson(y){return new Dp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=fe(Ee({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ne=>ne.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(ru(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return ru(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(ts(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ne of E)y.push(...ne.children),y.push(ne);return[...y,...super.children]}render(y){var b,E,ne,ae,se,Se;const Pe=new Oo({parent:y,mathstyle:this.mathstyleName},this.style),Te=Pe.getRegisterAsEm("arrayrulewidth"),Je=Pe.getRegisterAsEm("arraycolsep"),Et=Pe.getRegisterAsEm("doublerulesep"),Zt=(E=(b=this.arraystretch)!=null?b:Pe.getRegisterAsNumber("arraystretch"))!=null?E:1;let bn=typeof this.arraycolsep=="number"?this.arraycolsep:Je;this.colSeparationType==="small"&&(bn=.2778*(new Oo({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const Ln=Zt*Ja,jr=.7*Ln,aa=.3*Ln;let Hr=0;const Di=[];let ua=0;const _i=this.array.length;for(let Ms=0;Ms<_i;++Ms){const du=this.array[Ms];ua=Math.max(ua,du.length);const Iu=new Oo({parent:Pe,mathstyle:this.mathstyleName},this.style);let Ic=jr/Iu.scalingFactor,Fc=aa/Iu.scalingFactor;const Oc={cells:[],height:0,depth:0,pos:0};for(const xc of du){const e0=(ne=qr.createBox(Iu,xc,{type:"ignore"}))!=null?ne:new Pi(null,{type:"ignore"});Fc=Math.max(Fc,e0.depth),Ic=Math.max(Ic,e0.height),Oc.cells.push(e0)}let Nc=(ae=vs(this.rowGaps[Ms]))!=null?ae:0;Nc>0&&(Nc+=aa,Fc=Math.max(Fc,Nc),Nc=0),Ms<_i-1&&!zu(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Fc+=Pe.getRegisterAsEm("jot")),Oc.height=Ic,Oc.depth=Fc,Hr+=Ic,Oc.pos=Hr,Hr+=Fc+Nc,Di.push(Oc)}const yo=Hr/2+Za,Zo=[];for(let Ms=0;Ms<ua;Ms++){const du=[];for(const Iu of Di){const Ic=Iu.cells[Ms];Ic.depth=Iu.depth,Ic.height=Iu.height,du.push({box:Ic,shift:Iu.pos-yo})}du.length>0&&Zo.push(new Sl({individualShift:du}))}const Ro=[];let $l=!1,Es=!1,xa=0,ac=!this.leftDelim;const{colFormat:Pc}=this;for(const Ms of Pc){if("align"in Ms&&xa>=Zo.length)break;if("align"in Ms)$l?Ro.push(Gs(2*bn)):(Es||ac)&&Ro.push(Gs(bn)),Ro.push(new Pi(Zo[xa],{classes:"col-align-"+Ms.align})),xa++,$l=!0,Es=!1,ac=!1;else if("gap"in Ms){if(typeof Ms.gap=="number")Ro.push(Gs(Ms.gap));else{const du=ou(y,Di,yo,Ms.gap);du&&Ro.push(du)}$l=!1,Es=!1,ac=!1}else if("separator"in Ms){const du=new Pi(null,{classes:"vertical-separator"});du.height=Hr,du.setStyle("height",Hr,"em"),du.setStyle("border-right",`${Te}em ${Ms.separator} currentColor`),du.setStyle("vertical-align",-(Hr-yo),"em");let Iu=0;Es?Iu=Et-Te:$l&&(Iu=bn-Te),du.left=Iu,Ro.push(du),$l=!1,Es=!0,ac=!1}}$l&&!this.rightDelim&&Ro.push(Gs(bn));const pc=new Pi(Ro,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(pc.caret=this.caret),this.bind(y,pc);const Pu=pc.height,oc=pc.depth,Yu=this.bind(y,new Pi([this.bind(y,Fa("open",(se=this.leftDelim)!=null?se:".",Pu,oc,Pe,{isSelected:this.isSelected})),pc,this.bind(y,Fa("close",(Se=this.rightDelim)!=null?Se:".",Pu,oc,Pe,{isSelected:this.isSelected}))],{type:"ord"}));return Yu?(Yu.setStyle("display","inline-block"),this.caret&&(Yu.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:Yu}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ne of this.colFormat)"align"in ne&&typeof ne.align=="string"?E.push(ne.align):"separator"in ne&&ne.separator==="solid"?E.push("|"):"separator"in ne&&ne.separator==="dashed"&&E.push(":");E.push("}")}for(let ne=0;ne<this.array.length;ne++){for(let ae=0;ae<this.array[ne].length;ae++)ae>0&&E.push(" & "),E.push(qr.serialize(this.array[ne][ae],y));if(ne<this.array.length-1){const ae=this.rowGaps[ne];ae!=null&&ae.dimension?E.push(`\\\\[${ae.dimension} ${(b=ae.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),ol(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const ae of this.array[y][b])ae.parent=void 0,ae.parentBranch=void 0;let ne=E;(E.length===0||E[0].type!=="first")&&(ne=[new qr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ne;for(const ae of ne)ae.parent=this,ae.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(au(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[E][ne];if(ae)for(const se of ae)se.parentBranch=[E,ne]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(au(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[E][ne];if(ae)for(const se of ae)se.parentBranch=[E,ne]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ne of E)if(ne)for(const ae of ne)ae.parent=void 0,ae.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ne=0;ne<this.colCount;ne++){const ae=this.array[E][ne];if(ae)for(const se of ae)se.parentBranch=[E,ne]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,au(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ne=this.array[b][E];if(ne)for(const ae of ne)ae.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,au(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ne=this.array[b][E];if(ne)for(const ae of ne)ae.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ne of E)if(ne)for(const ae of ne)ae.parent=void 0,ae.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ne=this.array[b][E];if(ne)for(const ae of ne)ae.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ne=>ne.type!=="first"));return y}};function au(a){const y=new qr({type:"first",mode:a.mode});y.parent=a;const b=new qo;return b.parent=a,[y,b]}function Gs(a){const y=new Pi(null,{classes:"arraycolsep"});return y.width=a,y}function ou(a,y,b,E){if(!E)return null;const ne=[];for(const ae of y){const se=qr.createBox(a,E,{type:"ignore"});se&&(se.depth=ae.depth,se.height=ae.height,ne.push({box:se,shift:ae.pos-b}))}return new Sl({individualShift:ne}).wrap(a)}var uu=class Pp extends qr{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Pp(y)}toJson(){return fe(Ee({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ne,ae;const se=qr.createBox(y,this.body,{type:"lift"});if(!se)return null;const Se=y.toEm((b=this.offset)!=null?b:{dimension:0});se.depth+=Se,se.setStyle("display","inline-block"),se.setStyle("position","relative"),se.setStyle("height",Math.floor(100*se.height+se.depth)/100,"em"),se.setStyle("vertical-align",-Math.floor(100*se.height)/100,"em");const Pe=new Oo({parent:y},this.style),Te=Pe.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Je=new Pi(null,{classes:"ML__box"});Je.height=se.height+Te,Je.depth=se.depth+Te,Je.setStyle("box-sizing","border-box"),Je.setStyle("position","absolute"),Je.setStyle("top",-Te+.3,"em"),Je.setStyle("left",0),Je.setStyle("height",Je.height+Je.depth,"em"),Je.setStyle("width","100%"),this.backgroundcolor&&Je.setStyle("background-color",(ne=Pe.toColor(this.backgroundcolor))!=null?ne:"transparent"),this.framecolor&&Je.setStyle("border",`${Pe.getRegisterAsEm("fboxrule",2)}em solid ${(ae=Pe.toColor(this.framecolor))!=null?ae:"black"}`),this.border&&Je.setStyle("border",this.border);const Et=new Pi([Je,se],{type:"lift"});return Et.setStyle("display","inline-block"),Et.setStyle("position","relative"),Et.setStyle("line-height",0),Et.height=se.height+Te+(Se>0?Se:0),Et.depth=se.depth+Te+(Se<0?-Se:0),Et.setStyle("padding-left",Te,"em"),Et.setStyle("padding-right",Te,"em"),Et.setStyle("height",Math.floor(100*(se.height+se.depth+2*Te+Math.abs(Se)))/100,"em"),Et.setStyle("margin-top",-Te,"em"),Et.setStyle("top",Math.floor(100*(se.depth-se.height+2*Te-Se))/100,"em"),Et.setStyle("vertical-align",Math.floor(100*(se.depth+2*Te))/100,"em"),this.caret&&(Et.caret=this.caret),this.attachSupsub(y,{base:Et})}_serialize(y){return y.skipStyles?ol([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},Wc=class Ip extends qr{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Ip(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Pi(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Uu=class Fp extends qr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Fp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},ku=class Op extends qr{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Op(y.body,y.mode,y.style)}render(y){const b=qr.createBox(y,this.body,{type:this.boxType});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},ls=class Np extends qr{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Np((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,E;const ne=this.matchingRightDelim();return this.variant==="left...right"?ol(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ne]):this.variant==="mleft...mright"?ol(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ne]):ol([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ne])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ie[E])!=null?b:E}render(y){var b,E;const ne=new Oo({parent:y},this.style);console.assert(this.body!==void 0);const ae=new Oo({parent:y,mathstyle:"textstyle"},this.style),se=(b=qr.createBox(ne,this.body,{type:"inner"}))!=null?b:new Pi(null,{type:"inner"}),Se=se.height/ae.scalingFactor,Pe=se.depth/ae.scalingFactor,Te=[];if(this.leftDelim&&Te.push(this.bind(ae,Fa("open",this.leftDelim,Se,Pe,ae,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),se&&(yu(se.children,this,ne,Se,Pe),Te.push(se)),this.rightDelim){let bn=this.containsCaret?" ML__contains-caret":"",Ln=this.rightDelim;Ln==="?"&&(ne.smartFence?(Ln=this.matchingRightDelim(),bn+=" ML__smart-fence__close"):Ln="."),Te.push(this.bind(ae,Fa("close",Ln,Se,Pe,ae,{isSelected:this.isSelected,classes:bn+" ML__close",mode:this.mode,style:this.style})))}let Je=this.variant==="mleft...mright";const Et=this.leftSibling;Et&&(!Je&&Et.isFunction&&(Je=!0),!Je&&Et.type==="subsup"&&((E=Et.leftSibling)!=null&&E.isFunction)&&(Je=!0));const Zt=new Pi(Te,{type:Je?"close":"inner",classes:"left-right"});return Zt.setStyle("margin-top",`${-se.depth}em`),Zt.setStyle("height",`${se.height+se.depth}em`),this.caret&&(Zt.caret=this.caret),this.bind(ne,Zt.wrap(ne))}};function yu(a,y,b,E,ne){if(a)for(let ae=0;ae<a.length;ae++){const se=a[ae];se.type==="middle"?(a[ae]=y.bind(b,Fa("inner",se.value,E,ne,b,{isSelected:y.isSelected})),a[ae].caret=se.caret,a[ae].isSelected=se.isSelected,a[ae].cssId=se.cssId,a[ae].htmlData=se.htmlData,a[ae].htmlStyle=se.htmlStyle,a[ae].attributes=se.attributes,a[ae].cssProperties=se.cssProperties):se.children&&yu(se.children,y,b,E,ne)}}var Rd=class Lp extends qr{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Lp(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=qr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},yc=class Tp extends qr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Tp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Sc=class Rp extends qr{constructor(y,b,E=!1,ne,ae){var se;super({type:"prompt",mode:(se=ae==null?void 0:ae.mode)!=null?se:"math",style:ae==null?void 0:ae.style,command:"\\placeholder"}),this.body=ne,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Rp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Oo({parent:y}),E=b.getRegisterAsEm("fboxsep"),ne=E,ae=E,se=qr.createBox(y,this.body);if(!se)return null;se.height||(se.height=b.metrics.xHeight),se.setStyle("vertical-align",-se.height,"em"),this.correctness==="correct"?se.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&se.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const Se=new Pi(se,{type:"ord"});Se.setStyle("display","inline-block"),Se.setStyle("height",se.height+se.depth,"em"),Se.setStyle("vertical-align",-ae,"em");let Pe="ML__prompt ";this.locked?Pe+=" ML__lockedPromptBox ":Pe+=" ML__editablePromptBox ",this.correctness==="correct"?Pe+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Pe+=" ML__incorrectPromptBox "),this.containsCaret&&(Pe+=" ML__focusedPromptBox ");const Te=new Pi(null,{classes:Pe,attributes:{part:"prompt"}});Te.height=Se.height+ae,Te.depth=Se.depth+ae,Te.width=Se.width+2*ne,Te.setStyle("box-sizing","border-box"),Te.setStyle("position","absolute"),Te.setStyle("height",Se.height+Se.depth+2*ae,"em"),ne===0&&Te.setStyle("width","100%"),ne!==0&&(Te.setStyle("width",`calc(100% + ${2*ne}em)`),Te.setStyle("top",E,"em"),Te.setStyle("left",-ne,"em")),(!this.body||this.body.length===1)&&(Te.width=3*ne,Te.setStyle("width",`calc(100% + ${3*ne}em)`),Te.setStyle("left",-1.5*ne,"em"));let Je="";this.correctness==="incorrect"&&(Je+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Je&&(Te.svgOverlay=Je);const Et=new Pi([Te,Se],{classes:"ML__prompt-atom"});return Et.setStyle("position","relative"),Et.setStyle("display","inline-block"),Et.setStyle("line-height",0),Et.height=Se.height+ae+.2,Et.depth=Se.depth+ae,Et.left=ne,Et.right=ne,Et.setStyle("height",Se.height+ae,"em"),Et.setStyle("top",Se.depth-Se.height,"em"),Et.setStyle("vertical-align",Se.depth+ae,"em"),Et.setStyle("margin-left",.5,"em"),Et.setStyle("margin-right",.5,"em"),this.caret&&(Et.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:Et}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ne="\\placeholder";return this.placeholderId&&(ne+=`[${this.placeholderId}]`),this.correctness==="correct"?ne+="[correct]":this.correctness==="incorrect"&&(ne+="[incorrect]"),this.locked&&(ne+="[locked]"),Ia(ne,E)}},dc=class _p extends qr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new _p(y);for(const E of Zs)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Oo({parent:y,isPhantom:!0}),ne=this.leftSibling,ae=(b=ne.render(E))!=null?b:new Pi(null),se=new Pi(null);return se.height=ae.height,se.depth=ae.depth,this.attachSupsub(y,{base:se,isCharacterBox:ne.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function mu(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var jc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ne,ae,se;b!=null||(b={}),this.tokens=a,this.context=y instanceof Oo&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Oo({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ne=b.style)!=null?ne:{},parseMode:(ae=b.parseMode)!=null?ae:"math",mathstyle:(se=b.mathstyle)!=null?se:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ne=this.parsingContext,ae={parent:ne,mathlist:[],style:Ee({},ne.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ne.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ne.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=ae}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(Ee({before:Mo(this.tokens.slice(this.index,this.index+10)),after:Mo(this.tokens.slice(Math.max(0,this.index-10),this.index))},a))}get mathlist(){return this.parsingContext.mathlist}set mathlist(a){this.parsingContext.mathlist=a}get parseMode(){return this.parsingContext.parseMode}set parseMode(a){this.parsingContext.parseMode=a}get tabularMode(){return this.parsingContext.tabular}get style(){let a=this.parsingContext;for(;a;){if(a.style)return Ee({},a.style);a=a.parent}return{}}set style(a){this.parsingContext.style=a}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(a){return this.tokens[this.index]===a?(this.index++,!0):!1}lastSubsupAtom(){let a;return this.mathlist.length>0&&(a=this.mathlist[this.mathlist.length-1],a.type==="subsup"||a.subsupPlacement!==void 0)||(a=new dc({style:this.style}),this.mathlist.push(a)),a}hasPattern(a){return a.test(this.tokens[this.index])}hasInfixCommand(){var a;const{index:y}=this;if(y<this.tokens.length&&this.tokens[y].startsWith("\\")){const b=Jt(this.tokens[y],this.parseMode);return!b||b.definitionType==="symbol"||b.ifMode&&!b.ifMode.includes(this.parseMode)?!1:(a=b.infix)!=null?a:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const a=this.peek();return a!=="\\\\"&&a!=="\\cr"&&a!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var a;const y=(a=this.args)==null?void 0:a.call(this,"?");return y?Bu(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new qo({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const ae=this.get();mu(ae)?(E+=ae,b=this.end()||E.length>=a.length):b=!0}const ne=a.toUpperCase()===E.toUpperCase();return ne||(this.index=y),ne}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(mu(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ne=this.peek();for(;ne==="<space>"||ne==="+"||ne==="-";)this.get(),ne==="-"&&(E=!E),ne=this.peek();a=!!a;let ae=10,se=/\d/;if(this.match("'"))ae=8,se=/[0-7]/,a=!0;else if(this.match('"'))ae=16,se=/[\dA-F]/,a=!0;else if(this.match("x"))ae=16,se=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ne=this.get(),ne?ne.length===2&&ne.startsWith("\\")?{number:(E?-1:1)*((y=ne.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ne.codePointAt(0))!=null?b:0),base:"alpha"}:null;let Se="";for(;this.hasPattern(se);)Se+=this.get();if(!a&&(this.match(".")||this.match(",")))for(Se+=".";this.hasPattern(se);)Se+=this.get();const Pe=a?Number.parseInt(Se,ae):Number.parseFloat(Se);return Number.isNaN(Pe)?null:{number:E?-Pe:Pe,base:ae===16?"hexadecimal":ae===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const ae=this.peek();if(ae==="-")E=!E;else if(ae!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ae=this.get();return ae.startsWith("\\")?b?{register:ae,global:!0,factor:(E?-1:1)*b.number}:E?{register:ae,global:!0,factor:-1}:{register:ae,global:!0}:(this.index=y,null)}let ne=this.get();return ne!=null&&ne.startsWith("\\")?(ne=ne.substring(1),this.context.registers[ne]?!E||b!==null?{register:ne,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ne}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!mu(this.peek()))return null;const ne=this.scanString();return ne.length>0?{string:ne}:null}scanDimen(){const a=this.scanNumber(!1);if(a===null)return null;const y=a.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let b;return this.matchKeyword("pt")?b="pt":this.matchKeyword("mm")?b="mm":this.matchKeyword("cm")?b="cm":this.matchKeyword("ex")?b="ex":this.matchKeyword("px")?b="px":this.matchKeyword("em")?b="em":this.matchKeyword("bp")?b="bp":this.matchKeyword("dd")?b="dd":this.matchKeyword("pc")?b="pc":this.matchKeyword("in")?b="in":this.matchKeyword("mu")&&(b="mu"),b?{dimension:y,unit:b}:{dimension:y}}scanGlueOrDimen(){const a=this.scanDimen();if(a===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return a;const y={glue:a};if(this.matchKeyword("plus")){const b=this.scanDimen();if(b)y.grow=b;else return y}if(this.skipWhitespace(),this.match("\\relax"))return y;if(this.skipWhitespace(),this.matchKeyword("minus")){const b=this.scanDimen();if(b)y.shrink=b;else return y}return!y.grow&&!y.shrink?a:y}scanColspec(){this.skipWhitespace();const a=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const y=this.get();y==="c"||y==="r"||y==="l"?a.push({align:y}):y==="|"?a.push({separator:"solid"}):y===":"?a.push({separator:"dashed"}):y==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),a.push({gap:this.scan(b=>b==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return a}scanModeSet(){let a;if(this.match("\\(")&&(a="textstyle"),!a&&this.match("\\[")&&(a="displaystyle"),!a)return null;this.beginContext({mode:"math",mathstyle:a});const y=this.scan(b=>b===(a==="displaystyle"?"\\]":"\\)"));return this.match(a==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanModeShift(){let a="";if(this.match("<$>")&&(a="<$>"),!a&&this.match("<$$>")&&(a="<$$>"),!a)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const y=this.scan(b=>b===a);return this.match(a)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),y}scanEnvironment(){if(!this.match("\\begin"))return null;const a=this.scanArgument("string");if(!a)return null;const y=Nt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const Se of y.params)if(Se.isOptional)b.push(this.scanOptionalArgument(Se.type));else{const Pe=this.scanArgument(Se.type);Pe||this.onError({code:"missing-argument",arg:a}),b.push(Pe)}this.beginContext({tabular:y.tabular});const E=[],ne=[];let ae=[],se=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se)if(this.matchColumnSeparator())ae.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ae.push(this.mathlist),this.mathlist=[];let Se=null;this.skipWhitespace(),this.match("[")&&(Se=this.scanDimen(),this.skipWhitespace(),this.match("]")),ne.push(Se!=null?Se:{dimension:0}),E.push(ae),ae=[]}else this.mathlist.push(...this.scan(Se=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(Se)));while(!se);return ae.push(this.mathlist),ae.length>0&&E.push(ae),this.endContext(),y.createAtom(a,E,ne,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=se=>se==="<}>");let y="",b=null,E=[],ne=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Jt(y,"math"),b&&(E=this.scanArguments(b)[1]),ne=this.mathlist,this.mathlist=[]):this.parseExpression();let ae;return y?(console.assert(!!b),E.unshift(this.mathlist),ne&&E.unshift(ne),ae=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):ae=this.mathlist,this.endContext(),ae}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new ku(y,this.parseMode,this.style);return b.verbatimLatex=Mo(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new ls("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!mu(a)&&!a.startsWith("\\"))return null;this.next();const y=Jt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Uu("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Uu("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new Uu(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ne=(a=this.scanDelim())!=null?a:".";return new ls(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ne,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new qr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new qr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Bt(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ne=a.params[E];ne.type==="rest"?b.push(this.scan(ae=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ae))):ne.isOptional?b.push(this.scanOptionalArgument(ne.type)):ne.type.endsWith("*")?y=ne.type.slice(0,-1):b.push(this.scanArgument(ne.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(mu(a)){const b=Ga.createAtom(this.parseMode,a,Ee({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Jt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Uu(a)];if(b.definitionType==="symbol"){const E=Ee({},this.style);b.variant&&(E.variant=b.variant),y=new qr({type:b.type,command:a,style:E,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new Uu(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ne=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ne}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ne=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ne}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ne=this.mathlist;return this.endContext(),{group:ne}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ne=this.mathlist;return this.endContext(),{group:ne}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ne=this.mathlist;return this.endContext(),{group:ne}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ne of E){const ae=ne.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ae)b.padding={dimension:parseInt(ae[1]),unit:ae[2]};else{const se=ne.match(/^\s*border\s*:\s*(.*)/);se?b.border=se[1]:b.backgroundcolor={string:ne}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const Se=this.scanOptionalArgument("string"),Pe=this.scanOptionalArgument("math"),Te=qr.serialize(Pe,{defaultMode:"math"});let Je=[],Et;!Et&&Te==="correct"?Et="correct":!Et&&Te==="incorrect"?Et="incorrect":Te!==""&&(Je=Pe);const Zt=this.scanOptionalArgument("string")==="locked",bn=this.scanArgument("auto");let Ln;return bn&&Array.isArray(bn)&&bn.length>0?Ln=bn:bn&&typeof bn=="object"&&"group"in bn?Ln=bn.group:Ln=Je,Se?[new Sc(Se,Et,Zt,Ln!=null?Ln:Je,{mode:this.parseMode,style:this.style})]:[new qo({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const Se=this.index,Pe=this.scanLiteralGroup()||this.next();if(!Pe)return null;if(this.context.registers[Pe.substring(1)]){const Te=this.scanArgument("string");Te!==null&&(this.context.registers[Pe.substring(1)]=Te);const Je=ol([a,Mo(this.tokens.slice(Se,this.index))]);return[new qr({type:"text",value:"",verbatimLatex:Je})]}}let ne=this.scanMacro(a);if(ne)return[ne];const ae=Jt(a,this.parseMode);if(!ae)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(Se=>new qr({type:"text",value:Se,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Uu(a)]);const se=this.index;if(ae.definitionType==="symbol"){const Se=Ee({},this.style);ae.variant&&(Se.variant=ae.variant),ne=new qr({type:ae.type,command:a,style:Se,value:String.fromCodePoint(ae.codepoint),mode:this.parseMode})}else{if(ae.ifMode&&!ae.ifMode.includes(this.parseMode))return[];const Se=this.parseMode;ae.applyMode&&(this.parseMode=ae.applyMode);let Pe,Te=[];if(ae.parse?Te=ae.parse(this):[Pe,Te]=this.scanArguments(ae),this.parseMode=Se,ae.applyMode&&!ae.applyStyle&&!ae.createAtom)return Bt(Te[0]);if(ae.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ae.createAtom=="function")ne=ae.createAtom({command:a,args:Te,style:this.style,mode:this.parseMode}),Pe&&(ne.body=Bt(this.scanArgument(Pe)));else if(typeof ae.applyStyle=="function"){const Je=Ee(Ee({},this.style),ae.applyStyle(a,Te,this.context)),Et=this.parseMode;if(ae.applyMode&&(this.parseMode=ae.applyMode),Pe){const Zt=this.style;this.style=Je;const bn=this.scanArgument(Pe);return this.style=Zt,this.parseMode=Et,Bt(bn)}this.style=Je}else ne=new qr({type:"mord",command:(b=ae.command)!=null?b:a,style:Ee({},this.style),value:a,mode:(E=ae.applyMode)!=null?E:this.parseMode})}if(!ne)return null;if(ne instanceof qr&&ne.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const Se=ol([a,Mo(this.tokens.slice(se,this.index))]);Se&&(ne.verbatimLatex=Se)}if(ne.verbatimLatex===null&&(ne.verbatimLatex=void 0),ne.isFunction&&this.smartFence){const Se=this.scanSmartFence();if(Se)return[ne,Se]}return[ne]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(mu(a)){const y=Ga.createAtom(this.parseMode,a,Ee({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new Ju(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const E=this.index,ne=b.args,ae={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let se=1;se<=ne;se++){let Se=this.scanLiteralGroup();if(!Se){const Pe=this.index;this.scanExpression(),Se=Mo(this.tokens.slice(Pe,this.index))}ae[se]=Se}return new Rd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:Mo(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Bu(b.def,{context:this.context,parseMode:this.parseMode,args:se=>ae[se],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ne=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ne===null){if(this.parseSupSub()||this.parseLimits())return!0;ne=this.scanSymbolCommandOrLiteral()}return ne?(Array.isArray(ne)?this.mathlist.push(...ne):this.mathlist.push(ne),!0):!1}};function Bu(a,y){var b,E,ne,ae;const se=(b=y==null?void 0:y.args)!=null?b:void 0,Se=new jc(Yl(a,se),y==null?void 0:y.context,{args:se,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ne=y==null?void 0:y.parseMode)!=null?ne:"math",style:(ae=y==null?void 0:y.style)!=null?ae:{}}),Pe=[];for(;!Se.end();)Pe.push(...Se.scan(()=>!1));return Pe}function t0(a,y){var b;const E=new jc(Yl(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class zp extends qr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Ws.go(Ji.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Bu(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new zp(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return fe(Ee({},super.toJson()),{arg:this.arg})}render(y){const b=qr.createBox(y,this.body,{type:"inner"});return this.caret&&(b.caret=this.caret),this.bind(y,b)}_serialize(y){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};qt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Ji={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ne,ae=10,se=[];;){ne!==a?(ae=10,ne=a):ae--;var Se=Ji.stateMachines[y],Pe=Se.transitions[b]||Se.transitions["*"];e:for(var Te=0;Te<Pe.length;Te++){var Je=Ji.patterns.match_(Pe[Te].pattern,a);if(Je){for(var Et=Pe[Te].task,Zt=0;Zt<Et.action_.length;Zt++){var bn;if(Se.actions[Et.action_[Zt].type_])bn=Se.actions[Et.action_[Zt].type_](E,Je.match_,Et.action_[Zt].option);else if(Ji.actions[Et.action_[Zt].type_])bn=Ji.actions[Et.action_[Zt].type_](E,Je.match_,Et.action_[Zt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Et.action_[Zt].type_+")"];Ji.concatArray(se,bn)}if(b=Et.nextState||b,a.length>0){if(Et.revisit||(a=Je.remainder),!Et.toContinue)break e}else return se}}if(ae<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=Ji.patterns.findObserveGroups(a,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(y&&y.remainder.match(/^($|[\s,;\)\]\}])/))return y;var b=a.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return b?{match_:b[0],remainder:a.substr(b[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Ji.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Ji.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Ji.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Ji.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Ji.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Ji.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Ji.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Ji.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Ji.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Ji.patterns.findObserveGroups(a,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Ji.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Ji.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Ji.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Ji.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Ji.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Ji.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Ji.patterns.findObserveGroups(a,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(a){var y;if(y=a.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),y)return{match_:y[0],remainder:a.substr(y[0].length)};var b=Ji.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,E,ne,ae,se,Se,Pe,Te){var Je=function(Hr,Di){if(typeof Di=="string")return Hr.indexOf(Di)!==0?null:Di;var ua=Hr.match(Di);return ua?ua[0]:null},Et=function(Hr,Di,ua){for(var _i=0;Di<Hr.length;){var yo=Hr.charAt(Di),Zo=Je(Hr.substr(Di),ua);if(Zo!==null&&_i===0)return{endMatchBegin:Di,endMatchEnd:Di+Zo.length};if(yo==="{")_i++;else if(yo==="}"){if(_i===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];_i--}Di++}return _i>0,null},Zt=Je(a,y);if(Zt===null||(a=a.substr(Zt.length),Zt=Je(a,b),Zt===null))return null;var bn=Et(a,Zt.length,E||ne);if(bn===null)return null;var Ln=a.substring(0,E?bn.endMatchEnd:bn.endMatchBegin);if(ae||se){var jr=this.findObserveGroups(a.substr(bn.endMatchEnd),ae,se,Se,Pe);if(jr===null)return null;var aa=[Ln,jr.match_];return{match_:Te?aa.join(""):aa,remainder:jr.remainder}}else return{match_:Ln,remainder:a.substr(bn.endMatchEnd)}},match_:function(a,y){var b=Ji.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Ji.patterns.patterns[a](y);var E=y.match(b);if(E){var ne;return E[2]?ne=[E[1],E[2]]:E[1]?ne=E[1]:ne=E[0],{match_:ne,remainder:y.substr(E[0].length)}}return null}},actions:{"a=":function(a,y){a.a=(a.a||"")+y},"b=":function(a,y){a.b=(a.b||"")+y},"p=":function(a,y){a.p=(a.p||"")+y},"o=":function(a,y){a.o=(a.o||"")+y},"q=":function(a,y){a.q=(a.q||"")+y},"d=":function(a,y){a.d=(a.d||"")+y},"rm=":function(a,y){a.rm=(a.rm||"")+y},"text=":function(a,y){a.text_=(a.text_||"")+y},insert:function(a,y,b){return{type_:b}},"insert+p1":function(a,y,b){return{type_:b,p1:y}},"insert+p1+p2":function(a,y,b){return{type_:b,p1:y[0],p2:y[1]}},copy:function(a,y){return y},rm:function(a,y){return{type_:"rm",p1:y||""}},text:function(a,y){return Ji.go(y,"text")},"{text}":function(a,y){var b=["{"];return Ji.concatArray(b,Ji.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Ji.go(y,"tex-math")},"tex-math tight":function(a,y){return Ji.go(y,"tex-math tight")},bond:function(a,y,b){return{type_:"bond",kind_:b||y}},"color0-output":function(a,y){return{type_:"color0",color:y[0]}},ce:function(a,y){return Ji.go(y)},"1/2":function(a,y){var b=[];y.match(/^[+\-]/)&&(b.push(y.substr(0,1)),y=y.substr(1));var E=y.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return E[1]=E[1].replace(/\$/g,""),b.push({type_:"frac",p1:E[1],p2:E[2]}),E[3]&&(E[3]=E[3].replace(/\$/g,""),b.push({type_:"tex-math",p1:E[3]})),b},"9,9":function(a,y){return Ji.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ne,ae={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ne=0;ne<E.length;ne++)ae[E[ne]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ne=0;ne<E.length;ne++){var se=a[y][b];if(se.action_){se.action_=[].concat(se.action_);for(var Se=0;Se<se.action_.length;Se++)typeof se.action_[Se]=="string"&&(se.action_[Se]={type_:se.action_[Se]})}else se.action_=[];for(var Pe=y.split("|"),Te=0;Te<Pe.length;Te++)if(E[ne]==="*")for(var Je in ae)ae[Je].push({pattern:Pe[Te],task:se});else ae[E[ne]].push({pattern:Pe[Te],task:se})}return ae},stateMachines:{}};Ji.stateMachines={ce:{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(a,y){var b;if((a.d||"").match(/^[0-9]+$/)){var E=a.d;a.d=void 0,b=this.output(a),a.b=E}else b=this.output(a);return Ji.actions["o="](a,y),b},"d= kv":function(a,y){a.d=y,a.dType="kv"},"charge or bond":function(a,y){if(a.beginsWithBond){var b=[];return Ji.concatArray(b,this.output(a)),Ji.concatArray(b,Ji.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Ji.patterns.match_("orbital",a.o||""),ne=Ji.patterns.match_("one lowercase greek letter $",a.o||""),ae=Ji.patterns.match_("one lowercase latin letter $",a.o||""),se=Ji.patterns.match_("$one lowercase latin letter$ $",a.o||""),Se=y==="-"&&(E&&E.remainder===""||ne||ae||se);Se&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ae&&(a.o="$"+a.o+"$");var Pe=[];return Se?(Ji.concatArray(Pe,this.output(a)),Pe.push({type_:"hyphen"})):(E=Ji.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Ji.concatArray(Pe,Ji.actions["d="](a,y)),Ji.concatArray(Pe,this.output(a))):(Ji.concatArray(Pe,this.output(a)),Ji.concatArray(Pe,Ji.actions.bond(a,y,"-")))),Pe},"a to o":function(a){a.o=a.a,a.a=void 0},"sb=true":function(a){a.sb=!0},"sb=false":function(a){a.sb=!1},"beginsWithBond=true":function(a){a.beginsWithBond=!0},"beginsWithBond=false":function(a){a.beginsWithBond=!1},"parenthesisLevel++":function(a){a.parenthesisLevel++},"parenthesisLevel--":function(a){a.parenthesisLevel--},"state of aggregation":function(a,y){return{type_:"state of aggregation",p1:Ji.go(y,"o")}},comma:function(a,y){var b=y.replace(/\s*$/,""),E=b!==y;return E&&a.parenthesisLevel===0?{type_:"comma enumeration L",p1:b}:{type_:"comma enumeration M",p1:b}},output:function(a,y,b){var E;if(!a.r)E=[],!a.a&&!a.b&&!a.p&&!a.o&&!a.q&&!a.d&&!b||(a.sb&&E.push({type_:"entitySkip"}),!a.o&&!a.q&&!a.d&&!a.b&&!a.p&&b!==2?(a.o=a.a,a.a=void 0):!a.o&&!a.q&&!a.d&&(a.b||a.p)?(a.o=a.a,a.d=a.b,a.q=a.p,a.a=a.b=a.p=void 0):a.o&&a.dType==="kv"&&Ji.patterns.match_("d-oxidation$",a.d||"")?a.dType="oxidation":a.o&&a.dType==="kv"&&!a.q&&(a.dType=void 0),E.push({type_:"chemfive",a:Ji.go(a.a,"a"),b:Ji.go(a.b,"bd"),p:Ji.go(a.p,"pq"),o:Ji.go(a.o,"o"),q:Ji.go(a.q,"pq"),d:Ji.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ne;a.rdt==="M"?ne=Ji.go(a.rd,"tex-math"):a.rdt==="T"?ne=[{type_:"text",p1:a.rd||""}]:ne=Ji.go(a.rd);var ae;a.rqt==="M"?ae=Ji.go(a.rq,"tex-math"):a.rqt==="T"?ae=[{type_:"text",p1:a.rq||""}]:ae=Ji.go(a.rq),E={type_:"arrow",r:a.r,rd:ne,rq:ae}}for(var se in a)se!=="parenthesisLevel"&&se!=="beginsWithBond"&&delete a[se];return E},"oxidation-output":function(a,y){var b=["{"];return Ji.concatArray(b,Ji.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Ji.go(y[0]),p2:Ji.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Ji.go(y[0]),p2:Ji.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Ji.go(y[0]),p2:Ji.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Ji.go(y[0]),p2:Ji.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Ji.go(y[1])}},"r=":function(a,y){a.r=y},"rdt=":function(a,y){a.rdt=y},"rd=":function(a,y){a.rd=y},"rqt=":function(a,y){a.rqt=y},"rq=":function(a,y){a.rq=y},operator:function(a,y,b){return{type_:"operator",kind_:b||y}}}},a:{transitions:Ji.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:Ji.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(a){if(a.text_){var y={type_:"text",p1:a.text_};for(var b in a)delete a[b];return y}}}},pq:{transitions:Ji.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(a,y){return{type_:"state of aggregation subscript",p1:Ji.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Ji.go(y[1],"pq")}}}},bd:{transitions:Ji.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Ji.go(y[1],"bd")}}}},oxidation:{transitions:Ji.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(a,y){return{type_:"roman numeral",p1:y||""}}}},"tex-math":{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"tex-math tight":{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(a,y){a.o=(a.o||"")+"{"+y+"}"},output:function(a){if(a.o){var y={type_:"tex-math",p1:a.o};for(var b in a)delete a[b];return y}}}},"9,9":{transitions:Ji.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),y[1]&&(Ji.concatArray(b,Ji.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Ji.concatArray(b,Ji.go(y[2],"pu-9,9")):b.push(y[2])),(y[3]||y[4])&&(y[3]==="e"||y[4]==="*"?b.push({type_:"cdot"}):b.push({type_:"times"}))),y[5]&&b.push("10^{"+y[5]+"}"),b},"number^":function(a,y){var b=[];return y[0]==="+-"||y[0]==="+/-"?b.push("\\pm "):y[0]&&b.push(y[0]),Ji.concatArray(b,Ji.go(y[1],"pu-9,9")),b.push("^{"+y[2]+"}"),b},operator:function(a,y,b){return{type_:"operator",kind_:b||y}},space:function(){return{type_:"pu-space-1"}},output:function(a){var y,b=Ji.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Ji.patterns.match_("{(...)}",a.q||"");if(E&&E.remainder===""&&(a.q=E.match_),a.d&&(a.d=a.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.d=a.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),a.q){a.q=a.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),a.q=a.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var ne={d:Ji.go(a.d,"pu"),q:Ji.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ne.d,p2:ne.q}:(y=ne.d,ne.d.length>1||ne.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),Ji.concatArray(y,ne.q))}else y=Ji.go(a.d,"pu-2");for(var ae in a)delete a[ae];return y}}},"pu-2":{transitions:Ji.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(a,y){a.rm+="^{"+y+"}"},space:function(){return{type_:"pu-space-2"}},output:function(a){var y=[];if(a.rm){var b=Ji.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Ji.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Ji.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){var b=a.text_.length%3;b===0&&(b=3);for(var E=a.text_.length-3;E>0;E-=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(0,b)),y.reverse()}else y.push(a.text_);for(var ne in a)delete a[ne];return y},"output-o":function(a){var y=[];if(a.text_=a.text_||"",a.text_.length>4){for(var b=a.text_.length-3,E=0;E<b;E+=3)y.push(a.text_.substr(E,3)),y.push({type_:"1000 separator"});y.push(a.text_.substr(E))}else y.push(a.text_);for(var ne in a)delete a[ne];return y}}}};var Ws={go:function(a,y){if(!a)return"";for(var b="",E=!1,ne=0;ne<a.length;ne++){var ae=a[ne];typeof ae=="string"?b+=ae:(b+=Ws._go2(ae),ae.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Ws.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Ws._goInner(a.a),b:Ws._goInner(a.b),p:Ws._goInner(a.p),o:Ws._goInner(a.o),q:Ws._goInner(a.q),d:Ws._goInner(a.d)};b.a&&(b.a.match(/^[+\-]/)&&(b.a="{"+b.a+"}"),y+=b.a+"\\,"),(b.b||b.p)&&(y+="{\\vphantom{X}}",y+="^{\\hphantom{"+(b.b||"")+"}}_{\\hphantom{"+(b.p||"")+"}}",y+="{\\vphantom{X}}",y+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(b.b||"")+"}}",y+="_{\\vphantom{2}\\llap{\\smash[t]{"+(b.p||"")+"}}}"),b.o&&(b.o.match(/^[+\-]/)&&(b.o="{"+b.o+"}"),y+=b.o),a.dType==="kv"?((b.d||b.q)&&(y+="{\\vphantom{X}}"),b.d&&(y+="^{"+b.d+"}"),b.q&&(y+="_{\\smash[t]{"+b.q+"}}")):a.dType==="oxidation"?(b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"),b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}")):(b.q&&(y+="{\\vphantom{X}}",y+="_{\\smash[t]{"+b.q+"}}"),b.d&&(y+="{\\vphantom{X}}",y+="^{"+b.d+"}"));break;case"rm":y="\\mathrm{"+a.p1+"}";break;case"text":a.p1.match(/[\^_]/)?(a.p1=a.p1.replace(" ","~").replace("-","\\text{-}"),y="\\mathrm{"+a.p1+"}"):y="\\text{"+a.p1+"}";break;case"roman numeral":y="\\mathrm{"+a.p1+"}";break;case"state of aggregation":y="\\mskip2mu "+Ws._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Ws._goInner(a.p1);break;case"bond":if(y=Ws._getBond(a.kind_),!y)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+a.kind_+")"];break;case"frac":var E="\\frac{"+a.p1+"}{"+a.p2+"}";y="\\mathchoice{\\textstyle"+E+"}{"+E+"}{"+E+"}{"+E+"}";break;case"pu-frac":var ne="\\frac{"+Ws._goInner(a.p1)+"}{"+Ws._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ne+"}{"+ne+"}{"+ne+"}{"+ne+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Ws._goInner(a.p1)+"}{"+Ws._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Ws._goInner(a.p1)+"}{"+Ws._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Ws._goInner(a.p1)+"}{"+Ws._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Ws._goInner(a.p1)+"}_{"+Ws._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Ws._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ae={rd:Ws._goInner(a.rd),rq:Ws._goInner(a.rq)},se=Ws._getArrow(a.r);ae.rd||ae.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(se="\\long"+se,ae.rd&&(se="\\overset{"+ae.rd+"}{"+se+"}"),ae.rq&&(a.r==="<-->"?se="\\underset{\\lower2mu{"+ae.rq+"}}{"+se+"}":se="\\underset{\\lower6mu{"+ae.rq+"}}{"+se+"}"),se=" {}\\mathrel{"+se+"}{} "):(ae.rq&&(se+="[{"+ae.rq+"}]"),se+="{"+ae.rd+"}",se=" {}\\mathrel{\\x"+se+"}{} "):se=" {}\\mathrel{\\long"+se+"}{} ",y=se;break;case"operator":y=Ws._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function A1(a){}function M1(a){}var r0=class Kp extends qr{constructor(y){super(fe(Ee({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return fe(Ee({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Pi(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ia(this.command,this.value)}},i0=class Hp extends qr{constructor(y){super(fe(Ee({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return fe(Ee({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Dr(this.value,this.size,y,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return b?(b=this.bind(y,b),this.caret&&(b.caret=this.caret),b):null}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ia(this.command,this.value)}},rf=class Zp extends qr{constructor(y,b,E,ne){var ae,se;super({type:"enclose",command:y,style:ne.style}),this.body=b,this.backgroundcolor=ne.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(ae=ne.shadow)!=null?ae:"none",this.strokeWidth=(se=ne.strokeWidth)!=null?se:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ne.strokeStyle,this.svgStrokeStyle=ne.svgStrokeStyle,this.strokeColor=ne.strokeColor,this.borderStyle=ne.borderStyle,this.padding=ne.padding,this.captureSelection=!1}static fromJson(y){return new Zp(y.command,y.body,y.notation,y)}toJson(){return fe(Ee({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(y){var b;if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=Jt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ne=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ne+="{"+Object.keys(this.notation).join(" ")+"}";let ae="",se="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ae+=se+'mathbackground="'+this.backgroundcolor+'"',se=","),this.shadow&&this.shadow!=="auto"&&(ae+=se+'shadow="'+this.shadow+'"',se=","),this.strokeWidth||this.strokeStyle!=="solid"?(ae+=se+this.borderStyle,se=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ae+=se+'mathcolor="'+this.strokeColor+'"',se=","),ae&&(ne+=`[${ae}]`)}return Ia(ne,this.bodyToLatex(y))}render(y){const b=new Oo({parent:y},this.style),E=qr.createBox(b,this.body);if(!E)return null;const ne=im(this.borderStyle),ae=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",ae,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const se=new Pi(null,{classes:"ML__notation"});let Se=E.height+E.depth+2*ae;const Pe=E.width+2*ae;let Te="";if(this.notation.horizontalstrike&&(Te+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Te+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Te+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Te+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Te+=this.line(ae.toString(),(ae+E.depth+E.height).toString(),(ae+E.width).toString(),ae.toString());const Ln=.03*Math.sqrt(Pe*Pe+Se*Se)*1,jr=E.width*Ln,aa=(E.depth+E.height)*Ln,Hr=ae+E.width;let Di=ae;Di+aa-.4*jr<0&&(Di=.4*jr-aa),Te+='<polygon points="',Te+=`${Hr},${Di} ${Hr-jr-.4*aa},${Di+aa-.4*jr} `,Te+=`${Hr-.7*jr},${Di+.7*aa} ${Hr-jr+.4*aa},${Di+aa+.4*jr} `,Te+=`${Hr},${Di}`,Te+=`" stroke='none' fill="${this.strokeColor}"`,Te+="/>"}let Je=0;if(this.notation.phasorangle){const Zt=a0(b),bn=(E.height+E.depth+2*Zt+ae).toString(),Ln=(E.height+E.depth)/2;Te+=this.line(ae.toString(),bn,(ae+Ln+E.width).toString(),bn),Te+=this.line(ae.toString(),bn,(ae+Ln).toString(),(ae-Zt).toString()),Se+=Zt,Je=Ln,E.left+=Se/2-ae}if(this.notation.longdiv){const Zt=a0(b);Se+=Zt,Te+=this.line(ae.toString(),ae.toString(),(ae+E.width).toString(),ae.toString());const bn=.3;Je=bn+Zt,E.left+=bn+Zt,E.setTop(ae+Zt),Te+='<path d="',Te+=`M ${ae} ${ae} a${bn} ${(E.depth+E.height+2*Zt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*Zt} "`,Te+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Te+="/>"}if(se.width=E.width+2*ae+Je,se.height=E.height+ae,se.depth=E.depth+ae,se.setStyle("box-sizing","border-box"),se.setStyle("left",`calc(-${ne} / 2 )`),se.setStyle("height",`${Math.floor(100*Se)/100}em`),se.setStyle("top",`calc(${ne} / 2 )`),this.backgroundcolor&&se.setStyle("background-color",this.backgroundcolor),this.notation.box&&se.setStyle("border","1px solid red"),this.notation.actuarial&&(se.setStyle("border-top",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(se.setStyle("border-bottom",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(se.setStyle("border-radius","8px"),se.setStyle("border",this.borderStyle)),this.notation.circle&&(se.setStyle("border-radius","50%"),se.setStyle("border",this.borderStyle)),this.notation.top&&se.setStyle("border-top",this.borderStyle),this.notation.left&&se.setStyle("border-left",this.borderStyle),this.notation.right&&se.setStyle("border-right",this.borderStyle),this.notation.bottom&&se.setStyle("border-bottom",this.borderStyle),Te){let Zt="";this.shadow==="auto"&&(Zt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(Zt+=`filter: drop-shadow(${this.shadow})`),Zt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,Zt+=' stroke-linecap="round"',this.svgStrokeStyle&&(Zt+=` stroke-dasharray="${this.svgStrokeStyle}"`),se.svgStyle=Zt,se.svgOverlay=Te}const Et=new Pi([se,E]);return Et.setStyle("position","relative"),Et.setStyle("vertical-align",ae,"em"),Et.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ae))/100}em`),Et.setStyle("display","inline-block"),Et.height=se.height,Et.depth=se.depth,Et.width=se.width-2*ae,Et.left=ae,Et.right=ae,this.caret&&(Et.caret=this.caret),Et.wrap(b)}line(y,b,E,ne){return`<line x1="${Pf(y)}" y1="${Pf(b)}" x2="${Pf(E)}" y2="${Pf(ne)}" vector-effect="non-scaling-stroke"></line>`}};function Pf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?To:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var _d=class Wp extends qr{constructor(y,b,E){var ne,ae;super(fe(Ee({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ne=E==null?void 0:E.hasBarLine)!=null?ne:!0,this.continuousFraction=(ae=E==null?void 0:E.continuousFraction)!=null?ae:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Wp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),Ee(Ee({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,E;const ne=new Oo({parent:y,mathstyle:this.mathstyleName},this.style),ae=ne.metrics,se=new Oo({parent:ne,mathstyle:this.continuousFraction?"":"numerator"},this.style),Se=this.numerPrefix?new Pi([new Pi(this.numerPrefix),qr.createBox(se,this.above)],{isTight:se.isTight,type:"ignore"}):(b=qr.createBox(se,this.above,{type:"ignore"}))!=null?b:new Pi(null,{type:"ignore"}),Pe=new Oo({parent:ne,mathstyle:this.continuousFraction?"":"denominator"},this.style),Te=this.denomPrefix?new Pi([new Pi(this.denomPrefix),qr.createBox(Pe,this.below,{type:"ignore"})]):(E=qr.createBox(Pe,this.below,{type:"ignore"}))!=null?E:new Pi(null,{type:"ignore"}),Je=this.hasBarLine?ae.defaultRuleThickness:0;let Et,Zt=0,bn;ne.isDisplayStyle?(Et=se.metrics.num1,Zt=Je>0?3*Je:7*Je,bn=Pe.metrics.denom1):(Je>0?(Et=se.metrics.num2,Zt=Je):(Et=se.metrics.num3,Zt=3*ae.defaultRuleThickness),bn=Pe.metrics.denom2);const Ln=[];this.isSelected&&Ln.push("ML__selected");const jr=Se.depth,aa=Te.height;let Hr;if(Je<=0){const Ro=Et-jr-(aa-bn);Ro<Zt&&(Et+=(Zt-Ro)/2,bn+=(Zt-Ro)/2),Hr=new Sl({individualShift:[{box:Se,shift:-Et,classes:[...Ln,"ML__center"]},{box:Te,shift:bn,classes:[...Ln,"ML__center"]}]}).wrap(ne)}else{const Ro=new Pi(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ro.softWidth=Math.max(Se.width,Te.width),Ro.height=Je/2,Ro.depth=Je/2;const $l=Za+Je/2;Et<Zt+jr+$l&&(Et=Zt+jr+$l);const Es=Za-Je/2;bn<Zt+aa-Es&&(bn=Zt+aa-Es),Hr=new Sl({individualShift:[{box:Te,shift:bn,classes:[...Ln,"ML__center"]},{box:Ro,shift:-Es,classes:Ln},{box:Se,shift:-Et,classes:[...Ln,"ML__center"]}]}).wrap(ne)}const Di=ne.isDisplayStyle?ae.delim1:ae.delim2,ua=this.leftDelim?this.bind(y,fo("open",this.leftDelim,Di,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):po(ne,"open");let _i=null;this.continuousFraction?_i=new Pi(null,{type:"close"}):this.rightDelim?_i=this.bind(y,fo("close",this.rightDelim,Di,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):_i=po(ne,"close");const yo=new Pi([ua,Hr,_i],{isTight:ne.isTight,type:"inner",classes:"mfrac"}),Zo=this.bind(y,yo);return this.caret&&(Zo.caret=this.caret),this.attachSupsub(y,{base:Zo})}},Nu=class jp extends qr{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new jp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),Ee({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Pi(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},af=class Up extends qr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Nu(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=qr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}_serialize(y){var b,E;return(E=(b=this.body)==null?void 0:b.map(ne=>ne.value).join(""))!=null?E:""}},fh=class Vp extends qr{constructor(y,b){super(fe(Ee({},b),{type:"extensible-symbol",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new Vp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.value&&(y.symbol=this.value),y}render(y){var b;const E=y.isDisplayStyle&&this.value!=="\\smallint",ne=new Pi(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ne)return null;ne.right=ne.italic;const ae=(ne.height-ne.depth)/2-Za*y.scalingFactor,se=ne.italic;ne.setTop(ae);let Se=ne;if(this.superscript||this.subscript){const Pe=(b=this.subsupPlacement)!=null?b:"auto";Se=Pe==="over-under"||Pe==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ne,baseShift:ae,slant:se}):this.attachSupsub(y,{base:ne})}return new Pi(this.bind(y,Se),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[];return E.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),ol(E)}},gd=class Gp extends qr{constructor(y){const b=y.body;super(fe(Ee({},y),{type:"overlap",body:typeof b=="string"?[new qr({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),Ee(Ee({},super.toJson()),y)}render(y){const b=qr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Pi([b,new Pi(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},fc=class Qp extends qr{constructor(y){var b,E,ne,ae;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ne=y.paddedBody)!=null?ne:!1,this.paddedLabels=(ae=y.paddedLabels)!=null?ae:!1}static fromJson(y){return new Qp(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?xu(this.svgBody):qr.createBox(y,this.body,{type:"ignore"});const E=new Oo({parent:y,mathstyle:"scriptstyle"},this.style);let ne=null;this.svgAbove?ne=xu(this.svgAbove):this.above&&(ne=qr.createBox(E,this.above,{type:"ignore"}));let ae=null;this.svgBelow?ae=xu(this.svgBelow):this.below&&(ae=qr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Pi([po(y,"open"),b,po(y,"close")],{type:"ignore"}));let se=om(y,{base:b,above:ne,below:ae,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return se?(this.subsupPlacement==="over-under"?se=this.attachLimits(y,{base:se,type:se.type}):se=this.attachSupsub(y,{base:se}),this.caret&&(se.caret=this.caret),this.bind(y,se)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const Se=new Pi(y.base,{type:y.type});return Se.setStyle("position","relative"),Se}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ne=y.base,ae=0,se=["ML__center"];if(y.paddedAboveBelow&&se.push("ML__label_padding"),y.below&&y.above){const Se=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ne.depth+ae;E=new Sl({bottom:Se,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ne,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]})}else y.below?E=new Sl({top:ne.height-ae,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ne,classes:["ML__center"]}]}):y.above&&(E=new Sl({bottom:ne.depth+ae,children:[{box:ne,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]}));return new Pi(E,{type:y.type})}var of=class Yp extends qr{constructor(y){var b,E,ne,ae;super(fe(Ee({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ne=y.smashHeight)!=null?ne:!1,this.smashWidth=(ae=y.smashWidth)!=null?ae:!1}static fromJson(y){return new Yp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),Ee(Ee({},super.toJson()),y)}render(y){const b=new Oo({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),qr.createBox(b,this.body,{classes:"inner"});const E=qr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ne=new Pi(null,{classes:"fix"});return new Pi([E,ne],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ne of E.children)this.smashHeight&&(ne.height=0),this.smashDepth&&(ne.depth=0);return new Sl({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},lf=class Xp extends qr{constructor(y){var b;super(Ee({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Xp(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new Pi(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Pi(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ne=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new Pi(null,{classes:ne})}return E=this.bind(y,E),this.caret&&(E.caret=this.caret),E}_serialize(y){var b;if(!y.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const E=Jt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ne=(b=this.command)!=null?b:"";return this.width===void 0?ne:this._braced&&!("register"in this.width)?`${ne}{${xs(this.width)}}`:`${ne}${xs(this.width)}`}},o0=class Jp extends qr{constructor(y){var b;super(fe(Ee({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Jp(fe(Ee({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ne=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ia(`${E}[${this.aboveToLatex(y)}]`,ne):/^[0-9]$/.test(ne)?`${E}${ne}`:Ia(E,ne)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new Oo({parent:y,mathstyle:"cramp"},this.style),ne=(b=qr.createBox(E,this.body,{type:"inner"}))!=null?b:new Pi(null),ae=E.scalingFactor,se=E.metrics.defaultRuleThickness/ae,Se=y.isDisplayStyle?To:se,Pe=new Pi(null,{classes:"ML__sqrt-line",style:this.style});Pe.height=se,Pe.softWidth=ne.width;let Te=ae*(se+Se/4);const Et=Math.max(ae*2*Se,ne.height+ne.depth)+Te+se,Zt=new Oo({parent:y},this.style),bn=this.bind(Zt,new Pi(fo("inner","\\surd",Et,!1,Zt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!bn)return null;const Ln=bn.height+bn.depth-se;Ln>ne.height+ne.depth+Te&&(Te=(Te+Ln-(ne.height+ne.depth))/2),bn.setTop(bn.height-ne.height-Te);const jr=this.bind(y,new Sl({firstBaseline:[{box:new Pi(ne)},Te-2*se,{box:Pe},se]})),aa=qr.createBox(new Oo({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!aa){const ua=new Pi([bn,jr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return ua.setStyle("display","inline-block"),ua.setStyle("height",ua.height+ua.depth,"em"),this.caret&&(ua.caret=this.caret),this.bind(y,ua)}const Hr=new Sl({shift:-.6*(Math.max(bn.height,jr.height)-Math.max(bn.depth,jr.depth)),children:[{box:aa}]}),Di=new Pi([new Pi(Hr,{classes:"ML__sqrt-index",type:"ignore"}),bn,jr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return Di.height=bn.height,Di.depth=bn.depth,this.caret&&(Di.caret=this.caret),this.bind(y,Di)}},lm=class extends Pi{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function If(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ne=E-1;for(;ne>=0&&b[ne].type==="ignore";)ne-=1;if(ne<0&&a.parent.parent&&a.parent.type==="lift"){If(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new lm(y))}var sm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){uf(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function sf(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ne=y.getRegisterAsEm("medmuskip"),ae=y.getRegisterAsEm("thickmuskip");return uf(b,(se,Se)=>{var Pe,Te,Je;if(!se)return;const Et=se.type,Zt=Se.isTight?(Pe=um[Et])!=null?Pe:null:(Te=sm[Et])!=null?Te:null,bn=(Je=Zt==null?void 0:Zt[Se.type])!=null?Je:null;bn===3&&If(Se,E),bn===4&&If(Se,ne),bn===5&&If(Se,ae)}),a}function uf(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=uf(E.children,y,b):E.type==="ignore"?uf(E.children,y):(y(b,E),uf(E.children,y),b=E);return b}var hh=class $p extends qr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new qr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new $p(fe(Ee({},y),{tooltip:id(y.tooltip)}))}toJson(){var y;const b=(y=this.tooltip.body)==null?void 0:y.filter(E=>E.type!=="first").map(E=>E.toJson());return fe(Ee({},super.toJson()),{tooltip:b})}render(y){const b=qr.createBox(new Oo,this.body);if(!b)return null;const E=new Oo({parent:y,mathstyle:"displaystyle"},{fontSize:Fi}),ne=Ps(sf(new Pi(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ae=new Pi([ne,b],{classes:"ML__tooltip-container"});return this.caret&&(ae.caret=this.caret),this.bind(y,ae)}},yd=class qp extends qr{constructor(y,b){super(fe(Ee({},b),{type:"operator",isFunction:b==null?void 0:b.isFunction})),this.value=y,this.variant=b==null?void 0:b.variant,this.variantStyle=b==null?void 0:b.variantStyle,this.subsupPlacement=b==null?void 0:b.limits}static fromJson(y){return new qp(y.symbol,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.variantStyle&&(y.variantStyle=this.variantStyle),this.subsupPlacement&&(y.limits=this.subsupPlacement),this.value&&(y.symbol=this.value),y}render(y){var b;const E=new Pi(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ne=E;if(this.superscript||this.subscript){const ae=(b=this.subsupPlacement)!=null?b:"auto";ne=ae==="over-under"||ae==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new Pi(this.bind(y,ne),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(y)}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Jt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&E.push("\\limits"),this.subsupPlacement==="adjacent"&&E.push("\\nolimits"),this.subsupPlacement==="auto"&&E.push("\\displaylimits")),E.push(this.supsubToLatex(y)),ol(E)}};function id(a){if(De(a))return a.map(E=>id(E));if(typeof a=="string")return qr.fromJson(a);a=Ee({},a);for(const E of Zs)a[E]&&(a[E]=id(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=id(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=Pl.fromJson(a)),y==="box"&&(b=uu.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=Wc.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=rf.fromJson(a)),y==="error"&&(b=Uu.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=_d.fromJson(a)),y==="group"&&(b=ku.fromJson(a)),y==="latex"&&(b=Nu.fromJson(a)),y==="latexgroup"&&(b=af.fromJson(a)),y==="leftright"&&(b=ls.fromJson(a)),y==="macro"&&(b=Rd.fromJson(a)),y==="macro-argument"&&(b=yc.fromJson(a)),y==="operator"&&(b=yd.fromJson(a)),y==="overlap"&&(b=gd.fromJson(a)),y==="overunder"&&(b=fc.fromJson(a)),y==="placeholder"&&(b=qo.fromJson(a)),y==="prompt"&&(b=Sc.fromJson(a)),y==="phantom"&&(b=of.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=lf.fromJson(a)),y==="subsup"&&(b=dc.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=Ju.fromJson(a)),y==="tooltip"&&(b=hh.fromJson(a)),b||(console.assert(!y||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(y),`MathLive 0.98.5: an unexpected atom type "${y}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),b=qr.fromJson(a));for(const E of Zs)a[E]&&b.setChildren(a[E],E);return a.verbatimLatex!==void 0&&(b.verbatimLatex=a.verbatimLatex),a.subsupPlacement&&(b.subsupPlacement=a.subsupPlacement),a.explicitSubsupPlacement&&(b.explicitSubsupPlacement=!0),a.isFunction&&(b.isFunction=!0),a.isExtensibleSymbol&&(b.isExtensibleSymbol=!0),a.skipBoundary&&(b.skipBoundary=!0),a.captureSelection&&(b.captureSelection=!0),b}function dm(a){if(a&&Array.isArray(a))return a.map(y=>y==="<null>"?null:typeof y=="object"&&"group"in y?{group:y.group.map(b=>id(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>id(b)):y)}var l0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},s0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,s0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Ga{constructor(){super("math")}createAtom(a,y,b){var E,ne,ae,se;if(y===null)return new qr({type:"mord",mode:"math",command:a,value:a,style:b});const Se=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Te=new qr({type:(ne=y.type)!=null?ne:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:String.fromCodePoint(y.codepoint),style:b});return Se&&(Te.isFunction=!0),a.startsWith("\\")&&(Te.verbatimLatex=a),Te}const Pe=new qr({type:"mord",mode:"math",command:(se=y.command)!=null?se:a,value:a,style:b});return Se&&(Pe.isFunction=!0),a.startsWith("\\")&&(Pe.verbatimLatex=a),Pe}serialize(a,y){const b=vm(a,fe(Ee({},y),{defaultMode:"math"}));return b.length===0||y.defaultMode!=="text"?b:["$ ",...b," $"]}getFont(a,y){console.assert(y.variant!==void 0);let{variant:b}=y,{variantStyle:E}=y;b==="normal"&&!E&&/[\u00A3\u0131\u0237]/.test(a.value)&&(b="main",E="italic"),b==="normal"&&!E&&a.value.length===1&&hm.forEach((Se,Pe)=>{var Te;Se.test(a.value)&&pm[(Te=y.letterShapeStyle)!=null?Te:"tex"][Pe]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ne=E?b+"-"+E:b;console.assert(l0[ne]!==void 0);const[ae,se]=l0[ne];return ph[b]&&!ph[b].test(a.value)?(a.value=Vt(a.value,b,E),null):(s0.test(a.value)&&(a.classes+=" lcGreek"),se&&(a.classes+=" "+se),ae)}};function vm(a,y){const{parent:b}=a[0],E=u0(b);return Aa(a,"variant").map(ne=>{const ae=u0(ne[0]);let se="";ae&&ae!==E&&(se={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[ae],console.assert(se!==void 0));const Se=ol(ne.map(Pe=>Pe._serialize(y)));return se?Ia(se,Se):Se})}function u0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function gm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Aa(a,"fontShape").map(b=>{const E=gm(b,y),{fontShape:ne}=b[0].style;let ae="";return ne==="it"&&(ae="\\textit"),ne==="sl"&&(ae="\\textsl"),ne==="sc"&&(ae="\\textsc"),ne==="n"&&(ae="\\textup"),!ae&&ne?`{${Ia("\\fontshape",ne)}${ol(E)}}`:ae?Ia(ae,ol(E)):ol(E)})}function bm(a,y){return Aa(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ne}=b[0].style;let ae="";return ne==="b"&&(ae="\\textbf"),ne==="l"&&(ae="\\textlf"),ne==="m"&&(ae="\\textmd"),ne&&!ae?`{${Ia("\\fontseries",ne)}${ol(E)}}`:ae?Ia(ae,ol(E)):ol(E)})}function xm(a,y){return Aa(a,"fontSize").map(b=>{var E,ne;const ae=bm(b,y),se=(ne=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ne:"";return se?`${se} ${ol(ae)}`:ol(ae)})}function Em(a,y,b){return Aa(a,"fontFamily").map(E=>{var ne,ae;const se=xm(E,y),Se=(ae={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ne=E[0].style.fontFamily)!=null?ne:""])!=null?ae:"";return Se?`\\${Se}{${ol(se)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${ol(se)}}`:b?`\\text{${ol(se)}}`:ol(se)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Cm=class extends Ga{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new Ju(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Em(a,fe(Ee({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ne,ae,se;const{fontFamily:Se}=y;if(c0[Se]?a.classes+=" "+c0[Se]:Se&&a.setStyle("font-family",Se),y.fontShape&&(a.classes+=" ",a.classes+=(b={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[y.fontShape])!=null?b:""),y.fontSeries){const Pe=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Pe&&(a.classes+=" ",a.classes+=(ne={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(E=Pe[1])!=null?E:""])!=null?ne:"",a.classes+=" ",a.classes+=(se={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(ae=Pe[2])!=null?ae:""])!=null?se:"")}return"Main-Regular"}};new Cm;var Sm=class extends Ga{constructor(){super("latex")}createAtom(a){return new Nu(a)}serialize(a,y){return a.filter(b=>b instanceof Nu&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Sm;var wm={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},mh={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Am={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Mm={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},km={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Bm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Dm={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Pm={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},Im={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Fm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Om={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function zd(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var Nm={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},cf=[],df;function vh(){switch(ge()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function rc(a){(!a.platform||a.platform===vh())&&cf.push(a)}function Lm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ne,ae]of Object.entries(y.mapping)){if(ae[0]===a)return E.key=`[${ne}]`,E;if(ae[1]===a)return E.shift=!0,E.key=`[${ne}]`,E;if(ae[2]===a)return E.alt=!0,E.key=`[${ne}]`,E;if(ae[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ne}]`,E}return E.key=(b=Nm[a])!=null?b:"",E}function Tm(a){if(a.code)return a;const y=Object.entries(ff().mapping);let b=!1,E=!1,ne="";for(let ae=0;ae<4;ae++){for(const[se,Se]of y)if(Se[ae]===a.key){ne=se,ae===3?(b=!0,E=!0):ae===2?b=!0:ae===1&&(E=!0);break}if(ne)break}return new KeyboardEvent(a.type,fe(Ee({},a),{altKey:b,shiftKey:E,code:ne}))}function Rm(a){var y,b;if(!a||a.key==="Unidentified"||a.key==="Dead")return;const E=a.shiftKey&&a.altKey?3:a.altKey?2:a.shiftKey?1:0;for(const ne of cf)((y=ne.mapping[a.code])==null?void 0:y[E])===a.key?ne.score+=1:(b=ne.mapping[a.code])!=null&&b[E]&&(ne.score=0);cf.sort((ne,ae)=>ae.score-ne.score)}function _m(a){df=cf.find(y=>a.startsWith(y.locale))}function ff(){return df!=null?df:cf[0]}function zm(){switch(vh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(vh()){case"apple":rc(mh),rc(Am),rc(Im),rc(Bm);break;case"windows":rc(d0),rc(Mm),rc(Fm),rc(Dm);break;case"linux":rc(f0),rc(km),rc(Om),rc(Pm);break}rc(wm);function gh(a){var y;const b=/macos|ios/.test(ge()),E=a.split("+");let ne="";for(const ae of E)ne&&(ne+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ae.startsWith("[Key")?ne+=ae.slice(4,5):ae.startsWith("Key")?ne+=ae.slice(3,4):ae.startsWith("[Digit")?ne+=ae.slice(6,7):ae.startsWith("Digit")?ne+=ae.slice(5,6):ne+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[ae.toLowerCase()])!=null?y:ae.toUpperCase();return ne}function Ff(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ne)=>({x:E.x+ne.clientX,y:E.y+ne.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function bd(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Km(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Hm=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Of(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Hm.has(a.code)}function Nf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var wc=class Qc{static get scrim(){return Qc._scrim||(Qc._scrim=new Qc),Qc._scrim}static open(y){Qc.scrim.open(y)}static close(){Qc.scrim.close()}static get state(){return Qc.scrim.state}static get element(){return Qc.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Nf();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ne=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ae=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ae+ne}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ne;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:ae}=this;ae.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ae.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Nf()!==this.savedActiveElement&&((ne=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ne.call(E)),ae.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Zm(a,y,b){let E=null,ne=null,ae=!1,se=!1,Se=!1;const Pe=new AbortController,Te=Pe.signal;return a.addEventListener("keydown",Je=>{if(ae||Je.key==="Process"||Je.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Je.code)){E=null;return}E=Je,ne=null,b.onKeystroke(Je)?a.textContent="":E=null},{capture:!0,signal:Te}),a.addEventListener("keypress",Je=>{ae||(E&&ne&&b.onKeystroke(E),ne=Je)},{capture:!0,signal:Te}),a.addEventListener("compositionstart",Je=>{a.textContent="",ae=!0,b.onCompositionStart(Je.data)},{capture:!0,signal:Te}),a.addEventListener("compositionupdate",Je=>{ae&&b.onCompositionUpdate(Je.data)},{capture:!0,signal:Te}),a.addEventListener("compositionend",Je=>{a.textContent="",ae&&(ae=!1,b.onCompositionEnd(Je.data))},{capture:!0,signal:Te}),a.addEventListener("beforeinput",Je=>Je.stopImmediatePropagation(),{signal:Te}),a.addEventListener("input",Je=>{var Et;if(!ae&&(a.textContent="",Je.inputType!=="insertCompositionText")){if(Je.inputType==="insertFromPaste"){Je.preventDefault(),Je.stopPropagation();return}b.onInput((Et=Je.data)!=null?Et:""),Je.preventDefault(),Je.stopPropagation()}},{signal:Te}),a.addEventListener("paste",Je=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Je)||Je.preventDefault(),Je.stopImmediatePropagation()},{signal:Te}),a.addEventListener("cut",Je=>b.onCut(Je),{capture:!0,signal:Te}),a.addEventListener("copy",Je=>b.onCopy(Je),{capture:!0,signal:Te}),a.addEventListener("blur",Je=>{var Et,Zt;if(((Zt=(Et=Je.relatedTarget)==null?void 0:Et._mathfield)==null?void 0:Zt.element)===y){a.focus({preventScroll:!0}),Je.preventDefault(),Je.stopPropagation();return}const bn=wc.state;if(bn==="open"||bn==="opening"){Je.preventDefault(),Je.stopPropagation();return}if(Je.relatedTarget===Je.target.getRootNode().host){Je.preventDefault(),Je.stopPropagation();return}Se||se||(Se=!0,E=null,ne=null,b.onBlur(),Se=!1)},{capture:!0,signal:Te}),a.addEventListener("focus",Je=>{Se||se||(se=!0,b.onFocus(),se=!1)},{capture:!0,signal:Te}),{dispose:()=>Pe.abort(),cancelComposition:()=>{ae&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!se&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Nf()===a,setAriaLabel:Je=>a.setAttribute("aria-label",Je),setValue:Je=>{var Et;a.textContent=Je,a.style.left="-1000px",(Et=window.getSelection())==null||Et.selectAllChildren(a)},moveTo:(Je,Et)=>{a.style.top=`${Et}px`,a.style.left=`${Je}px`}}}function Kd(a){var y;if(!a||!Of(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=Tm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Wm(a){if(rt()){const y=ge(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function jm(a,y,b){if(a.length===0)return"";const E=zd(h0(p0(b))),ne=zd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(ge()),cmd:!1,win:!1});for(let ae=a.length-1;ae>=0;ae--)if((a[ae].key===E||a[ae].key===ne)&&(!a[ae].ifMode||a[ae].ifMode===y))return a[ae].command;return""}function m0(a){let y=a;return De(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const ae=td[y];De(ae)?b=ae.slice():ae&&b.push(ae)}const E=m0(y),ne=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ae of a)ne.test(m0(ae.command))&&b.push(ae.key);return b.map(gh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=ge()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Wm(E))return;if(/^\[.+\]$/.test(b.key))return fe(Ee({},a),{key:zd(b)});const ne=Lm(b.key,y);if(!ne)return fe(Ee({},a),{key:zd(b)});if(ne.shift&&b.shift||ne.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${zd(ne)} using the ${y.displayName} keyboard layout`);return ne.shift=ne.shift||b.shift,ne.alt=ne.alt||b.alt,ne.meta=b.meta,ne.ctrl=b.ctrl,fe(Ee({},a),{key:zd(ne)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ne of a)try{const ae=Vm(ne,y);if(!ae)continue;const se=E.find(Se=>Se.key===ae.key&&Se.ifMode===ae.ifMode);if(se)throw new Error(`Ambiguous key binding ${ne.key} (${yh(ne.command)}) matches ${se.key} (${yh(se.command)}) with the ${y.displayName} keyboard layout`);E.push(ae)}catch(ae){ae instanceof Error&&b.push(ae.message)}return[E,b]}var Qm=class extends pl{constructor(){super("latex")}createAtom(a){return new Nu(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),lu(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ne=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(iu(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=[];for(const Pe of y)ce.test(Pe)&&ae.push(new Nu(Pe));let se=a.at(a.position);if(se instanceof af&&(se=se.lastChild),!(se.parent instanceof af)){const Pe=new af("");se.parent.addChildAfter(Pe,se),se=Pe.firstChild}const Se=se.parent.addChildrenAfter(ae,se);return a.silenceNotifications=ne,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(Se)):Se&&(a.position=a.offsetOf(Se))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Ym(a){return a.atoms.find(y=>y.type==="latexgroup")}function hf(a){var y,b;const E=a.atoms.find(ne=>ne.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ne=>ne.type==="latex"))!=null?b:[]:[]}function v0(a,y){var b;let E=0,ne=!1;const ae=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=ae&&!ne;){const Pe=a.at(E);ne=Pe instanceof Nu&&Pe.isSuggestion,ne||E++}if(!ne)return[void 0,void 0];let se=E,Se=!1;for(;se<=ae&&!Se;){const Pe=a.at(se);Se=!(Pe instanceof Nu&&Pe.isSuggestion),Se||se++}return[E-1,se-1]}new Qm;function Lf(a){const y=hf(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function pf(a,y){var b;const{model:E}=a;Lf(a);for(const Je of hf(E))Je.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Zd(a);return}const ne=[];let ae=E.at(E.position);for(;ae&&ae instanceof Nu&&/^[a-zA-Z\*]$/.test(ae.value);)ae=ae.leftSibling;if(ae&&ae instanceof Nu&&ae.value==="\\")for(ne.push(ae),ae=ae.rightSibling;ae&&ae instanceof Nu&&/^[a-zA-Z\*]$/.test(ae.value);)ne.push(ae),ae=ae.rightSibling;const se=ne.map(Je=>Je.value).join(""),Se=tn(a,se);if(Se.length===0){if(/^\\[a-zA-Z\*]+$/.test(se))for(const Je of ne)Je.isError=!0;Zd(a);return}const Pe=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=Pe<0?Se.length-1:Pe%Se.length;const Te=Se[a.suggestionIndex];if(Te!==se){const Je=ne[ne.length-1];Je.parent.addChildrenAfter([...Te.slice(se.length-Te.length)].map(Et=>new Nu(Et,{isSuggestion:!0})),Je),xd(a,{interactive:!0})}Jm(a,Se)}function g0(a){const[y,b]=v0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ne=>{ne.isSuggestion&&(ne.isSuggestion=!1,E=!0)}),E}function Hd(a,y="accept",b){var E,ne;Zd(a);const ae=Ym(a.model);if(!ae)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Te=hf(a.model).filter(Je=>Je.isSuggestion);if(Te.length!==0){for(const Je of Te)Je.isSuggestion=!1;a.model.position=a.model.offsetOf(Te[Te.length-1])}if(y==="accept-suggestion")return Te.length!==0}const Se=hf(a.model).filter(Te=>!Te.isSuggestion).map(Te=>Te.value).join(""),Pe=ae.leftSibling;return ae.parent.removeChild(ae),a.model.position=a.model.offsetOf(Pe),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(pl.insert(a.model,Se,{selectionMode:(ne=b==null?void 0:b.selectItem)!=null&&ne?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Tf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Xm(a,y){const b=new Oo({from:a.context}),E=new qr({mode:"math",type:"root",body:Bu(y,{context:b})}),ne=Ps(sf(new Pi(E.render(b),{classes:"ML__base"}),b));return gu(ne,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){Zd(a);return}let E="";for(const[ae,se]of y.entries()){const Se=se,Pe=Xm(a,se),Te=Um(a.keybindings,Se).join("<br>");E+=`<li role="button" data-command="${Se}" ${ae===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${Se}</span><span class="ML__popover__command">${Pe}</span>`,Te&&(E+=`<span class="ML__popover__keybinding">${Te}</span>`),E+="</li>"}const ne=$m(a,`<ul>${E}</ul>`);xh()&&((b=ne.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ae;ne&&!xh()&&(ne.classList.add("is-visible"),Rf(a),(ae=ne.querySelector(".ML__popover__current"))==null||ae.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Rf(a,y){var b;if(!a.element||a.element.mathfield!==a||!xh())return;if(((b=a.model.at(a.model.position))==null?void 0:b.type)!=="latex"){Zd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Rf(a),32);return}const E=tc(a.field);if(!E)return;const ne=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,se=window.innerWidth-document.documentElement.clientWidth,Se=window.innerHeight-document.documentElement.clientHeight,Pe=window.mathVirtualKeyboard.boundingRect.height,Te=document.getElementById("mathlive-suggestion-popover");E.x+Te.offsetWidth/2>ae-se?Te.style.left=`${ae-Te.offsetWidth-se}px`:E.x-Te.offsetWidth/2<0?Te.style.left="0":Te.style.left=`${E.x-Te.offsetWidth/2}px`;const Je=E.y-E.height;ne-Se-Pe-E.y<Je?(Te.classList.add("ML__popover--reverse-direction"),Te.classList.remove("top-tip"),Te.classList.add("bottom-tip"),Te.style.top=`${E.y-E.height-Te.offsetHeight-15}px`):(Te.classList.remove("ML__popover--reverse-direction"),Te.classList.add("top-tip"),Te.classList.remove("bottom-tip"),Te.style.top=`${E.y+15}px`)}function Zd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function $m(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Tf("mathlive-suggestion-popover"),$u("suggestion-popover"),$u("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ne=E.target;for(;ne&&!ne.dataset.command;)ne=ne.parentElement;ne&&(Hd(a,"reject"),pl.insert(a.model,ne.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function qm(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function ev(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var _f=null,y0,b0,Eh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||ev();function x0(a){return ud(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(_f===null)try{const y=yield fetch(Eh,{method:"HEAD"});y.status===200&&(_f=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Eh}")`)}return new URL(a,_f!=null?_f:Eh).href})}function tv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var ic="not-loaded";function nv(){return ud(this,null,function*(){return ic="not-loaded",zf()})}function zf(){return ud(this,null,function*(){var a;if(ic!=="not-loaded")return;if(ic="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){ic="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(se=>se.family);if(b.every(se=>E.includes(se))){ic="ready";return}if(!window.MathfieldElement.fontsDirectory){ic="not-loaded";return}const ne=yield x0(window.MathfieldElement.fontsDirectory);if(!ne){document.body.classList.add("ML__fonts-did-not-load"),ic="error";return}const ae=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(se=>tv(se[0].replace(/-[a-zA-Z]+$/,""),`${ne}/${se[0]}`,se[1]));try{(yield Promise.all(ae.map(Se=>{try{return Se.load()}catch(Pe){}}))).forEach(Se=>document.fonts.add(Se)),ic="ready";return}catch(se){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ne}"`,{cause:se}),document.body.classList.add("ML__fonts-did-not-load")}ic="error"}})}function rv(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function lu(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{ju(a)&&a.dirty&&(a.atomBoundsCache=new Map,xd(a,y),a.atomBoundsCache=void 0)})))}function iv(a,y){var b;y=y!=null?y:{};const E=new Oo({from:fe(Ee({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rv(qr.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ne=a.model.root.render(E);return gu(sf(ne,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function E0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ne of b.atoms)ne.caret=void 0,ne.isSelected=!1,ne.containsCaret=!1;if(b.selectionIsCollapsed){const ne=b.at(b.position);ne.caret=a.model.mode;let ae=ne.parent;for(;ae;)ae.containsCaret=!0,ae=ae.parent}else{const ne=b.getAtoms(b.selection,{includeChildren:!0});for(const ae of ne)ae.isSelected=!0}return iv(a,y).toMarkup()}function xd(a,y){if(!ju(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ne=a.isSelectionEditable&&a.hasFocus(),ae=E.classList.contains("ML__focused");ae&&!ne?E.classList.remove("ML__focused"):!ae&&ne&&E.classList.add("ML__focused");let se=E0(a,y);const Se=a.element.querySelector("[part=menu-toggle]");if(Se&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?Se.style.display="none":Se.style.display=""),a.model.atoms.length<=1){const Pe=a.options.contentPlaceholder;Pe&&(se+=`<span part=placeholder class="ML__content-placeholder">${Du(Pe)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(se),Kf(a,y.interactive),a.dirty=!1}function Kf(a,y){const b=a.field;if(!b)return;for(const Se of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))Se.remove();!(y!=null&&y)&&ic!=="error"&&ic!=="ready"&&setTimeout(()=>{ic==="ready"?Kf(a):setTimeout(()=>Kf(a),128)},32);const E=a.model,ne=b.offsetWidth,ae=b.getBoundingClientRect().width;let se=Math.floor(ae)/ne;if(se=isNaN(se)?1:se,E.selectionIsCollapsed){Rf(a,{deferred:!0});let Se=E.at(E.position);for(;Se&&Se.type!=="prompt"&&!(Se.containsCaret&&Se.displayContainsHighlight);)Se=Se.parent;if(Se!=null&&Se.containsCaret&&Se.displayContainsHighlight){const Pe=nd(a,vc(a,Se),se);if(Pe){Pe.left/=se,Pe.right/=se,Pe.top/=se,Pe.bottom/=se;const Te=document.createElement("div");Te.classList.add("ML__contains-highlight"),Te.style.position="absolute",Te.style.left=`${Pe.left+1}px`,Te.style.top=`${Math.ceil(Pe.top)}px`,Te.style.width=`${Math.ceil(Pe.right-Pe.left)}px`,Te.style.height=`${Math.ceil(Pe.bottom-Pe.top)}px`,b.insertBefore(Te,b.childNodes[0])}}return}for(const Se of av(Xl(a,{excludeAtomsWithBackground:!0}))){Se.left/=se,Se.right/=se,Se.top/=se,Se.bottom/=se;const Pe=document.createElement("div");Pe.classList.add("ML__selection"),Pe.style.position="absolute",Pe.style.left=`${Se.left}px`,Pe.style.top=`${Se.top}px`,Pe.style.width=`${Math.ceil(Se.right-Se.left)}px`,Pe.style.height=`${Math.ceil(Se.bottom-Se.top-1)}px`,b.insertBefore(Pe,b.childNodes[0])}}function av(a){let y=[];for(const b of a){let E=!1;for(const ne of y)if(b.left===ne.left&&b.right===ne.right&&b.top===ne.top&&b.bottom===ne.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ne of a)if(b.left>=ne.left&&b.right<=ne.right&&b.top>=ne.top&&b.bottom<=ne.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var C0=3,Ac;function qu(a,y){y=Ee({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Ac||(Ac={});for(const b of Object.keys(a))console.assert(!Ac[b],"Selector already defined: ",b),Ac[b]=fe(Ee({},y),{fn:a[b]})}function Ch(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Ch(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Ac[y]}function Wd(a){var y;return(y=Ch(a))==null?void 0:y.target}function ov(a,y){var b;if(!y)return!1;let E,ne=[],ae=!1,se=!1;De(y)?(E=y[0],ne=y.slice(1)):E=y,E=E.replace(/-\w/g,Te=>Te[1].toUpperCase());const Se=Ac[E],Pe=Se==null?void 0:Se.target;if(Pe==="model"){if(!a.isSelectionEditable&&(Se!=null&&Se.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Lf(a),Ac[E].fn(a.model,...ne),pf(a),se=!0,ae=!0}else if(Pe==="virtual-keyboard")se=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ae=!0;else if(Ac[E]){if(!a.isSelectionEditable&&(Se!=null&&Se.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),se=Ac[E].fn(a,...ne),ae=!0}else throw new Error(`Unknown command "${E}"`);return Pe!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||Se!=null&&Se.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),Se!=null&&Se.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),se&&lu(a),ae}function lv(a,y){var b;if(!a)return!1;a.focus(),gp.keypressVibration&&_e()&&navigator.vibrate(C0);const E=Ch(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ne=a.executeCommand(y);return a.scrollIntoView(),ne}qu({performWithFeedback:(a,y)=>lv(a,y)});function sv(a){return pf(a,{atIndex:a.suggestionIndex+1}),!1}function uv(a){return pf(a,{atIndex:a.suggestionIndex-1}),!1}qu({complete:Hd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),qu({nextSuggestion:sv,previousSuggestion:uv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Hf="mathlive#virtual-keyboard-message";function Sh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Hf}var cv=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(Sh(y)){if(!ms(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;Wd(E)==="virtual-keyboard"&&this.executeCommand(E);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(Ee({type:Hf,action:y},b),this.targetOrigin)}},S0={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Zf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},mf;function w0(a,y){var b,E,ne;const ae=ad.singleton;if(!ae)return;const se=jd(a),Se=(E=(b=ae.getKeycap(se==null?void 0:se.id))==null?void 0:b.variants)!=null?E:"";if(typeof Se=="string"&&!A0(Se)||Array.isArray(Se)&&Se.length===0){y==null||y();return}const Pe={};let Te="";for(const jr of fv(Se)){const aa=k0(jr),Hr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Pe[Hr]=aa;const[Di,ua]=Wf(aa);Te+=`<div id=${Hr} class="item ${ua}">${Di}</div>`}const Je=document.createElement("div");Je.setAttribute("aria-hidden","true"),Je.className="MLK__variant-panel",Je.style.height="auto";const Et=Object.keys(Pe).length;let Zt=5;Et===1?Zt=1:Et===2||Et===4?Zt=2:Et===3||Et===5||Et===6?Zt=3:Et>=7&&Et<14&&(Zt=4),Je.style.width=`calc(var(--variant-keycap-length) * ${Zt} + 12px)`,Je.innerHTML=gp.createHTML(Te),wc.open({root:(ne=ae==null?void 0:ae.container)==null?void 0:ne.querySelector(".ML__keyboard"),child:Je}),mf=new AbortController;const{signal:bn}=mf,Ln=a==null?void 0:a.getBoundingClientRect();if(Ln){Ln.top-Je.clientHeight<0&&(Je.style.width="auto",Et<=6?Je.style.height="56px":Et<=12?Je.style.height="108px":Et<=18?Je.style.height="205px":Je.classList.add("compact"));const jr=Math.max(0,Math.min(window.innerWidth-Je.offsetWidth,(Ln.left+Ln.right-Je.offsetWidth)/2)),aa=Ln.top-Je.clientHeight+5;Je.style.transform=`translate(${jr}px, ${aa}px)`,Je.classList.add("is-visible"),requestAnimationFrame(()=>{Je.addEventListener("pointerup",Hr=>{const Di=jd(Hr.target);!(Di!=null&&Di.id)||!Pe[Di.id]||(wh(Pe[Di.id]),vf(),y==null||y(),Hr.preventDefault())},{capture:!0,passive:!1,signal:bn}),Je.addEventListener("pointerenter",Hr=>{const Di=jd(Hr.target);!(Di!=null&&Di.id)||!Pe[Di.id]||Di.classList.add("is-active")},{capture:!0,signal:bn}),Je.addEventListener("pointerleave",Hr=>{const Di=jd(Hr.target);!(Di!=null&&Di.id)||!Pe[Di.id]||Di.classList.remove("is-active")},{capture:!0,signal:bn}),window.addEventListener("pointercancel",()=>{vf(),y==null||y()},{signal:bn}),window.addEventListener("pointerup",()=>{vf(),y==null||y()},{signal:bn})})}}function vf(){mf==null||mf.abort(),mf=null,wc.state==="open"&&wc.close()}function dv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(We))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+We[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(ze))y.push({class:"swatch-button",label:'<span style="background:'+ze[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function A0(a){return Zf[a]!==void 0}function fv(a){var y;return typeof a!="string"?a:(Zf[a]||(Zf[a]=(y=dv(a))!=null?y:[]),Zf[a])}function hv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pv(a){return Object.keys(a).map(y=>`${y} {${hv(a[y])}}`).join("")}function gf(a){if(!a)return"";const y=new Oo,b=new qr({mode:"math",type:"root",body:Bu(a,{context:y,args:ne=>ne==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=Ps(sf(new Pi(b.render(y),{classes:"ML__base"}),y));return gu(E,{classes:"ML__latex"}).toMarkup()}function yf(a){var y;if(Array.isArray(a))return a.map(E=>yf(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ne=>k0(ne)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mv(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const Se=ff();Se&&(E=Se.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[He.locale.slice(0,2)])!=null?a:"qwerty")}const ne={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ae=(y=ne[E])!=null?y:ne.qwerty,se=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const Se of ae){const Pe=[];for(const Te of Se)/[a-z]/.test(Te)?Pe.push({label:Te,class:"hide-shift",shift:{label:Te.toUpperCase()},variants:A0(Te)?Te:void 0}):Te==="~"?E!=="dvorak"?Pe.push("[backspace]"):Pe.push({label:"[backspace]",width:1}):Te==="^"?Pe.push("[shift]"):Te===" "&&Pe.push("[separator-5]");se.push(Pe)}return se.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:yf({rows:se})}}function M0(a){if(a==="alphabetic")return mv();if(typeof a=="string")return console.assert(S0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),M0(S0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ne=a,{rows:ae}=ne,se=Ue(ne,["rows"]);y=fe(Ee({},se),{layers:yf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ne=a,{markup:ae}=ne,se=Ue(ne,["markup"]);y=fe(Ee({},se),{layers:yf(a.markup)})}else y=Ee({},a),"layers"in a?y.layers=yf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ne of y.layers)if(ne.rows)for(const ae of ne.rows.flat()){Ud(ae)&&(b=!0);const se=ae.command;typeof se=="string"&&["undo","redo","cut","copy","paste"].includes(se)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function vv(a,y){var b,E;let ne='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ae,se]of a.normalizedLayouts.entries()){const Se=se,Pe=[ae===y?"selected":"layer-switch"];Se.tooltip&&Pe.push("MLK__tooltip"),Se.labelClass&&Pe.push(...Se.labelClass.split(" ")),ne+=`<div class="${Pe.join(" ")}"`,Se.tooltip&&(ne+=" data-tooltip='"+((b=Oe(Se.tooltip))!=null?b:Se.tooltip)+"' "),ae!==y&&(ne+=`data-layer="${Se.layers[0].id}"`),ne+=`>${(E=Se.label)!=null?E:"untitled"}</div>`}return ne+="</div>",ne}function gv(a,y){let b="";if(a.editToolbar==="none")return"";const ne=[];y.selectionIsCollapsed?ne.push("undo","redo","pasteFromClipboard"):ne.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ae={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${Oe("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${Oe("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${Oe("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${Oe("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${Oe("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ne.map(se=>ae[se]).join(""),b}function yv(a){for(const y of a)bv(y)}function bv(a){const y=ad.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ne]=Wf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xv(){$u("virtual-keyboard"),$u("core"),zf()}function Ev(){x("core"),x("virtual-keyboard")}var Cv=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Sv(a){a.resetKeycapRegistry(),xv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cv+a.normalizedLayouts.map((se,Se)=>wv(a,se,Se)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Mv,{passive:!1});const ne=y.querySelectorAll(".ML__edit-toolbar");if(ne)for(const se of ne)se.addEventListener("click",Se=>{var Pe,Te;let Je=Se.target,Et="";for(;Je&&!Et;)Et=(Pe=Je==null?void 0:Je.getAttribute("data-command"))!=null?Pe:"",Je=(Te=Je==null?void 0:Je.parentElement)!=null?Te:null;Et&&a.executeCommand(JSON.parse(Et))});yv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ae=y.querySelectorAll(".MLK__layer");console.assert(ae.length>0,"No virtual keyboards available");for(const se of ae)se.addEventListener("pointerdown",Se=>Se.preventDefault());return a.currentLayer=a.latentLayer,y}function wv(a,y,b){const E=[];if(!("layers"in y))return"";for(const ne of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ne.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(vv(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Av(a,ne)),E.push("</div>");return E.join("")}function Av(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pv(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ne of E)if(ne){const ae=a.registerKeycap(ne),[se,Se]=Wf(ne);/(^|\s)separator/.test(Se)?b+=`<div class="${Se}"`:b+=`<div tabindex="-1" id="${ae}" class="${Se}"`,ne.tooltip&&(b+=` data-tooltip="${ne.tooltip}"`),b+=`>${se}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Wf(a,y={shifted:!1}){var b,E,ne,ae,se,Se,Pe;let Te="",Je=(b=a.class)!=null?b:"";if(y.shifted&&Ud(a)&&(Je+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Te=gf(a.shift):typeof a.shift=="object"&&(Te=a.shift.label?a.shift.label:(E=gf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Je=(ae=(ne=a.shift.class)!=null?ne:a.class)!=null?ae:"");else{if(Te=a.label?a.label:(se=gf(a.latex||a.insert||"")||a.key)!=null?se:"",a.shift){let Et;typeof a.shift=="string"?Et=gf(a.shift):a.shift.label?Et=a.shift.label:Et=(Se=gf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?Se:"",Te+=`<span class="MLK__shift">${Et}</span>`}a.aside&&(Te+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Je)&&(Je+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Je)||(Je+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Je)&&a.width&&(Je+=(Pe={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?Pe:""),[Te,Je||"MLK__keycap"]}var Ed={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function k0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Ed[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Ed[a.label]&&(b=fe(Ee(Ee({},Ed[a.label]),a),{label:Ed[a.label].label})),"key"in a&&a.key&&Ed[a.key]&&(b=fe(Ee(Ee({},Ed[a.key]),a),{key:Ed[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=Ee(Ee({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var bf;function Mv(a){var y;if(a.button!==0)return;const b=ad.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ne=jd(a.target);if(!(ne!=null&&ne.id))return;const ae=b.getKeycap(ne.id);if(!ae)return;console.assert(a.type==="pointerdown");const se=new AbortController,Se=se.signal;ne.classList.add("is-pressed"),ne.addEventListener("pointerenter",jf(se),{capture:!0,signal:Se}),ne.addEventListener("pointerleave",jf(se),{capture:!0,signal:Se}),ne.addEventListener("pointercancel",jf(se),{signal:Se}),ne.addEventListener("pointerup",jf(se),{signal:Se}),Ud(ae)&&(ne.classList.add("is-active"),b.shiftPressCount++),ae.variants&&(bf&&clearTimeout(bf),bf=setTimeout(()=>{ne.classList.contains("is-pressed")&&(ne.classList.remove("is-pressed"),ne.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),w0(ne,()=>{se.abort(),ne==null||ne.classList.remove("is-active")}))},300)),a.preventDefault()}function jf(a){return y=>{const b=jd(y.target);if(!(b!=null&&b.id))return;const E=ad.singleton;if(!E)return;const ne=E.getKeycap(b.id);if(ne){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Ud(ne)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Ud(ne)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){bf&&clearTimeout(bf),Ud(ne)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ne.shift?typeof ne.shift=="string"?E.executeCommand(["insert",ne.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):wh(ne.shift):wh(ne),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function wh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=ad.singleton)==null||y.executeCommand(b)}function kv(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function jd(a){if(!a)return;let y=a;for(;y&&!kv(y);)y=y.parentElement;return y!=null?y:void 0}function Ud(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var ad=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ne=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ne){window.addEventListener("message",this)}document.body.addEventListener("focusin",ne=>{const ae=ne.target;ae!=null&&ae.isConnected&&setTimeout(()=>{const se=B0();se&&!se.readOnly&&se.mathVirtualKeyboardPolicy==="auto"&&Qe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ne=>{ne.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{B0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ne of E.layers)if(ne.id===y)return ne}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ne=>ne==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ne=>M0(ne))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ne=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ne}px)`:`${ne}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const E of b){const ne=this.getKeycap(E.id);if(ne){const[ae,se]=Wf(ne,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ae),E.className=se}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ne=this._element.getElementsByClassName("MLK__plate")[0];if(ne&&this.observer.observe(ne),E===window.document.body){const ae=E.style.paddingBottom;this.originalContainerBottomPadding=ae;const se=ne.offsetHeight-1;E.style.paddingBottom=ae?`calc(${ae} + ${se}px)`:`${se}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ne;return(ne=this._element)==null?void 0:ne.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ne=this._element.getElementsByClassName("MLK__plate")[0];ne&&this.observer.unobserve(ne),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),vf(),Ev(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Sv(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&w0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Sh(y)){if(!ms(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ne}=y,ae=Wd(ne);if(window.top!==void 0&&ae!=="virtual-keyboard")return;this.executeCommand(ne);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:Ee({type:Hf,action:y},b)}));return}if(E)E.postMessage(Ee({type:Hf,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ne=b.command[1].split("");for(const ae of ne)this.dispatchEvent(new KeyboardEvent("keydown",{key:ae,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ae,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ne of E)ne.innerHTML=gv(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ne=Wd(y);return De(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ne=Wd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ae=>ae[1].toUpperCase()),ne==="virtual-keyboard"?Ac[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function B0(){var a,y;let b=Nf(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(rt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=ad.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cv.singleton,configurable:!0});function Uf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(De(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ae,se]=E.split(",").map(Se=>parseInt(Se.trim()));y.scriptDepth=[ae,se]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ne=a.mathVirtualKeyboardPolicy.toLowerCase();if(ne==="sandboxed"){if(window!==window.top){const ae=ad.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ae})}ne="manual"}y.mathVirtualKeyboardPolicy=ne;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?He.locale.startsWith("fr")?y.letterShapeStyle="french":y.letterShapeStyle="tex":y.letterShapeStyle=a.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(a.defaultMode)?y.defaultMode=a.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),y.defaultMode="math");break;case"macros":y.macros=Dt(a.macros);break;default:De(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=Ee({},a[b]):y[b]=a[b]}return y}function Cd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ne of b)a[ne]===null?E[ne]=null:De(a[ne])?E[ne]=[...a[ne]]:typeof a[ne]=="object"&&!(a[ne]instanceof Element)&&ne!=="computeEngine"?E[ne]=Ee({},a[ne]):E[ne]=a[ne];return typeof y=="string"?E[y]:E}function Vf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ze,backgroundColorMap:Ae,letterShapeStyle:He.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:a=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(a),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Ld,inlineShortcuts:_c,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:hd,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function od(a,y){!a||!y||(De(a)?a.forEach(b=>od(b,y)):typeof a=="object"&&!a.style.color&&!a.style.backgroundColor&&!a.style.fontFamily&&!a.style.fontShape&&!a.style.fontSeries&&!a.style.fontSize&&!a.style.variant&&!a.style.variantStyle&&(a.applyStyle(y),od(a.body,y),od(a.above,y),od(a.below,y),od(a.subscript,y),od(a.superscript,y)))}function Ah(a,y,b,E){function ne(se,Se){for(const Pe of ae)if(Pe.style[se]!==Se)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ae=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ne("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ne("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ne("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ne("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ne("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ne("fontSize",b.fontSize)&&(b.fontSize=Fi),b.variant&&ne("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ne("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const se of ae)se.applyStyle(b);return!0}function Bv(a,y){const b=a.at(a.position);if(b.type==="composition")b.value=y;else{const{caret:E}=b;b.caret=void 0;const ne=new Wc(y,{mode:b.mode});ne.caret=E,b.parent.addChildAfter(ne,b),a.position+=1}}function Dv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}Mt(["math","displaymath"],hc),Mt("center",hc),qt("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new Pl("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Wt("array","{columns:colspec}",(a,y,b,E)=>new Pl(a,Mh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Wt(["equation","equation*","subequations"],"",(a,y,b)=>new Pl(a,Mh(y),b,{columns:[{align:"c"}]})),Wt(["multline","multline*"],"",hc),Wt(["align","align*","aligned","eqnarray"],"",hc),Wt("split","",hc),Wt(["gather","gathered"],"",hc),Wt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",hc),Wt(["smallmatrix","smallmatrix*"],"[columns:colspec]",hc),Wt(["cases","dcases","rcases"],"",hc);function Pv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Mh(a,y=1){return Pv(a)?Array(y).fill([[new qr({type:"first"}),new qo]]):a.map(b=>b.length===0?[[new qr({type:"first"})]]:b.map(E=>E.length===0?[new qr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new qr({type:"first"})),E)))}function hc(a,y=[[[]]],b=[],E=[]){switch(y=Mh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new Pl(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new Pl(a,y,b,{mathstyleName:"textstyle"});case"center":return new Pl(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new Pl(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Pl(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Pl(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Sd(E[0])});case"bmatrix":case"bmatrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Sd(E[0])});case"Bmatrix":case"Bmatrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Sd(E[0])});case"vmatrix":case"vmatrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Sd(E[0])});case"Vmatrix":case"Vmatrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Sd(E[0])});case"matrix":case"matrix*":return new Pl(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Sd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new Pl(a,y,b,{mathstyleName:"scriptstyle",columns:Sd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Pl(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Pl(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Pl(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ne=0;for(const Se of y)ne=Math.max(ne,Se.length);const ae=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let se=2;for(;se<ne;)ae.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),se+=2;return ae.push({gap:0}),new Pl(a,y,b,{arraycolsep:0,columns:ae,minColumns:2})}}return new Pl(a,y,b,{mathstyleName:"textstyle"})}function Sd(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Iv(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof Pl);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof Pl)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ne=a.extractAtoms([a.position,a.lastOffset]),ae=a.extractAtoms([0,a.position]);ae.length===0&&(ae=Yf()),ne.length===0&&(ne=Yf());let se;return y.endsWith("column")?(se=hc("split",[[ae,ne]]),a.root=se,wd(se,0,0)?Ad(a,se,0,0):wd(se,0,1)?Ad(a,se,0,1):a.position=a.offsetOf(E)):(se=hc("lines",[[ae],[ne]]),a.root=se,wd(se,0,0)?Ad(a,se,0,0):wd(se,1,0)?Ad(a,se,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof ls){const ne=b.parent;let ae=a.extractAtoms([a.position,a.offsetOf(ne.lastChild)]),se=a.extractAtoms([a.offsetOf(ne.firstChild),a.position]);se.length===0&&(se=Yf()),ae.length===0&&(ae=Yf());let Se="pmatrix";const Pe=ne.leftDelim,Te=ne.rightDelim;Pe==="("&&(Te===")"||Te==="?")?Se="pmatrix":(Pe==="["||Pe==="\\lbrack")&&(Te==="]"||Te==="\\rbrack"||Te==="?")?Se="bmatrix":Pe==="\\vert"&&Te==="\\vert"?Se="vmatrix":Pe==="\\Vert"&&Te==="\\Vert"?Se="Vmatrix":(Pe==="{"||Pe==="\\lbrace")&&(Te==="."||Te==="?")&&(Se="cases");const Je=hc(Se,y.endsWith("column")?[[se,ae]]:[[se],[ae]]);return ne.parent.addChildBefore(Je,ne),ne.parent.removeChild(ne),wd(Je,0,0)?Ad(a,Je,0,0):y.endsWith("column")?wd(Je,0,1)?Ad(a,Je,0,1):a.position=a.offsetOf(b):wd(Je,1,0)?Ad(a,Je,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof Pl?[b.parent,b.parentBranch]:[void 0,[0,0]]}function wd(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Fv(a,y,b,E){const ne=y.getCell(b,E);return ne?[a.offsetOf(ne[0]),a.offsetOf(ne[ne.length-1])]:-1}function Ad(a,y,b,E){const ne=Fv(a,y,b,E);typeof ne!="number"&&a.setSelection(ne)}function Gf(a,y,b,E,ne){const ae=y.getCell(b,E);ae&&a.setPositionHandlingPlaceholder(a.offsetOf(ae[ne==="start"?0:ae.length-1]))}function Qf(a,y){const[b,[E,ne]]=Iv(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Gf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ne),Gf(a,b,E,ne+1,"end");break;case"before row":b.addRowBefore(E),Gf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ne),Gf(a,b,E,ne,"start");break}}function P0(a){return a.contentWillChange({inputType:"insertText"})?(Qf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ov(a){return a.contentWillChange({inputType:"insertText"})?(Qf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Qf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Nv(a){return a.contentWillChange({inputType:"insertText"})?(Qf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function F0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ne=a.at(a.position),ae=ne.type==="array"?ne:a.parentEnvironment;return ae.environmentName=y,ae.leftDelim=b,ae.rightDelim=E,a.contentDidChange({}),!0}function O0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof Pl);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof Pl){const E=b.parent,ne=b.parentBranch;let ae;switch(y){case"row":if(E.rowCount>1){E.removeRow(ne[0]);const se=E.getCell(Math.max(0,ne[0]-1),ne[1]);ae=a.offsetOf(se[se.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ne[1]);const se=E.getCell(ne[0],Math.max(0,ne[1]-1));ae=a.offsetOf(se[se.length-1])}break}ae&&a.setPositionHandlingPlaceholder(ae)}}function Lv(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Tv(a){return a.contentWillChange({inputType:"deleteContent"})?(O0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}qu({addRowAfter:P0,addColumnAfter:I0,addRowBefore:Ov,addColumnBefore:Nv,removeRow:Lv,removeColumn:Tv,setEnvironment:F0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Yf(){return[new qo]}var N0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};N0.maximumDepth=1e3;var Rv=N0;function kh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ne;if(pe.test(a.at(y).value)){let ae=y,se;do se=a.at(ae).mode==="text"&&pe.test(a.at(ae).value),ae+=E;while(a.at(ae)&&se);ne=a.at(ae)?ae-2*E:ae-E}else if(/\s/.test(a.at(y).value)){let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value);)ae+=E;if(!a.at(ae))ne=ae-E;else{let se=!0;do se=a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value),ae+=E;while(a.at(ae)&&se);ne=a.at(ae)?ae-2*E:ae-E}}else{let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value);)ae+=E;ne=a.at(ae)?ae:ae-E;let se=!0;for(;a.at(ae)&&se;)se=a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value),se&&(ne=ae),ae+=E;ne=a.at(ae)?ae-2*E:ae-E}return ne-(E>0?0:1)}function Vd(a,y,b){var E,ne,ae,se,Se,Pe,Te;const Je=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let Et=a.at(a.position);if(y==="forward"&&(Et.type==="subsup"?(Et=Et.rightSibling,Et||(Et=a.at(a.position+1))):Et=a.at(a.position+1)),!Et)return a.announce("plonk"),!1;let Zt=a.offsetOf(Et);if(Et instanceof Ju)Zt=kh(a,Zt,y);else if(Et instanceof Nu)if(Et.isSuggestion)for(console.assert(y==="forward");Et&&Et instanceof Nu;)Et.isSuggestion=!1,Zt=a.offsetOf(Et),Et=Et.rightSibling;else if(y==="forward"){if(Et=Et.rightSibling,!Et||!(Et instanceof Nu))return a.announce("plonk"),!1;for(;Et&&Et instanceof Nu&&/[a-zA-Z\*]/.test(Et.value);)Zt=a.offsetOf(Et),Et=Et.rightSibling}else{if(Et=Et.leftSibling,!Et||!(Et instanceof Nu))return a.announce("plonk"),!1;for(;Et&&Et instanceof Nu&&/[a-zA-Z\*]/.test(Et.value);)Zt=a.offsetOf(Et),Et=Et.leftSibling}else if(y==="forward"&&Et.type==="mopen"){let bn=0;do Et.type==="mopen"?bn+=1:Et.type==="mclose"&&(bn-=1),Et=Et.rightSibling;while(!Et.isLastSibling&&bn!==0);Zt=a.offsetOf(Et.leftSibling)}else if(y==="backward"&&Et.type==="mclose"){let bn=0;do Et.type==="mopen"?bn+=1:Et.type==="mclose"&&(bn-=1),Et=Et.leftSibling;while(!Et.isFirstSibling&&bn!==0);Zt=a.offsetOf(Et)}else if(y==="backward")if(Et.type==="first")for(;Zt>0&&Et.type==="first";)Zt-=1,Et=a.at(Zt);else{const bn=Et.type;Et.type==="subsup"&&(Zt=a.offsetOf(a.at(Zt).leftSibling)),Zt-=1;let Ln=(ne=a.at(Zt))==null?void 0:ne.type;for(;Zt>=0&&Ln===bn;)((ae=a.at(Zt))==null?void 0:ae.type)==="subsup"?Zt=a.offsetOf(a.at(Zt).leftSibling):Zt-=1,Ln=a.at(Zt).type}else{const{type:bn}=Et;let Ln=(se=a.at(Zt))==null?void 0:se.type;const{lastOffset:jr}=a;for(;Zt<=jr&&(Ln===bn||Ln==="subsup");){for(;((Se=a.at(Zt).rightSibling)==null?void 0:Se.type)==="subsup";)Zt=a.offsetOf(a.at(Zt).rightSibling);Zt+=1,Ln=(Pe=a.at(Zt))==null?void 0:Pe.type}Zt-=1}if((Te=b==null?void 0:b.extend)!=null&&Te){if(!a.setSelection(a.anchor,Zt))return a.announce("plonk"),!1}else{if(Zt===a.position)return a.announce("plonk"),!1;a.position=Zt}return a.announce("move",Je),a.mathfield.stopCoalescingUndo(),!0}function Mc(a,y,b){var E,ne;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[Se,Pe]=v0(a);Se!==void 0&&Pe!==void 0&&a.deleteAtoms([Se,Pe])}if(y==="upward")return zv(a,b);if(y==="downward")return Kv(a,b);if(b.extend){let Se=Xf(a,a.position,y);Se<0&&(Se=0),Se>a.lastOffset&&(Se=a.lastOffset);const Pe=a.setSelection(a.anchor,Se);return a.mathfield.stopCoalescingUndo(),Pe}if(a.selectionIsPlaceholder){a.collapseSelection(y);const Se=Mc(a,y);return a.mathfield.stopCoalescingUndo(),Se}let ae=a.position;const se=ae;if(a.collapseSelection(y)?(ae=a.position,L0(a,ae)||(ae=Xf(a,ae,y))):ae=Xf(a,ae,y),ae<0||ae>a.lastOffset){let Se=!0;return a.silenceNotifications||(Se=(ne=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ne:!0),Se&&a.announce("plonk"),Se}return a.setPositionHandlingPlaceholder(ae),a.mathfield.stopCoalescingUndo(),a.announce("move",se),!0}function Xf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||L0(a,y)?y:Xf(a,y,b)}function L0(a,y){var b;const E=a.at(y);let ne=E.parent;for(;ne&&!ne.inCaptureSelection;)ne=ne.parent;return!(ne!=null&&ne.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function _v(a,y,b){let E=1/0,ne=0;for(;ne<y.length;ne++){const ae=Ou(a.getHTMLElement(y[ne])).right,se=Math.abs(b-ae);if(se<=E)E=se;else break}return y[ne-1]}function Jf(a,y,b,E,ne){const ae=a.mathfield.hasEditablePrompts,se=ae?b.filter(Te=>Te.type==="prompt"&&!Te.captureSelection):b,Se=Ou(a.mathfield.getHTMLElement(y)).right,Pe=a.offsetOf(_v(a.mathfield,se,Se))-(ae?1:0);if(E){const[Te,Je]=a.selection.ranges[0];let Et;Pe<(ne==="up"?Te:Je)?Et={ranges:[[Pe,Je]],direction:"backward"}:Et={ranges:[[Te,Pe]],direction:"forward"},a.setSelection(Et)}else a.setPositionHandlingPlaceholder(Pe);a.announce(`move ${ne}`)}function zv(a,y){var b,E;const ne=(b=y==null?void 0:y.extend)!=null?b:!1;ne||a.collapseSelection("backward");const ae=()=>{var Pe,Te;let Je=!0;return a.silenceNotifications||(Je=(Te=(Pe=a.mathfield.host)==null?void 0:Pe.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Te:!0),a.announce(Je?"plonk":"line"),Je},se=a.at(a.position);let Se=se;for(;Se&&Se.parentBranch!=="below"&&!(Array.isArray(Se.parentBranch)&&Se.parent instanceof Pl);)Se=Se.parent;if(Array.isArray(Se==null?void 0:Se.parentBranch)&&Se.parent instanceof Pl){const Pe=Se.parent;if(Se.parentBranch[0]<1)return ae();const Te=Se.parentBranch[0]-1,Je=Pe.array[Te][Se.parentBranch[1]];if(!Je.some(Zt=>Zt.type==="prompt"&&!Zt.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Je,ne,"up")}else if(Se){const Pe=(E=Se.parent.branch("above"))!=null?E:Se.parent.createBranch("above");if(!Pe.some(Je=>Je.type==="prompt"&&Je.placeholderId)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Pe,ne,"up")}else return ae();return a.mathfield.stopCoalescingUndo(),!0}function Kv(a,y){var b,E;const ne=(b=y==null?void 0:y.extend)!=null?b:!1;ne||a.collapseSelection("forward");const ae=()=>{var Pe,Te;let Je=!0;return a.silenceNotifications||(Je=(Te=(Pe=a.mathfield.host)==null?void 0:Pe.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Te:!0),a.announce(Je?"plonk":"line"),Je},se=a.at(a.position);let Se=se;for(;Se&&Se.parentBranch!=="above"&&!(Array.isArray(Se.parentBranch)&&Se.parent instanceof Pl);)Se=Se.parent;if(Array.isArray(Se==null?void 0:Se.parentBranch)&&Se.parent instanceof Pl){const Pe=Se.parent;if(Se.parentBranch[0]+1>Pe.array.length-1)return ae();const Te=Se.parentBranch[0]+1,Je=Pe.array[Te][Se.parentBranch[1]];if(!Je.some(Zt=>Zt.type==="prompt"&&!Zt.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Je,ne,"down")}else if(Se){const Pe=(E=Se.parent.branch("below"))!=null?E:Se.parent.createBranch("below");if(!Pe.some(Je=>Je.type==="prompt")&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Pe,ne,"down")}else return ae();return!0}function T0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Hv(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Zv(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function R0(a){var y;if(a.collapseSelection(),Hv(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new dc({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function _0(a){var y;if(a.collapseSelection(),Zv(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new dc({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Wv(){function a(Pe){const Te=[],Je=[];return[...Pe.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((Zt,bn)=>{const Ln=E(Zt);Ln===0?Te.push(Zt):Je.push({documentOrder:bn,tabIndex:Ln,node:Zt})}),Je.sort((Zt,bn)=>Zt.tabIndex===bn.tabIndex?Zt.documentOrder-bn.documentOrder:Zt.tabIndex-bn.tabIndex).map(Zt=>Zt.node).concat(Te)}function y(Pe){return!(!b(Pe)||ne(Pe)||E(Pe)<0)}function b(Pe){return!(Pe.disabled||Pe.type==="hidden"&&Pe.tagName.toUpperCase()==="INPUT"||Se(Pe))}function E(Pe){var Te;const Je=Number.parseInt((Te=Pe.getAttribute("tabindex"))!=null?Te:"NaN",10);return Number.isNaN(Je)?Pe.contentEditable==="true"||(Pe.nodeName==="AUDIO"||Pe.nodeName==="VIDEO")&&Pe.getAttribute("tabindex")===null?0:Pe.tabIndex:Je}function ne(Pe){return Pe.tagName.toUpperCase()==="INPUT"&&Pe.type==="radio"&&!se(Pe)}function ae(Pe,Te){for(const Je of Pe)if(Je.checked&&Je.form===Te)return Je;return null}function se(Pe){var Te;if(!Pe.name)return!0;const Et=((Te=Pe.form)!=null?Te:Pe.ownerDocument).querySelectorAll('input[type="radio"][name="'+Pe.name+'"]'),Zt=ae(Et,Pe.form);return!Zt||Zt===Pe}function Se(Pe){if(!rt()||Pe===document.activeElement||Pe.contains(document.activeElement))return!1;if(getComputedStyle(Pe).visibility==="hidden")return!0;const Te=Pe.getBoundingClientRect();if(Te.width===0||Te.height===0)return!0;for(;Pe;){if(getComputedStyle(Pe).display==="none")return!0;Pe=Pe.parentElement}return!1}return rt()?a(document.body):[]}function Vu(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ne=a.offsetOf(y[0]),ae=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ne,ae):a.setSelection(ae,ne),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?Vu(a,[y.leftSibling,y]):Vu(a,[y,y.leftSibling])}function bc(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function $f(a,y,b=!0){var E,ne;const ae=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Mc(a,y);let se;const Se=a.at(a.anchor).parentPrompt;Se?y==="forward"?se=a.offsetOf(Se)+1:se=a.offsetOf(Se.leftSibling):se=Math.max(a.position+ae,0);const Pe=Bh(a,se,y);if(!Pe||y==="forward"&&a.offsetOf(Pe)<se||y==="backward"&&a.offsetOf(Pe)>se){if(!b||!((ne=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ne))return a.announce("plonk"),!1;const Je=Wv();if(!document.activeElement||Je.length<=1)return a.announce("plonk"),!1;let Et=Je.indexOf(document.activeElement)+ae;return Et<0&&(Et=Je.length-1),Et>=Je.length&&(Et=0),Je[Et].focus(),a.mathfield.stopCoalescingUndo(),!0}return bc(a,Pe),!0}function Bh(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}qu({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ne=b.parentBranch;let ae;if(typeof ne=="string"&&(ae=y[ne]),!ae){const Se=b.subsupPlacement?_0(a):R0(a);return a.mathfield.stopCoalescingUndo(),Se}E.branch(ae)||E.createBranch(ae);const se=a.setSelection(a.getBranchRange(a.offsetOf(E),ae));return a.mathfield.stopCoalescingUndo(),se},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>T0(a),moveToNextChar:a=>Mc(a,"forward"),moveToPreviousChar:a=>Mc(a,"backward"),moveUp:a=>Mc(a,"upward"),moveDown:a=>Mc(a,"downward"),moveToNextWord:a=>Vd(a,"forward"),moveToPreviousWord:a=>Vd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ne;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return $f(a,"forward");const ae=a.at(a.position);if(ae.mode==="text"){if(a.selectionIsCollapsed){let Zt=ae;for(;Zt&&Zt.mode==="text";)Zt=Zt.leftSibling;let bn=ae;for(;((y=bn.rightSibling)==null?void 0:y.mode)==="text";)bn=bn.rightSibling;if(Zt&&bn)return Vu(a,[Zt,bn])}if(ae.rightSibling.mode==="text"){let Zt=ae;for(;Zt&&Zt.mode==="text";)Zt=Zt.rightSibling;return Zt?(bc(a,(b=Zt.leftSibling)!=null?b:Zt),a.mathfield.switchMode("math"),!0):bc(a,a.lastOffset)}}const Se=a.at(a.anchor).parentPrompt,Pe=Se?a.offsetOf(Se)+1:Math.max(a.position+1,0),Te=Bh(a,Pe,"forward");if(Te)return bc(a,Te);const Je=z0(a,ae,Zt=>Zt.type==="leftright"||Zt.type==="text","forward");if(Je){if(Je.mode==="text"){let Zt=Je;for(;Zt&&Zt.mode==="text";)Zt=Zt.rightSibling;return Vu(a,[(E=Je.leftSibling)!=null?E:Je,(ne=Zt.leftSibling)!=null?ne:Zt])}return Vu(a,Je)}const Et=ae.parent;if(Et){if(Et.type==="leftright"||Et.type==="surd")return Vu(a,Et);if(ae.parentBranch==="superscript"&&Et.subscript)return Vu(a,Et.subscript);if(ae.parentBranch==="above"&&Et.below)return Vu(a,Et.below);if(ae.parentBranch==="superscript"||ae.parentBranch==="subscript")return bc(a,Et);if(ae.parentBranch==="above"||ae.parentBranch==="below")return Vu(a,Et)}return bc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return $f(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let Se=b;for(;Se&&Se.mode==="text";)Se=Se.leftSibling;let Pe=b;for(;((y=Pe.rightSibling)==null?void 0:y.mode)==="text";)Pe=Pe.rightSibling;if(Se&&Pe)return Vu(a,[Se,Pe])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?bc(a,b):bc(a,0)}const ne=a.at(a.anchor).parentPrompt,ae=ne?a.offsetOf(ne.leftSibling):Math.max(a.position-1,0),se=Bh(a,ae,"backward");if(se)return bc(a,se);if(E==="math"){const Se=z0(a,b,Te=>Te.type==="leftright"||Te.type==="text","backward");if(Se){if(Se.mode==="text"){let Te=Se;for(;Te&&Te.mode==="text";)Te=Te.leftSibling;return Vu(a,[Se,Te])}return Vu(a,Se)}const Pe=b.parent;if(Pe){if(Pe.type==="leftright"||Pe.type==="surd")return Vu(a,Pe);if(b.parentBranch==="subscript"&&Pe.superscript)return Vu(a,Pe.superscript);if(b.parentBranch==="below"&&Pe.above)return Vu(a,Pe.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return bc(a,Pe);if(b.parentBranch==="above"||b.parentBranch==="below")return Vu(a,Pe)}return bc(a,0)}return!1},moveToMathfieldStart:a=>a.selectionIsCollapsed&&a.position===0?(a.announce("plonk"),!1):(a.position=0,a.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:a=>a.selectionIsCollapsed&&a.position===a.lastOffset?(a.announce("plonk"),!1):(a.position=a.lastOffset,a.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:R0,moveToSubscript:_0},{target:"model",changeSelection:!0}),qu({moveToNextPlaceholder:a=>$f(a,"forward"),moveToPreviousPlaceholder:a=>$f(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function z0(a,y,b,E){if(E==="forward"){let ae=y.rightSibling;for(;ae&&!b(ae);)ae=ae.rightSibling;return ae}let ne=y.leftSibling;for(;ne&&!b(ne);)ne=ne.leftSibling;return ne}function qf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ne=!1,ae="";for(;!ne;){const se=a.at(E);ne=y===0||se===void 0||se.type==="first"||se.mode!=="math"||!(se.type&&/mord|mpunct|operator/.test(se.type)||se.type==="mop"&&/[a-zA-Z ]+/.test(se.value))||!se.hasEmptyBranch("superscript")||!se.hasEmptyBranch("subscript")||typeof b=="function"&&!b(se),ne||(se.mode="text",se.command=se.value,se.verbatimLatex=void 0,ae+=se.value),E-=1,y-=1}a.contentDidChange({data:ae,inputType:"insertText"})}function Md(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ne=!1;const ae=[];for(;!ne;){const se=a.at(E);ne=y===0||!se||se.type==="first"||se.isFirstSibling||se.mode!=="text"||se.value===" "||typeof b=="function"&&!b(se),ne||(ae.push(qr.serialize([se],{defaultMode:"math"})),se.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:ol(ae),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function jv(a){let y="",b=a.position,E=!1;for(;!E;){const ne=a.at(b);E=!(ne&&(ne.mode==="text"||ne.mode==="math"&&ne.type&&/mord|mpunct/.test(ne.type))),E||(y=ne.value+y),b-=1}return y}function Uv(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Of(b))return!1;const ne=Kd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ne));const ae=jv(E)+ne;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ne))return!0;if(/[\^_]/.test(ne))return/(^|\s)[a-zA-Z][^_]$/.test(ae)&&Md(E,1),!0;const se={")":"(","}":"{","]":"["}[ne],{parent:Se}=E.at(E.position);if(se&&Se instanceof ls&&Se.leftDelim===se)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ae))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ne))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(ae))return Md(E,1),!1;if(/\D\.[^\d\s]$/.test(ae)){Md(E,1);const Pe=E.at(E.position);return Pe.value="\u22C5",Pe.style.variant="normal",Pe.command="\\cdot",Pe.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ae)||/\.\d$/.test(ae)||/\([\d+\-.]$/.test(ae))return Md(E,1),!0;if(/\([a-z][,;]$/.test(ae))return Md(E,2),!0;if(/[\d+\-=><*|]$/.test(ne))return Dh(E),!0}else{if(y==="[Space]")return qf(E,void 0,se=>/[a-z][:,;.]$/.test(se.value)),!0;if(/[a-zA-Z]{3,}$/.test(ae)&&!/(dxd|abc|xyz|uvw)$/.test(ae))return qf(E,void 0,se=>/[a-zA-Z]/.test(se.value)),!0;if(/(^|\W)(if)$/i.test(ae))return qf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(ae)&&!/(αβγ)$/.test(ae))return qf(E,void 0,se=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(se.value)),!0;if(ne==="?"||ne==="."&&!/[\d-+]\.$/.test(ae))return!0}return!1}function Vv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=K0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(gh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=K0();y.innerHTML=""}else{const y=Tf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function K0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||($u("keystroke-caption"),$u("core"),Tf("mathlive-keystroke-caption-panel"))}function Qv(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function H0(a,y){var b,E,ne;const{model:ae}=a,se=p0(y);if(y.isTrusted){Rm(y);const bn=ff();a.keyboardLayout!==bn.id&&(a.keyboardLayout=bn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vv(a,se),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let Se,Pe="",Te;const Je=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ae.mode==="math")if(se==="[Backspace]")Je.pop();else if(!Of(y))a.flushInlineShortcutBuffer();else{const bn=Kd(y),Ln=[...(E=(b=Je[Je.length-1])==null?void 0:b.keystrokes)!=null?E:[],bn];Je.push({state:ae.getState(),keystrokes:Ln,leftSiblings:Yv(a)});let jr=0,aa="";for(;!Se&&jr<Ln.length;)Te=Je.length-(Ln.length-jr),aa=Ln.slice(jr).join(""),Se=$c(Je[Te].leftSiblings,aa,a.options.inlineShortcuts),!Se&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(aa)&&(Se=a.options.onInlineShortcut(a,aa)),jr+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(Se?a.switchMode("math"):Uv(a,se,y)&&(a.switchMode({math:"text",text:"math"}[ae.mode]),Pe=""))}if(!Se){if(Pe||(Pe=jm(a.keybindings,ae.mode,y)),!Pe&&(se==="[Enter]"||se==="[Return]")){let bn=!1;return ae.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(bn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),bn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ae.contentDidChange({inputType:"insertLineBreak"})),bn}if((!Pe||se==="[Space]")&&ae.mode==="math"){if(se==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return pl.insert(ae,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),Pe="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const bn=ae.at(ae.position+1),Ln=ae.at(ae.position-1);if((bn==null?void 0:bn.mode)==="text"||(Ln==null?void 0:Ln.mode)==="text")return pl.insert(ae," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ne=ae.at(ae.position))!=null&&ne.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Kd(y)===","&&(Pe="insertDecimalSeparator")}}if(!Se&&!Pe){if(ae.mathfield.smartFence){if(Ih(ae,Kd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:bn}=ae.at(ae.position);if(bn instanceof ls&&bn.rightDelim==="?"&&ae.at(ae.position).isLastSibling&&/^[)}\]|]$/.test(se))return a.snapshot(),bn.isDirty=!0,bn.rightDelim=se,ae.position+=1,ae.selectionDidChange(),ae.contentDidChange({data:Kd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ae.selectionIsCollapsed){const Ln=Kd(y);if(Ln==="("||Ln==="{"||Ln==="["){const jr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Ln],aa={"(":")","{":"\\rbrace","[":"\\rbrack"}[Ln],[Hr,Di]=iu(ae.selection);return a.snapshot(),ae.position=Di,pl.insert(ae,aa,{format:"latex"}),ae.position=Hr,pl.insert(ae,jr,{format:"latex"}),ae.setSelection(Hr+1,Di+1),ae.contentDidChange({data:Ln,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const Et=ae.at(Math.max(ae.position,ae.anchor)),{parent:Zt}=Et;if(Pe==="moveAfterParent"&&(Zt==null?void 0:Zt.type)==="leftright"&&Et.isLastSibling&&a.options.smartFence&&Ih(ae,".",a.defaultStyle)&&(Pe="",lu(a)),a.keyboardDelegate.cancelComposition(),Pe)a.executeCommand(Pe);else if(Se){const bn=a.effectiveStyle;ae.setState(Je[Te].state);const Ln=Je[Je.length-1].keystrokes;for(const jr of Ln)pl.insert(ae,jr,{silenceNotifications:!0,style:bn});a.snapshot("insert-shortcut"),ae.setState(Je[Te].state),ae.deferNotifications({content:!0,selection:!0,data:Se,type:"insertText"},()=>(pl.insert(ae,Se,{format:"latex",style:bn}),Dh(a.model),Se.endsWith(" ")&&(a.switchMode("text"),pl.insert(ae," ",{style:bn,mode:"text"})),a.snapshot(),ae.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ae.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Ph(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ne=_s(y);const ae=window.mathVirtualKeyboard;if(ae!=null&&ae.isShifted&&(ne=typeof ne=="string"?ne.toUpperCase():ne.map(Pe=>Pe.toUpperCase())),b.simulateKeystroke){let Pe=!0;for(const Te of ne)H0(a,new KeyboardEvent("keypress",{key:Te}))&&(Pe=!1);if(Pe)return}const se=E.at(E.position),Se=Ee(Ee({},se.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(iu(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Lf(a);for(const Pe of ne)pl.insert(E,Pe);a.snapshot("insert-latex"),pf(a)});else if(E.mode==="text"){for(const Pe of ne)pl.insert(E,Pe,{style:Se});a.snapshot("insert-text")}else if(E.mode==="math")for(const Pe of ne)Xv(a,Pe,Se,se);a.dirty=!0,a.scrollIntoView()}function Yv(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Xv(a,y,b,E){const ne=a.model;let ae={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ae=["insert",a.options.mathModeSpace]),ae){a.executeCommand(ae);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Jv(ne),pl.insert(ne,y,{style:b}),a.snapshot(),T0(ne),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const se=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(se==null?void 0:se.type)==="mord"&&/[a-zA-Z0-9]/.test(se.value)&&(b=Ee({},b),se.style.variant&&(b.variant=se.style.variant),se.style.variantStyle&&(b.variantStyle=se.style.variantStyle))}pl.insert(ne,y,{style:b}),a.snapshot(`insert-${ne.at(ne.position).type}`)}function Jv(a){a.selectionIsCollapsed||(a.deleteAtoms(iu(a.selection)),a.mathfield.snapshot("delete"))}function Ih(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ne}=E,ae={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ae)return!1;const se=re[ae],Se=ie[ae];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[Pe,Te]=iu(a.selection),Je=a.extractAtoms([Pe,Te]),Et=ne.addChildrenAfter([new ls("left...right",Je,{leftDelim:ae,rightDelim:Se})],a.at(Pe));return a.setSelection(a.offsetOf(Et.firstChild),a.offsetOf(Et.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ae==="|"){const Pe=ne instanceof ls?ne.leftDelim+ne.rightDelim:"";if(Pe==="\\lbrace\\rbrace"||Pe==="\\{\\}"||Pe==="\\lbrace?")return a.mathfield.snapshot(),pl.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(Se){if(ne instanceof ls&&ne.firstChild===E&&(ne.leftDelim==="?"||ne.leftDelim==="."))return ne.leftDelim=ae,ne.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ne instanceof ls)){let Et=E;for(;Et&&!(Et.type==="mclose"&&Et.value===Se);)Et=Et.rightSibling;if(Et){a.mathfield.snapshot();const Zt=a.extractAtoms([a.offsetOf(E),a.offsetOf(Et)]);return Zt.pop(),ne.addChildrenAfter([new ls("left...right",Zt,{leftDelim:ae,rightDelim:Se})],E),a.position=a.offsetOf(ne.firstChild)+1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const Pe=a.offsetOf(E.lastSibling);let Te;for(Te=a.position;Te<=Pe;Te++){const Et=a.at(Te);if(Et instanceof ls&&(Et.leftDelim==="?"||Et.leftDelim===".")&&Z0(ae,Et.rightDelim))break}const Je=a.at(Te);if(Te<=Pe&&Je instanceof ls){Je.leftDelim=ae,a.mathfield.snapshot();let Et=a.extractAtoms([a.position,Te-1]);return Et=Et.filter(Zt=>Zt.type!=="first"),Je.addChildren(Et,Je.parentBranch),a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ne instanceof ls&&(ne.leftDelim==="?"||ne.leftDelim===".")&&Z0(ae,ne.rightDelim)){ne.isDirty=!0,ne.leftDelim=ae,a.mathfield.snapshot();const Et=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const Zt of Et)ne.parent.addChildBefore(Zt,ne);return a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ne instanceof ls&&ne.leftDelim==="|")){if(a.mathfield.snapshot(),pl.insert(a,`\\left${ae}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const Et=a.offsetOf(E.lastSibling),Zt=a.extractAtoms([a.position,Et]);a.at(a.position).body=Zt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(se){let Pe=E;for(;Pe;){if(Pe.type==="mopen"&&Pe.value===se){a.mathfield.snapshot();const bn=Pe.leftSibling,Ln=a.extractAtoms([a.offsetOf(Pe.leftSibling),a.offsetOf(E)]);Ln.shift();const jr=new ls("left...right",Ln,{leftDelim:se,rightDelim:ae});return ne.addChildrenAfter([jr],bn),a.position=a.offsetOf(jr),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}Pe=Pe.leftSibling}if(ne instanceof ls&&E.isLastSibling&&Fh(ne.leftDelim,ae))return a.mathfield.snapshot(),ne.isDirty=!0,ne.rightDelim=ae,a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Te=a.offsetOf(E.firstSibling);let Je;for(Je=a.position;Je>=Te;Je--){const bn=a.at(Je);if(bn instanceof ls&&(bn.rightDelim==="?"||bn.rightDelim===".")&&Fh(bn.leftDelim,ae))break}const Et=a.at(Je);if(Je>=Te&&Et instanceof ls)return a.mathfield.snapshot(),Et.rightDelim=ae,Et.addChildren(a.extractAtoms([Je,a.position]),Et.parentBranch),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ne instanceof ls&&(ne.rightDelim==="?"||ne.rightDelim===".")&&Fh(ne.leftDelim,ae))return a.mathfield.snapshot(),ne.isDirty=!0,ne.rightDelim=ae,ne.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ne.parentBranch),a.position=a.offsetOf(ne),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Zt=ne.parent;return Zt instanceof ls&&(Zt.rightDelim==="?"||Zt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(Zt),Ih(a,ae,b)):!1}return!1}function Fh(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ie[a]===y:!0}function Z0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):re[y]===a:!0}qu({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gv,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Ph(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const E=a.getPrompts();let ne="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae=0;for(;E.includes(ne)&&ae<100;){if(ae===99)return console.error("could not find a unique ID after 100 tries"),!1;ne="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ae++}return a.insert(`\\placeholder[${y!=null?y:ne}]{}`,b),!0}}),qu({copyToClipboard:a=>(a.focus(),a.model.selectionIsCollapsed&&a.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),qu({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(pf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),lu(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function $v(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Oh(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=Ee(Ee({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ne=>Ah(E,ne,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}qu({applyStyle:$v},{target:"mathfield",canUndo:!0,changeContent:!0});function Oh(a,y){var b,E,ne,ae,se,Se,Pe,Te,Je,Et;const Zt={};if(typeof y.color=="string"){const Ln=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";Ln!==y.color&&(Zt.verbatimColor=(ne=y.verbatimColor)!=null?ne:y.color),Zt.color=Ln}if(typeof y.backgroundColor=="string"){const Ln=(se=a.backgroundColorMap((ae=y.backgroundColor)!=null?ae:y.verbatimBackgroundColor))!=null?se:"none";Ln!==y.backgroundColor&&(Zt.verbatimBackgroundColor=(Se=y.verbatimBackgroundColor)!=null?Se:y.backgroundColor),Zt.backgroundColor=Ln}typeof y.fontFamily=="string"&&(Zt.fontFamily=y.fontFamily),typeof y.series=="string"&&(Zt.fontSeries=y.series),typeof y.fontSeries=="string"&&(Zt.fontSeries=y.fontSeries.toLowerCase()),Zt.fontSeries&&(Zt.fontSeries=(Pe={bold:"b",medium:"m",normal:"m"}[Zt.fontSeries])!=null?Pe:Zt.fontSeries),typeof y.shape=="string"&&(Zt.fontShape=y.shape),typeof y.fontShape=="string"&&(Zt.fontShape=y.fontShape.toLowerCase()),Zt.fontShape&&(Zt.fontShape=(Te={italic:"it",up:"n",upright:"n",normal:"n"}[Zt.fontShape])!=null?Te:Zt.fontShape),y.variant&&(Zt.variant=y.variant.toLowerCase()),y.variantStyle&&(Zt.variantStyle=y.variantStyle.toLowerCase());const bn=(Je=y.size)!=null?Je:y.fontSize;return typeof bn=="number"?Zt.fontSize=Math.max(1,Math.min(10,bn)):typeof bn=="string"&&(Zt.fontSize=(Et={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[bn.toLowerCase()])!=null?Et:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[bn]),Zt}function Nh(a){let[y,b]=iu(a.selection);if(y=W0(a,y,"backward"),b=W0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function W0(a,y,b){var E,ne,ae;let se=a.at(y);if(!se)return y;const Se=b==="forward"?1:-1;if(se.mode==="text"){for(;se&&!(se.mode!=="text"||!pe.test(se.value));)y+=Se,se=a.at(y);return b==="backward"?y-1:y}if(se.mode==="latex"){if(/[a-zA-Z\*]/.test(se.value))if(b==="backward")for(;se&&se.mode==="latex"&&se.value!=="\\"&&/[a-zA-Z]/.test(se.value);)y+=Se,se=a.at(y);else for(;se&&se.mode==="latex"&&/[a-zA-Z\*]/.test(se.value);)y+=Se,se=a.at(y);else if(se.value==="{"){if(b==="forward"){for(;se&&se.mode==="latex"&&se.value!=="}";)y+=Se,se=a.at(y);return y}return y-1}else if(se.value==="}"){if(b==="backward"){for(;se&&se.mode==="latex"&&se.value!=="{";)y+=Se,se=a.at(y);return y-1}return y}return y-1}if(se.mode==="math"){if(se.isDigit()){for(;(E=a.at(y+Se))!=null&&E.isDigit();)y+=Se;return b==="backward"?y-1:y}if(se.style.variant||se.style.variantStyle){let Pe=(ne=a.at(y))==null?void 0:ne.style;for(;Pe&&Pe.variant===se.style.variant&&Pe.variantStyle===se.style.variantStyle;)Pe=(ae=a.at(y+Se))==null?void 0:ae.style,y+=Se;return b==="backward"?y-1:y}return y}return y}qu({selectGroup:a=>{const y=Nh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Mc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Mc(a,"backward",{extend:!0}),extendToNextWord:a=>Vd(a,"forward",{extend:!0}),extendToPreviousWord:a=>Vd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Mc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Mc(a,"downward",{extend:!0}),extendToNextBoundary:a=>Vd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>Vd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var kd=null,xf=0,eh=class mc{static start(y,b,E,ne){var ae;mc.element=y,(ae=mc.controller)==null||ae.abort(),mc.controller=new AbortController;const se={signal:mc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,se),y.addEventListener("pointerup",ne,se),y.addEventListener("pointercancel",ne,se),Lh(b)&&(mc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,se),window.addEventListener("blur",ne,se),window.addEventListener("mouseup",ne,se))}static stop(){var y;(y=mc.controller)==null||y.abort(),mc.controller=void 0,typeof mc.pointerId=="number"&&(mc.element.releasePointerCapture(mc.pointerId),mc.pointerId=void 0)}};function Lh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function j0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ne,ae=!1,se=!1,Se="none",Pe=!1,Te=!1;const Je=y.clientX,Et=y.clientY,Zt=Date.now(),bn=E.field,Ln=setInterval(()=>{Pe?bn.scroll({top:0,left:bn.scrollLeft-16}):Te&&bn.scroll({top:0,left:bn.scrollLeft+16})},32);function jr(){eh.stop(),ae=!1,clearInterval(Ln),a.element.classList.remove("tracking"),y&&y.preventDefault()}function aa(Di){if(!E.hasFocus()){jr();return}const ua=Di.clientX,_i=Di.clientY,yo=Lh(Di)&&Di.pointerType==="touch"?20:5;if(Date.now()<Zt+500&&Math.abs(Je-ua)<yo&&Math.abs(Et-_i)<yo){Di.preventDefault(),Di.stopPropagation();return}const Zo=bn.getBoundingClientRect();Te=ua>Zo.right,Pe=ua<Zo.left;let Ro=ne;Lh(Di)&&(Di.isPrimary||(Ro=Ef(E,Di.clientX,Di.clientY,{bias:0})));const $l=Ef(E,ua,_i,{bias:ua<=Je?ua===Je?0:-1:1});Ro>=0&&$l>=0&&(E.model.extendSelectionTo(Ro,$l),lu(a)),se&&Nh(E.model)}kd&&Math.abs(kd.x-Je)<5&&Math.abs(kd.y-Et)<5&&Date.now()<kd.time+500?(xf+=1,kd.time=Zt):(kd={x:Je,y:Et,time:Zt},xf=1);const Hr=bn.getBoundingClientRect();if(Je>=Hr.left&&Je<=Hr.right&&Et>=Hr.top&&Et<=Hr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ne=Ef(a,Je,Et,{bias:0}),ne>=0){if(a.element.classList.add("tracking"),y.shiftKey){const Di=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ne),g0(a.model)||Di?Se="all":Se="selection"}else a.model.at(ne).type==="placeholder"?(a.model.setSelection(ne-1,ne),Se="selection"):((b=a.model.at(ne).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ne,ne+1),Se="selection"):(a.model.position=ne,g0(a.model)?Se="all":Se="selection");a.defaultStyle={},y.detail===3||xf>2?(jr(),(y.detail===3||xf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},Se="all")):ae||(ae=!0,eh.start(bn,y,aa,jr),(y.detail===2||xf===2)&&(se=!0,Nh(a.model),Se="all"))}a.hasFocus()||(Se="none",a.focus({preventScroll:!0}))}else kd=null;a.stopCoalescingUndo(),Se!=="none"&&(a.model.selectionIsCollapsed&&(Se="all"),lu(a)),y.preventDefault()}function qv(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ne=y-(b.top+b.bottom)/2;return E*E+ne*ne}function U0(a,y,b,E,ne){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ae=vc(a,b);if(!ae)return[1/0,null];let se=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ae.left&&E<=ae.right)for(const Se of b.children){const Pe=U0(a,y,Se,E,ne);Pe[0]<=se[0]&&(se=Pe)}return se[1]||(se=[qv(E,ne,ae),b]),y.set(b.id,se),se}function eg(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function Ef(a,y,b,E){var ne;const ae=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ae)return 0;if(y>ae.right||b>ae.bottom+8)return a.model.lastOffset;if(y<ae.left||b<ae.top-8)return 0;E=E!=null?E:{},E.bias=(ne=E.bias)!=null?ne:0;let se=eg(a,y,b);const Se=[];let Pe=se;for(;Pe;)Se.unshift(Pe),Pe=Pe.parent;for(const Je of Se)if(Je.captureSelection){se=Je;break}let Te=a.model.offsetOf(se);if(Te<0)return-1;if(se.leftSibling)if(E.bias===0&&se.type!=="placeholder"){const Je=vc(a,se);Je&&y<(Je.left+Je.right)/2&&(Te=a.model.offsetOf(se.leftSibling))}else E.bias<0&&(Te=a.model.offsetOf(se.leftSibling));return Te}var tg=class extends pl{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ne=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ne)try{const ae=JSON.parse(ne);if(ae&&Array.isArray(ae)){a.snapshot();const se=id(ae),{model:Se}=a;Se.selectionIsCollapsed||Se.deleteAtoms(iu(Se.selection));const Pe=Se.at(Se.position);if(Pe.parent instanceof Pl){console.assert(Pe.parentBranch!==void 0);const Te=[];let Je=[];se[0].type==="first"&&se.shift(),se[se.length-1].type==="first"&&se.pop();for(const Ln of se)Ln.type==="first"&&Je.length>0?(Te.push(Je),Je=[Ln]):Je.push(Ln);Je.length>0&&Te.push(Je);let Et=Number(Pe.parentBranch[0]),Zt=Number(Pe.parentBranch[1]);const bn=Pe.parent.maxColumns;for(;Pe.parent.colCount-Zt<Te.length&&Pe.parent.colCount<bn;)Pe.parent.addColumn();Pe.parent.addChildrenAfter(Te[0],Pe);for(let Ln=1;Ln<Te.length;Ln++)Zt++,Zt>=bn&&(Zt=0,Pe.parent.addRowAfter(Et),Et++),Pe.parent.setCell(Et,Zt,Te[Ln])}else Pe.parent.addChildrenAfter(se.filter(Te=>Te.type!=="first"),Pe);return Se.position=Se.offsetOf(se[se.length-1]),Se.contentDidChange({inputType:"insertFromPaste"}),lu(a),!0}}catch(ae){}if(ne=typeof y!="string"?y.getData("application/json"):"",ne&&window.MathfieldElement.computeEngine)try{const ae=JSON.parse(ne);if(typeof ae=="object"&&"latex"in ae&&ae.latex&&(b=ae.latex),!b){const se=window.MathfieldElement.computeEngine.box(ae);se&&!se.has("Error")&&(b=se.latex)}b||(E="latex")}catch(ae){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let ae;return[ae,b]=uc(b),E==="auto"&&ae&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),lu(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ne;const ae=typeof y=="string"?y:(ne=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ne:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ae,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:se}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const Se=a.silenceNotifications;a.silenceNotifications=!0;const Pe={"?":"\\placeholder{}","@":"\\placeholder{}"};Pe[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(iu(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let Te=-1;Pe[0]?Pe["@"]=Pe[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Te=rg(a),Te>=0&&(Pe["@"]=a.getValue(Te,a.position,"latex"))),Pe[0]||(Pe[0]=Pe["?"]);let Je=!1;const Et=ua=>(Je=!0,Pe[ua]);let[Zt,bn]=V0(a,y,Et,b);if(!bn)return!1;const Ln=bn.length===1&&bn[0].type==="genfrac";Ln&&Te>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(Pe["@"]=Pe["?"],Je=!1,[Zt,bn]=V0(a,y,Et,b)):Te>=0&&a.deleteAtoms([Te,a.position]);const{parent:jr}=a.at(a.position),aa=jr.hasEmptyBranch("body");if(Ln&&Zt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&jr instanceof ls&&jr.leftDelim==="("&&aa){const ua=jr.parent,_i=jr.parentBranch;ua.removeChild(jr),ua.setChildren(bn,_i)}const Hr=a.at(a.position);Hr.parent.addChildrenAfter(bn,Hr),Zt==="latex"&&typeof y=="string"&&(jr==null?void 0:jr.type)==="root"&&aa&&!Je&&(jr.verbatimLatex=y),a.silenceNotifications=Se;const Di=bn[bn.length-1];if(b.selectionMode==="placeholder"){const ua=bn.flatMap(_i=>[_i,..._i.children]).find(_i=>_i.type==="placeholder");if(ua){const _i=a.offsetOf(ua);a.setSelection(_i-1,_i),a.announce("move")}else Di&&(a.position=a.offsetOf(Di))}else b.selectionMode==="before"||(b.selectionMode==="after"?Di&&(a.position=a.offsetOf(Di)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(Di)));return a.contentDidChange({data:ae,inputType:"insertText"}),a.silenceNotifications=se,!0}};function V0(a,y,b,E){var ne;let ae,se=[];if(typeof y!="string"||E.format==="math-json"){const Se=window.MathfieldElement.computeEngine;if(!Se)return["math-json",[]];[ae,y]=["latex",Se.box(y).latex],se=Bu(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ae,y]=Ec(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),se=Bu(y,{context:a.mathfield.context}),ae!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se)):(E.format==="auto"||(ne=E.format)!=null&&ne.startsWith("latex"))&&(E.format==="auto"&&([ae,y]=Ec(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=uc(y)),se=Bu(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se));return od(se,E.style),[ae!=null?ae:"latex",se]}function ng(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof ls&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function th(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof ls&&b.leftDelim==="("){let E=0,ne=0,ae=0;for(let se=0;b.body[se];se++)b.body[se].type==="genfrac"&&(E++,ne=se),ae++;ae===0&&E===1&&(a[y]=b.body[ne])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){th(y.branch(b));const E=ng(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof Pl)for(const b of y.cells)th(b)}}}function rg(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ne=re[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ne);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||G0(y));)y=y.leftSibling;else{const ne=[];for(;!y.isFirstSibling&&(G0(y)||ne.length>0);)y.type==="mclose"&&ne.unshift(y.value),y.type==="mopen"&&ne.length>0&&y.value===re[ne[0]]&&ne.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function G0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tg;var ig=class extends pl{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),lu(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ne=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(iu(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=ag(y,a.mathfield.context);if(od(ae,b.style),!ae)return!1;const se=a.at(a.position),Se=se.parent.addChildrenAfter(ae,se);return a.silenceNotifications=ne,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(Se)):Se&&(a.position=a.offsetOf(Se))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function ag(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Bu(a,{context:y,parseMode:"text"})}new ig;function kc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Ls=4,Qu=20,bu=2*(Qu+Ls),nh=(a,y)=>`
<line x1="${a+Qu}" y1="${y+Qu}"
x2="${a>y?a+Qu:7*Qu+10*Ls}"
y2="${a<y?y+Qu:7*Qu+10*Ls}"/>
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,Q0=(a,y)=>`
<line x1="${a+Qu}" y1="${y+Qu}"
x2="${a>y?a+Qu:7*Qu+10*Ls}"
y2="${a<y?y+Qu:7*Qu+10*Ls}"/>
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
</svg>`,rh=(a,y,b)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${b})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,og=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Qu+10*Ls+5} ${8*Qu+10*Ls+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${bu+Ls}"
height="${3*bu}"
width="${bu}"
rx="${bu/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${bu+Ls}"
y="0"
height="${bu}"
width="${3*bu}"
rx="${bu/2}"/>
<g data-command='"moveDown"'>
${rh(2*(Ls+bu),2*Ls+3*bu,0)}
</g>
<g data-command='"moveUp"'>
${rh(2*(Ls+bu),2*Ls+bu,180)}
</g>
<g data-command='"moveToNextWord"'>
${rh(2*Ls+3*bu,2*(Ls+bu),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${rh(2*Ls+bu,2*(Ls+bu),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${nh(2*Ls+bu,Ls)}
</g>
<g data-command='"removeColumn"'>
${Q0(2*Ls+2*bu,Ls)}
</g>
<g data-command='"addColumnAfter"'>
${nh(2*Ls+3*bu,Ls)}
</g>
<g data-command='"addRowBefore"'>
${nh(Ls,2*Ls+bu)}
</g>
<g data-command='"removeRow"'>
${Q0(Ls,2*Ls+2*bu)}
</g>
<g data-command='"addRowAfter"'>
${nh(Ls,2*Ls+3*bu)}
</g>
</svg>`,lg=a=>`
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,sg=a=>`
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,Y0=a=>`
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,ug=a=>`
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,cg=a=>`
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,dg=a=>`
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,fg=a=>`
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,hg=a=>`
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,Th={matrix:lg,pmatrix:sg,bmatrix:ug,Bmatrix:Y0,vmatrix:cg,Vmatrix:dg},Rh={cases:fg,rcases:hg,Bmatrix:Y0};function pg(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ne=0;E.forEach(Ln=>{(!ne||Ln.length>ne)&&(ne=Ln.length)});let ae=document.getElementById("mathlive-environment-popover");ae||(ae=Tf("mathlive-environment-popover"),$u("environment-popover"),$u("core"),ae.setAttribute("aria-hidden","true"));let se;const Se=ae.querySelector(".MLEP__environment-controls");Se?se=Se:(se=document.createElement("div"),ae.innerHTML="",ae.appendChild(se)),se.className="MLEP__environment-controls",se.style.display="flex",se.style.width="100%",se.style.height="100%",se.style.boxSizing="border-box",se.innerHTML=og;let Pe=[],Te="";const Je=a.model.parentEnvironment.environmentName;if(zu(Je)){const Ln=vg(Je);Te=Th[Ln]("active");const jr=Th,{[Ln]:aa}=jr,Hr=Ue(jr,[we(Ln)]);Pe=Object.values(Hr).map(Di=>Di("inactive"))}else if(Ku(Je)){const Ln=gg(Je);Te=Rh[Ln]("active");const jr=Rh,{[Ln]:aa}=jr,Hr=Ue(jr,[we(Ln)]);Pe=Object.values(Hr).map(Di=>Di("inactive"))}else pu(Je)&&(Te=Th.matrix("active"),Pe=Object.values(Rh).map(Ln=>Ln("inactive")));const Et=document.createElement("div");Et.className="MLEP__environment-delimiter-controls",Et.style.display="flex",Et.style.flexDirection="column",Et.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${Te}
${Pe.join("")}
</div>`,Te&&se.appendChild(Et),se.querySelectorAll("[data-command]").forEach(Ln=>{const jr=Ln.dataset.command;let aa=jr;try{aa=JSON.parse(jr)}catch(Hr){}Ln.addEventListener("mousedown",Hr=>Hr.preventDefault()),aa&&Ln.addEventListener("click",()=>a.executeCommand(aa))});const bn=(b=a.field)==null?void 0:b.getBoundingClientRect();bn&&(ae.style.top=`${window.scrollY+(bn.top-ae.clientHeight-15)}px`,ae.style.left=`${bn.left+20}px`,ae.classList.add("is-visible"))}function _h(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mg(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function ih(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Vs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pg(a):_h()}function vg(a){return a.replace("*","")}function gg(a){return a==="dcases"?"cases":a}function X0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function J0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function zh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yg(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bg(a,y){var b,E,ne;const ae=(b=X0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const se=a.getBoundingClientRect(),Se=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let Pe=Math.min(Se,(E=y.height)!=null?E:se.height),Te=zh(y.location.y,Pe,y.verticalPos,ae);Te+Pe>window.innerHeight-8&&(y.alternateLocation?(Te=zh(y.alternateLocation.y,Pe,y.verticalPos,ae),Te+Pe>window.innerHeight-8&&(Te=void 0)):Te=void 0),Number.isFinite(Te)||(Te=Math.max(8,window.innerHeight-8-Pe),8+Pe>window.innerHeight-8&&(a.style.bottom="8px")),Pe=Math.min(Te+Pe,window.innerHeight-8)-Te;const Je=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let Et=Math.min(Je,(ne=y.width)!=null?ne:se.width),Zt=zh(y.location.x,Et,y.horizontalPos,ae);Zt+Et>window.innerWidth-8&&(y.alternateLocation?(Zt=yg(y.alternateLocation.x,Et,y.verticalPos,ae),Zt+Et>window.innerWidth-8&&(Zt=void 0)):Zt=void 0),Number.isFinite(Zt)||(Zt=Math.max(8,window.innerWidth-8-Et),8+Et>window.innerWidth-8&&(a.style.right="8px")),Et=Math.min(Zt+Et,window.innerWidth-8)-Zt,ae==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-Zt-Et).toString()}px`:a.style.left=`${Math.ceil(Zt).toString()}px`,a.style.top=`${Math.ceil(Te).toString()}px`,Pe!==se.height&&(a.style.height=`${Math.ceil(Pe).toString()}px`),Et!==se.width&&(a.style.width=`${Math.ceil(Et).toString()}px`)}function xg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Gd(a){return"submenu"in a}function Bc(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Kh(a){return"type"in a&&a.type==="divider"}function Hh(a){return"type"in a&&a.type==="heading"}var $0={};function Zh(a){let y=$0[a];if(!y){let b;switch(a){case"checkmark":b=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":b='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":b='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(b){const E=document.createElement("template");E.innerHTML=b,$0[a]=E,y=E}}if(y){if("content"in y)return y.content.cloneNode(!0);const b=document.createElement("svg");return b.innerHTML=y.innerHTML,b}}var q0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Gd(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Bc(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ne=this._declaration;if(Kh(ne)){this.enabled=!1,this.checked=!1;return}Hh(ne)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Bc(ne)&&(this.checked=Bc(ne)&&((y=Qd(ne.checked,a))!=null?y:!1)),(Bc(ne)||Gd(ne))&&(this.enabled=(b=Qd(ne.enabled,a))!=null?b:!0,this.visible=(E=Qd(ne.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Bc(ne)||Hh(ne)||Gd(ne))&&(this.label=Qd(ne.label,a),this.tooltip=Qd(ne.tooltip,a),this.ariaLabel=Qd(ne.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Zh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Zh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Bc(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=gh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Zh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Kh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Bc(this._declaration)||Hh(this._declaration)||Gd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Bc(this._declaration))return;const a=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(a)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(a){var y;if(!(!this.visible||!this.enabled)){if(a.type==="click"){this.rootMenu.state==="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}if(a.type==="pointerenter"){const b=a;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((y=this.parentMenu.activeMenuItem)!=null&&y.movingTowardSubmenu(b))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(a.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(a.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),a.stopPropagation(),a.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},q0)},q0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=X0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:J0(b,"trailing",E),y:b.top-4},alternateLocation:{x:J0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(Eg(E,y.clientY-a.clientY,b)<=.2)return!1;let ae="right";if(this.submenu.element){const se=this.submenu.element.getBoundingClientRect(),Se=this.element.getBoundingClientRect();se.left<Se.left+Se.width/2&&(ae="left")}return ae==="right"?E>0:E<0}};function Eg(a,y,b){return Math.hypot(a,y)/b}function Qd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class nf{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ne;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ne=b==null?void 0:b.columnCount)!=null?ne:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ne;this._menuItems.forEach(Te=>Te.updateState(y));const ae=this.hasCheck;this.hasCheck=this._menuItems.some(Te=>Te.visible&&Te.hasCheck),this.hasCheck!==ae&&this._menuItems.forEach(Te=>Te.updateState(y));let se,Se=0;for(const Te of this._menuItems)Te.type==="heading"?(se&&Se===0&&(se.visible=!1),se=Te,Se=0):Te.type==="divider"&&se?(se.visible=Se>0,se=void 0,Se=0):se&&Te.visible&&(Se+=1);se&&(se.visible=Se>0);let Pe=!0;for(const Te of this._menuItems)Te.type==="divider"?(Te.visible=!Pe,Pe=!0):Te.visible&&(Pe=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ne=this.activeMenuItem)==null?void 0:ne.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ne,ae;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const se=this.activeMenuItem;se.active=!1,(b=se.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ne=y.element)==null||ne.focus({preventScroll:!0}):(ae=this._element)==null||ae.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ne=E[y];b=ne.type!=="divider"&&ne.visible&&ne.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ne=y[b];E=ne.type!=="divider"&&ne.visible&&ne.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ne=this._menuItems.indexOf(this._activeMenuItem),ae=1;for(;ne>=b&&ne<=E;){ne+=y>0?1:-1;const se=this._menuItems[ne];if(!se)break;if(se.visible&&se.enabled){if(ae===Math.abs(y))return this._menuItems[ne];ae+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ne=>ne.visible&&ne.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return nf._collator||(nf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),nf._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(Se=>Se.type!=="divider"&&Se.visible&&Se.enabled);if(E.length===0)return null;const ne=Math.max(...E.map(Se=>Se.label.length))-y.length;if(ne<0)return null;let ae=null,se=0;for(;se<ne&&!ae;)ae=(b=E.find(Se=>nf.collator.compare(y,Se.label.substring(se,y.length))===0))!=null?b:null,se++;return ae}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),lt()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bg(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ne,ae;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),lt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(ae=(ne=this._element)==null?void 0:ne.parentNode)==null||ae.removeChild(this._element)}set openSubmenu(y){var b,E,ne,ae;const se=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",se.toString())),(ae=(ne=this.activeMenuItem)==null?void 0:ne.element)==null||ae.classList.toggle("is-submenu-open",se),this.isSubmenuOpen=se}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Km(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=bd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ne;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=bd(y));let ae=!0;const se=this.activeSubmenu,Se=se.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":Se==null||Se.select(bd(y));break;case"ArrowRight":if((Se==null?void 0:Se.type)==="submenu")Se.select(bd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!Se)se.activeMenuItem=se.firstMenuItem;else{const Pe=(b=se.getMenuItemColumn(Se))!=null?b:-1;if(Pe>=0&&Pe<((E=se.columnCount)!=null?E:1)-1){const Te=se.nextMenuItem(1);Te&&(se.activeMenuItem=Te)}}break;case"ArrowLeft":if(se===this.rootMenu)Se||(se.activeMenuItem=se.firstMenuItem);else if((Se&&(ne=se.getMenuItemColumn(Se))!=null?ne:-1)<=0||!Se){se.hide();const Te=se.parentMenu.activeMenuItem;if(Te){const{element:Je}=Te;Je==null||Je.focus(),Je==null||Je.classList.remove("is-submenu-open")}}else{const Te=se.nextMenuItem(-1);Te&&(se.activeMenuItem=Te)}break;case"ArrowDown":se.activeMenuItem=se.nextMenuItem(se.columnCount);break;case"ArrowUp":se.activeMenuItem=se.nextMenuItem(-se.columnCount);break;case"Home":case"PageUp":se.activeMenuItem=se.firstMenuItem;break;case"End":case"PageDown":se.activeMenuItem=se.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const Pe=se.findMenuItem(this.typingBuffer);Pe&&(se.activeMenuItem=Pe),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Of(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const Pe=se.findMenuItem(this.typingBuffer);Pe&&(se.activeMenuItem=Pe),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ae=!1}ae&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return wc.element}connectScrim(y){const b=this.scrim;b.addEventListener("pointerup",this),b.addEventListener("contextmenu",this),b.addEventListener("keydown",this),b.addEventListener("keyup",this),b.addEventListener("pointermove",this),wc.open({root:y,onDismiss:()=>this.hide()})}disconnectScrim(){const y=this.scrim;y.removeEventListener("pointerup",this),y.removeEventListener("contextmenu",this),y.removeEventListener("keydown",this),y.removeEventListener("keyup",this),y.removeEventListener("pointermove",this),wc.state==="open"&&wc.scrim.close()}get rootMenu(){return this}show(y){return this._onDismiss=y==null?void 0:y.onDismiss,y!=null&&y.modifiers&&(this.modifiers=y.modifiers),this.updateState(),this.connectScrim(y==null?void 0:y.target),super.show(fe(Ee({},y),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,wc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Cg=np;function rp(a){return Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Bc(a)||Gd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Bc(a)&&typeof a.checked=="function"?!0:Gd(a)?a.submenu.some(rp):!1}var ah=class{};ah.DELAY=300,ah.MAX_DISTANCE=10;function Sg(a){return new Promise((y,b)=>{const E=Ff(a);E||y(!1);let ne=E;const ae=setTimeout(()=>{se.abort(),y(xg(ne,E)<ah.MAX_DISTANCE)},ah.DELAY),se=new AbortController,Se=se.signal;for(const Pe of["pointermove","pointerup","pointercancel"])window.addEventListener(Pe,Te=>{if(Te.type==="pointerup"||Te.type==="pointercancel")clearTimeout(ae),se.abort(),y(!1);else if(Te.type==="pointermove"){const Je=Ff(Te);Je&&(ne=Je)}},{passive:!0,signal:Se})})}function ip(a,y,b){return ud(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Ff(E),modifiers:bd(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ne=y==null?void 0:y.getBoundingClientRect();if(ne&&b.show({target:y,location:{x:Math.ceil(ne.left+ne.width/2),y:Math.ceil(ne.top+ne.height/2)},modifiers:bd(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ne=Ff(a);if(yield Sg(a))return b.state!=="closed"?!1:(b.show({target:y,location:ne}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};qt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(fe(Ee({},a),{body:Bt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),qt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=dn(Bt(a.args[0]));return new z(fe(Ee({},a),{body:Bt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),qt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(fe(Ee({},a),{body:Bt(a.args[0]),svgAccent:"overarc"}))}),qt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new fc(fe(Ee({},a),{body:Bt(a.args[0]),svgBelow:"underarc"}))}),qt("utilde","{body:auto}",{createAtom:a=>{const y=Bt(a.args[0]),b=dn(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new fc(fe(Ee({},a),{body:y,svgBelow:E,boxType:zs(y)}))}}),qt("^","{:string}",{createAtom:a=>{var y;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[a.args[0]])!=null?y:"^"}))}}),qt("`","{:string}",{createAtom:a=>{var y;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[a.args[0]])!=null?y:"`"}))}}),qt("'","{:string}",{createAtom:a=>{var y;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[a.args[0]])!=null?y:"'"}))}}),qt('"',"{:string}",{createAtom:a=>{var y,b;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[a.args[0]])!=null?b:'"'+a.args[0]:'"'}))}}),qt(".","{:string}",{createAtom:a=>{var y,b;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[a.args[0]])!=null?b:"."+a.args[0]:"."}))}}),qt("=","{:string}",{createAtom:a=>{var y,b;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:(y=a.args)!=null&&y[0]?(b={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[a.args[0]])!=null?b:"="+a.args[0]:"="}))}}),qt("~","{:string}",{createAtom:a=>{var y;return new qr(fe(Ee({type:"mord"},a),{isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[a.args[0]])!=null?y:"\xB4"}))}}),qt("c","{:string}",{createAtom:a=>{var y;return new qr(fe(Ee({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),qt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ne={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const se=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const Se of se){const Pe=Se.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Pe)ne.strokeWidth=Pe[1],ne.strokeStyle=Pe[2],ne.strokeColor=Pe[3];else{const Te=Se.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Te&&(Te[1]==="mathbackground"?ne.backgroundcolor=Te[2]:Te[1]==="mathcolor"?ne.strokeColor=Te[2]:Te[1]==="padding"?ne.padding=Te[2]:Te[1]==="shadow"&&(ne.shadow=Te[2]))}}ne.strokeStyle==="dashed"?ne.svgStrokeStyle="5,5":ne.strokeStyle==="dotted"&&(ne.svgStrokeStyle="1,5")}ne.borderStyle=`${ne.strokeWidth} ${ne.strokeStyle} ${ne.strokeColor}`;const ae={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(se=>se.length>0).forEach(se=>{ae[se.toLowerCase()]=!0}),new rf(a.command,Bt(E[2]),ae,ne)}}),qt("cancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Bt(a.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),qt("bcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Bt(a.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),qt("xcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Bt(a.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(y=a.style)!=null?y:{}})}}),qt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new fc(fe(Ee({},a),{body:Bt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),qt("overbrace","{:auto}",{createAtom:a=>new fc(fe(Ee({},a),{body:Bt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),qt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new fc(fe(Ee({},a),{body:Bt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),qt(["underbrace"],"{:auto}",{createAtom:a=>new fc(fe(Ee({},a),{body:Bt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),qt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,E,ne,ae;return new fc(fe(Ee({},a),{svgBody:a.command.slice(1),above:((b=Bt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Bt((E=a.args)==null?void 0:E[1]),below:(ae=Bt((ne=a.args)==null?void 0:ne[0]))!=null?ae:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),qt(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new yd(a.command.slice(1),fe(Ee({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),qt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new yd({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],fe(Ee({},a),{limits:"over-under",variant:"main"}))}),qt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new yd(a.command.slice(1),fe(Ee({},a),{limits:"over-under",variant:"main"}))}),qt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new yd(a.command.slice(1),fe(Ee({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),qt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),serialize:(a,y)=>`\\ang{${a.bodyToLatex(y)}}`,render:(a,y)=>{const b=a.createBox(y),E=b.caret;b.caret=void 0;const ne=new Pi("\xB0",{style:fe(Ee({},a.style),{variant:"normal",variantStyle:"up"})});return new Pi([b,ne],{type:"inner",isSelected:a.isSelected,caret:E})}}),qt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(fe(Ee({},a),{body:Bt(a.args[1]),index:a.args[0]?Bt(a.args[0]):void 0}))}),qt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=Ee({},a),b=a.command,E=a.args;switch(b){case"\\dfrac":case"\\frac":case"\\tfrac":y.hasBarLine=!0;break;case"\\atopfrac":y.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":y.hasBarLine=!1,y.leftDelim="(",y.rightDelim=")";break;case"\\cfrac":y.hasBarLine=!0,y.continuousFraction=!0;break;default:}switch(b){case"\\dfrac":case"\\dbinom":y.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":y.mathstyleName="textstyle";break;default:}return new _d(E[0]?Bt(E[0]):[new qo],E[1]?Bt(E[1]):[new qo],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:Ia(a.command,b,E)}}),qt(["brace","brack"],"",{infix:!0,createAtom:a=>new _d(Bt(a.args[0]),Bt(a.args[1]),fe(Ee({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ol([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),qt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new _d(Bt(E[0]),Bt(E[1]),fe(Ee({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ol([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),qt(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:a=>{var y,b;const E=a.args;return new _d(Bt(E[0]),Bt(E[1]),fe(Ee({},a),{leftDelim:(y=E[2])!=null?y:".",rightDelim:(b=E[3])!=null?b:".",hasBarLine:!1}))},serialize:(a,y)=>`${a.aboveToLatex(y)} ${a.command}${a.leftDelim}${a.rightDelim}${a.belowToLatex(y)}`}),qt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new _d(Bt(a.args[0]),Bt(a.args[1]),fe(Ee({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),qt(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:a=>new fh({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[a.command.slice(1)],fe(Ee({},a),{limits:"auto",variant:"main"}))}),qt("smallint","",{ifMode:"math",createAtom:a=>new yd("\u222B",fe(Ee({},a),{limits:"adjacent",variant:"main"}))});var op={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};qt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,fe(Ee({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),qt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new yd({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],fe(Ee({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),qt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(fe(Ee({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),qt("the","{:value}",{createAtom:a=>new qr(fe(Ee({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Oo({parent:y},a.style);let ne="";a.isSelected&&(ne+=" ML__selected");const ae=E.evaluate(a.args[0]);return new Pi(((b=xs(ae))!=null?b:"").split("").map(se=>new Pi(se,{type:"ord",classes:ne,mode:a.mode,isSelected:a.isSelected,style:Ee({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ne}).wrap(E)},serialize:a=>{var y;return`\\the${(y=xs(a.args[0]))!=null?y:"\\relax"}`}}),qt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(fe(Ee({},a),{body:Bt(a.args[0]),tooltip:Bt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${qr.serialize([a.tooltip],fe(Ee({},y),{defaultMode:"math"}))}}`}),qt("texttip","{:auto}{:text}",{createAtom:a=>new hh(fe(Ee({},a),{body:Bt(a.args[0]),tooltip:Bt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${qr.serialize([a.tooltip],fe(Ee({},y),{defaultMode:"text"}))}}`}),qt("error","{:math}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),qt("ensuremath","{:math}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(fe(Ee({},y),{defaultMode:"math"}))}}`}),qt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ne;return{verbatimColor:(E=xs(y[0]))!=null?E:void 0,color:b.toColor((ne=y[0])!=null?ne:{string:"red"})}}}),qt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ne;return{verbatimColor:(E=xs(y[0]))!=null?E:void 0,color:b.toColor((ne=y[0])!=null?ne:{string:"red"})}}}),qt("boxed","{content:math}",{createAtom:a=>new uu(fe(Ee({},a),{body:Bt(a.args[0]),framecolor:{string:"black"}}))}),qt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ne;return{verbatimBackgroundColor:(E=xs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ne=y[0])!=null?ne:{string:"yellow"})}}}),qt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new uu(fe(Ee({},a),{body:Bt(a.args[2]),framecolor:(y=a.args[0])!=null?y:{string:"blue"},backgroundcolor:(b=a.args[1])!=null?b:{string:"yellow"}}))},serialize:(a,y)=>{var b,E;return y.skipStyles?a.bodyToLatex(fe(Ee({},y),{defaultMode:"text"})):Ia(a.command,(b=xs(a.framecolor))!=null?b:"",(E=xs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(fe(Ee({},y),{defaultMode:"text"})))}}),qt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Bt(a.args[1]);return b?new uu(fe(Ee({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new uu(fe(Ee({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ne=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ae=[];a.padding&&ae.push((b=xs(a.padding))!=null?b:""),a.border&&ae.push(`border: ${a.border}`),a.backgroundcolor&&ae.push((E=xs(a.backgroundcolor))!=null?E:""),ne+=`[${ae.join(",")}]`}return Ia(ne,a.bodyToLatex(y))}}),qt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),render:(a,y)=>{const b=new Oo({parent:y,mathstyle:a.command.slice(1)},a.style),E=qr.createBox(b,a.body,{type:"lift"});return a.caret&&(E.caret=a.caret),a.bind(y,E)},serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{${ol([a.command,a.bodyToLatex(y)])}}`}),qt(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:a=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[a]})}),qt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),qt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),qt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),qt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),qt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),qt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),qt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),qt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),qt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),qt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),qt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),qt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),qt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),qt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),qt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),qt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),qt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),qt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),qt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),qt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),qt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),qt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),qt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),qt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),qt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),qt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),qt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),qt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),qt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),qt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),qt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),qt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),qt("mbox","{:text}",{ifMode:"math",createAtom:a=>new qr(fe(Ee({},a),{type:"mord",body:Bt(a.args[0]),mode:"math"})),serialize:(a,y)=>Ia("\\mbox",a.bodyToLatex(fe(Ee({},y),{defaultMode:"text"})))}),qt("text","{:text}",{ifMode:"math",applyMode:"text"}),qt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[1])})),serialize:(a,y)=>!a.args[0]||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`,render:(a,y)=>{var b;return a.createBox(y,{classes:(b=a.args[0])!=null?b:""})}}),qt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.cssId=(b=a.args[0])!=null?b:"",E}}),qt("htmlData","{data:string}{content:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`\\htmlData{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlData=(b=a.args[0])!=null?b:"",E}}),qt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[1])})),serialize:(a,y)=>{var b;return!((b=a.args)!=null&&b[0])||y.skipStyles?a.bodyToLatex(y):`${a.command}{${a.args[0]}}{${a.bodyToLatex(y)}}`},render:(a,y)=>{var b;const E=a.createBox(y);return E.htmlStyle=(b=a.args[0])!=null?b:"",E}}),qt("em","{:rest}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`{\\em ${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})}),qt("emph","{:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var lp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};qt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(fe(Ee({},a),{delim:(y=a.args[0])!=null?y:".",size:lp[a.command].size,delimType:lp[a.command].mclass}))}}),qt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new lf(fe(Ee({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),qt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new lf(fe(Ee({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),qt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new qr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===qs||E===eu)&&(b=1),(E===wu||E===Is)&&(b=2),(E===Au||E===Fs)&&(b=3);const ne=Bt(a.args[b]);return qr.createBox(y,ne)},serialize:(a,y)=>`\\mathchoice{${qr.serialize(a.args[0],y)}}{${qr.serialize(a.args[1],y)}}{${qr.serialize(a.args[2],y)}}{${qr.serialize(a.args[3],y)}}`}),qt("mathop","{:auto}",{createAtom:a=>new qr(fe(Ee({},a),{type:"mop",body:Bt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=qr.createBox(y,a.body);if(a.superscript||a.subscript){const ne=(b=a.subsupPlacement)!=null?b:"auto";E=ne==="over-under"||ne==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new Pi(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ia(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),ol(b)}}),qt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new qr(fe(Ee({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Bt(a.args[0])}))}),qt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Bt(a.args[0]).map(b=>{var E;return b.type!=="first"&&(b.type="mord",b.value=(E={"\u2217":"*","\u2212":"-"}[b.value])!=null?E:b.value,b.isFunction=!1,!b.style.variant&&!b.style.variantStyle&&(b.style.variant="main",b.style.variantStyle="up")),b});return new qr(fe(Ee({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=qr.createBox(y,a.body);if(a.superscript||a.subscript){const ne=(b=a.subsupPlacement)!=null?b:"auto";E=ne==="over-under"||ne==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new Pi(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ia(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),ol(b)}}),qt(["char","unicode"],"{charcode:value}",{createAtom:a=>new qr(fe(Ee({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${xs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),qt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new qr(a),render:(a,y)=>{var b,E,ne;const ae=new Oo({parent:y,mathstyle:"textstyle"},a.style),se=ae.toEm((b=a.args[0])!=null?b:{dimension:0}),Se=ae.toEm((E=a.args[1])!=null?E:{dimension:10}),Pe=ae.toEm((ne=a.args[2])!=null?ne:{dimension:10}),Te=new Pi(null,{classes:"rule",type:"ord"});return Te.width=Se,Te.height=Pe+se,Te.depth=-se,Te.setStyle("border-right-width",Se,"em"),Te.setStyle("border-top-width",Pe,"em"),Te.setStyle("border-color",a.style.color),Te.setStyle("vertical-align",se,"em"),a.isSelected&&Te.setStyle("opacity","50%"),a.bind(ae,Te),a.caret&&(Te.caret=a.caret),Te.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${xs(a.args[0])}]`:""}{${xs(a.args[1])}}{${xs(a.args[2])}}`}),qt(["overline","underline"],"{:auto}",{createAtom:a=>new qr(fe(Ee({},a),{body:Bt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Oo({parent:y,mathstyle:"cramp"},a.style),ne=qr.createBox(E,a.body);if(!ne)return null;const ae=E.metrics.defaultRuleThickness/E.scalingFactor,se=new Pi(null,{classes:b+"-line"});se.height=ae,se.maxFontSize=ae*1.125*E.scalingFactor;let Se;return b==="overline"?Se=new Sl({shift:0,children:[{box:ne},3*ae,{box:se},ae]}):Se=new Sl({top:ne.height,children:[ae,{box:se},3*ae,{box:ne}]}),a.caret&&(Se.caret=a.caret),new Pi(Se,{classes:b,type:"ignore"})}}),qt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Bt(a.args[1]);return new fc(fe(Ee({},a),{above:Bt(a.args[0]),body:y,skipBoundary:!1,boxType:zs(y)}))},serialize:(a,y)=>Ia(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),qt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Bt(a.args[1]);return new fc(fe(Ee({},a),{below:Bt(a.args[0]),body:y,skipBoundary:!1,boxType:zs(y)}))},serialize:(a,y)=>Ia(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),qt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Bt(a.args[2]);return new fc(fe(Ee({},a),{above:Bt(a.args[0]),below:Bt(a.args[1]),body:y,skipBoundary:!1,boxType:zs(y)}))},serialize:(a,y)=>Ia(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),qt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new fc(fe(Ee({},a),{body:Bt(a.args[2]),above:Bt(a.args[1]),below:Bt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ia(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),qt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ne;return new of(fe(Ee({},a),{body:Bt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ne=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ne:!0}))}}),qt(["vphantom"],"{:auto}",{createAtom:a=>new of(fe(Ee({},a),{body:Bt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),qt(["hphantom"],"{:auto}",{createAtom:a=>new of(fe(Ee({},a),{body:Bt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),qt(["phantom"],"{:auto}",{createAtom:a=>new of(fe(Ee({},a),{body:Bt(a.args[0]),isInvisible:!0}))}),qt("not","{:math}",{createAtom:a=>{const y=Bt(a.args[0]);return y.length===0?new qr(fe(Ee({},a),{type:"mrel",value:"\uE020"})):new qr(fe(Ee({},a),{body:[new gd(fe(Ee({},a),{body:"\uE020",align:"right"})),...y],captureSelection:!0}))},serialize:(a,y)=>{const b=a.args[0],E=b&&typeof b=="object"&&"group"in b;return a.value!=="\uE020"?E?`\\not{${qr.serialize(b.group,y)}}`:`\\not${qr.serialize(b,y)}`:E?"\\not{}":"\\not"},render:(a,y)=>{if(a.value)return a.createBox(y);const E=a.args[0]&&typeof a.args[0]=="object"&&"group"in a.args[0]?"ord":zs(Bt(a.args[0])),ne=qr.createBox(y,a.body,{type:E});return a.caret&&(ne.caret=a.caret),a.bind(y,ne)}}),qt(["ne","neq"],"",{createAtom:a=>new qr(fe(Ee({},a),{type:"mrel",body:[new gd(fe(Ee({},a),{body:"\uE020",align:"right",boxType:"rel"})),new qr(fe(Ee({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),qt("rlap","{:auto}",{createAtom:a=>new gd(fe(Ee({},a),{body:Bt(a.args[0]),align:"right"}))}),qt("llap","{:auto}",{createAtom:a=>new gd(fe(Ee({},a),{body:Bt(a.args[0]),align:"left"}))}),qt("mathrlap","{:math}",{createAtom:a=>new gd(fe(Ee({},a),{body:Bt(a.args[0]),align:"left"}))}),qt("mathllap","{:math}",{createAtom:a=>new gd(fe(Ee({},a),{body:Bt(a.args[0]),align:"left"}))}),qt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new uu(fe(Ee({},a),{body:Bt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ia("\\raisebox",(b=xs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),qt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new uu(fe(Ee({},a),{body:Bt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ia("\\raise",(b=xs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),qt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new uu(fe(Ee({},a),{body:Bt(a.args[1]),padding:{dimension:0},offset:(y=hu(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ia("\\lower",(E=xs(hu((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Le("0123456789/@.?!"),dt(65,90),dt(97,122),Le([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Le([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Le([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Le([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Le([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Le([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Le([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Le([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Le([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Le([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Le([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Le([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Le([["\\wp",8472],["\\aleph",8501]]),Le([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Le([["\\ ",160],["~",160]],"space"),qt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new lf(a)}),qt("space","",{createAtom:a=>new lf(a)}),Le([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Le([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Le([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var sp="<mo>&#x2061;</mo>",oh="<mo>&#8290;</mo>";function lh(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function As(a,y){return!a||!y.generateID?"":` extid="${a}"`}function wg(a,y,b){var E,ne,ae,se,Se,Pe,Te,Je,Et,Zt,bn;let Ln=!1;y=y!=null?y:a.atoms.length;let jr="",aa="",Hr=a.atoms[a.index];const Di=(ne=(E=Hr.style)==null?void 0:E.variant)!=null?ne:"",ua=(se=(ae=Hr.style)==null?void 0:ae.variantStyle)!=null?se:"";let _i="";if(Di||ua){const Zo=Vt(Hr.value,(Se=Hr.style)==null?void 0:Se.variant,(Pe=Hr.style)==null?void 0:Pe.variantStyle);if(Zo!==Hr.value)return a.index+=1,jr=`<mi${As(Hr.id,b)}>${Zo}</mi>`,Uc(jr,a,b)||(a.mathML+=jr,a.lastType="mi"),!0;_i=(Te={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[ua+Di])!=null?Te:"",_i=` mathvariant="${_i}"`}const yo={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Hr.command==="!")return a.index+=1,jr="<mo>!</mo>",Uc(jr,a,b)||(a.mathML+=jr,a.lastType="mo"),!0;if(yo[Hr.command]){a.index+=1;let Zo=`<mi${As(Hr.id,b)}${_i}>${yo[Hr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Zo=oh+Zo),Uc(Zo,a,b)||(a.mathML+=Zo,a.lastType="mi"),!0}if(Hr.command==="\\operatorname")aa=Yd(Hr.body),a.index+=1;else if(Di||ua)for(;a.index<y&&(Hr.type==="mord"||Hr.type==="macro")&&!Hr.isDigit()&&Di===((Et=(Je=Hr.style)==null?void 0:Je.variant)!=null?Et:"")&&ua===((bn=(Zt=Hr.style)==null?void 0:Zt.variantStyle)!=null?bn:"");)aa+=Yd([Hr]),a.index+=1,Hr=a.atoms[a.index];else(Hr.type==="mord"||Hr.type==="macro")&&!Hr.isDigit()&&(aa+=Yd([Hr]),a.index+=1);if(aa.length>0){Ln=!0,jr=`<mi${_i}>${aa}</mi>`;const Zo=a.lastType;jr.endsWith(">f</mi>")||jr.endsWith(">g</mi>")?(jr+=sp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(jr)?"mo":"mi",Uc(jr,a,b)||((Zo==="mi"||Zo==="mn"||Zo==="mtext"||Zo==="fence")&&(jr=oh+jr),a.mathML+=jr)}return Ln}function Ag(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Mg(a){let y=-1,b=a.index,E=!1,ne=!1;for(;b<a.atoms.length&&!E&&!ne;){const ae=a.atoms[b];E=!ae.isDigit(),ne=!E&&ae.superscript!==void 0,b++}return ne&&(y=b-1),y}function Uc(a,y,b){var E;let ne=y.atoms[y.index-1];if(!ne)return!1;if(!ne.superscript&&!ne.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ne=y.atoms[y.index],y.index+=1;else return!1;const ae=y.lastType;y.lastType="";const se=ss(ne.superscript,b);y.lastType="";const Se=ss(ne.subscript,b);if(y.lastType=ae,!se&&!Se)return!1;let Pe="";return se&&Se?Pe=`<msubsup>${a}${Se}${se}</msubsup>`:se?Pe=`<msup>${a}${se}</msup>`:Se&&(Pe=`<msub>${a}${Se}</msub>`),y.mathML+=Pe,y.lastType="",!0}function kg(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ne="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ne+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ne.length>0?(a.mathML+=`<mtext ${As(a.atoms[E].id,b)}>${ne}</mtext>`,a.lastType="mtext",!0):!1}function Bg(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ne="",ae=Mg(a);for(ae>=0&&ae<y&&(y=ae);a.index<y&&a.atoms[a.index].isDigit();)ne+=a.atoms[a.index].asDigit(),a.index+=1;return ne.length<=0?!1:(ne="<mn"+As(a.atoms[E].id,b)+">"+ne+"</mn>",ae<0&&Ag(a)&&(ae=a.index,a.index+=1),Uc(ne,a,b)||(a.mathML+=ne,a.lastType="mn"),!0)}function Dg(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ne="",ae="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let se=!1,Se=0;const Pe=a.index;let Te=-1,Je=Pe+1;for(;Je<y&&!se;)a.atoms[Je].type==="mopen"?Se+=1:a.atoms[Je].type==="mclose"&&(Se-=1),Se===-1&&(se=!0,Te=Je),Je+=1;se&&(ne="<mrow>",ne+=Bd(a.atoms[Pe],b),ne+=ss(a.atoms,b,Pe+1,Te),ne+=Bd(a.atoms[Te],b),ne+="</mrow>",a.index=Te+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=oh),Uc(ne,a,b)&&(E=!0,a.lastType="",ne=""),ae="fence")}return ne.length>0&&(E=!0,a.mathML+=ne,a.lastType=ae),E}function Pg(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ne="",ae="";const se=a.atoms[a.index];if(!se)return!1;const Se={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(Se[se.command]){a.index+=1;const Pe=`<mo${As(se.id,b)}>${Se[se.command]}</mo>`;return Uc(Pe,a,b)||(a.mathML+=Pe,a.lastType="mo"),!0}if(a.index<y&&(se.type==="mbin"||se.type==="mrel"))ne+=Wh(a.atoms[a.index],b),a.index+=1,ae="mo";else if(a.index<y&&(se.type==="mop"||se.type==="operator"||se.type==="extensible-symbol")){if(se.subsupPlacement==="over-under"&&(se.superscript||se.subscript)){const Pe=Bd(se,b);return se.superscript&&se.subscript?(ne+="<munderover>"+Pe,ne+=ss(se.subscript,b),ne+=ss(se.superscript,b),ne+="</munderover>"):se.superscript?(ne+="<mover>"+Pe,ne+=ss(se.superscript,b),ne+="</mover>"):se.subscript&&(ne+="<munder>"+Pe,ne+=ss(se.subscript,b),ne+="</munder>"),a.mathML+=ne,a.lastType="mo",a.index+=1,!0}{const Pe=a.atoms[a.index],Te=Pe.value==="\\operatorname",Je=Te?'<mi class="MathML-Unit"'+As(Pe.id,b)+">"+Yd(Pe.value)+"</mi>":Bd(Pe,b);ne+=Je,!Te&&!/^<mo>(.*)<\/mo>$/.test(Je)?(ne+=sp,ae="applyfunction"):ae=Te?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ne)&&(ne=oh+ne),a.index+=1}return ne.length>0&&(E=!0,Uc(ne,a,b)||(a.mathML+=ne,a.lastType=ae)),E}function ss(a,y,b,E){y!=null||(y={});const ne={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ne.mathML=a.toString();else if(typeof a=="string")ne.mathML=a;else if(a instanceof qr)ne.mathML=Wh(a,y);else if(Array.isArray(a)){ne.atoms=a;let ae=0;for(E=E||(a?a.length:0);ne.index<E;)if(kg(ne,E,y)||Bg(ne,E,y)||wg(ne,E,y)||Pg(ne,E,y)||Dg(ne,E,y))ae+=1;else if(ne.index<E){let se=Wh(ne.atoms[ne.index],y);ne.lastType==="mn"&&se.length>0&&ne.atoms[ne.index].type==="genfrac"&&(se="<mo>&#x2064;</mo>"+se),ne.atoms[ne.index].type==="genfrac"?ne.lastType="mfrac":ne.lastType="",ne.index+=1,Uc(se,ne,y)?ae+=1:se.length>0&&(ne.mathML+=se,ae+=1)}ae>1&&(ne.mathML="<mrow>"+ne.mathML+"</mrow>")}return ne.mathML}function Bd(a,y){let b="";const E=Yd(a.value);return E&&(b="<mo"+As(a.id,y)+">"+E+"</mo>"),b}function Yd(a){if(!a)return"";if(typeof a=="string")return lh(a);if(!Array.isArray(a)&&typeof a.body=="string")return lh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return lh(y)}function Wh(a,y){var b,E,ne,ae,se,Se,Pe,Te,Je,Et,Zt,bn,Ln,jr,aa,Hr,Di,ua,_i,yo,Zo,Ro;if(a.mode==="text")return`<mi${As(a.id,y)}>${a.value}</mi>`;const $l={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},Es={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let xa="",ac="",Pc,pc,Pu,oc,Yu,Ms;const{command:du}=a;if(a.command==="\\error")return`<merror${As(a.id,y)}>${ss(a.body,y)}</merror>`;const Iu={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ic={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(a.type){case"first":break;case"group":case"root":xa=ss(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(xa+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(xa+="<mo>"+(Iu[a.leftDelim]||a.leftDelim)+"</mo>")),xa+="<mtable",a.colFormat){for(xa+=' columnalign="',Pu=0;Pu<a.colFormat.length;Pu++)a.colFormat[Pu].align&&(xa+={l:"left",c:"center",r:"right"}[a.colFormat[Pu].align]+" ");xa+='"'}for(xa+=">",pc=0;pc<a.array.length;pc++){for(xa+="<mtr>",Pc=0;Pc<a.array[pc].length;Pc++)xa+="<mtd>"+ss(a.array[pc][Pc],y)+"</mtd>";xa+="</mtr>"}xa+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(xa+="<mo>"+(Iu[a.leftDelim]||a.rightDelim)+"</mo>"),xa+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(xa+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(xa+="<mo"+As(a.id,y)+">"+(Iu[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(xa+="<mfrac>",xa+=ss(a.above,y)||"<mi>&nbsp;</mi>",xa+=ss(a.below,y)||"<mi>&nbsp;</mi>",xa+="</mfrac>"):(xa+="<mtable"+As(a.id,y)+">",xa+="<mtr>"+ss(a.above,y)+"</mtr>",xa+="<mtr>"+ss(a.below,y)+"</mtr>",xa+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(xa+="<mo"+As(a.id,y)+">"+(Iu[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(xa+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(xa+="<msqrt"+As(a.id,y)+">",xa+=ss(a.body,y),xa+="</msqrt>"):(xa+="<mroot"+As(a.id,y)+">",xa+=ss(a.body,y),xa+=ss(a.above,y),xa+="</mroot>");break;case"leftright":const Fc=a,Oc=Fc.leftDelim;xa="<mrow>",Oc&&Oc!=="."&&(xa+=`<mo${As(a.id,y)}>${(b=Iu[Oc])!=null?b:Oc}</mo>`),a.body&&(xa+=ss(a.body,y));const Nc=Fc.matchingRightDelim();Nc&&Nc!=="."&&(xa+=`<mo${As(a.id,y)}>${(E=Iu[Nc])!=null?E:Nc}</mo>`),xa+="</mrow>";break;case"sizeddelim":case"delim":xa+=`<mo${As(a.id,y)}>${Iu[a.value]||a.value}</mo>`;break;case"accent":xa+='<mover accent="true"'+As(a.id,y)+">",xa+=ss(a.body,y),xa+="<mo>"+(Ic[du]||a.accent)+"</mo>",xa+="</mover>";break;case"line":case"overlap":break;case"overunder":Yu=a.above,oc=a.below,(a.svgAbove||Yu)&&(a.svgBelow||oc)?Ms=a.body:Yu&&Yu.length>0?(Ms=a.body,(ae=(ne=a.body)==null?void 0:ne[0])!=null&&ae.below?(oc=a.body[0].below,Ms=a.body[0].body):((Se=(se=a.body)==null?void 0:se[0])==null?void 0:Se.type)==="first"&&((Te=(Pe=a.body)==null?void 0:Pe[1])!=null&&Te.below)&&(oc=a.body[1].below,Ms=a.body[1].body)):oc&&oc.length>0&&(Ms=a.body,(Et=(Je=a.body)==null?void 0:Je[0])!=null&&Et.above?(Yu=a.body[0].above,Ms=a.body[0].body):((bn=(Zt=a.body)==null?void 0:Zt[0])==null?void 0:bn.type)==="first"&&((jr=(Ln=a.body)==null?void 0:Ln[1])!=null&&jr.above)&&(Yu=a.body[1].overscript,Ms=a.body[1].body)),(a.svgAbove||Yu)&&(a.svgBelow||oc)?(xa+=`<munderover ${As(a.id,y)}>`,xa+=(aa=$l[a.svgBody])!=null?aa:ss(Ms,y),xa+=(Hr=$l[a.svgBelow])!=null?Hr:ss(oc,y),xa+=(Di=$l[a.svgAbove])!=null?Di:ss(Yu,y),xa+="</munderover>"):a.svgAbove||Yu?(xa+=`<mover ${As(a.id,y)}>`+((ua=$l[a.svgBody])!=null?ua:ss(Ms,y)),xa+=(_i=$l[a.svgAbove])!=null?_i:ss(Yu,y),xa+="</mover>"):(a.svgBelow||oc)&&(xa+=`<munder ${As(a.id,y)}>`+((yo=$l[a.svgBody])!=null?yo:ss(Ms,y)),xa+=(Zo=$l[a.svgBelow])!=null?Zo:ss(oc,y),xa+="</munder>");break;case"placeholder":xa+="?";break;case"mord":{xa=typeof a.value=="string"?a.value:du,du==="\\char"?xa="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":xa.length>0&&xa.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?xa="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?xa=a.value.charAt(0):(console.error("Did not expect this"),xa=""));const xc=/\d/.test(xa)?"mn":"mi";xa=`<${xc}${As(a.id,y)}>${lh(xa)}</${xc}>`;break}case"mbin":case"mrel":case"minner":xa=Bd(a,y);break;case"mpunct":xa='<mo separator="true"'+As(a.id,y)+">"+du+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(xa="<mo"+As(a.id,y)+">",xa+=du==="\\operatorname"?a.body:du||a.body,xa+="</mo>");break;case"box":xa='<menclose notation="box"',a.backgroundcolor&&(xa+=' mathbackground="'+a.backgroundcolor+'"'),xa+=As(a.id,y)+">"+ss(a.body,y)+"</menclose>";break;case"spacing":xa+='<mspace width="'+((Ro=Es[du])!=null?Ro:0)+'em"/>';break;case"enclose":xa='<menclose notation="';for(const xc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,xc)&&a.notation[xc]&&(xa+=ac+xc,ac=" ");xa+=As(a.id,y)+'">'+ss(a.body,y)+"</menclose>";break;case"prompt":xa='<menclose notation="roundexbox""">'+ss(a.body,y)+"</menclose>";break;case"space":xa+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":xa+=Bd(a,y);break;case"mclose":xa+=Bd(a,y);break;case"macro":{const xc=a.command+Yd(a.macroArgs);xc&&(xa+=`<mo ${As(a.id,y)}>${xc}</mo>`)}break;case"latexgroup":xa+=ss(a.body,y);break;case"latex":xa+="<mtext"+As(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":xa+=ss(a.body,y);break;case"text":xa+=`<mtext ${As(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${As(a.id,y)} displaystyle="true">${ss(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${As(a.id,y)} displaystyle="false">${ss(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return xa}var Xd={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},jh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Ig(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Cf(a){let y=0;if(De(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Fg(a){if(De(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(De(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Og(a){return a?a.map(y=>y.value).join(""):""}function Vl(a,y){var b,E,ne,ae,se;function Se(Je){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Je)?` <say-as interpret-as="character">${Je}</say-as>`:/[A-Z]/.test(Je)?`capital <say-as interpret-as="character">${Je.toLowerCase()}</say-as>`:Je:/[a-z]/.test(Je)?" '"+Je.toUpperCase()+"'":/[A-Z]/.test(Je)?" 'capital "+Je.toUpperCase()+"'":Je}function Pe(Je){return"<emphasis>"+Je+"</emphasis>"}if(!y)return"";let Te="";if(De(y)){let Je=!1,Et=!1;for(let Zt=0;Zt<y.length;Zt++)y[Zt].type!=="first"&&(y[Zt].mode!=="text"&&(Et=!1),Zt<y.length-2&&y[Zt].type==="mopen"&&y[Zt+2].type==="mclose"&&y[Zt+1].type==="mord"?(Te+=" of ",Te+=Pe(Vl(a,y[Zt+1])),Zt+=2):y[Zt].mode==="text"?Et?Te+=(b=y[Zt].value)!=null?b:" ":(Et=!0,Te+=Vl("text",y[Zt])):y[Zt].isDigit()?Je?Te+=y[Zt].asDigit():(Je=!0,Te+=Vl(a,y[Zt])):(Je=!1,Te+=Vl(a,y[Zt])))}else if(y.mode==="text")y.id&&a==="math"&&(Te+='<mark name="'+y.id.toString()+'"/>'),Te+=y.value;else{y.id&&a==="math"&&(Te+='<mark name="'+y.id.toString()+'"/>');let Je="",Et="",Zt="",bn=!1;const{command:Ln}=y;switch(Ln){case"\\vec":return"vector "+Vl(a,y.body);case"\\acute":return Vl(a,y.body)+" acute";case"\\grave":return Vl(a,y.body)+" grave";case"\\dot":return"dot over"+Vl(a,y.body);case"\\ddot":return"double dot over"+Vl(a,y.body);case"\\mathring":return"ring over"+Vl(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Vl(a,y.body);case"\\bar":return Vl(a,y.body)+" bar";case"\\breve":return Vl(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Vl(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Vl(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Vl(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Vl(a,y.body)}switch(y.type){case"prompt":const jr=y.body.length>1?'start input . <break time="500ms"/> '+Vl(a,y.body)+'. <break time="500ms"/> end input':"blank";Te+=' <break time="300ms"/> '+jr+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const aa=y.array,Hr=y.environmentName;if(Object.keys(jh).includes(Hr)){Te+=` begin ${jh[Hr]} `;for(let _i=0;_i<aa.length;_i++){_i>0&&(Te+=","),Te+=` row ${_i+1} `;for(let yo=0;yo<aa[_i].length;yo++)yo>0&&(Te+=","),Te+=` column ${yo+1}: `,Te+=Vl("math",aa[_i][yo])}Te+=` end ${jh[Hr]} `}break;case"group":Ln==="\\ne"?Te+=" not equal ":(Ln==="\\not"&&(Te+=" not "),Te+=Vl("math",y.body));break;case"root":Te+=Vl("math",y.body);break;case"genfrac":if(Je=Vl("math",y.above),Et=Vl("math",y.below),Cf(y.above)&&Cf(y.below)){const yo={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[up(y.above)+"/"+up(y.below)];yo?Te=yo:Te+=Je+" over "+Et}else Te+=' the fraction <break time="150ms"/>'+Je+' over <break time="150ms"/>'+Et+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(Zt=Vl("math",y.body),y.hasEmptyBranch("above"))Te+=Cf(y.body)?" the square root of "+Zt+" , ":' the square root of <break time="200ms"/>'+Zt+'. <break time="200ms"/> End square root';else{let _i=Vl("math",y.above);_i=_i.trim();const yo=_i.replace(/<mark([^/]*)\/>/g,"");yo==="3"?Te+=' the cube root of <break time="200ms"/>'+Zt+'. <break time="200ms"/> End cube root':yo==="n"?Te+=' the nth root of <break time="200ms"/>'+Zt+'. <break time="200ms"/> End root':Te+=' the root with index: <break time="200ms"/>'+_i+', of <break time="200ms"/>'+Zt+'. <break time="200ms"/> End root'}break;case"leftright":{const _i=y;Te+=(ne=_i.leftDelim?Xd[_i.leftDelim]:void 0)!=null?ne:_i.leftDelim,Te+=Vl("math",y.body),Te+=(ae=_i.rightDelim?Xd[_i.rightDelim]:void 0)!=null?ae:_i.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const Di=Ln.replace(/^\\/g,""),ua=jt()[Di];ua&&(ua!=null&&ua.expand?Te+=Vl("math",y.body):Te+=`${Di} `);break;case"placeholder":Te+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Ln==="\\mathbin"||Ln==="\\mathrel"||Ln==="\\mathopen"||Ln==="\\mathclose"||Ln==="\\mathpunct"||Ln==="\\mathord"||Ln==="\\mathinner"){Te=Vl(a,y.body);break}let _i=y.isDigit()?y.asDigit():y.value,yo=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(yo=y.value,_i=yo),a==="text")Te+=_i;else{if(y.type==="mbin"&&(Te+='<break time="150ms"/>'),_i){const Zo=Xd[_i]||(yo?Xd[yo.trim()]:"");if(Zo)Te+=" "+Zo;else{const Ro=yo?Ig(yo.trim()):"";Te+=Ro||Se(_i)}}else Te+=Vl("math",y.body);y.type==="mbin"&&(Te+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const _i=y.command;if(_i==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let yo=Vl("math",y.superscript);yo=yo.trim();let Zo=Vl("math",y.subscript);Zo=Zo.trim(),Te+=' the summation from <break time="200ms"/>'+Zo+'<break time="200ms"/> to <break time="200ms"/>'+yo+'<break time="200ms"/> of <break time="150ms"/>',bn=!0}else if(y.hasEmptyBranch("subscript"))Te+=" the summation of";else{let yo=Vl("math",y.subscript);yo=yo.trim(),Te+=' the summation from <break time="200ms"/>'+yo+'<break time="200ms"/> of <break time="150ms"/>',bn=!0}else if(_i==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let yo=Vl("math",y.superscript);yo=yo.trim();let Zo=Vl("math",y.subscript);Zo=Zo.trim(),Te+=' the product from <break time="200ms"/>'+Zo+'<break time="200ms"/> to <break time="200ms"/>'+yo+'<break time="200ms"/> of <break time="150ms"/>',bn=!0}else if(y.hasEmptyBranch("subscript"))Te+=" the product of ";else{let yo=Vl("math",y.subscript);yo=yo.trim(),Te+=' the product from <break time="200ms"/>'+yo+'<break time="200ms"/> of <break time="150ms"/>',bn=!0}else if(_i==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let yo=Vl("math",y.superscript);yo=yo.trim();let Zo=Vl("math",y.subscript);Zo=Zo.trim(),Te+=' the integral from <break time="200ms"/>'+Pe(Zo)+'<break time="200ms"/> to <break time="200ms"/>'+Pe(yo)+' <break time="200ms"/> of ',bn=!0}else Te+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const yo=(se=Xd[y.value])!=null?se:y.command?Xd[y.command]:void 0;Te+=yo||" "+y.value}else y.command&&(y.command==="\\mathop"?Te+=Vl("math",y.body):y.command==="\\operatorname"?Te+=Og(y.body):Te+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":Zt=Vl("math",y.body),Te+=" crossed out "+Zt+". End crossed out.";break;case"space":case"spacing":break}if(!bn&&!y.hasEmptyBranch("superscript")){let jr=Vl(a,y.superscript);jr=jr.trim();const aa=jr.replace(/<[^>]*>/g,"");if(Cf(y.superscript)){if(a==="math"){const Hr=Fg(y.superscript);Hr&&(Te+='<mark name="'+Hr+'"/>')}aa==="\u2032"?Te+=" prime ":aa==="2"?Te+=" squared ":aa==="3"?Te+=" cubed ":Number.isNaN(Number.parseInt(aa))?Te+=" to the "+jr+"; ":Te+=' to the <say-as interpret-as="ordinal">'+aa+"</say-as> power; "}else Number.isNaN(Number.parseInt(aa))?Te+=" raised to the "+jr+"; ":Te+=' raised to the <say-as interpret-as="ordinal">'+aa+"</say-as> power; "}if(!bn&&!y.hasEmptyBranch("subscript")){let jr=Vl("math",y.subscript);jr=jr.trim(),Te+=Cf(y.subscript)?" sub "+jr:" subscript "+jr+". End subscript. "}}return Te}function Jd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ne=ss(a);if(ne){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=fe(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=fe(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=fe(Ee({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ae=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ae.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let se="";try{se=ae.toSpeech(ne)}catch(Se){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",Se)}return se}return""}let E=Vl("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ne="";window.MathfieldElement.speechEngineRate&&(ne='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),E='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+ne+"<p><s>"+E+"</s></p>"+(ne?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&ge()==="macos"?E=E.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var Sf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},wf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Ng(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function cu(a){var y,b,E,ne,ae,se,Se,Pe,Te,Je,Et,Zt,bn;if(!a)return"";if(De(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(cu).join("");if(a[0].mode==="text"){let ua=0,_i="";for(;((y=a[ua])==null?void 0:y.mode)==="text";)_i+=a[ua].body?cu(a[ua].body):a[ua].value,ua++;return`"${_i}" ${cu(a.slice(ua))}`}let Hr=0;const Di=[];for(;a[Hr]&&a[Hr].mode==="math";){let ua="";for(;a[Hr]&&a[Hr].type==="mord"&&/\d/.test(a[Hr].value);)ua+=a[Hr++].value;ua?Di.push(ua):Di.push(cu(a[Hr++]))}return Di.push(cu(a.slice(Hr))),Ng(Di)}if(a.mode==="text")return`"${a.value}"`;let Ln="";const{command:jr}=a;let aa;if(jr==="\\placeholder")return`(${cu(a.body)})`;switch(a.type){case"accent":const Hr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[jr];Ln=`${Hr!=null?Hr:""} ${cu(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Ro=>Ro.value).join("");case"group":case"root":Ln=(b=Sf[jr])!=null?b:cu(a.body);break;case"genfrac":{const Ro=a;(Ro.leftDelim||Ro.rightDelim)&&(Ln=Ro.leftDelim==="."||!Ro.leftDelim?"{:":Ro.leftDelim),Ro.hasBarLine?(Ln+="(",Ln+=cu(Ro.above),Ln+=")/(",Ln+=cu(Ro.below),Ln+=")"):(Ln+="("+cu(Ro.above)+"),",Ln+="("+cu(Ro.below)+")"),(Ro.leftDelim||Ro.rightDelim)&&(Ln+=Ro.rightDelim==="."||!Ro.rightDelim?"{:":Ro.rightDelim)}break;case"surd":Ln+=a.hasEmptyBranch("above")?"sqrt("+cu(a.body)+")":"root("+cu(a.above)+")("+cu(a.body)+")";break;case"latex":Ln=a.value;break;case"leftright":{const Ro=a,$l=Ro.leftDelim;Ln+=$l==="."||!$l?"{:":$l,Ln+=cu(Ro.body);const Es=Ro.matchingRightDelim();Ln+=Es==="."||!Es?":}":Es}break;case"sizeddelim":case"delim":Ln=a.value;break;case"overlap":break;case"overunder":break;case"mord":Ln=(ne=(E=Sf[jr])!=null?E:jr)!=null?ne:typeof a.value=="string"?a.value:"",Ln.startsWith("\\")&&(Ln+=" "),aa=jr?jr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,aa?Ln=String.fromCodePoint(Number.parseInt("0x"+aa[1])):Ln.length>0&&Ln.startsWith("\\")&&(Ln=typeof a.value=="string"?a.value.charAt(0):a.command),Ln=Lg(Ln,a.style);break;case"mbin":case"mrel":case"minner":Ln=(se=(ae=Sf[jr])!=null?ae:wf[jr])!=null?se:a.value;break;case"mopen":case"mclose":Ln=a.value;break;case"mpunct":Ln=(Se=wf[jr])!=null?Se:jr;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(wf[jr]?Ln=wf[jr]:Ln=jr==="\\operatorname"?cu(a.body):(Pe=a.value)!=null?Pe:jr,Ln+=" ");break;case"array":const Di=a.array,ua=a.environmentName,_i=(Te={bmatrix:["[","]"],"bmatrix*":["[","]"]}[ua])!=null?Te:["(",")"],yo=[];for(const Ro of Di){const $l=[];for(const Es of Ro)$l.push(_i[0]+cu(Es)+_i[1]);yo.push($l.join(","))}const Zo=(Je={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[ua])!=null?Je:["(",")"];Ln=Zo[0]+yo.join(",")+Zo[1];break;case"box":break;case"spacing":Ln=(Et=Sf[jr])!=null?Et:" ";break;case"enclose":Ln="("+cu(a.body)+")";break;case"space":Ln=" ";break;case"subsup":Ln="";break;case"macro":Ln=(bn=(Zt=Sf[jr])!=null?Zt:wf[jr])!=null?bn:cu(a.body);break}if(!a.hasEmptyBranch("subscript")){Ln+="_";const Hr=cu(a.subscript);Ln+=Hr.length!==1?`(${Hr})`:Hr}if(!a.hasEmptyBranch("superscript")){Ln+="^";const Hr=cu(a.superscript);Ln+=Hr.length!==1?`(${Hr})`:Hr}return Ln}function Lg(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function Du(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ne=new Oo({from:fe(Ee({},Tl()),{renderPlaceholder:()=>new Pi(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),se=new qr({mode:"math",type:"root",body:Bu(a,{context:ne,parseMode:"math",mathstyle:y.mathstyle})}).render(ne);return se?(Ps(sf(se,ne)),gu(se,{classes:"ML__latex"}).toMarkup()):""}function k1(a){return t0(a,{context:Tl()})}function Tg(a,y={}){return ss(Bu(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rg(a){const y=Bu(a,{parseMode:"math",mathstyle:"displaystyle"});return Jd(y)}var sh;function _g(a){var y,b;if(!sh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?sh=new E:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=sh==null?void 0:sh.box(a).latex)!=null?b:""}function B1(a,y="math"){return cu(new qr({type:"root",body:Bu(a,{parseMode:y})}))}function D1(a){return Ec(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=zg(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hg(a):"a"in a?cp(a):a}function $d(a){return a<0?0:a>255?255:Math.round(a)}function zg(a){if(!a||a[0]!=="#")return;a=a.slice(1);let y;return a.length<=4?(y={r:parseInt(a[0]+a[0],16),g:parseInt(a[1]+a[1],16),b:parseInt(a[2]+a[2],16)},a.length===4&&(y.a=parseInt(a[3]+a[3],16)/255)):(y={r:parseInt(a[0]+a[1],16),g:parseInt(a[2]+a[3],16),b:parseInt(a[4]+a[5],16)},a.length===8&&(y.a=parseInt(a[6]+a[7],16)/255)),y&&typeof y.a=="undefined"&&(y.a=1),y}function Vh(a){const[y,b,E]=[a.L,a.C,a.H],ne=E*Math.PI/180,ae={L:y,a:b*Math.cos(ne),b:b*Math.sin(ne)};return a.alpha!==void 0&&(ae.alpha=a.alpha),ae}function Kg(a){const[y,b,E]=[a.L,a.a,a.b],ne=Math.sqrt(b*b+E*E),se=Math.atan2(E,b)*180/Math.PI,Se={L:y,C:ne,H:se};return a.alpha!==void 0&&(Se.alpha=a.alpha),Se}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ne=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),ae=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),se=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),Se=4.076741661347994*ne-3.307711590408193*ae+.230969928729428*se,Pe=-1.2684380040921763*ne+2.6097574006633715*ae-.3413193963102197*se,Te=-.004196086541837188*ne-.7034186144594493*ae+1.7076147009309444*se,Je=Et=>{const Zt=Math.abs(Et);return Zt<=.0031308?Et*12.92:(Math.sign(Et)||1)*(1.055*Math.pow(Zt,1/2.4)-.055)};return[Je(Se),Je(Pe),Je(Te)]}function Qh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Yh(a,y){let[b,E,ne]=a;return b=$d(b*255),E=$d(E*255),ne=$d(ne*255),y!==void 0?{r:b,g:E,b:ne,alpha:y}:{r:b,g:E,b:ne}}function cp(a){let[y,b,E]=Gh(a);if(Qh([y,b,E]))return Yh([y,b,E],a.alpha);const ne=Kg(a);if(ne.C=0,[y,b,E]=Gh(Vh(ne)),!Qh([y,b,E]))return Yh([y,b,E],a.alpha);let ae=0,se=a.L,Se=(ae+se)/2;ne.C=Se;const Pe=.36/Math.pow(2,12);for(;se-ae>Pe;)Se=(ae+se)/2,ne.C=Se,[y,b,E]=Gh(Vh(ne)),Qh([y,b,E])?ae=Se:se=Se;return Yh([y,b,E],a.alpha)}function Hg(a){return cp(Vh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ne=.56,ae=.57,se=.62,Se=.65,Pe=.022,Te=1.414,Je=.1,Et=5e-4,Zt=1.14,bn=.027,Ln=1.14,jr=.027;function aa(Ro){return Ro>=Pe?Ro:Ro+Lc(Pe-Ro,Te)}function Hr(Ro){return(Ro<0?-1:1)*Math.pow(Math.abs(Ro),2.4)}const Di=aa(Hr(E.r/255)*.2126729+Hr(E.g/255)*.7151522+Hr(E.b/255)*.072175),ua=aa(Hr(b.r/255)*.2126729+Hr(b.g/255)*.7151522+Hr(b.b/255)*.072175);let _i,yo,Zo;return Math.abs(ua-Di)<Et?yo=0:ua>Di?(_i=Lc(ua,ne)-Lc(Di,ae),yo=_i*Zt):(_i=Lc(ua,Se)-Lc(Di,se),yo=_i*Ln),Math.abs(yo)<Je?Zo=0:yo>0?Zo=yo-jr:Zo=yo+bn,Zo*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ne=dp(a,y);return Math.abs(E)>Math.abs(ne)?b:y}function Zg(a){const y=Uh(a);let b=((1<<24)+($d(y.r)<<16)+($d(y.g)<<8)+$d(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function Hs(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Wg(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function jg(a,y){return Hs(a).length>0}function Ug(a){return[Xh(a,"double-struck","mathbb","tooltip.blackboard"),Xh(a,"fraktur","mathfrak","tooltip.fraktur"),Xh(a,"calligraphic","mathcal","tooltip.caligraphic"),Jh(a,"up","mathrm","tooltip.roman-upright"),Jh(a,"bold","mathbf","tooltip.bold"),Jh(a,"italic","mathit","tooltip.italic")]}function Vg(a){return[{label:()=>Du(`\\vec{${Hs(a)}}`),visible:()=>Hs(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Du(`\\overrightarrow{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Du(`\\overleftarrow{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Du(`\\dot{${Hs(a)}}`),visible:()=>Hs(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Du(`\\ddot{${Hs(a)}}`),visible:()=>Hs(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Du(`\\bar{${Hs(a)}}`),visible:()=>Hs(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Du(`\\overline{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Du(`\\overgroup{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Du(`\\overbrace{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Du(`\\underline{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Du(`\\undergroup{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Du(`\\underbrace{${Hs(a)}}`),visible:()=>Hs(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gg(a){return[{label:()=>Du(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Du(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Du(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Qg(a){const y=[];for(const b of Object.keys(ze))y.push({class:(Zg(fp(ze[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${ze[b]} "></span>`,ariaLabel:()=>{var E;return(E=Oe(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Yg(a){const y=[];for(const b of Object.keys(We))y.push({class:(fp(We[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${We[b]} "></span>`,ariaLabel:()=>{var E;return(E=Oe(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Xg=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Jg(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ne,ae)=>new Xg(ne,ae,b,E),label:"\u2610",tooltip:()=>Oe("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function $g(a){return[{label:()=>Oe("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Dd(a)},{label:()=>Oe("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Dd(a)},{label:()=>Oe("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Dd(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>Oe("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Dd(a)},{type:"divider"},{label:()=>Oe("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Dd(a)},{label:()=>Oe("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Dd(a)},{type:"divider"},{label:()=>Oe("menu.borders"),visible:()=>(qg(a)||Dd(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Af(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Af(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Af(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Af(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Af(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>Oe("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jg(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>Oe("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>Oe("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Hd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>Oe("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Hd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>Oe("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>Oe("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Ug(a),submenuClass:"variant-submenu"},{label:()=>Oe("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Yg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Oe("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Qg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>Oe("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vg(a),submenuClass:"variant-submenu"},{label:()=>Oe("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Hs(a).length>0,submenu:Gg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>Oe("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>Oe("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?Oe("menu.solve-for",Du(b)):Oe("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ne=(y=b.solve(E))==null?void 0:y.map(ae=>{var se;return(se=ae.simplify().latex)!=null?se:""});if(!ne){a.model.announce("plonk");return}a.insert(`${E}=${ne.length===1?ne[0]:"\\left\\lbrace"+(ne==null?void 0:ne.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>Oe("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>Oe("menu.copy"),id:"copy",submenu:[{label:()=>Oe("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>pl.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>Oe("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>pl.copyToClipboard(a,"ascii-math")},{label:()=>Oe("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>pl.copyToClipboard(a,"math-ml")}]},{label:()=>Oe("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>Oe("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Dd(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qg(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ne)=>Math.max(E,ne.length),0)]:[0,0]}function Af(a,y){Lf(a),a.flushInlineShortcutBuffer(),F0(a.model,y),lu(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ne=E.evaluate();return ne.isSame(E)&&(ne=E.N()),ne.latex}function Xh(a,y,b,E){return{label:()=>Du(`\\${b}{${Hs(a)}}`),tooltip:()=>{var ne;return(ne=Oe(E))!=null?ne:E},visible:()=>Wg(a,y),checked:()=>{var ne;return{some:"mixed",all:!0}[(ne=a.queryStyle({variant:y}))!=null?ne:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jh(a,y,b,E){return{label:()=>Du(`\\${b}{${Hs(a)}}`),tooltip:()=>{var ne;return(ne=Oe(E))!=null?ne:E},visible:()=>jg(a,y),checked:()=>{var ne;return{some:"mixed",all:!0}[(ne=a.queryStyle({variantStyle:y}))!=null?ne:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function qd(a,y){return a+Jd(y)}qu({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ne;b=b!=null?b:{withHighlighting:!1};const{model:ae}=a;function se(Je){let Et=null;switch(Je){case"all":Et=ae.root;break;case"selection":Et=ae.getAtoms(ae.selection);break;case"left":{Et=ae.getAtoms(ae.offsetOf(ae.at(ae.position).leftSibling),ae.position);break}case"right":{Et=ae.getAtoms(ae.position,ae.offsetOf(ae.at(ae.position).rightSibling));break}case"group":Et=ae.getAtoms(ae.getSiblingsRange(ae.position));break;case"parent":{const{parent:Zt}=ae.at(ae.position);Zt!=null&&Zt.parent?Et=Zt:Et=ae.root;break}default:Et=ae.root}return Et}function Se(Je){let Et="";switch(Je){case"all":console.log("Internal failure: speak all failed");break;case"selection":Et="no selection";break;case"left":Et="at start";break;case"right":Et="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Et="no parent";break;default:console.log('unknown speak_ param value: "'+Je+'"');break}return Et}const Pe=se(y);if(Pe===null)return(ne=(E=window.MathfieldElement).speakHook)==null||ne.call(E,Se(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Te=Jd(Pe);return rt()&&b.withHighlighting?(sd().readAloudMathfield=a,xd(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Te)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Te),!1}function r1(a){var y,b;if(!rt()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ne={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};E.synthesizeSpeech(ne,(ae,se)=>{if(ae)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);else if(se!=null&&se.AudioStream){const Se=new Uint8Array(se.AudioStream),Pe=new Blob([Se.buffer],{type:"audio/mpeg"}),Te=URL.createObjectURL(Pe);new Audio(Te).play().catch(Et=>console.log(Et))}else console.log("polly.synthesizeSpeech():",se)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ne="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ne=qd("deleted: ",E);else if(y==="focus"||y.includes("move"))ne=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ne=qd("",a.model.at(a.model.position));else if(y==="line"){const ae=qd("",a.model.root);a.keyboardDelegate.setAriaLabel(ae)}else ne=E?qd(y+" ",E):y;if(ne){const ae=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ne+ae}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ne=b.parent;const ae=a.at(a.position).parent;for(;ne!==a.root&&ne!==ae;)E+=`out of ${pp(ne)};`,ne=ne.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return qd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=qd("",b),y}var l1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ne={};if((y==null?void 0:y.type)==="undo"&&(ne={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ne={inputType:"historyRedo"}),this.contentWillChange(ne)){const ae=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=id(a.content),this.selection=a.selection,this.silenceNotifications=ae,this.contentDidChange(ne)}this.silenceNotifications=E}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,E,ne;const ae=this.normalizeSelection(a,y);if(ae===void 0)throw new TypeError("Invalid selection");if(ae.ranges.length===1&&ae.ranges[0][0]===ae.ranges[0][1]){const Je=ae.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Je))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Je-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Je-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ne=this.at(Je+1))!=null&&ne.parentPrompt){this._anchor=this.normalizeOffset(Je+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=Je,this._position=Je,this._selection=ae;return}const se=iu(ae);ae.direction==="backward"?[this._position,this._anchor]=se:[this._anchor,this._position]=se;const Se=this.at(se[0]+1),Pe=this.at(se[1]),Te=qr.commonAncestor(Se,Pe);(Te==null?void 0:Te.type)==="array"&&Se.parent===Te&&Pe.parent===Te?this._selection={ranges:[se],direction:ae.direction}:this._selection={ranges:[se],direction:ae.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Nu&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let E=b!=null?b:{};if(Jc(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Te,Je)=>[...Te,...this.getAtoms(Je,E)],[]);a=a.ranges[0]}let ne,ae;if(_u(a)){if(ne=a,!_u(y))return[];ae=y}else[ne,ae]=a,E=y!=null?y:{};if(!Number.isFinite(ne))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ne<0&&(ne=this.lastOffset-ne+1),ae<0&&(ae=this.lastOffset-ae+1);const se=Math.min(ne,ae)+1,Se=Math.max(ne,ae);if(!E.includeChildren&&se===1&&Se===this.lastOffset)return[this.root];let Pe=[];for(let Te=se;Te<=Se;Te++){const Je=this.atoms[Te];mp(this,Je,se,Se)&&Pe.push(Je)}return E.includeChildren||(Pe=Pe.filter(Te=>{let Je=!1,{parent:Et}=Te;for(;Et&&!Je;)Je=mp(this,Et,se,Se),Et=Et.parent;return!Je})),Pe}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ne=this.lastOffset;if(b==="forward"){for(let ae=y;ae<=ne;ae++)if(E=this.atoms[ae],a(E))return E;for(let ae=0;ae<y;ae++)if(E=this.atoms[ae],a(E))return E;return}for(let ae=y;ae>=0;ae--)if(E=this.atoms[ae],a(E))return E;for(let ae=ne;ae>y;ae--)if(E=this.atoms[ae],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new qr({type:"root",body:[]}),y;for(const b of y)b.parent.removeChild(b);return y}deleteAtoms(a){this.extractAtoms(a),this.position=a[0]}atomToString(a,y){const b=y!=null?y:"latex";if(b.startsWith("latex"))return qr.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return ss(a);if(b==="spoken")return Jd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ne=Jd(a);return window.MathfieldElement.textToSpeechMarkup=E,ne}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ne=Jd(a);return window.MathfieldElement.textToSpeechMarkup=E,ne}return b==="ascii-math"?cu(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let E,ne;if(_u(a)&&_u(y)?(E=[this.normalizeRange([a,y])],ne=b):Rc(a)?(E=[this.normalizeRange(a)],ne=y):Jc(a)?(E=a.ranges,ne=y):(E=[this.normalizeRange([0,-1])],ne=a),ne!=null||(ne="latex"),ne==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const ae=this.getValue({ranges:E},"latex-unstyled");try{const se=window.MathfieldElement.computeEngine.parse(ae);return JSON.stringify(se.json)}catch(se){return JSON.stringify(["Error",`'${se.toString()}'`])}}if(ne.startsWith("latex")){const ae={expandMacro:ne==="latex-expanded",skipStyles:ne==="latex-unstyled",skipPlaceholders:ne==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return ol(E.map(se=>qr.serialize(this.getAtoms(se),ae)))}return E.map(ae=>this.getAtoms(ae).map(se=>this.atomToString(se,ne)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ne]=b,{parent:ae}=this.at(ne);if(ae&&(ae.type==="genfrac"||ae.type==="subsup"))for(;ae!==this.root&&$h(this,ae,[E,ne]);)ne=this.offsetOf(ae),ae=ae.parent;for(ae=this.at(E).parent;ae!==this.root&&$h(this,ae,[E,ne]);)E=this.offsetOf(ae.leftSibling),ae=ae.parent;if(ae=this.at(ne).parent,(ae==null?void 0:ae.type)==="genfrac")for(;ae!==this.root&&$h(this,ae,[E,ne]);)ne=this.offsetOf(ae),console.assert(ne>=0),ae=ae.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ne]],direction:"none"}})}announce(a,y,b=[]){var E,ne;((ne=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ne:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ne=this._position,ae=this.silenceNotifications;this.silenceNotifications=!0;const se=this.root.changeCounter;y();const Se=this.root.changeCounter!==se,Pe=E!==this._anchor||ne!==this._position||Tc(this._selection,b)==="different";return this.silenceNotifications=ae,a.content&&Se&&this.contentDidChange({inputType:a.type}),a.selection&&Pe&&this.selectionDidChange(),Se||Pe}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(_u(a)){const ne=this.normalizeOffset(a);if(_u(y)){const ae=this.normalizeOffset(y);E=ne<=ae?{ranges:[[ne,ae]],direction:"none"}:{ranges:[[ae,ne]],direction:"backward"}}else E={ranges:[[ne,ne]],direction:"none"}}else if(Rc(a)){const ne=this.normalizeOffset(a[0]),ae=this.normalizeOffset(a[1]);E=ne<=ae?{ranges:[[ne,ae]],direction:"none"}:{ranges:[[ae,ne]],direction:"backward"}}else Jc(a)&&(E={ranges:a.ranges.map(ne=>this.normalizeRange(ne)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",fe(Ee({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",bubbles:!0,composed:!0}))),this.silenceNotifications=b}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ne=a.offsetOf(y);if(ne<b||ne>E)return!1;if(!y.hasChildren)return!0;const ae=a.offsetOf(y.firstChild);if(ae>=b&&ae<=E){const se=a.offsetOf(y.lastChild);if(se>=b&&se<=E)return!0}return!1}function $h(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ne]=b,ae=a.offsetOf(y.firstChild),se=a.offsetOf(y.lastChild);return ae>=E&&ae<=ne&&se>=ae&&se<=ne}function Mf(a,y,b,E){var ne,ae,se,Se,Pe,Te;const Je=b.parent;if(Je&&b instanceof ls){const Et=!E&&y==="forward"||E==="body"&&y==="backward";let Zt=Et?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return Et?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Je.addChildrenAfter(b.removeBranch("body"),b),Je.removeChild(b),Zt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Je.addChildrenAfter(b.removeBranch("body"),b),Je.removeChild(b),Zt--),a.position=Zt,!0}if(Je&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const Et=b.leftSibling;b.hasChildren&&Je.addChildrenAfter(b.removeBranch("body"),b),Je.removeChild(b),a.position=a.offsetOf(Et)}else y==="forward"&&E==="body"?a.position=a.offsetOf(b):!E&&y==="backward"?b.hasChildren?a.position=a.offsetOf(b.lastChild):(a.position=Math.max(0,a.offsetOf(b)-1),Je.removeChild(b)):E==="above"&&(b.hasEmptyBranch("above")&&b.removeBranch("above"),y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b.body[0]));return!0}if(Je&&(b.type==="box"||b.type==="enclose")){const Et=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Je.addChildrenAfter(b.removeBranch("body"),b),Je.removeChild(b),a.position=a.offsetOf(Et),!0}if(b.type==="genfrac"||b.type==="overunder"){if(!E)return b.type==="overunder"&&b.hasEmptyBranch("body")||b.type==="genfrac"&&b.hasEmptyBranch("below")&&b.hasEmptyBranch("above")?!1:(a.position=a.offsetOf(y==="forward"?b.firstChild:b.lastChild),!0);const Et=kf.fractionNavigationOrder==="numerator-denominator"?"above":"below",Zt=Et==="above"?"below":"above";if(Je&&(y==="forward"&&E===Et||y==="backward"&&E===Zt)){const bn=b.removeBranch(Et),Ln=b.removeBranch(Zt);return Je.addChildrenAfter([...bn,...Ln],b),Je.removeChild(b),a.position=a.offsetOf(bn.length>0?bn[bn.length-1]:Ln[0]),!0}return y==="backward"?a.position=a.offsetOf(b.leftSibling):a.position=a.offsetOf(b),!0}if(b.isExtensibleSymbol||b.type==="subsup"){if(!E&&y==="forward")return!1;if(!E){if(b.subscript||b.superscript){const Et=y==="forward"?(se=(ne=b.superscript)==null?void 0:ne[0])!=null?se:(ae=b.subscript)==null?void 0:ae[0]:(Te=(Se=b.subscript)==null?void 0:Se[0].lastSibling)!=null?Te:(Pe=b.superscript)==null?void 0:Pe[0].lastSibling;return Et&&(a.position=a.offsetOf(Et)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const Et=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=Et,!0}if(E==="superscript")if(y==="backward"){const Et=a.offsetOf(b.firstChild)-1;console.assert(Et>=0),a.position=Et}else b.subscript?a.position=a.offsetOf(b.subscript[0]):a.position=a.offsetOf(b);else E==="subscript"&&(y==="backward"&&b.superscript?a.position=a.offsetOf(b.superscript[0].lastSibling):y==="backward"?a.position=a.offsetOf(b.firstChild)-1:a.position=a.offsetOf(b));if(E&&b.hasEmptyBranch(E)&&(b.removeBranch(E),b.type==="subsup"&&!b.subscript&&!b.superscript)){const Et=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=Et}return!0}if((Je==null?void 0:Je.type)==="genfrac"&&!E&&b.type!=="first"){let Et=a.offsetOf(b.leftSibling);return Je.removeChild(b),Je.hasEmptyBranch("above")&&Je.hasEmptyBranch("below")?(Et=a.offsetOf(Je.leftSibling),Je.parent.removeChild(Je),a.announce("delete",void 0,[Je]),a.position=Et,!0):(a.announce("delete",void 0,[b]),a.position=Et,!0)}if(y==="backward"&&((Je==null?void 0:Je.command)==="\\ln"||(Je==null?void 0:Je.command)==="\\log")&&b.parentBranch!=="body"){const Et=a.offsetOf(Je.leftSibling);return Je.parent.removeChild(Je),a.announce("delete",void 0,[Je]),a.position=Et,!0}return!1}function s1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&Mf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Mf(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):Dc(a,iu(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&Mf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Mf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Mf(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ne=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ne==null?void 0:ne.type)==="subsup";)ne.parent.removeChild(ne),ne=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):Dc(a,iu(a.selection),"deleteContentForward")}function Dc(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ne=E[0].parent.firstChild;ne.type==="first"&&(ne=ne.rightSibling);const ae=E[E.length-1].parent.lastChild;let se=E[0];se.type==="first"&&(se=se.rightSibling);const Se=E[E.length-1];if(se===ne&&Se===ae){const Pe=E[0].parent;Pe.parent&&Pe.type!=="prompt"&&(y=[a.offsetOf(Pe.leftSibling),a.offsetOf(Pe)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const Pe=E[0].parent,Te=E[0].parentBranch==="below"?"above":"below",Je=a.offsetOf(Pe.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var Et,Zt;const bn=Pe.removeBranch(Te);if(bn.length===1&&bn[0].type==="placeholder")(Zt=Pe.parent)==null||Zt.removeChild(Pe),a.position=Math.max(0,Je);else{const Ln=Pe.parent.addChildrenAfter(bn,Pe);(Et=Pe.parent)==null||Et.removeChild(Pe),a.position=a.offsetOf(Ln)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}qu({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Dc(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>s1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Dc(a,[a.anchor,kh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Dc(a,[a.anchor,kh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Dc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Dc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Dc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Dc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${Oe("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${Oe("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ne;this.options=Ee(fe(Ee({},Vf()),{macros:jt(),registers:sc()}),Uf(y)),this.eventController=new AbortController;const ae=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let se=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";se=se.trim();const Se=D0(this.options),Pe=new qr({type:"root",mode:Se,body:Bu(se,{context:this.context})});this.model=new l1(this,Se,Pe),this.undoManager=new Rv(this.model);const Te=[];if(Te.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),Te.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Te.push("<span part=content class=ML__content>"),Te.push(E0(this)),Te.push("</span>"),window.mathVirtualKeyboard&&(Te.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),Te.push(c1),Te.push("</div>")),Te.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Te.push(d1),Te.push("</div>"),Te.push("</span>"),Te.push("<span class=ML__sr-only>"),Te.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Te.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Te.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=He.subscribe(()=>He.update(this.element)),He.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Et=>Et.stopImmediatePropagation(),{capture:!1,signal:ae}),this.field.addEventListener("wheel",this,{passive:!1,signal:ae}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ae}):this.field.addEventListener("mousedown",this,{signal:ae}),(ne=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ne.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(kc(this)))},{signal:ae}),this._menu=new Cg($g(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ae});const Je=this.element.querySelector("[part=menu-toggle]");Je==null||Je.addEventListener("pointerdown",Et=>{if(Et.currentTarget!==Je||this._menu.state!=="closed")return;this.element.classList.add("tracking");const Zt=Je.getBoundingClientRect();this._menu.modifiers=bd(Et),this._menu.show({target:Je,location:{x:Zt.left,y:Zt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Et.preventDefault(),Et.stopPropagation()},{signal:ae}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Je.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Zm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ae}),document.addEventListener("scroll",this,{signal:ae}),this.resizeObserver=new ResizeObserver(()=>lu(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ae}),df&&!He.locale.startsWith(df.locale)&&_m(He.locale),ic!=="ready"&&document.fonts.ready.then(()=>Kf(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this)),ih(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,_h())}showMenu(a){var y,b;const E=(b=(y=a==null?void 0:a.location)!=null?y:tc(this.field))!=null?b:void 0,ne=a==null?void 0:a.modifiers,ae=this.element.querySelector("[part=container]");return this._menu.show({target:ae,location:E,modifiers:ne})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:Ze(a)}}get backgroundColorMap(){return a=>{var y,b,E,ne,ae,se;return(se=(ae=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ae:(ne=(E=this.options).colorMap)==null?void 0:ne.call(E,a))!=null?se:Ae(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=qr.commonAncestor(a,y);return!!((b==null?void 0:b.type)==="prompt"||b!=null&&b.parentPrompt)}get letterShapeStyle(){var a;return(a=this.options.letterShapeStyle)!=null?a:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const a=this.model.getAtoms(this.model.selection);if(a.length===0)return{};const y=Ee({},a[0].style);for(const b of a)for(const[E,ne]of Object.entries(b.style))y[E]!==ne&&delete y[E];return y}queryStyle(a){const y=Oh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const Pe of Object.keys(y)){const Te=this.queryStyle({[Pe]:y[Pe]});if(Te==="none")return"none";if(Te==="some")return"some"}return"all"}const E=Object.keys(y)[0],ne=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ne?"all":"none";const ae=this.model.getAtoms(this.model.selection,{includeChildren:!0});let se=ae.length;if(se===0)return"none";let Se=0;for(const Pe of ae){if(Pe.type==="first"){se-=1;continue}Pe.style[E]===ne&&(Se+=1)}return Se===0?"none":Se===se?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=ff())!=null?a:zm());return((y=ff())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=Ee(Ee({},this.options),Uf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=qr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&pl.insert(this.model,E,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&lu(this)}getOptions(a){return Cd(this.options,a)}getOption(a){return Cd(this.options,a)}handleEvent(a){return ud(this,null,function*(){var y;if(ju(this)){if(Sh(a)){if(!ms(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(Wd(E)==="virtual-keyboard")return;this.executeCommand(E)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&j0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(j0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&ih(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>ju(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>ju(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!ju(this))return;He.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Qv(),qm(),mg()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return Wd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(kc(this))),!1):ov(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=Fd(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();pl.insert(this.model,a,y)&&(lu(this),E||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const E=window.mathVirtualKeyboard.boundingRect,ne=this.host.getBoundingClientRect();ne.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ne.bottom-E.top+8))}}this.dirty&&xd(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=tc(this.field);else{const E=Xl(this);if(E.length>0){let ne=-1/0,ae=-1/0;for(const se of E)se.right>ne&&(ne=se.right),se.top<ae&&(ae=se.top);b={x:ne+y.left-this.field.scrollLeft,y:ae+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ne=b.y;let ae=this.host.scrollTop;ne<E.top?ae=ne-E.top+this.host.scrollTop:ne>E.bottom&&(ae=ne-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ae,left:0})}if(b){const E=b.x-window.scrollX;let ne=this.field.scrollLeft;E<y.left?ne=E-y.left+this.field.scrollLeft-20:E>y.right&&(ne=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ne})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&_e()&&navigator.vibrate(C0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?P0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?pl.insert(this.model,a,Ee({style:this.model.at(this.model.position).computedStyle},y)):pl.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),lu(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ne=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ne;return}const ae=this.model.mode,{model:se}=this;se.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let Se=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const Pe=Bu(y,{context:this.context,parseMode:a});se.collapseSelection("forward");const Te=se.at(se.position);se.position=se.offsetOf(Te.parent.addChildrenAfter(Pe,Te)),Se=!0}if(this.model.mode=a,a==="latex"){let Pe=se.selectionIsCollapsed;Hd(this,"accept");let Te,Je=se.at(se.position);if(Pe)Te="\\";else{const Zt=iu(se.selection);Te=this.model.getValue(Zt,"latex");const bn=this.model.extractAtoms(Zt);bn.length===1&&bn[0].type==="placeholder"&&(Te=y,Pe=!0),Je=se.at(Zt[0])}const Et=new af(Te);Je.parent.addChildAfter(Et,Je),Pe?se.position=se.offsetOf(Et.lastChild):se.setSelection(se.offsetOf(Et.firstChild),se.offsetOf(Et.lastChild))}else hf(se).forEach(Pe=>{Pe.isError=!1});if(b){const Pe=Bu(b,{context:this.context,parseMode:ae});se.collapseSelection("forward");const Te=se.at(se.position);se.position=se.offsetOf(Te.parent.addChildrenAfter(Pe,Te)),Se=!0}return lu(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),Se}),this.model.mode=a,window.mathVirtualKeyboard.update(kc(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,E;const ne={operation:"set",silenceNotifications:!1};Rc(y)?ne.range=y:(y.operation==="toggle"&&(ne.operation="toggle"),ne.range=y.range,ne.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ae=Oh(this,a),se=(E=ne.operation)!=null?E:"set";if(ne.range===void 0&&this.model.selectionIsCollapsed){if(se==="set"){this.defaultStyle=Ee(Ee({},this.defaultStyle),ae);return}const Se=Ee({},this.defaultStyle);for(const Pe of Object.keys(ae))Se[Pe]===ae[Pe]?(Pe==="color"&&delete Se.verbatimColor,Pe==="backgroundColor"&&delete Se.verbatimBackgroundColor,delete Se[Pe]):Se[Pe]=ae[Pe];this.defaultStyle=Se;return}this.model.deferNotifications({content:!ne.silenceNotifications,type:"insertText"},()=>{if(ne.range===void 0)for(const Se of this.model.selection.ranges)Ah(this.model,Se,ae,{operation:se});else Ah(this.model,ne.range,ae,{operation:se})}),lu(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=tc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Ef(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),lu(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ne=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ne,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ne=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ne),this.insert(y,fe(Ee({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),lu(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),lu(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this)),(y=this.host)==null||y.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var a;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var a;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this)),(a=this.host)==null||a.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var a;(a=this.undoManager)==null||a.reset()}onSelectionDidChange(){var a,y;const b=this.model;this.keyboardDelegate.setValue(b.getValue(this.model.selection,"latex-expanded"));{const E=b.at(b.position),ne=(a=E.mode)!=null?a:D0(this.options);this.model.mode!==ne&&(this.model.mode==="latex"?(Hd(this,"accept",{mode:ne}),b.position=b.offsetOf(E)):this.switchMode(ne))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(kc(this)),ih(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",fe(Ee({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),xd(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",Zd(this),this.model.getValue()!==this.valueOnFocus&&((a=this.host)==null||a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(y=this.host)==null||y.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(b=this.host)==null||b.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),lu(this),this.focusBlurInProgress=!1,_h();const E=new AbortController,ne=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{ju(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ne})},{once:!0,signal:ne}),setTimeout(()=>E.abort(),100)}onInput(a){Ph(this,a)}onKeystroke(a){return H0(this,a)}onCompositionStart(a){this.model.deleteAtoms(iu(this.model.selection));const y=tc(this.field);y&&requestAnimationFrame(()=>{xd(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Bv(this.model,a),lu(this)}onCompositionEnd(a){Dv(this.model),Ph(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),pl.onCopy(this,a),Dc(this.model,iu(this.model.selection),"deleteByCut"),this.snapshot("cut"),lu(this))}onCopy(a){pl.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=pl.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),Rf(this),ih(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>Gn(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function vp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)vp(y)}function qh(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E,y)})))}function h1(a,y){var b;if(!rt())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(y);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ne={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};sd().readAloudElement=a,E.synthesizeSpeech(ne,(ae,se)=>{if(ae){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);return}if(!(se!=null&&se.AudioStream)){console.log("polly.synthesizeSpeech():",se);return}const Se=new TextDecoder("utf-8").decode(new Uint8Array(se.AudioStream));sd().readAloudMarks=Se.split(`
`).map(Pe=>Pe?JSON.parse(Pe):{}),sd().readAloudTokens=[];for(const Pe of sd().readAloudMarks)Pe.value&&sd().readAloudTokens.push(Pe.value);sd().readAloudCurrentMark="",ne.OutputFormat="mp3",ne.SpeechMarkTypes=[],E.synthesizeSpeech(ne,(Pe,Te)=>{if(Pe){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${Pe}`);return}if(!(Te!=null&&Te.AudioStream))return;const Je=new Uint8Array(Te.AudioStream),Et=new Blob([Je.buffer],{type:"audio/mpeg"}),Zt=URL.createObjectURL(Et),bn=sd();bn.readAloudAudio?bn.readAloudAudio.pause():(bn.readAloudAudio=new Audio,bn.readAloudAudio.addEventListener("ended",()=>{const Ln=bn.readAloudMathfield;bn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ln?(xd(Ln),bn.readAloudElement=null,bn.readAloudMathfield=null,bn.readAloudTokens=[],bn.readAloudMarks=[],bn.readAloudCurrentMark=""):vp(bn.readAloudElement)}),bn.readAloudAudio.addEventListener("timeupdate",()=>{let Ln="";const jr=bn.readAloudAudio.currentTime*1e3+100;for(const aa of bn.readAloudMarks)aa.time<jr&&(Ln=aa.value);bn.readAloudCurrentMark!==Ln&&(bn.readAloudCurrentToken=Ln,Ln&&Ln===bn.readAloudFinalToken?bn.readAloudAudio.pause():(bn.readAloudCurrentMark=Ln,qh(bn.readAloudElement,bn.readAloudCurrentMark)))})),bn.readAloudAudio.src=Zt,bn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),bn.readAloudAudio.play()})})}rt()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var ns=new WeakMap,p1=.5,ld={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Lu=class Pd extends HTMLElement{static get formAssociated(){return ef()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,nv())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ne;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ne=y.delete)!=null?ne:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return He.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),He.locale=y}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(y){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return He.strings}static set strings(y){He.merge(y)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(y){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(y){this._decimalSeparator=y,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(y){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var y,b;if(this._computeEngine===void 0){const E=(y=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;if(!E)return null;this._computeEngine=new E,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(b=this._computeEngine)!=null?b:null}static set computeEngine(y){this._computeEngine=y}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(y){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(y){this._isFunction=y}static loadSound(y){return ud(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const ae=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),se=yield this.audioContext.decodeAudioData(ae);this.audioBuffers[y]=se}catch(ne){}})}static playSound(y){return ud(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(ld[E])if(ld[E].startsWith("mf."))if(ld[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${ld[E]}`);else{const ne=ld[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ne[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${ld[E]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const E of b)console.warn(E);console.groupEnd()}}if(ef()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[rd("core"),rd("mathfield"),rd("mathfield-element"),rd("ui"),rd("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+Zc("core")+Zc("mathfield")+Zc("mathfield-element")+Zc("ui")+Zc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ne=>ne.nodeType===3?ne.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ne;return(ne=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ne:""}setPromptValue(y,b,E){var ne;(ne=this._mathfield)==null||ne.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ne=(E=(b=Pd.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ne!==null&&this._mathfield.setValue(ne),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?Cd(this._mathfield.options,y):ns.has(this)?Ee({},Cd(Ee(Ee({},Vf()),Uf(ns.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Cd(this._mathfield.options,y):ns.has(this)?Cd(Ee(Ee({},Vf()),Uf(ns.get(this).options)),y):null}reflectAttributes(){const y=Vf(),b=this._getOptions();Object.keys(Pd.optionsAttributes).forEach(E=>{const ne=Vc(E);Pd.optionsAttributes[E]==="on/off"?y[ne]!==b[ne]?this.setAttribute(E,b[ne]?"on":"off"):this.removeAttribute(E):y[ne]!==b[ne]&&(Pd.optionsAttributes[E]==="boolean"?b[ne]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ne]=="string"||typeof b[ne]=="number")&&this.setAttribute(E,b[ne].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(ns.has(this)){const b=Ee(Ee({},ns.get(this).options),y);ns.set(this,fe(Ee({},ns.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else ns.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))ld[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${ld[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ne,ae;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(ns.has(this)){let se,Se,Pe;if(Jc(y)?([se,Se]=y.ranges[0],Pe=b):Rc(y)?([se,Se]=y,Pe=b):_u(y)&&_u(b)?(se=y,Se=b,Pe=E):(se=0,Se=-1,Pe=y),(Pe===void 0||Pe==="latex")&&se===0&&Se===-1)return(ae=(ne=ns.get(this).value)!=null?ne:this.textContent)!=null?ae:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(ns.has(this)){const ne=ns.get(this).options;ns.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ne,menuItems:void 0});return}const E=Bf(this);ns.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ne;return(ne=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ne:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ne;return(ne=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ne:!1}offsetFromPoint(y,b,E){return this._mathfield?Ef(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=vc(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,E,ne,ae;wc.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ne=this._mathfield)==null||ne.focus()),y.type==="blur"&&((ae=this._mathfield)==null||ae.blur()))}connectedCallback(){var y,b,E,ne;const ae=window.getComputedStyle(this),se=this.shadowRoot,Se=ae.userSelect!=="none";if(Se)se.host.addEventListener("pointerdown",this,!0);else{const Je=se.querySelector("span");Je.style.pointerEvents="none"}se.host.addEventListener("focus",this,!0),se.host.addEventListener("blur",this,!0),ef()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),Se&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Pe=se.querySelector("slot:not([name])");if(Pe)try{this._style=Pe.assignedElements().filter(Je=>Je.tagName.toLowerCase()==="style").map(Je=>Je.textContent).join("")}catch(Je){console.error(Je)}if(this._style){const Je=document.createElement("style");Je.textContent=this._style,se.appendChild(Je)}let Te="";if(this.hasAttribute("value")?Te=this.getAttribute("value"):Te=(y=Pe==null?void 0:Pe.assignedNodes().map(Je=>Je.nodeType===3?Je.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(se.querySelector(":host > span"),fe(Ee({},(E=(b=ns.get(this))==null?void 0:b.options)!=null?E:Bf(this)),{eventSink:this,value:Te})),!ns.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Je of Object.keys(Pd.optionsAttributes))this.upgradeProperty(Vc(Je))}if(!((ne=this._mathfield)!=null&&ne.model)){this._mathfield=null;return}if(ns.has(this)){const Je=this._mathfield,Et=ns.get(this),Zt=Et.menuItems;Je.model.deferNotifications({content:!1,selection:!1},()=>{const bn=Et.value;bn!==void 0&&Je.setValue(bn),Je.model.selection=Et.selection,ns.delete(this)}),Zt&&(this.menuItems=Zt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),zf()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const E=Cd(this._mathfield.options,Object.keys(Pd.optionsAttributes).map(ne=>Vc(ne)));ns.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:E}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,E){if(b===E)return;const ne=E!==null;switch(y){case"contenteditable":lu(this._mathfield);break;case"disabled":this.disabled=ne;break;case"read-only":case"readonly":this.readOnly=ne;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),ef()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(ef()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),ef()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ne){return typeof E!="string"?!1:(y._setOptions({registers:fe(Ee({},y._getOption("registers")),{[E]:ne})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ne=>ne.menuItem))!=null?y:[]:(E=(b=ns.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}ns.has(this)?ns.set(this,fe(Ee({},ns.get(this)),{menuItems:y})):ns.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Bf(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ne;(ne=this._mathfield)==null||ne.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:ns.has(this)?ns.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,lu(this._mathfield);return}if(ns.has(this)){ns.set(this,fe(Ee({},ns.get(this)),{selection:y}));return}ns.set(this,{value:void 0,selection:y,options:Bf(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:ns.has(this)?ns.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,lu(this._mathfield)),ns.has(this)){ns.set(this,fe(Ee({},ns.get(this)),{selection:{ranges:[[y,y]]}}));return}ns.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Bf(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};Lu.version="0.98.5",Lu._fontsDirectory="./fonts",Lu._soundsDirectory="./sounds",Lu.keypressVibration=!0,Lu._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Lu._plonkSound="plonk.wav",Lu.audioBuffers={},Lu.createHTML=a=>a,Lu._speechEngineRate="100%",Lu._speechEngineVoice="Joanna",Lu._textToSpeechMarkup="",Lu._textToSpeechRules="mathlive",Lu._textToSpeechRulesOptions={},Lu.speakHook=r1,Lu.readAloudHook=h1,Lu._decimalSeparator=".",Lu.fractionNavigationOrder="numerator-denominator",Lu._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var kf=Lu;function Vc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Bf(a){const y={readOnly:!1},b=kf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ne=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ne!=null?ne:"":b[E]==="boolean"?y[Vc(E)]=!0:b[E]==="on/off"?ne==="on"?y[Vc(E)]=!0:ne==="off"?y[Vc(E)]=!1:y[Vc(E)]=void 0:b[E]==="number"?y[Vc(E)]=Number.parseFloat(ne!=null?ne:"0"):y[Vc(E)]=ne}}),y}function ef(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var gp=kf,yp,bp,xp,Ep;if(rt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=kf,(Ep=window.customElements)==null||Ep.define("math-field",kf)}function m1(a,y,b){let E=b,ne=0;const ae=a.length;for(;E<y.length;){const se=y[E];if(ne<=0&&y.slice(E,E+ae)===a)return E;se==="\\"?E++:se==="{"?ne++:se==="}"&&ne--,E++}return-1}function uh(a,y,b,E,ne="latex"){const ae=[];for(const se of a)if(se.type==="text"){const Se=se.data;let Pe=!0,Te=0,Je;Je=Se.indexOf(y),Je!==-1&&(Te=Je,Te>0&&ae.push({type:"text",data:Se.slice(0,Te)}),Pe=!1);let Et=!1;for(;!Et;){if(Pe){if(Je=Se.indexOf(y,Te),Je===-1){Et=!0;break}Te!==Je&&ae.push({type:"text",data:Se.slice(Te,Je)}),Te=Je}else{if(Je=m1(b,Se,Te+y.length),Je===-1){Et=!0;break}let Zt=Se.slice(Te+y.length,Je);ne==="ascii-math"&&([,Zt]=Ec(Zt,{format:"ascii-math"})),ae.push({type:"math",data:Zt,rawData:Se.slice(Te,Je+b.length),mathstyle:E}),Te=Je+b.length}Pe=!Pe}Te<Se.length&&ae.push({type:"text",data:Se.slice(Te)})}else ae.push(se);return ae}function Cp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ne,ae])=>{E=uh(E,ne,ae,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ne,ae])=>{E=uh(E,ne,ae,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ne,ae])=>{E=uh(E,ne,ae,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ne,ae])=>{E=uh(E,ne,ae,"displaystyle","ascii-math")}),E}function v1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function g1(a,y,b,E){try{const ne=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ae=document.createElement("span");return ae.dataset.latex=a,ae.style.display=b==="displaystyle"?"flex":"inline-flex",ae.setAttribute("aria-hidden","true"),ae.setAttribute("translate","no"),ae.innerHTML=window.MathfieldElement.createHTML(ne),ae}catch(ne){if(console.error("Could not parse'"+a+"' with ",ne),E)return document.createTextNode(a)}return null}function tf(a,y,b,E){var ne;const ae=g1(a,b,y||"textstyle",E),se=(ne=b.renderAccessibleContent)!=null?ne:"";if(ae&&/\b(mathml|speakable-text)\b/i.test(se)){const Se=document.createElement("span");if(/\bmathml\b/i.test(se)&&b.renderToMathML&&Se.append(v1(a,b)),/\bspeakable-text\b/i.test(se)&&b.renderToSpeakableText){const Pe=document.createElement("span");Pe.setAttribute("translate","no");const Te=b.renderToSpeakableText(a);Pe.innerHTML=window.MathfieldElement.createHTML(Te),Pe.className="ML__sr-only",Se.append(Pe)}return Se.append(ae),Se}return ae}function y1(a,y){var b,E,ne;let ae=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ae=document.createDocumentFragment();const se=tf(a,"",y,!0);se&&ae.appendChild(se)}else{if(!a.trim())return null;const se=Cp(a,(E=y.TeX)==null?void 0:E.delimiters,(ne=y.asciiMath)==null?void 0:ne.delimiters);if(se.length===1&&se[0].type==="text")return null;ae=document.createDocumentFragment();for(const Se of se)if(Se.type==="text")ae.appendChild(document.createTextNode(Se.data));else{const Pe=tf(Se.data,Se.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Pe&&ae.appendChild(Pe)}}return ae}function Sp(a,y){var b,E,ne,ae,se,Se,Pe,Te,Je,Et,Zt,bn,Ln,jr,aa,Hr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Di=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(Di)){a.textContent="";const _i=tf(Di,"",y,!0);_i&&a.append(_i);return}const ua=Cp(Di,(ne=y.TeX)==null?void 0:ne.delimiters,(ae=y.asciiMath)==null?void 0:ae.delimiters);if(ua.length===1&&ua[0].type==="math"){a.textContent="";const _i=tf(ua[0].data,ua[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);_i&&a.append(_i);return}if(ua.length===1&&ua[0].type==="text")return}for(let Di=a.childNodes.length-1;Di>=0;Di--){const ua=a.childNodes[Di];if(ua.nodeType===3){const _i=y1((se=ua.textContent)!=null?se:"",y);_i&&(Di+=_i.childNodes.length-1,ua.replaceWith(_i))}else if(ua.nodeType===1){const _i=ua,yo=ua.nodeName.toLowerCase();if(yo==="script"){const Zo=ua;let Ro;if((Se=y.processScriptTypePattern)!=null&&Se.test(Zo.type))Ro=(Pe=Zo.textContent)!=null?Pe:"";else if((Te=y.processMathJSONScriptTypePattern)!=null&&Te.test(Zo.type))try{Ro=(Et=y.serializeToLatex)==null?void 0:Et.call(y,JSON.parse((Je=Zo.textContent)!=null?Je:""))}catch($l){console.error($l)}if(Ro){let $l="textstyle";for(const xa of Zo.type.split(";")){const[ac,Pc]=xa.toLowerCase().split("=");ac.trim()==="mode"&&($l=Pc.trim()==="display"?"displaystyle":"textstyle")}const Es=tf(Ro,$l,y,!0);Es&&Zo.parentNode.replaceChild(Es,Zo)}}else if(((bn=(Zt=y.processClassPattern)==null?void 0:Zt.test(_i.className))!=null?bn:!1)||!((jr=(Ln=y.skipTags)==null?void 0:Ln.includes(yo))!=null&&jr||(Hr=(aa=y.ignoreClassPattern)==null?void 0:aa.test(_i.className))!=null&&Hr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Ro=a.textContent;a.textContent="";const $l=tf(Ro!=null?Ro:"","displaystyle",y,!0);$l&&a.append($l)}else Sp(_i,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ne,ae;try{const se=Ee(Ee({},b1),y);se.ignoreClassPattern=new RegExp((b=se.ignoreClass)!=null?b:""),se.processClassPattern=new RegExp((E=se.processClass)!=null?E:""),se.processScriptTypePattern=new RegExp((ne=se.processScriptType)!=null?ne:""),se.processMathJSONScriptTypePattern=new RegExp((ae=se.processMathJSONScriptType)!=null?ae:""),zf(),$u("core"),Sp(a,se)}catch(se){se instanceof Error?console.error("renderMathInElement(): "+se.message):console.error("renderMathInElement(): Could not render math for element",a)}}function E1(a,y){const b=ad.singleton;return b?(b.show(),vf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function C1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}qu({switchKeyboardLayer:E1,toggleVirtualKeyboard:C1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function sd(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function P1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function I1(a){w1(document.body,a)}function S1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function w1(a,y){var b,E,ne,ae;const se=S1(a);if(!se)return;const Se=y!=null?y:{};(b=Se.renderToMarkup)!=null||(Se.renderToMarkup=Du),(E=Se.renderToMathML)!=null||(Se.renderToMathML=Tg),(ne=Se.renderToSpeakableText)!=null||(Se.renderToSpeakableText=Rg),(ae=Se.serializeToLatex)!=null||(Se.serializeToLatex=_g),x1(se,Se)}var F1={mathlive:"0.98.5"}},17423:function(vn,Tt,te){"use strict";te.d(Tt,{Z:function(){return Ee}});const ee=fe=>typeof fe=="object"&&fe!=null&&fe.nodeType===1,de=(fe,we)=>(!we||fe!=="hidden")&&fe!=="visible"&&fe!=="clip",ke=(fe,we)=>{if(fe.clientHeight<fe.scrollHeight||fe.clientWidth<fe.scrollWidth){const Ue=getComputedStyle(fe,null);return de(Ue.overflowY,we)||de(Ue.overflowX,we)||(De=>{const Ke=(rt=>{if(!rt.ownerDocument||!rt.ownerDocument.defaultView)return null;try{return rt.ownerDocument.defaultView.frameElement}catch(Qe){return null}})(De);return!!Ke&&(Ke.clientHeight<De.scrollHeight||Ke.clientWidth<De.scrollWidth)})(fe)}return!1},Ge=(fe,we,Ue,De,Ke,rt,Qe,_e)=>rt<fe&&Qe>we||rt>fe&&Qe<we?0:rt<=fe&&_e<=Ue||Qe>=we&&_e>=Ue?rt-fe-De:Qe>we&&_e<Ue||rt<fe&&_e>Ue?Qe-we+Ke:0,xe=fe=>{const we=fe.parentElement;return we==null?fe.getRootNode().host||null:we},Me=(fe,we)=>{var Ue,De,Ke,rt;if(typeof document=="undefined")return[];const{scrollMode:Qe,block:_e,inline:ge,boundary:Ve,skipOverflowHiddenElements:lt}=we,He=typeof Ve=="function"?Ve:Rt=>Rt!==Ve;if(!ee(fe))throw new TypeError("Invalid target");const Oe=document.scrollingElement||document.documentElement,ve=[];let ye=fe;for(;ee(ye)&&He(ye);){if(ye=xe(ye),ye===Oe){ve.push(ye);break}ye!=null&&ye===document.body&&ke(ye)&&!ke(document.documentElement)||ye!=null&&ke(ye,lt)&&ve.push(ye)}const ze=(De=(Ue=window.visualViewport)==null?void 0:Ue.width)!=null?De:innerWidth,We=(rt=(Ke=window.visualViewport)==null?void 0:Ke.height)!=null?rt:innerHeight,{scrollX:st,scrollY:at}=window,{height:Ze,width:Ae,top:mt,right:je,bottom:it,left:qe}=fe.getBoundingClientRect(),{top:gt,right:Pt,bottom:Xt,left:$e}=(Rt=>{const ht=window.getComputedStyle(Rt);return{top:parseFloat(ht.scrollMarginTop)||0,right:parseFloat(ht.scrollMarginRight)||0,bottom:parseFloat(ht.scrollMarginBottom)||0,left:parseFloat(ht.scrollMarginLeft)||0}})(fe);let Be=_e==="start"||_e==="nearest"?mt-gt:_e==="end"?it+Xt:mt+Ze/2-gt+Xt,St=ge==="center"?qe+Ae/2-$e+Pt:ge==="end"?je+Pt:qe-$e;const Vt=[];for(let Rt=0;Rt<ve.length;Rt++){const ht=ve[Rt],{height:Bt,width:_t,top:Fn,right:kn,bottom:kt,left:un}=ht.getBoundingClientRect();if(Qe==="if-needed"&&mt>=0&&qe>=0&&it<=We&&je<=ze&&mt>=Fn&&it<=kt&&qe>=un&&je<=kn)return Vt;const Wn=getComputedStyle(ht),An=parseInt(Wn.borderLeftWidth,10),Ie=parseInt(Wn.borderTopWidth,10),he=parseInt(Wn.borderRightWidth,10),ce=parseInt(Wn.borderBottomWidth,10);let me=0,pe=0;const le="offsetWidth"in ht?ht.offsetWidth-ht.clientWidth-An-he:0,Le="offsetHeight"in ht?ht.offsetHeight-ht.clientHeight-Ie-ce:0,dt="offsetWidth"in ht?ht.offsetWidth===0?0:_t/ht.offsetWidth:0,Nt="offsetHeight"in ht?ht.offsetHeight===0?0:Bt/ht.offsetHeight:0;if(Oe===ht)me=_e==="start"?Be:_e==="end"?Be-We:_e==="nearest"?Ge(at,at+We,We,Ie,ce,at+Be,at+Be+Ze,Ze):Be-We/2,pe=ge==="start"?St:ge==="center"?St-ze/2:ge==="end"?St-ze:Ge(st,st+ze,ze,An,he,st+St,st+St+Ae,Ae),me=Math.max(0,me+at),pe=Math.max(0,pe+st);else{me=_e==="start"?Be-Fn-Ie:_e==="end"?Be-kt+ce+Le:_e==="nearest"?Ge(Fn,kt,Bt,Ie,ce+Le,Be,Be+Ze,Ze):Be-(Fn+Bt/2)+Le/2,pe=ge==="start"?St-un-An:ge==="center"?St-(un+_t/2)+le/2:ge==="end"?St-kn+he+le:Ge(un,kn,_t,An,he+le,St,St+Ae,Ae);const{scrollLeft:tn,scrollTop:an}=ht;me=Nt===0?0:Math.max(0,Math.min(an+me/Nt,ht.scrollHeight-Bt/Nt+Le)),pe=dt===0?0:Math.max(0,Math.min(tn+pe/dt,ht.scrollWidth-_t/dt+le)),Be+=an-me,St+=tn-pe}Vt.push({el:ht,top:me,left:pe})}return Vt},ue=fe=>fe===!1?{block:"end",inline:"nearest"}:(we=>we===Object(we)&&Object.keys(we).length!==0)(fe)?fe:{block:"start",inline:"nearest"};function Ee(fe,we){if(!fe.isConnected||!(Ke=>{let rt=Ke;for(;rt&&rt.parentNode;){if(rt.parentNode===document)return!0;rt=rt.parentNode instanceof ShadowRoot?rt.parentNode.host:rt.parentNode}return!1})(fe))return;const Ue=(Ke=>{const rt=window.getComputedStyle(Ke);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(fe);if((Ke=>typeof Ke=="object"&&typeof Ke.behavior=="function")(we))return we.behavior(Me(fe,we));const De=typeof we=="boolean"||we==null?void 0:we.behavior;for(const{el:Ke,top:rt,left:Qe}of Me(fe,ue(we))){const _e=rt-Ue.top+Ue.bottom,ge=Qe-Ue.left+Ue.right;Ke.scroll({top:_e,left:ge,behavior:De})}}}}]);
}());